diff options
author | Nick Roberts <nickrob@snap.net.nz> | 2007-02-04 20:57:26 +0000 |
---|---|---|
committer | Nick Roberts <nickrob@snap.net.nz> | 2007-02-04 20:57:26 +0000 |
commit | 9fbcbb40824b6e96cb242af169273ec30bc26596 (patch) | |
tree | e4a0ec7465955684a955ae8b117b54e2897ccf5b /gdb | |
parent | e110eeb74e39496ca32a52d478319f0d840adc2c (diff) | |
download | gdb-9fbcbb40824b6e96cb242af169273ec30bc26596.zip gdb-9fbcbb40824b6e96cb242af169273ec30bc26596.tar.gz gdb-9fbcbb40824b6e96cb242af169273ec30bc26596.tar.bz2 |
*** empty log message ***
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/mi/mi-cmd-stack.c | 9 |
2 files changed, 12 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 85765d2..8eb3318 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2007-02-05 Nick Roberts <nickrob@snap.net.nz> + + * mi/mi-cmd-stack.c (list_args_or_locals): Use common_val_print + instead of print_variable_value to print values. + 2007-02-03 Nick Roberts <nickrob@snap.net.nz> * mi/mi-main.c: Numerous formatting changes. diff --git a/gdb/mi/mi-cmd-stack.c b/gdb/mi/mi-cmd-stack.c index 91ed007..690a4e4 100644 --- a/gdb/mi/mi-cmd-stack.c +++ b/gdb/mi/mi-cmd-stack.c @@ -275,6 +275,7 @@ list_args_or_locals (int locals, int values, struct frame_info *fi) { struct cleanup *cleanup_tuple = NULL; struct symbol *sym2; + struct value *val; if (values != PRINT_NO_VALUES) cleanup_tuple = make_cleanup_ui_out_tuple_begin_end (uiout, NULL); @@ -297,13 +298,17 @@ list_args_or_locals (int locals, int values, struct frame_info *fi) && TYPE_CODE (type) != TYPE_CODE_STRUCT && TYPE_CODE (type) != TYPE_CODE_UNION) { - print_variable_value (sym2, fi, stb->stream); + val = read_var_value (sym2, fi); + common_val_print + (val, stb->stream, 0, 1, 0, Val_no_prettyprint); ui_out_field_stream (uiout, "value", stb); } do_cleanups (cleanup_tuple); break; case PRINT_ALL_VALUES: - print_variable_value (sym2, fi, stb->stream); + val = read_var_value (sym2, fi); + common_val_print + (val, stb->stream, 0, 1, 0, Val_no_prettyprint); ui_out_field_stream (uiout, "value", stb); do_cleanups (cleanup_tuple); break; |