diff options
author | David Carlton <carlton@bactrian.org> | 2003-05-01 00:46:59 +0000 |
---|---|---|
committer | David Carlton <carlton@bactrian.org> | 2003-05-01 00:46:59 +0000 |
commit | ef9fbe8fea19f726e2536e94739cf06b9bb933ca (patch) | |
tree | 7c7f7af20631a00cba8782384f49e458f2a9f97b /gdb/cp-namespace.c | |
parent | c06b06b4e350f10061f2f0fc06273deba7f47825 (diff) | |
download | gdb-ef9fbe8fea19f726e2536e94739cf06b9bb933ca.zip gdb-ef9fbe8fea19f726e2536e94739cf06b9bb933ca.tar.gz gdb-ef9fbe8fea19f726e2536e94739cf06b9bb933ca.tar.bz2 |
2003-04-30 David Carlton <carlton@bactrian.org>
* cp-namespace.c (get_namespace_objfile): Copy the namespace
objfile's name.
* block.h (ALL_BLOCK_SYMBOLS): Move here from dictionary.h.
* dictionary.c: Sync up with mainline version I just posted.
Specifically, update some commments, and:
(dict_create_hashed): Fiddle with nsyms updating.
(dict_create_linear): Ditto.
(dict_lookup): Delete.
(iterator_next_hashed): Delete FIXME comment.
(iter_name_first_hashed): Replace 'sym' by 'sym != NULL'.
(iter_name_next_hashed): Replate 'next' by 'next != NULL'.
* dictionary.h: Sync up with mainline version I just posted: add
inclusion guards, delete declaration of dict_lookup, delete
ALL_BLOCK_SYMBOLs.
* Merge with mainline; tag is carlton_dictionary-20030430-merge.
Diffstat (limited to 'gdb/cp-namespace.c')
-rw-r--r-- | gdb/cp-namespace.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/cp-namespace.c b/gdb/cp-namespace.c index 339cea7..d40914f 100644 --- a/gdb/cp-namespace.c +++ b/gdb/cp-namespace.c @@ -390,7 +390,8 @@ get_namespace_objfile (void) if (namespace_objfile == NULL) { namespace_objfile = allocate_objfile (NULL, 0); - namespace_objfile->name = "<C++-namespaces>"; + namespace_objfile->name + = mstrsave (namespace_objfile->md, "<C++-namespaces>"); } return namespace_objfile; |