diff options
author | Andrew Burgess <andrew.burgess@embecosm.com> | 2020-10-30 15:09:35 +0000 |
---|---|---|
committer | Andrew Burgess <andrew.burgess@embecosm.com> | 2020-12-23 20:53:14 +0000 |
commit | 1c4852651c26d88494b6c2988f9bee164f1f3d34 (patch) | |
tree | d041d0dca40c135463bc1c700a66ea8ebcaeced9 /gdb/ChangeLog | |
parent | ed5797ee2c17bae5d15204cbfa9a3918c7e4c1a9 (diff) | |
download | gdb-1c4852651c26d88494b6c2988f9bee164f1f3d34.zip gdb-1c4852651c26d88494b6c2988f9bee164f1f3d34.tar.gz gdb-1c4852651c26d88494b6c2988f9bee164f1f3d34.tar.bz2 |
gdb: move rust_language into rust-lang.h
Move the rust_language class declaration into the rust-lang.h header
file. This allows for the function implementations called directly in
rust-lang.c and rust-exp.y without the need for trampoline functions.
There should be no user visible changes after this commit.
gdb/ChangeLog:
* rust-exp.y (rust_parse): Rename to...
(rust_language::parser): ...this.
* rust-lang.c (-rust_printstr): Rename to...
(rust_language::printstr): ...this.
(rust_value_print_inner): Delete declaration.
(val_print_struct): Rename to...
(rust_language::val_print_struct): ...this. Update calls to
member functions.
(rust_print_enum): Rename to...
(rust_language::print_enum): ...this. Update calls to member
functions.
(rust_value_print_inner): Rename to...
(rust_language::value_print_inner): ...this. Update calls to
member functions.
(exp_descriptor_rust): Rename to...
(rust_language::exp_descriptor_tab): ...this.
(class rust_language): Move to rust-lang.h.
(rust_language::language_arch_info): Implementation moved to here
from class declaration.
(rust_language::print_type): Likewise.
(rust_language::emitchar): Likewise.
(rust_language::is_string_type_p): Likewise.
* rust-lang.h: Add 'demangle.h', 'language.h', 'value.h', and
'c-lang.h' includes.
(rust_parse): Delete declaration.
(class rust_language): Class declaration moved here from
rust-lang.c.
Diffstat (limited to 'gdb/ChangeLog')
-rw-r--r-- | gdb/ChangeLog | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 7ecf120..a722435 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,35 @@ 2020-12-23 Andrew Burgess <andrew.burgess@embecosm.com> + * rust-exp.y (rust_parse): Rename to... + (rust_language::parser): ...this. + * rust-lang.c (-rust_printstr): Rename to... + (rust_language::printstr): ...this. + (rust_value_print_inner): Delete declaration. + (val_print_struct): Rename to... + (rust_language::val_print_struct): ...this. Update calls to + member functions. + (rust_print_enum): Rename to... + (rust_language::print_enum): ...this. Update calls to member + functions. + (rust_value_print_inner): Rename to... + (rust_language::value_print_inner): ...this. Update calls to + member functions. + (exp_descriptor_rust): Rename to... + (rust_language::exp_descriptor_tab): ...this. + (class rust_language): Move to rust-lang.h. + (rust_language::language_arch_info): Implementation moved to here + from class declaration. + (rust_language::print_type): Likewise. + (rust_language::emitchar): Likewise. + (rust_language::is_string_type_p): Likewise. + * rust-lang.h: Add 'demangle.h', 'language.h', 'value.h', and + 'c-lang.h' includes. + (rust_parse): Delete declaration. + (class rust_language): Class declaration moved here from + rust-lang.c. + +2020-12-23 Andrew Burgess <andrew.burgess@embecosm.com> + * objc-lang.c (objc_language::opcode_print_table): Return objc_op_print_tab. |