From: William Douglas <william.douglas@intel.com>
To: gdb-patches@sourceware.org
Subject: [PATCH] print_frame add info
Date: Tue, 18 Dec 2012 01:40:00 -0000 [thread overview]
Message-ID: <87ehiocel0.fsf@intel.com> (raw)
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
next reply other threads:[~2012-12-18 1:40 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-18 1:40 William Douglas [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87ehiocel0.fsf@intel.com \
--to=william.douglas@intel.com \
--cc=gdb-patches@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox