This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFA] gdbserver bits
On Thu, Jul 18, 2002 at 05:33:24PM +0200, Michal Ludvig wrote:
> Daniel Jacobowitz wrote:
> >Go ahead. Doesn't GDB have the same problem with CS and SS?
>
> Well, yes actually. But in GDB it doesn't make problems, because there
> the regbuf is zeroed after allocation so it cannot happen, that you'd
> write something wrong to CS or SS (at least on x86-64 the kernel doesn't
> permit setting CS since it uses it for it's own purposes).
> Consider cleaning the newly allocated regbuf in gdbserver as well...
I don't think I will; writing arbitrary zeros is just as damaging as
writing a bad regset. The whole thing needs to be set.
--
Daniel Jacobowitz Carnegie Mellon University
MontaVista Software Debian GNU/Linux Developer