forked from Imagelibrary/binutils-gdb
* breakpoint.c (watch_command): Use (CORE_ADDR)0, not NULL, for
target null pointer. * blockframe.c (find_frame_addr_in_frame_chain): Likewise. * printcmd.c (output_command): Annotate things we print here too. * Move declaration of print_value_flags from defs.h to value.h. * main.c (command_line_input): Call wrap_here as well as gdb_flush.
This commit is contained in:
@@ -839,6 +839,9 @@ print_command_1 (exp, inspect, voidprint)
|
||||
else
|
||||
if (histindex >= 0) printf_filtered ("$%d = ", histindex);
|
||||
|
||||
if (annotation_level > 1 && histindex >= 0)
|
||||
printf_filtered ("\n\032\032value-history-value\n");
|
||||
|
||||
print_formatted (val, format, fmt.size);
|
||||
printf_filtered ("\n");
|
||||
|
||||
@@ -915,8 +918,18 @@ output_command (exp, from_tty)
|
||||
|
||||
val = evaluate_expression (expr);
|
||||
|
||||
if (annotation_level > 1)
|
||||
{
|
||||
printf_filtered ("\n\032\032value-begin ");
|
||||
print_value_flags (VALUE_TYPE (val));
|
||||
printf_filtered ("\n");
|
||||
}
|
||||
|
||||
print_formatted (val, format, fmt.size);
|
||||
|
||||
if (annotation_level > 1)
|
||||
printf_filtered ("\n\032\032value-end\n");
|
||||
|
||||
do_cleanups (old_chain);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user