diff options
author | Tom Tromey <tom@tromey.com> | 2020-09-15 18:44:37 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2020-09-15 18:44:37 -0600 |
commit | 6b5a7bc768570edc15532759969cd9bff3f02c28 (patch) | |
tree | 59a29752067c8019fb858be4bc89a44e6c310be9 /gdb/ChangeLog | |
parent | ce0e8d978314a2d7e45be442fa0bc76412110ad4 (diff) | |
download | gdb-6b5a7bc768570edc15532759969cd9bff3f02c28.zip gdb-6b5a7bc768570edc15532759969cd9bff3f02c28.tar.gz gdb-6b5a7bc768570edc15532759969cd9bff3f02c28.tar.bz2 |
Handle member pointers directly in generic_value_print
TYPE_CODE_MEMBERPTR and TYPE_CODE_METHODPTR are only used for C++, so
it seems to me that the generic value-printing code ought to handle
these cases -- that way, printing these objects will work even when
the current language is not C++. This patch implements this idea.
gdb/ChangeLog
2020-09-15 Tom Tromey <tom@tromey.com>
* rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
and TYPE_CODE_METHODPTR cases.
* c-valprint.c (c_value_print_memberptr): Move to valprint.c.
(c_value_print_inner): Update.
* valprint.c (generic_value_print_memberptr): New function, from
c_value_print_memberptr.
(generic_value_print): Use it. Call cplus_print_method_ptr.
Diffstat (limited to 'gdb/ChangeLog')
-rw-r--r-- | gdb/ChangeLog | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 009314a..fe4b185 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,13 @@ +2020-09-15 Tom Tromey <tom@tromey.com> + + * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR + and TYPE_CODE_METHODPTR cases. + * c-valprint.c (c_value_print_memberptr): Move to valprint.c. + (c_value_print_inner): Update. + * valprint.c (generic_value_print_memberptr): New function, from + c_value_print_memberptr. + (generic_value_print): Use it. Call cplus_print_method_ptr. + 2020-09-15 Tom Tromey <tromey@adacore.com> * python/python-internal.h (PyInt_FromLong): Remove define. |