From: "Ulrich Weigand" <uweigand@de.ibm.com>
To: pedromfc@linux.ibm.com (Pedro Franco de Carvalho)
Cc: gdb-patches@sourceware.org, ulrich.weigand@de.ibm.com,
rcardoso@linux.ibm.com
Subject: Re: [PATCH v2 3/3] [PowerPC] Fix debug register issues in ppc-linux-nat
Date: Wed, 19 Feb 2020 13:46:00 -0000 [thread overview]
Message-ID: <20200219134601.810D0D802EA@oc3748833570.ibm.com> (raw)
In-Reply-To: <87lfoziqmw.fsf@linux.ibm.com> from "Pedro Franco de Carvalho" at Feb 18, 2020 05:31:35 PM
Pedro Franco de Carvalho wrote:
> "Ulrich Weigand" <uweigand@de.ibm.com> writes:
>
> > Can we simply store the installed slots map in here, instead of requiring
> > a whole new per-lwp map in m_installed_hw_bps?
>
> I had considered doing this, however, low_new_fork needs to copy the
> per-lwp state in case the debug registers are copied across forks, and
> this function is called before the lwp_info object for the new forked
> thread is constructed, which only happens in
> linux_nat_target::follow_fork.
Huh, indeed. It is strange that linux_handle_extended_wait creates
the new lwp_info for PTRACE_EVENT_CLONE events, but *not* for
PTRACE_EVENT_FORK / PTRACE_EVENT_VFORK. In the end, maybe everything
would be simpler if we did that ...
But that's probably not something that should hold up this patch,
so I guess I'm fine with the extra list.
> >> +ppc_linux_nat_target::hwdebug_point_cmp
> >> +(const struct ppc_hw_breakpoint &a, const struct ppc_hw_breakpoint &b)
> >
> > You're using this style in a number of places, but I don't think this
> > complies with the GNU coding style ... (The '(' should not be in the
> > first column.)
>
> I will change this. I had done this because even if I broke the line
> after the first argument, the line still had more than the soft limit of
> columns (74):
>
> ppc_linux_nat_target::hwdebug_point_cmp (const struct ppc_hw_breakpoint &a,
> const struct ppc_hw_breakpoint &b)
As long as it's under 80 columns, I think this should be fine.
Bye,
Ulrich
--
Dr. Ulrich Weigand
GNU/Linux compilers and toolchain
Ulrich.Weigand@de.ibm.com
next prev parent reply other threads:[~2020-02-19 13:46 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-02-14 20:55 [PATCH v2 0/3] low_new_clone in linux-nat.c and powerpc watchpoint fixes Pedro Franco de Carvalho
2020-02-14 20:55 ` [PATCH v2 1/3] Add low_new_clone method to linux_nat_target Pedro Franco de Carvalho
2020-02-17 17:49 ` Ulrich Weigand
2020-02-14 20:55 ` [PATCH v2 3/3] [PowerPC] Fix debug register issues in ppc-linux-nat Pedro Franco de Carvalho
2020-02-17 17:47 ` Ulrich Weigand
2020-02-18 20:31 ` Pedro Franco de Carvalho
2020-02-19 13:46 ` Ulrich Weigand [this message]
2020-03-13 20:19 ` Pedro Franco de Carvalho
2020-03-27 18:50 ` Pedro Franco de Carvalho
2020-03-27 18:54 ` [PATCH] " Pedro Franco de Carvalho
2020-03-30 13:04 ` Ulrich Weigand
2020-03-30 13:03 ` [PATCH v2 3/3] " Ulrich Weigand
2020-03-30 15:13 ` Pedro Franco de Carvalho
2020-02-14 20:55 ` [PATCH v2 2/3] [PowerPC] Move up some register access routines Pedro Franco de Carvalho
2020-02-17 17:48 ` Ulrich Weigand
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=20200219134601.810D0D802EA@oc3748833570.ibm.com \
--to=uweigand@de.ibm.com \
--cc=gdb-patches@sourceware.org \
--cc=pedromfc@linux.ibm.com \
--cc=rcardoso@linux.ibm.com \
--cc=ulrich.weigand@de.ibm.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