2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>

* breakpoint.c (print_one_breakpoint_location): ARI fix:
	Replace asprintf by xstrprintf.
This commit is contained in:
Pierre Muller 2007-10-08 15:23:42 +00:00
parent 91c066694a
commit 0c6773c14a
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
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>.

View 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);
}