public inbox for gdb-prs@sourceware.org help / color / mirror / Atom feed
From: "marc.khouzam at ericsson dot com" <sourceware-bugzilla@sourceware.org> To: gdb-prs@sourceware.org Subject: [Bug breakpoints/16551] Execution stops when encountering a dprintf with an invalid string Date: Thu, 05 Feb 2015 18:24:00 -0000 [thread overview] Message-ID: <bug-16551-4717-6xV903CYhE@http.sourceware.org/bugzilla/> (raw) In-Reply-To: <bug-16551-4717@http.sourceware.org/bugzilla/> https://sourceware.org/bugzilla/show_bug.cgi?id=16551 --- Comment #2 from Marc Khouzam <marc.khouzam at ericsson dot com> --- (In reply to Antoine Tremblay from comment #1) > The expectation of the developer should be that if a command input is wrong, > gdb > can't do what the user requested and control is returned to the developer > to fix the error. Ok, that makes sense. > I'm also uncertain about what you mean by the stopped event beeing missed ? I think a dprintf is treated as an internal breakpoint, so when one is hit, there is no *stopped event that Eclipse can see. This makes sense because we expect the execution to resume. However, in this case, the execution of the thread that hit the dprintf stayes suspended but we don't notify eclipse (with a *stopped event) so eclipse still shows everything as running, and things get stuck. > Also bug 15185 would not fix the isssue since we can only know about the bad > symbol at the runtime of that line since shared libraries could be loaded > dynamicaly thus we can't prevalidate the dprintf input as we enter it. It does seem like it would not be possible, but gdb is able to do some checking when we set conditions. I was hoping we could do something similar? I'll put a note in the relevant bug: (gdb) b 9 if ii<0 No symbol "ii" in current context. -- You are receiving this mail because: You are on the CC list for the bug.
next prev parent reply other threads:[~2015-02-05 18:23 UTC|newest] Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top 2014-02-10 18:18 [Bug breakpoints/16551] New: " marc.khouzam at ericsson dot com 2014-04-06 4:11 ` [Bug breakpoints/16551] " malaperle at gmail dot com 2015-02-05 16:24 ` antoine.tremblay at ericsson dot com 2015-02-05 18:23 ` antoine.tremblay at ericsson dot com 2015-02-05 18:24 ` marc.khouzam at ericsson dot com [this message] 2015-03-24 17:30 ` antoine.tremblay at ericsson dot com 2015-03-24 20:08 ` marc.khouzam at ericsson 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-16551-4717-6xV903CYhE@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).