This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [rfc] msymbol.size
- From: Michael Elizabeth Chastain <mec at shout dot net>
- To: ezannoni at redhat dot com
- Cc: gdb-patches at sources dot redhat dot com
- Date: Fri, 7 Nov 2003 15:19:50 -0500
- Subject: Re: [rfc] msymbol.size
eza> let me see if I can get at one.
The critical code is:
/* dbxread.c */
end_symtab (...)
{
...
if (pst->texthigh == 0 && last_function_name)
{
...
if (minsym)
pst->texthigh = SYMBOL_VALUE_ADDRESS (minsym) + MSYMBOL_SIZE (minsym);
...
}
...
}
If that assignment executes, and the address and size have the same
value before and after my patch, then the patch is okay.
A before-and-after test run on such a platform would be perfect.
Michael C