diff options
author | Pierre Muller <muller@sourceware.org> | 2007-10-08 15:23:42 +0000 |
---|---|---|
committer | Pierre Muller <muller@sourceware.org> | 2007-10-08 15:23:42 +0000 |
commit | 0c6773c14acf127b564cb48b726292e026c54a59 (patch) | |
tree | 04600c7d31296ba72c110c1d2373de6e69c10b40 | |
parent | 91c066694a28a06f88fb720dca8735e606b884d4 (diff) | |
download | gdb-0c6773c14acf127b564cb48b726292e026c54a59.zip gdb-0c6773c14acf127b564cb48b726292e026c54a59.tar.gz gdb-0c6773c14acf127b564cb48b726292e026c54a59.tar.bz2 |
2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
* breakpoint.c (print_one_breakpoint_location): ARI fix:
Replace asprintf by xstrprintf.
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/breakpoint.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index b4fbe68..175ab2c 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -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. diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c index e4fdb33..a5990ba 100644 --- a/gdb/breakpoint.c +++ b/gdb/breakpoint.c @@ -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); } |