From: "Pierre Muller" <muller@ics.u-strasbg.fr>
To: <gdb-patches@sourceware.org>
Subject: [RFA] ARI fix: Remove asprintf in breakpoint.c
Date: Mon, 08 Oct 2007 12:21:00 -0000 [thread overview]
Message-ID: <009c01c809a5$c05be1c0$4113a540$@u-strasbg.fr> (raw)
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);
}
next reply other threads:[~2007-10-08 12:21 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-08 12:21 Pierre Muller [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='009c01c809a5$c05be1c0$4113a540$@u-strasbg.fr' \
--to=muller@ics.u-strasbg.fr \
--cc=gdb-patches@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox