This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH 3/3] [PowerPC] Fix debug register issues in ppc-linux-nat
- From: Pedro Franco de Carvalho <pedromfc at linux dot ibm dot com>
- To: Ulrich Weigand <uweigand at de dot ibm dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Fri, 09 Aug 2019 12:53:03 -0300
- Subject: Re: [PATCH 3/3] [PowerPC] Fix debug register issues in ppc-linux-nat
- References: <20190809152845.C680AD802D2@oc3748833570.ibm.com>
"Ulrich Weigand" <uweigand@de.ibm.com> writes:
> But it seems what would work reliably is to delete slots from 1 to max,
> while ignoring ENOENT, right? In fact, you don't even need to know the
> max slot number, because you'll get EINVAL if and only if you're attempting
> to delete the first slot after max (assuming you do it in sequence).
Yes, this should work and should make the next version simpler. I'll
make a new version of the patch.
Thanks!
--
Pedro Franco de Carvalho