From: "Maciej W. Rozycki" <macro@codesourcery.com>
To: Yao Qi <yao@codesourcery.com>
Cc: <gdb-patches@sourceware.org>
Subject: Re: [PATCH 4/5] Move mips hardware watchpoint stuff to common/
Date: Wed, 24 Jul 2013 00:31:00 -0000 [thread overview]
Message-ID: <alpine.DEB.1.10.1307232234060.32382@tp.orcam.me.uk> (raw)
In-Reply-To: <1372475427-24862-5-git-send-email-yao@codesourcery.com>
On Sat, 29 Jun 2013, Yao Qi wrote:
> 2013-06-29 Yao Qi <yao@codesourcery.com>
>
> * Makefile.in ((HFILES_NO_SRCDIR): Add common/mips-linux-watch.h.
> (mips-linux-watch.o): New rule.
> * common/mips-linux-watch.c: New.
> * common/mips-linux-watch.h: New.
> * config/mips/linux.mh (NATDEPFILES): Add mips-linux-watch.o
> * mips-linux-nat.c: Don't include asm/ptrace. Include
> mips-linux-watch.h.
> (W_BIT, R_BIT, I_BIT, W_MASK, R_MASK, I_MASK, IRW_MASK): Move
> to common/mips-linux-watch.h.
> (MAX_DEBUG_REGISTER): Likewise.
> (enum pt_watch_style): Likewise.
> (struct mips32_watch_regs): Likewise.
> (struct mips64_watch_regs): Likewise.
> (struct pt_watch_regs): Likewise.
> (struct mips_watchpoint): Likewise.
> (mips_linux_watch_get_irw_mask): Move to
> common/mips-linux-watch.c.
> (get_reg_mask, mips_linux_watch_get_num_valid): Likewise.
> (mips_linux_watch_get_watchlo): Likewise.
> (mips_linux_watch_set_watchlo): Likewise.
> (mips_linux_watch_get_watchhi): Likewise.
> (mips_linux_watch_set_watchhi): Likewise.
> (mips_linux_read_watch_registers): Likewise.
> (mips_linux_watch_type_to_irw): Likewise.
> (mips_linux_stopped_data_address, fill_mask): Likewise.
> (mips_linux_watch_try_one_watch): Likewise.
> (mips_linux_watch_populate_regs): Likewise.
> ---
> gdb/Makefile.in | 6 +-
> gdb/common/mips-linux-watch.c | 352 ++++++++++++++++++++++++++++++++++
> gdb/common/mips-linux-watch.h | 129 +++++++++++++
> gdb/config/mips/linux.mh | 2 +-
> gdb/mips-linux-nat.c | 414 +----------------------------------------
> 5 files changed, 489 insertions(+), 414 deletions(-)
> create mode 100644 gdb/common/mips-linux-watch.c
> create mode 100644 gdb/common/mips-linux-watch.h
>
> diff --git a/gdb/common/mips-linux-watch.c b/gdb/common/mips-linux-watch.c
> new file mode 100644
> index 0000000..f107530
> --- /dev/null
> +++ b/gdb/common/mips-linux-watch.c
> @@ -0,0 +1,352 @@
> +/* Copyright (C) 2009-2013 Free Software Foundation, Inc.
The copyright years don't appear right to me. Either 2001-2013, taken
from gdb/mips-linux-nat.c, or just lone 2013 seem more appropriate to me,
but http://www.gnu.org/prep/maintain/maintain.html does not appear clear
to me on it -- would someone please step in and explain what GDB's usual
policy has been here?
Can you please reorder the sequence of functions moved here to match the
original one in gdb/mips-linux-nat.c?
Also, anyone: do we still aim to maintain gdb/config/djgpp/fnchange.lst?
If so, then on what basis -- ad hoc? ChangeLogs show most recent random
additions last year only and files appear to be missing from the listing.
> diff --git a/gdb/common/mips-linux-watch.h b/gdb/common/mips-linux-watch.h
> new file mode 100644
> index 0000000..4f91183
> --- /dev/null
> +++ b/gdb/common/mips-linux-watch.h
> @@ -0,0 +1,129 @@
> +/* Copyright (C) 2009-2013 Free Software Foundation, Inc.
Same copyright year concern as above.
> diff --git a/gdb/mips-linux-nat.c b/gdb/mips-linux-nat.c
> index af70945..27467f4 100644
> --- a/gdb/mips-linux-nat.c
> +++ b/gdb/mips-linux-nat.c
> @@ -34,7 +34,8 @@
>
> #include <sgidefs.h>
> #include <sys/ptrace.h>
> -#include <asm/ptrace.h>
> +
> +#include "mips-linux-watch.h"
You actually need to keep that <asm/ptrace.h> inclusion, per GDB's coding
requirements (see gdbint.info).
Please resend with the changes requested.
Maciej
next prev parent reply other threads:[~2013-07-24 0:31 UTC|newest]
Thread overview: 52+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-30 2:44 [PATCH 0/3] mips hardware watchpoint support in gdbserver Yao Qi
2013-05-30 2:44 ` [PATCH 2/3] Move mips hardware watchpoint stuff to common/ Yao Qi
2013-06-13 4:12 ` Yao Qi
2013-06-19 22:05 ` Maciej W. Rozycki
2013-06-20 14:21 ` Yao Qi
2013-06-20 15:27 ` Maciej W. Rozycki
2013-06-20 17:50 ` Joel Brobecker
2013-06-21 8:03 ` Maciej W. Rozycki
2013-06-21 15:55 ` Joel Brobecker
2013-05-30 2:44 ` [PATCH 3/3] MIPS h/w watchpoint in GDBserver Yao Qi
2013-06-13 8:20 ` Yao Qi
2013-06-13 13:09 ` Eli Zaretskii
2013-06-13 16:56 ` Pedro Alves
2013-06-19 22:22 ` Maciej W. Rozycki
2013-06-21 15:00 ` Pedro Alves
2013-05-30 2:44 ` [PATCH 1/3] Include asm/ptrace.h in mips-linux-nat.c Yao Qi
2013-06-13 17:49 ` Maciej W. Rozycki
2013-06-14 6:53 ` Yao Qi
2013-06-14 12:53 ` Maciej W. Rozycki
2013-06-20 19:40 ` Pedro Alves
2013-06-20 20:45 ` Maciej W. Rozycki
2013-06-21 14:58 ` Pedro Alves
2013-06-17 16:04 ` Maciej W. Rozycki
2013-05-30 12:29 ` [PATCH 0/3] mips hardware watchpoint support in gdbserver Maciej W. Rozycki
2013-05-30 18:06 ` Pedro Alves
2013-05-30 18:08 ` Pedro Alves
2013-06-29 3:11 ` [PATCH v2 0/5] " Yao Qi
2013-06-29 3:11 ` [PATCH 5/5] MIPS GDBserver watchpoint Yao Qi
2013-06-29 15:20 ` Eli Zaretskii
2013-07-24 0:35 ` Maciej W. Rozycki
2013-07-25 0:17 ` Yao Qi
2013-07-25 21:20 ` Maciej W. Rozycki
2013-07-28 0:49 ` Yao Qi
2013-07-24 18:11 ` Pedro Alves
2013-06-29 3:11 ` [PATCH 3/5] Refactor in mips-linux-nat.c Yao Qi
2013-07-24 0:27 ` Maciej W. Rozycki
2013-07-28 0:44 ` Yao Qi
2013-06-29 3:11 ` [PATCH 2/5] Include asm/ptrace.h " Yao Qi
2013-07-24 0:26 ` Maciej W. Rozycki
2013-07-28 0:43 ` Yao Qi
2013-06-29 3:11 ` [PATCH 1/5] Share 'enum target_hw_bp_type' in GDB and GDBserver Yao Qi
2013-07-24 0:26 ` Maciej W. Rozycki
2013-07-24 14:04 ` Tom Tromey
2013-07-28 0:41 ` Yao Qi
2013-06-29 8:01 ` [PATCH 4/5] Move mips hardware watchpoint stuff to common/ Yao Qi
2013-07-24 0:31 ` Maciej W. Rozycki [this message]
2013-07-24 2:08 ` Yao Qi
2013-07-24 18:09 ` Pedro Alves
2013-07-25 0:07 ` Yao Qi
2013-07-25 21:17 ` Maciej W. Rozycki
2013-07-28 0:47 ` Yao Qi
2013-07-22 1:11 ` [PATCH v2 0/5] mips hardware watchpoint support in gdbserver Yao Qi
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=alpine.DEB.1.10.1307232234060.32382@tp.orcam.me.uk \
--to=macro@codesourcery.com \
--cc=gdb-patches@sourceware.org \
--cc=yao@codesourcery.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