* [RFA] Make breakpoint condition detection trace conditional on remote_debug.
@ 2012-03-08 18:42 Joel Brobecker
2012-03-08 18:50 ` Pedro Alves
2012-03-08 23:17 ` Luis Gustavo
0 siblings, 2 replies; 8+ messages in thread
From: Joel Brobecker @ 2012-03-08 18:42 UTC (permalink / raw)
To: gdb-patches; +Cc: Joel Brobecker
Hello,
I am investigating a problem where a breakpoint with a condition
no longer stops the program when running the program through gdbserver.
One of the things I noticed is this message that keeps popping up in
the gdbserver output:
% gdbserver :4444 a
Process a created; pid = 10100
Listening on port 4444
Remote debugging from host 127.0.0.1
Found breakpoint condition.
Found breakpoint condition.
Found breakpoint condition.
This looks like a debugging trace that should only be enable if
requested.
What do you guys think of this patch. I'm a little under pressure,
so I didn't test the patch, but I will if it looks correct. I wasn't
sure whether I should have used debug_threads or remote_debug...
gdb/gdbserver/ChangeLog:
* server.c (process_point_options): If a conditional expression
is found, only print a message if remote_debug is nonzero.
Thanks,
--
Joel
---
gdb/gdbserver/server.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/gdb/gdbserver/server.c b/gdb/gdbserver/server.c
index 586581c..3c97dbd 100644
--- a/gdb/gdbserver/server.c
+++ b/gdb/gdbserver/server.c
@@ -2908,7 +2908,8 @@ process_point_options (CORE_ADDR point_addr, char **packet)
{
case 'X':
/* Conditional expression. */
- fprintf (stderr, "Found breakpoint condition.\n");
+ if (remote_debug)
+ fprintf (stderr, "Found breakpoint condition.\n");
add_breakpoint_condition (point_addr, &dataptr);
break;
default:
--
1.7.1
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [RFA] Make breakpoint condition detection trace conditional on remote_debug.
2012-03-08 18:42 [RFA] Make breakpoint condition detection trace conditional on remote_debug Joel Brobecker
@ 2012-03-08 18:50 ` Pedro Alves
2012-03-08 20:56 ` Joel Brobecker
2012-03-08 23:17 ` Luis Gustavo
1 sibling, 1 reply; 8+ messages in thread
From: Pedro Alves @ 2012-03-08 18:50 UTC (permalink / raw)
To: Joel Brobecker; +Cc: gdb-patches
On 03/08/2012 06:42 PM, Joel Brobecker wrote:
> gdb/gdbserver/ChangeLog:
>
> * server.c (process_point_options): If a conditional expression
> is found, only print a message if remote_debug is nonzero.
Yes, please. Thanks.
--
Pedro Alves
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [RFA] Make breakpoint condition detection trace conditional on remote_debug.
2012-03-08 18:50 ` Pedro Alves
@ 2012-03-08 20:56 ` Joel Brobecker
2012-03-08 22:23 ` Joel Brobecker
0 siblings, 1 reply; 8+ messages in thread
From: Joel Brobecker @ 2012-03-08 20:56 UTC (permalink / raw)
To: Pedro Alves; +Cc: gdb-patches
> > gdb/gdbserver/ChangeLog:
> >
> > * server.c (process_point_options): If a conditional expression
> > is found, only print a message if remote_debug is nonzero.
>
>
> Yes, please. Thanks.
Thanks, Pedro. Tested on x86_64-linux, and now checked in.
--
Joel
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [RFA] Make breakpoint condition detection trace conditional on remote_debug.
2012-03-08 20:56 ` Joel Brobecker
@ 2012-03-08 22:23 ` Joel Brobecker
0 siblings, 0 replies; 8+ messages in thread
From: Joel Brobecker @ 2012-03-08 22:23 UTC (permalink / raw)
To: Pedro Alves; +Cc: gdb-patches
> > > gdb/gdbserver/ChangeLog:
> > >
> > > * server.c (process_point_options): If a conditional expression
> > > is found, only print a message if remote_debug is nonzero.
> >
> >
> > Yes, please. Thanks.
>
> Thanks, Pedro. Tested on x86_64-linux, and now checked in.
Actually, I initially pushed the wrong patch by accident:
[RFA] ax-gdb: Do not treat enums and bools as integers.
http://www.sourceware.org/ml/gdb-patches/2012-03/msg00287.html
Thanks to Pedro for letting me know.
I pushed the correct patch, now. Yeah. I think...
http://sourceware.org/ml/gdb-cvs/2012-03/msg00140.html
--
Joel
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [RFA] Make breakpoint condition detection trace conditional on remote_debug.
2012-03-08 18:42 [RFA] Make breakpoint condition detection trace conditional on remote_debug Joel Brobecker
2012-03-08 18:50 ` Pedro Alves
@ 2012-03-08 23:17 ` Luis Gustavo
2012-03-08 23:33 ` Joel Brobecker
1 sibling, 1 reply; 8+ messages in thread
From: Luis Gustavo @ 2012-03-08 23:17 UTC (permalink / raw)
To: Joel Brobecker; +Cc: gdb-patches
On 03/08/2012 03:42 PM, Joel Brobecker wrote:
> Hello,
>
> I am investigating a problem where a breakpoint with a condition
> no longer stops the program when running the program through gdbserver.
> One of the things I noticed is this message that keeps popping up in
> the gdbserver output:
>
> % gdbserver :4444 a
> Process a created; pid = 10100
> Listening on port 4444
> Remote debugging from host 127.0.0.1
> Found breakpoint condition.
> Found breakpoint condition.
> Found breakpoint condition.
>
> This looks like a debugging trace that should only be enable if
> requested.
>
> What do you guys think of this patch. I'm a little under pressure,
> so I didn't test the patch, but I will if it looks correct. I wasn't
> sure whether I should have used debug_threads or remote_debug...
>
> gdb/gdbserver/ChangeLog:
>
> * server.c (process_point_options): If a conditional expression
> is found, only print a message if remote_debug is nonzero.
>
> Thanks,
Thanks for the fix, it is the right thing.
Do you have the testcase handy? I can do some digging...
Did the condition go to the target? How did it evaluate?
Luis
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [RFA] Make breakpoint condition detection trace conditional on remote_debug.
2012-03-08 23:17 ` Luis Gustavo
@ 2012-03-08 23:33 ` Joel Brobecker
2012-03-08 23:40 ` Luis Gustavo
0 siblings, 1 reply; 8+ messages in thread
From: Joel Brobecker @ 2012-03-08 23:33 UTC (permalink / raw)
To: Luis Gustavo; +Cc: gdb-patches
> Thanks for the fix, it is the right thing.
You are welcome.
> Do you have the testcase handy? I can do some digging...
> Did the condition go to the target? How did it evaluate?
Which testcase are you referring to?
--
Joel
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [RFA] Make breakpoint condition detection trace conditional on remote_debug.
2012-03-08 23:33 ` Joel Brobecker
@ 2012-03-08 23:40 ` Luis Gustavo
2012-03-08 23:56 ` Joel Brobecker
0 siblings, 1 reply; 8+ messages in thread
From: Luis Gustavo @ 2012-03-08 23:40 UTC (permalink / raw)
To: Joel Brobecker; +Cc: gdb-patches
On 03/08/2012 08:32 PM, Joel Brobecker wrote:
>> Thanks for the fix, it is the right thing.
>
> You are welcome.
>
>> Do you have the testcase handy? I can do some digging...
>> Did the condition go to the target? How did it evaluate?
>
> Which testcase are you referring to?
>
You mentioned a problem where a conditional breakpoint no longer stops
where it should when using gdbserver. I'm assuming it is a regression we
didn't catch with GDB's testsuite when testing the target-side condition
patches.
Is this the case or is it something else?
Luis
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [RFA] Make breakpoint condition detection trace conditional on remote_debug.
2012-03-08 23:40 ` Luis Gustavo
@ 2012-03-08 23:56 ` Joel Brobecker
0 siblings, 0 replies; 8+ messages in thread
From: Joel Brobecker @ 2012-03-08 23:56 UTC (permalink / raw)
To: Luis Gustavo; +Cc: gdb-patches
> You mentioned a problem where a conditional breakpoint no longer
> stops where it should when using gdbserver. I'm assuming it is a
> regression we didn't catch with GDB's testsuite when testing the
> target-side condition patches.
>
> Is this the case or is it something else?
Aaaaah :-). That's:
[RFA] ax-gdb: Do not treat enums and bools as integers.
http://www.sourceware.org/ml/gdb-patches/2012-03/msg00287.html
The problem is easy to understand. But unfortunately, I am unable
to produce a testcase outside of the proprietary code that shows
the problem (http://www.sourceware.org/ml/gdb-patches/2012-03/msg00302.html).
But thanks for the offer!
--
Joel
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2012-03-08 23:56 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-08 18:42 [RFA] Make breakpoint condition detection trace conditional on remote_debug Joel Brobecker
2012-03-08 18:50 ` Pedro Alves
2012-03-08 20:56 ` Joel Brobecker
2012-03-08 22:23 ` Joel Brobecker
2012-03-08 23:17 ` Luis Gustavo
2012-03-08 23:33 ` Joel Brobecker
2012-03-08 23:40 ` Luis Gustavo
2012-03-08 23:56 ` Joel Brobecker
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox