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: Question: Checking register value in buffer


On Thu, May 19, 2005 at 01:23:32PM +1000, Joel Brobecker wrote:
> Isn't this assument that LONGEST is exactly 64 bits? I think
> extract_signed_integer expands the value held in the given buffer
> to fit the size of LONGEST. Here is the implementation:

If you're confusing yourself with sign extension, use ULONGEST instead.
But this isn't the only thing that would break in GDB with 128-bit
types.  You really don't need to be this paranoid.

-- 
Daniel Jacobowitz
CodeSourcery, LLC


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