mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-10-16 20:32:21 +08:00
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.
This commit is contained in:
@ -1,5 +1,12 @@
|
|||||||
2010-05-06 Michael Snyder <msnyder@vmware.com>
|
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.
|
||||||
|
|
||||||
* osabi.c (_initialize_gdb_osabi): Delete unused variable.
|
* osabi.c (_initialize_gdb_osabi): Delete unused variable.
|
||||||
* memattr.c (mem_delete): Delete unused variable.
|
* memattr.c (mem_delete): Delete unused variable.
|
||||||
(invalidate_target_mem_regions): Delete unused variable.
|
(invalidate_target_mem_regions): Delete unused variable.
|
||||||
|
@ -152,7 +152,6 @@ reopen_exec_file (void)
|
|||||||
char *filename;
|
char *filename;
|
||||||
int res;
|
int res;
|
||||||
struct stat st;
|
struct stat st;
|
||||||
long mtime;
|
|
||||||
struct cleanup *cleanups;
|
struct cleanup *cleanups;
|
||||||
|
|
||||||
/* Don't do anything if there isn't an exec file. */
|
/* Don't do anything if there isn't an exec file. */
|
||||||
|
@ -177,7 +177,6 @@ is_cplus_marker (int c)
|
|||||||
void
|
void
|
||||||
_initialize_demangler (void)
|
_initialize_demangler (void)
|
||||||
{
|
{
|
||||||
struct cmd_list_element *set, *show;
|
|
||||||
int i, ndems;
|
int i, ndems;
|
||||||
|
|
||||||
/* Fill the demangling_style_names[] array. */
|
/* Fill the demangling_style_names[] array. */
|
||||||
|
@ -1921,7 +1921,6 @@ decode_frame_entry (struct comp_unit *unit, gdb_byte *start, int eh_frame_p,
|
|||||||
{
|
{
|
||||||
enum { NONE, ALIGN4, ALIGN8, FAIL } workaround = NONE;
|
enum { NONE, ALIGN4, ALIGN8, FAIL } workaround = NONE;
|
||||||
gdb_byte *ret;
|
gdb_byte *ret;
|
||||||
const char *msg;
|
|
||||||
ptrdiff_t start_offset;
|
ptrdiff_t start_offset;
|
||||||
|
|
||||||
while (1)
|
while (1)
|
||||||
|
@ -250,7 +250,6 @@ dwarf2_read_address (struct gdbarch *gdbarch, gdb_byte *buf,
|
|||||||
gdb_byte *buf_end, int addr_size)
|
gdb_byte *buf_end, int addr_size)
|
||||||
{
|
{
|
||||||
enum bfd_endian byte_order = gdbarch_byte_order (gdbarch);
|
enum bfd_endian byte_order = gdbarch_byte_order (gdbarch);
|
||||||
CORE_ADDR result;
|
|
||||||
|
|
||||||
if (buf_end - buf < addr_size)
|
if (buf_end - buf < addr_size)
|
||||||
error (_("dwarf2_read_address: Corrupted DWARF expression."));
|
error (_("dwarf2_read_address: Corrupted DWARF expression."));
|
||||||
|
@ -736,8 +736,6 @@ maintenance_set_profile_cmd (char *args, int from_tty, struct cmd_list_element *
|
|||||||
void
|
void
|
||||||
_initialize_maint_cmds (void)
|
_initialize_maint_cmds (void)
|
||||||
{
|
{
|
||||||
struct cmd_list_element *tmpcmd;
|
|
||||||
|
|
||||||
add_prefix_cmd ("maintenance", class_maintenance, maintenance_command, _("\
|
add_prefix_cmd ("maintenance", class_maintenance, maintenance_command, _("\
|
||||||
Commands for use by GDB maintainers.\n\
|
Commands for use by GDB maintainers.\n\
|
||||||
Includes commands to dump specific internal GDB structures in\n\
|
Includes commands to dump specific internal GDB structures in\n\
|
||||||
|
@ -859,7 +859,6 @@ objfile_relocate (struct objfile *objfile, struct section_offsets *new_offsets)
|
|||||||
{
|
{
|
||||||
struct section_addr_info *objfile_addrs;
|
struct section_addr_info *objfile_addrs;
|
||||||
struct section_offsets *new_debug_offsets;
|
struct section_offsets *new_debug_offsets;
|
||||||
int new_debug_num_sections;
|
|
||||||
struct cleanup *my_cleanups;
|
struct cleanup *my_cleanups;
|
||||||
|
|
||||||
objfile_addrs = build_section_addr_info_from_objfile (objfile);
|
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
|
gdb_assert (debug_objfile->num_sections
|
||||||
== bfd_count_sections (debug_objfile->obfd));
|
== bfd_count_sections (debug_objfile->obfd));
|
||||||
new_debug_offsets = xmalloc (SIZEOF_N_SECTION_OFFSETS
|
new_debug_offsets =
|
||||||
(debug_objfile->num_sections));
|
xmalloc (SIZEOF_N_SECTION_OFFSETS (debug_objfile->num_sections));
|
||||||
make_cleanup (xfree, new_debug_offsets);
|
make_cleanup (xfree, new_debug_offsets);
|
||||||
relative_addr_info_to_section_offsets (new_debug_offsets,
|
relative_addr_info_to_section_offsets (new_debug_offsets,
|
||||||
debug_objfile->num_sections,
|
debug_objfile->num_sections,
|
||||||
|
Reference in New Issue
Block a user