forked from len0rd/rockbox
Fix findaddr.pl tool for codecs
Change-Id: I19dff8c9f3e8195d1e8d652e6365375a87debddf
This commit is contained in:
parent
9bae382e95
commit
cc59ea453d
1 changed files with 10 additions and 1 deletions
|
@ -53,7 +53,16 @@ sub dynamic_space
|
|||
$sel = <STDIN>;
|
||||
} while($sel <= 0 || $sel > $count - 1 || !($sel =~ /^[+-]?\d+$/));
|
||||
|
||||
my $file = sprintf("apps/%ss/%s", $space, @$space_array[$sel - 1]);
|
||||
my $prefix;
|
||||
if($space eq 'plugin')
|
||||
{
|
||||
$prefix = 'apps';
|
||||
}
|
||||
else
|
||||
{
|
||||
$prefix = 'lib/rbcodec';
|
||||
}
|
||||
my $file = sprintf("%s/%ss/%s", $prefix, $space, @$space_array[$sel - 1]);
|
||||
$ret{'library'} = sprintf("%s/%s", cwd(), $file);
|
||||
open FILE, "$objdump -t $file |" or die "Can't open pipe: $!";
|
||||
while(<FILE>)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue