This is the mail archive of the gdb-patches@sourceware.org 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]

[commit/ada] Fix EXPR'Size when EXPR is a TYPE_CODE_REF


Hello,

The debugger prints the wrong size when asked to print the size of
an entity that's a reference. We were printing the size of the
reference, not the size of the actual object!  Fixed thusly.

2008-10-07  Joel Brobecker  <brobecker@adacore.com>

        * ada-lang.c (ada_evaluate_subexp) [OP_ATR_SIZE]: Add handling
        of arguments that are references.

2008-10-07  Joel Brobecker  <brobecker@adacore.com>

        * gdb.ada/ref_tick_size.exp: New testcase.

Tested on x86-linux, with no regression. Checked in.

Cheers,
-- 
Joel

Attachment: ref_tick_size.diff
Description: Text document


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