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] |
Hello, Ada 2005 introduces the concept of "interface" types, a-la Java. Internally, the compiler added an extra hidden field inside the object structure which should not be displayed when printing the value of an object of that type. The attached patch teaches the debugger to ignore the field that points the the interface dispatch table. 2008-01-01 Joel Brobecker <brobecker@adacore.com> Implement support for Ada interface types. * ada-lang.c (ada_is_dispatch_table_ptr_type): New function. (ada_is_ignored_field): Ignore fields that are a dispatch table of a tagged type. I also added a testcase for this new feature: 2008-01-01 Joel Brobecker <brobecker@adacore.com> * gdb.ada/interface/types.ads, gdb.ada/interface/types.adb, gdb.ada/interface/foo.adb: New files. * gdb.ada/interface.exp: New testcase. Tested on x86-linux, no regression. All checked in. -- Joel
Attachment:
iface.diff
Description: Text document
Attachment:
iface-testcase.diff
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |