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] dwarf2 read_reg


   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


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