diff options
author | Doug Evans <dje@google.com> | 2009-03-18 16:38:18 +0000 |
---|---|---|
committer | Doug Evans <dje@google.com> | 2009-03-18 16:38:18 +0000 |
commit | a411cd0e609706a2d00030c9e31c34d1f86f6c59 (patch) | |
tree | 0fba9f21d125febc40473ad3b05a4bed746d1784 /gdb | |
parent | 67cc50334e1706a942ef711c8aa21106cfe4d94d (diff) | |
download | gdb-a411cd0e609706a2d00030c9e31c34d1f86f6c59.zip gdb-a411cd0e609706a2d00030c9e31c34d1f86f6c59.tar.gz gdb-a411cd0e609706a2d00030c9e31c34d1f86f6c59.tar.bz2 |
* expprint.c (dump_raw_expression): Print note if non-NULL.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 2 | ||||
-rw-r--r-- | gdb/expprint.c | 7 |
2 files changed, 8 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index abaa78a..44edfeb 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,7 @@ 2009-03-18 Doug Evans <dje@google.com> + * expprint.c (dump_raw_expression): Print note if non-NULL. + * printcmd.c (display_uses_solib_p): Redo loop, scan element list backwards. diff --git a/gdb/expprint.c b/gdb/expprint.c index 89bae03..d7fac86 100644 --- a/gdb/expprint.c +++ b/gdb/expprint.c @@ -802,6 +802,9 @@ op_name_standard (enum exp_opcode opcode) } } +/* Print a raw dump of expression EXP to STREAM. + NOTE, if non-NULL, is printed as extra explanatory text. */ + void dump_raw_expression (struct expression *exp, struct ui_file *stream, char *note) @@ -813,7 +816,9 @@ dump_raw_expression (struct expression *exp, struct ui_file *stream, fprintf_filtered (stream, "Dump of expression @ "); gdb_print_host_address (exp, stream); - fprintf_filtered (stream, "'\n\tLanguage %s, %d elements, %ld bytes each.\n", + if (note) + fprintf_filtered (stream, ", %s:", note); + fprintf_filtered (stream, "\n\tLanguage %s, %d elements, %ld bytes each.\n", exp->language_defn->la_name, exp->nelts, (long) sizeof (union exp_element)); fprintf_filtered (stream, "\t%5s %20s %16s %s\n", "Index", "Opcode", |