diff options
author | Sami Wagiaalla <swagiaal@redhat.com> | 2010-06-02 15:31:30 +0000 |
---|---|---|
committer | Sami Wagiaalla <swagiaal@redhat.com> | 2010-06-02 15:31:30 +0000 |
commit | 7d3fe98e4f161e15cbb329cc44da260abadfb2fd (patch) | |
tree | b62f6b978a84b89b3336f7a7073d9ae1e448afa2 /gdb/cp-support.c | |
parent | d0ef7741c534042736e2f2734daceb4738715f80 (diff) | |
download | gdb-7d3fe98e4f161e15cbb329cc44da260abadfb2fd.zip gdb-7d3fe98e4f161e15cbb329cc44da260abadfb2fd.tar.gz gdb-7d3fe98e4f161e15cbb329cc44da260abadfb2fd.tar.bz2 |
Fix ADL anonymous name crash.
2010-06-02 Sami Wagiaalla <swagiaal@redhat.com>
* cp-support.c (make_symbol_overload_list_adl_namespace): Handle
anonymous type case.
2010-06-02 Sami Wagiaalla <swagiaal@redhat.com>
* gdb.cp/koenig.exp: Added new test case.
* gdb.cp/koenig.cc: Ditto.
Diffstat (limited to 'gdb/cp-support.c')
-rw-r--r-- | gdb/cp-support.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/cp-support.c b/gdb/cp-support.c index e4b5d4d..799b707 100644 --- a/gdb/cp-support.c +++ b/gdb/cp-support.c @@ -752,6 +752,9 @@ make_symbol_overload_list_adl_namespace (struct type *type, type_name = TYPE_NAME (type); + if (type_name == NULL) + return; + prefix_len = cp_entire_prefix_len (type_name); if (prefix_len != 0) |