projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Use gdbarch obstack to allocate the TYPE_NAME string in arch_type
[deliverable/binutils-gdb.git]
/
gdb
/
gdbtypes.c
diff --git
a/gdb/gdbtypes.c
b/gdb/gdbtypes.c
index 7a18bed04f332c218aa7b686ce6d27b8d261d89c..12ff014ea698b215452e567b084eeaad1a398688 100644
(file)
--- a/
gdb/gdbtypes.c
+++ b/
gdb/gdbtypes.c
@@
-4549,7
+4549,7
@@
arch_type (struct gdbarch *gdbarch,
TYPE_LENGTH (type) = length;
if (name)
- TYPE_NAME (type) =
xstrdup (
name);
+ TYPE_NAME (type) =
gdbarch_obstack_strdup (gdbarch,
name);
return type;
}
This page took
0.024547 seconds
and
4
git commands to generate.