[rfa] new test, pr-1090.exp, multi-register variables

Daniel Jacobowitz drow@mvista.com
Mon Feb 24 04:17:00 GMT 2003


On Sun, Feb 23, 2003 at 09:55:44PM -0600, Michael Elizabeth Chastain wrote:
> This is a new test script for pr gdb/1090, which is about register
> variables which occupy several registers.  Both gdb 5.3 and gdb
> HEAD%20030223 get this wrong.  In my testbed, this happens with
> gcc 2.95.3; gcc v3 compilers don't allocate multi-register variables.
> 
> The symptom of this bug is that gdb prints the first word of a
> structure correctly but botches the second word.  The test has a nice
> KFAIL for this.
> 
> Okay to commit?

You may want to see gdb/214.  Mark posted a proposal for solving it to
gdb@ some weeks ago and it never went further; I don't remember what
the verdict was.

Some day very soon we'll have GDB support to describe this explicitly;
some day after that GCC will output the appropriate debug info
(DW_OP_piece).  May be a little while.

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer



More information about the Gdb-patches mailing list