diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2011-02-18 19:10:48 +0000 |
---|---|---|
committer | Jan Kratochvil <jan.kratochvil@redhat.com> | 2011-02-18 19:10:48 +0000 |
commit | eeaafae2bdf07efbe757579c966da3c422496053 (patch) | |
tree | 791125207010daae2e96bcfc9d9de5cfba24201c /gdb/cp-support.c | |
parent | ae97b9228de63b9496cad36aff26742bea32e2e1 (diff) | |
download | gdb-eeaafae2bdf07efbe757579c966da3c422496053.zip gdb-eeaafae2bdf07efbe757579c966da3c422496053.tar.gz gdb-eeaafae2bdf07efbe757579c966da3c422496053.tar.bz2 |
gdb/
* cp-support.c (make_symbol_overload_list_namespace): Do not call
make_symbol_overload_list_block with NULL BLOCK.
* valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
gdb/testsuite/
* gdb.cp/typedef-operator.exp: New file.
* gdb.cp/typedef-operator.cc: New file.
Diffstat (limited to 'gdb/cp-support.c')
-rw-r--r-- | gdb/cp-support.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gdb/cp-support.c b/gdb/cp-support.c index afa5c21..bb1563f 100644 --- a/gdb/cp-support.c +++ b/gdb/cp-support.c @@ -778,11 +778,13 @@ make_symbol_overload_list_namespace (const char *func_name, /* Look in the static block. */ block = block_static_block (get_selected_block (0)); - make_symbol_overload_list_block (name, block); + if (block) + make_symbol_overload_list_block (name, block); /* Look in the global block. */ block = block_global_block (block); - make_symbol_overload_list_block (name, block); + if (block) + make_symbol_overload_list_block (name, block); } |