This is the mail archive of the
gdb-prs@sources.redhat.com
mailing list for the GDB project.
Re: exp/1811: "set var x = y" doesn't work properly if sizeof(x)< sizeof(register)
- From: Andrew Cagney <ac131313 at redhat dot com>
- To: nobody at sources dot redhat dot com
- Cc: gdb-prs at sources dot redhat dot com,
- Date: 18 Nov 2004 16:58:03 -0000
- Subject: Re: exp/1811: "set var x = y" doesn't work properly if sizeof(x)< sizeof(register)
- Reply-to: Andrew Cagney <ac131313 at redhat dot com>
The following reply was made to PR exp/1811; it has been noted by GNATS.
From: Andrew Cagney <ac131313@redhat.com>
To: gdb-gnats@sources.redhat.com
Cc:
Subject: Re: exp/1811: "set var x = y" doesn't work properly if sizeof(x)
< sizeof(register)
Date: Thu, 18 Nov 2004 11:49:44 -0500
>> Check:
>>>
>>> else if (CONVERT_REGISTER_P (regnum, type))
>
>
> hm... i don't think we hit that code in this case (if we do set x = 4
> where x is a stack variable)?
>
> through some more experimentations i'm getting more convinced that this
> is actually a gcc problem. gcc-4.0 generates different dwarf info for
> this example and makes this case work correctly.
So the debug info is describing an on stack variable with a wrong
address or type, yep.
Andrew