mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-01-19 06:23:36 +08:00
2010-05-06 Michael Snyder <msnyder@vmware.com>
* osabi.c (_initialize_gdb_osabi): Delete unused variable. * memattr.c (mem_delete): Delete unused variable. (invalidate_target_mem_regions): Delete unused variable. * mem-break.c (default_memory_insert_breakpoint): Delete unused variable. * target.c (target_get_osdata): Delete unused variable. * parse.c (length_of_subexp): Delete unused variable. (prefixify_subexp): Delete unused variable. (exp_iterate): Delete unused variable. * reverse.c (delete_bookmark_command): Delete unused variable.
This commit is contained in:
parent
cf383746fa
commit
6b4398f7cd
@ -1,5 +1,16 @@
|
||||
2010-05-06 Michael Snyder <msnyder@vmware.com>
|
||||
|
||||
* osabi.c (_initialize_gdb_osabi): Delete unused variable.
|
||||
* memattr.c (mem_delete): Delete unused variable.
|
||||
(invalidate_target_mem_regions): Delete unused variable.
|
||||
* mem-break.c (default_memory_insert_breakpoint):
|
||||
Delete unused variable.
|
||||
* target.c (target_get_osdata): Delete unused variable.
|
||||
* parse.c (length_of_subexp): Delete unused variable.
|
||||
(prefixify_subexp): Delete unused variable.
|
||||
(exp_iterate): Delete unused variable.
|
||||
* reverse.c (delete_bookmark_command): Delete unused variable.
|
||||
|
||||
* macrocmd.c (_initialize_macrocmd): Delete unused variable.
|
||||
* macroexp.c (gather_arguments): Delete unused variable.
|
||||
(substitute_args): Delete unused variable.
|
||||
|
@ -46,7 +46,6 @@ default_memory_insert_breakpoint (struct gdbarch *gdbarch,
|
||||
{
|
||||
int val;
|
||||
const unsigned char *bp;
|
||||
int bplen;
|
||||
|
||||
/* Determine appropriate breakpoint contents and size for this address. */
|
||||
bp = gdbarch_breakpoint_from_pc
|
||||
|
@ -292,9 +292,6 @@ lookup_mem_region (CORE_ADDR addr)
|
||||
void
|
||||
invalidate_target_mem_regions (void)
|
||||
{
|
||||
struct mem_region *m;
|
||||
int ix;
|
||||
|
||||
if (!target_mem_regions_valid)
|
||||
return;
|
||||
|
||||
@ -655,7 +652,7 @@ mem_disable_command (char *args, int from_tty)
|
||||
static void
|
||||
mem_delete (int num)
|
||||
{
|
||||
struct mem_region *m1, *m;
|
||||
struct mem_region *m;
|
||||
int ix;
|
||||
|
||||
if (!mem_region_list)
|
||||
|
@ -630,8 +630,6 @@ extern initialize_file_ftype _initialize_gdb_osabi; /* -Wmissing-prototype */
|
||||
void
|
||||
_initialize_gdb_osabi (void)
|
||||
{
|
||||
struct cmd_list_element *c;
|
||||
|
||||
if (strcmp (gdb_osabi_names[GDB_OSABI_INVALID], "<invalid>") != 0)
|
||||
internal_error
|
||||
(__FILE__, __LINE__,
|
||||
|
@ -776,7 +776,7 @@ prefixify_expression (struct expression *expr)
|
||||
int
|
||||
length_of_subexp (struct expression *expr, int endpos)
|
||||
{
|
||||
int oplen, args, i;
|
||||
int oplen, args;
|
||||
|
||||
operator_length (expr, endpos, &oplen, &args);
|
||||
|
||||
@ -984,7 +984,6 @@ prefixify_subexp (struct expression *inexpr,
|
||||
int args;
|
||||
int i;
|
||||
int *arglens;
|
||||
enum exp_opcode opcode;
|
||||
int result = -1;
|
||||
|
||||
operator_length (inexpr, inend, &oplen, &args);
|
||||
@ -1472,7 +1471,6 @@ exp_iterate (struct expression *exp,
|
||||
void *data)
|
||||
{
|
||||
int endpos;
|
||||
const union exp_element *const elts = exp->elts;
|
||||
|
||||
for (endpos = exp->nelts; endpos > 0; )
|
||||
{
|
||||
|
@ -213,7 +213,7 @@ delete_all_bookmarks (void)
|
||||
static void
|
||||
delete_bookmark_command (char *args, int from_tty)
|
||||
{
|
||||
struct bookmark *b, *b1;
|
||||
struct bookmark *b;
|
||||
unsigned long num;
|
||||
|
||||
if (bookmark_chain == NULL)
|
||||
|
@ -2575,7 +2575,6 @@ target_supports_non_stop (void)
|
||||
char *
|
||||
target_get_osdata (const char *type)
|
||||
{
|
||||
char *document;
|
||||
struct target_ops *t;
|
||||
|
||||
/* If we're already connected to something that can get us OS
|
||||
|
Loading…
Reference in New Issue
Block a user