From: Antoine Tremblay <antoine.tremblay@ericsson.com>
To: Pedro Alves <palves@redhat.com>
Cc: GDB <gdb-patches@sourceware.org>
Subject: Re: [PATCH v2] Fix inconsistent breakpoint kinds between breakpoints and tracepoints in GDBServer.
Date: Fri, 23 Oct 2015 15:05:00 -0000 [thread overview]
Message-ID: <56290E21.3020200@ericsson.com> (raw)
In-Reply-To: <56290D67.6080100@redhat.com>
On 10/22/2015 12:23 PM, Pedro Alves wrote:
> On 10/22/2015 05:18 PM, Antoine Tremblay wrote:
>>
>>
>> On 10/22/2015 12:16 PM, Antoine Tremblay wrote:
>>>
>>>
>>> On 10/22/2015 12:11 PM, Pedro Alves wrote:
>
>>>> You don't need this one nor the equivalent in other ports if you
>>>> add this to target.h:
>>>>
>>>> #define target_breakpoint_kind_from_pc(PCPTR) \
>>>> (the_target->breakpoint_kind_from_pc \
>>>> ? (*the_target->breakpoint_kind_from_pc) (PCPTR) \
>>>> : default_breakpoint_kind_from_pc ())
>>>>
>>>> (see the other similar macros there)
>>>>
>>>> You'll need to adjust callers to call target_breakpoint_kind_from_pc
>>>> instead, of course.
>>>>
>>>
>
>>> Yes but then I would need a os_arch_sw_breakpoint_from_kind operation in
>>> all the arch that this os supports (and that I can't test), you think
>>> it's still better that way ?
>>>
>>
>> Unless I have another macro that checks for the sw_breakpoint_from_kind
>> and if abscent returns breakpoint_len... I could do that I guess..
>
> I guess I'm confused. Why doesn't what you already had, like
> below, work as is?
>
> static const gdb_byte *
> win32_sw_breakpoint_from_kind (int kind, int *size)
> {
> *size = the_low_target.breakpoint_len;
> return the_low_target.breakpoint;
> }
>
Ho yes it would, sorry I was confused I though you meant remove both
win32_breakpoint_kind_from_pc and win32_sw_breakpoint_from_kind before.
Removing only win32_breakpoint_kind_from_pc and adding the default macro
works.
Thanks,
Antoine
next prev parent reply other threads:[~2015-10-22 16:26 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-22 16:04 [PATCH] " Antoine Tremblay
2015-10-22 16:11 ` Pedro Alves
2015-10-22 16:14 ` Antoine Tremblay
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 [this message]
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=56290E21.3020200@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