aboutsummaryrefslogtreecommitdiff
path: root/gdb/mdebugread.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2023-03-13 13:20:22 -0600
committerTom Tromey <tom@tromey.com>2023-03-18 11:12:38 -0600
commit9e76b17aa5a62d866d9446bcc397e35748596193 (patch)
tree297925e36b11f64e126906d08e528e643544ea33 /gdb/mdebugread.c
parente727c536c6e7334484b8dcbf369fe425bd5b892a (diff)
downloadbinutils-9e76b17aa5a62d866d9446bcc397e35748596193.zip
binutils-9e76b17aa5a62d866d9446bcc397e35748596193.tar.gz
binutils-9e76b17aa5a62d866d9446bcc397e35748596193.tar.bz2
Use type allocator for array types
This changes the array type creation functions to accept a type allocator, and updates all the callers. Note that symbol readers should generally allocate on the relevant objfile, regardless of the placement of the index type of the array, which is what this patch implements. Reviewed-By: Simon Marchi <simon.marchi@efficios.com>
Diffstat (limited to 'gdb/mdebugread.c')
-rw-r--r--gdb/mdebugread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/mdebugread.c b/gdb/mdebugread.c
index 58959e7..865bfc2 100644
--- a/gdb/mdebugread.c
+++ b/gdb/mdebugread.c
@@ -1866,7 +1866,7 @@ upgrade_type (int fd, struct type **tpp, int tq, union aux_ext *ax, int bigend,
type_allocator alloc (indx);
range = create_static_range_type (alloc, indx, lower, upper);
- t = create_array_type (NULL, *tpp, range);
+ t = create_array_type (alloc, *tpp, range);
}
/* We used to fill in the supplied array element bitsize