aboutsummaryrefslogtreecommitdiff
path: root/gdb/valprint.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2010-10-18 19:14:03 +0000
committerTom Tromey <tromey@redhat.com>2010-10-18 19:14:03 +0000
commit3a772aa44dcb36507c4a4ed13a0d161d808beed9 (patch)
tree3f62aaa287dce7d374a66fff8c02ff48ab40ff4a /gdb/valprint.c
parentca346ede183f75655d287f355ea811f34b600d0c (diff)
downloadgdb-3a772aa44dcb36507c4a4ed13a0d161d808beed9.zip
gdb-3a772aa44dcb36507c4a4ed13a0d161d808beed9.tar.gz
gdb-3a772aa44dcb36507c4a4ed13a0d161d808beed9.tar.bz2
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 4b3789e..09da426 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)