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 error when dereferencing an integer


Hello,

I noticed that the current GDB fails when trying to dereference
an integer.  This is a regression that appeared after we changed
value_ind to stop accepting TYPE_CODE_INT values...

For example, if "watch" is a variable:

    (gdb) print *integer(watch'address)
    Attempt to take contents of a non-pointer value.
    (gdb) print integer(watch'address).all
    Attempt to take contents of a non-pointer value.

gdb/:
2008-11-15  Joel Brobecker  <brobecker@adacore.com>

        * ada-lang.c (ada_evaluate_subexp): Improve handling of integer
        type dereferencing.

gdb/testsuite/:
2008-11-15  Joel Brobecker  <brobecker@adacore.com>

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

Tested on x86-linux. Checked in.

-- 
Joel

Attachment: ada-lang.c.diff
Description: Text document

Attachment: ada-lang-tc.diff
Description: Text document


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