From: Vladimir Prus <vladimir@codesourcery.com>
To: Aleksandar Ristovski <aristovski@qnx.com>
Cc: gdb-patches@sources.redhat.com, nickrob@snap.net.nz
Subject: Re: [patch] fix for PR2424
Date: Mon, 10 Mar 2008 08:11:00 -0000 [thread overview]
Message-ID: <200803101111.13222.vladimir@codesourcery.com> (raw)
In-Reply-To: <47D32B57.5020203@qnx.com>
On Sunday 09 March 2008 03:12:07 you wrote:
> Vladimir Prus wrote:
> > FWIW, you don't say what function in mi-support.exp is changed,
> > and it would be better if your patch was generated with -u (unified diff,
> > 3 lines of context) -- the current one has no context at all, so I
> > can only guess which function that is.
>
> Please find attached new diffs.
>
>
> >
> > Speaking of the problem itself -- in PR2424 you say:
> >
> > When inferior stops at temporary breakpoint, message is:
> > *stopped,thread-id="0",.......
> > without mentioning "reason=breakpoint-hit"
> > This causes issues for multithreaded programs.
> >
> > What issues does it cause for MT programs?
>
> When inferior hits a temporary breakpoint, due to breakpoint removal the reason
> for stop is "lost in translation". This leaves user guessing what the reason for
> stop was. This is applicable to both single and multi threaded inferiors, but
> gets more annoying when multiple threads exist since then client program (in my
> case IDE - CDT) can not figure out which thread caused the stop
The GDB output you have provided above actually includes thread id, so what problem
does CDT have with figuring thread? In fact, CDT4's RxThread.java has the following:
// We were stopped for some unknown reason, for example
// GDB for temporary breakpoints will not send the
// "reason" ??? still fire a stopped event.
if (list.isEmpty()) {
if (session.getMIInferior().isRunning()) {
session.getMIInferior().setSuspended();
MIEvent event = new MIStoppedEvent(session, rr);
session.fireEvent(event);
}
}
> in addition to
> not knowing the reason (I am not working on CDT but I was explained that missing
> "reason" is to blame, and after the patch I proposed I was told things now work
> as expected).
So, could it be a CDT issue, after all?
> @Nick: I think the breakpoint should be reported. The fact that it is temporary
> doesn't make it much different than a regular breakpoint... but maybe I'm
> missing something.
Independent of actually CDT issue, I still think accurately reporting stop reason
would be good. Can we probably look at breakpoints 'disp' field and either
print "Breakpoint" or "Temporary breakpoint", and likewise either "breakpoint-hit" or
"temporary-breakpoint-hit", in breakpoint.c:print_it_typical?
- Volodya
next prev parent reply other threads:[~2008-03-10 8:11 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-05 17:36 Aleksandar Ristovski
2008-03-08 11:31 ` Nick Roberts
2008-03-08 18:36 ` Vladimir Prus
2008-03-09 0:12 ` Aleksandar Ristovski
2008-03-09 3:32 ` Nick Roberts
2008-03-09 4:55 ` Aleksandar Ristovski
2008-03-10 8:11 ` Vladimir Prus [this message]
2008-03-10 14:29 ` Aleksandar Ristovski
2008-03-10 14:45 ` Vladimir Prus
2008-03-10 17:18 ` Aleksandar Ristovski
2008-03-10 17:36 ` Vladimir Prus
2008-03-10 18:50 ` Aleksandar Ristovski
2008-04-01 19:41 Aleksandar Ristovski
2008-04-14 15:16 Aleksandar Ristovski
2008-04-14 18:06 ` Daniel Jacobowitz
2008-04-15 15:07 Aleksandar Ristovski
2008-04-15 15:25 ` Daniel Jacobowitz
2008-04-16 13:17 ` Vladimir Prus
2008-04-23 11:16 ` Vladimir Prus
2008-04-15 15:31 Aleksandar Ristovski
2008-04-16 18:28 Aleksandar Ristovski
2008-04-23 17:48 Aleksandar Ristovski
2008-04-23 17:49 ` Vladimir Prus
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=200803101111.13222.vladimir@codesourcery.com \
--to=vladimir@codesourcery.com \
--cc=aristovski@qnx.com \
--cc=gdb-patches@sources.redhat.com \
--cc=nickrob@snap.net.nz \
/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