aboutsummaryrefslogtreecommitdiff
path: root/gdb/valprint.c
diff options
context:
space:
mode:
authorAndrew Burgess <andrew.burgess@embecosm.com>2020-10-19 17:44:15 +0100
committerAndrew Burgess <andrew.burgess@embecosm.com>2020-12-23 20:53:14 +0000
commit016382f8a43a59eca49f68c7d8b8058f64eaf40f (patch)
tree359e22a202dee3bd441ca787efc1ec4b3c994b7b /gdb/valprint.c
parent05ecfa4726c453a3f863a84ae847052c6d1b067b (diff)
downloadgdb-016382f8a43a59eca49f68c7d8b8058f64eaf40f.zip
gdb-016382f8a43a59eca49f68c7d8b8058f64eaf40f.tar.gz
gdb-016382f8a43a59eca49f68c7d8b8058f64eaf40f.tar.bz2
gdb: delete unused function print_char_chars
Spotted that print_char_chars appears to be unused, delete it. There should be no user visible changes after this commit. gdb/ChangeLog: * valprint.c (print_char_chars): Delete definition. * valprint.h (print_char_chars): Delete declaration.
Diffstat (limited to 'gdb/valprint.c')
-rw-r--r--gdb/valprint.c37
1 files changed, 0 insertions, 37 deletions
diff --git a/gdb/valprint.c b/gdb/valprint.c
index 50278ac..baf8f76 100644
--- a/gdb/valprint.c
+++ b/gdb/valprint.c
@@ -1827,43 +1827,6 @@ print_hex_chars (struct ui_file *stream, const gdb_byte *valaddr,
}
}
-/* VALADDR points to a char integer of LEN bytes.
- Print it out in appropriate language form on stream.
- Omit any leading zero chars. */
-
-void
-print_char_chars (struct ui_file *stream, struct type *type,
- const gdb_byte *valaddr,
- unsigned len, enum bfd_endian byte_order)
-{
- const gdb_byte *p;
-
- if (byte_order == BFD_ENDIAN_BIG)
- {
- p = valaddr;
- while (p < valaddr + len - 1 && *p == 0)
- ++p;
-
- while (p < valaddr + len)
- {
- LA_EMIT_CHAR (*p, type, stream, '\'');
- ++p;
- }
- }
- else
- {
- p = valaddr + len - 1;
- while (p > valaddr && *p == 0)
- --p;
-
- while (p >= valaddr)
- {
- LA_EMIT_CHAR (*p, type, stream, '\'');
- --p;
- }
- }
-}
-
/* Print function pointer with inferior address ADDRESS onto stdio
stream STREAM. */