diff options
author | Tom Tromey <tromey@redhat.com> | 2010-10-18 19:14:01 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2010-10-18 19:14:01 +0000 |
commit | 9810479548aa51abe3bed774c5f1426d85fe9e18 (patch) | |
tree | f42c58b31ebbdaa1a57cf89e82fc9e53cbdcf882 /gdb/valprint.c | |
parent | 11dfdf56221313e0a27a1dca916e222bdce7b8c4 (diff) | |
download | gdb-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.c | 2 |
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) |