diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2011-10-09 19:10:52 +0000 |
---|---|---|
committer | Jan Kratochvil <jan.kratochvil@redhat.com> | 2011-10-09 19:10:52 +0000 |
commit | b6cdc2c1b50937e63d8a9b3a462015912fc3587e (patch) | |
tree | 3c6750ca3af9189037428a6cb8d7736b855f4872 /gdb/gdb-gdb.py | |
parent | 181cebd4f8897990b94df2d979b16911d2281657 (diff) | |
download | gdb-b6cdc2c1b50937e63d8a9b3a462015912fc3587e.zip gdb-b6cdc2c1b50937e63d8a9b3a462015912fc3587e.tar.gz gdb-b6cdc2c1b50937e63d8a9b3a462015912fc3587e.tar.bz2 |
gdb/
Code reshuffle.
* gdb-gdb.py (StructMainTypePrettyPrinter): Change
TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC. Move
calling_convention under func_stuff there.
* gdbtypes.c (make_function_type): Call INIT_FUNC_SPECIFIC.
(init_type) <TYPE_CODE_FUNC>: Likewise.
(recursive_dump_type): Change TYPE_SPECIFIC_CALLING_CONVENTION to
TYPE_SPECIFIC_FUNC. New comment for tail_call_list.
* gdbtypes.h (enum type_specific_kind): Change
TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC.
(struct main_type) <type_specific>: Change calling_convention to
func_stuff. Move calling_convention to ...
(struct func_type): ... this new struct.
(INIT_FUNC_SPECIFIC): New #define.
(TYPE_CALLING_CONVENTION): Change calling_convention to func_stuff.
Diffstat (limited to 'gdb/gdb-gdb.py')
-rw-r--r-- | gdb/gdb-gdb.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/gdb-gdb.py b/gdb/gdb-gdb.py index 17adee8..ae1d742 100644 --- a/gdb/gdb-gdb.py +++ b/gdb/gdb-gdb.py @@ -201,9 +201,10 @@ class StructMainTypePrettyPrinter: % type_specific['gnat_stuff']['descriptive_type']) elif type_specific_kind == "TYPE_SPECIFIC_FLOATFORMAT": img = "floatformat[0..1] = %s" % type_specific['floatformat'] - elif type_specific_kind == "TYPE_SPECIFIC_CALLING_CONVENTION": + elif type_specific_kind == "TYPE_SPECIFIC_FUNC": img = ("calling_convention = %d" - % type_specific['calling_convention']) + % type_specific['func_stuff']['calling_convention']) + # tail_call_list is not printed. else: img = ("type_specific = ??? (unknown type_secific_kind: %s)" % type_specific_kind) |