public inbox for gdb-prs@sourceware.org help / color / mirror / Atom feed
From: "tromey at redhat dot com" <sourceware-bugzilla@sourceware.org> To: gdb-prs@sourceware.org Subject: [Bug gdb/12257] gdb ignore line "bar: if(foo)goto bar;" Date: Wed, 08 Feb 2012 21:39:00 -0000 [thread overview] Message-ID: <bug-12257-4717-073rW53UBG@http.sourceware.org/bugzilla/> (raw) In-Reply-To: <bug-12257-4717@http.sourceware.org/bugzilla/> http://sourceware.org/bugzilla/show_bug.cgi?id=12257 --- Comment #5 from Tom Tromey <tromey at redhat dot com> 2012-02-08 21:38:41 UTC --- This seems to be a side effect of this code in handle_inferior_event: if ((stop_pc == stop_pc_sal.pc) && (ecs->event_thread->current_line != stop_pc_sal.line || ecs->event_thread->current_symtab != stop_pc_sal.symtab)) { /* We are at the start of a different line. So stop. Note that we don't stop if we step into the middle of a different line. That is said to make things like for (;;) statements work better. */ if (debug_infrun) fprintf_unfiltered (gdb_stdlog, "infrun: stepped to a different line\n"); ecs->event_thread->control.stop_step = 1; print_end_stepping_range_reason (); stop_stepping (ecs); return; } Here we have: (top-gdb) p /x stop_pc $26 = 0x40056a (top-gdb) p /x stop_pc_sal.pc $27 = 0x400569 So we skip this stop and instead keep going. I am not sure whether that comment still makes sense. It is present in the initial public checkin of gdb, so I somewhat suspect it is very out of date now. -- 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.
next prev parent reply other threads:[~2012-02-08 21:39 UTC|newest] Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top 2010-11-23 10:55 [Bug gdb/12257] New: " safinaskar at mail dot ru 2010-11-23 14:13 ` [Bug gdb/12257] " safinaskar at mail dot ru 2012-02-07 20:47 ` tromey at redhat dot com 2012-02-07 21:17 ` safinaskar at mail dot ru 2012-02-07 21:46 ` pinskia at gcc dot gnu.org 2012-02-08 16:26 ` tromey at redhat dot com 2012-02-08 21:39 ` tromey at redhat dot com [this message] 2013-04-13 7:40 ` [Bug gdb/12257] gdb ignores " safinaskar at mail dot ru 2020-03-08 10:54 ` andrew.burgess at embecosm dot com
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-12257-4717-073rW53UBG@http.sourceware.org/bugzilla/ \ --to=sourceware-bugzilla@sourceware.org \ --cc=gdb-prs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).