From: "Pierre Muller" <muller@ics.u-strasbg.fr>
To: <insight@sourceware.org>
Subject: [RFA] ARI fixes for gdbtk directories
Date: Mon, 06 Apr 2009 22:32:00 -0000 [thread overview]
Message-ID: <002a01c9b707$9d795b40$d86c11c0$@u-strasbg.fr> (raw)
A few more ARI fixes for gdbtk.
Is this OK?
Pierre Muller
Pascal language support maintainer for GDB
2009-04-07 Pierre Muller <muller.u-strasbg.fr²>
ARI fixes: xvasprintf and strdup rules.
* generic/gdbtk-cmds.c (gdbtk_set_result): Replace xvasprintf by
xstrvprintf.
* generic/gdbtk-hooks.c (gdbtk_warning): Ditto.
(gdbtk_readline_begin, gdbtk_query): Ditto.
* generic/gdbtk.c (TclDebug): Ditto.
* generic/gdbtk-varobj.c (variable_create): Replace strdup by
xstrdup.
Index: generic/gdbtk-cmds.c
===================================================================
RCS file: /cvs/src/src/gdb/gdbtk/generic/gdbtk-cmds.c,v
retrieving revision 1.107
diff -u -p -r1.107 gdbtk-cmds.c
--- generic/gdbtk-cmds.c 25 Mar 2009 23:43:07 -0000 1.107
+++ generic/gdbtk-cmds.c 6 Apr 2009 22:20:33 -0000
@@ -2911,7 +2911,7 @@ gdbtk_set_result (Tcl_Interp *interp, co
char *buf;
va_start (args, fmt);
- xvasprintf (&buf, fmt, args);
+ buf = xstrvprintf (, fmt, args);
va_end (args);
Tcl_SetObjResult (interp, Tcl_NewStringObj (buf, -1));
xfree(buf);
Index: generic/gdbtk-hooks.c
===================================================================
RCS file: /cvs/src/src/gdb/gdbtk/generic/gdbtk-hooks.c,v
retrieving revision 1.47
diff -u -p -r1.47 gdbtk-hooks.c
--- generic/gdbtk-hooks.c 25 Mar 2009 23:43:07 -0000 1.47
+++ generic/gdbtk-hooks.c 6 Apr 2009 22:20:33 -0000
@@ -348,7 +348,7 @@ static void
gdbtk_warning (const char *warning, va_list args)
{
char *buf;
- xvasprintf (&buf, warning, args);
+ buf = xstrvprintf (, warning, args);
gdbtk_two_elem_cmd ("gdbtk_tcl_warning", buf);
free(buf);
}
@@ -488,7 +488,7 @@ gdbtk_readline_begin (char *format,...)
char *buf;
va_start (args, format);
- xvasprintf (&buf, format, args);
+ buf = xstrvprintf (, format, args);
gdbtk_two_elem_cmd ("gdbtk_tcl_readline_begin", buf);
free(buf);
}
@@ -684,7 +684,7 @@ gdbtk_query (const char *query, va_list
char *buf;
long val;
- xvasprintf (&buf, query, args);
+ buf = xstrvprintf (, query, args);
gdbtk_two_elem_cmd ("gdbtk_tcl_query", buf);
free(buf);
Index: generic/gdbtk.c
===================================================================
RCS file: /cvs/src/src/gdb/gdbtk/generic/gdbtk.c,v
retrieving revision 1.48
diff -u -p -r1.48 gdbtk.c
--- generic/gdbtk.c 25 Mar 2009 23:43:07 -0000 1.48
+++ generic/gdbtk.c 6 Apr 2009 22:20:34 -0000
@@ -215,7 +215,7 @@ TclDebug (char level, const char *fmt,..
va_start (args, fmt);
- xvasprintf (&buf, fmt, args);
+ buf = xstrvprintf (, fmt, args);
va_end (args);
v[0] = "dbug";
Index: generic/gdbtk-varobj.c
===================================================================
RCS file: /cvs/src/src/gdb/gdbtk/generic/gdbtk-varobj.c,v
retrieving revision 1.22
diff -u -p -r1.22 gdbtk-varobj.c
--- generic/gdbtk-varobj.c 14 Jul 2008 23:43:36 -0000 1.22
+++ generic/gdbtk-varobj.c 6 Apr 2009 22:20:33 -0000
@@ -323,7 +323,7 @@ variable_create (Tcl_Interp *interp, int
else
{
/* specified name for object */
- obj_name = strdup (name);
+ obj_name = xstrdup (name);
objv++;
objc--;
}
next reply other threads:[~2009-04-06 22:32 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-06 22:32 Pierre Muller [this message]
2009-04-06 22:51 ` Keith Seitz
2009-04-06 23:14 ` Pierre Muller
2009-04-06 23:18 ` cygwin runtime woes (was Re: [RFA] ARI fixes for gdbtk directories) Keith Seitz
2009-04-06 23:32 ` Pierre Muller
2009-04-06 23:52 ` Keith Seitz
2009-04-07 6:54 ` Pierre Muller
2009-05-06 16:11 ` cygwin runtime woes Keith Seitz
2009-05-06 16:24 ` Pierre Muller
2009-05-06 16:31 ` Keith Seitz
2009-05-06 20:45 ` Pierre Muller
2009-05-07 2:06 ` Keith Seitz
2009-05-06 16:41 ` 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='002a01c9b707$9d795b40$d86c11c0$@u-strasbg.fr' \
--to=muller@ics.u-strasbg.fr \
--cc=insight@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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).