Re: [PATCH] Use /usr/bin/nm -D

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Unfortunately on an unstripped version, it drops all ~3000 ' t ' symbols and
only dumps type 'T' symbols.  Probably it should run -Bn first, or recognize
otherwise that it's been stripped, and if it dumps no symbols, [re]try it
with -DBn?

Dave


----- Original Message -----
From: "Bernhard Walle" <bwalle@xxxxxxx>
To: crash-utility@xxxxxxxxxx
Sent: Monday, August 25, 2008 7:56:37 AM GMT -05:00 US/Canada Eastern
Subject:  [PATCH] Use /usr/bin/nm -D

Use "nm -D" to retrieve also the symbols of crash when compiled without -g
(or stripped after compilation and debuginfo extraction).

Signed-off-by: Bernhard Walle <bwalle@xxxxxxx>

diff --git a/symbols.c b/symbols.c
--- a/symbols.c
+++ b/symbols.c
@@ -9077,7 +9077,7 @@
                if (!(lookfor = retaddr[i]))
                        continue;

-               sprintf(buf, "/usr/bin/nm -Bn %s", thisfile);
+               sprintf(buf, "/usr/bin/nm -DBn %s", thisfile);
                if (!(pipe = popen(buf, "r"))) {
                        perror("pipe");
                        break;

--
Crash-utility mailing list
Crash-utility@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/crash-utility

[Index of Archives]     [Fedora Development]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]     [Fedora Tools]

 

Powered by Linux