diff options
author | Hannes Domani <ssbssa@yahoo.de> | 2020-10-06 17:20:20 +0200 |
---|---|---|
committer | Hannes Domani <ssbssa@yahoo.de> | 2020-10-22 19:33:40 +0200 |
commit | 1a97fe8cf52a18672ffc2aafa1d209314dd65bde (patch) | |
tree | bda460753dacb55c8786f06fae40f6762a3805e4 | |
parent | 6b9d0dfda4787a072d8e61b6407d5ce42a936a1a (diff) | |
download | gdb-1a97fe8cf52a18672ffc2aafa1d209314dd65bde.zip gdb-1a97fe8cf52a18672ffc2aafa1d209314dd65bde.tar.gz gdb-1a97fe8cf52a18672ffc2aafa1d209314dd65bde.tar.bz2 |
Remove gdb_assert for TYPE_CODE_METHOD in stabs reader
It's possible to come across TYPE_CODE_UNDEF at this point in
read_member_functions, which according to a comment in read_type
is used for forward references.
gdb/ChangeLog:
2020-10-22 Hannes Domani <ssbssa@yahoo.de>
* stabsread.c (read_member_functions): Remove gdb_assert.
-rw-r--r-- | gdb/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/stabsread.c | 3 |
2 files changed, 4 insertions, 3 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index b493eff..282100a 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,9 @@ 2020-10-22 Hannes Domani <ssbssa@yahoo.de> + * stabsread.c (read_member_functions): Remove gdb_assert. + +2020-10-22 Hannes Domani <ssbssa@yahoo.de> + * gdbtypes.c (init_complex_type): Check target type name. 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca> diff --git a/gdb/stabsread.c b/gdb/stabsread.c index 4b1e3b2..9556263 100644 --- a/gdb/stabsread.c +++ b/gdb/stabsread.c @@ -2331,9 +2331,6 @@ read_member_functions (struct stab_field_info *fip, const char **pp, /* These are methods, not functions. */ if (new_sublist->fn_field.type->code () == TYPE_CODE_FUNC) new_sublist->fn_field.type->set_code (TYPE_CODE_METHOD); - else - gdb_assert (new_sublist->fn_field.type->code () - == TYPE_CODE_METHOD); /* If this is just a stub, then we don't have the real name here. */ if (new_sublist->fn_field.type->is_stub ()) |