From: Antoine Tremblay <antoine.tremblay@ericsson.com>
To: Pedro Alves <palves@redhat.com>, <gdb-patches@sourceware.org>
Subject: Re: [PATCH] Fix inconsistent breakpoint kinds between breakpoints and tracepoints in GDBServer.
Date: Thu, 22 Oct 2015 16:14:00 -0000 [thread overview]
Message-ID: <5628FF01.3080607@ericsson.com> (raw)
In-Reply-To: <5628FE0C.5090309@redhat.com>
On 10/22/2015 11:17 AM, Pedro Alves wrote:
> On 10/22/2015 04:06 PM, Antoine Tremblay wrote:
>> This patch fixes a regression introduced by :
>> https://sourceware.org/ml/gdb-patches/2015-10/msg00369.html
>>
>> Tests : gdb.trace/trace-break.exp and gdb.trace/trace-mt.exp would fail on x86
>> with gdbserver-{native,extended}.
>>
>> Before this patch, the breakpoint kind set by GDB with a Z packet and the one
>> set in the case of a tracepoint would be inconsistent on targets that did not
>> implement breakpoint_kind_from_pc. On x86 for example a breakpoint set by GDB
>> would have a kind of 1 but a breakpoint set by a tracepoint would have a kind of
>> 0.
>
> Bummer. :-/ But, wouldn't it work to make the default be instead:
>
> int
> default_breakpoint_kind_from_pc (CORE_ADDR *pcptr)
> {
> int size;
>
> target_sw_breakpoint_from_kind (0, &size);
> return size;
> }
>
> ?
>
Indeed it would fixing.
next prev parent reply other threads:[~2015-10-22 15:21 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-22 16:04 Antoine Tremblay
2015-10-22 16:11 ` Pedro Alves
2015-10-22 16:14 ` Antoine Tremblay [this message]
2015-10-22 16:23 ` [PATCH v2] " Antoine Tremblay
2015-10-22 16:26 ` Pedro Alves
2015-10-22 17:42 ` Antoine Tremblay
2015-10-22 19:58 ` Pedro Alves
2015-10-22 19:58 ` Antoine Tremblay
2015-10-22 19:58 ` Pedro Alves
2015-10-23 1:42 ` Antoine Tremblay
2015-10-23 8:18 ` Antoine Tremblay
2015-10-23 8:52 ` Pedro Alves
2015-10-23 15:05 ` Antoine Tremblay
2015-10-23 16:48 ` Antoine Tremblay
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=5628FF01.3080607@ericsson.com \
--to=antoine.tremblay@ericsson.com \
--cc=gdb-patches@sourceware.org \
--cc=palves@redhat.com \
/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