[rfc] msymbol.size

Michael Elizabeth Chastain mec@shout.net
Fri Nov 7 20:19:00 GMT 2003


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



More information about the Gdb-patches mailing list