aboutsummaryrefslogtreecommitdiff
path: root/gdb/objfiles.c
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>2010-05-06 22:50:09 +0000
committerMichael Snyder <msnyder@vmware.com>2010-05-06 22:50:09 +0000
commit4fc06681d353f36e1292a062bb01c0f35a31ef38 (patch)
treecee3ab807ace38f073eff850bc02fb5b9f6ee499 /gdb/objfiles.c
parent6b4398f7cdb82bedc0d0a71d95782862bd1a704f (diff)
downloadgdb-4fc06681d353f36e1292a062bb01c0f35a31ef38.zip
gdb-4fc06681d353f36e1292a062bb01c0f35a31ef38.tar.gz
gdb-4fc06681d353f36e1292a062bb01c0f35a31ef38.tar.bz2
2010-05-06 Michael Snyder <msnyder@vmware.com>
* objfiles.c (objfile_relocate): Delete unused variable. * maint.c (_initialize_maint_cmds): Delete unused variable. * demangle.c (_initialize_demangler): Delete unused variable. * corefile.c (reopen_exec_file): Delete unused variable. * dwarf2expr.c (dwarf2_read_address): Delete unused variable. * dwarf2-frame.c (decode_frame_entry): Delete unused variable.
Diffstat (limited to 'gdb/objfiles.c')
-rw-r--r--gdb/objfiles.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/gdb/objfiles.c b/gdb/objfiles.c
index cacdaba..9c8dd09 100644
--- a/gdb/objfiles.c
+++ b/gdb/objfiles.c
@@ -859,7 +859,6 @@ objfile_relocate (struct objfile *objfile, struct section_offsets *new_offsets)
{
struct section_addr_info *objfile_addrs;
struct section_offsets *new_debug_offsets;
- int new_debug_num_sections;
struct cleanup *my_cleanups;
objfile_addrs = build_section_addr_info_from_objfile (objfile);
@@ -872,8 +871,8 @@ objfile_relocate (struct objfile *objfile, struct section_offsets *new_offsets)
gdb_assert (debug_objfile->num_sections
== bfd_count_sections (debug_objfile->obfd));
- new_debug_offsets = xmalloc (SIZEOF_N_SECTION_OFFSETS
- (debug_objfile->num_sections));
+ new_debug_offsets =
+ xmalloc (SIZEOF_N_SECTION_OFFSETS (debug_objfile->num_sections));
make_cleanup (xfree, new_debug_offsets);
relative_addr_info_to_section_offsets (new_debug_offsets,
debug_objfile->num_sections,