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

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

 



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>


1 file changed, 1 insertion(+), 1 deletion(-)
symbols.c |    2 +-


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