Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [RFA] ARI fix: Remove asprintf in breakpoint.c
@ 2007-10-08 12:21 Pierre Muller
  2007-10-08 13:42 ` Joel Brobecker
  0 siblings, 1 reply; 11+ messages in thread
From: Pierre Muller @ 2007-10-08 12:21 UTC (permalink / raw)
  To: gdb-patches

  Trying to reduce the number of critical
errors in 
http://sourceware.org/gdb/current/ari/

  Is this one OK to commit?


Pierre Muller


ChangeLog entry:

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

        * breakpoint.c (print_one_breakpoint_location): ARI fix:
        Replace asprintf by xstrprintf.



Index: breakpoint.c
===================================================================
RCS file: /cvs/src/src/gdb/breakpoint.c,v
retrieving revision 1.271
diff -u -p -r1.271 breakpoint.c
--- breakpoint.c        1 Oct 2007 00:17:57 -0000       1.271
+++ breakpoint.c        8 Oct 2007 12:11:31 -0000
@@ -3526,7 +3526,7 @@ print_one_breakpoint_location (struct br
   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);
     }




^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2007-10-09 15:49 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-10-08 12:21 [RFA] ARI fix: Remove asprintf in breakpoint.c Pierre Muller
2007-10-08 13:42 ` Joel Brobecker
2007-10-08 13:51   ` Pierre Muller
2007-10-08 15:02     ` Joel Brobecker
2007-10-08 15:24       ` Pierre Muller
2007-10-08 16:09         ` Daniel Jacobowitz
2007-10-08 16:25           ` Joel Brobecker
2007-10-08 17:18             ` Daniel Jacobowitz
2007-10-08 19:38     ` Pedro Alves
2007-10-09 14:46       ` Pierre Muller
2007-10-09 16:08         ` Pierre Muller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox