public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug backtrace/9829] add switch/param to make bt/backtrace print name of binary for each frame
       [not found] <bug-9829-4717@http.sourceware.org/bugzilla/>
@ 2013-02-01 20:49 ` 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
  2 siblings, 0 replies; 4+ messages in thread
From: tromey at redhat dot com @ 2013-02-01 20:49 UTC (permalink / raw)
  To: gdb-prs

http://sourceware.org/bugzilla/show_bug.cgi?id=9829

Tom Tromey <tromey at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2013-02-01
                 CC|                            |tromey at redhat dot com
     Ever Confirmed|0                           |1

--- Comment #2 from Tom Tromey <tromey at redhat dot com> 2013-02-01 20:49:46 UTC ---
I think having this as an optional feature would be good.

Maybe we could go a bit farther and let the user specify
some kind of format string that would be used when
printing frames in "bt".

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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

* [Bug backtrace/9829] add switch/param to make bt/backtrace print name of binary for each frame
       [not found] <bug-9829-4717@http.sourceware.org/bugzilla/>
  2013-02-01 20:49 ` [Bug backtrace/9829] add switch/param to make bt/backtrace print name of binary for each frame 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
  2 siblings, 0 replies; 4+ messages in thread
From: trass3r at gmail dot com @ 2022-06-26 10:08 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=9829

trass3r <trass3r at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |trass3r at gmail dot com

--- Comment #3 from trass3r <trass3r at gmail dot com> ---
I'm fine with always enabling it in general.
Though with line wrapping the output may get a bit crowded.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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

* [Bug backtrace/9829] add switch/param to make bt/backtrace print name of binary for each frame
       [not found] <bug-9829-4717@http.sourceware.org/bugzilla/>
  2013-02-01 20:49 ` [Bug backtrace/9829] add switch/param to make bt/backtrace print name of binary for each frame 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
  2 siblings, 0 replies; 4+ messages in thread
From: sam at gentoo dot org @ 2024-03-15  9:17 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=9829

Sam James <sam at gentoo dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |sam at gentoo dot org

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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

* [Bug backtrace/9829] add switch/param to make bt/backtrace print name of binary for each frame
  2009-02-09 13:12 [Bug backtrace/9829] New: " mnemo at minimum dot se
@ 2009-02-09 15:05 ` mnemo at minimum dot se
  0 siblings, 0 replies; 4+ messages in thread
From: mnemo at minimum dot se @ 2009-02-09 15:05 UTC (permalink / raw)
  To: gdb-prs


------- 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.


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

end of thread, other threads:[~2024-03-15  9:17 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-9829-4717@http.sourceware.org/bugzilla/>
2013-02-01 20:49 ` [Bug backtrace/9829] add switch/param to make bt/backtrace print name of binary for each frame 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
2009-02-09 13:12 [Bug backtrace/9829] New: " mnemo at minimum dot se
2009-02-09 15:05 ` [Bug backtrace/9829] " mnemo at minimum dot se

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).