Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [PATCH] print_frame add info
@ 2012-12-18  1:40 William Douglas
  2012-12-18  8:33 ` Jan Kratochvil
  0 siblings, 1 reply; 5+ messages in thread
From: William Douglas @ 2012-12-18  1:40 UTC (permalink / raw)
  To: gdb-patches

Hi all,

I want to have gdb's output for shared objects' stack frames changed to
append the from /path/to/lib.so.1 even if the function name or file name
are available.

It would make things easier for me when I don't readily know what
library a certain file is in and the change doesn't seem especially
drastic.

Any comments on this change?

--

diff --git a/gdb/stack.c b/gdb/stack.c
index 51747ea..9d28b74 100644
--- a/gdb/stack.c
+++ b/gdb/stack.c
@@ -1198,7 +1198,7 @@ print_frame (struct frame_info *frame, int
print_level,
       annotate_frame_source_end ();
     }
 
-  if (pc_p && (!funname || (!sal.symtab || !sal.symtab->filename)))
+  if (pc_p)
     {
 #ifdef PC_SOLIB
       char *lib = PC_SOLIB (get_frame_pc (frame));

-- 
William Douglas, Intel Open Source Technology Center


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-12-19  7:07 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-12-18  1:40 [PATCH] print_frame add info William Douglas
2012-12-18  8:33 ` Jan Kratochvil
2012-12-18 16:08   ` Tom Tromey
2012-12-18 21:52     ` Douglas, William
2012-12-19  7:07       ` Jan Kratochvil

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox