introduce minimal_symbol_upper_bound
authorTom Tromey <tromey@redhat.com>
Mon, 19 Aug 2013 13:58:44 +0000 (07:58 -0600)
committerTom Tromey <tromey@redhat.com>
Wed, 26 Feb 2014 19:11:16 +0000 (12:11 -0700)
commit50e65b1713256487d50514b50b38b3fd1080b93e
tree180a4e6ef0445feb91e27e0980bbe01130262d23
parent1b588015839caafc608a6944a78aea170f5fb2f6
introduce minimal_symbol_upper_bound

This introduces minimal_symbol_upper_bound and changes various bits of
code to use it.  Since this function is intimately tied to the
implementation of minimal symbol tables, I believe it belongs in
minsyms.c.

The new function is extracted from find_pc_partial_function_gnu_ifunc.
This isn't a "clean" move because the old function interleaved the
caching and the computation; but this doesn't make sense for the new
code.

2014-02-26  Tom Tromey  <tromey@redhat.com>

* blockframe.c (find_pc_partial_function_gnu_ifunc): Use
bound minimal symbols.  Move code that knows about minsym
table layout...
* minsyms.c (minimal_symbol_upper_bound): ... here.  New
function.
* minsyms.h (minimal_symbol_upper_bound): Declare.
* objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
minimal_symbol_upper_bound.
gdb/ChangeLog
gdb/blockframe.c
gdb/minsyms.c
gdb/minsyms.h
gdb/objc-lang.c
This page took 0.025232 seconds and 4 git commands to generate.