From 0c6773c14acf127b564cb48b726292e026c54a59 Mon Sep 17 00:00:00 2001 From: Pierre Muller Date: Mon, 8 Oct 2007 15:23:42 +0000 Subject: [PATCH] 2007-10-08 Pierre Muller * breakpoint.c (print_one_breakpoint_location): ARI fix: Replace asprintf by xstrprintf. --- gdb/ChangeLog | 5 +++++ gdb/breakpoint.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index b4fbe6829e9..175ab2ca5f1 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2007-10-08 Pierre Muller + + * breakpoint.c (print_one_breakpoint_location): ARI fix: + Replace asprintf by xstrprintf. + 2007-10-08 Pierre Muller * linux-fork.c: ARI fix: include "gdb_dirent.h" instead of . diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c index e4fdb3358d1..a5990ba9a01 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); } -- 2.30.2