public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
From: "antoine.tremblay 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: Tue, 24 Mar 2015 17:30:00 -0000	[thread overview]
Message-ID: <bug-16551-4717-DSOd1c9zY9@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 #3 from Antoine Tremblay <antoine.tremblay at ericsson dot com> ---
After much thought and some discussion on the gdb ml...

There was a few options :

Having a generic *stopped,error="xxx" event : was ruled out due to the
complexity of making this generic in gdb... unfortuanately we can't update the
thread state properly in case of error because of implementation details see :
https://sourceware.org/ml/gdb-patches/2015-02/msg00701.html

Having an *error aync message : This seemed like a good idea but it would
impact all the calls to print_exception, to be mi aware and sync/async aware
too, it seems like a bad idea code wise to mix that code.

We're left with the option to treat messages that start with "&" as a signal to
let the frontend know it should refresh it state.

I think this is the best option now since it basically does what the *error
async message would do and it's already implemented cleanly in gdb.

Note that the "&" prefix is directly associated with a print to stderr in gdb,
so we can safely assume it's an error signal.

So opon receiving a message starting with & the front end would refresh it's
state..

Marc does that sounds like an option for eclipse ?

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


  parent reply	other threads:[~2015-03-24 15:09 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
2015-03-24 17:30 ` antoine.tremblay at ericsson dot com [this message]
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-DSOd1c9zY9@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: link
Be 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).