This is the mail archive of the gdb-patches@sourceware.org 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]

Re: [RFA] gdb_ari.sh patch to eliminate wrong critical errors


I wrote:
> (On the other hand, even some functions with count 0 are in
> fact still used, because the one use happens to be in a file
> that is for some reason excluded from the ARI scan.  So you
> should double-check for each case you remove that there is
> indeed no more reference.)

On the other hand, there's also the opposite scenario: in some
cases, a function/macro has already been removed, but the ARI
still finds apparent uses (which are in fact just occurances
of local variable etc. that just happen to have the same name
as the removed global construct).

I'm aware of at least the following checks that can be removed:

supply_register (finds a local struct member)
obj_private (finds a local variable)
inside_entry_func (find a -now- static function)

Bye,
Ulrich

-- 
  Dr. Ulrich Weigand
  GNU Toolchain for Linux on System z and Cell BE
  Ulrich.Weigand@de.ibm.com


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