OSDN Git Service

2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
authormuller <muller>
Mon, 8 Oct 2007 15:23:41 +0000 (15:23 +0000)
committermuller <muller>
Mon, 8 Oct 2007 15:23:41 +0000 (15:23 +0000)
        * breakpoint.c (print_one_breakpoint_location): ARI fix:
Replace asprintf by xstrprintf.

gdb/ChangeLog
gdb/breakpoint.c

index b4fbe68..175ab2c 100644 (file)
@@ -1,5 +1,10 @@
 2007-10-08  Pierre Muller  <muller@ics.u-strasbg.fr>
 
+        * breakpoint.c (print_one_breakpoint_location): ARI fix: 
+       Replace asprintf by xstrprintf.
+
+2007-10-08  Pierre Muller  <muller@ics.u-strasbg.fr>
+
        * linux-fork.c: ARI fix: include "gdb_dirent.h" instead of <dirent.h>.
        Makefile.in (linux-fork.o): Add gdb_dirent.h dependency. 
 
index e4fdb33..a5990ba 100644 (file)
@@ -3526,7 +3526,7 @@ print_one_breakpoint_location (struct breakpoint *b,
   if (part_of_multiple)
     {
       char *formatted;
-      asprintf (&formatted, "%d.%d", b->number, loc_number);
+      formatted = xstrprintf ("%d.%d", b->number, loc_number);
       ui_out_field_string (uiout, "number", formatted);
       xfree (formatted);
     }