summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2024-02-01 09:24:58 -0700
committerTom Tromey <tromey@adacore.com>2024-02-01 09:25:50 -0700
commit49ba125f96b2ad3ad26187c3b2b95dc352c5d942 (patch)
treee7151099834cdde1260216c2ff4ab175f0676162
parentf214edceb8cd97058c2682efb7b321d923e4ff02 (diff)
Fix "objstack" typo
I noticed some comments that mentions "objstack". The type is actually "obstack". This patch fixes the typos.
-rw-r--r--gdb/dwarf2/read.c2
-rw-r--r--gdb/gdbtypes.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/gdb/dwarf2/read.c b/gdb/dwarf2/read.c
index ca72cbfb7ff..e873d9cc440 100644
--- a/gdb/dwarf2/read.c
+++ b/gdb/dwarf2/read.c
@@ -6892,7 +6892,7 @@ dwarf2_full_name (const char *name, struct die_info *die, struct dwarf2_cu *cu)
/* Construct a physname for the given DIE in CU. NAME may either be
from a previous call to dwarf2_name or NULL. The result will be
- allocated on the objfile_objstack or NULL if the DIE does not have a
+ allocated on the objfile_obstack or NULL if the DIE does not have a
name.
The output string will be canonicalized (if C++). */
diff --git a/gdb/gdbtypes.c b/gdb/gdbtypes.c
index a48c4c8abf2..2e55a299fe4 100644
--- a/gdb/gdbtypes.c
+++ b/gdb/gdbtypes.c
@@ -2920,9 +2920,9 @@ type::remove_dyn_prop (dynamic_prop_node_kind kind)
if (curr_node->prop_kind == kind)
{
/* Update the linked list but don't free anything.
- The property was allocated on objstack and it is not known
+ The property was allocated on obstack and it is not known
if we are on top of it. Nevertheless, everything is released
- when the complete objstack is freed. */
+ when the complete obstack is freed. */
if (NULL == prev_node)
this->main_type->dyn_prop_list = curr_node->next;
else