mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-10-18 05:12:33 +08:00
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.
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user