This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFA] gdbserver bits


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...

Michal Ludvig
--
* SuSE CR, s.r.o * mludvig@suse.cz
* +420 2 9654 5373 * http://www.suse.cz


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]