diff options
author | Tom Tromey <tromey@redhat.com> | 2010-10-15 18:54:13 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2010-10-15 18:54:13 +0000 |
commit | 09ca9e2e34b93e8e12d6a0a4bad469b2b4c2f415 (patch) | |
tree | 27415ab68602f61368e4773b277271eda76fb144 /gdb/f-valprint.c | |
parent | 92163a10dcb34785a2fc74a05c3e890fbe700731 (diff) | |
download | gdb-09ca9e2e34b93e8e12d6a0a4bad469b2b4c2f415.zip gdb-09ca9e2e34b93e8e12d6a0a4bad469b2b4c2f415.tar.gz gdb-09ca9e2e34b93e8e12d6a0a4bad469b2b4c2f415.tar.bz2 |
PR python/11948:
* varobj.c (value_get_print_value): Use val_print_string to print
lazy strings.
* python/py-prettyprint.c (print_string_repr): Use
val_print_string to print lazy strings. Fix cleanup logic.
(print_children): Likewise.
* python/python-internal.h (gdbpy_extract_lazy_string): Update.
* python/py-lazy-string.c (gdbpy_extract_lazy_string): Rewrite.
Change return type to 'void', add 'addr' argument.
* value.h (val_print_string): Update.
* valprint.c (val_print_string): Add 'encoding' argument.
* printcmd.c (print_formatted): Update.
* p-valprint.c (pascal_val_print): Update.
* m2-valprint.c (print_unpacked_pointer): Update.
(m2_print_array_contents): Likewise.
* jv-valprint.c (java_value_print): Update.
* f-valprint.c (f_val_print): Update.
* c-valprint.c (c_val_print): Update.
* auxv.c (fprint_target_auxv): Update.
Diffstat (limited to 'gdb/f-valprint.c')
-rw-r--r-- | gdb/f-valprint.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/f-valprint.c b/gdb/f-valprint.c index 85f698d..e27f79e 100644 --- a/gdb/f-valprint.c +++ b/gdb/f-valprint.c @@ -299,8 +299,8 @@ f_val_print (struct type *type, const gdb_byte *valaddr, int embedded_offset, && TYPE_CODE (elttype) == TYPE_CODE_INT && (options->format == 0 || options->format == 's') && addr != 0) - i = val_print_string (TYPE_TARGET_TYPE (type), addr, -1, stream, - options); + i = val_print_string (TYPE_TARGET_TYPE (type), NULL, addr, -1, + stream, options); /* Return number of characters printed, including the terminating '\0' if we reached the end. val_print_string takes care including |