From: "Aktemur, Tankut Baris" <tankut.baris.aktemur@intel.com>
To: Pedro Alves <palves@redhat.com>,
"gdb-patches@sourceware.org" <gdb-patches@sourceware.org>
Subject: RE: [PATCH 10/31] gdbserver/linux-low: turn 'breakpoint_kind_from_{pc, current_state}' into methods
Date: Wed, 1 Apr 2020 19:39:24 +0000 [thread overview]
Message-ID: <SN6PR11MB2893AC7D9138DB4FC16ECD59C4C90@SN6PR11MB2893.namprd11.prod.outlook.com> (raw)
In-Reply-To: <52fef52c-7e11-179f-81fc-a373be1e3b0f@redhat.com>
On Wednesday, April 1, 2020 9:16 PM, Pedro Alves wrote:
> On 3/6/20 9:31 PM, Tankut Baris Aktemur wrote:
> > @@ -257,7 +259,7 @@ riscv_breakpoint_kind_from_pc (CORE_ADDR *pcptr)
> > }
> > buf;
> >
> > - if (target_read_memory (*pcptr, buf.bytes, sizeof (buf.insn)) == 0
> > + if (read_memory (*pcptr, buf.bytes, sizeof (buf.insn)) == 0
>
> Is this really correct? It seems like an unrelated change.
> target_read_memory masks off breakpoint instructions, while read_memory
> doesn't, I believe.
You're right. I was under the impression that target_read_memory was a macro
for the_target->read_memory. It's not. I'll check the entire series for
other occurrences of this and also target_write_memory.
Thanks.
-Baris
Intel Deutschland GmbH
Registered Address: Am Campeon 10-12, 85579 Neubiberg, Germany
Tel: +49 89 99 8853-0, www.intel.de
Managing Directors: Christin Eisenschmid, Gary Kershaw
Chairperson of the Supervisory Board: Nicole Lau
Registered Office: Munich
Commercial Register: Amtsgericht Muenchen HRB 186928
next prev parent reply other threads:[~2020-04-01 19:39 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <cover.1583529166.git.tankut.baris.aktemur@intel.com>
2020-03-19 20:13 ` [PING][PATCH 00/31] Turn gdbserver's linux low targets into classes Tankut Baris Aktemur
[not found] ` <2f5f8156b5f3ceeff985dbd1af983e1212f9027e.1583529166.git.tankut.baris.aktemur@intel.com>
2020-04-01 19:15 ` [PATCH 10/31] gdbserver/linux-low: turn 'breakpoint_kind_from_{pc, current_state}' into methods Pedro Alves
2020-04-01 19:39 ` Aktemur, Tankut Baris [this message]
[not found] ` <348df510a72e111a2ce21892a50dc7ec506e2834.1583529167.git.tankut.baris.aktemur@intel.com>
2020-04-01 21:13 ` [PATCH 13/31] gdbserver/linux-low: move 'decr_pc_after_break' into linux_process_target Pedro Alves
2020-04-01 21:16 ` [PATCH 00/31] Turn gdbserver's linux low targets into classes Pedro Alves
2020-04-02 7:33 ` Aktemur, Tankut Baris
[not found] ` <57c78a1670f509b6167fe2065fa64dff37dd22c5.1583529167.git.tankut.baris.aktemur@intel.com>
2020-05-16 8:07 ` [PATCH 14/31] gdbserver/linux-low: turn 'breakpoint_at' into a method Andreas Schwab
2020-05-16 8:49 ` Aktemur, Tankut Baris
[not found] ` <9d3e8912ac039651e2e3eec2a3db2bf2bee92a4c.1583529167.git.tankut.baris.aktemur@intel.com>
2020-05-16 8:08 ` [PATCH 11/31] gdbserver/linux-low: turn 'sw_breakpoint_from_kind' " Andreas Schwab
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=SN6PR11MB2893AC7D9138DB4FC16ECD59C4C90@SN6PR11MB2893.namprd11.prod.outlook.com \
--to=tankut.baris.aktemur@intel.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