summaryrefslogtreecommitdiff
path: root/gdb/valprint.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2010-10-18 19:14:01 +0000
committerTom Tromey <tromey@redhat.com>2010-10-18 19:14:01 +0000
commit9810479548aa51abe3bed774c5f1426d85fe9e18 (patch)
treef42c58b31ebbdaa1a57cf89e82fc9e53cbdcf882 /gdb/valprint.c
parent11dfdf56221313e0a27a1dca916e222bdce7b8c4 (diff)
downloadgdb-9810479548aa51abe3bed774c5f1426d85fe9e18.tar.gz
gdb
* valprint.c (val_print_string): Pass 'encoding' to LA_PRINT_STRING. gdb/testsuite * gdb.python/py-prettyprint.exp (run_lang_tests): Test encoding argument to lazy_string. * gdb.python/py-prettyprint.py (pp_ls_encoding): New global. (pp_ls.to_string): Use it. * gdb.python/py-prettyprint.c (main): Move declarations to top. Add "estring2" local.
Diffstat (limited to 'gdb/valprint.c')
-rw-r--r--gdb/valprint.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/valprint.c b/gdb/valprint.c
index 4b3789ed149..09da426b76b 100644
--- a/gdb/valprint.c
+++ b/gdb/valprint.c
@@ -1489,7 +1489,7 @@ val_print_string (struct type *elttype, const char *encoding,
fputs_filtered (" ", stream);
}
LA_PRINT_STRING (stream, elttype, buffer, bytes_read / width,
- NULL, force_ellipsis, options);
+ encoding, force_ellipsis, options);
}
if (errcode != 0)