aboutsummaryrefslogtreecommitdiff
path: root/gdb/c-lang.c
diff options
context:
space:
mode:
authorAleksandar Ristovski <aristovski@qnx.com>2013-01-31 18:46:11 +0000
committerAleksandar Ristovski <aristovski@qnx.com>2013-01-31 18:46:11 +0000
commitdf54f8eb0a1c7a5d7bfa6419bda97c36afa48750 (patch)
tree1888d6c6f5a4a212461f9e8a2d48adf08803ccc9 /gdb/c-lang.c
parent5799c0b96918061a27fd0be85177aeac9d8fe71e (diff)
downloadgdb-df54f8eb0a1c7a5d7bfa6419bda97c36afa48750.zip
gdb-df54f8eb0a1c7a5d7bfa6419bda97c36afa48750.tar.gz
gdb-df54f8eb0a1c7a5d7bfa6419bda97c36afa48750.tar.bz2
2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
* c-exp.y (classify_inner_name): Remove unused type. * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed, in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished, need_escape. (c_get_string): Remove unused kind. * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2. Reference: http://sourceware.org/ml/gdb-patches/2013-01/msg00759.html
Diffstat (limited to 'gdb/c-lang.c')
-rw-r--r--gdb/c-lang.c16
1 files changed, 1 insertions, 15 deletions
diff --git a/gdb/c-lang.c b/gdb/c-lang.c
index c9b0f51..3a7d6f1 100644
--- a/gdb/c-lang.c
+++ b/gdb/c-lang.c
@@ -196,17 +196,6 @@ c_printstr (struct ui_file *stream, struct type *type,
const char *type_encoding;
const char *encoding;
- enum bfd_endian byte_order = gdbarch_byte_order (get_type_arch (type));
- unsigned int i;
- unsigned int things_printed = 0;
- int in_quotes = 0;
- int need_comma = 0;
- struct obstack wchar_buf, output;
- struct cleanup *cleanup;
- struct wchar_iterator *iter;
- int finished = 0;
- int need_escape = 0;
-
str_type = (classify_type (type, get_type_arch (type), &type_encoding)
& ~C_CHAR);
switch (str_type)
@@ -255,7 +244,6 @@ c_get_string (struct value *value, gdb_byte **buffer,
int req_length = *length;
enum bfd_endian byte_order
= gdbarch_byte_order (get_type_arch (type));
- enum c_string_type kind;
if (element_type == NULL)
goto error;
@@ -284,9 +272,7 @@ c_get_string (struct value *value, gdb_byte **buffer,
if (! c_textual_element_type (element_type, 0))
goto error;
- kind = classify_type (element_type,
- get_type_arch (element_type),
- charset);
+ classify_type (element_type, get_type_arch (element_type), charset);
width = TYPE_LENGTH (element_type);
/* If the string lives in GDB's memory instead of the inferior's,