aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>2010-05-05 19:37:45 +0000
committerMichael Snyder <msnyder@vmware.com>2010-05-05 19:37:45 +0000
commitb00e3f5614d168c0ca7105b1544f79685e8b4a52 (patch)
tree1f7e408c14366dcbcc021bb133b65220f754682e
parent90f62196288735e7fd88336b5cc86bbb2cdd3249 (diff)
downloadgdb-b00e3f5614d168c0ca7105b1544f79685e8b4a52.zip
gdb-b00e3f5614d168c0ca7105b1544f79685e8b4a52.tar.gz
gdb-b00e3f5614d168c0ca7105b1544f79685e8b4a52.tar.bz2
2010-05-05 Michael Snyder <msnyder@vmware.com>
* solib.c (solib_find): Delete unused variable. (free_so_symbols): Delete unused variable. (info_sharedlibrary_command): Delete unused variable. (reload_shared_libraries_1): Delete unused variable. (_initialize_solib): Delete unused variable.
-rw-r--r--gdb/ChangeLog6
-rw-r--r--gdb/solib.c8
2 files changed, 6 insertions, 8 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index ba00c5c..c4d20d9 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,11 @@
2010-05-05 Michael Snyder <msnyder@vmware.com>
+ * solib.c (solib_find): Delete unused variable.
+ (free_so_symbols): Delete unused variable.
+ (info_sharedlibrary_command): Delete unused variable.
+ (reload_shared_libraries_1): Delete unused variable.
+ (_initialize_solib): Delete unused variable.
+
* i386-tdep.c (i386_supply_xstateregset) Delete unused variable.
(i386_collect_xstateregset): Delete unused variable.
* i387-tdep.c (i387_print_float_info): Delete unused variable.
diff --git a/gdb/solib.c b/gdb/solib.c
index df8f3d3..5340516 100644
--- a/gdb/solib.c
+++ b/gdb/solib.c
@@ -281,8 +281,6 @@ solib_find (char *in_pathname, int *fd)
found_file = open (temp_pathname, O_RDONLY | O_BINARY, 0);
if (found_file < 0)
{
- char *p;
-
xfree (temp_pathname);
/* If the search in gdb_sysroot still failed, try fully
@@ -548,8 +546,6 @@ solib_map_sections (struct so_list *so)
static void
free_so_symbols (struct so_list *so)
{
- char *bfd_filename = 0;
-
if (so->sections)
{
xfree (so->sections);
@@ -1000,7 +996,6 @@ static void
info_sharedlibrary_command (char *pattern, int from_tty)
{
struct so_list *so = NULL; /* link map state variable */
- int header_done = 0;
int so_missing_debug_info = 0;
int addr_width;
int nr_libs;
@@ -1318,7 +1313,6 @@ reload_shared_libraries_1 (int from_tty)
{
char *filename, *found_pathname = NULL;
bfd *abfd;
- int scratch_chan;
int was_loaded = so->symbols_loaded;
const int flags =
SYMFILE_DEFER_BP_RESET | (from_tty ? SYMFILE_VERBOSE : 0);
@@ -1454,8 +1448,6 @@ extern initialize_file_ftype _initialize_solib; /* -Wmissing-prototypes */
void
_initialize_solib (void)
{
- struct cmd_list_element *c;
-
solib_data = gdbarch_data_register_pre_init (solib_init);
add_com ("sharedlibrary", class_files, sharedlibrary_command,