mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-03 13:23:00 +08:00
From Ulrich Weigand:
* utils.c (query): Do not use a va_list variable multiple times.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2004-03-30 Jim Blandy <jimb@redhat.com>
|
||||||
|
|
||||||
|
From Ulrich Weigand:
|
||||||
|
* utils.c (query): Do not use a va_list variable multiple times.
|
||||||
|
|
||||||
2004-03-29 Daniel Jacobowitz <drow@mvista.com>
|
2004-03-29 Daniel Jacobowitz <drow@mvista.com>
|
||||||
|
|
||||||
* Makefile.in (linux_nat_h): Update dependencies.
|
* Makefile.in (linux_nat_h): Update dependencies.
|
||||||
|
@ -1270,10 +1270,9 @@ query (const char *ctlstr, ...)
|
|||||||
int ans2;
|
int ans2;
|
||||||
int retval;
|
int retval;
|
||||||
|
|
||||||
va_start (args, ctlstr);
|
|
||||||
|
|
||||||
if (query_hook)
|
if (query_hook)
|
||||||
{
|
{
|
||||||
|
va_start (args, ctlstr);
|
||||||
return query_hook (ctlstr, args);
|
return query_hook (ctlstr, args);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1289,7 +1288,9 @@ query (const char *ctlstr, ...)
|
|||||||
if (annotation_level > 1)
|
if (annotation_level > 1)
|
||||||
printf_filtered ("\n\032\032pre-query\n");
|
printf_filtered ("\n\032\032pre-query\n");
|
||||||
|
|
||||||
|
va_start (args, ctlstr);
|
||||||
vfprintf_filtered (gdb_stdout, ctlstr, args);
|
vfprintf_filtered (gdb_stdout, ctlstr, args);
|
||||||
|
va_end (args);
|
||||||
printf_filtered ("(y or n) ");
|
printf_filtered ("(y or n) ");
|
||||||
|
|
||||||
if (annotation_level > 1)
|
if (annotation_level > 1)
|
||||||
|
Reference in New Issue
Block a user