diff options
Diffstat (limited to 'gdb/probe.c')
-rw-r--r-- | gdb/probe.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gdb/probe.c b/gdb/probe.c index a3cfefe..5e95178 100644 --- a/gdb/probe.c +++ b/gdb/probe.c @@ -146,9 +146,8 @@ parse_probes (const struct event_location *location, continue; ++result.nelts; - result.sals = xrealloc (result.sals, - result.nelts - * sizeof (struct symtab_and_line)); + result.sals = XRESIZEVEC (struct symtab_and_line, result.sals, + result.nelts); sal = &result.sals[result.nelts - 1]; init_sal (sal); |