]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gdb/ada-lang.c
Make ada_lookup_encoded_symbol "return" a struct ada_symbol_info
authorJoel Brobecker <brobecker@gnat.com>
Thu, 29 Mar 2012 18:23:00 +0000 (18:23 +0000)
committerJoel Brobecker <brobecker@gnat.com>
Thu, 29 Mar 2012 18:23:00 +0000 (18:23 +0000)
commit4e5c77fe1ac64db7550f09c442563620fb1e7080
treeb1332e5a2ae1680dc943c2ceb8a3f19acb85b1cf
parent1c0ac8c76635e64f933199c13d491e1b14b9363e
Make ada_lookup_encoded_symbol "return" a struct ada_symbol_info

This makes ada_lookup_encoded_symbol more consistent with other functions
such as ada_lookup_symbol_list, and also makes it clearer in the code
using that function that symbol and block are related.

gdb/ChangeLog:

        * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
        Replace block_found argument by symbol_info.  Adjust
        implementation accordingly.  Add function documentation.
        (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
        Fix documentation.
        * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
        * ada-exp.y (write_object_renaming): Adjust to new
        ada_lookup_encoded_symbol API.
gdb/ChangeLog
gdb/ada-exp.y
gdb/ada-lang.c
gdb/ada-lang.h