mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 09:08:59 +00:00
2005-02-11 Andrew Cagney <cagney@gnu.org>
Mark up some of printf_filtered and printf_unfiltered. * ada-lang.c, annotate.c, arch-utils.c, breakpoint.c: Update. * corelow.c, cp-namespace.c, cp-support.c, dcache.c: Update. * demangle.c, dsrec.c, dwarf2read.c, dwarfread.c: Update. * event-loop.c, event-top.c, exec.c, f-valprint.c: Update. * gdbtypes.c, inf-loop.c, inf-ptrace.c, inf-ttrace.c: Update. * infcmd.c, inflow.c, infrun.c, inftarg.c, language.c: Update. * linespec.c, linux-nat.c, linux-thread-db.c, maint.c: Update. * mdebugread.c, memattr.c, monitor.c, objc-lang.c: Update. * ocd.c, osabi.c, printcmd.c, procfs.c, regcache.c: Update. * remote.c, solib-som.c, solib.c, somsolib.c, source.c: Update. * stack.c, symfile.c, symmisc.c, target.c, thread.c: Update. * top.c, utils.c, valprint.c, value.c, cli/cli-cmds.c: Update. * cli/cli-dump.c, cli/cli-logging.c, tui/tui-hooks.c: Update. * tui/tui-regs.c, tui/tui-win.c: Update.
This commit is contained in:
13
gdb/value.c
13
gdb/value.c
@@ -682,9 +682,9 @@ show_values (char *num_exp, int from_tty)
|
||||
for (i = num; i < num + 10 && i <= value_history_count; i++)
|
||||
{
|
||||
val = access_value_history (i);
|
||||
printf_filtered ("$%d = ", i);
|
||||
printf_filtered (("$%d = "), i);
|
||||
value_print (val, gdb_stdout, 0, Val_pretty_default);
|
||||
printf_filtered ("\n");
|
||||
printf_filtered (("\n"));
|
||||
}
|
||||
|
||||
/* The next "info history +" should start after what we just printed. */
|
||||
@@ -819,14 +819,15 @@ show_convenience (char *ignore, int from_tty)
|
||||
{
|
||||
varseen = 1;
|
||||
}
|
||||
printf_filtered ("$%s = ", var->name);
|
||||
printf_filtered (("$%s = "), var->name);
|
||||
value_print (var->value, gdb_stdout, 0, Val_pretty_default);
|
||||
printf_filtered ("\n");
|
||||
printf_filtered (("\n"));
|
||||
}
|
||||
if (!varseen)
|
||||
printf_unfiltered ("No debugger convenience variables now defined.\n\
|
||||
printf_unfiltered (_("\
|
||||
No debugger convenience variables now defined.\n\
|
||||
Convenience variables have names starting with \"$\";\n\
|
||||
use \"set\" as in \"set $foo = 5\" to define them.\n");
|
||||
use \"set\" as in \"set $foo = 5\" to define them.\n"));
|
||||
}
|
||||
|
||||
/* Extract a value as a C number (either long or double).
|
||||
|
||||
Reference in New Issue
Block a user