public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug gdb/11502] New: initial shared library events are bare when debugging a cygwin-built program
@ 2010-04-15 18:55 john dot cortell at freescale dot com
  2010-04-15 18:56 ` [Bug gdb/11502] " john dot cortell at freescale dot com
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: john dot cortell at freescale dot com @ 2010-04-15 18:55 UTC (permalink / raw)
  To: gdb-prs

(From the perspective of CDT...)

When debugging a Cygwin-built program, and we've told gdb to stop on shared
library events, the invocation (run) of the program produces a series of
stopped events because of library loads. But these events are absolutely bare.
Gdb gives no indication that the target stopped because of a library load.
Typically, such an indication comes in the form of a stream record that
accompanies the stopped event. Again, in this case, we get *nothing*. See the
attached gdb log. This represents all the activity from the beginning of the
session up to reaching main(). Note that getting to main() required hitting the
resume button three times (three library load events). Notice the bare *stopped
message and the lack of any stream records revealing the reason.


Here's what a normal stopped-for-library-load event looks like:


152-exec-continue
152^running
(gdb) 
~"Stopped due to shared library event\n"
Stopped due to shared library event
152*stopped,thread-id="1"

With this information, CDT is able to realize that the stop is because of a
shared library and auto-resume the target. Without the information, the user
just sees the program stopped for no apparent reason.

-- 
           Summary: initial shared library events are bare when debugging a
                    cygwin-built program
           Product: gdb
           Version: 7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: gdb
        AssignedTo: unassigned at sourceware dot org
        ReportedBy: john dot cortell at freescale dot com
                CC: gdb-prs at sourceware dot org


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

------- 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] 6+ messages in thread

* [Bug gdb/11502] initial shared library events are bare when debugging a cygwin-built program
  2010-04-15 18:55 [Bug gdb/11502] New: initial shared library events are bare when debugging a cygwin-built program john dot cortell at freescale dot com
@ 2010-04-15 18:56 ` john dot cortell at freescale dot com
  2010-04-15 19:08 ` john dot cortell at freescale dot com
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: john dot cortell at freescale dot com @ 2010-04-15 18:56 UTC (permalink / raw)
  To: gdb-prs


------- Additional Comments From john dot cortell at freescale dot com  2010-04-15 18:56 -------
Created an attachment (id=4730)
 --> (http://sourceware.org/bugzilla/attachment.cgi?id=4730&action=view)
gdb/mi log showing that gdb stops for library loads without providing a reason


-- 


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

------- 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] 6+ messages in thread

* [Bug gdb/11502] initial shared library events are bare when debugging a cygwin-built program
  2010-04-15 18:55 [Bug gdb/11502] New: initial shared library events are bare when debugging a cygwin-built program john dot cortell at freescale dot com
  2010-04-15 18:56 ` [Bug gdb/11502] " john dot cortell at freescale dot com
@ 2010-04-15 19:08 ` john dot cortell at freescale dot com
  2010-04-15 19:36 ` pedro at codesourcery dot com
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: john dot cortell at freescale dot com @ 2010-04-15 19:08 UTC (permalink / raw)
  To: gdb-prs


------- Additional Comments From john dot cortell at freescale dot com  2010-04-15 19:08 -------
BTW, the behavior was observed with both gdb 6.8 from both MinGW and Cygwin.
It's not present in MinGW gdb 7.0, so perhaps this was a 6.8 bug? Since there is
yet no official Cygwin 7.0 gdb, I can't confirm that.

-- 


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

------- 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] 6+ messages in thread

* [Bug gdb/11502] initial shared library events are bare when debugging a cygwin-built program
  2010-04-15 18:55 [Bug gdb/11502] New: initial shared library events are bare when debugging a cygwin-built program john dot cortell at freescale dot com
  2010-04-15 18:56 ` [Bug gdb/11502] " john dot cortell at freescale dot com
  2010-04-15 19:08 ` john dot cortell at freescale dot com
@ 2010-04-15 19:36 ` pedro at codesourcery dot com
  2010-04-15 19:49 ` john dot cortell at freescale dot com
  2010-04-15 20:34 ` pedro at codesourcery dot com
  4 siblings, 0 replies; 6+ messages in thread
From: pedro at codesourcery dot com @ 2010-04-15 19:36 UTC (permalink / raw)
  To: gdb-prs


------- Additional Comments From pedro at codesourcery dot com  2010-04-15 19:36 -------
I think this was the fix:

2009-11-13  Pedro Alves  <pedro@codesourcery.com>

        * infrun.c (handle_inferior_event): Set stop_print_frame on
        TARGET_WAITKIND_LOADED events, if stopping on solib-events.

That's posterior to 7.0, but it's in 7.1.  I don't know how your
mingw gdb doesn't have this problem; maybe it's not really 7.0, but
7.0.50 (a cvs snapshot), or the patch was backported.

BTW, building GDB on Cygwin should be straightforward.  Pop up no irc if
you'd want to try it, and need help.


-- 


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

------- 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] 6+ messages in thread

* [Bug gdb/11502] initial shared library events are bare when debugging a cygwin-built program
  2010-04-15 18:55 [Bug gdb/11502] New: initial shared library events are bare when debugging a cygwin-built program john dot cortell at freescale dot com
                   ` (2 preceding siblings ...)
  2010-04-15 19:36 ` pedro at codesourcery dot com
@ 2010-04-15 19:49 ` john dot cortell at freescale dot com
  2010-04-15 20:34 ` pedro at codesourcery dot com
  4 siblings, 0 replies; 6+ messages in thread
From: john dot cortell at freescale dot com @ 2010-04-15 19:49 UTC (permalink / raw)
  To: gdb-prs


------- Additional Comments From john dot cortell at freescale dot com  2010-04-15 19:49 -------
Indeed it is. Specifically, 

   C:\MinGW\bin>gdb -version
   GNU gdb (GDB) 7.0.50.20100202

Thanks!


-- 


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

------- 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] 6+ messages in thread

* [Bug gdb/11502] initial shared library events are bare when debugging a cygwin-built program
  2010-04-15 18:55 [Bug gdb/11502] New: initial shared library events are bare when debugging a cygwin-built program john dot cortell at freescale dot com
                   ` (3 preceding siblings ...)
  2010-04-15 19:49 ` john dot cortell at freescale dot com
@ 2010-04-15 20:34 ` pedro at codesourcery dot com
  4 siblings, 0 replies; 6+ messages in thread
From: pedro at codesourcery dot com @ 2010-04-15 20:34 UTC (permalink / raw)
  To: gdb-prs


------- Additional Comments From pedro at codesourcery dot com  2010-04-15 20:34 -------
You're welcome.  Closing then.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED


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

------- 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] 6+ messages in thread

end of thread, other threads:[~2010-04-15 20:34 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-04-15 18:55 [Bug gdb/11502] New: initial shared library events are bare when debugging a cygwin-built program john dot cortell at freescale dot com
2010-04-15 18:56 ` [Bug gdb/11502] " john dot cortell at freescale dot com
2010-04-15 19:08 ` john dot cortell at freescale dot com
2010-04-15 19:36 ` pedro at codesourcery dot com
2010-04-15 19:49 ` john dot cortell at freescale dot com
2010-04-15 20:34 ` pedro at codesourcery 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).