Fix PR threads/19422 - show which thread caused stop
[deliverable/binutils-gdb.git] / gdb / probe.c
index a3cfefe87c8e55896489477bd4ba0a29217cef93..374e7a77eb693c21227569cfca29577446f85692 100644 (file)
@@ -1,6 +1,6 @@
 /* Generic static probe support for GDB.
 
-   Copyright (C) 2012-2015 Free Software Foundation, Inc.
+   Copyright (C) 2012-2016 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -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);
This page took 0.024589 seconds and 4 git commands to generate.