aboutsummaryrefslogtreecommitdiff
path: root/gdb/printcmd.c
diff options
context:
space:
mode:
authorJ.T. Conklin <jtc@acorntoolworks.com>1995-05-18 23:45:31 +0000
committerJ.T. Conklin <jtc@acorntoolworks.com>1995-05-18 23:45:31 +0000
commit85c613aaa7092f8dfc8ce0c475e0ef210685bc16 (patch)
tree782eeb1652f743b8539d33cdd299772f15fb5de0 /gdb/printcmd.c
parentff15324f6383f5532d167eba6f4e80f67d94a84a (diff)
downloadgdb-85c613aaa7092f8dfc8ce0c475e0ef210685bc16.zip
gdb-85c613aaa7092f8dfc8ce0c475e0ef210685bc16.tar.gz
gdb-85c613aaa7092f8dfc8ce0c475e0ef210685bc16.tar.bz2
* utils.c (fprintf_filtered, fprintf_unfiltered, fprintfi_filtered,
printf_filtered, printf_unfiltered, printfi_filtered, query, warning, error, fatal, fatal_dump_core): Use stdarg.h macros when compiling with an ANSI compiler. * complain.c (complain): Likewise. * language.c (type_error, range_error): Likewise. * monitor.c (monitor_printf, monitor_printf_noecho): Likewise. * remote-array.c (printf_monitor, debuglogs): Likewise. * remote-mips.c (mips_error): Likewise. * remote-os9k.c (printf_monitor): Likewise. * remote-st.c (printf_stdebug): Likewise. * gdbtk.c (gdbtk_query): Likewise. * defs.h, complain.h, language.h, monitor.h: Add prototypes to match above changes. * printcmd.c: Remove uneeded #include <varargs.h>. * remote-e7000.c: Likewise. * f-typeprint.c (f_type_print_base): Fix typo found by above changes.
Diffstat (limited to 'gdb/printcmd.c')
-rw-r--r--gdb/printcmd.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/gdb/printcmd.c b/gdb/printcmd.c
index bde7709..e271806 100644
--- a/gdb/printcmd.c
+++ b/gdb/printcmd.c
@@ -20,7 +20,6 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#include "defs.h"
#include <string.h>
-#include <varargs.h>
#include "frame.h"
#include "symtab.h"
#include "gdbtypes.h"
@@ -586,9 +585,8 @@ print_address_numeric (addr, use_local, stream)
GDB_FILE *stream;
{
/* This assumes a CORE_ADDR can fit in a LONGEST. Probably a safe
- assumption. We pass use_local but I'm not completely sure whether
- that is correct. When (if ever) should we *not* use_local? */
- print_longest (stream, 'x', 1, (unsigned LONGEST) addr);
+ assumption. */
+ print_longest (stream, 'x', use_local, (unsigned LONGEST) addr);
}
/* Print address ADDR symbolically on STREAM.
@@ -927,7 +925,7 @@ address_info (exp, from_tty)
return;
}
- msymbol = lookup_minimal_symbol (exp, (struct objfile *) NULL);
+ msymbol = lookup_minimal_symbol (exp, NULL, NULL);
if (msymbol != NULL)
{