This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA] gdb_ari.sh patch to eliminate wrong critical errors
- From: "Ulrich Weigand" <uweigand at de dot ibm dot com>
- To: muller at ics dot u-strasbg dot fr
- Cc: drow at false dot org ('Daniel Jacobowitz'), gdb-patches at sourceware dot org
- Date: Mon, 15 Oct 2007 16:10:20 +0200 (CEST)
- Subject: 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