diff options
author | Keith Seitz <keiths@redhat.com> | 2011-05-31 21:54:07 +0000 |
---|---|---|
committer | Keith Seitz <keiths@redhat.com> | 2011-05-31 21:54:07 +0000 |
commit | 2b1dbab03d9b512f15900cb274f69214bd88d3bc (patch) | |
tree | 5585a8b827c7e5c67067a6d2e1e07c67572afb57 /gdb/cp-support.h | |
parent | 0a5b1e09bf62fcbe776eb641640f802f64bb6169 (diff) | |
download | gdb-2b1dbab03d9b512f15900cb274f69214bd88d3bc.zip gdb-2b1dbab03d9b512f15900cb274f69214bd88d3bc.tar.gz gdb-2b1dbab03d9b512f15900cb274f69214bd88d3bc.tar.bz2 |
PR symtab/12704
* cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
(cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
and CP_ANONYMOUS_NAMESPACE_LEN.
(cp_is_anonymous): Likewise.
* cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
(CP_ANONYMOUS_NAMESPACE_LEN): Define.
* dwarf2read.c (namespace_name): Likewise.
(fixup_partial_die): Likewise.
* linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
seen in the input, keep it.
Diffstat (limited to 'gdb/cp-support.h')
-rw-r--r-- | gdb/cp-support.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gdb/cp-support.h b/gdb/cp-support.h index 57aa03a..52d4cb7 100644 --- a/gdb/cp-support.h +++ b/gdb/cp-support.h @@ -36,6 +36,14 @@ struct objfile; struct type; struct demangle_component; +/* A string representing the name of the anonymous namespace used in GDB. */ + +#define CP_ANONYMOUS_NAMESPACE_STR "(anonymous namespace)" + +/* The length of the string representing the anonymous namespace. */ + +#define CP_ANONYMOUS_NAMESPACE_LEN 21 + /* This struct is designed to store data from using directives. It says that names from namespace IMPORT_SRC should be visible within namespace IMPORT_DEST. These form a linked list; NEXT is the next |