summaryrefslogtreecommitdiffstats
path: root/utils/analysis/find_addr.pl
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2012-05-31 15:56:34 +0200
committerAmaury Pouly <amaury.pouly@gmail.com>2012-05-31 15:56:34 +0200
commitcc59ea453d0a1a53808bbe967d4dbfb2f670cb75 (patch)
treeebc4c0f11a6a4de436ffedc9dbc8a878e761439f /utils/analysis/find_addr.pl
parent9bae382e958636598d56ad1b0023e29355e6494d (diff)
downloadrockbox-cc59ea453d0a1a53808bbe967d4dbfb2f670cb75.tar.gz
rockbox-cc59ea453d0a1a53808bbe967d4dbfb2f670cb75.tar.bz2
rockbox-cc59ea453d0a1a53808bbe967d4dbfb2f670cb75.zip
Fix findaddr.pl tool for codecs
Change-Id: I19dff8c9f3e8195d1e8d652e6365375a87debddf
Diffstat (limited to 'utils/analysis/find_addr.pl')
-rwxr-xr-xutils/analysis/find_addr.pl11
1 files changed, 10 insertions, 1 deletions
diff --git a/utils/analysis/find_addr.pl b/utils/analysis/find_addr.pl
index 628fb3dda8..b66f35f48e 100755
--- a/utils/analysis/find_addr.pl
+++ b/utils/analysis/find_addr.pl
@@ -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>)