mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-02-23 13:21:43 +08:00
Running the new tests added later in the series on PPC64 (ELFv1) revealed that the current ifunc support needs a bit of a design rework to work properly on PPC64/ELFv1, as most of the new tests fail. The ifunc support only kind of works today if the ifunc symbol and the resolver have the same name, as is currently tested by the gdb.base/gnu-ifunc.exp testcase, which is unlike how ifuncs are written nowadays. The crux of the problem is that ifunc symbols are really function descriptors, not text symbols: 44: 0000000000020060 104 FUNC GLOBAL DEFAULT 18 gnu_ifunc_resolver 54: 0000000000020060 104 GNU_IFUNC GLOBAL DEFAULT 18 gnu_ifunc But, currently GDB only knows about ifunc symbols that are text symbols. GDB's support happens to work in practice for PPC64 when the ifunc and resolver are one and only, like in the current gdb.base/gnu-ifunc.exp testcase: 15: 0000000000020060 104 GNU_IFUNC GLOBAL DEFAULT 18 gnu_ifunc because in that case, the synthetic ".gnu_ifunc" entry point text symbol that bfd creates from the actual GNU ifunc "gnu_ifunc" function (descriptor) symbol ends up with the the "is a gnu ifunc" flag set / copied over: (gdb) maint print msymbols ... [ 8] i 0x9c4 .gnu_ifunc section .text <<< mst_text_gnu_ifunc ... [29] D 0x20060 gnu_ifunc section .opd crtstuff.c <<< mst_data But, if the resolver gets a distinct symbol/name from the ifunc symbol, then we end up with this: (gdb) maint print msymbols [ 8] T 0x9e4 .gnu_ifunc_resolver section .text <<< mst_text ... [29] D 0x20060 gnu_ifunc section .opd crtstuff.c <<< mst_data [30] D 0x20060 gnu_ifunc_resolver section .opd crtstuff.c <<< mst_data I have a follow up bfd patch that turns that into: (gdb) maint print msymbols + [ 8] i 0x9e4 .gnu_ifunc section .text <<< mst_text_gnu_ifunc [ 8] T 0x9e4 .gnu_ifunc_resolver section .text <<< mst_text ... [29] D 0x20060 gnu_ifunc section .opd crtstuff.c [30] D 0x20060 gnu_ifunc_resolver section .opd crtstuff.c but that won't help everything. We still need this patch. Specifically, when we do a symbol lookup by name, like e.g., to call a function (see c-exp.y hunk), e.g., "p gnu_ifunc()", then we need to know that the found "gnu_ifunc" minimal symbol is an ifunc in order to do some special processing. But, on PPC, that lookup by name finds the function descriptor symbol, which presently is just a mst_data symbol, while at present, we look for mst_text_gnu_ifunc symbols to decide whether to do special GNU ifunc processing. In most of those places, we could try to resolve the function descriptor with gdbarch_convert_from_func_ptr_addr, and then lookup the minimal symbol at the resolved PC, see if that finds a minimal symbol of type mst_text_gnu_ifunc. If so, then we could assume that the original mst_dadta / function descriptor "gnu_ifunc" symbol was an ifunc. I tried it, and it mostly works, even if it's not the most efficient. However, there's one case that can't work with such a design -- it's that of the user calling the ifunc resolver directly to debug it, like "p gnu_ifunc_resolver(0)", expecting that to return the function pointer of the final function (which is exercised by the new tests added later). In this case, with the not-fully-working solution, we'd resolve the function descriptor, find that there's an mst_text_gnu_ifunc symbol for the resolved address, and proceed calling the function as if we tried to call "gnu_ifunc", the user-visible GNU ifunc symbol, instead of the resolver. I.e., it'd be impossible to call the resolver directly as a normal function. Introducing mst_data_gnu_ifunc eliminates the need for several gdbarch_convert_from_func_ptr_addr calls, and, fixes the "call resolver directly" use case mentioned above too. It's the cleanest approach I could think of. In sum, we make GNU ifunc function descriptor symbols get a new "mst_data_gnu_ifunc" minimal symbol type instead of the bare mst_data type. So when symbol lookup by name finds such a minimal symbol, we know we found an ifunc symbol, without resolving the entry/text symbol. If the user calls the the resolver symbol instead, like "p gnu_ifunc_resolver(0)", then we'll find the regular mst_data symbol for "gnu_ifunc_resolver", and we'll call the resolver function as just another regular function. With this, most of the GNU ifunc tests added by a later patch pass on PPC64 too. The following bfd patch fixes the remaining issues. gdb/ChangeLog: 2018-04-26 Pedro Alves <palves@redhat.com> * breakpoint.c (set_breakpoint_location_function): Handle mst_data_gnu_ifunc. * c-exp.y (variable production): Handle mst_data_gnu_ifunc. * elfread.c (elf_symtab_read): Give data symbols with BSF_GNU_INDIRECT_FUNCTION set mst_data_gnu_ifunc type. (elf_rel_plt_read): Update comment. * linespec.c (convert_linespec_to_sals): Handle mst_data_gnu_ifunc. (minsym_found): Handle mst_data_gnu_ifunc. * minsyms.c (msymbol_is_function, minimal_symbol_reader::record) (find_solib_trampoline_target): Handle mst_data_gnu_ifunc. * parse.c (find_minsym_type_and_address): Handle mst_data_gnu_ifunc. * symmisc.c (dump_msymbols): Handle mst_data_gnu_ifunc. * symtab.c (find_gnu_ifunc): Handle mst_data_gnu_ifunc. * symtab.h (minimal_symbol_type) <mst_text_gnu_ifunc>: Update comment. <mst_data_gnu_ifunc>: New enumerator.
4681 lines
172 KiB
Plaintext
4681 lines
172 KiB
Plaintext
2018-04-26 Pedro Alves <palves@redhat.com>
|
||
|
||
* breakpoint.c (set_breakpoint_location_function): Handle
|
||
mst_data_gnu_ifunc.
|
||
* c-exp.y (variable production): Handle mst_data_gnu_ifunc.
|
||
* elfread.c (elf_symtab_read): Give data symbols with
|
||
BSF_GNU_INDIRECT_FUNCTION set mst_data_gnu_ifunc type.
|
||
(elf_rel_plt_read): Update comment.
|
||
* linespec.c (convert_linespec_to_sals): Handle
|
||
mst_data_gnu_ifunc.
|
||
(minsym_found): Handle mst_data_gnu_ifunc.
|
||
* minsyms.c (msymbol_is_function, minimal_symbol_reader::record)
|
||
(find_solib_trampoline_target): Handle mst_data_gnu_ifunc.
|
||
* parse.c (find_minsym_type_and_address): Handle
|
||
mst_data_gnu_ifunc.
|
||
* symmisc.c (dump_msymbols): Handle mst_data_gnu_ifunc.
|
||
* symtab.c (find_gnu_ifunc): Handle mst_data_gnu_ifunc.
|
||
* symtab.h (minimal_symbol_type) <mst_text_gnu_ifunc>: Update
|
||
comment.
|
||
<mst_data_gnu_ifunc>: New enumerator.
|
||
|
||
2018-04-26 Pedro Alves <palves@redhat.com>
|
||
|
||
* minsyms.c (lookup_minimal_symbol_by_pc_section_1): Rename to ...
|
||
(lookup_minimal_symbol_by_pc_section): ... this. Replace
|
||
'want_trampoline' parameter by a lookup_msym_prefer parameter.
|
||
Handle it.
|
||
(lookup_minimal_symbol_by_pc_section): Delete old implementation.
|
||
(lookup_minimal_symbol_by_pc): Adjust.
|
||
(in_gnu_ifunc_stub): Prefer GNU ifunc symbols.
|
||
(lookup_solib_trampoline_symbol_by_pc): Adjust.
|
||
* minsyms.h (lookup_msym_prefer): New enum.
|
||
(lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
|
||
parameter by a lookup_msym_prefer parameter.
|
||
|
||
2018-04-26 Pedro Alves <palves@redhat.com>
|
||
|
||
* elfread.c (elf_gnu_ifunc_record_cache): Check if the symbol name
|
||
ends in "@plt" instead of looking at the symbol's section.
|
||
|
||
2018-04-26 Pedro Alves <palves@redhat.com>
|
||
|
||
* blockframe.c (cache_pc_function_is_gnu_ifunc): Delete. Remove
|
||
all references.
|
||
(find_pc_partial_function_gnu_ifunc): Rename to ...
|
||
(find_pc_partial_function): ... this, and remove references to
|
||
'is_gnu_ifunc_p'.
|
||
(find_pc_partial_function): Delete old implementation.
|
||
* symtab.h (find_pc_partial_function_gnu_ifunc): Delete.
|
||
|
||
2018-04-26 Pedro Alves <palves@redhat.com>
|
||
|
||
* linespec.c (struct bound_minimal_symbol_search_key): New.
|
||
(convert_linespec_to_sals): Sort minimal symbols earlier. Don't
|
||
skip first line if we found a GNU ifunc minimal symbol by name.
|
||
(compare_msymbols): Change parameters to work with a destructured
|
||
lhs minsym.
|
||
(compare_msymbols_for_qsort, compare_msymbols_for_bsearch): New
|
||
functions.
|
||
|
||
2018-04-26 Pedro Alves <palves@redhat.com>
|
||
|
||
* breakpoint.c (set_breakpoint_location_function): Don't resolve
|
||
ifunc targets here. Instead, if we have an ifunc minsym, use its
|
||
address/name.
|
||
(add_location_to_breakpoint): Store the minsym and the objfile in
|
||
the breakpoint location.
|
||
* breakpoint.h (bp_location) <msymbol, objfile>: New fields.
|
||
* linespec.c (minsym_found): Resolve GNU ifunc targets here.
|
||
Record the minsym in the sal.
|
||
* symtab.h (symtab_and_line) <msymbol>: New field.
|
||
|
||
2018-04-26 Pedro Alves <palves@redhat.com>
|
||
|
||
* elfread.c (elf_gnu_ifunc_resolve_by_got): Don't write to *ADDR_P
|
||
unless we actually resolved the ifunc.
|
||
|
||
2018-04-26 Pedro Alves <palves@redhat.com>
|
||
|
||
* c-exp.y (variable production): Prefer ifunc minsyms over
|
||
regular function symbols.
|
||
* symtab.c (find_gnu_ifunc): New function.
|
||
* minsyms.h (lookup_msym_prefer): New enum.
|
||
(lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
|
||
parameter by a lookup_msym_prefer parameter.
|
||
* symtab.h (find_gnu_ifunc): New declaration.
|
||
|
||
2018-04-26 Pedro Alves <palves@redhat.com>
|
||
|
||
* blockframe.c (find_gnu_ifunc_target_type): New function.
|
||
(find_function_type): New.
|
||
* eval.c (evaluate_var_msym_value): For GNU ifunc types, always
|
||
return a value with a memory address.
|
||
(eval_call): For calls to GNU ifunc functions, try to find the
|
||
type of the target function from the type that the resolver
|
||
returns.
|
||
* gdbtypes.c (objfile_type): Don't install a return type for ifunc
|
||
symbols.
|
||
* infcall.c (find_function_return_type): Delete.
|
||
(find_function_addr): Add 'function_type' parameter. For calls to
|
||
GNU ifunc functions, try to find the type of the target function
|
||
from the type that the resolver returns, and return it via
|
||
FUNCTION_TYPE.
|
||
(call_function_by_hand_dummy): Adjust to use the function type
|
||
returned by find_function_addr.
|
||
(find_function_addr): Add 'function_type' parameter and move
|
||
description here.
|
||
* symtab.h (find_function_type, find_gnu_ifunc_target_type): New
|
||
declarations.
|
||
|
||
2018-04-26 Pedro Alves <palves@redhat.com>
|
||
|
||
* c-exp.y (variable production): Skip finding an alias for ifunc
|
||
symbols.
|
||
|
||
2018-04-26 Pedro Alves <palves@redhat.com>
|
||
|
||
* elfread.c (elf_rel_plt_read): Look for relocations for .got.plt too.
|
||
|
||
2018-04-25 Pedro Alves <palves@redhat.com>
|
||
|
||
* infcmd.c (kill_command): Print the pid as string, not the whole
|
||
thread's ptid. Add comment. s/has been killed/killed/ in output
|
||
message.
|
||
* remote.c (remote_detach_1): Print the pid as string, not the
|
||
whole thread's ptid.
|
||
|
||
2018-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
|
||
Sergio Durigan Junior <sergiodj@redhat.com>
|
||
Pedro Alves <palves@redhat.com>
|
||
|
||
* infcmd.c (kill_command): Print message when inferior has
|
||
been killed.
|
||
* inferior.c (print_inferior_events): Remove 'static'. Set as
|
||
'1'.
|
||
(add_inferior): Improve message printed when
|
||
'print_inferior_events' is on.
|
||
(exit_inferior): Remove message printed when
|
||
'print_inferior_events' is on.
|
||
(detach_inferior): Improve message printed when
|
||
'print_inferior_events' is on.
|
||
(initialize_inferiors): Use 'add_inferior_silent' to set
|
||
'current_inferior_'.
|
||
* inferior.h (print_inferior_events): Declare here as
|
||
'extern'.
|
||
* infrun.c (follow_fork_inferior): Print '[Attaching...]' or
|
||
'[Detaching...]' messages when 'print_inferior_events' is on.
|
||
Use 'add_thread_silent' instead of 'add_thread'. Add '[' and ']'
|
||
as prefix/suffix for messages. Remove periods. Fix erroneous
|
||
'Detaching after fork from child...', replace it by '... from
|
||
parent...'.
|
||
(handle_vfork_child_exec_or_exit): Add '[' and ']' as
|
||
prefix/suffix when printing 'Detaching...' messages. Print
|
||
them when 'print_inferior_events' is on.
|
||
* remote.c (remote_detach_1): Print message when detaching
|
||
from inferior and '!is_fork_parent'.
|
||
|
||
2018-04-24 Tom Tromey <tom@tromey.com>
|
||
|
||
* cli-out.h: Reindent.
|
||
|
||
2018-04-24 Tom Tromey <tom@tromey.com>
|
||
|
||
* cli-out.c (cli_ui_out::out_field_fmt): Remove.
|
||
(cli_ui_out::do_field_string): Use fputs_filtered.
|
||
* cli-out.h (class cli_ui_out) <out_field_fmt>: Remove.
|
||
|
||
2018-04-23 Tom Tromey <tom@tromey.com>
|
||
|
||
* guile/scm-frame.c (gdbscm_frame_read_var): Use
|
||
gdb::unique_xmalloc_ptr.
|
||
|
||
2018-04-23 Tom Tromey <tom@tromey.com>
|
||
|
||
* configure: Rebuild.
|
||
|
||
2018-04-22 Rajendra SY <rajendra.sy@gmail.com>
|
||
|
||
PR gdb/23095
|
||
* gdb/testsuite/gdb.base/break-probes.exp: Pass shlib_load to
|
||
prepare_for_testing. Set normal_bp to r_debug_state if target
|
||
is bsd.
|
||
|
||
2018-04-21 Pedro Alves <palves@redhat.com>
|
||
Rajendra SY <rajendra.sy@gmail.com>
|
||
|
||
* inf-ptrace.c (inf_ptrace_attach): Mark the thread as executing.
|
||
* remote.c (extended_remote_attach): In all-stop mode, mark the
|
||
thread as executing.
|
||
|
||
2018-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
|
||
|
||
* thread.c (thread_apply_all_command): Fix comment.
|
||
(thread_command): Fix comment.
|
||
|
||
2018-04-10 Alan Hayward <alan.hayward@arm.com>
|
||
|
||
* common/tdesc.h (tdesc_create_feature): Remove xml filename
|
||
parameter.
|
||
* features/aarch64-core.c (create_feature_aarch64_core):
|
||
Regenerate.
|
||
* features/aarch64-fpu.c (create_feature_aarch64_fpu):
|
||
Likewise.
|
||
* features/i386/32bit-avx.c (create_feature_i386_32bit_avx):
|
||
Likewise.
|
||
* features/i386/32bit-avx512.c
|
||
(create_feature_i386_32bit_avx512): Likewise.
|
||
* features/i386/32bit-core.c (create_feature_i386_32bit_core):
|
||
Likewise.
|
||
* features/i386/32bit-linux.c (create_feature_i386_32bit_linux):
|
||
Likewise.
|
||
* features/i386/32bit-mpx.c (create_feature_i386_32bit_mpx):
|
||
Likewise.
|
||
* features/i386/32bit-pkeys.c (create_feature_i386_32bit_pkeys):
|
||
Likewise.
|
||
* features/i386/32bit-sse.c (create_feature_i386_32bit_sse):
|
||
Likewise.
|
||
* features/i386/64bit-avx.c (create_feature_i386_64bit_avx):
|
||
Likewise.
|
||
* features/i386/64bit-avx512.c
|
||
(create_feature_i386_64bit_avx512): Likewise.
|
||
* features/i386/64bit-core.c (create_feature_i386_64bit_core):
|
||
Likewise.
|
||
* features/i386/64bit-linux.c (create_feature_i386_64bit_linux):
|
||
Likewise.
|
||
* features/i386/64bit-mpx.c (create_feature_i386_64bit_mpx):
|
||
Likewise.
|
||
* features/i386/64bit-pkeys.c (create_feature_i386_64bit_pkeys):
|
||
Likewise.
|
||
* features/i386/64bit-segments.c
|
||
(create_feature_i386_64bit_segments): Likewise.
|
||
* features/i386/64bit-sse.c (create_feature_i386_64bit_sse):
|
||
Likewise.
|
||
* features/i386/x32-core.c
|
||
(create_feature_i386_x32_core): Likewise.
|
||
* features/tic6x-c6xp.c (create_feature_tic6x_c6xp): Likewise.
|
||
* features/tic6x-core.c (create_feature_tic6x_core): Likewise.
|
||
* features/tic6x-gp.c (create_feature_tic6x_gp): Likewise.
|
||
* target-descriptions.c: In generated code, don't pass xml
|
||
filename.
|
||
|
||
2018-04-18 Alan Hayward <alan.hayward@arm.com>
|
||
|
||
* common/tdesc.c (print_xml_feature::visit_pre): Add xml parsing.
|
||
(print_xml_feature::visit_post): Likewise.
|
||
(print_xml_feature::visit): Likewise.
|
||
* common/tdesc.h (tdesc_get_features_xml): Use const tdesc.
|
||
(print_xml_feature): Add new class.
|
||
* regformats/regdat.sh: Null xmltarget on feature targets.
|
||
* target-descriptions.c (struct target_desc): Add xmltarget.
|
||
(maintenance_check_tdesc_xml_convert): Add unittest function.
|
||
(tdesc_get_features_xml): Add function to get xml.
|
||
(maintenance_check_xml_descriptions): Test xml generation.
|
||
* xml-tdesc.c (string_read_description_xml): Add function.
|
||
* xml-tdesc.h (string_read_description_xml): Add declaration.
|
||
|
||
2018-04-18 Alan Hayward <alan.hayward@arm.com>
|
||
|
||
* features/Makefile: Add feature marker to targets with new style
|
||
target descriptions.
|
||
* regformats/aarch64.dat: Regenerate.
|
||
* regformats/i386/amd64-avx-avx512-linux.dat: Likewise.
|
||
* regformats/i386/amd64-avx-linux.dat: Likewise.
|
||
* regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Likewise.
|
||
* regformats/i386/amd64-avx-mpx-linux.dat: Likewise.
|
||
* regformats/i386/amd64-linux.dat: Likewise.
|
||
* regformats/i386/amd64-mpx-linux.dat: Likewise.
|
||
* regformats/i386/amd64.dat: Likewise.
|
||
* regformats/i386/i386-avx-avx512-linux.dat: Likewise.
|
||
* regformats/i386/i386-avx-linux.dat: Likewise.
|
||
* regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Likewise.
|
||
* regformats/i386/i386-avx-mpx-linux.dat: Likewise.
|
||
* regformats/i386/i386-linux.dat: Likewise.
|
||
* regformats/i386/i386-mmx-linux.dat: Likewise.
|
||
* regformats/i386/i386-mpx-linux.dat: Likewise.
|
||
* regformats/i386/i386.dat: Likewise.
|
||
* regformats/i386/x32-avx-avx512-linux.dat: Likewise.
|
||
* regformats/i386/x32-avx-linux.dat: Likewise.
|
||
* regformats/i386/x32-linux.dat: Likewise.
|
||
* regformats/tic6x-c62x-linux.dat: Likewise.
|
||
* regformats/tic6x-c64x-linux.dat: Likewise.
|
||
* regformats/tic6x-c64xp-linux.dat: Likewise.
|
||
* regformats/regdat.sh: Parse feature marker.
|
||
|
||
2018-04-18 Alan Hayward <alan.hayward@arm.com>
|
||
|
||
* common/tdesc.h (tdesc_architecture_name): Add new declaration.
|
||
(tdesc_osabi_name): Likewise.
|
||
* target-descriptions.c (tdesc_architecture_name): Add new
|
||
function.
|
||
(tdesc_osabi_name): Likewise.
|
||
|
||
2018-04-18 Alan Hayward <alan.hayward@arm.com>
|
||
|
||
* common/tdesc.c (tdesc_predefined_type): Move to here.
|
||
(tdesc_named_type): Likewise.
|
||
(tdesc_create_vector): Likewise.
|
||
(tdesc_create_struct): Likewise.
|
||
(tdesc_set_struct_size): Likewise.
|
||
(tdesc_create_union): Likewise.
|
||
(tdesc_create_flags): Likewise.
|
||
(tdesc_create_enum): Likewise.
|
||
(tdesc_add_field): Likewise.
|
||
(tdesc_add_typed_bitfield): Likewise.
|
||
(tdesc_add_bitfield): Likewise.
|
||
(tdesc_add_flag): Likewise.
|
||
(tdesc_add_enum_value): Likewise.
|
||
* common/tdesc.h (struct tdesc_type_builtin): Likewise.
|
||
(struct tdesc_type_vector): Likewise.
|
||
(struct tdesc_type_field): Likewise.
|
||
(struct tdesc_type_with_fields): Likewise.
|
||
(tdesc_create_enum): Add declaration.
|
||
(tdesc_add_typed_bitfield): Likewise.
|
||
(tdesc_add_enum_value): Likewise.
|
||
* target-descriptions.c (tdesc_type_field): Move from here.
|
||
(tdesc_type_builtin): Likewise.
|
||
(tdesc_type_vector): Likewise.
|
||
(tdesc_type_with_fields): Likewise.
|
||
(tdesc_predefined_types): Likewise.
|
||
(tdesc_named_type): Likewise.
|
||
(tdesc_create_vector): Likewise.
|
||
(tdesc_create_struct): Likewise.
|
||
(tdesc_set_struct_size): Likewise.
|
||
(tdesc_create_union): Likewise.
|
||
(tdesc_create_flags): Likewise.
|
||
(tdesc_create_enum): Likewise.
|
||
(tdesc_add_field): Likewise.
|
||
(tdesc_add_typed_bitfield): Likewise.
|
||
(tdesc_add_bitfield): Likewise.
|
||
(tdesc_add_flag): Likewise.
|
||
(tdesc_add_enum_value): Likewise.
|
||
* gdb/target-descriptions.h (tdesc_create_enum): Likewise.
|
||
(tdesc_add_typed_bitfield): Likewise.
|
||
(tdesc_add_enum_value): Likewise.
|
||
|
||
2018-04-18 Alan Hayward <alan.hayward@arm.com>
|
||
|
||
* common/tdesc.c (tdesc_feature::accept): Move to here.
|
||
(tdesc_feature::operator==): Likewise.
|
||
(tdesc_create_reg): Likewise.
|
||
* common/tdesc.h (tdesc_type_kind): Likewise.
|
||
(struct tdesc_type): Likewise.
|
||
(struct tdesc_feature): Likewise.
|
||
* regformats/regdat.sh: Create a feature.
|
||
* target-descriptions.c (tdesc_type_kind): Move from here.
|
||
(tdesc_type): Likewise.
|
||
(tdesc_type_up): Likewise.
|
||
(tdesc_feature): Likewise.
|
||
(tdesc_create_reg): Likewise.
|
||
|
||
2018-04-18 Alan Hayward <alan.hayward@arm.com>
|
||
|
||
* Makefile.in: Add arch/tdesc.c
|
||
* common/tdesc.c: New file.
|
||
* common/tdesc.h (tdesc_element_visitor): Move to here.
|
||
(tdesc_element): Likewise.
|
||
(tdesc_reg): Likewise.
|
||
(tdesc_reg_up): Likewise.
|
||
* regformats/regdef.h (reg): Add offset to constructors.
|
||
* target-descriptions.c (tdesc_element_visitor): Move from here.
|
||
(tdesc_element): Likewise.
|
||
(tdesc_reg): Likewise.
|
||
(tdesc_reg_up): Likewise.
|
||
|
||
2018-04-17 Tom Tromey <tom@tromey.com>
|
||
|
||
* dwarf2read.c (quirk_rust_enum): Conditionally drop the
|
||
discriminant field.
|
||
|
||
2018-04-17 Tom Tromey <tom@tromey.com>
|
||
|
||
* dwarf2read.c (quirk_rust_enum): Handle unions correctly.
|
||
|
||
2018-04-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
|
||
|
||
* symtab.c (print_symbol_info): Skip printing filename and line
|
||
number when `last' is NULL.
|
||
(symtab_symbol_info): Use empty string instead of NULL for first
|
||
invocation of print_symbol_info.
|
||
(rbreak_command): Pass NULL to `last' parameter of
|
||
print_symbol_info.
|
||
|
||
2018-04-16 Simon Marchi <simon.marchi@ericsson.com>
|
||
|
||
* linux-tdep.c (linux_spu_make_corefile_notes): Return note_data
|
||
instead of nullptr.
|
||
|
||
2018-04-16 Pedro Alves <palves@redhat.com>
|
||
|
||
* MAINTAINERS (sh): Remove.
|
||
* Makefile.in (ALL_TARGET_OBS): Remove sh64-tdep.o.
|
||
(HFILES_NO_SRCDIR): Remove sh64-tdep.h.
|
||
(ALLDEPFILES): Remove sh64-tdep.c.
|
||
* NEWS: Mentions that support for SH-5/SH64 is removed.
|
||
* configure.tgt (sh*-*-linux*): Remove reference to sh64-tdep.o.
|
||
(sh*-*-openbsd*): Ditto.
|
||
(sh64-*-elf*): Remove.
|
||
(sh*): Remove.
|
||
* regcache.c (cooked_write_test): Remove bfd_mach_sh5 case.
|
||
* sh-linux-tdep.c: Remove reference to bfd_mach_sh5.
|
||
* sh-tdep.c: No longer include "sh64-tdep.h".
|
||
(sh_gdbarch_init): Remove reference to bfd_mach_sh5.
|
||
* sh64-tdep.c, sh64-tdep.h: Remove files.
|
||
|
||
2018-04-16 Pedro Alves <palves@redhat.com>
|
||
|
||
* MAINTAINERS: Remove m88k.
|
||
* Makefile.in (ALL_TARGET_OBS): Remove m88k-tdep.o.
|
||
(HFILES_NO_SRCDIR): Remove m88k-tdep.h.
|
||
(ALLDEPFILES): Remove m88k-bsd-nat.c and m88k-tdep.c.
|
||
* NEWS: Mention that support for m88k was removed.
|
||
* configure.host (m88*-*-*): Remove support.
|
||
* configure.nat (m88k-*-*): Remove support.
|
||
* configure.tgt (m88*-*-openbsd*): Remove.
|
||
* m88k-bsd-nat.c, m88k-tdep.c, m88k-tdep.h: Delete.
|
||
|
||
2018-04-15 Simon Marchi <simon.marchi@polymtl.ca>
|
||
|
||
* configure.tgt (x86_tobjs): New variable.
|
||
(amd64_tobjs, i386_tobjs): Use it.
|
||
|
||
2018-04-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
|
||
|
||
* symtab.c (print_symbol_info): Precede the symbol definition by
|
||
the line number when available.
|
||
* NEWS: Advertise this enhancement.
|
||
|
||
2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
|
||
|
||
* NEWS (New options): announce set/show record btrace cpu.
|
||
* btrace.c: Include record-btrace.h.
|
||
(btrace_compute_ftrace_pt): Skip enabling errata workarounds if
|
||
the vendor is unknown.
|
||
(btrace_compute_ftrace_1): Add cpu parameter. Update callers.
|
||
Maybe overwrite the btrace configuration's cpu.
|
||
(btrace_compute_ftrace): Add cpu parameter. Update callers.
|
||
(btrace_fetch): Add cpu parameter. Update callers.
|
||
(btrace_maint_update_pt_packets): Call record_btrace_get_cpu.
|
||
Maybe overwrite the btrace configuration's cpu. Skip enabling
|
||
errata workarounds if the vendor is unknown.
|
||
* python/py-record-btrace.c: Include record-btrace.h.
|
||
(recpy_bt_begin, recpy_bt_end, recpy_bt_instruction_history)
|
||
(recpy_bt_function_call_history): Call record_btrace_get_cpu.
|
||
* record-btrace.c (record_btrace_cpu_state_kind): New.
|
||
(record_btrace_cpu): New.
|
||
(set_record_btrace_cpu_cmdlist): New.
|
||
(record_btrace_get_cpu): New.
|
||
(require_btrace_thread, record_btrace_info)
|
||
(record_btrace_resume_thread): Call record_btrace_get_cpu.
|
||
(cmd_set_record_btrace_cpu_none): New.
|
||
(cmd_set_record_btrace_cpu_auto): New.
|
||
(cmd_set_record_btrace_cpu): New.
|
||
(cmd_show_record_btrace_cpu): New.
|
||
(_initialize_record_btrace): Initialize set/show record btrace cpu
|
||
commands.
|
||
* record-btrace.h (record_btrace_get_cpu): New.
|
||
|
||
2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
|
||
|
||
* record.c (set_record_command): Fix typo in message.
|
||
|
||
2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
|
||
|
||
* record-btrace.c (cmd_set_record_btrace): Print sub-commands.
|
||
|
||
2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
|
||
|
||
* infrun.c (process_event_stop_test): Call
|
||
gdbarch_in_indirect_branch_thunk.
|
||
* gdbarch.sh (in_indirect_branch_thunk): New.
|
||
* gdbarch.c: Regenerated.
|
||
* gdbarch.h: Regenerated.
|
||
* x86-tdep.h: New.
|
||
* x86-tdep.c: New.
|
||
* Makefile.in (ALL_TARGET_OBS): Add x86-tdep.o.
|
||
(HFILES_NO_SRCDIR): Add x86-tdep.h.
|
||
(ALLDEPFILES): Add x86-tdep.c.
|
||
* arch-utils.h (default_in_indirect_branch_thunk): New.
|
||
* arch-utils.c (default_in_indirect_branch_thunk): New.
|
||
* i386-tdep: Include x86-tdep.h.
|
||
(i386_in_indirect_branch_thunk): New.
|
||
(i386_elf_init_abi): Set in_indirect_branch_thunk gdbarch
|
||
function.
|
||
* amd64-tdep: Include x86-tdep.h.
|
||
(amd64_in_indirect_branch_thunk): New.
|
||
(amd64_init_abi): Set in_indirect_branch_thunk gdbarch function.
|
||
|
||
2018-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
|
||
|
||
PR gdb/23053
|
||
* dwarf-index-write.c (data_buf::grow) (write_one_signatured_type)
|
||
(recursively_write_psymbols) (debug_names::recursively_write_psymbols)
|
||
(debug_names::write_one_signatured_type): Fix -D_GLIBCXX_DEBUG
|
||
regression.
|
||
|
||
2018-04-12 Tom Tromey <tom@tromey.com>
|
||
|
||
* rust-lang.c (rust_print_struct_def): Remove univariant code.
|
||
(rust_evaluate_subexp): Likewise.
|
||
|
||
2018-04-12 Pedro Alves <palves@redhat.com>
|
||
|
||
* procfs.c (procfs_detach): Make forward declaration's prototype
|
||
match definition's protototype.
|
||
(proc_get_LDT_entry): Remove stale do_cleanups call.
|
||
|
||
2018-04-12 Pedro Alves <palves@redhat.com>
|
||
|
||
* target.h (target_ops::to_has_exited): Delete.
|
||
(target_has_exited): Delete.
|
||
* target-delegates.c: Regenerate.
|
||
|
||
2018-04-11 Pedro Alves <palves@redhat.com>
|
||
|
||
* target.c (fileio_fh_t::t): Add comment.
|
||
(target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
|
||
(target_fileio_close): Handle a NULL target.
|
||
(invalidate_fileio_fh): New.
|
||
(target_close): Call it.
|
||
* remote.c (remote_hostio_send_command): No longer check whether
|
||
remote_desc is open.
|
||
|
||
2018-04-11 Pedro Alves <palves@redhat.com>
|
||
|
||
* target.c (fileio_fh_t): Make it a named struct instead of a
|
||
typedef.
|
||
(fileio_fh_t::is_closed): New method.
|
||
(DEF_VEC_O (fileio_fh_t)): Remove.
|
||
(fileio_fhandles): Now a std::vector.
|
||
(is_closed_fileio_fh): Delete.
|
||
(acquire_fileio_fd): Adjust. Rename parameters.
|
||
(release_fileio_fd): Adjust.
|
||
(fileio_fd_to_fh): Reimplement as a function instead of a macro.
|
||
(target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
|
||
(target_fileio_close): Adjust.
|
||
|
||
2018-04-10 Simon Marchi <simon.marchi@ericsson.com>
|
||
|
||
* auto-load.c (auto_load_safe_path_vec_update): Iterate by
|
||
index.
|
||
|
||
2018-04-10 Pedro Alves <palves@redhat.com>
|
||
|
||
* gdbthread.h (finish_thread_state_cleanup): Delete declaration.
|
||
(scoped_finish_thread_state): New class.
|
||
* infcmd.c (run_command_1): Use it instead of finish_thread_state
|
||
cleanup.
|
||
* infrun.c (proceed, prepare_for_detach, wait_for_inferior)
|
||
(fetch_inferior_event, normal_stop): Likewise.
|
||
* thread.c (finish_thread_state_cleanup): Delete.
|
||
|
||
2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
|
||
Pedro Alves <palves@redhat.com>
|
||
|
||
* value.c: Include "selftest.h" and "common/array-view.h".
|
||
(struct range) <operator ==>: New.
|
||
(test_ranges_contain): New.
|
||
(check_ranges_vector): New.
|
||
(test_insert_into_bit_range_vector): New.
|
||
(_initialize_values): Register selftests.
|
||
* common/array-view.h (operator==, operator!=): New.
|
||
|
||
2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
|
||
|
||
* common/gdb_vecs.h (unordered_remove): Add overload that takes
|
||
an iterator.
|
||
* inline-frame.c: Include <algorithm>.
|
||
(struct inline_state): Add constructor.
|
||
(inline_state_s): Remove.
|
||
(DEF_VEC_O(inline_state_s)): Remove.
|
||
(inline_states): Change type to std::vector.
|
||
(find_inline_frame_state): Adjust to std::vector.
|
||
(allocate_inline_frame_state): Remove.
|
||
(clear_inline_frame_state): Adjust to std::vector.
|
||
(skip_inline_frames): Adjust to std::vector.
|
||
|
||
2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
|
||
|
||
* tracepoint.h (struct trace_state_variable): Add constructor.
|
||
<name>: Change type to std::string.
|
||
* tracepoint.c (tsv_s): Remove.
|
||
(DEF_VEC_O(tsv_s)): Remove.
|
||
(tvariables): Change to std::vector.
|
||
(create_trace_state_variable): Adjust to std::vector.
|
||
(find_trace_state_variable): Likewise.
|
||
(find_trace_state_variable_by_number): Likewise.
|
||
(delete_trace_state_variable): Likewise.
|
||
(trace_variable_command): Adjust to std::string.
|
||
(delete_trace_variable_command): Likewise.
|
||
(tvariables_info_1): Adjust to std::vector.
|
||
(save_trace_state_variables): Likewise.
|
||
(start_tracing): Likewise.
|
||
(merge_uploaded_trace_state_variables): Adjust to std::vector
|
||
and std::string.
|
||
* target.h (struct target_ops)
|
||
<to_download_trace_state_variable>: Pass reference to
|
||
trace_state_variable.
|
||
* target-debug.h (target_debug_print_const_trace_state_variable_r): New.
|
||
* target-delegates.c: Re-generate.
|
||
* mi/mi-interp.c (mi_tsv_created): Adjust to std::string.
|
||
(mi_tsv_deleted): Likewise.
|
||
* mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
|
||
* remote.c (remote_download_trace_state_variable): Change
|
||
pointer to reference and adjust.
|
||
* make-target-delegates (parse_argtypes): Handle references.
|
||
(write_function_header): Likewise.
|
||
(munge_type): Likewise.
|
||
|
||
2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
|
||
|
||
* Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
|
||
string_view-selftests.c.
|
||
* unittests/basic_string_view/capacity/1.cc: Adapt to GDB
|
||
testsuite.
|
||
* unittests/basic_string_view/cons/char/1.cc: Likewise.
|
||
* unittests/basic_string_view/cons/char/2.cc: Likewise.
|
||
* unittests/basic_string_view/cons/char/3.cc: Likewise.
|
||
* unittests/basic_string_view/element_access/char/1.cc:
|
||
Likewise.
|
||
* unittests/basic_string_view/element_access/char/empty.cc:
|
||
Likewise.
|
||
* unittests/basic_string_view/element_access/char/front_back.cc:
|
||
Likewise.
|
||
* unittests/basic_string_view/inserters/char/2.cc: Likewise.
|
||
* unittests/basic_string_view/modifiers/remove_prefix/char/1.cc:
|
||
Likewise.
|
||
* unittests/basic_string_view/modifiers/remove_suffix/char/1.cc:
|
||
Likewise.
|
||
* unittests/basic_string_view/modifiers/swap/char/1.cc:
|
||
Likewise.
|
||
* unittests/basic_string_view/operations/compare/char/1.cc:
|
||
Likewise.
|
||
* unittests/basic_string_view/operations/compare/char/13650.cc:
|
||
Likewise.
|
||
* unittests/basic_string_view/operations/copy/char/1.cc:
|
||
Likewise.
|
||
* unittests/basic_string_view/operations/data/char/1.cc:
|
||
Likewise.
|
||
* unittests/basic_string_view/operations/find/char/1.cc:
|
||
Likewise.
|
||
* unittests/basic_string_view/operations/find/char/2.cc:
|
||
Likewise.
|
||
* unittests/basic_string_view/operations/find/char/3.cc:
|
||
Likewise.
|
||
* unittests/basic_string_view/operations/find/char/4.cc:
|
||
Likewise.
|
||
* unittests/basic_string_view/operations/rfind/char/1.cc:
|
||
Likewise.
|
||
* unittests/basic_string_view/operations/rfind/char/2.cc:
|
||
Likewise.
|
||
* unittests/basic_string_view/operations/rfind/char/3.cc:
|
||
Likewise.
|
||
* unittests/basic_string_view/operations/substr/char/1.cc:
|
||
Likewise.
|
||
* unittests/basic_string_view/operators/char/2.cc: Likewise.
|
||
* unittests/string_view-selftests.c: New file.
|
||
|
||
2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
|
||
|
||
* unittests/basic_string_view/capacity/1.cc: New file.
|
||
* unittests/basic_string_view/capacity/empty_neg.cc: New file.
|
||
* unittests/basic_string_view/cons/char/1.cc: New file.
|
||
* unittests/basic_string_view/cons/char/2.cc: New file.
|
||
* unittests/basic_string_view/cons/char/3.cc: New file.
|
||
* unittests/basic_string_view/cons/wchar_t/1.cc: New file.
|
||
* unittests/basic_string_view/cons/wchar_t/2.cc: New file.
|
||
* unittests/basic_string_view/cons/wchar_t/3.cc: New file.
|
||
* unittests/basic_string_view/element_access/char/1.cc: New file.
|
||
* unittests/basic_string_view/element_access/char/2.cc: New file.
|
||
* unittests/basic_string_view/element_access/char/empty.cc: New file.
|
||
* unittests/basic_string_view/element_access/char/front_back.cc: New file.
|
||
* unittests/basic_string_view/element_access/wchar_t/1.cc: New file.
|
||
* unittests/basic_string_view/element_access/wchar_t/2.cc: New file.
|
||
* unittests/basic_string_view/element_access/wchar_t/empty.cc: New file.
|
||
* unittests/basic_string_view/element_access/wchar_t/front_back.cc: New file.
|
||
* unittests/basic_string_view/include.cc: New file.
|
||
* unittests/basic_string_view/inserters/char/1.cc: New file.
|
||
* unittests/basic_string_view/inserters/char/2.cc: New file.
|
||
* unittests/basic_string_view/inserters/char/3.cc: New file.
|
||
* unittests/basic_string_view/inserters/pod/10081-out.cc: New file.
|
||
* unittests/basic_string_view/inserters/wchar_t/1.cc: New file.
|
||
* unittests/basic_string_view/inserters/wchar_t/2.cc: New file.
|
||
* unittests/basic_string_view/inserters/wchar_t/3.cc: New file.
|
||
* unittests/basic_string_view/literals/types.cc: New file.
|
||
* unittests/basic_string_view/literals/values.cc: New file.
|
||
* unittests/basic_string_view/modifiers/remove_prefix/char/1.cc: New file.
|
||
* unittests/basic_string_view/modifiers/remove_prefix/wchar_t/1.cc: New file.
|
||
* unittests/basic_string_view/modifiers/remove_suffix/char/1.cc: New file.
|
||
* unittests/basic_string_view/modifiers/remove_suffix/wchar_t/1.cc: New file.
|
||
* unittests/basic_string_view/modifiers/swap/char/1.cc: New file.
|
||
* unittests/basic_string_view/modifiers/swap/wchar_t/1.cc: New file.
|
||
* unittests/basic_string_view/operations/compare/char/1.cc: New file.
|
||
* unittests/basic_string_view/operations/compare/char/13650.cc: New file.
|
||
* unittests/basic_string_view/operations/compare/char/2.cc: New file.
|
||
* unittests/basic_string_view/operations/compare/char/70483.cc: New file.
|
||
* unittests/basic_string_view/operations/compare/wchar_t/1.cc: New file.
|
||
* unittests/basic_string_view/operations/compare/wchar_t/13650.cc: New file.
|
||
* unittests/basic_string_view/operations/compare/wchar_t/2.cc: New file.
|
||
* unittests/basic_string_view/operations/copy/char/1.cc: New file.
|
||
* unittests/basic_string_view/operations/copy/wchar_t/1.cc: New file.
|
||
* unittests/basic_string_view/operations/data/char/1.cc: New file.
|
||
* unittests/basic_string_view/operations/data/wchar_t/1.cc: New file.
|
||
* unittests/basic_string_view/operations/find/char/1.cc: New file.
|
||
* unittests/basic_string_view/operations/find/char/2.cc: New file.
|
||
* unittests/basic_string_view/operations/find/char/3.cc: New file.
|
||
* unittests/basic_string_view/operations/find/char/4.cc: New file.
|
||
* unittests/basic_string_view/operations/find/wchar_t/1.cc: New file.
|
||
* unittests/basic_string_view/operations/find/wchar_t/2.cc: New file.
|
||
* unittests/basic_string_view/operations/find/wchar_t/3.cc: New file.
|
||
* unittests/basic_string_view/operations/find/wchar_t/4.cc: New file.
|
||
* unittests/basic_string_view/operations/rfind/char/1.cc: New file.
|
||
* unittests/basic_string_view/operations/rfind/char/2.cc: New file.
|
||
* unittests/basic_string_view/operations/rfind/char/3.cc: New file.
|
||
* unittests/basic_string_view/operations/rfind/wchar_t/1.cc: New file.
|
||
* unittests/basic_string_view/operations/rfind/wchar_t/2.cc: New file.
|
||
* unittests/basic_string_view/operations/rfind/wchar_t/3.cc: New file.
|
||
* unittests/basic_string_view/operations/string_conversion/1.cc: New file.
|
||
* unittests/basic_string_view/operations/substr/char/1.cc: New file.
|
||
* unittests/basic_string_view/operations/substr/wchar_t/1.cc: New file.
|
||
* unittests/basic_string_view/operators/char/2.cc: New file.
|
||
* unittests/basic_string_view/operators/wchar_t/2.cc: New file.
|
||
* unittests/basic_string_view/range_access/char/1.cc: New file.
|
||
* unittests/basic_string_view/range_access/wchar_t/1.cc: New file.
|
||
* unittests/basic_string_view/requirements/explicit_instantiation/1.cc: New file.
|
||
* unittests/basic_string_view/requirements/explicit_instantiation/char/1.cc: New file.
|
||
* unittests/basic_string_view/requirements/explicit_instantiation/char16_t/1.cc: New file.
|
||
* unittests/basic_string_view/requirements/explicit_instantiation/char32_t/1.cc: New file.
|
||
* unittests/basic_string_view/requirements/explicit_instantiation/wchar_t/1.cc: New file.
|
||
* unittests/basic_string_view/requirements/typedefs.cc: New file.
|
||
* unittests/basic_string_view/typedefs.cc: New file.
|
||
* unittests/basic_string_view/types/1.cc: New file.
|
||
|
||
2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
|
||
|
||
* common/gdb_string_view.h: Remove libstdc++ implementation
|
||
details, adjust to gdb reality.
|
||
* common/gdb_string_view.tcc: Likewise.
|
||
* cli/cli-script.c (struct string_view): Remove.
|
||
(user_args) <m_args>: Change element type to gdb::string_view.
|
||
(user_args::insert_args): Adjust.
|
||
|
||
2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
|
||
|
||
* common/gdb_string_view.h: New file.
|
||
* common/gdb_string_view.tcc: New file.
|
||
|
||
2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
|
||
|
||
* ax_cxx_compile_stdcxx.m4: Sync with upstream.
|
||
* configure: Re-generate.
|
||
|
||
2018-04-09 Pedro Alves <palves@redhat.com>
|
||
|
||
* gdbarch.sh: Include "observable.h" instead of "observer.h".
|
||
(set_target_gdbarch): Call
|
||
gdb::observers::architecture_changed.notify instead of
|
||
observer_notify_architecture_changed.
|
||
|
||
2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
|
||
|
||
* tracepoint.c (struct current_traceframe_cleanup): Remove.
|
||
(do_restore_current_traceframe_cleanup): Remove.
|
||
(restore_current_traceframe_cleanup_dtor): Remove.
|
||
(make_cleanup_restore_current_traceframe): Remove.
|
||
(scoped_restore_current_traceframe::scoped_restore_current_traceframe):
|
||
New.
|
||
* tracepoint.h (struct scoped_restore_current_traceframe): New.
|
||
* infrun.c (fetch_inferior_event): Use
|
||
scoped_restore_current_traceframe.
|
||
|
||
2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
|
||
|
||
* dwarf2read.h (struct dwarf2_per_objfile) <n_type_units>:
|
||
Remove.
|
||
<n_allocated_type_units>: Remove.
|
||
<all_type_units>: Change to std::vector.
|
||
* dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
|
||
to std::vector change.
|
||
(dwarf2_per_objfile::get_cutu): Likewise.
|
||
(dwarf2_per_objfile::get_tu): Likewise.
|
||
(create_signatured_type_table_from_index): Likewise.
|
||
(create_signatured_type_table_from_debug_names): Likewise.
|
||
(dw2_symtab_iter_next): Likewise.
|
||
(dw2_print_stats): Likewise.
|
||
(dw2_expand_all_symtabs): Likewise.
|
||
(dw2_expand_marked_cus): Likewise.
|
||
(dw2_debug_names_iterator::next): Likewise.
|
||
(dwarf2_initialize_objfile): Likewise.
|
||
(add_signatured_type_cu_to_table): Likewise.
|
||
(create_all_type_units): Likewise.
|
||
(add_type_unit): Likewise.
|
||
(struct tu_abbrev_offset): Add constructor.
|
||
(build_type_psymtabs_1): Adjust to std::vector change.
|
||
(print_tu_stats): Likewise.
|
||
* dwarf-index-write.c (check_dwarf64_offsets): Likewise.
|
||
(write_debug_names): Likewise.
|
||
|
||
2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
|
||
|
||
* dwarf2read.h (struct dwarf2_per_objfile) <all_comp_units>: Likewise.
|
||
Make an std::vector.
|
||
<n_comp_units>: Remove.
|
||
* dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
|
||
to std::vector change.
|
||
(dwarf2_per_objfile::get_cutu): Likewise.
|
||
(dwarf2_per_objfile::get_cu): Likewise.
|
||
(create_cus_from_index): Likewise.
|
||
(create_addrmap_from_index): Likewise.
|
||
(create_addrmap_from_aranges): Likewise.
|
||
(dwarf2_read_index): Likewise.
|
||
(dw2_find_last_source_symtab): Likewise.
|
||
(dw2_map_symtabs_matching_filename): Likewise.
|
||
(dw2_symtab_iter_next): Likewise.
|
||
(dw2_print_stats): Likewise.
|
||
(dw2_expand_all_symtabs): Likewise.
|
||
(dw2_expand_symtabs_with_fullname): Likewise.
|
||
(dw2_expand_marked_cus): Likewise.
|
||
(dw2_map_symbol_filenames): Likewise.
|
||
(create_cus_from_debug_names): Likewise.
|
||
(dwarf2_read_debug_names): Likewise.
|
||
(dw2_debug_names_iterator::next): Likewise.
|
||
(dwarf2_initialize_objfile): Likewise.
|
||
(set_partial_user): Likewise.
|
||
(dwarf2_build_psymtabs_hard): Likewise.
|
||
(read_comp_units_from_section): Remove arguments, adjust to
|
||
std::vector change.
|
||
(create_all_comp_units): Adjust to std::vector and
|
||
read_comp_units_from_section changes.
|
||
(dwarf2_find_containing_comp_unit): Adjust to std::vector
|
||
change.
|
||
* dwarf-index-write.c (check_dwarf64_offsets): Likewise.
|
||
(psyms_seen_size): Likewise.
|
||
(write_gdbindex): Likewise.
|
||
(write_debug_names): Likewise.
|
||
|
||
2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
|
||
|
||
* dwarf2read.c (create_cus_from_index_list): Replace objfile arg
|
||
with dwarf2_per_objfile.
|
||
(create_cus_from_index): Likewise.
|
||
(create_signatured_type_table_from_index): Likewise.
|
||
(dwarf2_read_index): Likewise.
|
||
(dwarf2_initialize_objfile): Likewise.
|
||
(dwarf2_fetch_die_loc_sect_off): Get dwarf2_per_objfile from
|
||
per_cu rather than get_dwarf2_per_objfile.
|
||
|
||
2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
|
||
|
||
* dwarf2read.h (struct signatured_type): Forward declare.
|
||
(struct dwarf2_per_objfile) <get_cutu, get_cu, get_tu>:
|
||
New methods.
|
||
* dwarf2read.c (dwarf2_per_objfile::get_cutu): Rename from...
|
||
(dw2_get_cutu): ...this.
|
||
(dwarf2_per_objfile::get_cu): Rename from...
|
||
(dw2_get_cu): ...this.
|
||
(dwarf2_per_objfile::get_tu): New.
|
||
(create_addrmap_from_index): Adjust.
|
||
(create_addrmap_from_aranges): Adjust.
|
||
(dw2_find_last_source_symtab): Adjust.
|
||
(dw2_map_symtabs_matching_filename): Adjust.
|
||
(dw2_symtab_iter_next): Adjust.
|
||
(dw2_print_stats): Adjust.
|
||
(dw2_expand_all_symtabs): Adjust.
|
||
(dw2_expand_symtabs_with_fullname): Adjust.
|
||
(dw2_expand_marked_cus): Adjust.
|
||
(dw_expand_symtabs_matching_file_matcher): Adjust.
|
||
(dw2_map_symbol_filenames): Adjust.
|
||
(dw2_debug_names_iterator::next): Adjust.
|
||
(dwarf2_initialize_objfile): Adjust.
|
||
(set_partial_user): Adjust.
|
||
(dwarf2_build_psymtabs_hard): Adjust.
|
||
|
||
2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
|
||
|
||
* dwarf2read.c (create_signatured_type_table_from_debug_names):
|
||
Remove unused variables.
|
||
(dw2_map_symtabs_matching_filename): Likewise.
|
||
(dwarf2_record_block_ranges): Likewise.
|
||
(dwarf2_read_addr_index): Likewise.
|
||
(follow_die_offset): Likewise.
|
||
|
||
2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
|
||
|
||
* progspace.c (clone_program_space): Pass SYMFILE_DEFER_BP_RESET
|
||
to symbol_file_add_main.
|
||
|
||
2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
|
||
|
||
PR mi/22299
|
||
* mi/mi-console.c (do_fputc_async_safe): New.
|
||
(mi_console_file::write_async_safe): New.
|
||
(mi_console_file::flush): Adjust calls to fputstrn_unfiltered.
|
||
* mi/mi-console.h (class mi_console_file) <write_async_safe>:
|
||
New.
|
||
* ui-file.c (ui_file::putstrn): Adjust call to
|
||
fputstrn_unfiltered.
|
||
* utils.c (printchar): Replace do_fputs and do_fprintf
|
||
parameters by do_fputc.
|
||
(fputstr_filtered): Adjust call to printchar.
|
||
(fputstr_unfiltered): Likewise.
|
||
(fputstrn_filtered): Likewise.
|
||
(fputstrn_unfiltered): Add do_fputc parameter, pass to
|
||
printchar.
|
||
* utils.h (do_fputc_ftype): New typedef.
|
||
(fputstrn_unfiltered): Add do_fputc parameter.
|
||
|
||
2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
|
||
|
||
* regformats/i386/i386-avx.dat: Remove.
|
||
|
||
2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
|
||
|
||
PR gdb/22979
|
||
* amd64-tdep.c (amd64_none_init_abi): New function.
|
||
(amd64_x32_none_init_abi): New function.
|
||
(_initialize_amd64_tdep): Register handlers for x86-64 and
|
||
x64_32 with GDB_OSABI_NONE.
|
||
* osabi.c (gdbarch_init_osabi): Allow running handlers for the
|
||
GDB_OSABI_NONE osabi.
|
||
|
||
2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
|
||
|
||
PR gdb/22980
|
||
* defs.h (enum gdb_osabi): Remove GDB_OSABI_UNINITIALIZED, add
|
||
GDB_OSABI_NONE.
|
||
* arch-utils.c (gdbarch_info_init): Don't set info->osabi.
|
||
* osabi.c (gdb_osabi_names): Add "unknown" entry.
|
||
|
||
2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
|
||
|
||
* common/byte-vector.h (char_vector): New type.
|
||
* target.h (target_read_alloc): Return
|
||
gdb::optional<byte_vector>.
|
||
(target_read_stralloc): Return gdb::optional<char_vector>.
|
||
(target_get_osdata): Return gdb::optional<char_vector>.
|
||
* target.c (target_read_alloc_1): Templatize. Replacement
|
||
manual memory management with vector.
|
||
(target_read_alloc): Change return type, adjust.
|
||
(target_read_stralloc): Change return type, adjust.
|
||
(target_get_osdata): Change return type, adjust.
|
||
* auxv.c (struct auxv_info) <length>: Remove.
|
||
<data>: Change type to gdb::optional<byte_vector>.
|
||
(auxv_inferior_data_cleanup): Free auxv_info with delete.
|
||
(get_auxv_inferior_data): Allocate auxv_info with new, adjust.
|
||
(target_auxv_search): Adjust.
|
||
(fprint_target_auxv): Adjust.
|
||
* avr-tdep.c (avr_io_reg_read_command): Adjust.
|
||
* linux-tdep.c (linux_spu_make_corefile_notes): Adjust.
|
||
(linux_make_corefile_notes): Adjust.
|
||
* osdata.c (get_osdata): Adjust.
|
||
* remote.c (remote_get_threads_with_qxfer): Adjust.
|
||
(remote_memory_map): Adjust.
|
||
(remote_traceframe_info): Adjust.
|
||
(btrace_read_config): Adjust.
|
||
(remote_read_btrace): Adjust.
|
||
(remote_pid_to_exec_file): Adjust.
|
||
* solib-aix.c (solib_aix_get_library_list): Adjust.
|
||
* solib-dsbt.c (decode_loadmap): Don't free buf.
|
||
(dsbt_get_initial_loadmaps): Adjust.
|
||
* solib-svr4.c (svr4_current_sos_via_xfer_libraries): Adjust.
|
||
* solib-target.c (solib_target_current_sos): Adjust.
|
||
* tracepoint.c (sdata_make_value): Adjust.
|
||
* xml-support.c (xinclude_start_include): Adjust.
|
||
(xml_fetch_content_from_file): Adjust.
|
||
* xml-support.h (xml_fetch_another): Change return type.
|
||
(xml_fetch_content_from_file): Change return type.
|
||
* xml-syscall.c (xml_init_syscalls_info): Adjust.
|
||
* xml-tdesc.c (file_read_description_xml): Adjust.
|
||
(fetch_available_features_from_target): Change return type.
|
||
(target_fetch_description_xml): Adjust.
|
||
(target_read_description_xml): Adjust.
|
||
|
||
2018-04-06 Tom Tromey <tom@tromey.com>
|
||
|
||
* value.c (~value): Update.
|
||
(struct value) <contents>: Now unique_xmalloc_ptr.
|
||
(value_contents_bits_eq, allocate_value_contents)
|
||
(value_contents_raw, value_contents_all_raw)
|
||
(value_contents_for_printing, value_contents_for_printing_const)
|
||
(set_value_enclosing_type): Update.
|
||
|
||
2018-04-06 Tom Tromey <tom@tromey.com>
|
||
|
||
* value.c (range_s): Remove typedef, VEC.
|
||
(struct range): Add operator<.
|
||
(range_lessthan): Remove.
|
||
(ranges_contain): Change type.
|
||
(~value): Update.
|
||
(struct value) <unavailable, optimized_out>: Now std::vector.
|
||
(value_entirely_available)
|
||
(value_entirely_covered_by_range_vector)
|
||
(value_entirely_unavailable, value_entirely_optimized_out):
|
||
Update.
|
||
(insert_into_bit_range_vector): Change argument type.
|
||
(find_first_range_overlap): Likewise.
|
||
(struct ranges_and_idx, value_contents_bits_eq)
|
||
(require_not_optimized_out, require_available): Update.
|
||
(ranges_copy_adjusted): Change argument types.
|
||
(value_optimized_out, value_copy, value_fetch_lazy): Update.
|
||
|
||
2018-04-06 Tom Tromey <tom@tromey.com>
|
||
|
||
* value.c (~value): Update.
|
||
(struct value) <parent>: Now a value_ref_ptr.
|
||
(value_parent, set_value_parent, value_address, value_copy):
|
||
Update.
|
||
|
||
2018-04-06 Tom Tromey <tom@tromey.com>
|
||
|
||
* value.c (struct value): Add constructor, destructor, and member
|
||
initializers.
|
||
(allocate_value_lazy, value_decref): Update.
|
||
|
||
2018-04-06 Tom Tromey <tom@tromey.com>
|
||
|
||
* value.c (struct value) <released, next>: Remove.
|
||
(all_values): Now a std::vector.
|
||
(allocate_value_lazy): Update.
|
||
(value_next): Remove.
|
||
(value_mark, value_free_to_mark, release_value)
|
||
(value_release_to_mark): Update.
|
||
|
||
2018-04-06 Tom Tromey <tom@tromey.com>
|
||
|
||
* value.h (fetch_subexp_value, value_release_to_mark): Update.
|
||
(free_value_chain): Remove.
|
||
* value.c (free_value_chain): Remove.
|
||
(value_release_to_mark): Return a std::vector.
|
||
* ppc-linux-nat.c (num_memory_accesses): Change "chain" to a
|
||
std::vector.
|
||
(check_condition): Update.
|
||
* eval.c (fetch_subexp_value): Change "val_chain" to a
|
||
std::vector.
|
||
* breakpoint.c (update_watchpoint): Update.
|
||
(can_use_hardware_watchpoint): Change "vals" to a std::vector.
|
||
|
||
2018-04-06 Tom Tromey <tom@tromey.com>
|
||
|
||
* value.h (free_all_values): Remove.
|
||
* value.c (free_all_values): Remove.
|
||
|
||
2018-04-06 Tom Tromey <tom@tromey.com>
|
||
|
||
* value.c (VALUE_HISTORY_CHUNK, struct value_history_chunk)
|
||
(value_history_chain, value_history_count): Remove.
|
||
(value_history): New global.
|
||
(record_latest_value, access_value_history, show_values)
|
||
(preserve_values): Update.
|
||
|
||
2018-04-06 Tom Tromey <tom@tromey.com>
|
||
|
||
* varobj.h (struct varobj) <value>: Now a value_ref_ptr.
|
||
* varobj.c (varobj_set_display_format, varobj_set_value)
|
||
(install_default_visualizer, construct_visualizer)
|
||
(install_new_value, ~varobj, varobj_get_value_type)
|
||
(my_value_of_variable, varobj_editable_p): Update.
|
||
* c-varobj.c (c_describe_child, c_value_of_variable)
|
||
(cplus_number_of_children, cplus_describe_child): Update.
|
||
* ada-varobj.c (ada_number_of_children, ada_name_of_child)
|
||
(ada_path_expr_of_child, ada_value_of_child, ada_type_of_child)
|
||
(ada_value_of_variable, ada_value_is_changeable_p): Update.
|
||
|
||
2018-04-06 Tom Tromey <tom@tromey.com>
|
||
|
||
* printcmd.c (last_examine_address): Change type to
|
||
value_ref_ptr.
|
||
(do_examine, x_command): Update.
|
||
|
||
2018-04-06 Tom Tromey <tom@tromey.com>
|
||
|
||
* value.c (release_value): Update.
|
||
* breakpoint.h (struct watchpoint) <val>: Now a value_ref_ptr.
|
||
(struct bpstats) <val>: Now a value_ref_ptr.
|
||
* breakpoint.c (update_watchpoint, breakpoint_init_inferior)
|
||
(~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
|
||
(~watchpoint, print_it_watchpoint, watch_command_1)
|
||
(invalidate_bp_value_on_memory_change): Update.
|
||
|
||
2018-04-06 Tom Tromey <tom@tromey.com>
|
||
|
||
* varobj.c (varobj_clear_saved_item)
|
||
(update_dynamic_varobj_children, install_new_value, ~varobj):
|
||
Update.
|
||
* value.h (value_incref): Move declaration earlier.
|
||
(value_decref): Rename from value_free.
|
||
(struct value_ref_policy): New.
|
||
(value_ref_ptr): New typedef.
|
||
(struct value_deleter): Remove.
|
||
(gdb_value_up): Remove typedef.
|
||
(release_value): Change return type.
|
||
(release_value_or_incref): Remove.
|
||
* value.c (set_value_parent): Update.
|
||
(value_incref): Change return type.
|
||
(value_decref): Rename from value_free.
|
||
(value_free_to_mark, free_all_values, free_value_chain): Update.
|
||
(release_value): Return value_ref_ptr.
|
||
(release_value_or_incref): Remove.
|
||
(record_latest_value, set_internalvar, clear_internalvar):
|
||
Update.
|
||
* stack.c (info_frame_command): Don't call value_free.
|
||
* python/py-value.c (valpy_dealloc, valpy_new)
|
||
(value_to_value_object): Update.
|
||
* printcmd.c (do_examine): Update.
|
||
* opencl-lang.c (lval_func_free_closure): Update.
|
||
* mi/mi-main.c (register_changed_p): Don't call value_free.
|
||
* mep-tdep.c (mep_frame_prev_register): Don't call value_free.
|
||
* m88k-tdep.c (m88k_frame_prev_register): Don't call value_free.
|
||
* m68hc11-tdep.c (m68hc11_frame_prev_register): Don't call
|
||
value_free.
|
||
* guile/scm-value.c (vlscm_free_value_smob)
|
||
(vlscm_scm_from_value): Update.
|
||
* frame.c (frame_register_unwind, frame_unwind_register_signed)
|
||
(frame_unwind_register_unsigned, get_frame_register_bytes)
|
||
(put_frame_register_bytes): Don't call value_free.
|
||
* findvar.c (address_from_register): Don't call value_free.
|
||
* dwarf2read.c (dwarf2_compute_name): Don't call value_free.
|
||
* dwarf2loc.c (entry_data_value_free_closure)
|
||
(value_of_dwarf_reg_entry, free_pieced_value_closure)
|
||
(dwarf2_evaluate_loc_desc_full): Update.
|
||
* breakpoint.c (update_watchpoint, breakpoint_init_inferior)
|
||
(~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
|
||
(~watchpoint, watch_command_1)
|
||
(invalidate_bp_value_on_memory_change): Update.
|
||
* alpha-tdep.c (alpha_register_to_value): Don't call value_free.
|
||
|
||
2018-04-06 Simon Marchi <simon.marchi@polymtl.ca>
|
||
|
||
PR gdb/23022
|
||
* warning.m4: Add -Wno-error=deprecated-register.
|
||
* configure: Re-generate.
|
||
|
||
2018-04-05 Tom Tromey <tom@tromey.com>
|
||
|
||
* linespec.h: Remove include of "vec.h".
|
||
|
||
2018-04-05 Tom Tromey <tom@tromey.com>
|
||
|
||
* linespec.c (typep): Remove typedef.
|
||
(find_methods, find_superclass_methods): Take a std::vector.
|
||
(find_method): Use std::vector.
|
||
|
||
2018-04-05 Tom Tromey <tom@tromey.com>
|
||
|
||
* utils.c (compare_strings): Remove.
|
||
* utils.h (compare_strings): Remove.
|
||
* objc-lang.h (find_imps): Update.
|
||
* objc-lang.c (find_methods): Take a std::vector.
|
||
(uniquify_strings, find_imps): Likewise.
|
||
* linespec.c (find_methods): Take a std::vector.
|
||
(decode_objc): Use std::vector.
|
||
(add_all_symbol_names_from_pspace, find_superclass_methods): Take
|
||
a std::vector.
|
||
(find_method, find_function_symbols): Use std::vector.
|
||
|
||
2018-04-05 Tom Tromey <tom@tromey.com>
|
||
|
||
* completer.c (completion_tracker::completion_tracker): Remove
|
||
cast.
|
||
(completion_tracker::discard_completions): Likewise.
|
||
* breakpoint.c (ambiguous_names_p): Remove cast.
|
||
* ada-lang.c (_initialize_ada_language): Remove cast.
|
||
* utils.h (streq): Update.
|
||
(streq_hash): Add new declaration.
|
||
* utils.c (streq): Return bool.
|
||
(streq_hash): New function.
|
||
|
||
2018-04-05 Tom Tromey <tom@tromey.com>
|
||
|
||
* linespec.c (event_location_to_sals) <case ADDRESS_LOCATION>:
|
||
Remove a string copy.
|
||
|
||
2018-04-05 Tom Tromey <tom@tromey.com>
|
||
|
||
* linespec.c (filter_results): Use std::vector.
|
||
(decode_line_2, decode_line_full): Update.
|
||
|
||
2018-04-05 Tom Tromey <tom@tromey.com>
|
||
|
||
* linespec.c (canonical_to_fullform): Return std::string.
|
||
(filter_results): Update.
|
||
(struct decode_line_2_item): Add constructor.
|
||
<fullform, displayform>: Now std::string.
|
||
(decode_line_2_compare_items): Now a std::sort comparator.
|
||
(decode_line_2): Update.
|
||
|
||
2018-04-05 Tom Tromey <tom@tromey.com>
|
||
|
||
* linespec.c (copy_token_string): Return a unique_xmalloc_ptr.
|
||
(unexpected_linespec_error): Update.
|
||
(linespec_parse_basic, parse_linespec): Update.
|
||
|
||
2018-04-05 Tom Tromey <tom@tromey.com>
|
||
|
||
* linespec.c (linespec_parse_basic): Reindent.
|
||
|
||
2018-04-05 Tom Tromey <tom@tromey.com>
|
||
|
||
* minsyms.h (iterate_over_minimal_symbols): Update.
|
||
* minsyms.c (iterate_over_minimal_symbols): Take a
|
||
gdb::function_view.
|
||
* linespec.c (struct collect_minsyms): Remove.
|
||
(compare_msyms): Now a std::sort comparator.
|
||
(add_minsym): Add parameters.
|
||
(search_minsyms_for_name): Update. Use std::vector.
|
||
|
||
2018-04-03 Tom Tromey <tom@tromey.com>
|
||
|
||
* mipsread.c (read_alphacoff_dynamic_symtab): Use
|
||
gdb::byte_vector.
|
||
|
||
2018-04-02 Weimin Pan <weimin.pan@oracle.com>
|
||
|
||
* MAINTAINERS (Write After Approval): Add Weimin Pan.
|
||
|
||
2018-04-02 Weimin Pan <weimin.pan@oracle.com>
|
||
|
||
PR gdb/16959
|
||
* cp-valprint.c: (cp_print_static_field) Fix infinite recursion when
|
||
printing static type.
|
||
|
||
2018-04-01 Tom Tromey <tom@tromey.com>
|
||
|
||
* rs6000-nat.c (rs6000_ptrace_ldinfo): Return a byte_vector.
|
||
(rs6000_xfer_shared_libraries): Update.
|
||
|
||
2018-04-01 Simon Marchi <simon.marchi@polymtl.ca>
|
||
|
||
* common/gdb_vecs.h (char_ptr): Remove.
|
||
* tracepoint.c (encode_actions_1): Remove usage of char_ptr.
|
||
|
||
2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
|
||
|
||
* guile/scm-utils.c (gdbscm_parse_function_args): Replace VEC
|
||
with std::vector.
|
||
* common/gdb_vecs.h (DEF_VEC_P (char_ptr)): Remove.
|
||
|
||
2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
|
||
|
||
* tracepoint.h (struct uploaded_tp): Initialize fields.
|
||
<actions, step_actions, cmd_strings>: Change type to
|
||
std::vector<char *>.
|
||
* tracepoint.c (get_uploaded_tp): Allocate with new.
|
||
(free_uploaded_tps): Free with delete.
|
||
(parse_tracepoint_definition): Adjust to std::vector change.
|
||
* breakpoint.c (read_uploaded_action): Likewise.
|
||
(create_tracepoint_from_upload): Likewise.
|
||
* ctf.c (ctf_write_uploaded_tp): Likewise.
|
||
(SET_ARRAY_FIELD): Likewise.
|
||
* tracefile-tfile.c (tfile_write_uploaded_tp): Likewise.
|
||
|
||
2018-03-30 Tom Tromey <tom@tromey.com>
|
||
|
||
* solib-svr4.c (lm_info_read): Use gdb::byte_vector. Return
|
||
std::unique_ptr.
|
||
(svr4_keep_data_in_core): Update.
|
||
(svr4_read_so_list): Update.
|
||
|
||
2018-03-30 Tom Tromey <tom@tromey.com>
|
||
|
||
* windows-nat.c (handle_output_debug_string, handle_exception):
|
||
Update.
|
||
* target.h (target_read_string): Update.
|
||
* target.c (target_read_string): Change "string" to
|
||
unique_xmalloc_ptr.
|
||
* solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
|
||
Update.
|
||
* solib-frv.c (frv_current_sos): Update.
|
||
* solib-dsbt.c (dsbt_current_sos): Update.
|
||
* solib-darwin.c (darwin_current_sos): Update.
|
||
* linux-thread-db.c (inferior_has_bug): Update.
|
||
* expprint.c (print_subexp_standard) <case OP_OBJC_MSGCALL>:
|
||
Update. Remove alloca.
|
||
* ada-lang.c (ada_main_name): Update.
|
||
|
||
2018-03-30 Tom Tromey <tom@tromey.com>
|
||
|
||
* dwarf2read.c (struct free_dwo_file_cleanup_data): Remove.
|
||
(struct dwo_file_deleter): New.
|
||
(dwo_file_up): New typedef.
|
||
(open_and_init_dwo_file): Use dwo_file_up.
|
||
(free_dwo_file_cleanup): Remove.
|
||
|
||
2018-03-30 Tom Tromey <tom@tromey.com>
|
||
|
||
* dwarf2read.c (free_dwo_file): Remove "objfile" parameter.
|
||
(free_dwo_file_cleanup, free_dwo_file_from_slot): Update.
|
||
|
||
2018-03-30 Tom Tromey <tom@tromey.com>
|
||
|
||
* dwarf2read.c (class free_cached_comp_units): New class.
|
||
(dw2_instantiate_symtab, dwarf2_build_psymtabs_hard): Use it.
|
||
(free_cached_comp_units): Remove function.
|
||
|
||
2018-03-30 Tom Tromey <tom@tromey.com>
|
||
|
||
* utils.h (make_cleanup_unpush_target): Remove.
|
||
* inf-ptrace.c (struct target_unpusher): New.
|
||
(target_unpush_up) New typedef.
|
||
(inf_ptrace_create_inferior, inf_ptrace_attach): Use
|
||
target_unpush_up.
|
||
* utils.c (do_unpush_target, make_cleanup_unpush_target): Remove.
|
||
|
||
2018-03-27 Tom Tromey <tom@tromey.com>
|
||
|
||
* utils.c (prompt_for_continue): Use unique_xmalloc_ptr.
|
||
|
||
2018-03-27 Pedro Alves <palves@redhat.com>
|
||
Tom Tromey <tom@tromey.com>
|
||
|
||
* top.c (class gdb_readline_wrapper_cleanup): Add constructor,
|
||
destructor. Now a class.
|
||
(gdb_readline_wrapper_cleanup): Remove function.
|
||
(gdb_readline_wrapper): Remove cleanups.
|
||
|
||
2018-03-27 Tom Tromey <tom@tromey.com>
|
||
|
||
* typeprint.h (struct type_print_options) <local_typedefs,
|
||
global_typedefs>: Remove "struct" keyword.
|
||
(class typedef_hash_table): New class.
|
||
(recursively_update_typedef_hash, add_template_parameters)
|
||
(create_typedef_hash, free_typedef_hash, copy_typedef_hash)
|
||
(find_typedef_in_hash): Don't declare.
|
||
* typeprint.c (struct typedef_hash_table): Move to typeprint.h.
|
||
(typedef_hash_table::recursively_update): Rename from
|
||
recursively_update_typedef_hash. Now a member.
|
||
(typedef_hash_table::add_template_parameters): Rename from
|
||
add_template_parameters. Now a member.
|
||
(typedef_hash_table::typedef_hash_table): Now a constructor;
|
||
rename from create_typedef_hash.
|
||
(typedef_hash_table::~typedef_hash_table): Now a destructor;
|
||
rename from free_typedef_hash.
|
||
(do_free_typedef_hash, make_cleanup_free_typedef_hash)
|
||
(do_free_global_table): Remove.
|
||
(typedef_hash_table::typedef_hash_table): New constructor; renamed
|
||
from copy_type_recursive.
|
||
(create_global_typedef_table): Remove.
|
||
(typedef_hash_table::find_global_typedef): Now a member of
|
||
typedef_hash_table.
|
||
(typedef_hash_table::find_typedef): Rename from
|
||
find_typedef_in_hash; now a member.
|
||
(whatis_exp): Update.
|
||
* extension.h (struct ext_lang_type_printers): Add constructor and
|
||
destructor.
|
||
(start_ext_lang_type_printers, free_ext_lang_type_printers): Don't
|
||
declare.
|
||
* extension.c (ext_lang_type_printers::ext_lang_type_printers):
|
||
Now a constructor; rename from start_ext_lang_type_printers.
|
||
(ext_lang_type_printers): Now a destructor; rename from
|
||
free_ext_lang_type_printers.
|
||
* c-typeprint.c (find_typedef_for_canonicalize, c_print_type_1):
|
||
Update.
|
||
(c_type_print_base_struct_union): Update. Remove cleanups.
|
||
|
||
2018-03-27 Tom Tromey <tom@tromey.com>
|
||
|
||
* dwarf-index-write.c: Include <cmath>.
|
||
|
||
2018-03-27 Joel Brobecker <brobecker@adacore.com>
|
||
|
||
* NEWS: Add entry describing new "set|show varsize-limit" command.
|
||
* ada-lang.c (_initialize_ada_language): Add "set/show varsize-limit"
|
||
command.
|
||
* printcmd.c (_initialize_printcmd): Add "set var" alias of
|
||
"set variable".
|
||
|
||
2018-03-27 Simon Marchi <simon.marchi@ericsson.com>
|
||
|
||
* Makefile.in (COMMON_SFILES): Add dwarf-index-common.c and
|
||
dwarf-index-write.c
|
||
(HFILES_NO_SRCDIR): Add dwarf-index-common.h and dwarf2read.h.
|
||
* dwarf-index-common.c: New file.
|
||
* dwarf-index-common.h: New file.
|
||
* dwarf-index-write.c: New file.
|
||
* dwarf2read.c: Include dwarf2read.h and dwarf-index-common.h.
|
||
(struct dwarf2_section_info): Move from here.
|
||
(dwarf2_section_info_def): Likewise.
|
||
(DEF_VEC_O (dwarf2_section_info_def)): Likewise.
|
||
(offset_type): Likewise.
|
||
(DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): Likewise.
|
||
(DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): Likewise.
|
||
(DW2_GDB_INDEX_CU_SET_VALUE): Likewise.
|
||
(byte_swap): Likewise.
|
||
(MAYBE_SWAP): Likewise.
|
||
(dwarf2_per_cu_ptr): Likewise.
|
||
(DEF_VEC_P (dwarf2_per_cu_ptr)): Likewise.
|
||
(struct tu_stats): Likewise.
|
||
(struct dwarf2_per_objfile): Likewise.
|
||
(struct dwarf2_per_cu_data): Likewise.
|
||
(struct signatured_type): Likewise.
|
||
(sig_type_ptr): Likewise.
|
||
(DEF_VEC_P (sig_type_ptr)): Likewise.
|
||
(INDEX4_SUFFIX): Likewise.
|
||
(INDEX5_SUFFIX): Likewise.
|
||
(DEBUG_STR_SUFFIX): Likewise.
|
||
(dwarf2_read_section): Make non-static.
|
||
(mapped_index_string_hash): Move from here.
|
||
(dwarf5_djb_hash): Likewise.
|
||
(file_write): Likewise.
|
||
(class data_buf): Likewise.
|
||
(struct symtab_index_entry): Likewise.
|
||
(struct mapped_symtab): Likewise.
|
||
(find_slot): Likewise.
|
||
(hash_expand): Likewise.
|
||
(add_index_entry): Likewise.
|
||
(uniquify_cu_indices): Likewise.
|
||
(class c_str_view): Likewise.
|
||
(class c_str_view_hasher): Likewise.
|
||
(class vector_hasher): Likewise.
|
||
(write_hash_table): Likewise.
|
||
(psym_index_map): Likewise.
|
||
(struct addrmap_index_data): Likewise.
|
||
(add_address_entry): Likewise.
|
||
(add_address_entry_worker): Likewise.
|
||
(write_address_map): Likewise.
|
||
(symbol_kind): Likewise.
|
||
(write_psymbols): Likewise.
|
||
(struct signatured_type_index_data): Likewise.
|
||
(write_one_signatured_type): Likewise.
|
||
(recursively_count_psymbols): Likewise.
|
||
(recursively_write_psymbols): Likewise.
|
||
(class debug_names): Likewise.
|
||
(check_dwarf64_offsets): Likewise.
|
||
(psyms_seen_size): Likewise.
|
||
(write_gdbindex): Likewise.
|
||
(write_debug_names): Likewise.
|
||
(assert_file_size): Likewise.
|
||
(write_psymtabs_to_index): Likewise.
|
||
(save_gdb_index_command): Likewise.
|
||
(_initialize_dwarf2_read): Don't register the "save gdb-index"
|
||
command.
|
||
* dwarf2read.h: New file.
|
||
|
||
2018-03-27 Joel Brobecker <brobecker@adacore.com>
|
||
|
||
PR gdb/22670
|
||
* dwarf2read.c (dwarf2_physname): Do not return the demangled
|
||
symbol name if the CU's language stores symbol names in linkage
|
||
format.
|
||
* language.h (struct language_defn)
|
||
<la_store_sym_names_in_linkage_form_p>: New field. Adjust
|
||
all instances of this struct.
|
||
|
||
2018-03-26 Tom Tromey <tom@tromey.com>
|
||
|
||
* stack.c (backtrace_command_1): Remove verbose code.
|
||
|
||
2018-03-26 Tom Tromey <tom@tromey.com>
|
||
|
||
* python/py-framefilter.c (py_print_type): Don't catch
|
||
exceptions. Return void.
|
||
(py_print_value): Likewise.
|
||
(py_print_single_arg): Likewise.
|
||
(enumerate_args): Don't catch exceptions.
|
||
(py_print_args): Likewise.
|
||
(py_print_frame): Likewise.
|
||
(gdbpy_apply_frame_filter): Catch exceptions here.
|
||
|
||
2018-03-26 Tom Tromey <tom@tromey.com>
|
||
|
||
* stack.c (_initialize_stack): Remove trailing newlines from help
|
||
text. Add "Usage" line to "backtrace" help.
|
||
|
||
2018-03-26 Tom Tromey <tom@tromey.com>
|
||
|
||
PR python/16486:
|
||
* python/py-framefilter.c (py_print_args): Call wrap_hint.
|
||
|
||
2018-03-26 Tom Tromey <tom@tromey.com>
|
||
|
||
* python/py-framefilter.c (py_print_single_arg): Return
|
||
EXT_LANG_BT_ERROR from catch.
|
||
|
||
2018-03-26 Tom Tromey <tom@tromey.com>
|
||
|
||
PR backtrace/15584:
|
||
* stack.c (backtrace_command_1): Move some code into no-filters
|
||
"if".
|
||
|
||
2018-03-26 Tom Tromey <tom@tromey.com>
|
||
|
||
* python/py-framefilter.c (throw_quit_or_print_exception): New
|
||
function.
|
||
(gdbpy_apply_frame_filter): Use it.
|
||
|
||
2018-03-26 Tom Tromey <tom@tromey.com>
|
||
|
||
PR cli/17716:
|
||
* python/py-framefilter.c (py_print_type, py_print_value)
|
||
(enumerate_args, py_print_args, gdbpy_apply_frame_filter): Use
|
||
RETURN_MASK_ERROR.
|
||
|
||
2018-03-26 Tom Tromey <tom@tromey.com>
|
||
|
||
* python/py-framefilter.c (enumerate_args): Use
|
||
gdb::unique_xmalloc_ptr.
|
||
|
||
2018-03-26 Tom Tromey <tom@tromey.com>
|
||
|
||
* python/py-framefilter.c (py_print_frame): Return
|
||
EXT_LANG_BT_OK.
|
||
(gdbpy_apply_frame_filter): Update comment.
|
||
* extension.h (enum ext_lang_bt_status) <EXT_LANG_BT_COMPLETED>:
|
||
Remove.
|
||
<EXT_LANG_BT_NO_FILTERS>: Change value.
|
||
|
||
2018-03-26 Tom Tromey <tom@tromey.com>
|
||
|
||
PR backtrace/15582:
|
||
* stack.c (backtrace_command): Parse "hide" argument.
|
||
* python/py-framefilter.c (py_print_frame): Handle PRINT_HIDE.
|
||
* extension.h (enum frame_filter_flags) <PRINT_HIDE>: New
|
||
constant.
|
||
|
||
2018-03-26 Tom Tromey <tom@tromey.com>
|
||
|
||
* stack.c (backtrace_command_1): Remove "show_locals" parameter,
|
||
add "flags".
|
||
(backtrace_command): Remove "fulltrace", add "flags".
|
||
|
||
2018-03-26 Tom Tromey <tom@tromey.com>
|
||
|
||
* stack.c (backtrace_command): Rewrite command line parsing.
|
||
|
||
2018-03-26 Simon Marchi <simon.marchi@ericsson.com>
|
||
|
||
* dwarf2read.c (DEF_VEC_I(offset_type)): Remove.
|
||
|
||
2018-03-26 Simon Marchi <simon.marchi@ericsson.com>
|
||
|
||
* filename-seen-cache.h: Add include guard.
|
||
|
||
2018-03-26 Keith Seitz <keiths@redhat.com>
|
||
|
||
* symfile.c (place_section): Remove "struct" from section_addr_info
|
||
in comment.
|
||
* windows-nat.c (struct safe_symbol_file_add_args) <addrs>: Remove
|
||
"struct" keyword from section_addr_info.
|
||
|
||
2018-03-26 Alan Hayward <alan.hayward@arm.com>
|
||
|
||
* regformats/regdef.h (reg): Add constructors.
|
||
|
||
2018-03-25 Pedro Alves <palves@redhat.com>
|
||
|
||
* eval.c (evaluate_funcall): Swap OP_VAR_MSYM_VALUE/OP_VAR_VALUE
|
||
if then/else bodies in var_func_name extraction.
|
||
|
||
2018-03-23 Weimin Pan <weimin.pan@oracle.com>
|
||
|
||
* minsyms.c (lookup_minimal_symbol_and_objfile): Use
|
||
lookup_minimal_symbol() to find symbol entry.
|
||
* minsyms.h (lookup_minimal_symbol_and_objfile): Update comment.
|
||
|
||
2018-03-23 Keith Seitz <keiths@redhat.com>
|
||
|
||
PR c++/22968
|
||
* dwarf2read.c (scan_partial_symbols): Scan structs/classes for
|
||
nested type definitions for C++, too.
|
||
|
||
2018-03-23 Tom Tromey <tom@tromey.com>
|
||
|
||
* machoread.c (struct oso_el): Add a constructor. Don't define as
|
||
a typedef.
|
||
(macho_register_oso): Remove.
|
||
(macho_symtab_read): Take a std::vector.
|
||
(oso_el_compare_name): Now a std::sort comparator.
|
||
(macho_symfile_read_all_oso): Take a std::vector.
|
||
(macho_symfile_read): Use std::vector. Remove cleanups.
|
||
|
||
2018-03-22 Tom Tromey <tom@tromey.com>
|
||
|
||
* record-full.c (record_full_exec_insn): Use gdb::byte_vector.
|
||
(record_full_goto_bookmark): Use std::string.
|
||
|
||
2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
|
||
|
||
PR tdep/18295
|
||
* rs6000-tdep.c (skip_prologue): Match both stwux and stdux
|
||
a single mask.
|
||
|
||
2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
|
||
|
||
* rs6000-tdep.c (store_insn_p): New function.
|
||
(skip_prologue): New variable alloca_reg_offset. Set lr_reg
|
||
and cr_reg to their unshifted values. Use store_insn_p to
|
||
match LR saves using either R1 or fdata->alloca_reg. Use
|
||
store_insn_p to match CR saves. Set alloca_reg_offset
|
||
when alloca_reg and framep are set. Remove lr_reg shift
|
||
when assigning to fdata->lr_register.
|
||
|
||
2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
|
||
|
||
* linux-tdep.c (linux_info_proc): For "info proc cmdline", print
|
||
command line args instead of emitting a warning.
|
||
|
||
2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
|
||
|
||
* tracepoint.h (struct static_tracepoint_marker): Initialize
|
||
fields, define default constructor, move constructor and move
|
||
assignment, disable the rest.
|
||
<str_id, extra>: Make std::string.
|
||
(release_static_tracepoint_marker): Remove.
|
||
(free_current_marker): Remove.
|
||
* tracepoint.c (free_current_marker): Remove.
|
||
(parse_static_tracepoint_marker_definition): Adjust to
|
||
std::string, use new hex2str overload.
|
||
(release_static_tracepoint_marker): Remove.
|
||
(print_one_static_tracepoint_marker): Get marker by reference
|
||
and adjust to std::string.
|
||
(info_static_tracepoint_markers_command): Adjust to std::vector
|
||
changes
|
||
* target.h (static_tracepoint_marker_p): Remove typedef.
|
||
(DEF_VEC_P(static_tracepoint_marker_p)): Remove.
|
||
(struct target_ops) <to_static_tracepoint_marker_at>: Return
|
||
bool.
|
||
<to_static_tracepoint_markers_by_strid>: Return std::vector.
|
||
* target-debug.h
|
||
(target_debug_print_VEC_static_tracepoint_marker_p_p): Remove.
|
||
(target_debug_print_std_vector_static_tracepoint_marker): New.
|
||
(target_debug_print_struct_static_tracepoint_marker_p): Rename
|
||
to...
|
||
(target_debug_print_static_tracepoint_marker_p): ... this.
|
||
* target-delegates.c: Re-generate.
|
||
* breakpoint.h (struct tracepoint) <static_trace_marker_id>:
|
||
Make std::string.
|
||
* breakpoint.c (init_breakpoint_sal): Adjust to std::string.
|
||
(decode_static_tracepoint_spec): Adjust to std::vector.
|
||
(tracepoint_print_one_detail): Adjust to std::string.
|
||
(strace_marker_decode_location): Adjust to std::string.
|
||
(update_static_tracepoint): Adjust to std::string, remove call
|
||
to release_static_tracepoint_marker.
|
||
* linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
|
||
Adjust to std::vector.
|
||
* remote.c (remote_static_tracepoint_marker_at): Return bool.
|
||
(remote_static_tracepoint_markers_by_strid): Adjust to
|
||
std::vector.
|
||
* common/rsp-low.h (hex2str): New overload with explicit count
|
||
of bytes.
|
||
* common/rsp-low.c (hex2str): New overload with explicit count
|
||
of bytes.
|
||
* unittests/rsp-low-selftests.c (test_hex2str): New function.
|
||
(_initialize_rsp_low_selftests): Add test_hex2str test.
|
||
* unittests/tracepoint-selftests.c
|
||
(test_parse_static_tracepoint_marker_definition): Adjust to
|
||
std::string.
|
||
|
||
2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
|
||
|
||
* tracepoint.c (parse_static_tracepoint_marker_definition):
|
||
Consider case where the definition is followed by more
|
||
definitions.
|
||
* Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
|
||
tracepoint-selftests.c.
|
||
* unittests/tracepoint-selftests.c: New.
|
||
|
||
2018-03-21 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
|
||
|
||
* MAINTAINERS (Write After Approval): Add Pedro Franco de
|
||
Carvalho.
|
||
|
||
2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
|
||
|
||
* symtab.c (find_pc_sect_line): fixed indentation.
|
||
|
||
2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
|
||
|
||
* symtab.c (find_pc_sect_line): now uses binary search.
|
||
|
||
2018-03-19 Tom Tromey <tom@tromey.com>
|
||
|
||
* rust-exp.y (struct_expr_tail, struct_expr_list): Add plain
|
||
"IDENT" production.
|
||
|
||
2018-03-19 Pedro Alves <palves@redhat.com>
|
||
Tom Tromey <tom@tromey.com>
|
||
|
||
* unittests/observable-selftests.c: New file.
|
||
* common/observable.h: New file.
|
||
* observable.h: New file.
|
||
* ada-lang.c, ada-tasks.c, agent.c, aix-thread.c, annotate.c,
|
||
arm-tdep.c, auto-load.c, auxv.c, break-catch-syscall.c,
|
||
breakpoint.c, bsd-uthread.c, cli/cli-interp.c, cli/cli-setshow.c,
|
||
corefile.c, dummy-frame.c, event-loop.c, event-top.c, exec.c,
|
||
extension.c, frame.c, gdbarch.c, guile/scm-breakpoint.c,
|
||
infcall.c, infcmd.c, inferior.c, inflow.c, infrun.c, jit.c,
|
||
linux-tdep.c, linux-thread-db.c, m68klinux-tdep.c,
|
||
mi/mi-cmd-break.c, mi/mi-interp.c, mi/mi-main.c, objfiles.c,
|
||
ppc-linux-nat.c, ppc-linux-tdep.c, printcmd.c, procfs.c,
|
||
python/py-breakpoint.c, python/py-finishbreakpoint.c,
|
||
python/py-inferior.c, python/py-unwind.c, ravenscar-thread.c,
|
||
record-btrace.c, record-full.c, record.c, regcache.c, remote.c,
|
||
riscv-tdep.c, sol-thread.c, solib-aix.c, solib-spu.c, solib.c,
|
||
spu-multiarch.c, spu-tdep.c, stack.c, symfile-mem.c, symfile.c,
|
||
symtab.c, thread.c, top.c, tracepoint.c, tui/tui-hooks.c,
|
||
tui/tui-interp.c, valops.c: Update all users.
|
||
* tui/tui-hooks.c (tui_bp_created_observer)
|
||
(tui_bp_deleted_observer, tui_bp_modified_observer)
|
||
(tui_inferior_exit_observer, tui_before_prompt_observer)
|
||
(tui_normal_stop_observer, tui_register_changed_observer):
|
||
Remove.
|
||
(tui_observers_token): New global.
|
||
(attach_or_detach, tui_attach_detach_observers): New functions.
|
||
(tui_install_hooks, tui_remove_hooks): Use
|
||
tui_attach_detach_observers.
|
||
* record-btrace.c (record_btrace_thread_observer): Remove.
|
||
(record_btrace_thread_observer_token): New global.
|
||
* observer.sh: Remove.
|
||
* observer.c: Rename to observable.c.
|
||
* observable.c (namespace gdb_observers): Define new objects.
|
||
(observer_debug): Move into gdb_observers namespace.
|
||
(struct observer, struct observer_list, xalloc_observer_list_node)
|
||
(xfree_observer_list_node, generic_observer_attach)
|
||
(generic_observer_detach, generic_observer_notify): Remove.
|
||
(_initialize_observer): Update.
|
||
Don't include observer.inc.
|
||
* Makefile.in (generated_files): Remove observer.h, observer.inc.
|
||
(clean mostlyclean): Likewise.
|
||
(observer.h, observer.inc): Remove targets.
|
||
(SUBDIR_UNITTESTS_SRCS): Add observable-selftests.c.
|
||
(COMMON_SFILES): Use observable.c, not observer.c.
|
||
* .gitignore: Remove observer.h.
|
||
|
||
2018-03-18 Tom Tromey <tom@tromey.com>
|
||
|
||
* solib.c (gdb_bfd_lookup_symbol_from_symtab): Use
|
||
gdb::def_vector.
|
||
(bfd_lookup_symbol_from_dyn_symtab): Likewise.
|
||
|
||
2018-03-17 Tom Tromey <tom@tromey.com>
|
||
|
||
* auto-load.c (auto_load_objfile_script_1): Use std::string.
|
||
|
||
2018-03-17 Tom Tromey <tom@tromey.com>
|
||
|
||
* target.c (class scoped_target_fd): New.
|
||
(target_fileio_close_cleanup): Remove.
|
||
(target_fileio_read_alloc_1): Use scoped_target_fd.
|
||
|
||
2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
|
||
|
||
* silent-rules.mk: New.
|
||
* Makefile.in: Include silent-rules.mk
|
||
(srcdir, VPATH, top_srcdir): Move up.
|
||
(COMPILE): Add ECHO_CXX.
|
||
(test-cp-name-parser$(EXEEXT)): Add ECHO_CXXLD.
|
||
(init.c): Add ECHO_INIT_C.
|
||
(gdb$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
|
||
(version.c): Add ECHO_GEN.
|
||
(printcmd.o): Add ECHO_CXX.
|
||
(target-float.o): Add ECHO_CXX.
|
||
(ada-exp.o): Add ECHO_CXX.
|
||
(stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN.
|
||
(insight$(EXEEXT)): Add ECHO_CXXLD.
|
||
* gnulib/configure.ac: Add AM_SILENT_RULES.
|
||
* gnulib/aclocal.m4: Re-generate.
|
||
* gnulib/configure: Re-generate.
|
||
* gnulib/import/Makefile.in: Re-generate.
|
||
|
||
2018-03-16 Tom Tromey <tom@tromey.com>
|
||
|
||
* xcoffread.c (xcoff_symfile_offsets): Change type of "addrs".
|
||
* utils.h (make_cleanup_free_section_addr_info): Don't declare.
|
||
* utils.c (do_free_section_addr_info)
|
||
(make_cleanup_free_section_addr_info): Remove.
|
||
* symfile.h (struct other_sections): Add constructor.
|
||
(struct section_addr_info): Remove.
|
||
(section_addr_info): New typedef.
|
||
(struct sym_fns) <sym_offsets>: Change type of parameter.
|
||
(build_section_addr_info_from_objfile)
|
||
(relative_addr_info_to_section_offsets, addr_info_make_relative)
|
||
(default_symfile_offsets, symbol_file_add)
|
||
(symbol_file_add_from_bfd)
|
||
(build_section_addr_info_from_section_table): Update.
|
||
(alloc_section_addr_info, free_section_addr_info): Don't declare.
|
||
* symfile.c (alloc_section_addr_info): Remove.
|
||
(build_section_addr_info_from_section_table): Change return type.
|
||
Update.
|
||
(build_section_addr_info_from_bfd)
|
||
(build_section_addr_info_from_objfile): Likewise.
|
||
(free_section_addr_info): Remove.
|
||
(relative_addr_info_to_section_offsets): Change type of "addrs".
|
||
(addrs_section_compar): Now a std::sort comparator.
|
||
(addrs_section_sort): Change return type.
|
||
(addr_info_make_relative): Change type of "addrs". Update.
|
||
(default_symfile_offsets, syms_from_objfile_1)
|
||
(syms_from_objfile, symbol_file_add_with_addrs): Likewise.
|
||
(symbol_file_add_separate): Update.
|
||
(symbol_file_add): Change type of "addrs". Update.
|
||
(add_symbol_file_command): Update. Remove cleanups.
|
||
* symfile-mem.c (symbol_file_add_from_memory): Update. Remove
|
||
cleanups.
|
||
* symfile-debug.c (debug_sym_offsets): Change type of "info".
|
||
* solib.c (solib_read_symbols): Update.
|
||
* objfiles.c (objfile_relocate): Update. Remove cleanups.
|
||
* machoread.c (macho_symfile_offsets): Update.
|
||
* jit.c (jit_bfd_try_read_symtab): Update.
|
||
|
||
2018-03-15 Simon Marchi <simon.marchi@polymtl.ca>
|
||
|
||
* Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
|
||
unittests/utils-selftests.c.
|
||
* unittests/utils-selftests.c: New file.
|
||
|
||
2018-03-14 Tom Tromey <tom@tromey.com>
|
||
|
||
PR cli/14977:
|
||
* printcmd.c (printf_c_string, printf_wide_c_string): Special case
|
||
for NULL.
|
||
|
||
2018-03-14 Tom Tromey <tom@tromey.com>
|
||
|
||
PR cli/19918:
|
||
* printcmd.c (printf_pointer): Allow "-" in format.
|
||
|
||
2018-03-14 Tom Tromey <tom@tromey.com>
|
||
|
||
* printcmd.c (_initialize_printcmd): Add usage to printf.
|
||
|
||
2018-03-14 Yao Qi <qiyao@sourceware.org>
|
||
|
||
* MAINTAINERS: Update my email address.
|
||
|
||
2018-03-13 Tom Tromey <tom@tromey.com>
|
||
|
||
* machoread.c (macho_check_dsym): Change filenamep to a
|
||
std::string*.
|
||
(macho_symfile_read): Update.
|
||
* symfile.c (load_command): Use std::string.
|
||
|
||
2018-03-12 Andrew Burgess <andrew.burgess@embecosm.com>
|
||
|
||
* riscv-tdep.c (riscv_sw_breakpoint_from_kind): Add localization
|
||
to error message string.
|
||
(riscv_register_name): Use xsnprintf instead of sprintf.
|
||
(riscv_insn::fetch_instruction): Use gdb_assert instead of
|
||
internal_error.
|
||
(riscv_print_arg_location): Use gdb_assert_not_reached instead of
|
||
error.
|
||
(riscv_push_dummy_call): Likewise.
|
||
|
||
2018-03-12 Tom Tromey <tom@tromey.com>
|
||
|
||
* rs6000-aix-tdep.c (rs6000_aix_core_xfer_shared_libraries_aix):
|
||
Use gdb::byte_vector.
|
||
* arm-tdep.c (arm_exidx_new_objfile): Use gdb::byte_vector.
|
||
|
||
2018-03-12 Yao Qi <yao.qi@linaro.org>
|
||
|
||
* ia64-libunwind-tdep.c (libunwind_get_reg_special): Change
|
||
parameter type to readable_regcache.
|
||
* ia64-libunwind-tdep.h (libunwind_get_reg_special): Update
|
||
the declaration.
|
||
|
||
2018-03-11 Tom Tromey <tom@tromey.com>
|
||
|
||
* dwarf2read.c (struct nextfield): Add initializers.
|
||
(struct nextfnfield): Remove.
|
||
(struct fnfieldlist): Add initializers. Remove "length" and
|
||
"head", use std::vector.
|
||
(struct decl_field_list): Remove.
|
||
(struct field_info): Add initializers.
|
||
<fields, baseclasses>: Now std::vector.
|
||
<nbaseclasses, nfnfields, typedef_field_list_count,
|
||
nested_types_list_count>: Remove.
|
||
(dwarf2_add_field, dwarf2_add_type_defn)
|
||
(dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
|
||
(dwarf2_attach_fn_fields_to_type, handle_struct_member_die)
|
||
(process_structure_scope): Update.
|
||
|
||
2018-03-11 Tom Tromey <tom@tromey.com>
|
||
|
||
* dwarf2read.c (sort_tu_by_abbrev_offset): Change to be suitable
|
||
for use by std::sort.
|
||
(build_type_psymtabs_1): Use std::vector.
|
||
|
||
2018-03-09 Eli Zaretskii <eliz@gnu.org>
|
||
|
||
* top.c (print_gdb_configuration): Reflect LIBIPT, LIBMEMCHECK,
|
||
and LIBMPFR in the printed configuration.
|
||
|
||
2018-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* source.c (get_filename_and_charpos): Use scoped_fd.
|
||
* nto-procfs.c (procfs_open_1): Use scoped_fd.
|
||
(procfs_pidlist): Likewise.
|
||
* procfs.c (proc_get_LDT_entry): Use scoped_fd.
|
||
(iterate_over_mappings): Likewise.
|
||
|
||
2018-03-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* infcall.c (struct call_return_meta_info)
|
||
<stack_temporaries_enabled>: Remove.
|
||
(get_call_return_value, call_function_by_hand_dummy): Update.
|
||
* thread.c (disable_thread_stack_temporaries): Remove.
|
||
(enable_thread_stack_temporaries): Remove.
|
||
(thread_stack_temporaries_enabled_p): Return bool.
|
||
(push_thread_stack_temporary, value_in_thread_stack_temporaries)
|
||
(get_last_thread_stack_temporary): Update.
|
||
* eval.c (evaluate_subexp): Update.
|
||
* gdbthread.h (class enable_thread_stack_temporaries): Now a
|
||
class, not a function.
|
||
(value_ptr, value_vec): Remove typedefs.
|
||
(class thread_info) <stack_temporaries_enabled>: Now bool.
|
||
<stack_temporaries>: Now a std::vector.
|
||
(thread_stack_temporaries_enabled_p)
|
||
(value_in_thread_stack_temporaries): Return bool.
|
||
|
||
2018-03-08 Simon Marchi <simon.marchi@ericsson.com>
|
||
|
||
* remote.c (putpkt_binary): Fix omitted bytes reporting.
|
||
(getpkt_or_notif_sane_1): Likewise.
|
||
|
||
2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
|
||
|
||
* build-id.c (build_id_to_debug_bfd): Use std::string.
|
||
|
||
2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
|
||
|
||
* build-id.c (find_separate_debug_file_by_buildid): Return
|
||
std::string.
|
||
* build-id.h (find_separate_debug_file_by_buildid): Return
|
||
std::string.
|
||
* coffread.c (coff_symfile_read): Adjust to std::string.
|
||
* elfread.c (elf_symfile_read): Adjust to std::string.
|
||
* symfile.c (separate_debug_file_exists): Change parameter to
|
||
std::string.
|
||
(find_separate_debug_file): Return std::string.
|
||
(find_separate_debug_file_by_debuglink): Return std::string.
|
||
* symfile.h (find_separate_debug_file_by_debuglink): Return
|
||
std::string.
|
||
|
||
2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
|
||
|
||
* common/xml-utils.c (xml_escape_text): Move code to...
|
||
(xml_escape_text_append): ... this new function.
|
||
* common/xml-utils.h (xml_escape_text_append): New declaration.
|
||
* unittests/xml-utils-selftests.c (test_xml_escape_text_append):
|
||
New function.
|
||
(_initialize_xml_utils): register test_xml_escape_text_append as
|
||
a selftest.
|
||
|
||
2018-03-07 Alan Hayward <alan.hayward@arm.com>
|
||
|
||
* defs.h: Remove MAX_REGISTER_SIZE.
|
||
* regcache.c (init_regcache_descr): Remove MAX_REGISTER_SIZE
|
||
asserts.
|
||
* python/py-unwind.c (pyuw_sniffer): Likewise.
|
||
|
||
2018-03-07 Tom Tromey <tom@tromey.com>
|
||
|
||
* linux-tdep.c (linux_info_proc): Update.
|
||
* target.h (struct target_ops) <to_fileio_readlink>: Return
|
||
optional<string>.
|
||
(target_fileio_readlink): Return optional<string>.
|
||
* remote.c (remote_hostio_readlink): Return optional<string>.
|
||
* inf-child.c (inf_child_fileio_readlink): Return
|
||
optional<string>.
|
||
* target.c (target_fileio_readlink): Return optional<string>.
|
||
|
||
2018-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
|
||
|
||
* regcache.c (cooked_read_test): Add riscv to the list of
|
||
architectures that have a save_reggroup.
|
||
|
||
2018-03-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
|
||
|
||
* gnu-v3-abi.c (gnuv3_rtti_type): Add early exit if the given
|
||
value is not a dynamic class object.
|
||
|
||
2018-03-06 Tom Tromey <tom@tromey.com>
|
||
|
||
* rust-exp.y: Formatting fixes.
|
||
|
||
2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
|
||
|
||
* riscv-tdep.c (riscv_register_name): Remove target description
|
||
support.
|
||
(riscv_gdbarch_init): Remove target description check.
|
||
|
||
2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
|
||
|
||
* riscv-tdep.c: Remove 'Contributed by ...' lines from header
|
||
comment.
|
||
* riscv-tdep.h: Likewise.
|
||
|
||
2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
|
||
|
||
* riscv-tdep.c (riscv_pseudo_register_read): Delete.
|
||
(riscv_pseudo_register_write): Delete.
|
||
(riscv_gdbarch_init): Remove all use of pseudo registers.
|
||
|
||
2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
|
||
|
||
* record-btrace.c (btrace_print_lines): Replace cleanup
|
||
parameter with RAII equivalents.
|
||
(btrace_insn_history): Replace cleanup with RAII equivalents.
|
||
* ui-out.h (make_cleanup_ui_out_list_begin_end,
|
||
make_cleanup_ui_out_tuple_begin_end): Remove.
|
||
* ui-out.c (struct ui_out_end_cleanup_data, do_cleanup_end,
|
||
make_cleanup_ui_out_end, make_cleanup_ui_out_tuple_begin_end,
|
||
make_cleanup_ui_out_list_begin_end): Remove.
|
||
|
||
2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
|
||
|
||
* record-btrace.c (record_btrace_maybe_mark_async_event): Change
|
||
parameter types to std::vector. Use bool.
|
||
(record_btrace_wait): Replace VEC(tp_t) with
|
||
std::vector<thread_info *>.
|
||
* common/gdb_vecs.h (unordered_remove, ordered_remove): New.
|
||
|
||
2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
|
||
|
||
* record-btrace.c (record_btrace_disable_callback): Remove.
|
||
(struct scoped_btrace_disable): New.
|
||
(record_btrace_open): Use scoped_btrace_disable.
|
||
|
||
2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
|
||
|
||
* riscv-tdep.c (riscv_return_value): Change type to ULONGEST for
|
||
reading values from registers.
|
||
|
||
2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
|
||
|
||
* riscv-tdep.c (riscv_push_dummy_call): Use core_addr_to_string_nz
|
||
where appropriate.
|
||
|
||
2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
|
||
|
||
* riscv-tdep.c (riscv_print_arg_location): Add header comment,
|
||
change parameter type. Use GDB's print functions, and use
|
||
core_addr_to_string where appropriate.
|
||
(riscv_push_dummy_call): Use core_addr_to_string where
|
||
appropriate, update call to riscv_print_arg_location, and reindent
|
||
a few lines.
|
||
(riscv_return_value): Update call to riscv_print_arg_location.
|
||
|
||
2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
|
||
Tim Newsome <tim@sifive.com>
|
||
Albert Ou <a0u@eecs.berkeley.edu>
|
||
Darius Rad <darius@bluespec.com>
|
||
|
||
* Makefile.in (ALL_TARGET_OBS): Add riscv-tdep.o
|
||
(HFILES_NO_SRCDIR): Add riscv-tdep.h.
|
||
(ALLDEPFILES): Add riscv-tdep.c
|
||
* configure.tgt: Add riscv support.
|
||
* riscv-tdep.c: New file.
|
||
* riscv-tdep.h: New file.
|
||
* NEWS: Mention new target.
|
||
* MAINTAINERS: Add entry for riscv.
|
||
|
||
2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
|
||
|
||
* amd64-tdep.c (amd64_classify_aggregate): Ignore zero sized
|
||
fields within aggregates.
|
||
|
||
2018-03-04 Simon Marchi <simon.marchi@polymtl.ca>
|
||
|
||
* record-btrace.c (btrace_print_lines): Change type of flags to
|
||
gdb_disassembly_flags.
|
||
|
||
2018-03-04 John Baldwin <jhb@FreeBSD.org>
|
||
|
||
* fbsd-nat.c: Include "inf-ptrace.h".
|
||
(USE_SIGTRAP_SIGINFO): Conditionally define.
|
||
[USE_SIGTRAP_SIGINFO] (fbsd_handle_debug_trap): New function.
|
||
(fbsd_wait) [USE_SIGTRAP_SIGINFO]: Call "fbsd_handle_debug_trap".
|
||
[USE_SIGTRAP_SIGINFO] (fbsd_stopped_by_sw_breakpoint): New
|
||
function.
|
||
[USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_sw_breakpoint):
|
||
Likewise.
|
||
[USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_hw_breakpoint):
|
||
Likewise.
|
||
(fbsd_nat_add_target) [USE_SIGTRAP_SIGINFO]: Set
|
||
"stopped_by_sw_breakpoint", "supports_stopped_by_sw_breakpoint",
|
||
"supports_stopped_by_hw_breakpoint" target methods.
|
||
|
||
2018-03-04 John Baldwin <jhb@FreeBSD.org>
|
||
|
||
* NEWS (Changes since GDB 8.1): Add "set/show debug fbsd-nat".
|
||
* fbsd-nat.c (debug_fbsd_nat): New variable.
|
||
(show_fbsd_nat_debug): New function.
|
||
(fbsd_wait): Log LWP info if "debug_fbsd_nat" is enabled.
|
||
(_initialize_fbsd_nat): Add "fbsd-nat" debug boolean command.
|
||
|
||
2018-03-04 John Baldwin <jhb@FreeBSD.org>
|
||
|
||
* nat/x86-dregs.c (x86_dr_stopped_by_hw_breakpoint): New function.
|
||
* nat/x86-dregs.h (x86_dr_stopped_by_hw_breakpoint): New
|
||
prototype.
|
||
* x86-nat.c (x86_stopped_by_hw_breakpoint): New function.
|
||
(x86_use_watchpoints): Set "stopped_by_hw_breakpoint" target
|
||
method.
|
||
|
||
2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
|
||
|
||
* common/gdb_vecs.c (free_char_ptr_vec): Remove.
|
||
* common/gdb_vecs.h (free_char_ptr_vec): Remove.
|
||
|
||
2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
|
||
|
||
* charset.c (struct charset_vector): New.
|
||
(charsets): Change type to charset_vector.
|
||
(find_charset_names): Adjust.
|
||
(add_one): Adjust.
|
||
(_initialize_charset): Adjust.
|
||
|
||
2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
|
||
|
||
* progspace.h (struct program_space) <deleted_solibs>: Change
|
||
type to std::vector<std::string>.
|
||
* progspace.c (clear_program_space_solib_cache): Adjust.
|
||
* breakpoint.c (print_solib_event): Adjust.
|
||
(check_status_catch_solib): Adjust.
|
||
* solib.c (update_solib_list): Adjust.
|
||
* ui-out.h (class ui_out) <field_string>: New overload.
|
||
* ui-out.c (ui_out::field_string): New overload.
|
||
|
||
2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
|
||
|
||
* progspace.h (struct program_space): Add constructor and
|
||
destructor, initialize fields.
|
||
(add_program_space): Remove.
|
||
* progspace.c (add_program_space): Rename to...
|
||
(program_space::program_space): ... this.
|
||
(release_program_space): Rename to...
|
||
(program_space::~program_space): ... this.
|
||
(delete_program_space): Use delete to delete program_space.
|
||
(initialize_progspace): Use new to allocate program_space.
|
||
* inferior.c (add_inferior_with_spaces): Likewise.
|
||
(clone_inferior_command): Likewise.
|
||
* infrun.c (follow_fork_inferior): Likewise.
|
||
(handle_vfork_child_exec_or_exit): Likewise.
|
||
|
||
2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
|
||
|
||
* common/gdb_vecs.h (make_cleanup_free_char_ptr_vec): Remove.
|
||
(delim_string_to_char_ptr_vec): Return std::vector of
|
||
gdb::unique_xmalloc_ptr.
|
||
(dirnames_to_char_ptr_vec_append): Take std::vector of
|
||
gdb::unique_xmalloc_ptr.
|
||
(dirnames_to_char_ptr_vec): Return std::vector of
|
||
gdb::unique_xmalloc_ptr.
|
||
* common/gdb_vecs.c (delim_string_to_char_ptr_vec_append):
|
||
Take std::vector of gdb::unique_xmalloc_ptr, adjust the code.
|
||
(delim_string_to_char_ptr_vec): Return an std::vector of
|
||
gdb::unique_xmalloc_ptr, adjust the code.
|
||
(dirnames_to_char_ptr_vec_append): Take an std::vector of
|
||
gdb::unique_xmalloc_ptr, adjust the code.
|
||
(dirnames_to_char_ptr_vec): Return an std::vector of
|
||
gdb::unique_xmalloc_ptr, adjust the code.
|
||
* auto-load.c (auto_load_safe_path_vec): Change type to
|
||
std::vector of gdb::unique_xmalloc_ptr.
|
||
(auto_load_expand_dir_vars): Return an std::vector of
|
||
gdb::unique_xmalloc_ptr, adjust the code.
|
||
(auto_load_safe_path_vec_update): Adjust.
|
||
(filename_is_in_auto_load_safe_path_vec): Adjust.
|
||
(auto_load_objfile_script_1): Adjust.
|
||
* build-id.c (build_id_to_debug_bfd): Adjust.
|
||
* linux-thread-db.c (thread_db_load_search): Adjust.
|
||
* source.c (add_path): Adjust.
|
||
(openp): Adjust.
|
||
* symfile.c (find_separate_debug_file): Adjust.
|
||
* utils.c (do_free_char_ptr_vec): Remove.
|
||
(make_cleanup_free_char_ptr_vec): Remove.
|
||
|
||
2018-03-01 Sergio Durigan Junior <sergiodj@redhat.com>
|
||
|
||
PR gdb/22907
|
||
* common/pathstuff.c: Conditionally include "<windows.h>".
|
||
|
||
2018-03-01 Georg Sauthoff <mail@georg.so>
|
||
|
||
PR gdb/22888
|
||
* gcore.in: Quote variables and switch interpreter to bash.
|
||
|
||
2018-03-01 Tom Tromey <tom@tromey.com>
|
||
|
||
* dwarf2read.c (alloc_discriminant_info): Fix default_index
|
||
assertion. Add assertion for discriminant_index.
|
||
(quirk_rust_enum): Use correct base type name in univariant case.
|
||
|
||
2018-03-01 Simon Marchi <simon.marchi@ericsson.com>
|
||
|
||
* record.c (get_call_history_modifiers): Return a
|
||
record_print_flags.
|
||
(cmd_record_call_history): Adjust.
|
||
* record-btrace.c (record_btrace_call_history): Adjust.
|
||
(record_btrace_call_history_range): Adjust.
|
||
(record_btrace_call_history_from): Adjust.
|
||
* target-debug.h (target_debug_print_record_print_flags): New.
|
||
* target-delegates.c: Re-generate.
|
||
* target.c (target_call_history): Change flags type.
|
||
(target_call_history_from): Likewise.
|
||
(target_call_history_range): Likewise.
|
||
* target.h (struct target_ops) <target_call_history>: Likewise.
|
||
(target_call_history_from): Likewise.
|
||
(target_call_history_range): Likewise.
|
||
|
||
2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
|
||
Simon Marchi <simon.marchi@polymtl.ca>
|
||
|
||
* common/common-utils.c: Include "sys/stat.h".
|
||
(is_regular_file): Move here from "source.c"; change return
|
||
type to "bool".
|
||
* common/common-utils.h (is_regular_file): New prototype.
|
||
* common/pathstuff.c (contains_dir_separator): New function.
|
||
* common/pathstuff.h (contains_dir_separator): New prototype.
|
||
* source.c: Don't include "sys/stat.h".
|
||
(is_regular_file): Move to "common/common-utils.c".
|
||
|
||
2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
|
||
|
||
* Makefile.in (COMMON_SFILES): Add "common/pathstuff.c".
|
||
(HFILES_NO_SRCDIR): Add "common/pathstuff.h".
|
||
* auto-load.c: Include "common/pathstuff.h".
|
||
* common/common-def.h (current_directory): Move here.
|
||
* common/gdb_tilde_expand.c (gdb_tilde_expand_up): New
|
||
function.
|
||
* common/gdb_tilde_expand.h (gdb_tilde_expand_up): New
|
||
prototype.
|
||
* common/pathstuff.c: New file.
|
||
* common/pathstuff.h: New file.
|
||
* compile/compile.c: Include "common/pathstuff.h".
|
||
* defs.h (current_directory): Move to "common/common-defs.h".
|
||
* dwarf2read.c: Include "common/pathstuff.h".
|
||
* exec.c: Likewise.
|
||
* guile/scm-safe-call.c: Likewise.
|
||
* linux-thread-db.c: Likewise.
|
||
* main.c: Likewise.
|
||
* nto-tdep.c: Likewise.
|
||
* objfiles.c: Likewise.
|
||
* source.c: Likewise.
|
||
* symtab.c: Likewise.
|
||
* utils.c: Include "common/pathstuff.h".
|
||
(gdb_realpath): Move to "common/pathstuff.c".
|
||
(gdb_realpath_keepfile): Likewise.
|
||
(gdb_abspath): Likewise.
|
||
* utils.h (gdb_realpath): Move to "common/pathstuff.h".
|
||
(gdb_realpath_keepfile): Likewise.
|
||
(gdb_abspath): Likewise.
|
||
|
||
2018-02-28 John Baldwin <jhb@FreeBSD.org>
|
||
|
||
* fbsd-nat.c (fbsd_resume): Use PT_SETSTEP for stepping and a
|
||
wildcard process pid for super_resume for kernels with a
|
||
specific bug.
|
||
|
||
2018-02-27 Phil Muldoon <pmuldoon@redhat.com>
|
||
|
||
* compile/compile.c (get_args): Add additional comments
|
||
explaining function.
|
||
|
||
2018-02-27 Simon Marchi <simon.marchi@polymtl.ca>
|
||
Tom Tromey <tom@tromey.com>
|
||
|
||
* target.h (memory_write_request_s): Remove typedef. Don't define
|
||
VEC.
|
||
(target_write_memory_blocks): Change argument to std::vector.
|
||
(struct memory_write_request): Add constructor.
|
||
* target-memory.c (compare_block_starting_address): Return bool.
|
||
Change argument types.
|
||
(claim_memory): Change arguments to use std::vector.
|
||
(split_regular_and_flash_blocks, blocks_to_erase)
|
||
(compute_garbled_blocks): Likewise.
|
||
(cleanup_request_data, cleanup_write_requests_vector): Remove.
|
||
(target_write_memory_blocks): Change argument to std::vector.
|
||
* symfile.c (struct load_section_data): Add constructor and
|
||
destructor. Use std::vector for "requests".
|
||
(struct load_progress_data): Add initializers.
|
||
(load_section_callback): Update. Use "new".
|
||
(clear_memory_write_data): Remove.
|
||
(generic_load): Update.
|
||
|
||
2018-02-27 Alan Hayward <alan.hayward@arm.com>
|
||
|
||
* arch/aarch64.h: Use common/tdesc.h.
|
||
|
||
2018-02-26 Maciej W. Rozycki <macro@mips.com>
|
||
|
||
* mips-tdep.c (mips_gdbarch_init): Don't use a 32-bit BFD
|
||
architecture with a 64-bit ABI.
|
||
|
||
2018-02-26 Maciej W. Rozycki <macro@mips.com>
|
||
|
||
* gdb/mips-tdep.c (mips_gdbarch_init): Reorder ABI determination
|
||
ahead of target description loading.
|
||
|
||
2018-02-26 Tom Tromey <tom@tromey.com>
|
||
|
||
* stack.c (backtrace_command_1): Update.
|
||
* python/python-internal.h (gdbpy_apply_frame_filter): Change type
|
||
of "flags".
|
||
* python/py-framefilter.c (py_print_frame)
|
||
(gdbpy_apply_frame_filter): Change type of "flags".
|
||
* mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): Change type
|
||
of "flags".
|
||
(mi_cmd_stack_list_frames, mi_cmd_stack_list_locals)
|
||
(mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Update.
|
||
* extension.h (enum frame_filter_flag): Rename from
|
||
frame_filter_flags.
|
||
(frame_filter_flags): Define using DEF_ENUM_FLAGS_TYPE.
|
||
(apply_ext_lang_frame_filter): Change type of "flags".
|
||
* extension.c (apply_ext_lang_frame_filter): Change type of
|
||
"flags".
|
||
* extension-priv.h (struct extension_language_ops)
|
||
<apply_frame_filter>: Change type of "flags".
|
||
|
||
2018-02-26 Tom Tromey <tom@tromey.com>
|
||
|
||
PR python/16497:
|
||
* stack.c (backtrace_command_1): Set PRINT_MORE_FRAMES flag. Fix
|
||
off-by-one in py_end computation.
|
||
* python/py-framefilter.c (gdbpy_apply_frame_filter): Handle
|
||
PRINT_MORE_FRAMES.
|
||
* extension.h (enum frame_filter_flags) <PRINT_MORE_FRAMES>: New
|
||
constant.
|
||
|
||
2018-02-26 Tom Tromey <tom@tromey.com>
|
||
|
||
* dwarf2read.c (struct variant_field): New.
|
||
(struct nextfield) <variant>: New field.
|
||
(dwarf2_add_field): Handle DW_TAG_variant_part.
|
||
(dwarf2_attach_fields_to_type): Attach a discriminant_info to a
|
||
discriminated union.
|
||
(read_structure_type): Handle DW_TAG_variant_part.
|
||
(handle_struct_member_die): New function, extracted from
|
||
process_structure_scope. Handle DW_TAG_variant.
|
||
(process_structure_scope): Handle discriminated unions. Call
|
||
handle_struct_member_die.
|
||
|
||
2018-02-26 Tom Tromey <tom@tromey.com>
|
||
|
||
* rust-lang.h (rust_last_path_segment): Declare.
|
||
* rust-lang.c (rust_last_path_segment): Now public. Change
|
||
contract.
|
||
(struct disr_info): Remove.
|
||
(RUST_ENUM_PREFIX, RUST_ENCODED_ENUM_REAL)
|
||
(RUST_ENCODED_ENUM_HIDDEN, rust_union_is_untagged)
|
||
(rust_get_disr_info, rust_tuple_variant_type_p): Remove.
|
||
(rust_enum_p, rust_enum_variant): New function.
|
||
(rust_underscore_fields): Remove "offset" parameter.
|
||
(rust_print_enum): New function.
|
||
(rust_val_print) <TYPE_CODE_UNION>: Remove enum code.
|
||
<TYPE_CODE_STRUCT>: Call rust_print_enum when appropriate.
|
||
(rust_print_struct_def): Add "for_rust_enum" parameter. Handle
|
||
enums.
|
||
(rust_internal_print_type): New function, from rust_print_type.
|
||
Remove enum code.
|
||
(rust_print_type): Call rust_internal_print_type.
|
||
(rust_evaluate_subexp) <STRUCTOP_ANONYMOUS, STRUCTOP_STRUCT>:
|
||
Update enum handling.
|
||
* dwarf2read.c (struct dwarf2_cu) <rust_unions>: New field.
|
||
(rust_fully_qualify, alloc_discriminant_info, quirk_rust_enum)
|
||
(rust_union_quirks): New functions.
|
||
(process_full_comp_unit, process_full_type_unit): Call
|
||
rust_union_quirks.
|
||
(process_structure_scope): Update rust_unions if necessary.
|
||
|
||
2018-02-26 Tom Tromey <tom@tromey.com>
|
||
|
||
* value.h (value_union_variant): Declare.
|
||
* valops.c (value_union_variant): New function.
|
||
* gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): New macro.
|
||
(struct discriminant_info): New.
|
||
(enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: New
|
||
enumerator.
|
||
(struct main_type) <flag_discriminated_union>: New field.
|
||
|
||
2018-02-26 Tom Tromey <tom@tromey.com>
|
||
|
||
* Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
|
||
unittests/unpack-selftests.c.
|
||
* unittests/unpack-selftests.c: New file.
|
||
* value.c (unpack_bits_as_long): Fix bugs in non-bitfield cases.
|
||
|
||
2018-02-26 Yao Qi <yao.qi@linaro.org>
|
||
|
||
* dwarf2read.c (struct partial_die_info) <read>: New method.
|
||
(read_partial_die): Remove the declaration.
|
||
(load_partial_dies): Update.
|
||
(partial_die_info::partial_die_info):
|
||
(read_partial_die): Change it to partial_die_info::read.
|
||
|
||
2018-02-26 Yao Qi <yao.qi@linaro.org>
|
||
|
||
* dwarf2read.c (struct partial_die_info) <fixup>: New method.
|
||
(fixup_partial_die): Remove declaration.
|
||
(scan_partial_symbols): Update.
|
||
(partial_die_parent_scope): Likewise.
|
||
(partial_die_full_name): Likewise.
|
||
(fixup_partial_die): Change it to partial_die_info::fixup.
|
||
|
||
2018-02-26 Yao Qi <yao.qi@linaro.org>
|
||
|
||
* dwarf2read.c (read_partial_die): Update the declaration.
|
||
(load_partial_dies): Caller update.
|
||
(read_partial_die): Remove one argument abbrev_len.
|
||
|
||
2018-02-26 Yao Qi <yao.qi@linaro.org>
|
||
|
||
* dwarf2read.c (struct partial_die_info): Add ctor, delete
|
||
assignment operator.
|
||
(load_partial_dies): Use ctor and copy ctor.
|
||
(read_partial_die): Update.
|
||
(dwarf2_cu::find_partial_die): Use ctor.
|
||
|
||
2018-02-26 Yao Qi <yao.qi@linaro.org>
|
||
|
||
* dwarf2read.c (struct dwarf2_cu) <find_partial_die>: New method.
|
||
(find_partial_die_in_comp_unit): Change it to
|
||
dwarf2_cu::find_partial_die.
|
||
(find_partial_die): Update.
|
||
|
||
2018-02-26 Yao Qi <yao.qi@linaro.org>
|
||
|
||
* dwarf2read.c (read_partial_die): Remove the code checking abbrev
|
||
is NULL.
|
||
|
||
2018-02-26 Yao Qi <yao.qi@linaro.org>
|
||
|
||
* dwarf2read.c (load_partial_dies): Move the location of XOBNEW.
|
||
|
||
2018-02-26 Alan Hayward <alan.hayward@arm.com>
|
||
|
||
* arch/amd64.h: Use common/tdesc.h.
|
||
* arch/i386.c: Likewise.
|
||
* arch/i386.h: Likewise.
|
||
* arch/tic6x.c: Likewise.
|
||
* arch/tdesc.h: Move file from here...
|
||
* common/tdesc.h: ...to here.
|
||
* features/aarch64-core.c: Regenerate.
|
||
* features/aarch64-fpu.c: Regenerate.
|
||
* features/i386/32bit-avx.c: Regenerate.
|
||
* features/i386/32bit-avx512.c: Regenerate.
|
||
* features/i386/32bit-core.c: Regenerate.
|
||
* features/i386/32bit-linux.c: Regenerate.
|
||
* features/i386/32bit-mpx.c: Regenerate.
|
||
* features/i386/32bit-pkeys.c: Regenerate.
|
||
* features/i386/32bit-sse.c: Regenerate.
|
||
* features/i386/64bit-avx.c: Regenerate.
|
||
* features/i386/64bit-avx512.c: Regenerate.
|
||
* features/i386/64bit-core.c: Regenerate.
|
||
* features/i386/64bit-linux.c: Regenerate.
|
||
* features/i386/64bit-mpx.c: Regenerate.
|
||
* features/i386/64bit-pkeys.c: Regenerate.
|
||
* features/i386/64bit-segments.c: Regenerate.
|
||
* features/i386/64bit-sse.c: Regenerate.
|
||
* features/i386/x32-core.c: Regenerate.
|
||
* features/tic6x-c6xp.c: Regenerate.
|
||
* features/tic6x-core.c: Regenerate.
|
||
* features/tic6x-gp.c: Regenerate.
|
||
* target-descriptions.c: Use common/tdesc.h.
|
||
* target-descriptions.h: Likewise.
|
||
|
||
2018-02-24 Tom Tromey <tom@tromey.com>
|
||
|
||
* linux-thread-db.c (try_thread_db_load_from_pdir_1)
|
||
(try_thread_db_load_from_dir, thread_db_load_search): Use
|
||
std::string.
|
||
(info_auto_load_libthread_db_compare): Return bool. Change
|
||
argument types.
|
||
(info_auto_load_libthread_db): Use std::vector, std::string.
|
||
Remove cleanups.
|
||
|
||
2018-02-24 Tom Tromey <tom@tromey.com>
|
||
|
||
* i386-tdep.c (i386_fast_tracepoint_valid_at): "msg" now a
|
||
std::string.
|
||
* gdbarch.sh (fast_tracepoint_valid_at): Change "msg" to a
|
||
std::string*.
|
||
* gdbarch.c: Rebuild.
|
||
* gdbarch.h: Rebuild.
|
||
* breakpoint.c (check_fast_tracepoint_sals): Use std::string.
|
||
* arch-utils.h (default_fast_tracepoint_valid_at): Update.
|
||
* arch-utils.c (default_fast_tracepoint_valid_at): "msg" now a
|
||
std::string*.
|
||
|
||
2018-02-23 Simon Marchi <simon.marchi@polymtl.ca>
|
||
|
||
* gdbtypes.h (sect_offset): Change type to uint64_t.
|
||
(sect_offset_str): New function.
|
||
* dwarf2read.c (create_addrmap_from_aranges): Use
|
||
sect_offset_str.
|
||
(error_check_comp_unit_head): Likewise.
|
||
(create_debug_type_hash_table): Likewise.
|
||
(read_cutu_die_from_dwo): Likewise.
|
||
(init_cutu_and_read_dies): Likewise.
|
||
(init_cutu_and_read_dies_no_follow): Likewise.
|
||
(process_psymtab_comp_unit_reader): Likewise.
|
||
(partial_die_parent_scope): Likewise.
|
||
(peek_die_abbrev): Likewise.
|
||
(process_queue): Likewise.
|
||
(dwarf2_physname): Likewise.
|
||
(read_namespace_alias): Likewise.
|
||
(read_import_statement): Likewise.
|
||
(create_dwo_cu_reader): Likewise.
|
||
(create_cus_hash_table): Likewise.
|
||
(lookup_dwo_cutu): Likewise.
|
||
(inherit_abstract_dies): Likewise.
|
||
(read_func_scope): Likewise.
|
||
(read_call_site_scope): Likewise.
|
||
(dwarf2_add_member_fn): Likewise.
|
||
(read_common_block): Likewise.
|
||
(read_module_type): Likewise.
|
||
(read_typedef): Likewise.
|
||
(read_subrange_type): Likewise.
|
||
(load_partial_dies): Likewise.
|
||
(read_partial_die): Likewise.
|
||
(find_partial_die): Likewise.
|
||
(read_str_index): Likewise.
|
||
(dwarf2_string_attr): Likewise.
|
||
(build_error_marker_type): Likewise.
|
||
(lookup_die_type): Likewise.
|
||
(dump_die_shallow): Likewise.
|
||
(follow_die_ref): Likewise.
|
||
(dwarf2_fetch_die_loc_sect_off): Likewise.
|
||
(dwarf2_fetch_constant_bytes): Likewise.
|
||
(follow_die_sig): Likewise.
|
||
(get_signatured_type): Likewise.
|
||
(get_DW_AT_signature_type): Likewise.
|
||
(dwarf2_find_containing_comp_unit): Likewise.
|
||
(set_die_type): Likewise.
|
||
|
||
2018-02-21 John Baldwin <jhb@FreeBSD.org>
|
||
|
||
* arch/aarch64.c: Include "common-defs.h".
|
||
* arch/amd64.c: Likewise.
|
||
* arch/i386.c: Likewise.
|
||
|
||
2018-02-21 Tom Tromey <tom@tromey.com>
|
||
|
||
* value.h: (extract_field_op): Update.
|
||
* eval.c (extract_field_op): Return a const char *.
|
||
* expression.h (parse_expression_for_completion): Update.
|
||
* completer.c (complete_expression): Update.
|
||
(add_struct_fields): Make fieldname const.
|
||
* parse.c (expout_completion_name): Now a unique_xmalloc_ptr.
|
||
(mark_completion_tag, parse_exp_in_context_1): Update.
|
||
(parse_expression_for_completion): Change "name" to
|
||
unique_xmalloc_ptr*.
|
||
|
||
2018-02-21 Tom Tromey <tom@tromey.com>
|
||
|
||
* infcall.c (call_function_by_hand_dummy): Use std::vector.
|
||
|
||
2018-02-21 Yao Qi <yao.qi@linaro.org>
|
||
|
||
* avr-tdep.c (avr_read_pc): Change parameter type to
|
||
readable_regcache.
|
||
* gdbarch.sh (read_pc): Likewise.
|
||
* gdbarch.c: Re-generated.
|
||
* gdbarch.h: Re-generated.
|
||
* hppa-tdep.c (hppa_read_pc): Change parameter type to
|
||
readable_regcache.
|
||
* ia64-tdep.c (ia64_read_pc): Likewise.
|
||
* mips-tdep.c (mips_read_pc): Likewise.
|
||
* spu-tdep.c (spu_read_pc): Likewise.
|
||
|
||
2018-02-21 Yao Qi <yao.qi@linaro.org>
|
||
|
||
* Makefile.in (COMMON_SFILES): Add regcache-dump.c
|
||
* regcache-dump.c: New file.
|
||
* regcache.c: Move register_dump to regcache-dump.c.
|
||
(maintenance_print_registers): Likewise.
|
||
(maintenance_print_raw_registers): Likewise.
|
||
(maintenance_print_cooked_registers): Likewise.
|
||
(maintenance_print_register_groups): Likewise.
|
||
(maintenance_print_remote_registers): Likewise.
|
||
(_initialize_regcache): Likewise.
|
||
* regcache.h (register_dump): Moved from regcache.c.
|
||
|
||
2018-02-21 Yao Qi <yao.qi@linaro.org>
|
||
|
||
* regcache.c (regcache::regcache): Update.
|
||
(regcache::invalidate): Move it to detached_regcache::invalidate.
|
||
(get_thread_arch_aspace_regcache): Update.
|
||
(regcache::raw_update): Update.
|
||
(regcache::cooked_read): Remove some code.
|
||
(regcache::cooked_read_value): Likewise.
|
||
(regcache::raw_write): Remove assert on m_readonly_p.
|
||
(regcache::raw_supply_integer): Move it to
|
||
detached_regcache::raw_supply_integer.
|
||
(regcache::raw_supply_zeroed): Likewise.
|
||
* regcache.h (detached_regcache) <raw_supply_integer>: New
|
||
declaration.
|
||
<raw_supply_zeroed, invalidate>: Likewise.
|
||
(regcache) <raw_supply_integer, raw_supply_zeroed>: Removed.
|
||
<invalidate>: Likewise.
|
||
<m_readonly_p>: Removed.
|
||
|
||
2018-02-21 Yao Qi <yao.qi@linaro.org>
|
||
|
||
* infcmd.c (get_return_value): Let stop_regs point to
|
||
get_current_regcache.
|
||
* regcache.c (regcache::regcache): Remove.
|
||
(register_dump_reg_buffer): New class.
|
||
(regcache_print): Adjust.
|
||
* regcache.h (regcache): Remove constructors.
|
||
|
||
2018-02-21 Yao Qi <yao.qi@linaro.org>
|
||
|
||
* regcache.c (class register_dump): New class.
|
||
(register_dump_regcache, register_dump_none): New class.
|
||
(register_dump_remote, register_dump_groups): New class.
|
||
(regcache_print): Update.
|
||
* regcache.h (regcache_dump_what): Move it to regcache.c.
|
||
(regcache) <dump>: Remove.
|
||
|
||
2018-02-21 Yao Qi <yao.qi@linaro.org>
|
||
|
||
* jit.c (struct jit_unwind_private) <regcache>: Change its type to
|
||
reg_buffer_rw *.
|
||
(jit_unwind_reg_set_impl): Call raw_supply.
|
||
(jit_frame_sniffer): Use reg_buffer_rw.
|
||
* record-full.c (record_full_core_regbuf): Change its type.
|
||
(record_full_core_open_1): Use reg_buffer_rw.
|
||
(record_full_close): Likewise.
|
||
(record_full_core_fetch_registers): Use regcache->raw_supply.
|
||
(record_full_core_store_registers): Likewise.
|
||
* regcache.c (regcache::get_register_status): Move it to
|
||
reg_buffer.
|
||
(regcache_raw_set_cached_value): Remove.
|
||
(regcache::raw_set_cached_value): Remove.
|
||
(regcache::raw_write): Call raw_supply.
|
||
(regcache::raw_supply): Move it to reg_buffer_rw.
|
||
* regcache.h (regcache_raw_set_cached_value): Remove.
|
||
(reg_buffer_rw): New class.
|
||
|
||
2018-02-21 Yao Qi <yao.qi@linaro.org>
|
||
|
||
* dummy-frame.c (dummy_frame_cache) <prev_regcache>: Use
|
||
readonly_detached_regcache.
|
||
(dummy_frame_prev_register): Use regcache->cooked_read.
|
||
* frame.c (frame_save_as_regcache): Change return type.
|
||
(frame_pop): Update.
|
||
* frame.h (frame_save_as_regcache): Update declaration.
|
||
* inferior.h (get_infcall_suspend_state_regcache): Update
|
||
declaration.
|
||
* infrun.c (infcall_suspend_state) <registers>: use
|
||
readonly_detached_regcache.
|
||
(save_infcall_suspend_state): Don't use regcache_dup.
|
||
(get_infcall_suspend_state_regcache): Change return type.
|
||
* linux-fork.c (struct fork_info) <savedregs>: Change to
|
||
readonly_detached_regcache.
|
||
<pc>: New field.
|
||
(fork_save_infrun_state): Don't use regcache_dup.
|
||
(info_checkpoints_command): Adjust.
|
||
* mi/mi-main.c (register_changed_p): Update declaration.
|
||
(mi_cmd_data_list_changed_registers): Use
|
||
readonly_detached_regcache.
|
||
(register_changed_p): Change parameter type to
|
||
readonly_detached_regcache.
|
||
* ppc-linux-tdep.c (ppu2spu_cache) <regcache>: Use
|
||
readonly_detached_regcache.
|
||
(ppu2spu_sniffer): Construct a new readonly_detached_regcache.
|
||
* regcache.c (readonly_detached_regcache::readonly_detached_regcache):
|
||
New.
|
||
(regcache::save): Move it to reg_buffer.
|
||
(regcache::restore): Change parameter type.
|
||
(regcache_dup): Remove.
|
||
* regcache.h (reg_buffer) <save>: New method.
|
||
(readonly_detached_regcache): New class.
|
||
* spu-tdep.c (spu2ppu_cache) <regcache>: Use
|
||
readonly_detached_regcache.
|
||
(spu2ppu_sniffer): Construct a new readonly_detached_regcache.
|
||
|
||
2018-02-21 Yao Qi <yao.qi@linaro.org>
|
||
|
||
* frame.c (frame_save_as_regcache): Use regcache method save.
|
||
(frame_pop): Use regcache method restore.
|
||
* infrun.c (restore_infcall_suspend_state): Likewise.
|
||
* linux-fork.c (fork_load_infrun_state): Likewise.
|
||
* ppc-linux-tdep.c (ppu2spu_sniffer): User regcache method
|
||
save.
|
||
* regcache.c (regcache_save): Remove.
|
||
(regcache::restore): More asserts.
|
||
(regcache_cpy): Remove.
|
||
* regcache.h (regcache_save): Remove the declaration.
|
||
(regcache::restore): Move from private to public.
|
||
Remove the friend declaration of regcache_cpy.
|
||
(regcache_cpy): Remove declaration.
|
||
|
||
2018-02-21 Yao Qi <yao.qi@linaro.org>
|
||
|
||
* aarch64-tdep.c (aarch64_pseudo_register_read_value): Change
|
||
parameter type to 'readable_regcache *'.
|
||
* amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
|
||
* arm-tdep.c (arm_neon_quad_read): Likewise.
|
||
(arm_pseudo_read): Likewise.
|
||
* avr-tdep.c (avr_pseudo_register_read): Likewise.
|
||
* bfin-tdep.c (bfin_pseudo_register_read): Likewise.
|
||
* frv-tdep.c (frv_pseudo_register_read): Likewise.
|
||
* gdbarch.c: Re-generated.
|
||
* gdbarch.h: Re-generated.
|
||
* gdbarch.sh (pseudo_register_read): Change parameter type to
|
||
'readable_regcache *'.
|
||
(pseudo_register_read_value): Likewise.
|
||
* h8300-tdep.c (pseudo_from_raw_register): Likewise.
|
||
(h8300_pseudo_register_read): Likewise.
|
||
* hppa-tdep.c (hppa_pseudo_register_read): Likewise.
|
||
* i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
|
||
(i386_pseudo_register_read_into_value): Likewise.
|
||
(i386_pseudo_register_read_value): Likewise.
|
||
* i386-tdep.h (i386_pseudo_register_read_into_value): Update
|
||
declaration.
|
||
* ia64-tdep.c (ia64_pseudo_register_read): Likewise.
|
||
* m32c-tdep.c (m32c_raw_read): Likewise.
|
||
(m32c_read_flg): Likewise.
|
||
(m32c_banked_register): Likewise.
|
||
(m32c_banked_read): Likewise.
|
||
(m32c_sb_read): Likewise.
|
||
(m32c_part_read): Likewise.
|
||
(m32c_cat_read): Likewise.
|
||
(m32c_r3r2r1r0_read): Likewise.
|
||
(m32c_pseudo_register_read): Likewise.
|
||
* m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
|
||
* mep-tdep.c (mep_pseudo_cr32_read): Likewise.
|
||
(mep_pseudo_cr64_read): Likewise.
|
||
(mep_pseudo_register_read): Likewise.
|
||
* mips-tdep.c (mips_pseudo_register_read): Likewise.
|
||
* msp430-tdep.c (msp430_pseudo_register_read): Likewise.
|
||
* nds32-tdep.c (nds32_pseudo_register_read): Likewise.
|
||
* regcache.c (regcache::raw_read): Move it to readable_regcache.
|
||
(regcache::cooked_read): Likewise.
|
||
(regcache::cooked_read_value): Likewise.
|
||
(regcache_cooked_read_signed):
|
||
(regcache::cooked_read): Likewise.
|
||
* regcache.h (readable_regcache): New class.
|
||
(regcache): Inherit readable_regcache. Move some methods to
|
||
readable_regcache.
|
||
* rl78-tdep.c (rl78_pseudo_register_read): Change
|
||
parameter type to 'readable_regcache *'.
|
||
* rs6000-tdep.c (do_regcache_raw_read): Remove.
|
||
(e500_pseudo_register_read): Change parameter type to
|
||
'readable_regcache *'.
|
||
(dfp_pseudo_register_read): Likewise.
|
||
(vsx_pseudo_register_read): Likewise.
|
||
(efpr_pseudo_register_read): Likewise.
|
||
* s390-tdep.c (s390_pseudo_register_read): Likewise.
|
||
* sh-tdep.c (sh_pseudo_register_read): Likewise.
|
||
* sh64-tdep.c (pseudo_register_read_portions): Likewise.
|
||
(sh64_pseudo_register_read): Likewise.
|
||
* sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
|
||
* sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
|
||
* spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
|
||
(spu_pseudo_register_read): Likewise.
|
||
* xtensa-tdep.c (xtensa_register_read_masked): Likewise.
|
||
(xtensa_pseudo_register_read): Likewise.
|
||
|
||
2018-02-21 Yao Qi <yao.qi@linaro.org>
|
||
|
||
* regcache.c (regcache::regcache): Call reg_buffer ctor.
|
||
(regcache::arch): Move it to reg_buffer::arch.
|
||
(regcache::register_buffer): Likewise.
|
||
(regcache::assert_regnum): Likewise.
|
||
(regcache::num_raw_registers): Likewise.
|
||
* regcache.h (reg_buffer): New class.
|
||
(regcache): Inherit reg_buffer.
|
||
|
||
2018-02-20 Simon Marchi <simon.marchi@ericsson.com>
|
||
|
||
* remote-sim.c (gdb_os_printf_filtered, gdb_os_vprintf_filtered,
|
||
gdb_os_evprintf_filtered, gdb_os_error): Add ATTRIBUTE_PRINTF.
|
||
|
||
2018-02-20 Markus Metzger <markus.t.metzger@intel.com>
|
||
|
||
* gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkstemp.
|
||
|
||
2018-02-19 Alan Hayward <alan.hayward@arm.com>
|
||
|
||
* Makefile.in: (COMMON_SFILES): Add common/*.c files.
|
||
(SFILES): Remove common/*.c files.
|
||
(COMMON_OBS): Remove some *.o files built from common/*.c files.
|
||
* common/common.host: Add common reference.
|
||
* configure.ac: Likewise.
|
||
* configure: Regenerate.
|
||
|
||
2018-02-16 Yao Qi <yao.qi@linaro.org>
|
||
|
||
* block.c (block_namespace_info): Inherit allocate_on_obstack.
|
||
(block_initialize_namespace): Use new.
|
||
* dwarf2read.c (dwarf2_per_objfile): Inherit allocate_on_obstack.
|
||
(dwarf2_free_objfile): Use delete.
|
||
* gdbtypes.c (type_pair): Inherit allocate_on_obstack.
|
||
(copy_type_recursive): Use new.
|
||
* gdb_obstack.h (allocate_on_obstack): New.
|
||
|
||
2018-02-15 Yao Qi <yao.qi@linaro.org>
|
||
|
||
PR gdb/22849
|
||
* inferior.c (exit_inferior_1): Reset inf->control.
|
||
|
||
2018-02-15 Joel Brobecker <brobecker@adacore.com>
|
||
|
||
* ada-lang.c (ada_to_fixed_value_create): Delete advance
|
||
declaration.
|
||
|
||
2018-02-14 Pedro Alves <palves@redhat.com>
|
||
|
||
* frame-unwind.c (frame_unwind_try_unwinder): Always call
|
||
frame_cleanup_after_sniffer on exception.
|
||
|
||
2018-02-14 Tom Tromey <tom@tromey.com>
|
||
|
||
* solist.h (struct target_so_ops) <bfd_open>: Make pathname
|
||
const.
|
||
(solib_bfd_open): Make pathname const.
|
||
* solib.c (solib_bfd_open): Make pathname const.
|
||
* solib-spu.c (spu_bfd_fopen): Make name const.
|
||
(spu_bfd_open): Make pathname const.
|
||
* solib-darwin.c (darwin_bfd_open): Make pathname const.
|
||
* solib-aix.c (solib_aix_bfd_open): Make pathname const.
|
||
|
||
2018-02-14 Tom Tromey <tom@tromey.com>
|
||
|
||
* symfile.c (symfile_bfd_open): Update.
|
||
* source.h (openp, source_full_path_of, find_and_open_source):
|
||
Change argument type to unique_xmalloc_ptr.
|
||
* source.c (openp): Take a unique_xmalloc_ptr.
|
||
(source_full_path_of, find_and_open_source): Likewise.
|
||
(open_source_file, symtab_to_fullname): Update.
|
||
* solist.h (struct target_so_ops) <find_and_open_solib>: Take a
|
||
unique_xmalloc_ptr.
|
||
* solib.c (solib_find_1): Use unique_xmalloc_ptr.
|
||
(exec_file_find): Update.
|
||
* psymtab.c (psymtab_to_fullname): Update.
|
||
* nto-tdep.h (nto_find_and_open_solib): Update.
|
||
* nto-tdep.c (nto_find_and_open_solib): Change temp_path to a
|
||
unique_xmalloc_ptr.
|
||
* exec.c (exec_file_attach): Update.
|
||
* dwarf2read.c (try_open_dwop_file): Use unique_xmalloc_ptr.
|
||
* cli/cli-cmds.c (find_and_open_script): Use unique_xmalloc_ptr.
|
||
|
||
2018-02-14 Tom Tromey <tom@tromey.com>
|
||
|
||
* solib.c: Include source.h.
|
||
* nto-tdep.c: Include source.h.
|
||
* mi/mi-cmd-env.c: Include source.h.
|
||
* infcmd.c: Include source.h.
|
||
* exec.c: Include source.h.
|
||
* defs.h (enum openp_flag, openp, source_full_path_of, mod_path)
|
||
(add_path, directory_switch, source_path, init_source_path): Move
|
||
declarations...
|
||
* source.h (enum openp_flag, openp, source_full_path_of, mod_path)
|
||
(add_path, directory_switch, source_path, init_source_path):
|
||
...here.
|
||
|
||
2018-02-14 Tom Tromey <tom@tromey.com>
|
||
|
||
* solist.h (exec_file_find, solib_find): Return
|
||
unique_xmalloc_ptr.
|
||
(solib_bfd_fopen): Take a const char *.
|
||
* solib.c (solib_find_1): Return unique_xmalloc_ptr.
|
||
(exec_file_find, solib_find): Likewise.
|
||
(solib_bfd_fopen): Do not take ownership of "pathname".
|
||
(solib_bfd_open): Use unique_xmalloc_ptr.
|
||
* solib-darwin.c (darwin_bfd_open): Use unique_xmalloc_ptr.
|
||
* solib-aix.c (solib_aix_bfd_open): Use unique_xmalloc_ptr.
|
||
* infrun.c (follow_exec): Use unique_xmalloc_ptr.
|
||
* exec.c (exec_file_locate_attach): Use unique_xmalloc_ptr.
|
||
|
||
2018-02-14 Joel Brobecker <brobecker@adacore.com>
|
||
|
||
* ada-lang.c (name_match_type_from_name): Remove reference to
|
||
ada_name_for_lookup in function's documentation.
|
||
* ada-lang.h (ada_name_for_lookup): Delete declaration.
|
||
|
||
2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
|
||
|
||
* defs.h (enum openp_flags): New enum.
|
||
(OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH, OPF_RETURN_REALPATH):
|
||
Move to enum openp_flags.
|
||
(openp_flags): New enum flags.
|
||
(openp): Change parameter type to openp_flags.
|
||
* source.c (openp): Change parameter type to openp_flags.
|
||
* cli/cli-cmds.c (find_and_open_script): Use openp_flags.
|
||
* dwarf2read.c (try_open_dwop_file): Use openp_flags.
|
||
|
||
2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
|
||
|
||
* maint.c (_initialize_maint_cmds): Fix prefix of maint set/show
|
||
per-command.
|
||
|
||
2018-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
|
||
|
||
* dwarf2read.c (dwarf2_release_queue): Delete function, move body
|
||
into...
|
||
(class dwarf2_queue_guard): ...the destructor of this new class.
|
||
(dw2_do_instantiate_symtab): Create instance of the new class
|
||
dwarf2_queue_guard, remove cleanup.
|
||
|
||
2018-02-09 Tom Tromey <tom@tromey.com>
|
||
|
||
* source.c (find_source_lines): Don't reference past the end of
|
||
the vector.
|
||
|
||
2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
|
||
|
||
* remote.c (remote_btrace_maybe_reopen): Change error message.
|
||
* btrace.c (btrace_enable): Likewise.
|
||
(parse_xml_btrace): Likewise.
|
||
(parse_xml_btrace_conf): Likewise.
|
||
|
||
2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
|
||
|
||
* nat/linux-btrace.c (diagnose_perf_event_open_fail): New.
|
||
(linux_enable_pt, linux_enable_bts): Call
|
||
diagnose_perf_event_open_fail.
|
||
|
||
2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
|
||
|
||
* nat/linux-btrace.c (perf_event_pt_event_type): Improve error message.
|
||
Remove parameter and change return type. Update callers. Move it.
|
||
(linux_enable_bts, linux_enable_pt): Improve error message.
|
||
(linux_enable_pt): Remove zero buffer size check.
|
||
(linux_enable_btrace): Improve error messages. Remove NULL return
|
||
check.
|
||
|
||
2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
|
||
|
||
* btrace.c (btrace_enable): Remove target_supports_btrace call.
|
||
* nat/linux-btrace.c (perf_event_pt_event_type): Move.
|
||
(kernel_supports_bts, kernel_supports_pt, linux_supports_bts)
|
||
(linux_supports_pt, linux_supports_btrace): Remove.
|
||
(linux_enable_bts): Call cpu_supports_bts.
|
||
* nat/linux-btrace.h (linux_supports_btrace): Remove.
|
||
* remote.c (remote_supports_btrace): Remove.
|
||
(init_remote_ops): Remove remote_supports_btrace.
|
||
* target-delegates.c: Regenerated.
|
||
* target.c (target_supports_btrace): Remove.
|
||
* target.h (target_ops) <to_supports_btrace>: Remove
|
||
(target_supports_btrace): Remove.
|
||
* x86-linux-nat.c (x86_linux_create_target): Remove
|
||
linux_supports_btrace.
|
||
|
||
2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
|
||
|
||
* nat/linux-btrace.c (linux_enable_btrace): Throw exception if enabling
|
||
btrace failed.
|
||
* x86-linux-nat.c (x86_linux_enable_btrace): Catch btrace enabling
|
||
exception and use message in own exception.
|
||
|
||
2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
|
||
|
||
* nat/linux-btrace.c: Include scoped_fd.h and scoped_mmap.h.
|
||
(perf_event_pt_event_type): Use gdb_file_up.
|
||
(linux_enable_bts, linux_enable_pt): Use gdb::unique_xmalloc_ptr,
|
||
scoped_fd, and scoped_mmap.
|
||
|
||
2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
|
||
|
||
* common/scoped_mmap.h: New.
|
||
* unittests/scoped_mmap-selftest.c: New.
|
||
* Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
|
||
unittests/scoped_mmap-selftest.c.
|
||
|
||
2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
|
||
|
||
* common/scoped_fd.h: New.
|
||
* unittests/scoped_fd-selftest.c: New.
|
||
* Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
|
||
unittests/scoped_fd-selftest.c.
|
||
|
||
2018-02-09 Tom Tromey <tom@tromey.com>
|
||
|
||
* auto-load.c (auto_load_section_scripts): Use
|
||
gdb::unique_xmalloc_ptr.
|
||
|
||
2018-02-09 Tom Tromey <tom@tromey.com>
|
||
|
||
* auto-load.c (execute_script_contents): Use std::string.
|
||
|
||
2018-02-09 Joel Brobecker <brobecker@adacore.com>
|
||
|
||
* NEWS <Changes in GDB 8.1>: Clarify that "rbreak" is a new
|
||
Python function, rather than a new command.
|
||
|
||
2018-02-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* solib.c (solib_find_1): Use std::string.
|
||
(solib_bfd_fopen): Use unique_xmalloc_ptr.
|
||
|
||
2018-02-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* build-id.c (build_id_to_debug_bfd): Use unique_xmalloc_ptr.
|
||
|
||
2018-02-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* source.c (find_source_lines): Use gdb::def_vector.
|
||
|
||
2018-02-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* macrocmd.c (struct temporary_macro_definition): New.
|
||
(macro_define_command): Use temporary_macro_definition. Remove
|
||
cleanups.
|
||
(free_macro_definition_ptr): Remove.
|
||
|
||
2018-02-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* macroexp.c (maybe_expand): Use std::string.
|
||
|
||
2018-02-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* macroexp.c (struct macro_buffer): Add initializers for some
|
||
members.
|
||
(init_buffer, init_shared_buffer, free_buffer)
|
||
(free_buffer_return_text): Remove.
|
||
(macro_buffer): New constructors.
|
||
(~macro_buffer): New destructor.
|
||
(macro_buffer::set_shared): New method.
|
||
(macro_buffer::resize_buffer, macro_buffer::appendc)
|
||
(macro_buffer::appendmem): Now methods, not free functions.
|
||
(set_token, append_tokens_without_splicing, stringify)
|
||
(macro_stringify): Update.
|
||
(gather_arguments): Change return type. Remove argc_p argument,
|
||
add args_ptr argument. Use std::vector.
|
||
(substitute_args): Remove argc argument. Accept std::vector.
|
||
(expand): Update. Use std::vector.
|
||
(scan, macro_expand, macro_expand_next): Update.
|
||
|
||
2018-02-08 Tom Tromey <tom@tromey.com>
|
||
|
||
* symtab.c (default_collect_symbol_completion_matches_break_on):
|
||
Use unique_xmalloc_ptr.
|
||
* macroscope.h: (sal_macro_scope, user_macro_scope)
|
||
(default_macro_scope): Return unique_xmalloc_ptr.
|
||
* macroscope.c (sal_macro_scope, user_macro_scope)
|
||
(default_macro_scope): Return unique_xmalloc_ptr.
|
||
* macroexp.h (macro_expand, macro_expand_once): Return
|
||
unique_xmalloc_ptr.
|
||
* macroexp.c (macro_expand, macro_expand_once): Return
|
||
unique_xmalloc_ptr.
|
||
* macrocmd.c (macro_expand_command, macro_expand_once_command)
|
||
(info_macro_command, info_macros_command): Use
|
||
unique_xmalloc_ptr.
|
||
* compile/compile-c-support.c (write_macro_definitions): Use
|
||
unique_xmalloc_ptr.
|
||
* c-exp.y (c_parse): Use unique_xmalloc_ptr.
|
||
|
||
2018-02-07 Simon Marchi <simon.marchi@ericsson.com>
|
||
|
||
* value.c (value_static_field): Assign field type instead of
|
||
containing type when returning an optimized out value.
|
||
|
||
2018-02-06 Yao Qi <yao.qi@linaro.org>
|
||
|
||
* ft32-tdep.c (ft32_read_pc): Remove.
|
||
(ft32_write_pc): Remove.
|
||
(ft32_gdbarch_init): Update.
|
||
* m32r-tdep.c (m32r_read_pc): Remove.
|
||
(m32r_gdbarch_init): Update.
|
||
* mep-tdep.c (mep_read_pc): Remove.
|
||
(mep_gdbarch_init): Update.
|
||
* microblaze-tdep.c (microblaze_write_pc): Remove.
|
||
(microblaze_gdbarch_init): Update.
|
||
* mn10300-tdep.c (mn10300_read_pc): Remove.
|
||
(mn10300_write_pc): Remove.
|
||
(mn10300_gdbarch_init): Update.
|
||
* moxie-tdep.c (moxie_read_pc): Remove.
|
||
(moxie_write_pc): Remove.
|
||
(moxie_gdbarch_init): Update.
|
||
|
||
2018-02-06 Yao Qi <yao.qi@linaro.org>
|
||
|
||
* expprint.c (print_subexp_standard): Handle
|
||
OP_F77_UNDETERMINED_ARGLIST.
|
||
(dump_subexp_body_standard): Likewise.
|
||
|
||
2018-02-05 Alan Hayward <alan.hayward@arm.com>
|
||
|
||
* target-descriptions.c (tdesc_element_visitor) Add empty
|
||
implementations.
|
||
(tdesc_type): Move make_gdb_type from here.
|
||
(tdesc_type_builtin): Likewise.
|
||
(tdesc_type_vector): Likewise.
|
||
(tdesc_type_with_fields): Move make_gdb_type_ functions from here.
|
||
(make_gdb_type_struct): Move from tdesc_type_with_fields.
|
||
(make_gdb_type_union): Likewise.
|
||
(make_gdb_type_flags): Likewise.
|
||
(make_gdb_type_enum): Likewise.
|
||
(make_gdb_type): New function.
|
||
(tdesc_register_type): Use static make_gdb_type.
|
||
|
||
2018-02-05 Ruslan Kabatsayev <b7.10110111@gmail.com>
|
||
|
||
* infcmd.c (default_print_one_register_info): Align natural-format
|
||
column values consistently one under another.
|
||
(pad_to_column): New function.
|
||
|
||
2018-02-05 Joel Brobecker <brobecker@adacore.com>
|
||
|
||
* dwarf2read.c (dwarf2_physname): Move commment.
|
||
|
||
2018-02-01 Leszek Swirski <leszeks@google.com>
|
||
|
||
* varobj.c (varobj_formatted_print_options): Allow recursive
|
||
pretty printing if pretty printing is enabled.
|
||
|
||
2018-02-01 Leszek Swirski <leszeks@google.com>
|
||
|
||
* c-exp.y (lex_one_token, classify_name, yylex): Don't classify
|
||
names after a structop as a filename.
|
||
|
||
2018-02-01 Yao Qi <yao.qi@linaro.org>
|
||
|
||
* arm-tdep.c (arm_record_data_proc_misc_ld_str): Rewrite it.
|
||
(arm_record_coproc_data_proc): Likewise.
|
||
|
||
2018-02-01 Yao Qi <yao.qi@linaro.org>
|
||
|
||
* arm-tdep.c (arm_record_extension_space): Change ret to signed.
|
||
|
||
2018-01-31 Nikola Prica <nikola.prica@rt-rk.com>
|
||
|
||
* rs6000-tdep.c (skip_prologue): Remove shifting for lr_reg and
|
||
assign shifted lr_reg to fdata->lr_register when lr_reg is set.
|
||
|
||
2018-01-31 Pedro Alves <palves@redhat.com>
|
||
|
||
* darwin-nat.c (darwin_interrupt): Remove ptid_t parameter.
|
||
* inflow.c (child_terminal_save_inferior): Wrap reference to
|
||
tcgetpgrp in HAVE_TERMIOS_H.
|
||
(child_interrupt, child_pass_ctrlc): Wrap references to signal in
|
||
_WIN32.
|
||
* remote-sim.c (gdbsim_interrupt): Remove ptid_t parameter and
|
||
always iterate over all inferiors.
|
||
(gdbsim_cntrl_c): Adjust.
|
||
* windows-nat.c (windows_interrupt): Remove 'ptid_t' parameter.
|
||
|
||
2018-01-31 Joel Brobecker <brobecker@adacore.com>
|
||
|
||
* gdbtypes.c (lookup_array_range_type): Make sure the array's
|
||
index type is objfile-owned if the element type is as well.
|
||
|
||
2018-01-31 Joel Brobecker <brobecker@adacore.com>
|
||
|
||
GDB 8.1 released.
|
||
|
||
2018-01-30 Philipp Rudo <prudo@linux.vnet.ibm.com>
|
||
|
||
* s390-linux-tdep.c: Remove includes "features/s390-linux32.c" and
|
||
"features/s390x-linux64.c".
|
||
(_initialize_s390_linux_tdep): Remove initialization of tdescs
|
||
s390_linux32 and s390x_linux64.
|
||
(s390_linux_init_abi_31, s390_linux_init_abi_64): Don't set
|
||
default tdesc.
|
||
* s390-tdep.c: Include "features/s390-linux32.c" and
|
||
"features/s390x-linux64.c".
|
||
(s390_tdesc_valid): Add check for tdesc_has_registers.
|
||
(s390_gdbarch_init): Make sure there is always a valid tdesc.
|
||
(_initialize_s390_tdep): Initialize tdesc_s390_linux32 and
|
||
tdesc_s390x_linux64.
|
||
* s390-linux-tdep.h: Move export of tdesc_s390_linux32 and
|
||
tdesc_s390x_linux64 to...
|
||
* s390-tdep.h: ...here.
|
||
|
||
2018-01-30 Pedro Alves <palves@redhat.com>
|
||
|
||
PR gdb/13211
|
||
* config.in, configure: Regenerate.
|
||
* configure.ac: Check for getpgid.
|
||
* go32-nat.c (go32_pass_ctrlc): New.
|
||
(go32_target): Install it.
|
||
* inf-child.c (inf_child_target): Install
|
||
child_terminal_save_inferior, child_pass_ctrlc and
|
||
child_interrupt.
|
||
* inf-ptrace.c (inf_ptrace_interrupt): Delete.
|
||
(inf_ptrace_target): No longer install it.
|
||
* infcmd.c (interrupt_target_1): Adjust.
|
||
* inferior.h (child_terminal_save_inferior, child_pass_ctrlc)
|
||
(child_interrupt): Declare.
|
||
(inferior::terminal_state): New.
|
||
* inflow.c (struct terminal_info): Update comments.
|
||
(inferior_process_group): Delete.
|
||
(terminal_is_ours): Delete.
|
||
(gdb_tty_state): New.
|
||
(child_terminal_init): Adjust.
|
||
(is_gdb_terminal, sharing_input_terminal_1)
|
||
(sharing_input_terminal): New functions.
|
||
(child_terminal_inferior): Adjust. Use sharing_input_terminal.
|
||
Set the process's actual process group in the foreground if
|
||
possible. Handle is_ours_for_output/is_ours distinction. Don't
|
||
mark terminal as the inferior's if not sharing GDB's terminal.
|
||
Don't check attach_flag.
|
||
(child_terminal_ours_for_output, child_terminal_ours): Adjust to
|
||
pass down a target_terminal_state.
|
||
(child_terminal_save_inferior): New, factored out from ...
|
||
(child_terminal_ours_1): ... this. Handle
|
||
target_terminal_state::is_ours_for_output.
|
||
(child_interrupt, child_pass_ctrlc): New.
|
||
(inflow_inferior_exit): Clear the inferior's terminal_state.
|
||
(copy_terminal_info): Copy the inferior's terminal state.
|
||
(_initialize_inflow): Remove reference to terminal_is_ours.
|
||
* inflow.h (inferior_process_group): Delete.
|
||
* nto-procfs.c (nto_handle_sigint, procfs_interrupt): Adjust.
|
||
* procfs.c (procfs_target): Don't install procfs_interrupt.
|
||
(procfs_interrupt): Delete.
|
||
* remote.c (remote_serial_quit_handler): Adjust.
|
||
(remote_interrupt): Remove ptid parameter. Adjust.
|
||
* target-delegates.c: Regenerate.
|
||
* target.c: Include "terminal.h".
|
||
(target_terminal::terminal_state): Rename to ...
|
||
(target_terminal::m_terminal_state): ... this.
|
||
(target_terminal::init): Adjust.
|
||
(target_terminal::inferior): Adjust to per-inferior
|
||
terminal_state.
|
||
(target_terminal::restore_inferior, target_terminal_is_ours_kind): New.
|
||
(target_terminal::ours, target_terminal::ours_for_output): Use
|
||
target_terminal_is_ours_kind.
|
||
(target_interrupt): Remove ptid parameter. Adjust.
|
||
(default_target_pass_ctrlc): Adjust.
|
||
* target.h (target_ops::to_terminal_save_inferior): New field.
|
||
(target_ops::to_interrupt): Remove ptid_t parameter.
|
||
(target_interrupt): Remove ptid_t parameter. Update comment.
|
||
(target_pass_ctrlc): Update comment.
|
||
* target/target.h (target_terminal_state): New scoped enum,
|
||
factored out of ...
|
||
(target_terminal::terminal_state): ... here.
|
||
(target_terminal::inferior): Update comments.
|
||
(target_terminal::restore_inferior): New.
|
||
(target_terminal::is_inferior, target_terminal::is_ours)
|
||
(target_terminal::is_ours_for_output): Adjust.
|
||
(target_terminal::scoped_restore_terminal_state): Adjust to
|
||
rename, and call restore_inferior() instead of inferior().
|
||
(target_terminal::scoped_restore_terminal_state::m_state): Change
|
||
type.
|
||
(target_terminal::terminal_state): Rename to ...
|
||
(target_terminal::m_terminal_state): ... this and change type.
|
||
|
||
2018-01-30 Pedro Alves <palves@redhat.com>
|
||
|
||
* linux-nat.c (wait_for_signal): New function.
|
||
(wait_lwp, linux_nat_wait_1): Use it instead of calling sigsuspend
|
||
directly.
|
||
(async_terminal_is_ours)
|
||
(linux_nat_terminal_inferior, linux_nat_terminal_ours): Delete.
|
||
(linux_nat_add_target): Don't override
|
||
to_terminal_inferior/to_terminal_ours.
|
||
|
||
2018-01-29 Sergio Durigan Junior <sergiodj@redhat.com>
|
||
|
||
* remote.c (remote_follow_fork): Don't call "detach_inferior".
|
||
|
||
2018-01-28 Simon Marchi <simon.marchi@ericsson.com>
|
||
|
||
* dwarf2read.c (free_dwo_files): Add forward-declaration.
|
||
(dwarf2_per_objfile::~dwarf2_per_objfile): Move content from
|
||
dwarf2_per_objfile_free here.
|
||
(dwarf2_per_objfile_free): Remove.
|
||
(_initialize_dwarf2_read): Don't register
|
||
dwarf2_per_objfile_free as a registry cleanup.
|
||
|
||
2018-01-27 Eli Zaretskii <eliz@gnu.org>
|
||
|
||
Avoid compilation errors in MinGW native builds
|
||
|
||
The error is triggered by including python-internal.h, and the
|
||
error message is:
|
||
|
||
In file included from d:\usr\lib\gcc\mingw32\6.3.0\include\c++\math.h:36:0,
|
||
from build-gnulib/import/math.h:27,
|
||
from d:/usr/Python26/include/pyport.h:235,
|
||
from d:/usr/Python26/include/Python.h:58,
|
||
from python/python-internal.h:94,
|
||
from python/py-arch.c:24:
|
||
d:\usr\lib\gcc\mingw32\6.3.0\include\c++\cmath:1157:11: error: '::hypot' has not been declared
|
||
using ::hypot;
|
||
^~~~~
|
||
|
||
This happens because Python headers define 'hypot' to expand t
|
||
'_hypot' in the Windows builds.
|
||
* python/python-internal.h (_hypot) [__MINGW32__]: Define back to
|
||
'hypoth'. This avoids a compilation error.
|
||
|
||
2018-01-26 Alan Hayward <alan.hayward@arm.com>
|
||
|
||
* MAINTAINERS (Write After Approval): Fix ordering.
|
||
|
||
2018-01-26 Alan Hayward <alan.hayward@arm.com>
|
||
|
||
* MAINTAINERS (Write After Approval): Add Alan Hayward.
|
||
|
||
2018-01-26 Alan Modra <amodra@gmail.com>
|
||
|
||
* ppc-linux-tdep.c (powerpc32_plt_stub): Make const.
|
||
(powerpc32_plt_stub_so_1): Rename from powerpc32_plt_stub_so.
|
||
Remove nop. Make const. Comment.
|
||
(powerpc32_plt_stub_so_2): New.
|
||
(POWERPC32_PLT_CHECK_LEN): Rename from POWERPC32_PLT_STUB_LEN.
|
||
Correct count. Update uses.
|
||
(ppc_skip_trampoline_code): Match powerpc32_plt_stub_so_2 too.
|
||
Move common code reading PLT entry word. Correct
|
||
powerpc32_plt_stub PLT address calculation.
|
||
* ppc64-tdep.c (ppc64_standard_linkage1): Make const.
|
||
(ppc64_standard_linkage2, ppc64_standard_linkage3): Likewise.
|
||
(ppc64_standard_linkage4, ppc64_standard_linkage5): Likewise.
|
||
(ppc64_standard_linkage6, ppc64_standard_linkage7): Likewise.
|
||
(ppc64_standard_linkage8): Likewise.
|
||
* rs6000-tdep.c (ppc_insns_match_pattern): Make pattern const.
|
||
Correct insns description.
|
||
* ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
|
||
|
||
2018-01-24 Pedro Alves <palves@redhat.com>
|
||
|
||
GCC PR libstdc++/83906
|
||
* gdbtypes.c (operator==(const dynamic_prop &,
|
||
const dynamic_prop &)): New.
|
||
(operator==(const range_bounds &, const range_bounds &)): New.
|
||
(check_types_equal): Use them instead of memcmp.
|
||
* gdbtypes.h (operator==(const dynamic_prop &,
|
||
const dynamic_prop &)): Declare.
|
||
(operator!=(const dynamic_prop &, const dynamic_prop &)): Declare.
|
||
(operator==(const range_bounds &, const range_bounds &)): Declare.
|
||
(operator!=(const range_bounds &, const range_bounds &)): Declare.
|
||
|
||
2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
|
||
|
||
* s390-linux-tdep.c (s390_record_address_mask)
|
||
(s390_record_calc_disp_common, s390_record_calc_disp)
|
||
(s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
|
||
(s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
|
||
(s390_process_record): Move to s390-tdep.c.
|
||
(s390_linux_init_abi_any): Adjust.
|
||
* s390-tdep.c (s390_record_address_mask)
|
||
(s390_record_calc_disp_common, s390_record_calc_disp)
|
||
(s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
|
||
(s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
|
||
(s390_process_record): Moved from s390-linux-tdep.c
|
||
(s390_gdbarch_init): Adjust.
|
||
|
||
2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
|
||
|
||
* s390-linux-nat.c (s390-tdep.h): New include.
|
||
* Makefile.in (ALL_TARGET_OBS): Add s390-tdep.o.
|
||
(HFILES_NO_SRCDIR): Add s390-tdep.h.
|
||
(ALLDEPFILES): Add s390-tdep.c.
|
||
* configure.tgt (s390*-*-linux*): Add s390-tdep.o.
|
||
* s390-linux-tdep.h (HWCAP_S390_*, S390_*_REGNUM): Move to...
|
||
* s390-tdep.h: ...this. New file.
|
||
* s390-linux-tdep.c (s390-tdep.h): New include.
|
||
(_initialize_s390_tdep): Rename to...
|
||
(_initialize_s390_linux_tdep): ...this and adjust.
|
||
(s390_abi_kind, s390_vector_abi_kind, gdbarch_tdep)
|
||
(enum named opcodes, S390_NUM_GPRS, S390_NUM_FPRS): Move to
|
||
s390-tdep.h.
|
||
(s390_break_insn, s390_breakpoint, s390_readinstruction, is_ri)
|
||
(is_ril, is_rr, is_rre, is_rs, is_rsy, is_rx, is_rxy)
|
||
(s390_is_partial_instruction, s390_software_single_step)
|
||
(is_non_branch_ril, s390_displaced_step_copy_insn)
|
||
(s390_displaced_step_fixup, s390_displaced_step_hw_singlestep)
|
||
(s390_prologue_data, s390_addr, s390_store, s390_load)
|
||
(s390_check_for_saved, s390_analyze_prologue, s390_skip_prologue)
|
||
(s390_register_call_saved, s390_guess_tracepoint_registers)
|
||
(s390_register_name, s390_dwarf_regmap, s390_dwarf_reg_to_regnum)
|
||
(regnum_is_gpr_full, regnum_is_vxr_full, s390_value_from_register)
|
||
(s390_pseudo_register_name, s390_pseudo_register_type)
|
||
(s390_pseudo_register_read, s390_pseudo_register_write)
|
||
(s390_pseudo_register_reggroup_p, s390_ax_pseudo_register_collect)
|
||
(s390_ax_pseudo_register_push_stack, s390_gen_return_address)
|
||
(s390_addr_bits_remove, s390_address_class_type_flags)
|
||
(s390_address_class_type_flags_to_name)
|
||
(s390_address_class_name_to_type_flags, s390_effective_inner_type)
|
||
(s390_function_arg_float, s390_function_arg_vector)
|
||
(is_power_of_two, s390_function_arg_integer, s390_arg_state)
|
||
(s390_handle_arg, s390_push_dummy_call, s390_dummy_id)
|
||
(s390_frame_align, s390_register_return_value, s390_return_value)
|
||
(s390_stack_frame_destroyed_p, s390_unwind_pc, s390_unwind_sp)
|
||
(s390_unwind_pseudo_register, s390_adjust_frame_regnum)
|
||
(s390_dwarf2_prev_register, s390_dwarf2_frame_init_reg)
|
||
(s390_trad_frame_prev_register, s390_unwind_cache)
|
||
(s390_prologue_frame_unwind_cache)
|
||
(s390_backchain_frame_unwind_cache, s390_frame_unwind_cache)
|
||
(s390_frame_this_id, s390_frame_prev_register, s390_frame_unwind)
|
||
(s390_stub_unwind_cache, s390_stub_frame_unwind_cache)
|
||
(s390_stub_frame_this_id, s390_stub_frame_prev_register)
|
||
(s390_stub_frame_sniffer, s390_stub_frame_unwind)
|
||
(s390_frame_base_address, s390_local_base_address)
|
||
(s390_frame_base, s390_gcc_target_options)
|
||
(s390_gnu_triplet_regexp, s390_stap_is_single_operand)
|
||
(s390_validate_reg_range, s390_tdesc_valid)
|
||
(s390_gdbarch_tdep_alloc, s390_gdbarch_init): Move to...
|
||
* s390-tdep.c: ...this. New file.
|
||
|
||
2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
|
||
|
||
* s390-linux-tdep.c (gdbarch_tdep.s390_syscall_record): New hook.
|
||
(s390_process_record, s390_gdbarch_tdep_alloc)
|
||
(s390_linux_init_abi_any): Use/set new hook.
|
||
|
||
2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
|
||
|
||
* s390-linux-tdep.c (osabi.h): New include.
|
||
(s390_linux_init_abi_31, s390_linux_init_abi_64)
|
||
(s390_linux_init_abi_any): New functions.
|
||
(s390_gdbarch_init, _initialize_s390_tdep): Adjust.
|
||
|
||
2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
|
||
|
||
* s390-linux-tdep.c (s390_gdbarch_init): Use gdb_assert for
|
||
tdesc_has_registers check
|
||
|
||
2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
|
||
|
||
* s390-linux-tdep.c (s390_tdesc_valid): New function.
|
||
(s390_validate_reg_range): New macro.
|
||
(s390_gdbarch_init): Adjust.
|
||
|
||
2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
|
||
|
||
* s390-linux-tdep.c (gdbarch_tdep) <tdesc>: New field.
|
||
(s390_gdbarch_tdep_alloc): Adjust.
|
||
(s390_gdbarch_init): Adjust.
|
||
|
||
2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
|
||
|
||
* s390-linux-tdep.c (gdbarch_tdep) <have_linux_v1, have_linux_v2>
|
||
<have_tdb>: Change type to bool.
|
||
(s390_gdbarch_tdep_alloc): Adjust.
|
||
(s390_gdbarch_init): Adjust.
|
||
|
||
2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
|
||
|
||
* s390-linux-tdep (s390_abi_kind) <ABI_NONE>: New default field.
|
||
(gdbarch_tdep) <have_upper, have_vx>: New fields.
|
||
(s390_gdbarch_tdep_alloc): New function.
|
||
(s390_gdbarch_init): Allocate tdep at start and use its fields
|
||
instead of separate variables.
|
||
|
||
2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
|
||
|
||
* s390-linux-tdep.c (s390_gdbarch_init): Remove duplicate checks
|
||
when looking for cached gdbarch and add comment for remaining.
|
||
|
||
2018-01-22 Pedro Alves <palves@redhat.com>
|
||
Sergio Durigan Junior <sergiodj@redhat.com>
|
||
|
||
* typeprint.c (whatis_exp): Initialize "val" in the "whatis type"
|
||
case.
|
||
|
||
2018-01-22 Maciej W. Rozycki <macro@mips.com>
|
||
|
||
* MAINTAINERS: Update my company e-mail address.
|
||
|
||
2018-01-22 Yao Qi <yao.qi@linaro.org>
|
||
|
||
* regcache.c (cooked_write_test): New function.
|
||
(_initialize_regcache): Register the test.
|
||
|
||
2018-01-22 Yao Qi <yao.qi@linaro.org>
|
||
|
||
* ia64-tdep.c (ia64_pseudo_register_read): Call
|
||
regcache->cooked_read instead of regcache_cooked_read_unsigned.
|
||
* m32c-tdep.c (m32c_cat_read): Likewise.
|
||
(m32c_r3r2r1r0_read): Likewise.
|
||
* m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
|
||
* xtensa-tdep.c (xtensa_register_read_masked): Likewise.
|
||
|
||
2018-01-22 Yao Qi <yao.qi@linaro.org>
|
||
|
||
* aarch64-tdep.c (aarch64_pseudo_read_value): Call regcache
|
||
method raw_read instead of regcache_raw_read.
|
||
* amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
|
||
* arm-tdep.c (arm_neon_quad_read): Likewise.
|
||
* avr-tdep.c (avr_pseudo_register_read): Likewise.
|
||
* bfin-tdep.c (bfin_pseudo_register_read): Likewise.
|
||
* frv-tdep.c (frv_pseudo_register_read): Likewise.
|
||
* h8300-tdep.c (h8300_pseudo_register_read): Likewise.
|
||
* i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
|
||
(i386_pseudo_register_read_into_value): Likewise.
|
||
* mep-tdep.c (mep_pseudo_cr32_read): Likewise.
|
||
* msp430-tdep.c (msp430_pseudo_register_read): Likewise.
|
||
* nds32-tdep.c (nds32_pseudo_register_read): Likewise.
|
||
* rl78-tdep.c (rl78_pseudo_register_read): Likewise.
|
||
* s390-linux-tdep.c (s390_pseudo_register_read): Likewise.
|
||
* sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
|
||
* sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
|
||
* spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
|
||
* xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
|
||
|
||
2018-01-22 Yao Qi <yao.qi@linaro.org>
|
||
|
||
* Makefile.in (ALL_TARGET_OBS): Remove mt-tdep.o.
|
||
* configure.tgt: Remove target mt.
|
||
* mt-tdep.c: Remove.
|
||
* regcache.c (cooked_read_test): Remove the check for mt.
|
||
|
||
2018-01-22 Yao Qi <yao.qi@linaro.org>
|
||
|
||
* jit.c (jit_frame_prev_register): Call regcache::cooked_read
|
||
instead of gdbarch_pseudo_register_read_value.
|
||
|
||
2018-01-22 Joel Brobecker <brobecker@adacore.com>
|
||
|
||
* dwarf2read.c (need_gnat_info): Return nonzero if the cu's
|
||
language is Ada.
|
||
|
||
2018-01-22 Joel Brobecker <brobecker@adacore.com>
|
||
|
||
* linespec.c (create_sals_line_offset): Remove code that preserved
|
||
the symtab_and_line's line number.
|
||
|
||
2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
|
||
|
||
* varobj.c (varobj_create): Don't set valid_block when creating a
|
||
floating varobj.
|
||
|
||
2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
|
||
|
||
* varobj.c (varobj_create): Remove out of date comment.
|
||
|
||
2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
|
||
|
||
PR mi/20395
|
||
* ada-exp.y (write_var_from_sym): Pass extra parameter when
|
||
updating innermost block.
|
||
* parse.c (innermost_block_tracker::update): Take extra type
|
||
parameter, and check types match before updating innermost block.
|
||
(write_dollar_variable): Update innermost block for registers.
|
||
* parser-defs.h (enum innermost_block_tracker_type): New enum.
|
||
(innermost_block_tracker::innermost_block_tracker): Initialise
|
||
m_types member.
|
||
(innermost_block_tracker::reset): Take type parameter.
|
||
(innermost_block_tracker::update): Take type parameter, and pass
|
||
type through as needed.
|
||
(innermost_block_tracker::m_types): New member.
|
||
* varobj.c (varobj_create): Pass type when reseting innermost
|
||
block.
|
||
|
||
2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
|
||
|
||
* ada-exp.y (write_var_from_sym): Switch to innermost_block API.
|
||
* ada-lang.c (resolve_subexp): Likewise.
|
||
* breakpoint.c (set_breakpoint_condition) Likewise.
|
||
(watch_command_1) Likewise.
|
||
* c-exp.y (variable): Likewise.
|
||
* d-exp.y (PrimaryExpression): Likewise.
|
||
* f-exp.y (variable): Likewise.
|
||
* go-exp.y (variable): Likewise.
|
||
* m2-exp.y (variable): Likewise.
|
||
* objfiles.c (objfile::~objfile): Likewise.
|
||
* p-exp.y (variable): Likewise.
|
||
* parse.c (innermost_block): Change type.
|
||
* parser-defs.h (class innermost_block_tracker): New.
|
||
(innermost_block): Change to innermost_block_tracker.
|
||
* printcmd.c (display_command): Switch to innermost_block API.
|
||
(do_one_display): Likewise.
|
||
* rust-exp.y (do_one_display): Likewise.
|
||
* symfile.c (clear_symtab_users): Likewise.
|
||
* varobj.c (varobj_create): Switch to innermost_block API, replace
|
||
use of innermost_block with block stored on varobj object.
|
||
|
||
2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
|
||
|
||
* expression.h (innermost_block): Remove declaration.
|
||
* varobj.c: Add 'parser-defs.h' include.
|
||
|
||
2018-01-19 Tom Tromey <tom@tromey.com>
|
||
|
||
* rust-lang.c (rust_lookup_symbol_nonlocal): Look up qualified
|
||
symbols in the static and global blocks.
|
||
|
||
2018-01-19 James Clarke <jrtc27@jrtc27.com>
|
||
|
||
* nat/linux-ptrace.c: Remove unnecessary reinclusion of
|
||
gdb_ptrace.h, and move including gdb_wait.h ...
|
||
* nat/linux-ptrace.h: ... to here.
|
||
|
||
2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
|
||
|
||
* inf-ptrace.c (inf_ptrace_detach): Adjust call to
|
||
inf_ptrace_detach_success.
|
||
(inf_ptrace_detach_success): Add inferior parameter, use it
|
||
instead of inferior_ptid, pass it to detach_inferior.
|
||
* inf-ptrace.h (inf_ptrace_detach_success): Add inferior
|
||
parameter.
|
||
* inferior.c (detach_inferior): Add overload that takes an
|
||
inferior object.
|
||
* inferior.h (detach_inferior): Likewise.
|
||
* linux-nat.c (linux_nat_detach): Use the inf parameter, don't
|
||
use inferior_ptid, adjust call to inf_ptrace_detach_success.
|
||
* linux-thread-db.c (thread_db_detach): Use inf parameter.
|
||
|
||
2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
|
||
|
||
* target.h (struct target_ops) <to_detach>: Add inferior
|
||
parameter.
|
||
(target_detach): Likewise.
|
||
* target.c (dispose_inferior): Pass inferior down.
|
||
(target_detach): Pass inferior down. Assert that it is equal to
|
||
the current inferior.
|
||
* aix-thread.c (aix_thread_detach): Pass inferior down.
|
||
* corefile.c (core_file_command): Pass current_inferior() down.
|
||
* corelow.c (core_detach): Add inferior parameter.
|
||
* darwin-nat.c (darwin_detach): Likewise.
|
||
* gnu-nat.c (gnu_detach): Likewise.
|
||
* inf-ptrace.c (inf_ptrace_detach): Likewise.
|
||
* infcmd.c (detach_command): Pass current_inferior() down to
|
||
target_detach.
|
||
* infrun.c (follow_fork_inferior): Pass parent_inf to
|
||
target_detach.
|
||
(handle_vfork_child_exec_or_exit): Pass inf->vfork_parent to
|
||
target_detach.
|
||
* linux-nat.c (linux_nat_detach): Add inferior parameter.
|
||
* linux-thread-db.c (thread_db_detach): Likewise.
|
||
* nto-procfs.c (procfs_detach): Likewise.
|
||
* procfs.c (procfs_detach): Likewise.
|
||
* record.c (record_detach): Likewise.
|
||
* record.h (struct inferior): Forward-declare.
|
||
(record_detach): Add inferior parameter.
|
||
* remote-sim.c (gdbsim_detach): Likewise.
|
||
* remote.c (remote_detach_1): Likewise.
|
||
(remote_detach): Likewise.
|
||
(extended_remote_detach): Likewise.
|
||
* sol-thread.c (sol_thread_detach): Likewise.
|
||
* target-debug.h (target_debug_print_inferior_p): New macro.
|
||
* target-delegates.c: Re-generate.
|
||
* top.c (kill_or_detach): Pass inferior down to target_detach.
|
||
* windows-nat.c (windows_detach): Add inferior parameter.
|
||
|
||
2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
|
||
|
||
* target.h (struct target_ops) <to_detach>: Remove args
|
||
parameter.
|
||
(target_detach): Likewise.
|
||
* target.c (dispose_inferior): Adjust.
|
||
(target_detach): Remove args parameter, adjust.
|
||
* aix-thread.c (aix_thread_detach): Adjust.
|
||
* corefile.c (core_file_command): Adjust.
|
||
* corelow.c (core_detach): Adjust.
|
||
* darwin-nat.c (darwin_detach): Adjust.
|
||
* gnu-nat.c (gnu_detach): Adjust.
|
||
* inf-ptrace.c (inf_ptrace_detach): Adjust.
|
||
* infcmd.c (detach_command): Adjust
|
||
* infrun.c (follow_fork_inferior): Adjust.
|
||
(handle_vfork_child_exec_or_exit): Adjust.
|
||
* linux-fork.c (linux_fork_detach): Remove args parameter.
|
||
* linux-fork.h (linux_fork_detach): Likewise.
|
||
* linux-nat.c (linux_nat_detach): Likewise, and adjust.
|
||
* linux-thread-db.c (thread_db_detach): Likewise.
|
||
* nto-procfs.c (procfs_detach): Likewise.
|
||
* procfs.c (procfs_detach): Likewise.
|
||
(do_detach): Remove signo parameter.
|
||
* record.c (record_detach): Remove args parameter.
|
||
* record.h (record_detach): Likewise.
|
||
* remote-sim.c (gdbsim_detach): Likewise.
|
||
* remote.c (remote_detach_1): Likewise.
|
||
(remote_detach): Likewise.
|
||
(extended_remote_detach): Likewise.
|
||
* sol-thread.c (sol_thread_detach): Likewise.
|
||
* target-delegates.c: Re-generate.
|
||
* top.c (struct qt_args) <args>: Remove field.
|
||
(kill_or_detach): Don't pass args.
|
||
(quit_force): Don't set args.
|
||
* windows-nat.c (windows_detach): Remove args parameter.
|
||
|
||
2018-01-19 Yao Qi <yao.qi@linaro.org>
|
||
|
||
* arm-linux-tdep.c (arm_linux_gcc_target_options): New function.
|
||
(arm_linux_init_abi): Install it.
|
||
|
||
2018-01-19 Yao Qi <yao.qi@linaro.org>
|
||
|
||
* osabi.c (gdb_osabi_names): Extend the regexp for
|
||
arm-linux-gnueabihf.
|
||
|
||
2018-01-18 Yao Qi <yao.qi@linaro.org>
|
||
|
||
* dwarf2read.c (abbrev_table) <abbrevs>: Rename it to
|
||
m_abbrevs.
|
||
(abbrev_table::add_abbrev): Update.
|
||
(abbrev_table::lookup_abbrev): Update.
|
||
|
||
2018-01-18 Yao Qi <yao.qi@linaro.org>
|
||
|
||
* ppc-linux-tdep.c (ppu2spu_prev_register): Call cooked_read.
|
||
|
||
2018-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
|
||
|
||
* compile/compile.c (compile_to_object): Convert "triplet_rx"
|
||
to "std::string".
|
||
|
||
2018-01-17 Tom Tromey <tom@tromey.com>
|
||
|
||
* dwarf2read.c (symbolp): Remove typedef. Don't instantiate VEC.
|
||
|
||
2018-01-17 Tom Tromey <tom@tromey.com>
|
||
|
||
* gdbtypes.h (add_dyn_prop): Remove objfile parameter.
|
||
* gdbtypes.c (add_dyn_prop): Remove objfile parameter.
|
||
(create_array_type_with_stride): Update.
|
||
* dwarf2read.c (set_die_type): Update.
|
||
|
||
2018-01-17 Tom Tromey <tom@tromey.com>
|
||
|
||
* dwarf2read.c (delayed_method_info): Remove typedef.
|
||
(dwarf2_cu::method_info): Now a std::vector.
|
||
(add_to_method_list): Update.
|
||
(free_delayed_list): Remove.
|
||
(compute_delayed_physnames): Update.
|
||
(process_full_comp_unit, process_full_type_unit): Clear the method
|
||
list. Remove cleanups.
|
||
(psymtab_include_file_name): Add name_holder parameter. Use
|
||
unique_xmalloc_ptr.
|
||
(dwarf_decode_lines): Update.
|
||
|
||
2018-01-17 Tom Tromey <tom@tromey.com>
|
||
Simon Marchi <simon.marchi@ericsson.com>
|
||
|
||
* dwarf2read.c (struct dwarf2_cu): Add constructor, destructor.
|
||
(dwarf2_per_objfile::free_cached_comp_units)
|
||
(init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
|
||
(init_cutu_and_read_dies_no_follow): Update.
|
||
(dwarf2_cu::dwarf2_cu): Rename from init_one_comp_unit.
|
||
(dwarf2_cu::~dwarf2_cu): New.
|
||
(free_heap_comp_unit, free_stack_comp_unit): Remove.
|
||
(age_cached_comp_units, free_one_cached_comp_unit): Update.
|
||
|
||
2018-01-17 Tom Tromey <tom@tromey.com>
|
||
Simon Marchi <simon.marchi@ericsson.com>
|
||
|
||
* dwarf2read.c (struct dwarf2_cu) <abbrev_table>: Remove.
|
||
(struct die_reader_specs) <abbrev_table>: New member.
|
||
(struct abbrev_table): Add constructor.
|
||
<alloc_abbrev, add_abbrev, lookup_abbrev>: Declare.
|
||
<abbrev_obstack>: Now an auto_obstack.
|
||
(abbrev_table_up): New typedef.
|
||
(init_cu_die_reader): Add abbrev_table parameter.
|
||
(read_cutu_die_from_dwo): Remove abbrev_table_provided parameter.
|
||
Add result_dwo_abbrev_table.
|
||
(init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
|
||
(init_cutu_and_read_dies_no_follow, build_type_psymtabs_1):
|
||
Update.
|
||
(peek_die_abbrev): Take die_reader_specs, not dwarf_cu as
|
||
parameter.
|
||
(skip_children): Update.
|
||
(abbrev_table::alloc_abbrev): Rename from
|
||
abbrev_table_alloc_abbrev.
|
||
(abbrev_table::add_abbrev): Rename from abbrev_table_add_abbrev.
|
||
(abbrev_table::lookup_abbrev): Rename from
|
||
abbrev_table_lookup_abbrev.
|
||
(abbrev_table_read_table): Return abbrev_table_up.
|
||
(abbrev_table_free, abbrev_table_free_cleanup)
|
||
(dwarf2_read_abbrevs, dwarf2_free_abbrev_table): Remove.
|
||
(load_partial_dies): Update.
|
||
|
||
2018-01-17 Tom Tromey <tom@tromey.com>
|
||
|
||
* dwarf2read.c (dwarf2_compute_name): Update comment.
|
||
(read_func_scope, read_variable): Update.
|
||
(new_symbol): Remove.
|
||
(new_symbol_full): Rename to new_symbol.
|
||
|
||
2018-01-17 Mike Gulick <mgulick@mathworks.com>
|
||
|
||
PR gdb/16577
|
||
* gdb_bfd.c (gdb_bfd_map_section): If unable to read object file, issue
|
||
a warning instead of throwing an error, set section size to 0 and return
|
||
NULL.
|
||
* gdb_bfd.h (gdb_bfd_map_section): Update description.
|
||
|
||
2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
|
||
|
||
* nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return
|
||
std::string.
|
||
(linux_ptrace_attach_fail_reason_string): Likewise.
|
||
* nat/linux-ptrace.c (linux_ptrace_attach_fail_reason):
|
||
Likewise.
|
||
(linux_ptrace_attach_fail_reason_string): Likewise.
|
||
* linux-nat.c (attach_proc_task_lwp_callback): Adjust.
|
||
|
||
2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
|
||
|
||
* linux-nat.c (linux_nat_attach): Remove xstrdup.
|
||
|
||
2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
|
||
|
||
PR gdb/21559
|
||
* configure.ac: Include <sys/types.h> prior to <sys/user.h> when
|
||
checking for fs_base/gs_base fields in struct user_regs_struct.
|
||
* configure: Regenerate.
|
||
|
||
2018-01-17 Yao Qi <yao.qi@linaro.org>
|
||
|
||
* aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New
|
||
function.
|
||
(aarch64_linux_init_abi): Install it to gdbarch hook
|
||
gcc_target_options.
|
||
|
||
2018-01-15 Pedro Alves <palves@redhat.com>
|
||
|
||
* common/signals-state-save-restore.c
|
||
(save_original_signals_state): Fix typos.
|
||
|
||
2017-01-12 Tom Tromey <tom@tromey.com>
|
||
Sergio Durigan Junior <sergiodj@redhat.com>
|
||
|
||
* Makefile.in (install-only): Install gdb-add-index.
|
||
|
||
2018-01-12 John Baldwin <jhb@FreeBSD.org>
|
||
|
||
* fbsd-tdep.c (KVE_PROTECTION): Correct value.
|
||
|
||
2018-01-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
|
||
|
||
* infrun.c (keep_going_pass_signal): Clear step-over info when
|
||
insert_breakpoints fails.
|
||
|
||
2018-01-11 Pedro Alves <palves@redhat.com>
|
||
|
||
PR gdb/22583
|
||
* infrun.c (resume): Rename to ...
|
||
(resume_1): ... this.
|
||
(resume): Reimplement as wrapper around resume_1.
|
||
|
||
2018-01-11 Pedro Alves <palves@redhat.com>
|
||
|
||
PR remote/22597
|
||
* remote.c (remote_parse_stop_reply): Default to the last-set
|
||
general thread instead of to 'magic_null_ptid'.
|
||
|
||
2018-01-10 Pedro Alves <palves@redhat.com>
|
||
|
||
* language.h (language_get_symbol_name_matcher): Rename ...
|
||
(get_symbol_name_matcher): ... this.
|
||
* language.c (language_get_symbol_name_matcher): Ditto.
|
||
* dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All
|
||
callers adjusted.
|
||
|
||
2018-01-10 Pedro Alves <palves@redhat.com>
|
||
|
||
PR gdb/22670
|
||
* dwarf2read.c
|
||
(gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher):
|
||
Adjust to use language_get_symbol_name_matcher instead of
|
||
language_defn::la_get_symbol_name_matcher.
|
||
* language.c (language_get_symbol_name_matcher): If in Ada mode
|
||
and the lookup name is a verbatim match, return Ada's matcher.
|
||
* language.h (language_get_symbol_name_matcher): Adjust comment.
|
||
(ada_lookup_name_info::verbatim_p):: New method.
|
||
|
||
2018-01-10 Pedro Alves <palves@redhat.com>
|
||
|
||
PR gdb/22670
|
||
* ada-lang.c (ada_collect_symbol_completion_matches): If the
|
||
minsym's language is language_auto or language_cplus, pass down
|
||
language_ada instead.
|
||
* symtab.c (compare_symbol_name): Don't frob symbol language here.
|
||
|
||
2018-01-10 Pedro Alves <palves@redhat.com>
|
||
|
||
PR gdb/22670
|
||
* minsyms.c (linkage_name_str): New function.
|
||
(iterate_over_minimal_symbols): Use it.
|
||
|
||
2018-01-09 John Baldwin <jhb@FreeBSD.org>
|
||
|
||
* NEWS: Document that 'info proc' now works on FreeBSD.
|
||
|
||
2018-01-09 John Baldwin <jhb@FreeBSD.org>
|
||
|
||
* configure.ac: Check for kinfo_getfile in libutil.
|
||
* configure: Regenerate.
|
||
* config.in: Regenerate.
|
||
* fbsd-nat.c: Include "fbsd-tdep.h".
|
||
(fbsd_fetch_cmdline): New.
|
||
(fbsd_fetch_kinfo_proc): Move earlier and change to return a bool
|
||
rather than calling error.
|
||
(fbsd_info_proc): New.
|
||
(fbsd_thread_name): Report error if fbsd_fetch_kinfo_proc fails.
|
||
(fbsd_wait): Report warning if fbsd_fetch_kinfo_proc fails.
|
||
(fbsd_nat_add_target): Set "to_info_proc" to "fbsd_info_proc".
|
||
|
||
2018-01-09 John Baldwin <jhb@FreeBSD.org>
|
||
|
||
* fbsd-nat.c (struct free_deleter): Remove.
|
||
(fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>.
|
||
|
||
2018-01-09 John Baldwin <jhb@FreeBSD.org>
|
||
|
||
* fbsd-nat.c (fbsd_pid_to_exec_file) [KERN_PROC_PATHNAME]: Return
|
||
NULL for an empty pathname.
|
||
|
||
2018-01-09 John Baldwin <jhb@FreeBSD.org>
|
||
|
||
* fbsd-tdep.c (KVE_STRUCTSIZE, KVE_START, KVE_END, KVE_OFFSET)
|
||
(KVE_FLAGS, KVE_PROTECTION, KVE_PATH, KINFO_VME_PROT_READ)
|
||
(KINFO_VME_PROT_WRITE, KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
|
||
(KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
|
||
(KINFO_VME_FLAG_SUPER, KINFO_VME_FLAG_GROWS_UP)
|
||
(KINFO_VME_FLAG_GROWS_DOWN, KF_STRUCTSIZE, KF_TYPE, KF_FD)
|
||
(KF_PATH, KINFO_FILE_TYPE_VNODE, KINFO_FILE_FD_TYPE_CWD)
|
||
(KINFO_FILE_FD_TYPE_TEXT, SIG_WORDS, struct kinfo_proc_layout)
|
||
(kinfo_proc_layout_32, kinfo_proc_layout_i386)
|
||
(kinfo_proc_layout_64, fbsd_vm_map_entry_flags)
|
||
(fbsd_core_info_proc_mappings, fbsd_core_vnode_path)
|
||
(fbsd_core_fetch_timeval, fbsd_print_sigset)
|
||
(fbsd_core_info_proc_status, fbsd_core_info_proc): New.
|
||
(fbsd_init_abi): Install gdbarch "core_info_proc" method.
|
||
* fbsd-tdep.h (fbsd_vm_map_entry_flags): New.
|
||
|
||
2018-01-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
|
||
|
||
* gdb/gnu-nat.c: Include <elf.h> and <link.h>.
|
||
(gnu_xfer_auxv): New function.
|
||
(gnu_xfer_partial): Call gnu_xfer_auxv when `object' is
|
||
TARGET_OBJECT_AUXV.
|
||
|
||
2018-01-08 Yao Qi <yao.qi@linaro.org>
|
||
Simon Marchi <simon.marchi@ericsson.com>
|
||
|
||
* Makefile.in (COMMON_SFILES): Remove selftest-arch.c and
|
||
common/selftest.c.
|
||
(COMMON_OBS): Remove selftest.o.
|
||
* configure.ac: Append selftest-arch.c and common/selftest.c to
|
||
CONFIG_SRCS. Append selftest-arch.o and selftest.o to COMMON_OBS.
|
||
* configure: Re-generated.
|
||
* maint.c (maintenance_selftest): Wrap selftests::run_tests with
|
||
GDB_SELF_TEST.
|
||
(maintenance_info_selftests): Likewise.
|
||
|
||
2018-01-08 Xavier Roirand <roirand@adacore.com>
|
||
|
||
* ada-valprint.c (val_print_packed_array_elements): Use
|
||
proper number of elements when printing an array indexed
|
||
by an enumeration type.
|
||
|
||
2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
|
||
|
||
* dwarf2read.c (struct dwarf2_cu) <dwarf2_per_objfile>: Remove.
|
||
(dw2_get_file_names_reader): Adjust.
|
||
(lookup_dwo_signatured_type): Adjust.
|
||
(lookup_dwp_signatured_type): Adjust.
|
||
(lookup_signatured_type): Adjust.
|
||
(create_type_unit_group): Adjust.
|
||
(get_type_unit_group): Adjust.
|
||
(process_psymtab_comp_unit_reader): Adjust.
|
||
(build_type_psymtabs_reader): Adjust.
|
||
(scan_partial_symbols): Adjust.
|
||
(add_partial_symbol): Adjust.
|
||
(add_partial_subprogram): Adjust.
|
||
(peek_die_abbrev): Adjust.
|
||
(fixup_go_packaging): Adjust.
|
||
(process_imported_unit_die): Adjust.
|
||
(dwarf2_compute_name): Adjust.
|
||
(dwarf2_physname): Adjust.
|
||
(read_import_statement): Adjust.
|
||
(handle_DW_AT_stmt_list): Adjust.
|
||
(read_file_scope): Adjust.
|
||
(read_func_scope): Adjust.
|
||
(read_lexical_block_scope): Adjust.
|
||
(read_call_site_scope): Adjust.
|
||
(read_variable): Adjust.
|
||
(dwarf2_rnglists_process): Adjust.
|
||
(dwarf2_ranges_process): Adjust.
|
||
(dwarf2_ranges_read): Adjust.
|
||
(dwarf2_get_pc_bounds): Adjust.
|
||
(dwarf2_record_block_ranges): Adjust.
|
||
(dwarf2_add_field): Adjust.
|
||
(dwarf2_add_member_fn): Adjust.
|
||
(read_structure_type): Adjust.
|
||
(process_structure_scope): Adjust.
|
||
(read_enumeration_type): Adjust.
|
||
(read_array_type): Adjust.
|
||
(mark_common_block_symbol_computed): Adjust.
|
||
(read_common_block): Adjust.
|
||
(read_namespace_type): Adjust.
|
||
(read_namespace): Adjust.
|
||
(read_module_type): Adjust.
|
||
(read_tag_pointer_type): Adjust.
|
||
(read_tag_ptr_to_member_type): Adjust.
|
||
(read_tag_string_type): Adjust.
|
||
(read_subroutine_type): Adjust.
|
||
(read_typedef): Adjust.
|
||
(read_base_type): Adjust.
|
||
(attr_to_dynamic_prop): Adjust.
|
||
(read_subrange_type): Adjust.
|
||
(read_unspecified_type): Adjust.
|
||
(dwarf2_read_abbrevs): Adjust.
|
||
(load_partial_dies): Adjust.
|
||
(read_partial_die): Adjust.
|
||
(find_partial_die): Adjust.
|
||
(guess_partial_die_structure_name): Adjust.
|
||
(fixup_partial_die): Adjust.
|
||
(read_attribute_value): Adjust.
|
||
(read_addr_index): Adjust.
|
||
(read_addr_index_from_leb128): Adjust.
|
||
(read_str_index): Adjust.
|
||
(dwarf2_string_attr): Adjust.
|
||
(get_debug_line_section): Adjust.
|
||
(dwarf_decode_line_header): Adjust.
|
||
(lnp_state_machine::check_line_address): Adjust.
|
||
(dwarf_decode_lines_1): Adjust.
|
||
(dwarf_decode_lines): Adjust.
|
||
(dwarf2_start_symtab): Adjust.
|
||
(var_decode_location): Adjust.
|
||
(new_symbol_full): Adjust.
|
||
(dwarf2_const_value_data): Adjust.
|
||
(dwarf2_const_value_attr): Adjust.
|
||
(dwarf2_const_value): Adjust.
|
||
(die_type): Adjust.
|
||
(die_containing_type): Adjust.
|
||
(build_error_marker_type): Adjust.
|
||
(lookup_die_type): Adjust.
|
||
(guess_full_die_structure_name): Adjust.
|
||
(anonymous_struct_prefix): Adjust.
|
||
(determine_prefix): Adjust.
|
||
(dwarf2_name): Adjust.
|
||
(follow_die_ref_or_sig): Adjust.
|
||
(follow_die_offset): Adjust.
|
||
(follow_die_ref): Adjust.
|
||
(follow_die_sig_1): Adjust.
|
||
(follow_die_sig): Adjust.
|
||
(get_signatured_type): Adjust.
|
||
(get_DW_AT_signature_type): Adjust.
|
||
(decode_locdesc): Adjust.
|
||
(dwarf_decode_macros): Adjust.
|
||
(cu_debug_loc_section): Adjust.
|
||
(fill_in_loclist_baton): Adjust.
|
||
(dwarf2_symbol_mark_computed): Adjust.
|
||
(init_one_comp_unit): Don't assign
|
||
dwarf2_cu::dwarf2_per_objfile.
|
||
(set_die_type): Adjust.
|
||
|
||
2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
|
||
|
||
* dwarf2read.c (struct mapped_debug_names): Add constructor.
|
||
<dwarf2_per_objfile>: New field.
|
||
(dwarf2_per_objfile): Remove global.
|
||
(get_dwarf2_per_objfile): New function.
|
||
(set_dwarf2_per_objfile): New function.
|
||
(dwarf2_build_psymtabs_hard): Change objfile parameter to
|
||
dwarf2_per_objfile.
|
||
(abbrev_table_read_table): Add dwarf2_per_objfile parameter.
|
||
(read_abbrev_offset): Likewise.
|
||
(read_indirect_string): Likewise.
|
||
(read_indirect_line_string): Likewise.
|
||
(read_indirect_string_at_offset): Likewise.
|
||
(read_indirect_string_from_dwz): Likewise.
|
||
(dwarf2_find_containing_comp_unit): Change objfile parameter to
|
||
dwarf2_per_objfile.
|
||
(age_cached_comp_units): Add dwarf2_per_objfile parameter.
|
||
(create_all_comp_units): Change objfile parameter to
|
||
dwarf2_per_objfile.
|
||
(create_all_type_units): Likewise.
|
||
(process_queue): Add dwarf2_per_objfile parameter.
|
||
(read_and_check_comp_unit_head): Likewise.
|
||
(lookup_dwo_unit_in_dwp): Likewise.
|
||
(get_dwp_file): Likewise.
|
||
(process_cu_includes): Likewise.
|
||
(struct free_dwo_file_cleanup_data): New struct.
|
||
(dwarf2_has_info): Use get_dwarf2_per_objfile and
|
||
set_dwarf2_per_objfile.
|
||
(dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter.
|
||
(dw2_do_instantiate_symtab): Get dwarf2_per_objfile from
|
||
context, adjust calls.
|
||
(dw2_instantiate_symtab): Likewise.
|
||
(dw2_get_cutu): Add dwarf2_per_objfile parameter.
|
||
(dw2_get_cu): Likewise.
|
||
(create_cu_from_index_list): Change objfile parameter to
|
||
dwarf2_per_objfile.
|
||
(create_cus_from_index_list): Get dwarf2_per_objfile from
|
||
context, adjust calls.
|
||
(create_cus_from_index): Likewise.
|
||
(create_signatured_type_table_from_index): Change objfile
|
||
parameter to dwarf2_per_objfile.
|
||
(create_signatured_type_table_from_debug_names): Change objfile
|
||
parameter to dwarf2_per_objfile.
|
||
(create_addrmap_from_index): Likewise.
|
||
(create_addrmap_from_aranges): Likewise.
|
||
(dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls.
|
||
(dw2_setup): Remove.
|
||
(dw2_get_file_names_reader): Get dwarf2_per_objfile from
|
||
context.
|
||
(dw2_find_last_source_symtab): Get dwarf2_per_objfile using
|
||
get_dwarf2_per_objfile.
|
||
(dw2_forget_cached_source_info): Likewise.
|
||
(dw2_map_symtabs_matching_filename): Likewise.
|
||
(struct dw2_symtab_iterator) <index>: Remove.
|
||
<dwarf2_per_objfile>: New field.
|
||
(dw2_symtab_iter_init): Replace index parameter with
|
||
dwarf2_per_objfile.
|
||
(dw2_symtab_iter_next): Use dwarf2_per_objfile from iter.
|
||
(dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust.
|
||
(dw2_print_stats): Likewise.
|
||
(dw2_dump): Likewise.
|
||
(dw2_expand_symtabs_for_function): Likewise.
|
||
(dw2_expand_all_symtabs): Likewise.
|
||
(dw2_expand_symtabs_with_fullname): Likewise.
|
||
(dw2_expand_marked_cus): Replace index and objfile parameters
|
||
with dwarf2_per_objfile.
|
||
(dw_expand_symtabs_matching_file_matcher): Add
|
||
dwarf2_per_objfile parameter and adjust calls.
|
||
(dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and
|
||
adjust calls.
|
||
(dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup.
|
||
(dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and
|
||
adjust calls.
|
||
(create_cus_from_debug_names_list): Replace objfile parameter
|
||
with dwarf2_per_objfile and adjust calls.
|
||
(create_cus_from_debug_names): Likewise.
|
||
(dwarf2_read_debug_names): Likewise.
|
||
(mapped_debug_names::namei_to_name): Adjust call.
|
||
(dw2_debug_names_iterator::next): Likewise.
|
||
(dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
|
||
(dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile.
|
||
(dw2_debug_names_dump): Likewise.
|
||
(dw2_debug_names_expand_symtabs_for_function): Likewise.
|
||
(dw2_debug_names_expand_symtabs_matching): Likewise.
|
||
(dwarf2_initialize_objfile): Likewise.
|
||
(dwarf2_build_psymtabs): Likewise.
|
||
(get_abbrev_section_for_cu): Get dwarf2_per_objfile from
|
||
this_cu.
|
||
(error_check_comp_unit_head): Add dwarf2_per_objfile parameter.
|
||
(read_and_check_comp_unit_head): Likewise.
|
||
(read_abbrev_offset): Likewise.
|
||
(create_debug_type_hash_table): Likewise.
|
||
(create_debug_types_hash_table): Likewise.
|
||
(create_all_type_units): Replace objfile parameter with
|
||
dwarf2_per_objfile.
|
||
(add_type_unit): Add dwarf2_per_objfile parameter.
|
||
(fill_in_sig_entry_from_dwo_entry): Replace objfile parameter
|
||
with dwarf2_per_objfile.
|
||
(lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu.
|
||
(lookup_dwp_signatured_type): Likewise.
|
||
(lookup_signatured_type): Likewise.
|
||
(read_cutu_die_from_dwo): Likewise.
|
||
(init_tu_and_read_dwo_dies): Likewise.
|
||
(init_cutu_and_read_dies): Likewise.
|
||
(init_cutu_and_read_dies_no_follow): Likewise.
|
||
(allocate_type_unit_groups_table): Add objfile parameter.
|
||
(create_type_unit_group): Use dwarf2_per_objfile from cu.
|
||
(get_type_unit_group): Likewise.
|
||
(process_psymtab_comp_unit): Update call.
|
||
(build_type_psymtabs_reader): Use dwarf2_per_objfile from cu.
|
||
(build_type_psymtabs_1): Add dwarf2_per_objfile parameter.
|
||
(print_tu_stats): Likewise.
|
||
(build_type_psymtab_dependencies): Use dwarf2_per_objfile passed
|
||
in void* parameter.
|
||
(build_type_psymtabs): Change objfile parameter to
|
||
dwarf2_per_objfile.
|
||
(process_skeletonless_type_unit): Use dwarf2_per_objfile
|
||
passed in void* parameter.
|
||
(process_skeletonless_type_units): Change objfile parameter to
|
||
dwarf2_per_objfile.
|
||
(set_partial_user): Likewise.
|
||
(dwarf2_build_psymtabs_hard): Likewise.
|
||
(read_comp_units_from_section): Likewise.
|
||
(create_all_comp_units): Likewise.
|
||
(scan_partial_symbols): Update calls.
|
||
(add_partial_symbol): Likewise.
|
||
(dwarf2_read_symtab): Use get_dwarf2_per_objfile.
|
||
(maybe_queue_comp_unit): Use dwarf2_read_symtab from cu.
|
||
(process_queue): Add dwarf2_per_objfile parameter.
|
||
(get_compunit_symtab): Use dwarf2_per_objfile from cu.
|
||
(compute_compunit_symtab_includes): Likewise.
|
||
(process_cu_includes): Add dwarf2_per_objfile parameter.
|
||
(process_full_comp_unit): Use dwarf2_per_objfile from cu.
|
||
(process_full_type_unit): Likewise.
|
||
(process_imported_unit_die): Update call.
|
||
(handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu.
|
||
(read_file_scope): Likewise.
|
||
(allocate_dwo_file_hash_table): Add objfile parameter.
|
||
(lookup_dwo_file_slot): Add dwarf2_per_objfile parameter.
|
||
(create_cus_hash_table): Likewise.
|
||
(create_dwp_hash_table): Likewise.
|
||
(create_dwo_unit_in_dwp_v1): Likewise.
|
||
(create_dwp_v2_section): Likewise.
|
||
(create_dwo_unit_in_dwp_v2): Likewise.
|
||
(lookup_dwo_unit_in_dwp): Likewise.
|
||
(try_open_dwop_file): Likewise.
|
||
(open_dwo_file): Likewise. Use dwarf2_per_objfile from cu.
|
||
(open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update
|
||
cleanup to include a reference to dwarf2_per_objfile.
|
||
(open_dwp_file): Add dwarf2_per_objfile parameter.
|
||
(open_and_init_dwp_file): Likewise.
|
||
(get_dwp_file): Likewise.
|
||
(lookup_dwo_cutu): Use dwarf2_per_objfile from cu.
|
||
(queue_and_load_all_dwo_tus): Update call.
|
||
(free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup
|
||
data.
|
||
(dwarf2_rnglists_process): Use dwarf2_per_objfile from cu.
|
||
(dwarf2_ranges_process): Likewise.
|
||
(dwarf2_get_pc_bounds): Likewise.
|
||
(mark_common_block_symbol_computed): Likewise.
|
||
(abbrev_table_read_table): Add dwarf2_per_objfile parameter.
|
||
(dwarf2_read_abbrevs): Update call.
|
||
(read_partial_die): Use dwarf2_per_objfile from cu.
|
||
(find_partial_die): Likewise.
|
||
(fixup_partial_die): Likewise.
|
||
(read_attribute_value): Likewise.
|
||
(read_indirect_string_at_offset_from): Add objfile parameter.
|
||
(read_indirect_string_at_offset): Add dwarf2_per_objfile
|
||
parameter.
|
||
(read_indirect_string_from_dwz): Add objfile parameter.
|
||
(read_indirect_string): Add objfile parameter.
|
||
(read_addr_index_1): Add dwarf2_per_objfile parameter.
|
||
(read_addr_index): Use dwarf2_per_objfile from cu.
|
||
(dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't
|
||
call dw2_setup.
|
||
(read_str_index): Use dwarf2_per_objfile from cu.
|
||
(get_debug_line_section): Likewise.
|
||
(read_formatted_entries): Add dwarf2_per_objfile parameter.
|
||
(dwarf_decode_line_header): Use dwarf2_per_objfile from cu.
|
||
(new_symbol_full): Use dwarf2_per_objfile from cu.
|
||
(build_error_marker_type): Likewise.
|
||
(lookup_die_type): Likewise.
|
||
(determine_prefix): Likewise.
|
||
(follow_die_offset): Likewise.
|
||
(dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile.
|
||
(dwarf2_fetch_constant_bytes): Don't call dw2_setup.
|
||
(dwarf2_fetch_die_type_sect_off): Likewise.
|
||
(dwarf2_get_die_type): Likewise.
|
||
(follow_die_sig_1): Use dwarf2_per_objfile from cu.
|
||
(get_signatured_type): Likewise.
|
||
(get_DW_AT_signature_type): Likewise.
|
||
(dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter.
|
||
(dwarf_decode_macros): Use dwarf2_per_objfile from cu.
|
||
(cu_debug_loc_section): Likewise.
|
||
(fill_in_loclist_baton): Likewise.
|
||
(dwarf2_symbol_mark_computed): Likewise.
|
||
(dwarf2_find_containing_comp_unit): Change objfile parameter to
|
||
dwarf2_per_objfile.
|
||
(free_cached_comp_units): Use dwarf2_per_objfile passed in void*
|
||
parameter.
|
||
(age_cached_comp_units): Add dwarf2_per_objfile parameter.
|
||
(free_one_cached_comp_unit): Use dwarf2_per_objfile from cu.
|
||
(dwarf2_free_objfile): Use get_dwarf2_per_objfile.
|
||
(set_die_type): Use dwarf2_free_objfile from cu.
|
||
(get_die_type_at_offset): Likewise.
|
||
(dwarf2_per_objfile_free): Don't assign global variable.
|
||
(debug_names) <constructor>: Add dwarf2_per_objfile
|
||
parameter, update m_debugstrlookup construction.
|
||
(debug_names::debug_str_lookup): Add dwarf2_per_objfile
|
||
parameter.
|
||
<m_dwarf2_per_objfile>: New field.
|
||
<lookup>: Use m_dwarf2_per_objfile.
|
||
(check_dwarf64_offsets): Add dwarf2_per_objfile parameter.
|
||
(psyms_seen_size): Likewise.
|
||
(write_gdbindex): Replace objfile parameter with
|
||
dwarf2_per_objfile.
|
||
(write_debug_names): Likewise.
|
||
(write_psymtabs_to_index): Likewise.
|
||
(save_gdb_index_command): Use get_dwarf2_per_objfile, update
|
||
calls.
|
||
|
||
2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
|
||
|
||
* dwarf2read.c (struct dwarf2_cu) <objfile>: Remove.
|
||
<dwarf2_per_objfile>: New field.
|
||
(struct dwarf2_per_cu_data) <objfile>: Remove.
|
||
<dwarf2_per_objfile>: New field.
|
||
(create_cu_from_index_list): Assign dwarf2_per_objfile instead
|
||
of objfile.
|
||
(create_signatured_type_table_from_index): Likewise.
|
||
(create_debug_type_hash_table): Likewise.
|
||
(fill_in_sig_entry_from_dwo_entry): Likewise.
|
||
(lookup_dwo_unit): Access objfile through dwarf2_per_objfile.
|
||
(create_type_unit_group): Assign dwarf2_per_objfile instead of
|
||
objfile.
|
||
(create_partial_symtab): Access objfile through
|
||
dwarf2_per_objfile.
|
||
(process_psymtab_comp_unit_reader): Likewise.
|
||
(read_comp_units_from_section): Likewise.
|
||
(scan_partial_symbols): Likewise.
|
||
(add_partial_symbol): Likewise.
|
||
(add_partial_subprogram): Likewise.
|
||
(peek_die_abbrev): Likewise.
|
||
(fixup_go_packaging): Likewise.
|
||
(process_full_comp_unit): Likewise.
|
||
(process_full_type_unit): Likewise.
|
||
(process_imported_unit_die): Likewise.
|
||
(dwarf2_compute_name): Likewise.
|
||
(dwarf2_physname): Likewise.
|
||
(read_import_statement): Likewise.
|
||
(create_cus_hash_table): Assign dwarf2_physname instead of
|
||
objfile.
|
||
(read_func_scope): Access objfile through dwarf2_per_objfile.
|
||
(read_lexical_block_scope): Likewise.
|
||
(read_call_site_scope): Likewise.
|
||
(read_variable): Likewise.
|
||
(dwarf2_rnglists_process): Likewise.
|
||
(dwarf2_ranges_process): Likewise.
|
||
(dwarf2_ranges_read): Likewise.
|
||
(dwarf2_record_block_ranges): Likewise.
|
||
(dwarf2_add_field): Likewise.
|
||
(dwarf2_add_member_fn): Likewise.
|
||
(read_structure_type): Likewise.
|
||
(process_structure_scope): Likewise.
|
||
(read_enumeration_type): Likewise.
|
||
(read_array_type): Likewise.
|
||
(read_common_block): Likewise.
|
||
(read_namespace_type): Likewise.
|
||
(read_namespace): Likewise.
|
||
(read_module_type): Likewise.
|
||
(read_tag_pointer_type): Likewise.
|
||
(read_tag_ptr_to_member_type): Likewise.
|
||
(read_tag_string_type): Likewise.
|
||
(read_subroutine_type): Likewise.
|
||
(read_typedef): Likewise.
|
||
(read_base_type): Likewise.
|
||
(attr_to_dynamic_prop): Likewise.
|
||
(read_subrange_type): Likewise.
|
||
(read_unspecified_type): Likewise.
|
||
(load_partial_dies): Likewise.
|
||
(read_partial_die): Likewise.
|
||
(find_partial_die): Likewise.
|
||
(guess_partial_die_structure_name): Likewise.
|
||
(fixup_partial_die): Likewise.
|
||
(read_attribute_value): Likewise.
|
||
(read_addr_index_from_leb128): Likewise.
|
||
(dwarf2_read_addr_index): Likewise.
|
||
(dwarf2_string_attr): Likewise.
|
||
(lnp_state_machine::check_line_address): Likewise.
|
||
(dwarf_decode_lines_1): Likewise.
|
||
(dwarf_decode_lines): Likewise.
|
||
(dwarf2_start_symtab): Likewise.
|
||
(var_decode_location): Likewise.
|
||
(new_symbol_full): Likewise.
|
||
(dwarf2_const_value_data): Likewise.
|
||
(dwarf2_const_value_attr): Likewise.
|
||
(dwarf2_const_value): Likewise.
|
||
(die_type): Likewise.
|
||
(die_containing_type): Likewise.
|
||
(lookup_die_type): Likewise.
|
||
(guess_full_die_structure_name): Likewise.
|
||
(anonymous_struct_prefix): Likewise.
|
||
(dwarf2_name): Likewise.
|
||
(follow_die_ref_or_sig): Likewise.
|
||
(follow_die_offset): Likewise.
|
||
(follow_die_ref): Likewise.
|
||
(dwarf2_fetch_die_loc_sect_off): Likewise.
|
||
(dwarf2_fetch_constant_bytes): Likewise.
|
||
(dwarf2_fetch_die_type_sect_off): Likewise.
|
||
(dwarf2_get_die_type): Likewise.
|
||
(follow_die_sig): Likewise.
|
||
(decode_locdesc): Likewise.
|
||
(dwarf2_per_cu_objfile): Likewise.
|
||
(dwarf2_per_cu_text_offset): Likewise.
|
||
(init_one_comp_unit): Assign dwarf2_per_objfile instead of
|
||
objfile.
|
||
(set_die_type): Access objfile through
|
||
dwarf2_per_objfile.
|
||
|
||
2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
|
||
|
||
* valprint.c (converted_character_d): Remove typedef.
|
||
(DEF_VEC_O (converted_character_d)): Remove.
|
||
(count_next_character): Use std::vector.
|
||
(print_converted_chars_to_obstack): Likewise.
|
||
(generic_printstr): Likewise.
|
||
|
||
2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
|
||
|
||
* xml-support.h (struct gdb_xml_value): Add constructor.
|
||
<value>: Change type to unique_xmalloc_ptr.
|
||
(gdb_xml_value_s): Remove typedef.
|
||
(DEF_VEC_O (gdb_xml_value_s)): Remove.
|
||
(gdb_xml_element_start_handler): Change parameter type to
|
||
std::vector.
|
||
(xml_find_attribute): Likewise.
|
||
* xml-support.c (xml_find_attribute): Change parameter type to
|
||
std::vector and adjust.
|
||
(gdb_xml_values_cleanup): Remove.
|
||
(gdb_xml_parser::start_element): Adjust to std::vector.
|
||
(xinclude_start_include): Change paraeter type to std::vector
|
||
and adjust.
|
||
* btrace.c (check_xml_btrace_version): Likewise.
|
||
(parse_xml_btrace_block): Likewise.
|
||
(parse_xml_btrace_pt_config_cpu): Likewise.
|
||
(parse_xml_btrace_pt): Likewise.
|
||
(parse_xml_btrace_conf_bts): Likewise.
|
||
(parse_xml_btrace_conf_pt): Likewise.
|
||
* memory-map.c (memory_map_start_memory): Likewise.
|
||
(memory_map_start_property): Likewise.
|
||
* osdata.c (osdata_start_osdata): Likewise.
|
||
(osdata_start_item): Likewise.
|
||
(osdata_start_column): Likewise.
|
||
* remote.c (start_thread): Likewise.
|
||
* solib-aix.c (library_list_start_library): Likewise.
|
||
(library_list_start_list): Likewise.
|
||
* solib-svr4.c (library_list_start_library): Likewise.
|
||
(svr4_library_list_start_list): Likewise.
|
||
* solib-target.c (library_list_start_segment): Likewise.
|
||
(library_list_start_section): Likewise.
|
||
(library_list_start_library): Likewise.
|
||
(library_list_start_list): Likewise.
|
||
* tracepoint.c (traceframe_info_start_memory): Likewise.
|
||
(traceframe_info_start_tvar): Likewise.
|
||
* xml-syscall.c (syscall_start_syscall): Likewise.
|
||
* xml-tdesc.c (tdesc_start_target): Likewise.
|
||
(tdesc_start_feature): Likewise.
|
||
(tdesc_start_reg): Likewise.
|
||
(tdesc_start_union): Likewise.
|
||
(tdesc_start_struct): Likewise.
|
||
(tdesc_start_flags): Likewise.
|
||
(tdesc_start_enum): Likewise.
|
||
(tdesc_start_field): Likewise.
|
||
(tdesc_start_enum_value): Likewise.
|
||
(tdesc_start_vector): Likewise.
|
||
|
||
2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
|
||
|
||
* extension.h (struct xmethod_worker) <clone>: Remove.
|
||
* python/py-xmethods.c (struct python_xmethod_worker) <clone>:
|
||
Remove.
|
||
(python_xmethod_worker::clone): Remove.
|
||
* valops.c (find_overload_match): Use std::move instead of
|
||
clone.
|
||
|
||
2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
|
||
|
||
* extension-priv.h (enum ext_lang_rc): Remove, move to extension.h.
|
||
(struct extension_language_ops) <clone_xmethod_worker_data>: Remove.
|
||
<free_xmethod_worker_data>: Remove.
|
||
<get_matching_xmethod_workers>: Chance VEC to std::vector.
|
||
<get_xmethod_arg_types>: Remove.
|
||
<get_xmethod_result_type>: Remove.
|
||
<invoke_xmethod>: Remove.
|
||
* extension.c (new_xmethod_worker): Remove.
|
||
(clone_xmethod_worker): Remove.
|
||
(get_matching_xmethod_workers): Return void, pass std::vector by
|
||
pointer.
|
||
(get_xmethod_arg_types): Rename to...
|
||
(xmethod_worker::get_arg_types): ... this, and adjust.
|
||
(get_xmethod_result_type): Rename to...
|
||
(xmethod_worker::get_result_type): ... this, and adjust.
|
||
(invoke_xmethod): Remove.
|
||
(free_xmethod_worker): Remove.
|
||
(free_xmethod_worker_vec): Remove.
|
||
* extension.h (enum ext_lang_rc): Move here from
|
||
extension-priv.h.
|
||
(struct xmethod_worker): Add constructor and destructor.
|
||
<data>: Remove.
|
||
<value>: Remove.
|
||
<invoke, clone, do_get_result_type, do_get_arg_types>: New
|
||
virtual pure methods.
|
||
<get_arg_types, get_result_type>: New methods.
|
||
(xmethod_worker_ptr): Remove typedef.
|
||
(DEF_VEC_P (xmethod_worker_ptr)): Remove.
|
||
(xmethod_worker_vec): Remove typedef.
|
||
(xmethod_worker_up): New typedef.
|
||
(invoke_xmethod): Remove.
|
||
(clone_xmethod_worker): Remove.
|
||
(free_xmethod_worker): Remove.
|
||
(free_xmethod_worker_vec): Remove.
|
||
(get_xmethod_arg_types): Remove.
|
||
(get_xmethod_result_type): Remove.
|
||
* valops.c (find_method_list): Use std::vector, don't use
|
||
intermediate vector.
|
||
(value_find_oload_method_list): Use std::vector.
|
||
(find_overload_match): Use std::vector.
|
||
(find_oload_champ): Use std::vector.
|
||
* value.c (value_free): Use operator delete.
|
||
(value_of_xmethod): Rename to...
|
||
(value_from_xmethod): ... this. Don't assign
|
||
xmethod_worker::value, take rvalue-reference.
|
||
(result_type_of_xmethod): Adjust.
|
||
(call_xmethod): Adjust.
|
||
* value.h: Include extension.h.
|
||
(struct xmethod_worker): Don't forward-declare.
|
||
(value_of_xmethod): Rename to...
|
||
(value_from_xmethod): ... this, take rvalue-reference.
|
||
* python/py-xmethods.c (struct gdbpy_worker_data): Rename to...
|
||
(struct python_xmethod_worker): ... this, add constructor and
|
||
destructor.
|
||
<invoke, clone, do_get_arg_types, do_get_result_type>: Implement.
|
||
(gdbpy_free_xmethod_worker_data): Rename to...
|
||
(python_xmethod_worker::~python_xmethod_worker): ... this and
|
||
adjust.
|
||
(gdbpy_clone_xmethod_worker_data): Rename to...
|
||
(python_xmethod_worker::clone): ... this and adjust.
|
||
(gdbpy_get_matching_xmethod_workers): Use std::vector, don't use
|
||
temporary vector.
|
||
(gdbpy_get_xmethod_arg_types): Rename to...
|
||
(python_xmethod_worker::do_get_arg_types): ... this and adjust.
|
||
(gdbpy_get_xmethod_result_type): Rename to...
|
||
(python_xmethod_worker::do_get_result_type): ... this and
|
||
adjust.
|
||
(gdbpy_invoke_xmethod): Rename to...
|
||
(python_xmethod_worker::invoke): ... this and adjust.
|
||
(new_python_xmethod_worker): Rename to...
|
||
(python_xmethod_worker::python_xmethod_worker): ... this and
|
||
adjust.
|
||
* python/python-internal.h (gdbpy_clone_xmethod_worker_data):
|
||
Remove.
|
||
(gdbpy_free_xmethod_worker_data): Remove.
|
||
(gdbpy_get_matching_xmethod_workers): Use std::vector.
|
||
(gdbpy_get_xmethod_arg_types): Remove.
|
||
(gdbpy_get_xmethod_result_type): Remove.
|
||
(gdbpy_invoke_xmethod): Remove.
|
||
* python/python.c (python_extension_ops): Remove obsolete
|
||
callbacks.
|
||
|
||
2018-01-05 Pedro Alves <palves@redhat.com>
|
||
|
||
PR gdb/18653
|
||
* common/signals-state-save-restore.c
|
||
(save_original_signals_state): New parameter 'quiet'. Warn if we
|
||
find a custom handler preinstalled, instead of internal erroring.
|
||
But only warn if !quiet.
|
||
* common/signals-state-save-restore.h
|
||
(save_original_signals_state): New parameter 'quiet'.
|
||
* main.c (captured_main_1): Move save_original_signals_state call
|
||
after option handling, and pass QUIET.
|
||
|
||
2018-01-05 Pedro Alves <palves@redhat.com>
|
||
|
||
* spu-tdep.c (spu_catch_start): Pass
|
||
symbol_name_match_type::SEARCH_NAME to block_lookup_symbol.
|
||
|
||
2018-01-05 Pedro Alves <palves@redhat.com>
|
||
|
||
PR gdb/22670
|
||
* ada-lang.c (literal_symbol_name_matcher): New function.
|
||
(ada_get_symbol_name_matcher): Use it for
|
||
symbol_name_match_type::SEARCH_NAME.
|
||
* block.c (block_lookup_symbol): New parameter 'match_type'. Pass
|
||
it down instead of assuming symbol_name_match_type::FULL.
|
||
* block.h (block_lookup_symbol): New parameter 'match_type'.
|
||
* c-valprint.c (print_unpacked_pointer): Use
|
||
lookup_symbol_search_name instead of lookup_symbol.
|
||
* compile/compile-object-load.c (get_out_value_type): Pass down
|
||
symbol_name_match_type::SEARCH_NAME.
|
||
* cp-namespace.c (cp_basic_lookup_symbol): Pass down
|
||
symbol_name_match_type::FULL.
|
||
* cp-support.c (cp_get_symbol_name_matcher): Handle
|
||
symbol_name_match_type::SEARCH_NAME.
|
||
* infrun.c (insert_exception_resume_breakpoint): Use
|
||
lookup_symbol_search_name.
|
||
* p-valprint.c (pascal_val_print): Use lookup_symbol_search_name.
|
||
* psymtab.c (maintenance_check_psymtabs): Use
|
||
symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME.
|
||
* stack.c (print_frame_args): Use lookup_symbol_search_name and
|
||
SYMBOL_SEARCH_NAME.
|
||
* symtab.c (lookup_local_symbol): Don't demangle the lookup name
|
||
if symbol_name_match_type::SEARCH_NAME.
|
||
(lookup_symbol_in_language): Pass down
|
||
symbol_name_match_type::FULL.
|
||
(lookup_symbol_search_name): New.
|
||
(lookup_language_this): Pass down
|
||
symbol_name_match_type::SEARCH_NAME.
|
||
(lookup_symbol_aux, lookup_local_symbol): New parameter
|
||
'match_type'. Pass it down.
|
||
* symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator.
|
||
(lookup_symbol_search_name): New declaration.
|
||
(lookup_symbol_in_block): New 'match_type' parameter.
|
||
|
||
2018-01-05 Pedro Alves <palves@redhat.com>
|
||
|
||
PR gdb/22670
|
||
* ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of
|
||
ada_lookup_symbol.
|
||
(ada_lookup_symbol): Reimplement in terms of
|
||
ada_lookup_symbol_list, bits factored out from
|
||
ada_lookup_encoded_symbol.
|
||
|
||
2018-01-05 Joel Brobecker <brobecker@adacore.com>
|
||
|
||
* ada-exp.y (write_object_renaming): When subscripting an array
|
||
using a symbol as the index, pass the block in call to
|
||
ada_lookup_encoded_symbol when looking that symbol up.
|
||
|
||
2018-01-05 Jerome Guitton <guitton@adacore.com>
|
||
|
||
* ada-lang.c (ada_array_length): Use ada_index_type instead of
|
||
TYPE_INDEX_TYPE.
|
||
|
||
2018-01-05 Joel Brobecker <brobecker@adacore.com>
|
||
|
||
* ada-lang.c (ada_to_fixed_value_create): Add handling of
|
||
the case where VALUE_LVAL (val0) is not lval_memory.
|
||
|
||
2018-01-05 Xavier Roirand <roirand@adacore.com>
|
||
|
||
* ada-valprint.c (print_optional_low_bound): Handle
|
||
character-indexed array printing like boolean-indexed array
|
||
printing.
|
||
|
||
2018-01-05 Joel Brobecker <brobecker@adacore.com>
|
||
|
||
* NEWS: Create a new section for the next release branch.
|
||
Rename the section of the current branch, now that it has
|
||
been cut.
|
||
|
||
2018-01-05 Joel Brobecker <brobecker@adacore.com>
|
||
|
||
GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7):
|
||
* version.in: Bump version to 8.1.50.DATE-git.
|
||
|
||
2018-01-03 Xavier Roirand <roirand@adacore.com>
|
||
|
||
* ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>:
|
||
Add field.
|
||
* ada-lang.c (struct exception_support_info) <catch_handlers_sym>:
|
||
Add field.
|
||
(default_exception_support_info) <catch_handlers_sym>: Add field.
|
||
(exception_support_info_fallback) <catch_handlers_sym>: Add field.
|
||
(ada_exception_name_addr_1): Add "catch handlers" handling.
|
||
(ada_exception_catchpoint_cond_string) <ex>: New parameter.
|
||
Update all callers.
|
||
(create_excep_cond_exprs) <ex>: Add parameter.
|
||
(re_set_exception): Update create_excep_cond_exprs call.
|
||
(print_it_exception, print_one_exception, print_mention_exception)
|
||
(print_recreate_exception): Add "catch handler" handling.
|
||
(allocate_location_catch_handlers, re_set_catch_handlers)
|
||
(check_status_catch_handlers, print_it_catch_handlers)
|
||
(print_one_catch_handlers, print_mention_catch_handlers)
|
||
(print_recreate_catch_handlers): New function.
|
||
(catch_handlers_breakpoint_ops): New variable.
|
||
(catch_ada_exception_command_split) <is_catch_handlers_cmd>:
|
||
Add parameter. Add "catch handler" handling.
|
||
(ada_exception_sym_name, ada_exception_breakpoint_ops):
|
||
Add "catch handler" handling.
|
||
(ada_exception_catchpoint_cond_string): Add "catch handler"
|
||
handling.
|
||
(create_ada_exception_catchpoint): Update create_excep_cond_exprs
|
||
call.
|
||
(catch_ada_handlers_command): New function.
|
||
(initialize_ada_catchpoint_ops): Initialize "catch handlers"
|
||
operations structure.
|
||
(_initialize_ada_language): Add "catch handlers" command entry.
|
||
* NEWS: Document "catch handlers" feature.
|
||
|
||
2018-01-02 Joel Brobecker <brobecker@adacore.com>
|
||
|
||
* ada-lang.c (ada_value_slice_from_ptr): Take array stride into
|
||
account when creating the array type of the slice.
|
||
(ada_value_slice): Likewise.
|
||
|
||
2018-01-02 Joel Brobecker <brobecker@adacore.com>
|
||
|
||
* gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>:
|
||
New enum value.
|
||
(create_array_type_with_stride): Add byte_stride_prop parameter.
|
||
* gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>:
|
||
New parameter. Update all callers in this file.
|
||
(array_type_has_dynamic_stride): New function.
|
||
(is_dynamic_type_internal, resolve_dynamic_array): Add handling
|
||
of arrays with dynamic byte strides.
|
||
* dwarf2read.c (read_array_type): Add support for dynamic
|
||
DW_AT_byte_stride attributes.
|
||
|
||
2018-01-02 Joel Brobecker <brobecker@adacore.com>
|
||
|
||
* dwarf2read.c (read_unspecified_type): Treat
|
||
DW_TAG_enumeration_type DIEs from Ada units as stubs.
|
||
|
||
2018-01-01 Joel Brobecker <brobecker@adacore.com>
|
||
|
||
Update copyright year range in all GDB files.
|
||
|
||
2018-01-01 Joel Brobecker <brobecker@adacore.com>
|
||
|
||
* copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp
|
||
and gdb/testsuite/gdb.base/step-line.c.
|
||
|
||
2018-01-01 Joel Brobecker <brobecker@adacore.com>
|
||
|
||
* copyright.py (main): Dump the contents of
|
||
MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND,
|
||
even if BY_HAND is empty.
|
||
|
||
2018-01-01 Joel Brobecker <brobecker@adacore.com>
|
||
|
||
* top.c (print_gdb_version): Update Copyright year in version
|
||
message.
|
||
|
||
2018-01-01 Joel Brobecker <brobecker@adacore.com>
|
||
|
||
* config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017.
|
||
|
||
For older changes see ChangeLog-2017.
|
||
|
||
Local Variables:
|
||
mode: change-log
|
||
left-margin: 8
|
||
fill-column: 74
|
||
version-control: never
|
||
coding: utf-8
|
||
End:
|