2010-05-06 Michael Snyder <msnyder@vmware.com>
* frame-unwind.c (frame_unwind_find_by_frame): Delete unused variable. * gnu-v2-abi.c (gnuv2_value_rtti_type): Delete unused variable. * cp-support.c (mangled_name_to_comp): Delete unused variable. (method_name_from_physname): Delete unused variable. (cp_func_name): Delete unused variable. (cp_validate_operator): Delete unused variable. * cp-namespace.c (cp_scan_for_anonymous_namespaces): Delete unused variable. * trad-frame.c (trad_frame_get_prev_register): Delete unused variable. * tramp-frame.c (tramp_frame_cache): Delete unused variable.
This commit is contained in:
parent
1be757cfff
commit
1c5465ac60
|
@ -1,5 +1,18 @@
|
||||||
2010-05-06 Michael Snyder <msnyder@vmware.com>
|
2010-05-06 Michael Snyder <msnyder@vmware.com>
|
||||||
|
|
||||||
|
* frame-unwind.c (frame_unwind_find_by_frame):
|
||||||
|
Delete unused variable.
|
||||||
|
* gnu-v2-abi.c (gnuv2_value_rtti_type): Delete unused variable.
|
||||||
|
* cp-support.c (mangled_name_to_comp): Delete unused variable.
|
||||||
|
(method_name_from_physname): Delete unused variable.
|
||||||
|
(cp_func_name): Delete unused variable.
|
||||||
|
(cp_validate_operator): Delete unused variable.
|
||||||
|
* cp-namespace.c (cp_scan_for_anonymous_namespaces):
|
||||||
|
Delete unused variable.
|
||||||
|
* trad-frame.c (trad_frame_get_prev_register):
|
||||||
|
Delete unused variable.
|
||||||
|
* tramp-frame.c (tramp_frame_cache): Delete unused variable.
|
||||||
|
|
||||||
* serial.c (serial_for_fd): Delete unused variable.
|
* serial.c (serial_for_fd): Delete unused variable.
|
||||||
* mdebugread.c (psymtab_to_symtab_1): Delete unused variable.
|
* mdebugread.c (psymtab_to_symtab_1): Delete unused variable.
|
||||||
* top.c (execute_command): Delete unused variable.
|
* top.c (execute_command): Delete unused variable.
|
||||||
|
|
|
@ -81,7 +81,6 @@ cp_scan_for_anonymous_namespaces (const struct symbol *symbol)
|
||||||
const char *name = SYMBOL_DEMANGLED_NAME (symbol);
|
const char *name = SYMBOL_DEMANGLED_NAME (symbol);
|
||||||
unsigned int previous_component;
|
unsigned int previous_component;
|
||||||
unsigned int next_component;
|
unsigned int next_component;
|
||||||
const char *len;
|
|
||||||
|
|
||||||
/* Start with a quick-and-dirty check for mention of "(anonymous
|
/* Start with a quick-and-dirty check for mention of "(anonymous
|
||||||
namespace)". */
|
namespace)". */
|
||||||
|
|
|
@ -158,7 +158,6 @@ mangled_name_to_comp (const char *mangled_name, int options,
|
||||||
{
|
{
|
||||||
struct demangle_component *ret;
|
struct demangle_component *ret;
|
||||||
char *demangled_name;
|
char *demangled_name;
|
||||||
int len;
|
|
||||||
|
|
||||||
/* If it looks like a v3 mangled name, then try to go directly
|
/* If it looks like a v3 mangled name, then try to go directly
|
||||||
to trees. */
|
to trees. */
|
||||||
|
@ -342,7 +341,6 @@ method_name_from_physname (const char *physname)
|
||||||
void *storage = NULL;
|
void *storage = NULL;
|
||||||
char *demangled_name = NULL, *ret;
|
char *demangled_name = NULL, *ret;
|
||||||
struct demangle_component *ret_comp;
|
struct demangle_component *ret_comp;
|
||||||
int done;
|
|
||||||
|
|
||||||
ret_comp = mangled_name_to_comp (physname, DMGL_ANSI, &storage,
|
ret_comp = mangled_name_to_comp (physname, DMGL_ANSI, &storage,
|
||||||
&demangled_name);
|
&demangled_name);
|
||||||
|
@ -373,7 +371,6 @@ cp_func_name (const char *full_name)
|
||||||
{
|
{
|
||||||
char *ret;
|
char *ret;
|
||||||
struct demangle_component *ret_comp;
|
struct demangle_component *ret_comp;
|
||||||
int done;
|
|
||||||
|
|
||||||
ret_comp = cp_demangled_name_to_comp (full_name, NULL);
|
ret_comp = cp_demangled_name_to_comp (full_name, NULL);
|
||||||
if (!ret_comp)
|
if (!ret_comp)
|
||||||
|
@ -925,7 +922,6 @@ cp_validate_operator (const char *input)
|
||||||
struct expression *expr;
|
struct expression *expr;
|
||||||
struct value *val;
|
struct value *val;
|
||||||
struct gdb_exception except;
|
struct gdb_exception except;
|
||||||
struct cleanup *old_chain;
|
|
||||||
|
|
||||||
p = input;
|
p = input;
|
||||||
|
|
||||||
|
|
|
@ -90,11 +90,10 @@ frame_unwind_append_unwinder (struct gdbarch *gdbarch,
|
||||||
const struct frame_unwind *
|
const struct frame_unwind *
|
||||||
frame_unwind_find_by_frame (struct frame_info *this_frame, void **this_cache)
|
frame_unwind_find_by_frame (struct frame_info *this_frame, void **this_cache)
|
||||||
{
|
{
|
||||||
int i;
|
|
||||||
struct gdbarch *gdbarch = get_frame_arch (this_frame);
|
struct gdbarch *gdbarch = get_frame_arch (this_frame);
|
||||||
struct frame_unwind_table *table = gdbarch_data (gdbarch, frame_unwind_data);
|
struct frame_unwind_table *table = gdbarch_data (gdbarch, frame_unwind_data);
|
||||||
struct frame_unwind_table_entry *entry;
|
struct frame_unwind_table_entry *entry;
|
||||||
struct cleanup *old_cleanup;
|
|
||||||
for (entry = table->list; entry != NULL; entry = entry->next)
|
for (entry = table->list; entry != NULL; entry = entry->next)
|
||||||
{
|
{
|
||||||
struct cleanup *old_cleanup;
|
struct cleanup *old_cleanup;
|
||||||
|
|
|
@ -185,13 +185,8 @@ gnuv2_value_rtti_type (struct value *v, int *full, int *top, int *using_enc)
|
||||||
{
|
{
|
||||||
struct type *known_type;
|
struct type *known_type;
|
||||||
struct type *rtti_type;
|
struct type *rtti_type;
|
||||||
CORE_ADDR coreptr;
|
|
||||||
struct value *vp;
|
|
||||||
long top_offset = 0;
|
|
||||||
char rtti_type_name[256];
|
|
||||||
CORE_ADDR vtbl;
|
CORE_ADDR vtbl;
|
||||||
struct minimal_symbol *minsym;
|
struct minimal_symbol *minsym;
|
||||||
struct symbol *sym;
|
|
||||||
char *demangled_name, *p;
|
char *demangled_name, *p;
|
||||||
struct type *btype;
|
struct type *btype;
|
||||||
struct type *known_type_vptr_basetype;
|
struct type *known_type_vptr_basetype;
|
||||||
|
|
|
@ -136,7 +136,6 @@ trad_frame_get_prev_register (struct frame_info *this_frame,
|
||||||
struct trad_frame_saved_reg this_saved_regs[],
|
struct trad_frame_saved_reg this_saved_regs[],
|
||||||
int regnum)
|
int regnum)
|
||||||
{
|
{
|
||||||
struct gdbarch *gdbarch = get_frame_arch (this_frame);
|
|
||||||
if (trad_frame_addr_p (this_saved_regs, regnum))
|
if (trad_frame_addr_p (this_saved_regs, regnum))
|
||||||
/* The register was saved in memory. */
|
/* The register was saved in memory. */
|
||||||
return frame_unwind_got_memory (this_frame, regnum,
|
return frame_unwind_got_memory (this_frame, regnum,
|
||||||
|
|
|
@ -44,7 +44,6 @@ static struct trad_frame_cache *
|
||||||
tramp_frame_cache (struct frame_info *this_frame,
|
tramp_frame_cache (struct frame_info *this_frame,
|
||||||
void **this_cache)
|
void **this_cache)
|
||||||
{
|
{
|
||||||
CORE_ADDR pc = get_frame_pc (this_frame);
|
|
||||||
struct tramp_frame_cache *tramp_cache = (*this_cache);
|
struct tramp_frame_cache *tramp_cache = (*this_cache);
|
||||||
if (tramp_cache->trad_cache == NULL)
|
if (tramp_cache->trad_cache == NULL)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue