From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6513 invoked by alias); 15 Apr 2010 18:55:51 -0000 Received: (qmail 6495 invoked by uid 48); 15 Apr 2010 18:55:49 -0000 Date: Thu, 15 Apr 2010 18:55:00 -0000 From: "john dot cortell at freescale dot com" To: gdb-prs@sourceware.org Message-ID: <20100415185548.11502.john.cortell@freescale.com> Reply-To: sourceware-bugzilla@sourceware.org Subject: [Bug gdb/11502] New: initial shared library events are bare when debugging a cygwin-built program X-Bugzilla-Reason: CC Mailing-List: contact gdb-prs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-prs-owner@sourceware.org X-SW-Source: 2010-q2/txt/msg00106.txt.bz2 (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.