This is the mail archive of the gdb-prs@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

symtab/1316: symbol.aux_value.loc.funcs redundant


>Number:         1316
>Category:       symtab
>Synopsis:       symbol.aux_value.loc.funcs redundant
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          maintenance
>Submitter-Id:   net
>Arrival-Date:   Tue Aug 05 04:48:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     ac131313@redhat.com
>Release:        unknown-1.0
>Organization:
>Environment:

>Description:
The field `struct symbol.aux_value.loc.funcs' is redundant.  Given a structure:

struct symbol_impl
{
  enum address_class aclass;
  struct location_funcs funcs;
  struct value *(*read_variable) ()
  ...
};

and a table of all possible symbols, then things like
SYMBOL_CLASS(s)
  symbol_impl[s->impl].aclass;
SYMBOL_LOCATION_FUNCS(s)
  symbol_impl[s->impl].funcs...;

and that shaves one word of a symbol (56 vs 60, and 40 for a minsym).
>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]