This is the mail archive of the gdb-prs@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: exp/1811: "set var x = y" doesn't work properly if sizeof(x)< sizeof(register)


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
 


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