aboutsummaryrefslogtreecommitdiff
path: root/gdb/utils.c
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>2010-05-07 00:47:37 +0000
committerMichael Snyder <msnyder@vmware.com>2010-05-07 00:47:37 +0000
commit1be757cfff9173963cf2a9dd482037dc00b959e7 (patch)
tree513f15ebeef02e49215d2e6a351440dadeafa570 /gdb/utils.c
parent9216103f920df7d9399aed10328cabd314cb8f47 (diff)
downloadgdb-1be757cfff9173963cf2a9dd482037dc00b959e7.zip
gdb-1be757cfff9173963cf2a9dd482037dc00b959e7.tar.gz
gdb-1be757cfff9173963cf2a9dd482037dc00b959e7.tar.bz2
2010-05-06 Michael Snyder <msnyder@vmware.com>
* serial.c (serial_for_fd): Delete unused variable. * mdebugread.c (psymtab_to_symtab_1): Delete unused variable. * top.c (execute_command): Delete unused variable. (init_main): Delete unused variable. * utils.c (do_fclose_cleanup): Delete unused variable. (do_all_inferior_continuations): Delete unused variable. (initialize_utils): Delete unused variable. (internal_problem_mode): Delete unused global. * frame.c (get_prev_frame): Delete unused global. (get_frame_locals_address): Delete unused global. (get_frame_args_address): Delete unused global.
Diffstat (limited to 'gdb/utils.c')
-rw-r--r--gdb/utils.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/gdb/utils.c b/gdb/utils.c
index 875faaf..9afb77c 100644
--- a/gdb/utils.c
+++ b/gdb/utils.c
@@ -266,7 +266,6 @@ make_cleanup_close (int fd)
static void
do_fclose_cleanup (void *arg)
{
- FILE *file = arg;
fclose (arg);
}
@@ -553,7 +552,6 @@ add_inferior_continuation (void (*continuation_hook) (void *), void *args,
void
do_all_inferior_continuations (void)
{
- struct cleanup *old_chain;
struct cleanup *as_cleanup;
struct inferior *inf = current_inferior ();
@@ -899,7 +897,6 @@ static const char *internal_problem_modes[] =
internal_problem_no,
NULL
};
-static const char *internal_problem_mode = internal_problem_ask;
/* Print a message reporting an internal error/warning. Ask the user
if they want to continue, dump core, or just exit. Return
@@ -2823,8 +2820,6 @@ show_debug_timestamp (struct ui_file *file, int from_tty,
void
initialize_utils (void)
{
- struct cmd_list_element *c;
-
add_setshow_uinteger_cmd ("width", class_support, &chars_per_line, _("\
Set number of characters gdb thinks are in a line."), _("\
Show number of characters gdb thinks are in a line."), NULL,