public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* gdb/2559: [regression] stop hooks run after printing stack frame
@ 2008-11-26  2:28 vargaz
  0 siblings, 0 replies; 2+ messages in thread
From: vargaz @ 2008-11-26  2:28 UTC (permalink / raw)
  To: gdb-gnats


>Number:         2559
>Category:       gdb
>Synopsis:       [regression] stop hooks run after printing stack frame
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Wed Nov 26 02:28:01 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     vargaz@gmail.com
>Release:        GNU gdb (GDB) 6.8.50.20081126-cvs
>Organization:
>Environment:
debian unstable amd64
>Description:
According to the gdb manual, stop hooks were executed before
the stack frame information was printed when the program
was stopped. This got broken by this patch:
http://sourceware.org/ml/gdb-patches/2008-09/msg00193.html

Running the hook code before printing the stack frame is
useful for things like debugging JITted code, i.e. the hook
could load symbol information for the JITted code using
add-symbol-file.
>How-To-Repeat:
define hook-stop
echo "Hello."
end

break main
run

In gdb 6.8, the "Hello" message was printed before the stack
frame, in the cvs version, it is printed after.
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


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

* Re: gdb/2559: [regression] stop hooks run after printing stack frame
@ 2008-11-26  3:03 palves
  0 siblings, 0 replies; 2+ messages in thread
From: palves @ 2008-11-26  3:03 UTC (permalink / raw)
  To: gdb-prs, nobody, palves, vargaz

Synopsis: [regression] stop hooks run after printing stack frame

Responsible-Changed-From-To: unassigned->palves
Responsible-Changed-By: palves
Responsible-Changed-When: Wed Nov 26 03:03:41 2008
Responsible-Changed-Why:
    I'll fix this.
State-Changed-From-To: open->analyzed
State-Changed-By: palves
State-Changed-When: Wed Nov 26 03:03:41 2008
State-Changed-Why:
    Tagging the threads as stopped will have to
    be done a bit earlier than.  normal_stop is full of tricky bits.

http://sourceware.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gdb&pr=2559


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

end of thread, other threads:[~2008-11-26  3:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-11-26  2:28 gdb/2559: [regression] stop hooks run after printing stack frame vargaz
2008-11-26  3:03 palves

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