📄 findaddr
字号:
#! /usr/bin/perl# Find the address of a symbol in the storage map.use strict qw(refs vars);use FileHandle;if ( scalar(@ARGV) != 2 ) { print "Usage: findaddr <storage map> <symbol name>\n"; exit 1;}my $storage = shift @ARGV;my $symbol = shift @ARGV;my $fh = new FileHandle("<$storage");(defined $fh) || die "Couldn't open storage map: $!\n";while ( <$fh> ) { if ( /^\s*(0x([0-9]|[a-f]|[A-F])+)\s+\Q$symbol\E\s*$/ ) { print $1, "\n"; last; }}$fh->close();
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -