public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug gdb/15911] New: "info threads" changes the default source and line (for "break", "list")
@ 2013-08-30 13:25 palves at redhat dot com
  2013-08-30 13:25 ` [Bug gdb/15911] " palves at redhat dot com
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: palves at redhat dot com @ 2013-08-30 13:25 UTC (permalink / raw)
  To: gdb-prs

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

            Bug ID: 15911
           Summary: "info threads" changes the default source and line
                    (for "break", "list")
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gdb
          Assignee: unassigned at sourceware dot org
          Reporter: palves at redhat dot com

"info threads" changes the default source for "break" and "list", to whatever
the location of the first/bottom thread in the thread list is...

 (gdb) b start
 (gdb) c
 ...
 (gdb) list 
 *lists "start"*
 (gdb) b 23
 Breakpoint 3 at 0x400614: file test.c, line 23.
 (gdb) info threads 
   Id   Target Id         Frame 
 * 2    Thread 0x7ffff7fcb700 (LWP 1760) "test" start (arg=0x0) at test.c:23
   1    Thread 0x7ffff7fcc740 (LWP 1748) "test" 0x000000323dc08e60 in
pthread_join (threadid=140737353922304, thread_return=0x0) at pthread_join.c:93
 (gdb) b 23
 Breakpoint 4 at 0x323dc08d90: file pthread_join.c, line 23.
                                    ^^^^^^^^^^^^^^^
 (gdb) list 
 93          lll_wait_tid (pd->tid);
 94
 95
 96        /* Restore cancellation mode.  */
 97        CANCEL_RESET (oldtype);
 98
 99        /* Remove the handler.  */
 100       pthread_cleanup_pop (0);
 101
 102

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


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

end of thread, other threads:[~2013-09-17 19:44 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-08-30 13:25 [Bug gdb/15911] New: "info threads" changes the default source and line (for "break", "list") palves at redhat dot com
2013-08-30 13:25 ` [Bug gdb/15911] " palves at redhat dot com
2013-08-30 16:20 ` palves at redhat dot com
2013-09-17 18:40 ` cvs-commit at gcc dot gnu.org
2013-09-17 19:44 ` palves at redhat dot com

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