This is the mail archive of the gdb@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]

Re: prgregset_t vs gdb_gregset_t on Linux: not the same!


On Fri, Jun 08, 2001 at 01:27:30PM -0700, Daniel Jacobowitz wrote:
> In proc-service.c, we call fill_gregset and supply_gregset with a
> prgregset_t cast to a gdb_gregset_t *.  The problem is, they really are
> different.  We can mostly get away with this, because in almost all cases
> glibc won't do anything with the gregset except pass it back to gdb again
> (if the process has terminated, it will memset something the size of a
> prgregset_t, though...).

The matching question here is that core-regset.c's fetch_core_registers
calls supply_gregset with a gregset_t, but supply_gregset is prototyped
with a gdb_gregset_t.  That doesn't work very well either.

-- 
Daniel Jacobowitz                           Debian GNU/Linux Developer
Monta Vista Software                              Debian Security Team


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