This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFA] dwarf2 read_reg
- From: Mark Kettenis <kettenis at chello dot nl>
- To: hunt at redhat dot com
- Cc: gdb-patches at sources dot redhat dot com
- Date: Tue, 8 Jun 2004 09:53:39 +0200 (CEST)
- Subject: Re: [RFA] dwarf2 read_reg
- References: <1086667710.5507.27.camel@hunt.cipe.redhat.com>
From: "Martin M. Hunt" <hunt@redhat.com>
Date: Mon, 07 Jun 2004 21:08:31 -0700
The read_reg() function made an assumption that sizeof pointer
was the same as a register size. This broke lots of things
for architectures like mips.
2004-05-26 Martin Hunt <hunt@redhat.com>
* dwarf2-frame.c (read_reg): Use register_size() instead
of sizeof pointer.
And your patch makes the assumption that addresses are signed, which
breaks architectures where addesses are unsigned.
Mark