public inbox for gdb-prs@sourceware.org help / color / mirror / Atom feed
From: "mnemo at minimum dot se" <sourceware-bugzilla@sourceware.org> To: gdb-prs@sourceware.org Subject: [Bug backtrace/9829] add switch/param to make bt/backtrace print name of binary for each frame Date: Mon, 09 Feb 2009 15:05:00 -0000 [thread overview] Message-ID: <20090209150554.26507.qmail@sourceware.org> (raw) In-Reply-To: <20090209131249.9829.mnemo@minimum.se> ------- Additional Comments From mnemo at minimum dot se 2009-02-09 15:05 ------- Created an attachment (id=3727) --> (http://sourceware.org/bugzilla/attachment.cgi?id=3727&action=view) patch that makes gdb always print the binary for each function I found that it's sufficient to just remove the following if-statement from gdb/stack.c:729 to make gdb do what I'm talking about. This is the if statement: if (!funname || (!sal.symtab || !sal.symtab->filename)) Granted, this does not add a parameter to "bt" it just changes the default behavior. At least I hope this patch can serve as a starting point. Note: The condition "(!sal.symtab || !sal.symtab->filename)" is the logical opposite (according to de morgan's law) to "sal.symtab && sal.symtab->filename" which should explain why it's okay to drop the !funname part. -- http://sourceware.org/bugzilla/show_bug.cgi?id=9829 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
next prev parent reply other threads:[~2009-02-09 15:05 UTC|newest] Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top 2009-02-09 13:12 [Bug backtrace/9829] New: " mnemo at minimum dot se 2009-02-09 15:05 ` mnemo at minimum dot se [this message] [not found] <bug-9829-4717@http.sourceware.org/bugzilla/> 2013-02-01 20:49 ` [Bug backtrace/9829] " tromey at redhat dot com 2022-06-26 10:08 ` trass3r at gmail dot com 2024-03-15 9:17 ` sam at gentoo dot org
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=20090209150554.26507.qmail@sourceware.org \ --to=sourceware-bugzilla@sourceware.org \ --cc=gdb-prs@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: linkBe 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; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).