1 2020-07-29 Tom de Vries <tdevries@suse.de>
4 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
6 2020-07-28 Tom Tromey <tromey@adacore.com>
9 * symtab.h (find_pc_partial_function_sym): Declare.
10 * cli/cli-cmds.c (disassemble_command): Use
11 find_pc_partial_function_sym. Check asm_demangle.
12 * blockframe.c (cache_pc_function_sym): New global.
13 (cache_pc_function_name): Remove.
14 (clear_pc_function_cache): Update.
15 (find_pc_partial_function_sym): New function, from
16 find_pc_partial_function.
17 (find_pc_partial_function): Rewrite using
18 find_pc_partial_function_sym.
20 2020-07-28 Tom Tromey <tromey@adacore.com>
22 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
25 2020-07-28 Tom Tromey <tromey@adacore.com>
27 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
28 <DW_OP_GNU_variable_value>: Cast to address type.
30 2020-07-28 Kamil Rytarowski <n54@gmx.com>
32 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
33 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
34 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
35 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
36 (nbsd_get_siginfo_type): New.
37 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
38 (_initialize_nbsd_tdep): New.
40 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
43 * configure: Regenerated.
45 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
48 * configure: Regenerated.
50 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
52 * python/py-frame.c: Remove 'user-regs.h' include.
53 (frapy_read_register): Rewrite to make use of
54 gdbpy_parse_register_id.
55 * python/py-registers.c (gdbpy_parse_register_id): New function,
56 moved here from python/py-unwind.c. Updated the return type, and
57 also accepts register descriptor objects.
58 * python/py-unwind.c: Remove 'user-regs.h' include.
59 (pyuw_parse_register_id): Moved to python/py-registers.c.
60 (unwind_infopy_add_saved_register): Update to use
61 gdbpy_parse_register_id.
62 (pending_framepy_read_register): Likewise.
63 * python/python-internal.h (gdbpy_parse_register_id): Declare.
65 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
67 * python/py-registers.c: Add 'user-regs.h' include.
68 (register_descriptor_iter_find): New function.
69 (register_descriptor_iterator_object_methods): New static global
71 (register_descriptor_iterator_object_type): Add pointer to methods
74 2020-07-27 John Baldwin <jhb@FreeBSD.org>
76 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
77 for all architectures on FreeBSD 11.3 and later.
79 2020-07-27 Tom Tromey <tromey@adacore.com>
81 * gcore.h (load_corefile): Don't declare.
83 2020-07-27 Tom de Vries <tdevries@suse.de>
85 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
86 * config.in: Regenerate.
87 * configure: Regenerate.
89 2020-07-26 Eli Zaretskii <eliz@gnu.org>
91 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
92 ws2tcpip.h. When checking whether socklen_t type is defined, use
93 ws2tcpip.h if it is available and sys/socket.h isn't.
94 * configure: Regenerate.
95 * config.in: Regenerate.
97 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
101 * valops.c (value_ind): Pass address to
102 readjust_indirect_value_type.
103 * value.c (readjust_indirect_value_type): Make parameter
104 non-const, and add extra address parameter. Resolve original type
106 * value.h (readjust_indirect_value_type): Update function
107 signature and comment.
109 2020-07-25 Tom de Vries <tdevries@suse.de>
112 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
115 2020-07-24 Aaron Merey <amerey@redhat.com>
117 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
118 * configure: Rebuild.
120 2020-07-23 Kevin Buettner <kevinb@redhat.com>
123 * corelow.c (_initialize_corelow): Add period to help text
124 for "maintenance print core-file-backed-mappings".
126 2020-07-23 Pedro Alves <pedro@palves.net>
128 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
129 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
131 * frame.c (frame_cache_generation, get_frame_cache_generation):
133 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
134 (get_prev_frame_if_no_cycle): On exception, don't touch
135 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
136 * frame.h (get_frame_cache_generation): Declare.
138 2020-07-23 Tom de Vries <tdevries@suse.de>
141 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
142 New default constructor.
144 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
146 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
147 exclude non-statement entries.
149 2020-07-22 Kevin Buettner <kevinb@redhat.com>
151 * NEWS (New commands): Mention new command
152 "maintenance print core-file-backed-mappings".
154 2020-07-22 Kevin Buettner <kevinb@redhat.com>
156 * corelow.c (gdbcmd.h): Include.
157 (core_target::info_proc_mappings): New method.
158 (get_current_core_target): New function.
159 (maintenance_print_core_file_backed_mappings): New function.
160 (_initialize_corelow): Add core-file-backed-mappings to
161 "maint print" commands.
163 2020-07-22 Kevin Buettner <kevinb@redhat.com>
165 * linux-tdep.c (dump_note_entry_p): New function.
166 (linux_dump_mapping_p_ftype): New typedef.
167 (linux_find_memory_regions_full): Add new parameter,
168 should_dump_mapping_p.
169 (linux_find_memory_regions): Adjust call to
170 linux_find_memory_regions_full.
171 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
172 call to linux_find_memory_regions_full.
174 2020-07-22 Kevin Buettner <kevinb@redhat.com>
176 * corelow.c (solist.h, unordered_map): Include.
177 (class core_target): Add field m_core_file_mappings and
178 method build_file_mappings.
179 (core_target::core_target): Call build_file_mappings.
180 (core_target::~core_target): Free memory associated with
181 m_core_file_mappings.
182 (core_target::build_file_mappings): New method.
183 (core_target::xfer_partial): Use m_core_file_mappings
184 for memory transfers.
185 * linux-tdep.c (linux_read_core_file_mappings): New
187 (linux_core_info_proc_mappings): Rewrite to use
188 linux_read_core_file_mappings.
189 (linux_init_abi): Register linux_read_core_file_mappings.
191 2020-07-22 Kevin Buettner <kevinb@redhat.com>
193 * arch-utils.c (default_read_core_file_mappings): New function.
194 * arch-utils.c (default_read_core_file_mappings): Declare.
195 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
196 * gdbarch.h, gdbarch.c: Regenerate.
198 2020-07-22 Kevin Buettner <kevinb@redhat.com>
201 * corelow.c (core_target:xfer_partial): Revise
202 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
203 case after first checking the stratum beneath the core
205 (has_all_memory): Return true.
206 * target.c (raw_memory_xfer_partial): Revise comment
207 regarding use of has_all_memory.
209 2020-07-22 Kevin Buettner <kevinb@redhat.com>
211 * exec.h (section_table_xfer_memory): Revise declaration,
212 replacing section name parameter with an optional callback
214 * exec.c (section_table_xfer_memory): Likewise.
215 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
216 of section_table_xfer_memory.
218 2020-07-22 Tom Tromey <tromey@adacore.com>
220 * mi/mi-cmd-stack.c (list_args_or_locals): Use
221 lookup_symbol_search_name.
223 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
225 * python/py-registers.c (gdbpy_register_object_data_init): Remove
226 redundant local variable.
227 (gdbpy_get_register_descriptor): Extract descriptor vector as a
228 reference, not pointer, update code accordingly.
230 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
231 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
233 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
234 * jit.c (jit_breakpoint_re_set_internal): Use the
235 `skip_jit_symbol_lookup` field.
237 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
238 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
240 * jit.c (jit_read_descriptor): Define the descriptor address once,
242 (jit_breakpoint_deleted): Move the declaration of the loop variable
243 `iter` into the loop header.
244 (jit_breakpoint_re_set_internal): Move the declaration of the local
245 variable `objf_data` to the first point of definition.
246 (jit_event_handler): Move the declaration of local variables
247 `code_entry`, `entry_addr`, and `objf` to their first point of use.
248 Rename `objf` to `jited`.
250 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
252 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
254 * jit.c (get_jiter_objfile_data): Update.
256 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
257 Simon Marchi <simon.marchi@polymtl.ca>
259 * jit.c (struct jit_program_space_data): Remove.
260 (jit_program_space_key): Remove.
261 (jiter_objfile_data::~jiter_objfile_data): Remove program space
263 (get_jit_program_space_data): Remove.
264 (jit_breakpoint_deleted): Iterate on all of the program space's
266 (jit_inferior_init): Likewise.
267 (jit_breakpoint_re_set_internal): Likewise. Also change return
269 (jit_breakpoint_re_set): Pass current_program_space to
270 jit_breakpoint_re_set_internal.
272 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
274 * jit.h (struct jiter_objfile_data) <cached_code_address,
275 jit_breakpoint>: Move to here from ...
276 * jit.c (jit_program_space_data): ... here.
277 (jiter_objfile_data::~jiter_objfile_data): Update.
278 (jit_breakpoint_deleted): Update.
279 (jit_breakpoint_re_set_internal): Update.
281 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
283 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
285 (jit_read_descriptor): Remove NULL check.
286 (jit_event_handler): Add an assertion.
288 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
290 * jit.h (struct jit_objfile_data): Split into...
291 (struct jiter_objfile_data): ... this ...
292 (struct jited_objfile_data): ... and this.
293 * objfiles.h (struct objfile) <jit_data>: Remove.
294 <jiter_data, jited_data>: New fields.
295 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
296 (jiter_objfile_data::~jiter_objfile_data): ... this.
297 (get_jit_objfile_data): Rename to ...
298 (get_jiter_objfile_data): ... this.
299 (add_objfile_entry): Update.
300 (jit_read_descriptor): Use get_jiter_objfile_data.
301 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
302 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
303 (jit_inferior_exit_hook): Use objfile's jited_data field.
305 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
307 * jit.h: Forward-declare `struct minimal_symbol`.
308 (struct jit_objfile_data): Migrate to here from jit.c; also add a
309 constructor, destructor, and an objfile* field.
310 * jit.c (jit_objfile_data): Remove.
311 (struct jit_objfile_data): Migrate from here to jit.h.
312 (jit_objfile_data::~jit_objfile_data): New destructor
313 implementation with code moved from free_objfile_data.
314 (free_objfile_data): Delete.
315 (get_jit_objfile_data): Update to use the jit_data field of objfile.
316 (jit_find_objf_with_entry_addr): Ditto.
317 (jit_inferior_exit_hook): Ditto.
318 (_initialize_jit): Remove the call to
319 register_objfile_data_with_cleanup.
320 * objfiles.h (struct objfile) <jit_data>: New field.
322 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
324 * jit.h: Forward-declare `struct objfile`.
325 (jit_event_handler): Add a second parameter, the JITer objfile.
326 * jit.c (jit_read_descriptor): Change the signature to take the
327 JITer objfile as an argument instead of the jit_program_space_data.
328 (jit_inferior_init): Update the call to jit_read_descriptor.
329 (jit_event_handler): Use the new JITer objfile argument when calling
331 * breakpoint.c (handle_jit_event): Update the call to
332 jit_event_handler to pass the JITer objfile.
334 2020-07-21 John Baldwin <jhb@FreeBSD.org>
336 * gdbarch.c: Regenerate.
337 * gdbarch.h: Regenerate.
338 * gdbarch.sh (handle_segmentation_fault): Remove method.
339 * infrun.c (handle_segmentation_fault): Remove.
340 (print_signal_received_reason): Remove call to
341 handle_segmentation_fault.
343 2020-07-21 John Baldwin <jhb@FreeBSD.org>
345 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
346 Rename to sparc64_linux_report_signal_info and add siggnal
348 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
349 instead of sparc64_linux_handle_segmentation_fault.
351 2020-07-21 John Baldwin <jhb@FreeBSD.org>
353 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
354 i386_linux_report_signal_info instead of
355 i386_linux_handle_segmentation_fault.
356 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
357 to i386_linux_report_signal_info and add siggnal argument.
358 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
359 of i386_linux_handle_segmentation_fault.
360 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
361 to i386_linux_report_signal_info and add siggnal argument.
363 2020-07-21 John Baldwin <jhb@FreeBSD.org>
365 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
368 2020-07-21 John Baldwin <jhb@FreeBSD.org>
370 * gdbarch.c: Regenerate.
371 * gdbarch.h: Regenerate.
372 * gdbarch.sh (report_signal_info): New method.
373 * infrun.c (print_signal_received_reason): Invoke gdbarch
374 report_signal_info hook if present.
376 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
378 * python/py-registers.c : Add 'unordered_map' include.
379 (gdbpy_new_reggroup): Renamed to...
380 (gdbpy_get_reggroup): ...this. Update to only create register
381 group descriptors when needed.
382 (gdbpy_reggroup_iter_next): Update.
384 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
386 * python/py-registers.c (gdbpy_register_object_data): New static
388 (gdbpy_register_object_data_init): New function.
389 (gdbpy_new_register_descriptor): Renamed to...
390 (gdbpy_get_register_descriptor): ...this, and update to reuse
391 existing register descriptors where possible.
392 (gdbpy_register_descriptor_iter_next): Update.
393 (gdbpy_initialize_registers): Register new gdbarch data.
395 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
397 * linux-nat.c (stopped_pids): Make static.
399 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
402 * gdbtypes.c (ada_discrete_type_low_bound,
403 ada_discrete_type_high_bound): Handle undefined bounds.
405 2020-07-21 Kamil Rytarowski <n54@gmx.com>
407 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
409 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
412 2020-07-20 John Baldwin <jhb@FreeBSD.org>
414 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
415 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
416 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
417 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
418 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
421 2020-07-20 Ludovic Courtès <ludo@gnu.org>
423 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
424 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
425 which are deprecated in Guile 3.0.
426 * configure.ac (try_guile_versions): Add "guile-3.0".
427 * configure (try_guile_versions): Regenerate.
428 * NEWS: Update entry.
430 2020-07-20 Ludovic Courtès <ludo@gnu.org>
431 Doug Evans <dje@google.com>
434 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
435 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
436 USING_GUILE_BEFORE_2_2.
437 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
438 Change type to 'scm_t_port_type *'.
439 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
440 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
441 parameter and honor it. Update callers.
442 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
443 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
445 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
446 USING_GUILE_BEFORE_2_2.
447 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
448 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
449 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
450 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
452 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
453 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
454 (gdbscm_memory_port_read, gdbscm_memory_port_write)
455 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
456 [!USING_GUILE_BEFORE_2_2]: New functions.
457 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
458 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
459 'gdbscm_memory_port_read'.
460 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
461 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
462 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
464 (ioscm_init_memory_port): Remove.
465 (ioscm_init_memory_port_stream): New function
466 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
468 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
469 Return scm_from_uint (0).
470 (gdbscm_set_memory_port_read_buffer_size_x)
471 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
472 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
473 Return scm_from_uint (0).
474 (gdbscm_set_memory_port_write_buffer_size_x)
475 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
476 * configure.ac (try_guile_versions): Add "guile-2.2".
477 * configure: Regenerate.
480 2020-07-18 Tom Tromey <tom@tromey.com>
482 * linux-nat.c (linux_multi_process): Remove.
483 (linux_nat_target::supports_multi_process): Return true.
485 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
487 * arch/riscv.c (riscv_tdesc_cache): Change map type.
488 (riscv_lookup_target_description): Return pointer out of
490 * target-descriptions.c (allocate_target_description): Add
492 (target_desc_deleter::operator()): Likewise.
493 * target-descriptions.h (struct target_desc_deleter): Moved to
495 (target_desc_up): Likewise.
497 2020-07-17 Tom Tromey <tromey@adacore.com>
499 * linux-nat.c (linux_nat_target::supports_non_stop)
500 (linux_nat_target::always_non_stop_p): Use "true".
501 (linux_nat_target::supports_disable_randomization): Use "true" and
504 2020-07-16 Caroline Tice <cmtice@google.com>
506 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
507 (RNGLIST_HEADER_SIZE64): New constant definition.
508 (struct dwop_section_names): Add rnglists_dwo.
509 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
510 (struct loclist_header): Rename to 'loclists_rnglists_header'.
511 (struct dwo_sections): Add rnglists field.
512 (read_attribut_reprocess): Add tag parameter.
513 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
514 (cu_debug_rnglists_section): New function (decl & definition).
515 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
516 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
517 die whose range is being checked; get rnglist section from
518 cu_debug_rnglists_section, to get from either objfile or dwo file as
519 appropriate. Add cases for DW_RLE_base_addressx,
520 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
521 the base address to DW_RLE_offset_pairs (not to all ranges), moving
522 test inside if-condition and updating complaint message.
523 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
524 dwarf2_rnglists_process.
525 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
526 dwarf2_ranges_process.
527 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
528 need_ranges_base and update comment appropriately. Also pass die tag
529 to dwarf2_ranges_read.
530 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
531 need_ranges_base and update comment appropriately. Also pass die tag
532 to dwarf2_ranges_process.
533 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
534 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
535 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
536 need_ranges_base and update comment appropriately. Also pass die tag
537 to read_attribute_reprocess and dwarf2_ranges_read.
538 (read_loclist_header): Rename function to read_loclists_rnglists_header,
539 and update function comment appropriately.
540 (read_loclist_index): Call read_loclists_rnglists_header instead of
542 (read_rnglist_index): New function.
543 (read_attribute_reprocess): Add tag parameter. Add code for
544 DW_FORM_rnglistx, passing tag to read_rnglist_index.
545 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
547 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
549 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
552 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
554 * arch-utils.c (show_architecture): Update formatting of messages.
556 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
558 * gdbtypes.h (struct type) <bounds>: Handle array and string
560 * ada-lang.c (assign_aggregate): Use type::bounds on
562 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
563 * c-varobj.c (c_number_of_children): Likewise.
564 (c_describe_child): Likewise.
565 * eval.c (evaluate_subexp_for_sizeof): Likewise.
566 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
567 (f_type_print_base): Likewise.
568 * f-valprint.c (f77_array_offset_tbl): Likewise.
569 (f77_get_upperbound): Likewise.
570 (f77_print_array_1): Likewise.
571 * guile/scm-type.c (gdbscm_type_range): Likewise.
572 * m2-typeprint.c (m2_array): Likewise.
573 (m2_is_long_set_of_type): Likewise.
574 * m2-valprint.c (get_long_set_bounds): Likewise.
575 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
576 * python/py-type.c (typy_range): Likewise.
577 * rust-lang.c (rust_internal_print_type): Likewise.
578 * type-stack.c (type_stack::follow_types): Likewise.
579 * valarith.c (value_subscripted_rvalue): Likewise.
580 * valops.c (value_cast): Likewise.
582 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
584 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
585 callers to use the equivalent accessor methods.
587 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
589 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
590 (struct type) <bit_stride>: New method.
591 (TYPE_BIT_STRIDE): Remove.
592 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
594 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
596 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
597 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
598 callers to use the equivalent accessor methods instead.
600 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
602 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
603 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
604 callers to use the equivalent accessor methods instead.
606 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
608 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
609 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
610 to use dynamic_prop::kind.
612 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
614 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
615 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
616 to get the bound property's kind and check against
619 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
621 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
622 all callers to use type::range_bounds followed by
623 dynamic_prop::{low,high}.
625 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
627 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
628 const_val, set_const_val, baton, set_locexpr, set_loclist,
629 set_addr_offset, variant_parts, set_variant_parts,
630 original_type, set_original_type>: New methods.
632 <m_kind>: ... this. Update all users to use the new methods
635 <m_data>: ... this. Update all users to use the new methods
638 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
640 * gdbtypes.c (get_discrete_bounds): Return failure if
641 the range type's bounds are not both defined and constant
643 (get_array_bounds): Update comment. Remove undefined bound check.
645 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
647 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
648 the type::bounds method directly.
650 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
652 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
653 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
654 are used to set the range type's bounds to use set_bounds.
656 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
658 * exec.c (_initialize_exec): Update exec-file-mismatch help.
660 2020-07-10 Pedro Alves <pedro@palves.net>
662 * gdbthread.h (inferior_ref): Define.
663 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
664 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
666 (scoped_restore_current_thread::restore):
667 Adjust to gdb::ref_ptr.
668 (scoped_restore_current_thread::~scoped_restore_current_thread):
669 Remove manual decref handling.
670 (scoped_restore_current_thread::scoped_restore_current_thread):
672 inferior_ref::new_reference/thread_info_ref::new_reference.
673 Incref the thread before calling get_frame_id instead of after.
674 Let TARGET_CLOSE_ERROR propagate.
676 2020-07-10 Pedro Alves <pedro@palves.net>
678 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
679 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
681 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
682 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
684 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
685 Pedro Alves <pedro@palves.net>
688 * infrun.c (threads_are_resumed_pending_p): Delete.
689 (do_target_wait): Remove threads_are_executing and
690 threads_are_resumed_pending_p checks from the inferior_matches
691 lambda. Update comments.
693 2020-07-10 Pedro Alves <pedro@palves.net>
696 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
699 2020-07-10 Pedro Alves <pedro@palves.net>
702 * infrun.c (handle_no_resumed): Handle multiple targets.
704 2020-07-10 Pedro Alves <pedro@palves.net>
707 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
710 2020-07-10 Pedro Alves <pedro@palves.net>
713 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
714 threads, not all threads.
716 2020-07-10 Pedro Alves <pedro@palves.net>
719 * remote.c (remote_target::open_1): Pass remote target pointer as
720 data to create_async_event_handler.
721 (remote_async_inferior_event_handler): Mark async event handler
722 before returning if the remote target still has either pending
723 events or unacknowledged notifications.
725 2020-07-10 John Baldwin <jhb@FreeBSD.org>
727 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
729 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
732 2020-07-09 John Baldwin <jhb@FreeBSD.org>
734 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
737 2020-07-09 John Baldwin <jhb@FreeBSD.org>
739 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
740 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
741 AT_FREEBSD_PS_STRINGS.
743 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
745 * auto-load.c (auto_load_objfile_script_1): Convert drive part
746 of debugfile path on Windows.
748 2020-07-08 John Baldwin <jhb@FreeBSD.org>
750 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
753 2020-07-08 Tom Tromey <tromey@adacore.com>
755 * ada-lang.c (ada_exception_message_1): Use read_memory.
757 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
760 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
761 special handling for inline frames.
762 * findvar.c (value_of_register_lazy): Skip inline frames when
763 creating lazy register values.
764 * frame.c (frame_id_computed_p): Delete definition.
765 * frame.h (frame_id_computed_p): Delete declaration.
767 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
769 * NEWS: Mention additions to Python API.
770 * python/py-arch.c (archpy_register_groups): New function.
771 (arch_object_methods): Add 'register_groups' method.
772 * python/py-registers.c (reggroup_iterator_object): New struct.
773 (reggroup_object): New struct.
774 (gdbpy_new_reggroup): New function.
775 (gdbpy_reggroup_to_string): New function.
776 (gdbpy_reggroup_name): New function.
777 (gdbpy_reggroup_iter): New function.
778 (gdbpy_reggroup_iter_next): New function.
779 (gdbpy_new_reggroup_iterator): New function
780 (gdbpy_initialize_registers): Register new types.
781 (reggroup_iterator_object_type): Define new Python type.
782 (gdbpy_reggroup_getset): New static global.
783 (reggroup_object_type): Define new Python type.
784 * python/python-internal.h
786 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
788 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
789 * python/py-arch.c (archpy_registers): New function.
790 (arch_object_methods): Add 'registers' method.
791 * python/py-registers.c: New file.
792 * python/python-internal.h
793 (gdbpy_new_register_descriptor_iterator): Declare.
794 (gdbpy_initialize_registers): Declare.
795 * python/python.c (do_start_initialization): Call
796 gdbpy_initialize_registers.
797 * NEWS: Mention additions to the Python API.
799 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
801 * NEWS: Mention new Python API method.
802 * python/py-unwind.c (pending_framepy_architecture): New function.
803 (pending_frame_object_methods): Add architecture method.
805 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
807 * gdbarch.c: Regenerate.
808 * gdbarch.h: Regenerate.
809 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
810 (gdbarch_data): Use internal_error for the case where
811 deprecated_set_gdbarch_data was originally needed.
812 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
813 and use passed in obstack.
814 (libunwind_frame_set_descr): Should no longer get back NULL from
816 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
818 * user-regs.c (user_regs_init): Update parameters, and use passed
820 (user_reg_add): Should no longer get back NULL from gdbarch_data.
821 (_initialize_user_regs): Register as a pre-init gdbarch data type.
823 2020-07-06 Tom de Vries <tdevries@suse.de>
825 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
826 End-Of-Sequence in lte_is_less_than.
827 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
828 "gdb: Don't reorder line table entries too much when sorting".
830 2020-07-06 Tom de Vries <tdevries@suse.de>
833 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
835 2020-07-05 Tom de Vries <tdevries@suse.de>
838 * inferior.h (struct infcall_suspend_state_deleter): If available, use
839 std::uncaught_exceptions instead of deprecated
840 std::uncaught_exception.
842 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
844 * macroexp.h (macro_stringify): Return
845 gdb::unique_xmalloc_ptr<char>.
846 * macroexp.c (macro_stringify): Likewise.
847 * macrotab.c (fixup_definition): Update.
849 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
851 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
852 (lex_one_token): Update.
853 * macroexp.c (struct macro_buffer) <release>: Return
854 gdb::unique_xmalloc_ptr<char>.
855 (macro_stringify): Update.
856 (macro_expand): Update.
857 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
858 * macroexp.h (macro_expand_next): Likewise.
860 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
862 * macroexp.h (macro_lookup_ftype): Remove.
863 (macro_expand, macro_expand_once, macro_expand_next): Remove
864 lookup function parameters, add scope parameter.
865 * macroexp.c (scan, substitute_args, expand, maybe_expand,
866 macro_expand, macro_expand_once, macro_expand_next): Likewise.
867 * macroscope.h (standard_macro_lookup): Change parameter type
869 * macroscope.c (standard_macro_lookup): Likewise.
870 * c-exp.y (lex_one_token): Update.
871 * macrocmd.c (macro_expand_command): Likewise.
872 (macro_expand_once_command): Likewise.
874 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
876 * inf-loop.c (inferior_event_handler): Remove client_data param.
877 * inf-loop.h (inferior_event_handler): Likewise.
878 * infcmd.c (step_1): Adjust.
879 * infrun.c (proceed): Adjust.
880 (fetch_inferior_event): Remove client_data param.
881 (infrun_async_inferior_event_handler): Adjust.
882 * infrun.h (fetch_inferior_event): Remove `void *` param.
883 * linux-nat.c (handle_target_event): Adjust.
884 * record-btrace.c (record_btrace_handle_async_inferior_event):
886 * record-full.c (record_full_async_inferior_event_handler):
888 * remote.c (remote_async_inferior_event_handler): Adjust.
890 2020-07-01 Tom Tromey <tom@tromey.com>
892 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
893 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
895 2020-07-01 Tom Tromey <tom@tromey.com>
897 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
899 (tui_win_info::make_window): Merge with
900 tui_gen_win_info::make_window.
901 (tui_win_info::make_visible): Move from tui_gen_win_info.
902 * tui/tui-win.c (tui_win_info::max_width): Move from
904 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
906 <window_factory>: Likewise.
907 * tui/tui-layout.c (tui_win_info::resize): Move from
909 (make_standard_window): Change return type.
910 (get_locator_window, tui_get_window_by_name): Likewise.
911 (tui_layout_window::apply): Remove a cast.
912 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
913 (struct tui_win_info): Merge with tui_gen_win_info.
914 (struct tui_gen_win_info): Remove.
916 2020-07-01 Tom Tromey <tom@tromey.com>
918 * tui/tui-stack.h (struct tui_locator_window): Derive from
920 <do_scroll_horizontal, do_scroll_vertical>: New methods.
921 <can_box>: New method.
923 2020-07-01 Tom Tromey <tom@tromey.com>
925 * tui/tui-stack.h (struct tui_locator_window): Remove body.
927 2020-07-01 Tom Tromey <tom@tromey.com>
929 * tui/tui-regs.c (tui_data_window::display_registers_from)
930 (tui_data_window::display_registers_from)
931 (tui_data_window::first_data_item_displayed)
932 (tui_data_window::delete_data_content_windows): Update.
933 (tui_data_window::refresh_window, tui_data_window::no_refresh):
935 (tui_data_window::check_register_values): Update.
936 (tui_data_item_window::rerender): Add parameters. Update.
937 (tui_data_item_window::refresh_window): Remove.
938 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
940 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
942 <refresh_window, max_height, min_height>: Remove.
943 <rerender>: Add parameters.
944 <x, y, visible>: New members.
945 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
946 <m_item_width>: New member.
948 2020-07-01 Tom Tromey <tom@tromey.com>
950 * tui/tui-regs.c (tui_data_window::show_register_group)
951 (tui_data_window::check_register_values): Update.
952 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
955 2020-07-01 Tom Tromey <tom@tromey.com>
957 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
960 2020-07-01 Tom Tromey <tom@tromey.com>
962 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
963 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
965 2020-07-01 Tom Tromey <tom@tromey.com>
967 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
968 * tui/tui-winsource.h (enum tui_line_or_address_kind)
969 (struct tui_line_or_address): Move from tui-data.h.
970 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
971 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
972 (tui_cmd_window, tui_source_window_base, tui_source_window)
973 (tui_disasm_window): Don't declare.
974 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
976 (SINGLE_KEY): Move to tui-stack.c.
978 2020-07-01 Tom Tromey <tom@tromey.com>
980 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
982 * tui/tui-regs.c (class tab_expansion_file): New.
983 (tab_expansion_file::write): New method.
984 (tui_register_format): Change return type. Use
986 (tui_get_register, tui_data_window::display_registers_from)
987 (tui_data_item_window::rerender): Update.
988 * tui/tui-io.h (tui_expand_tabs): Don't declare.
989 * tui/tui-io.c (tui_expand_tabs): Remove.
991 2020-07-01 Tom Tromey <tom@tromey.com>
993 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
995 2020-07-01 Fangrui Song <maskray@google.com>
997 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
999 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1001 * dwarf2/read.c (set_die_type): Removed conditions to restrict
1002 forms for DW_AT_associated and DW_AT_allocated attributes,
1003 which is already checked in function attr_to_dynamic_prop.
1005 2020-06-30 Tom Tromey <tromey@adacore.com>
1007 * dwarf2/read.c (quirk_rust_enum): Correctly call
1008 alloc_rust_variant for default-less enum.
1010 2020-06-30 Tom Tromey <tromey@adacore.com>
1013 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
1016 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
1018 * gdbarch.sh (displaced_step_copy_insn): Update doc.
1019 * gdbarch.h: Re-generate.
1021 2020-06-28 Tom Tromey <tom@tromey.com>
1023 * command.h (cmd_types): Remove.
1024 (cmd_type): Don't declare.
1025 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
1027 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
1028 * cli/cli-decode.c (cmd_type): Remove.
1030 2020-06-27 Pedro Alves <palves@redhat.com>
1032 * fork-child.c (prefork_hook): Adjust.
1033 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
1035 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
1036 * inferior.c (inferior::set_tty, inferior::tty): New methods.
1037 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
1038 Remove declarations.
1039 (struct inferior) <set_tty, tty>: New methods.
1040 (struct inferior) <terminal>: Rename to ...
1041 (struct inferior) <m_terminal>: ... this and make private.
1042 * main.c (captured_main_1): Adjust.
1043 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
1044 (mi_cmd_inferior_tty_show): Adjust.
1045 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
1046 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
1048 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
1050 * configure.ac: Add --enable-libctf: handle --disable-static
1052 * acinclude.m4: sinclude ../config/enable.m4.
1053 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
1054 (LIBCTF): Substitute in.
1055 (CTF_DEPS): New, likewise.
1056 (CLIBS): libctf needs symbols from libbfd: move earlier.
1057 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
1059 * ctfread.c: Surround in ENABLE_LIBCTF.
1060 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
1061 * configure: Regenerate.
1062 * config.in: Likewise.
1064 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
1066 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
1068 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
1070 * inferior.h (struct inferior) <terminal>: Change type to
1071 gdb::unique_xmalloc_ptr<char>.
1072 * inferior.c (inferior::~inferior): Don't free inf->terminal.
1073 * infcmd.c (set_inferior_io_terminal): Don't free terminal
1074 field, adjust to unique pointer.
1075 (get_inferior_io_terminal): Adjust to unique pointer.
1077 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1079 * riscv-tdep.c (riscv_print_registers_info): Loop over all
1080 registers, not just the known core set of registers.
1082 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1084 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
1085 fflags, frm, and fcsr registers.
1086 (riscv_register_reggroup_p): Remove unknown CSRs from save and
1088 (riscv_tdesc_unknown_reg): New function.
1089 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
1090 tdesc_use_registers.
1091 * riscv-tdep.h (struct gdbarch_tdep): Add
1092 unknown_csrs_first_regnum, unknown_csrs_count,
1093 duplicate_fflags_regnum, duplicate_frm_regnum, and
1094 duplicate_fcsr_regnum fields.
1096 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1098 * target-descriptions.c (tdesc_use_registers): Add new parameter a
1099 callback, use the callback (when not null) to help number unknown
1101 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
1102 (tdesc_use_registers): Add extra parameter to declaration.
1104 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1106 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
1108 (class riscv_pending_register_alias): Likewise.
1109 (riscv_register_feature::register_info): Change 'required_p' field
1110 to 'required', and change its type. Add 'check' member function.
1111 (riscv_register_feature::register_info::check): Define new member
1113 (riscv_xreg_feature): Change initialisation of 'required' field.
1114 (riscv_freg_feature): Likewise.
1115 (riscv_virtual_feature): Likewise.
1116 (riscv_csr_feature): Likewise.
1117 (riscv_check_tdesc_feature): Take extra parameter, the csr
1118 tdesc_feature, rewrite the function to use the new
1119 riscv_register_feature::register_info::check function.
1120 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
1122 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1124 * features/Makefile: Remove all references to the deleted files
1126 * features/riscv/32bit-csr.c: Deleted.
1127 * features/riscv/32bit-csr.xml: Deleted.
1128 * features/riscv/64bit-csr.c: Deleted.
1129 * features/riscv/64bit-csr.xml: Deleted.
1130 * features/riscv/rebuild-csr-xml.sh: Deleted.
1132 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1134 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
1135 whitespace error for declaration of names member variable.
1136 (struct riscv_register_feature): Add new prefer_first_name member
1137 variable, and fix whitespace error in declaration of registers.
1138 (riscv_xreg_feature): Initialize prefer_first_name field.
1139 (riscv_freg_feature): Likewise.
1140 (riscv_virtual_feature): Likewise.
1141 (riscv_csr_feature): Likewise.
1142 (riscv_register_name): Expand on comments. Remove register name
1143 modifications for CSR and virtual registers.
1145 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1147 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
1150 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1152 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
1154 (class riscv_pending_register_alias): New class.
1155 (riscv_check_tdesc_feature): Take vector of pending aliases and
1156 populate it as appropriate.
1157 (riscv_setup_register_aliases): Delete.
1158 (riscv_gdbarch_init): Create vector of pending aliases and pass it
1159 to riscv_check_tdesc_feature in all cases. Use the vector to
1160 create the register aliases.
1162 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1164 * sol2-tdep.c (sol2_static_transform_name): Remove.
1165 (sol2_init_abi): Don't register it.
1166 * gdbarch.sh (static_transform_name): Remove.
1167 * gdbarch.c, gdbarch.h: Regenerate.
1169 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
1170 gdbarch_static_transform_name.
1171 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
1172 * stabsread.c (define_symbol) <'X'>: Remove.
1173 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
1176 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
1177 <'S'>: Remove call to gdbarch_static_transform_name.
1179 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1181 * procfs.c (procfs_pre_trace): New function.
1182 (procfs_target::create_inferior): Pass it to fork_inferior.
1184 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1186 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
1187 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
1188 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
1189 sol2-tdep.o, sparc-sol2-tdep.o.
1190 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
1191 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
1192 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
1193 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
1195 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1197 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
1198 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
1200 Remove calls to set_gdbarch_skip_solib_resolver,
1201 set_gdbarch_core_pid_to_str.
1202 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
1203 (i386_sol2_static_transform_name): Remove.
1204 (i386_sol2_init_abi): Call sol2_init_abi.
1205 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1206 set_gdbarch_static_transform_name,
1207 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1208 Use sol2_sigtramp_p.
1209 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
1210 (sol2_sigtramp_p): New function.
1211 (sol2_static_transform_name): New function.
1212 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
1213 (sol2_init_abi): New function.
1214 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
1215 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
1216 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
1217 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
1218 (sparc_sol2_static_transform_name): Remove.
1219 (sparc32_sol2_init_abi): Call sol2_init_abi.
1220 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1221 set_gdbarch_static_transform_name,
1222 set_gdbarch_skip_solib_resolver,
1223 set_gdbarch_core_pid_to_str.
1224 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
1225 (sparc_sol2_static_transform_name): Remove
1226 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
1227 call sol2_sigtramp_p.
1228 (sparc64_sol2_init_abi): Call sol2_init_abi.
1229 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1230 set_gdbarch_static_transform_name,
1231 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1233 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1235 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
1236 * exec.c (validate_exec_file): If from_tty, set both
1237 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
1238 * symfile.c (symbol_file_add_with_addrs): if always_confirm
1239 and from_tty, unconditionally ask a confirmation.
1241 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1243 * target-descriptions.c (tdesc_architecture_name): Protect against
1244 NULL pointer dereference.
1245 (maint_print_xml_tdesc_cmd): New function.
1246 (_initialize_target_descriptions): Register new 'maint print
1247 xml-tdesc' command and give it the filename completer.
1248 * NEWS: Mention new 'maint print xml-tdesc' command.
1250 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1252 * target-descriptions.c (class tdesc_compatible_info): New class.
1253 (struct target_desc): Change type of compatible vector.
1254 (tdesc_compatible_p): Update for change in type of
1255 target_desc::compatible.
1256 (tdesc_compatible_info_list): New function.
1257 (tdesc_compatible_info_arch_name): New function.
1258 (tdesc_add_compatible): Update for change in type of
1259 target_desc::compatible.
1260 (print_c_tdesc::visit_pre): Likewise.
1262 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1264 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
1265 whitespace to underscore.
1266 (maint_print_c_tdesc_cmd): Use fake filename for target
1267 descriptions that came from the target.
1268 (_initialize_target_descriptions): Add filename command completion
1269 for 'maint print c-tdesc'.
1271 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
1273 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
1276 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
1278 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
1280 (dwarf2_find_location_expression): Likewise.
1281 (call_site_parameter_matches): Likewise.
1282 (dwarf2_compile_expr_to_ax): Likewise.
1283 (disassemble_dwarf_expression): Likewise.
1284 (loclist_describe_location): Likewise.
1286 2020-06-23 Pedro Alves <palves@redhat.com>
1288 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
1289 progspace-and-thread.h. Include scoped-mock-context.h instead.
1290 (register_to_value_test): Use scoped_mock_context.
1291 * regcache.c: Include "scoped-mock-context.h".
1292 (cooked_read_test): Don't error out if a target is already pushed.
1293 Use scoped_mock_context. Adjust.
1294 * scoped-mock-context.h: New file.
1296 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1298 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
1300 (ada_language::is_string_type_p): New member function.
1301 * c-lang.c (c_language_data): Delete la_is_string_type_p
1303 (cplus_language_data): Likewise.
1304 (asm_language_data): Likewise.
1305 (minimal_language_data): Likewise.
1306 * d-lang.c (d_language_data): Likewise.
1307 * f-lang.c (f_is_string_type_p): Delete function, implementation
1308 moved to f_language::is_string_type_p.
1309 (f_language_data): Delete la_is_string_type_p initializer.
1310 (f_language::is_string_type_p): New member function,
1311 implementation from f_is_string_type_p.
1312 * go-lang.c (go_is_string_type_p): Delete function, implementation
1313 moved to go_language::is_string_type_p.
1314 (go_language_data): Delete la_is_string_type_p initializer.
1315 (go_language::is_string_type_p): New member function,
1316 implementation from go_is_string_type_p.
1317 * language.c (language_defn::is_string_type_p): Define new member
1319 (default_is_string_type_p): Make static, add comment copied from
1321 (unknown_language_data): Delete la_is_string_type_p initializer.
1322 (unknown_language::is_string_type_p): New member function.
1323 (auto_language_data): Delete la_is_string_type_p initializer.
1324 (auto_language::is_string_type_p): New member function.
1325 * language.h (language_data): Delete la_is_string_type_p field.
1326 (language_defn::is_string_type_p): Declare new function.
1327 (default_is_string_type_p): Delete desclaration, move comment to
1329 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
1330 moved to m2_language::is_string_type_p.
1331 (m2_language_data): Delete la_is_string_type_p initializer.
1332 (m2_language::is_string_type_p): New member function,
1333 implementation from m2_is_string_type_p.
1334 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
1336 * opencl-lang.c (opencl_language_data): Likewise.
1337 * p-lang.c (pascal_is_string_type_p): Delete function,
1338 implementation moved to pascal_language::is_string_type_p.
1339 (pascal_language_data): Delete la_is_string_type_p initializer.
1340 (pascal_language::is_string_type_p): New member function,
1341 implementation from pascal_is_string_type_p.
1342 * rust-lang.c (rust_is_string_type_p): Delete function,
1343 implementation moved to rust_language::is_string_type_p.
1344 (rust_language_data): Delete la_is_string_type_p initializer.
1345 (rust_language::is_string_type_p): New member function,
1346 implementation from rust_is_string_type_p.
1347 * valprint.c (val_print_scalar_or_string_type_p): Update call to
1350 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1352 * ada-lang.c (ada_language_data): Delete la_print_typedef
1354 (ada_language::print_typedef): New member function.
1355 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
1356 (cplus_language_data): Likewise.
1357 (asm_language_data): Likewise.
1358 (minimal_language_data): Likewise.
1359 * d-lang.c (d_language_data): Likewise.
1360 * f-lang.c (f_language_data): Likewise.
1361 (f_language::print_typedef): New member function.
1362 * go-lang.c (go_language_data): Delete la_print_typedef
1364 * language.c (language_defn::print_typedef): Define member
1366 (unknown_language_data): Delete la_print_typedef initializer.
1367 (unknown_language::print_typedef): New member function.
1368 (auto_language_data): Delete la_print_typedef initializer.
1369 (auto_language::print_typedef): New member function.
1370 * language.h (language_data): Delete la_print_typedef field.
1371 (language_defn::print_typedef): Declare new member function.
1372 (LA_PRINT_TYPEDEF): Update call to print_typedef.
1373 (default_print_typedef): Delete declaration.
1374 * m2-lang.c (m2_language_data): Delete la_print_typedef
1376 (m2_language::print_typedef): New member function.
1377 * objc-lang.c (objc_language_data): Delete la_print_typedef
1379 * opencl-lang.c (opencl_language_data): Likewise.
1380 * p-lang.c (pascal_language_data): Likewise.
1381 (pascal_language::print_typedef): New member function.
1382 * rust-lang.c (rust_print_typedef): Delete function,
1383 implementation moved to rust_language::print_typedef.
1384 (rust_language): Delete la_print_typedef initializer.
1385 (rust_language::print_typedef): New member function,
1386 implementation from rust_print_typedef.
1387 * typeprint.c (default_print_typedef): Delete.
1389 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1391 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
1392 (ada_language::printstr): New member function.
1393 * c-lang.c (c_language_data): Delete la_printstr initializer.
1394 (cplus_language_data): Likewise.
1395 (asm_language_data): Likewise.
1396 (minimal_language_data): Likewise.
1397 * d-lang.c (d_language_data): Likewise.
1398 * f-lang.c (f_printstr): Rename to f_language::printstr.
1399 (f_language_data): Delete la_printstr initializer.
1400 (f_language::printstr): New member function, implementation from
1402 * go-lang.c (go_language_data): Delete la_printstr initializer.
1403 * language.c (language_defn::printstr): Define new member
1405 (unk_lang_printstr): Delete.
1406 (unknown_language_data): Delete la_printstr initializer.
1407 (unknown_language::printstr): New member function.
1408 (auto_language_data): Delete la_printstr initializer.
1409 (auto_language::printstr): New member function.
1410 * language.h (language_data): Delete la_printstr field.
1411 (language_defn::printstr): Declare new member function.
1412 (LA_PRINT_STRING): Update call to printstr.
1413 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
1414 (m2_language_data): Delete la_printstr initializer.
1415 (m2_language::printstr): New member function, implementation from
1417 * objc-lang.c (objc_language_data): Delete la_printstr
1419 * opencl-lang.c (opencl_language_data): Likewise.
1420 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
1421 (pascal_language_data): Delete la_printstr initializer.
1422 (pascal_language::printstr): New member function, implementation
1423 from pascal_printstr.
1424 * p-lang.h (pascal_printstr): Delete declaration.
1425 * rust-lang.c (rust_printstr): Update header comment.
1426 (rust_language_data): Delete la_printstr initializer.
1427 (rust_language::printstr): New member function.
1429 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1431 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
1432 (ada_language::printchar): New member function.
1433 * c-lang.c (c_language_data): Delete la_printchar initializer.
1434 (cplus_language_data): Likewise.
1435 (asm_language_data): Likewise.
1436 (minimal_language_data): Likewise.
1437 * d-lang.c (d_language_data): Likewise.
1438 * f-lang.c (f_printchar): Rename to f_language::printchar.
1439 (f_language_data): Delete la_printchar initializer.
1440 (f_language::printchar): New member function, implementation from
1442 * go-lang.c (go_language_data): Delete la_printchar initializer.
1443 * language.c (unk_lang_printchar): Delete.
1444 (language_defn::printchar): Define new member function.
1445 (unknown_language_data): Delete la_printchar initializer.
1446 (unknown_language::printchar): New member function.
1447 (auto_language_data): Delete la_printchar initializer.
1448 (auto_language::printchar): New member function.
1449 * language.h (language_data): Delete la_printchar field.
1450 (language_defn::printchar): Declare new member function.
1451 (LA_PRINT_CHAR): Update call to printchar.
1452 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
1453 (m2_language::printchar): New member function.
1454 * objc-lang.c (objc_language_data): Delete la_printchar
1456 * opencl-lang.c (opencl_language_data): Likewise.
1457 * p-lang.c (pascal_language_data): Delete la_printchar
1459 (pascal_language::printchar): New member function.
1460 * rust-lang.c (rust_printchar): Rename to
1461 rust_language::printchar.
1462 (rust_language_data): Delete la_printchar initializer.
1463 (rust_language::printchar): New member function, implementation
1464 from rust_printchar.
1466 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1468 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
1469 (ada_language_data): Delete la_emitchar initializer.
1470 (ada_language::emitchar): New member function, implementation from
1472 * c-lang.c (c_language_data): Delete la_emitchar initializer.
1473 (cplus_language_data): Likewise.
1474 (asm_language_data): Likewise.
1475 (minimal_language_data): Likewise.
1476 * d-lang.c (d_language_data): Likewise.
1477 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
1478 (f_language_data): Delete la_emitchar initializer.
1479 (f_language::emitchar): New member function, implementation from
1481 * go-lang.c (go_language_data): Delete la_emitchar initializer.
1482 * language.c (unk_lang_emit_char): Delete.
1483 (language_defn::emitchar): New member function definition.
1484 (unknown_language_data): Delete la_emitchar initializer.
1485 (unknown_language::emitchar): New member function.
1486 (auto_language_data): Delete la_emitchar initializer.
1487 (auto_language::emitchar): New member function.
1488 * language.h (language_data): Delete la_emitchar field.
1489 (language_defn::emitchar): New member field declaration.
1490 (LA_EMIT_CHAR): Update call to emitchar.
1491 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
1492 (m2_language_data): Delete la_emitchar initializer.
1493 (m2_language::emitchar): New member function, implementation from
1495 * objc-lang.c (objc_language_data): Delete la_emitchar
1497 * opencl-lang.c (opencl_language_data): Likewise.
1498 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
1499 (pascal_language_data): Delete la_emitchar initializer.
1500 (pascal_language::emitchar): New member function, implementation
1501 from pascal_emit_char.
1502 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
1503 (rust_language_data): Delete la_emitchar initializer.
1504 (rust_language::emitchar): New member function, implementation
1507 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1509 * ada-lang.c (resolve): Rename to ada_language::post_parser.
1510 (ada_language_data): Delete la_post_parser initializer.
1511 (ada_language::post_parser): New member function.
1512 * c-lang.c (c_language_data): Delete la_post_parser initializer.
1513 (cplus_language_data): Likewise.
1514 (asm_language_data): Likewise.
1515 (minimal_language_data): Likewise.
1516 * d-lang.c (d_language_data): Likewise.
1517 * f-lang.c (f_language_data): Likewise.
1518 * go-lang.c (go_language_data): Likewise.
1519 * language.c (unknown_language_data): Likewise.
1520 (auto_language_data): Likewise.
1521 * language.h (language_data): Delete la_post_parser field.
1522 (language_defn::post_parser): New member function.
1523 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
1524 * objc-lang.c (objc_language_data): Likewise.
1525 * opencl-lang.c (opencl_language_data): Likewise.
1526 * p-lang.c (pascal_language_data): Likewise.
1527 * parse.c (parse_exp_in_context): Update call to post_parser.
1528 (null_post_parser): Delete definition.
1529 * parser-defs.h (null_post_parser): Delete declaration.
1530 * rust-lang.c (rust_language_data): Delete la_post_parser
1533 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1535 * ada-lang.c (parse): Rename to ada_language::parser.
1536 (ada_language_data): Delete la_parser initializer.
1537 (ada_language::parser): New member function, implementation from
1539 * c-lang.c (c_language_data): Delete la_parser initializer.
1540 (cplus_language_data): Likewise.
1541 (asm_language_data): Likewise.
1542 (minimal_language_data): Likewise.
1543 * d-lang.c (d_language_data): Likewise.
1544 (d_language::parser): New member function.
1545 * f-lang.c (f_language_data): Delete la_parser initializer.
1546 (f_language::parser): New member function.
1547 * go-lang.c (go_language_data): Delete la_parser initializer.
1548 (go_language::parser): New member function.
1549 * language.c (unk_lang_parser): Delete.
1550 (language_defn::parser): Define new member function.
1551 (unknown_language_data): Delete la_parser initializer.
1552 (unknown_language::parser): New member function.
1553 (auto_language_data): Delete la_parser initializer.
1554 (auto_language::parser): New member function.
1555 * language.h (language_data): Delete la_parser field.
1556 (language_defn::parser): Declare new member function.
1557 * m2-lang.c (m2_language_data): Delete la_parser initializer.
1558 (m2_language::parser): New member function.
1559 * objc-lang.c (objc_language_data): Delete la_parser initializer.
1560 * opencl-lang.c (opencl_language_data): Likewise.
1561 * p-lang.c (pascal_language_data): Likewise.
1562 (pascal_language::parser): New member function.
1563 * parse.c (parse_exp_in_context): Update call to parser.
1564 * rust-lang.c (rust_language_data): Delete la_parser initializer.
1565 (rust_language::parser): New member function.
1567 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1569 * top.c (print_gdb_configuration): Print --with-python-libdir
1570 configuration value.
1572 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1574 * NEWS: Mention change to the alias command.
1576 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1578 * cli/cli-cmds.c (lookup_cmd_for_default_args)
1579 (alias_command_completer)
1580 (make_alias_options_def_group): New functions.
1581 (alias_opts, alias_option_defs): New struct and array.
1582 (alias_usage_error): Update usage.
1583 (alias_command): Handles optional DEFAULT-ARGS... arguments.
1584 Use option framework.
1585 (_initialize_cli_cmds): Update alias command help.
1586 Update aliases command help.
1588 Add NULL for new default_args lookup_cmd argument.
1589 (valid_command_p): Rename to validate_aliased_command.
1590 Add NULL for new default_args lookup_cmd argument. Verify that the
1591 aliased_command has no default args.
1592 * cli/cli-decode.c (help_cmd): Show aliases definitions.
1593 (lookup_cmd_1, lookup_cmd): New argument default_args.
1595 Add NULL for new default_args lookup_cmd argument.
1596 (print_help_for_command): Show default args under the layout
1597 alias some_alias = some_aliased_cmd some_alias_default_arg.
1598 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
1599 xfree default_args in destructor.
1600 * cli/cli-script.c (process_next_line, do_define_command):
1601 Add NULL for new default_args lookup_cmd argument.
1602 * command.h: Declare new default_args argument in lookup_cmd
1604 * completer.c (complete_line_internal_1):
1605 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1606 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
1607 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
1609 * infcmd.c (_initialize_infcmd): Likewise.
1610 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
1611 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
1612 * python/py-param.c (add_setshow_generic): Likewise.
1613 * remote.c (_initialize_remote): Likewise.
1614 * top.c (execute_command): Prepend default_args if command has some.
1616 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1617 * tracepoint.c (validate_actionline, encode_actions_1):
1618 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1620 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1622 * jit.c (jit_read_descriptor): Use bool as the return type.
1623 (jit_breakpoint_re_set_internal): Use bool as the return type.
1624 Invert the return value logic; return true if the jit breakpoint
1625 has been successfully initialized.
1626 (jit_inferior_init): Update the call to
1627 jit_breakpoint_re_set_internal.
1629 2020-06-22 Pedro Alves <palves@redhat.com>
1632 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
1633 Use the current inferior instead. Don't return
1634 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
1636 * sol-thread.c (sol_thread_target::wait): Don't reference
1638 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
1639 (sol_update_thread_list_callback): Use the current inferior's pid
1640 instead of inferior_ptid.
1642 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1644 * procfs.c: Cleanup many comments.
1646 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
1647 (AFTER_WATCHFLAG): Replace by value.
1649 (MAIN_PROC_NAME_FORMAT): Inline ...
1650 (create_procinfo): ... here.
1652 (procfs_debug_inferior): Remove SYS_exec handling.
1653 (syscall_is_exec): Likewise.
1654 (procfs_set_exec_trap): Likewise.
1656 (syscall_is_lwp_exit): Inline in callers.
1657 (syscall_is_exit): Likewise.
1658 (syscall_is_exec): Likewise.
1659 (syscall_is_lwp_create): Likewise.
1661 (invalidate_cache): Remove #if 0 code.
1663 (make_signal_thread_runnable): Remove.
1664 (procfs_target::resume): Remove #if 0 code.
1666 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1669 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
1671 (procfs_target::create_inferior): ... here.
1673 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1675 * exec.c (validate_exec_file): Ensure the build-id is up to
1676 date by calling reopen_exec_file (that checks file timestamp
1677 to decide to re-read the file).
1679 2020-06-18 Pedro Alves <palves@redhat.com>
1682 * gdbthread.h (delete_thread, delete_thread_silent)
1683 (find_thread_ptid): Update comments.
1684 * thread.c (current_thread_): New global.
1685 (is_current_thread): Move higher, and reimplement.
1686 (inferior_thread): Reimplement.
1687 (set_thread_exited): Use bool. Add assertions.
1688 (add_thread_silent): Simplify thread-reuse handling by always
1689 calling delete_thread.
1690 (delete_thread): Remove intro comment.
1691 (find_thread_ptid): Skip exited threads.
1692 (switch_to_thread_no_regs): Write to current_thread_.
1693 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
1694 INFERIOR_PTID. Clear current_thread_.
1696 2020-06-18 Pedro Alves <palves@redhat.com>
1698 * aix-thread.c (pd_update): Use switch_to_thread.
1700 2020-06-18 Pedro Alves <palves@redhat.com>
1702 * ravenscar-thread.c (ravenscar_thread_target): Update.
1703 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
1704 (ravenscar_thread_target::add_active_thread): ... this. Don't
1705 set m_base_ptid here. Update to avoid referencing inferior_ptid.
1706 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
1708 2020-06-18 Pedro Alves <palves@redhat.com>
1710 * nat/windows-nat.c (current_windows_thread): Remove.
1711 * nat/windows-nat.h (current_windows_thread): Remove.
1712 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
1714 (display_selectors): Adjust to fetch the current
1715 windows_thread_info based on inferior_ptid.
1716 (fake_create_process): No longer write to current_windows_thread.
1717 (windows_nat_target::get_windows_debug_event):
1718 Don't set inferior_ptid or current_windows_thread.
1719 (windows_nat_target::wait): Adjust to not rely on
1720 current_windows_thread.
1721 (do_initial_windows_stuff): Now a method of windows_nat_target.
1722 Switch to the last_ptid thread.
1723 (windows_nat_target::attach): Adjust.
1724 (windows_nat_target::detach): Use switch_to_no_thread instead of
1725 writing to inferior_ptid directly.
1726 (windows_nat_target::create_inferior): Adjust.
1728 2020-06-18 Pedro Alves <palves@redhat.com>
1730 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
1732 2020-06-18 Pedro Alves <palves@redhat.com>
1734 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
1735 after creating it, instead of writing to inferior_ptid. Don't
1736 write to inferior_ptid.
1738 2020-06-18 Pedro Alves <palves@redhat.com>
1740 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
1742 2020-06-18 Pedro Alves <palves@redhat.com>
1744 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
1745 it, instead of writing to inferior_ptid.
1747 2020-06-18 Pedro Alves <palves@redhat.com>
1749 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
1752 2020-06-18 Pedro Alves <palves@redhat.com>
1754 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
1755 instead of writing to inferior_ptid directly.
1757 2020-06-18 Pedro Alves <palves@redhat.com>
1759 * corelow.c (core_target::close): Use switch_to_no_thread instead
1760 of writing to inferior_ptid directly.
1761 (add_to_thread_list, core_target_open): Use switch_to_thread
1762 instead of writing to inferior_ptid directly.
1764 2020-06-18 Pedro Alves <palves@redhat.com>
1766 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
1768 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
1770 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
1771 inferior_ptid directly.
1772 (darwin_nat_target::init_thread_list): Switch to thread, instead
1773 of writing to inferior_ptid.
1774 (darwin_nat_target::attach): Don't write to inferior_ptid.
1775 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
1777 2020-06-18 Pedro Alves <palves@redhat.com>
1779 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
1781 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
1782 Instead use switch_to_thread.
1783 (gnu_nat_target::detach): Use switch_to_no_thread
1784 instead of writing to inferior_ptid directly. Used passed-in
1785 inferior instead of looking up the inferior by pid.
1787 2020-06-18 Pedro Alves <palves@redhat.com>
1789 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
1792 2020-06-18 Pedro Alves <palves@redhat.com>
1794 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
1796 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
1798 (nto_procfs_target::detach): Avoid referencing
1799 inferior_ptid. Use switch_to_no_thread instead of writing to
1800 inferior_ptid directly.
1801 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
1802 instead of writing to inferior_ptid directly.
1803 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
1806 2020-06-18 Pedro Alves <palves@redhat.com>
1808 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
1809 after creating it, instead of writing to inferior_ptid.
1810 (gdbsim_target_open): Use switch_to_no_thread instead of writing
1811 to inferior_ptid directly.
1812 (gdbsim_target::wait): Don't write to inferior_ptid.
1814 2020-06-18 Pedro Alves <palves@redhat.com>
1816 * remote.c (remote_target::remote_notice_new_inferior): Use
1817 switch_to_thread instead of writing to inferior_ptid directly.
1818 (remote_target::add_current_inferior_and_thread): Use
1819 switch_to_no_thread instead of writing to inferior_ptid directly.
1820 (extended_remote_target::attach): Use switch_to_inferior_no_thread
1821 and switch_to_thread instead of using set_current_inferior or
1822 writing to inferior_ptid directly.
1824 2020-06-18 Pedro Alves <palves@redhat.com>
1826 * tracectf.c (ctf_target_open): Switch to added thread instead of
1827 writing to inferior_ptid directly.
1828 (ctf_target::close): Use switch_to_no_thread instead of writing to
1829 inferior_ptid directly.
1831 2020-06-18 Pedro Alves <palves@redhat.com>
1833 * tracefile-tfile.c (tfile_target_open): Don't write to
1834 inferior_ptid directly, instead switch to added thread.
1835 (tfile_target::close): Use switch_to_no_thread instead of writing
1836 to inferior_ptid directly.
1838 2020-06-18 Pedro Alves <palves@redhat.com>
1840 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
1841 (procfs_target::detach): Use switch_to_no_thread
1842 instead of writing to inferior_ptid directly.
1843 (do_attach): Change return type to void. Switch to the added
1845 (procfs_target::create_inferior): Switch to the added thread.
1846 (procfs_do_thread_registers): Don't write to inferior_ptid.
1848 2020-06-18 Pedro Alves <palves@redhat.com>
1850 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
1851 of writing to inferior_ptid.
1852 (scoped_restore_exited_inferior): Delete.
1853 (handle_vfork_child_exec_or_exit): Simplify using
1854 scoped_restore_current_pspace_and_thread. Use switch_to_thread
1855 instead of writing to inferior_ptid.
1856 (THREAD_STOPPED_BY): Delete.
1857 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
1858 (thread_stopped_by_hw_breakpoint): Delete.
1859 (save_waitstatus): Use
1860 scoped_restore_current_thread+switch_to_thread, and call
1861 target_stopped_by_watchpoint instead of
1862 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
1863 instead of thread_stopped_by_sw_breakpoint, and
1864 target_stopped_by_hw_breakpoint instead of
1865 thread_stopped_by_hw_breakpoint.
1866 (handle_inferior_event)
1867 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
1868 inferior_ptid directly, nor
1869 set_current_inferior/set_current_program_space. Use
1870 switch_to_thread / switch_to_inferior_no_thread instead.
1872 2020-06-18 Pedro Alves <palves@redhat.com>
1874 * target.c (generic_mourn_inferior): Use switch_to_no_thread
1875 instead of writing to inferior_ptid.
1877 2020-06-18 Pedro Alves <palves@redhat.com>
1879 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
1881 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
1882 to the added thread.
1883 (inf_ptrace_target::detach_success): Use switch_to_no_thread
1884 instead of writing to inferior_ptid.
1886 2020-06-18 Pedro Alves <palves@redhat.com>
1888 * gdbarch-selftests.c: Include "progspace-and-thread.h".
1889 (register_to_value_test): Mock a program_space too. Heap-allocate
1890 the address space. Don't write to inferior_ptid. Use
1891 switch_to_thread instead.
1893 2020-06-18 Pedro Alves <palves@redhat.com>
1895 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
1897 (find_signalled_thread()): New, factored out from
1898 linux_make_corefile_notes and adjusted to handle exited threads.
1899 (linux_make_corefile_notes): Adjust to use the new
1900 find_signalled_thread.
1902 2020-06-18 Pedro Alves <palves@redhat.com>
1904 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
1905 of saving/restoring inferior_ptid.
1907 2020-06-17 Tom Tromey <tom@tromey.com>
1909 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
1910 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
1912 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
1914 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
1916 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
1919 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
1921 * regformats/reg-arm.dat: Remove.
1922 * regformats/reg-bfin.dat: Remove.
1923 * regformats/reg-cris.dat: Remove.
1924 * regformats/reg-crisv32.dat: Remove.
1925 * regformats/reg-m32r.dat: Remove.
1926 * regformats/reg-tilegx.dat: Remove.
1927 * regformats/reg-tilegx32.dat: Remove.
1929 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
1931 * features/Makefile (WHICH): Remove arm files.
1932 * regformats/arm/arm-with-iwmmxt.dat: Remove.
1933 * regformats/arm/arm-with-neon.dat: Remove.
1934 * regformats/arm/arm-with-vfpv2.dat: Remove.
1935 * regformats/arm/arm-with-vfpv3.dat: Remove.
1937 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
1939 * features/Makefile (XMLTOC): Remove rx.xml.
1941 2020-06-17 Pedro Alves <palves@redhat.com>
1943 * gdbthread.h (thread_control_state) <trap_expected> Update
1946 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1948 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
1949 ada_language::lookup_symbol_nonlocal.
1950 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
1951 (ada_language::lookup_symbol_nonlocal): New member function,
1952 implementation from ada_lookup_symbol_nonlocal.
1953 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
1955 (cplus_language_data): Delete la_lookup_symbol_nonlocal
1957 (cplus_language::lookup_symbol_nonlocal): New member function.
1958 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
1959 (minimal_language_data) Likewise.
1960 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
1961 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
1963 (d_language::lookup_symbol_nonlocal): New member function.
1964 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
1966 (f_language::lookup_symbol_nonlocal): New member function.
1967 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
1969 * language.c (unknown_language_data): Likewise.
1970 (auto_language_data): Likewise.
1971 * language.h (language_data): Delete la_lookup_symbol_nonlocal
1973 (language_defn::lookup_symbol_nonlocal): New member function.
1974 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
1976 * objc-lang.c (objc_language_data): Likewise.
1977 * opencl-lang.c (opencl_language_data): Likewise.
1978 * p-lang.c (pascal_language_data): Likewise.
1979 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
1980 rust_language::lookup_symbol_nonlocal.
1981 (rust_language_data): Delete la_lookup_symbol_nonlocal
1983 (rust_language::lookup_symbol_nonlocal): New member function,
1984 implementation from rust_lookup_symbol_nonlocal.
1985 * symtab.c (lookup_symbol_aux): Update call to
1986 lookup_symbol_nonlocal.
1987 (basic_lookup_symbol_nonlocal): Rename to...
1988 (language_defn::lookup_symbol_nonlocal): ...this, and update
1989 header comment. Remove language_defn parameter, and replace with
1991 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
1993 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1995 * ada-lang.c (ada_language_data): Delete la_value_print_inner
1997 (ada_language::value_print_inner): New member function.
1998 * c-lang.c (c_language_data): Delete la_value_print_inner
2000 (cplus_language_data): Likewise.
2001 (asm_language_data): Likewise.
2002 (minimal_language_data): Likewise.
2003 * d-lang.c (d_language_data): Likewise.
2004 (d_language::value_print_inner): New member function.
2005 * f-lang.c (f_language_data): Delete la_value_print_inner
2007 (f_language::value_print_inner): New member function.
2008 * f-lang.h (f_value_print_innner): Rename to...
2009 (f_value_print_inner): ...this (note spelling of 'inner').
2010 * f-valprint.c (f_value_print_innner): Rename to...
2011 (f_value_print_inner): ...this (note spelling of 'inner').
2012 * go-lang.c (go_language_data): Delete la_value_print_inner
2014 (go_language::value_print_inner): New member function.
2015 * language.c (language_defn::value_print_inner): Define new member
2017 (unk_lang_value_print_inner): Delete.
2018 (unknown_language_data): Delete la_value_print_inner initializer.
2019 (unknown_language::value_print_inner): New member function.
2020 (auto_language_data): Delete la_value_print_inner initializer.
2021 (auto_language::value_print_inner): New member function.
2022 * language.h (language_data): Delete la_value_print_inner field.
2023 (language_defn::value_print_inner): Delcare new member function.
2024 * m2-lang.c (m2_language_data): Delete la_value_print_inner
2026 (m2_language::value_print_inner): New member function.
2027 * objc-lang.c (objc_language_data): Delete la_value_print_inner
2029 * opencl-lang.c (opencl_language_data): Likewise.
2030 * p-lang.c (pascal_language_data): Likewise.
2031 (pascal_language::value_print_inner): New member function.
2032 * rust-lang.c (rust_language_data): Delete la_value_print_inner
2034 (rust_language::value_print_inner): New member function.
2035 * valprint.c (do_val_print): Update call to value_print_inner.
2037 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2039 * ada-lang.c (ada_language_data): Delete la_value_print
2041 (ada_language::value_print): New member function.
2042 * c-lang.c (c_language_data): Delete la_value_print initializer.
2043 (cplus_language_data): Likewise.
2044 (asm_language_data): Likewise.
2045 (minimal_language_data): Likewise.
2046 * d-lang.c (d_language_data): Likewise.
2047 * f-lang.c (f_language_data): Likewise.
2048 * go-lang.c (go_language_data): Likewise.
2049 * language.c (unk_lang_value_print): Delete.
2050 (language_defn::value_print): Define new member function.
2051 (unknown_language_data): Delete la_value_print initializer.
2052 (unknown_language::value_print): New member function.
2053 (auto_language_data): Delete la_value_print initializer.
2054 (auto_language::value_print): New member function.
2055 * language.h (language_data): Delete la_value_print field.
2056 (language_defn::value_print): Declare new member function.
2057 (LA_VALUE_PRINT): Update call to value_print.
2058 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
2059 * objc-lang.c (objc_language_data): Likewise.
2060 * opencl-lang.c (opencl_language_data): Likewise.
2061 * p-lang.c (pascal_language_data): Likewise.
2062 (pascal_language::value_print): New member function.
2063 * rust-lang.c (rust_language_data): Delete la_value_print
2066 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2068 * ada-lang.c (ada_watch_location_expression): Rename to
2069 ada_language::watch_location_expression.
2070 (ada_language_data): Delete la_watch_location_expression
2072 (ada_language::watch_location_expression): New member function,
2073 implementation from ada_watch_location_expression.
2074 * breakpoint.c (watch_command_1): Update call to
2075 watch_location_expression.
2076 * c-lang.c (c_watch_location_expression): Rename to
2077 language_defn::watch_location_expression.
2078 (c_language_data): Delete la_watch_location_expression
2080 (cplus_language_data): Likewise.
2081 (asm_language_data): Likewise.
2082 (minimal_language_data): Likewise.
2083 * c-lang.h (c_watch_location_expression): Delete declaration.
2084 * d-lang.c (d_language_data): Delete la_watch_location_expression
2086 * f-lang.c (f_language_data): Likewise.
2087 * go-lang.c (go_language_data): Likewise.
2088 * language.c (language_defn::watch_location_expression): Member
2089 function implementation from c_watch_location_expression.
2090 (unknown_language_data): Delete la_watch_location_expression
2092 (auto_language_data): Likewise.
2093 * language.h (language_data): Delete la_watch_location_expression
2095 (language_defn::watch_location_expression): Declare new member
2097 * m2-lang.c (m2_language_data): Delete
2098 la_watch_location_expression initializer.
2099 * objc-lang.c (objc_language_data): Likewise.
2100 * opencl-lang.c (opencl_language_data): Likewise.
2101 * p-lang.c (pascal_language_data): Likewise.
2102 * rust-lang.c (rust_watch_location_expression): Rename to
2103 rust_language::watch_location_expression.
2104 (rust_language_data): Delete la_watch_location_expression
2106 (rust_language::watch_location_expression): New member function,
2107 implementation from rust_watch_location_expression.
2109 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2111 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
2112 ada_language::collect_symbol_completion_matches.
2113 (ada_language_data): Delete la_collect_symbol_completion_matches
2115 (ada_language::collect_symbol_completion_matches): New member
2116 function, implementation from
2117 ada_collect_symbol_completion_matches.
2118 * c-lang.c (c_language_data): Delete
2119 la_collect_symbol_completion_matches initializer.
2120 (cplus_language_data): Likewise.
2121 (asm_language_data): Likewise.
2122 (minimal_language_data): Likewise.
2123 * d-lang.c (d_language_data): Likewise.
2124 * f-lang.c (f_collect_symbol_completion_matches): Rename to
2125 f_language::collect_symbol_completion_matches.
2126 (f_language_data): Delete la_collect_symbol_completion_matches
2128 (f_language::collect_symbol_completion_matches) New member
2129 function, implementation from f_collect_symbol_completion_matches.
2130 * go-lang.c (go_language_data): Delete
2131 la_collect_symbol_completion_matches initializer.
2132 * language.c (unknown_language_data): Likewise.
2133 (auto_language_data): Likewise.
2134 * language.h (language_data): Delete
2135 la_collect_symbol_completion_matches field.
2136 (language_defn::collect_symbol_completion_matches): New member
2138 * m2-lang.c (m2_language_data): Delete
2139 la_collect_symbol_completion_matches initializer.
2140 * objc-lang.c (objc_language_data): Likewise.
2141 * opencl-lang.c (opencl_language_data): Likewise.
2142 * p-lang.c (pascal_language_data): Likewise.
2143 * rust-lang.c (rust_language_data): Likewise.
2144 * symtab.c (default_collect_symbol_completion_matches): Delete.
2145 (collect_symbol_completion_matches): Update call to
2146 collect_symbol_completion_matches.
2147 (collect_symbol_completion_matches_type): Likewise.
2148 * symtab.h (default_collect_symbol_completion_matches): Delete
2151 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2153 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
2154 (ada_language_data): Delete la_word_break_characters initializer.
2155 (ada_language::word_break_characters): New member function.
2156 * c-lang.c (c_language_data): Delete la_word_break_characters
2158 (cplus_language_data): Likewise.
2159 (asm_language_data): Likewise.
2160 (minimal_language_data): Likewise.
2161 * completer.c: Update global comment.
2162 (advance_to_expression_complete_word_point): Update call to
2163 word_break_characters.
2164 (complete_files_symbols): Likewise.
2165 (complete_line_internal_1): Likewise.
2166 (default_completer_handle_brkchars): Likewise.
2167 (skip_quoted_chars): Likewise.
2168 * d-lang.c (d_language_data): Delete la_word_break_characters
2170 * f-lang.c (f_word_break_characters): Delete.
2171 (f_language_data): Delete la_word_break_characters initializer.
2172 (f_language::word_break_characters): New member function.
2173 * go-lang.c (go_language_data): Delete la_word_break_characters
2175 * language.c (unknown_language_data): Likewise.
2176 (auto_language_data): Likewise.
2177 * language.h (default_word_break_characters): Move declaration to
2178 earlier in the file.
2179 (language_data): Delete la_word_break_characters field.
2180 (language_defn::word_break_characters): New member function.
2181 * m2-lang.c (m2_language_data): Delete la_word_break_characters
2183 * objc-lang.c (objc_language_data): Likewise.
2184 * opencl-lang.c (opencl_language_data): Likewise.
2185 * p-lang.c (pascal_language_data): Likewise.
2186 * rust-lang.c (rust_language_data): Likewise.
2188 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2190 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
2191 (ada_language_data): Delete la_get_symbol_name_matcher
2193 (language_defn::get_symbol_name_matcher_inner): New member
2195 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
2197 (cplus_language_data): Likewise.
2198 (cplus_language::get_symbol_name_matcher_inner): New member
2200 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
2201 (minimal_language_data): Likewise.
2202 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
2203 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
2205 * dictionary.c (iter_match_first_hashed): Update call to
2206 get_symbol_name_matcher.
2207 (iter_match_next_hashed): Likewise.
2208 (iter_match_next_linear): Likewise.
2209 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
2210 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
2212 (f_language::get_symbol_name_matcher_inner): New member function.
2213 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
2215 * language.c (default_symbol_name_matcher): Update header comment,
2217 (language_defn::get_symbol_name_matcher): New definition.
2218 (language_defn::get_symbol_name_matcher_inner): Likewise.
2219 (get_symbol_name_matcher): Delete.
2220 (unknown_language_data): Delete la_get_symbol_name_matcher
2222 (auto_language_data): Likewise.
2223 * language.h (language_data): Delete la_get_symbol_name_matcher
2225 (language_defn::get_symbol_name_matcher): New member function.
2226 (language_defn::get_symbol_name_matcher_inner): Likewise.
2227 (default_symbol_name_matcher): Delete declaration.
2228 * linespec.c (find_methods): Update call to
2229 get_symbol_name_matcher.
2230 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
2232 * minsyms.c (lookup_minimal_symbol): Update call to
2233 get_symbol_name_matcher.
2234 (iterate_over_minimal_symbols): Likewise.
2235 * objc-lang.c (objc_language_data): Delete
2236 la_get_symbol_name_matcher initializer.
2237 * opencl-lang.c (opencl_language_data): Likewise.
2238 * p-lang.c (pascal_language_data): Likewise.
2239 * psymtab.c (psymbol_name_matches): Update call to
2240 get_symbol_name_matcher.
2241 * rust-lang.c (rust_language_data): Delete
2242 la_get_symbol_name_matcher initializer.
2243 * symtab.c (symbol_matches_search_name): Update call to
2244 get_symbol_name_matcher.
2245 (compare_symbol_name): Likewise.
2247 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2249 * ada-lang.c (ada_language_data): Delete la_compute_program
2251 * c-lang.c (c_language_data): Likewise.
2252 (c_language::compute_program): New member function.
2253 (cplus_language_data): Delete la_compute_program initializer.
2254 (cplus_language::compute_program): New member function.
2255 (asm_language_data): Delete la_compute_program initializer.
2256 (minimal_language_data): Likewise.
2257 * c-lang.h (c_compute_program): Update comment.
2258 (cplus_compute_program): Likewise.
2259 * compile/compile-c-support.c (c_compute_program): Likewise.
2260 (cplus_compute_program): Likewise.
2261 * compile/compile.c (compile_to_object): Update call to
2263 * d-lang.c (d_language_data): Delete la_compute_program
2265 * f-lang.c (f_language_data): Likewise.
2266 * go-lang.c (go_language_data): Likewise.
2267 * language.c (unknown_language_data): Likewise.
2268 (auto_language_data): Likewise.
2269 * language.h (language_data): Delete la_compute_program field.
2270 (language_defn::compute_program): New member function.
2271 * m2-lang.c (m2_language_data): Delete la_compute_program
2273 * objc-lang.c (objc_language_data): Likewise.
2274 * opencl-lang.c (opencl_language_data): Likewise.
2275 * p-lang.c (pascal_language_data): Likewise.
2276 * rust-lang.c (rust_language_data): Likewise.
2278 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2280 * ada-lang.c (ada_language_data) Delete
2281 la_class_name_from_physname initializer.
2282 * c-lang.c (c_language_data): Likewise.
2283 (cplus_language_data): Likewise.
2284 (cplus_language::class_name_from_physname): New member function.
2285 (asm_language_data): Delete la_class_name_from_physname
2287 (minimal_language_data): Likewise.
2288 * d-lang.c (d_language_data): Likewise.
2289 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
2290 method on language_defn class.
2291 (guess_full_die_structure_name): Likewise.
2292 * f-lang.c (f_language_data): Delete la_class_name_from_physname
2294 * go-lang.c (go_language_data): Likewise.
2295 * language.c (language_class_name_from_physname): Delete.
2296 (unk_lang_class_name): Delete.
2297 (unknown_language_data): Delete la_class_name_from_physname
2299 (auto_language_data): Likewise.
2300 * language.h (language_data): Delete la_class_name_from_physname
2302 (language_defn::class_name_from_physname): New function.
2303 (language_class_name_from_physname): Delete declaration.
2304 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
2306 * objc-lang.c (objc_language_data): Likewise.
2307 * opencl-lang.c (opencl_language_data): Likewise.
2308 * p-lang.c (pascal_language_data): Likewise.
2309 * rust-lang.c (rust_language_data): Likewise.
2311 2020-06-16 Tom Tromey <tom@tromey.com>
2313 * tui/tui-data.h (STATUS_NAME): New macro.
2314 * tui/tui-layout.c (tui_remove_some_windows)
2315 (initialize_known_windows, tui_register_window)
2316 (tui_layout_split::remove_windows, initialize_layouts)
2317 (tui_new_layout_command): Don't use hard-coded window names.
2319 2020-06-16 Tom Tromey <tom@tromey.com>
2322 * tui/tui.c (tui_ensure_readline_initialized): Rename from
2323 tui_initialize_readline. Only run once. Call rl_initialize.
2324 * tui/tui.h (tui_ensure_readline_initialized): Rename from
2325 tui_initialize_readline.
2326 * tui/tui-io.c (tui_setup_io): Call
2327 tui_ensure_readline_initialized.
2328 * tui/tui-interp.c (tui_interp::init): Update.
2330 2020-06-16 Tom Tromey <tom@tromey.com>
2332 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
2333 Also preserve the status window.
2335 2020-06-16 Tom Tromey <tom@tromey.com>
2337 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
2338 where m_window==nullptr.
2340 2020-06-15 Tom Tromey <tromey@adacore.com>
2342 * windows-nat.c (windows_nat::handle_output_debug_string):
2344 (windows_nat::handle_ms_vc_exception): Update.
2345 * target.h (target_read_string): Change API.
2346 * target.c (target_read_string): Change API.
2347 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
2349 * solib-frv.c (frv_current_sos): Update.
2350 * solib-dsbt.c (dsbt_current_sos): Update.
2351 * solib-darwin.c (darwin_current_sos): Update.
2352 * linux-thread-db.c (inferior_has_bug): Update.
2353 * expprint.c (print_subexp_standard): Update.
2354 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
2355 (ada_exception_message_1): Update.
2357 2020-06-15 Tom Tromey <tromey@adacore.com>
2359 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
2361 2020-06-15 Tom Tromey <tromey@adacore.com>
2363 * valprint.c (read_string): Update comment.
2364 * target.c (MIN): Remove.
2365 (target_read_string): Rewrite.
2367 2020-06-15 Tom Tromey <tromey@adacore.com>
2369 * corefile.c (read_memory_string): Remove.
2370 * ada-valprint.c (ada_value_print_ptr): Update.
2371 * ada-lang.h (ada_tag_name): Change return type.
2372 * ada-lang.c (type_from_tag): Update.
2373 (ada_tag_name_from_tsd): Change return type. Use
2375 (ada_tag_name): Likewise.
2376 * gdbcore.h (read_memory_string): Don't declare.
2378 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
2380 * symtab.c (rbreak_command): Ignore Windows drive colon.
2382 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
2384 * NEWS: Mention removed GDBserver host support.
2386 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
2388 * features/riscv/rebuild-csr-xml.sh: Updated.
2390 2020-06-11 Tom Tromey <tom@tromey.com>
2393 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
2395 2020-06-09 Jonny Grant <jg@jguk.org>
2396 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
2398 * main.c (captured_main_1): Don't print new line after help.
2399 (print_gdb_help): add mailing list and IRC channel information
2400 to --help. Add new lines between items in the footer. Remove
2401 quotes around bug url.
2403 2020-06-11 Keith Seitz <keiths@redhat.com>
2406 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
2407 Resolve typedefs for type length calculations.
2409 2020-06-10 Tom de Vries <tdevries@suse.de>
2412 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
2413 (write_psymbols): Enable .gdb_index for ada.
2414 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
2417 2020-06-10 Tom de Vries <tdevries@suse.de>
2419 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
2420 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
2421 namei" instead of "const char *name" argument.
2422 (dw2_map_matching_symbols): Use "offset_type namei" variant of
2423 dw2_symtab_iter_init.
2425 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2427 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
2428 to use type::field and field::type instead.
2430 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2432 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
2433 to use field::type instead.
2435 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2437 * gdbtypes.h (struct field) <type, set_type>: New methods.
2438 Rename `type` field to...
2439 <m_type>: ... this. Change references throughout to use type or
2441 (FIELD_TYPE): Use field::type. Change call sites that modify
2442 the field's type to use field::set_type instead.
2444 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2446 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
2447 to use type::index_type instead.
2449 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2451 * gdbtypes.h (struct type) <index_type, set_index_type>: New
2453 (TYPE_INDEX_TYPE): Use type::index_type.
2454 * gdbtypes.c (create_array_type_with_stride): Likewise.
2456 2020-06-07 Tom Tromey <tom@tromey.com>
2458 * valprint.c (generic_val_print_float): Remove "embedded_offset"
2460 (generic_value_print): Update.
2462 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2464 Revert commit 982a38f60b0.
2465 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
2467 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2469 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
2470 avoid use after free.
2472 2020-06-05 Tom de Vries <tdevries@suse.de>
2476 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
2478 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
2480 (dwarf2_read_debug_names): Likewise.
2481 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
2482 object when re-using a per_bfd object with an index.
2484 2020-06-03 Tom de Vries <tdevries@suse.de>
2487 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
2489 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
2492 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2494 * ada-lang.c (ada_language_data): Delete skip_trampoline
2496 * c-lang.c (c_language_data): Likewise.
2497 (cplus_language_data): Likewise.
2498 (cplus_language::skip_trampoline): New member function.
2499 (asm_language_data): Delete skip_trampoline initializer.
2500 (minimal_language_data): Likewise.
2501 * d-lang.c (d_language_data): Likewise.
2502 * f-lang.c (f_language_data): Likewise.
2503 * go-lang.c (go_language_data): Likewise.
2504 * language.c (unk_lang_trampoline): Delete function.
2505 (skip_language_trampoline): Update.
2506 (unknown_language_data): Delete skip_trampoline initializer.
2507 (auto_language_data): Likewise.
2508 * language.h (language_data): Delete skip_trampoline field.
2509 (language_defn::skip_trampoline): New function.
2510 * m2-lang.c (m2_language_data): Delete skip_trampoline
2512 * objc-lang.c (objc_skip_trampoline): Delete function, move
2513 implementation to objc_language::skip_trampoline.
2514 (objc_language_data): Delete skip_trampoline initializer.
2515 (objc_language::skip_trampoline): New member function with
2516 implementation from objc_skip_trampoline.
2517 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
2519 * p-lang.c (pascal_language_data): Likewise.
2520 * rust-lang.c (rust_language_data): Likewise.
2522 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2524 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
2525 (ada_language::demangle): New member function.
2526 * c-lang.c (c_language_data): Delete la_demangle initializer.
2527 (cplus_language_data): Delete la_demangle initializer.
2528 (cplus_language::demangle): New member function.
2529 (asm_language_data): Delete la_demangle initializer.
2530 (minimal_language_data): Delete la_demangle initializer.
2531 * d-lang.c (d_language_data): Delete la_demangle initializer.
2532 (d_language::demangle): New member function.
2533 * f-lang.c (f_language_data): Delete la_demangle initializer.
2534 (f_language::demangle): New member function.
2535 * go-lang.c (go_language_data): Delete la_demangle initializer.
2536 (go_language::demangle): New member function.
2537 * language.c (language_demangle): Update.
2538 (unk_lang_demangle): Delete.
2539 (unknown_language_data): Delete la_demangle initializer.
2540 (unknown_language::demangle): New member function.
2541 (auto_language_data): Delete la_demangle initializer.
2542 (auto_language::demangle): New member function.
2543 * language.h (language_data): Delete la_demangle field.
2544 (language_defn::demangle): New function.
2545 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
2546 * objc-lang.c (objc_language_data): Delete la_demangle
2548 (objc_language::demangle): New member function.
2549 * opencl-lang.c (opencl_language_data): Delete la_demangle
2551 * p-lang.c (pascal_language_data): Likewise.
2552 * rust-lang.c (rust_language_data): Likewise.
2553 (rust_language::demangle): New member function.
2555 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2557 * ada-lang.c (ada_language_data): Delete la_print_type
2559 (ada_language::print_type): New member function.
2560 * c-lang.c (c_language_data): Delete la_print_type initializer.
2561 (c_language::print_type): New member function.
2562 (cplus_language_data): Delete la_print_type initializer.
2563 (cplus_language::print_type): New member function.
2564 (asm_language_data): Delete la_print_type initializer.
2565 (asm_language::print_type): New member function.
2566 (minimal_language_data): Delete la_print_type initializer.
2567 (minimal_language::print_type): New member function.
2568 * d-lang.c (d_language_data): Delete la_print_type initializer.
2569 (d_language::print_type): New member function.
2570 * f-lang.c (f_language_data): Delete la_print_type initializer.
2571 (f_language::print_type): New member function.
2572 * go-lang.c (go_language_data): Delete la_print_type initializer.
2573 (go_language::print_type): New member function.
2574 * language.c (unk_lang_print_type): Delete.
2575 (unknown_language_data): Delete la_print_type initializer.
2576 (unknown_language::print_type): New member function.
2577 (auto_language_data): Delete la_print_type initializer.
2578 (auto_language::print_type): New member function.
2579 * language.h (language_data): Delete la_print_type field.
2580 (language_defn::print_type): New function.
2581 (LA_PRINT_TYPE): Update.
2582 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
2583 (m2_language::print_type): New member function.
2584 * objc-lang.c (objc_language_data): Delete la_print_type
2586 (objc_language::print_type): New member function.
2587 * opencl-lang.c (opencl_print_type): Delete, implementation moved
2588 to opencl_language::print_type.
2589 (opencl_language_data): Delete la_print_type initializer.
2590 (opencl_language::print_type): New member function, implementation
2591 from opencl_print_type.
2592 * p-lang.c (pascal_language_data): Delete la_print_type
2594 (pascal_language::print_type): New member function.
2595 * rust-lang.c (rust_print_type): Delete, implementation moved to
2596 rust_language::print_type.
2597 (rust_language_data): Delete la_print_type initializer.
2598 (rust_language::print_type): New member function, implementation
2599 from rust_print_type.
2601 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2603 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
2604 implementation moves to...
2605 (ada_language::sniff_from_mangled_name): ...here. Update return
2607 (ada_language_data): Delete la_sniff_from_mangled_name
2609 * c-lang.c (c_language_data): Likewise.
2610 (cplus_language_data): Likewise.
2611 (cplus_language::sniff_from_mangled_name): New member function,
2612 implementation taken from gdb_sniff_from_mangled_name.
2613 (asm_language_data): Delete la_sniff_from_mangled_name
2615 (minimal_language_data): Likewise.
2616 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
2617 implementation moves to cplus_language::sniff_from_mangled_name.
2618 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
2619 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
2621 (d_language::sniff_from_mangled_name): ...here.
2622 (d_language_data): Delete la_sniff_from_mangled_name initializer.
2623 * f-lang.c (f_language_data): Likewise.
2624 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
2626 (go_language::sniff_from_mangled_name): ...here.
2627 (go_language_data): Delete la_sniff_from_mangled_name initializer.
2628 * language.c (language_sniff_from_mangled_name): Delete.
2629 (unknown_language_data): Delete la_sniff_from_mangled_name
2631 (auto_language_data): Likewise.
2632 * language.h (language_data): Delete la_sniff_from_mangled_name
2634 (language_defn::sniff_from_mangled_name): New function.
2635 (language_sniff_from_mangled_name): Delete declaration.
2636 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
2638 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
2639 implementation moves to...
2640 (objc_language::sniff_from_mangled_name): ...here.
2641 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
2642 * opencl-lang.c (opencl_language_data): Likewise.
2643 * p-lang.c (pascal_language_data): Likewise.
2644 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
2645 implementation moves to...
2646 (rust_language::sniff_from_mangled_name): ...here.
2647 (rust_language_data): Delete la_sniff_from_mangled_name
2649 * symtab.c (symbol_find_demangled_name): Call
2650 sniff_from_mangled_name member function.
2652 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2654 * ada-lang.c (ada_language_data): Delete la_search_name_hash
2656 * c-lang.c (c_language_data): Likewise.
2657 (cplus_language_data): Likewise.
2658 (cplus_language::search_name_hash): New member function.
2659 (asm_language_data): Delete la_search_name_hash initializer.
2660 (minimal_language_data): Likewise.
2661 * d-lang.c (d_language_data): Likewise.
2662 * dictionary.c (default_search_name_hash): Rename to...
2663 (language_defn::search_name_hash): ...this.
2664 * f-lang.c (f_language_data): Likewise.
2665 (f_language::search_name_hash): New member function.
2666 * go-lang.c (go_language_data): Delete la_search_name_hash
2668 * language.c (unknown_language_data): Likewise.
2669 (auto_language_data): Likewise.
2670 * language.h (struct language_data): Delete la_search_name_hash
2672 (language_defn::search_name_hash): Declare new member function.
2673 (default_search_name_hash): Delete declaration.
2674 * m2-lang.c (m2_language_data): Delete la_search_name_hash
2676 * objc-lang.c (objc_language_data): Likewise.
2677 * opencl-lang.c (opencl_language_data): Likewise.
2678 * p-lang.c (pascal_language_data): Likewise.
2679 * rust-lang.c (rust_language_data): Likewise.
2680 * symtab.c (search_name_hash): Update call.
2682 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2684 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
2686 * c-lang.c (class compile_instance): Declare.
2687 (c_language_data): Delete la_get_compile_instance initializer.
2688 (c_language::get_compile_instance): New member function.
2689 (cplus_language_data): Delete la_get_compile_instance initializer.
2690 (cplus_language::get_compile_instance): New member function.
2691 (asm_language_data): Delete la_get_compile_instance initializer.
2692 (minimal_language_data): Likewise.
2693 * c-lang.h (c_get_compile_context): Update comment.
2694 (cplus_get_compile_context): Update comment.
2695 * compile/compile.c (compile_to_object): Update calls, don't rely
2696 on function pointer being NULL.
2697 * d-lang.c (d_language_data): Delete la_get_compile_instance
2699 * f-lang.c (f_language_data): Likewise.
2700 * go-lang.c (go_language_data): Likewise.
2701 * language.c (unknown_language_data): Likewise.
2702 (auto_language_data): Likewise.
2703 * language.h (language_data): Delete la_get_compile_instance field.
2704 (language_defn::get_compile_instance): New member function.
2705 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
2707 * objc-lang.c (objc_language_data): Likewise.
2708 * opencl-lang.c (opencl_language_data): Likewise.
2709 * p-lang.c (pascal_language_data): Likewise.
2710 * rust-lang.c (rust_language_data): Likewise.
2712 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2714 * ada-lang.c (ada_add_all_symbols): Update comment.
2715 (ada_iterate_over_symbols): Delete, move implementation to...
2716 (ada_language::iterate_over_symbols): ...here, a new member
2717 function, rewrite to use range based for loop.
2718 (ada_language_data): Delete la_iterate_over_symbols initializer.
2719 * c-lang.c (c_language_data): Likewise.
2720 (cplus_language_data): Likewise.
2721 (asm_language_data): Likewise.
2722 (minimal_language_data): Likewise.
2723 * d-lang.c (d_language_data): Likewise.
2724 * f-lang.c (f_language_data): Likewise.
2725 * go-lang.c (go_language_data): Likewise.
2726 * language.c (unknown_language_data): Likewise.
2727 (auto_language_data): Likewise.
2728 * language.h (language_data): Delete la_iterate_over_symbols field.
2729 (language_defn::iterate_over_symbols): New member function.
2730 (LA_ITERATE_OVER_SYMBOLS): Update.
2731 * linespec.c (iterate_over_all_matching_symtabs): Update.
2732 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
2734 * objc-lang.c (objc_language_data): Likewise.
2735 * opencl-lang.c (opencl_language_data): Likewise.
2736 * p-lang.c (pascal_language_data): Likewise.
2737 * rust-lang.c (rust_language_data): Likewise.
2739 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2741 * ada-lang.c (ada_language_data): Delete
2742 la_lookup_transparent_type initializer.
2743 * c-lang.c (c_language_data): Likewise.
2744 (cplus_language_data): Likewise.
2745 (cplus_language::lookup_transparent_type): New member function.
2746 (asm_language_data): Delete la_lookup_transparent_type
2748 (minimal_language_data): Likewise.
2749 * d-lang.c (d_language_data): Likewise.
2750 * f-lang.c (f_language_data): Likewise.
2751 * go-lang.c (go_language_data): Likewise.
2752 * language.c (unknown_language_data): Likewise.
2753 (auto_language_data): Likewise.
2754 * language.h (struct language_data): Delete
2755 la_lookup_transparent_type field.
2756 (language_defn::lookup_transparent_type): New member function.
2757 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
2759 * objc-lang.c (objc_language_data): Likewise.
2760 * opencl-lang.c (opencl_language_data): Likewise.
2761 * p-lang.c (pascal_language_data): Likewise.
2762 * rust-lang.c (rust_language_data): Likewise.
2763 * symtab.c (symbol_matches_domain): Update call.
2765 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2767 * ada-lang.c (ada_language_arch_info): Delete function, move
2768 implementation to...
2769 (ada_language::language_arch_info): ...here, a new member
2771 (ada_language_data): Delete la_language_arch_info.
2772 * c-lang.c (c_language_data): Likewise.
2773 (c_language::language_arch_info): New member function.
2774 (cplus_language_arch_info): Delete function, move
2775 implementation to...
2776 (cplus_language::language_arch_info): ...here, a new member
2778 (cplus_language_data): Delete la_language_arch_info.
2779 (asm_language_data): Likewise.
2780 (asm_language::language_arch_info): New member function.
2781 (minimal_language_data): Delete la_language_arch_info.
2782 (minimal_language::language_arch_info): New member function.
2783 * d-lang.c (d_language_arch_info): Delete function, move
2784 implementation to...
2785 (d_language::language_arch_info): ...here, a new member
2787 (d_language_data): Delete la_language_arch_info.
2788 * f-lang.c (f_language_arch_info): Delete function, move
2789 implementation to...
2790 (f_language::language_arch_info): ...here, a new member
2792 (f_language_data): Delete la_language_arch_info.
2793 * go-lang.c (go_language_arch_info): Delete function, move
2794 implementation to...
2795 (go_language::language_arch_info): ...here, a new member
2797 (go_language_data): Delete la_language_arch_info.
2798 * language.c (unknown_language_data): Likewise.
2799 (unknown_language::language_arch_info): New member function.
2800 (auto_language_data): Delete la_language_arch_info.
2801 (auto_language::language_arch_info): New member function.
2802 (language_gdbarch_post_init): Update call to
2803 la_language_arch_info.
2804 * language.h (language_data): Delete la_language_arch_info
2806 (language_defn::language_arch_info): New function.
2807 * m2-lang.c (m2_language_arch_info): Delete function, move
2808 implementation to...
2809 (m2_language::language_arch_info): ...here, a new member
2811 (m2_language_data): Delete la_language_arch_info.
2812 * objc-lang.c (objc_language_arch_info): Delete function, move
2813 implementation to...
2814 (objc_language::language_arch_info): ...here, a new member
2816 (objc_language_data): Delete la_language_arch_info.
2817 * opencl-lang.c (opencl_language_arch_info): Delete function, move
2818 implementation to...
2819 (opencl_language::language_arch_info): ...here, a new member
2821 (opencl_language_data): Delete la_language_arch_info.
2822 * p-lang.c (pascal_language_arch_info): Delete function, move
2823 implementation to...
2824 (pascal_language::language_arch_info): ...here, a new member
2826 (pascal_language_data): Delete la_language_arch_info.
2827 * rust-lang.c (rust_language_arch_info): Delete function, move
2828 implementation to...
2829 (rust_language::language_arch_info): ...here, a new member
2831 (rust_language_data): Delete la_language_arch_info.
2833 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2835 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
2837 * c-lang.c (c_language_data): Likewise.
2838 (cplus_language_data): Likewise.
2839 (cplus_language::pass_by_reference_info): New method.
2840 (asm_language_data): Delete la_pass_by_reference initializer.
2841 (minimal_language_data): Likewise.
2842 * cp-abi.c (cp_pass_by_reference): Remove use of
2843 default_pass_by_reference.
2844 * d-lang.c (d_language_data): Likewise.
2845 * f-lang.c (f_language_data): Likewise.
2846 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
2847 default_pass_by_reference.
2848 * go-lang.c (go_language_data): Likewise.
2849 * language.c (language_pass_by_reference): Update.
2850 (default_pass_by_reference): Delete.
2851 (unknown_language_data): Delete la_pass_by_reference
2853 (auto_language_data): Likewise.
2854 * language.h (struct language_data): Delete la_pass_by_reference
2856 (language_defn::pass_by_reference_info): New member function.
2857 (default_pass_by_reference): Delete declaration.
2858 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
2860 * objc-lang.c (objc_language_data): Likewise.
2861 * opencl-lang.c (opencl_language_data): Likewise.
2862 * p-lang.c (pascal_language_data): Likewise.
2863 * rust-lang.c (rust_language_data): Likewise.
2865 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2867 * ada-lang.c (ada_read_var_value): Delete function, move
2868 implementation to...
2869 (ada_language::read_var_value): ...here.
2870 (ada_language_data): Delete la_read_var_value initializer.
2871 * c-lang.c (c_language_data): Likewise.
2872 (cplus_language_data): Likewise.
2873 (minimal_language_data): Likewise.
2874 * d-lang.c (d_language_data): Likewise.
2875 * f-lang.c (f_language_data): Likewise.
2876 * findvar.c (default_read_var_value): Rename to...
2877 (language_defn::read_var_value): ...this.
2878 * findvar.c (read_var_value): Update header comment, and change to
2879 call member function instead of function pointer.
2880 * go-lang.c (go_language_data): Likewise.
2881 * language.c (unknown_language_data): Delete la_read_var_value
2883 (auto_language_data): Likewise.
2884 * language.h (struct language_data): Delete la_read_var_value
2886 (language_defn::read_var_value): New member function.
2887 (default_read_var_value): Delete declaration.
2888 * m2-lang.c (m2_language_data): Delete la_read_var_value
2890 * objc-lang.c (objc_language_data): Likewise.
2891 * opencl-lang.c (opencl_language_data): Likewise.
2892 * p-lang.c (pascal_language_data): Likewise.
2893 * rust-lang.c (rust_language_data): Likewise.
2894 * value.h (default_read_var_value): Delete declaration.
2896 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2898 * ada-lang.c (ada_print_array_index): Delete function, move
2899 implementation to...
2900 (ada_language::print_array_index): ...here.
2901 (ada_language_data): Delete la_print_array_index initializer.
2902 * c-lang.c (c_language_data): Likewise.
2903 (cplus_language_data): Likewise.
2904 (minimal_language_data): Likewise.
2905 * d-lang.c (d_language_data): Likewise.
2906 * f-lang.c (f_language_data): Likewise.
2907 * go-lang.c (go_language_data): Likewise.
2908 * language.c (default_print_array_index): Delete function, move
2909 implementation to...
2910 (language_defn::print_array_index): ...here.
2911 (unknown_language_data): Delete la_print_array_index initializer.
2912 (auto_language_data): Likewise.
2913 * language.h (struct language_data): Delete la_print_array_index
2915 (language_defn::print_array_index): New member function.
2916 (LA_PRINT_ARRAY_INDEX): Update.
2917 (default_print_array_index): Delete declaration.
2918 * m2-lang.c (m2_language_data): Delete la_print_array_index
2920 * objc-lang.c (objc_language_data): Likewise.
2921 * opencl-lang.c (opencl_language_data): Likewise.
2922 * p-lang.c (pascal_language_data): Likewise.
2923 * rust-lang.c (rust_language_data): Likewise.
2925 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2927 * gdb/ada-lang.c (ada_language_defn): Convert to...
2928 (ada_language_data): ...this.
2929 (class ada_language): New class.
2930 (ada_language_defn): New static global.
2931 * gdb/c-lang.c (c_language_defn): Convert to...
2932 (c_language_data): ...this.
2933 (class c_language): New class.
2934 (c_language_defn): New static global.
2935 (cplus_language_defn): Convert to...
2936 (cplus_language_data): ...this.
2937 (class cplus_language): New class.
2938 (cplus_language_defn): New static global.
2939 (asm_language_defn): Convert to...
2940 (asm_language_data): ...this.
2941 (class asm_language): New class.
2942 (asm_language_defn): New static global.
2943 (minimal_language_defn): Convert to...
2944 (minimal_language_data): ...this.
2945 (class minimal_language): New class.
2946 (minimal_language_defn): New static global.
2947 * gdb/d-lang.c (d_language_defn): Convert to...
2948 (d_language_data): ...this.
2949 (class d_language): New class.
2950 (d_language_defn): New static global.
2951 * gdb/f-lang.c (f_language_defn): Convert to...
2952 (f_language_data): ...this.
2953 (class f_language): New class.
2954 (f_language_defn): New static global.
2955 * gdb/go-lang.c (go_language_defn): Convert to...
2956 (go_language_data): ...this.
2957 (class go_language): New class.
2958 (go_language_defn): New static global.
2959 * gdb/language.c (unknown_language_defn): Remove declaration.
2960 (current_language): Initialize to nullptr, real initialization is
2961 moved to _initialize_language.
2962 (languages): Delete global.
2963 (language_defn::languages): Define.
2964 (set_language_command): Use language_defn::languages.
2965 (set_language): Likewise.
2966 (range_error): Likewise.
2967 (language_enum): Likewise.
2968 (language_def): Likewise.
2969 (add_set_language_command): Use language_def::languages for the
2970 language list, and language_def to lookup language pointers.
2971 (skip_language_trampoline): Use language_defn::languages.
2972 (unknown_language_defn): Convert to...
2973 (unknown_language_data): ...this.
2974 (class unknown_language): New class.
2975 (unknown_language_defn): New static global.
2976 (auto_language_defn): Convert to...
2977 (auto_language_data): ...this.
2978 (class auto_language): New class.
2979 (auto_language_defn): New static global.
2980 (language_gdbarch_post_init): Use language_defn::languages.
2981 (_initialize_language): Initialize current_language.
2982 * gdb/language.h (struct language_defn): Rename to...
2983 (struct language_data): ...this.
2984 (struct language_defn): New.
2985 (auto_language_defn): Delete.
2986 (unknown_language_defn): Delete.
2987 (minimal_language_defn): Delete.
2988 (ada_language_defn): Delete.
2989 (asm_language_defn): Delete.
2990 (c_language_defn): Delete.
2991 (cplus_language_defn): Delete.
2992 (d_language_defn): Delete.
2993 (f_language_defn): Delete.
2994 (go_language_defn): Delete.
2995 (m2_language_defn): Delete.
2996 (objc_language_defn): Delete.
2997 (opencl_language_defn): Delete.
2998 (pascal_language_defn): Delete.
2999 (rust_language_defn): Delete.
3000 * gdb/m2-lang.c (m2_language_defn): Convert to...
3001 (m2_language_data): ...this.
3002 (class m2_language): New class.
3003 (m2_language_defn): New static global.
3004 * gdb/objc-lang.c (objc_language_defn): Convert to...
3005 (objc_language_data): ...this.
3006 (class objc_language): New class.
3007 (objc_language_defn): New static global.
3008 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
3009 (opencl_language_data): ...this.
3010 (class opencl_language): New class.
3011 (opencl_language_defn): New static global.
3012 * gdb/p-lang.c (pascal_language_defn): Convert to...
3013 (pascal_language_data): ...this.
3014 (class pascal_language): New class.
3015 (pascal_language_defn): New static global.
3016 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
3017 language pointer, update comment format.
3018 * gdb/rust-lang.c (rust_language_defn): Convert to...
3019 (rust_language_data): ...this.
3020 (class rust_language): New class.
3021 (rust_language_defn): New static global.
3023 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
3025 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
3027 <m_stmt_at_address>: New member variable.
3028 (lnp_state_machine::record_line): Don't record some lines, update
3029 tracking of is_stmt at the same address.
3030 (lnp_state_machine::lnp_state_machine): Initialise new member
3033 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
3035 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
3036 "-include gnu-nat-mig.h".
3037 * gnu-nat-mig.h: New file.
3038 * gnu-nat.c: Include "gnu-nat-mig.h".
3039 (exc_server, msg_reply_server, notify_server,
3040 process_reply_server): Remove declarations.
3042 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3044 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
3045 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
3046 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
3047 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
3048 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
3049 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
3050 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
3051 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
3052 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
3053 to gnu_nat_target class.
3054 * gnu-nat.c: Likewise.
3055 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
3056 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
3057 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
3059 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
3060 instead of `gnu_target'.
3062 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3064 * i386-gnu-tdep.c: Include "gdbcore.h"
3065 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
3066 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
3067 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
3068 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
3069 i386_gnu_sigcontext_addr): New functions
3070 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
3071 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
3074 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3076 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
3077 before fork_inferior call. Avoid calling it if target_is_pushed returns
3080 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3082 * gnu-nat.h (gnu_target): New variable declaration.
3083 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
3085 * gnu-nat.c (gnu_target): New variable.
3086 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
3087 add_thread_silent, and add_thread calls.
3088 (gnu_nat_target::create_inferior): Pass gnu_target to
3089 add_thread_silent, thread_change_ptid call.
3090 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
3093 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3095 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
3096 (gnu_nat_target::find_memory_regions): Remove unused
3097 `old_address' variable.
3099 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3101 * gnu-nat.c: Include "gdbarch.h".
3103 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3105 * reply_mig_hack.awk (Error return): Cast function through
3106 void *, to bypass compiler function call check.
3108 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3110 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
3111 $(srcdir)/reply_mig_hack.awk.
3113 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3115 * gnu-nat.h (gnu_debug_flag): Set type to bool.
3117 2020-05-30 Jonny Grant <jg@jguk.org>
3119 * configure.ac (ACX_BUGURL): change bug URL to https.
3121 2020-05-30 Pedro Alves <palves@redhat.com>
3123 * cp-support.c (replace_typedefs_template): New.
3124 (replace_typedefs_qualified_name): Handle
3125 DEMANGLE_COMPONENT_TEMPLATE.
3127 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
3129 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
3130 dwarf2/index-cache.h, dwarf2/index-write.c,
3131 dwarf2/index-write.h, dwarf2/line-header.c,
3132 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
3133 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
3134 variables and fields from `dwarf2_per_objfile` to just
3135 `per_objfile` throughout.
3137 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
3139 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3140 <push_dwarf_reg_entry_value>: Add comment.
3142 2020-05-28 Kevin Buettner <kevinb@redhat.com>
3143 Keith Seitz <keiths@redhat.com>
3145 * python/python.c (do_start_initialization): Call PyEval_SaveThread
3146 instead of PyEval_ReleaseLock.
3147 (class gdbpy_gil): Move to earlier in file.
3148 (finalize_python): Set gdb_python_initialized.
3149 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
3150 when not initialized.
3152 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
3154 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3155 <push_dwarf_reg_entry_value>: Remove assert. Override
3156 per_objfile with caller_per_objfile.
3158 2020-05-28 Tom de Vries <tdevries@suse.de>
3160 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
3161 PR gold/15646 workaround to symbol kind "type".
3163 2020-05-27 Tom Tromey <tromey@adacore.com>
3165 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
3167 2020-05-27 Tom Tromey <tromey@adacore.com>
3169 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
3170 Use htab_find_with_hash.
3171 <add_abbrev>: Remove "abbrev_number" parameter.
3172 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
3173 "abbrev_number" parameter. Use htab_find_slot_with_hash.
3174 (hash_abbrev): Add comment.
3175 (abbrev_table::lookup_abbrev): Move to header file.
3176 (abbrev_table::read): Update.
3178 2020-05-27 Tom Tromey <tromey@adacore.com>
3180 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
3182 <canonical_name>: New member.
3183 <raw_name>: Rename from "name".
3184 (partial_die_info): Initialize canonical_name.
3185 (scan_partial_symbols): Check raw_name.
3186 (partial_die_parent_scope, partial_die_full_name)
3187 (add_partial_symbol, add_partial_subprogram)
3188 (add_partial_enumeration, load_partial_dies): Use "name" method.
3189 (partial_die_info::name): New method.
3190 (partial_die_info::read, guess_partial_die_structure_name)
3191 (partial_die_info::fixup): Update.
3193 2020-05-27 Tom Tromey <tromey@adacore.com>
3195 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
3196 <get_ref_die_offset>: Inline.
3197 <get_ref_die_offset_complaint>: New method.
3198 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
3199 (attribute::get_ref_die_offset_complaint): Rename from
3200 get_ref_die_offset. Just issue complaint.
3202 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
3204 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
3206 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
3208 * exec.c (exec_file_attach): Use errno value of first openp failure.
3210 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
3212 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
3213 Don't close thread handle.
3215 2020-05-27 Tom Tromey <tom@tromey.com>
3216 Simon Marchi <simon.marchi@efficios.com>
3218 * objfiles.h (struct objfile) <partial_symtabs>: Now a
3220 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
3222 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
3223 dwarf2_per_bfd_objfile_data_key>: New globals.
3224 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
3225 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
3226 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
3228 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
3229 short-circuit when sharing.
3230 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
3231 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
3233 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3235 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
3237 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
3238 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
3240 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3242 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
3243 build_name_components, find_name_components_bounds>:
3244 Add per_objfile parameter.
3245 (struct mapped_index) <symbol_name_at>: Likewise.
3246 (struct mapped_debug_names): Remove constructor.
3247 <dwarf2_per_objfile>: Remove field.
3248 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
3249 (mapped_index_base::find_name_components_bounds,
3250 mapped_index_base::build_name_components,
3251 dw2_expand_symtabs_matching_symbol): Likewise.
3252 (class mock_mapped_index) <symbol_name_at>: Likewise.
3253 (check_match): Likewise.
3254 (check_find_bounds_finds): Likewise.
3255 (test_mapped_index_find_name_component_bounds): Update.
3256 (CHECK_MATCH): Update.
3257 (dw2_expand_symtabs_matching): Update.
3258 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
3259 per_objfile parameter.
3260 <find_vec_in_debug_names>: Likewise.
3261 <m_per_objfile>: New field.
3262 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
3264 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
3265 (dw2_debug_names_iterator::next): Update.
3266 (dw2_debug_names_lookup_symbol): Update.
3267 (dw2_debug_names_expand_symtabs_for_function): Update.
3268 (dw2_debug_names_map_matching_symbols): Update.
3269 (dw2_debug_names_expand_symtabs_matching): Update.
3270 (dwarf2_read_debug_names): Update.
3272 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3274 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
3275 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
3276 move to dwarf2_per_objfile.
3277 <read_in_chain>: Remove.
3278 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
3279 remove_all_cus, age_comp_units>: New methods.
3280 <m_dwarf2_cus>: New member.
3281 (struct dwarf2_per_cu_data) <cu>: Remove.
3282 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
3283 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
3284 moved to methods of dwarf2_per_objfile.
3285 (dwarf2_clear_marks): Remove.
3286 (dwarf2_queue_item::~dwarf2_queue_item): Update.
3287 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
3288 (dwarf2_per_bfd::free_cached_comp_units): Remove.
3289 (dwarf2_per_objfile::remove_all_cus): New.
3290 (class free_cached_comp_units) <~free_cached_comp_units>:
3293 (dw2_do_instantiate_symtab): Adjust.
3294 (fill_in_sig_entry_from_dwo_entry): Adjust.
3295 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3296 (cutu_reader::cutu_reader): Likewise.
3297 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
3298 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
3299 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
3300 and dwarf2_per_objfile::age_comp_units.
3301 (load_partial_comp_unit): Update.
3302 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
3303 (process_queue): Likewise.
3304 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
3306 (dwarf2_read_addr_index): Likewise.
3307 (follow_die_offset): Likewise.
3308 (dwarf2_fetch_die_loc_sect_off): Likewise.
3309 (dwarf2_fetch_constant_bytes): Likewise.
3310 (dwarf2_fetch_die_type_sect_off): Likewise.
3311 (follow_die_sig_1): Likewise.
3312 (load_full_type_unit): Likewise.
3313 (read_signatured_type): Likewise.
3314 (dwarf2_cu::dwarf2_cu): Don't set cu field.
3315 (dwarf2_cu::~dwarf2_cu): Remove.
3316 (dwarf2_per_objfile::get_cu): New.
3317 (dwarf2_per_objfile::set_cu): New.
3318 (age_cached_comp_units): Rename to...
3319 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
3320 to std::unordered_map.
3321 (free_one_cached_comp_unit): Rename to...
3322 (dwarf2_per_objfile::remove_cu): ... this. Adjust
3323 to std::unordered_map.
3324 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
3325 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
3326 a dwarf2_per_objfile in data.
3327 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
3328 (dwarf2_clear_marks): Remove.
3330 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3332 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
3333 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
3334 (init_tu_and_read_dwo_dies): Likewise.
3335 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
3336 (cutu_reader::cutu_reader): Likewise.
3337 (load_partial_comp_unit): Likewise.
3338 (process_psymtab_comp_unit): Update.
3339 (build_type_psymtabs_1): Update.
3340 (process_skeletonless_type_unit): Update.
3341 (load_full_comp_unit): Update.
3342 (find_partial_die): Update.
3343 (dwarf2_read_addr_index): Update.
3344 (read_signatured_type): Update.
3346 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3348 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
3349 m_header_read_in>: New fields.
3350 <get_header>: New method.
3351 * dwarf2/read.c (per_cu_header_read_in): Remove.
3352 (dwarf2_per_cu_data::get_header): New.
3353 (dwarf2_per_cu_data::addr_size): Update.
3354 (dwarf2_per_cu_data::offset_size): Update.
3355 (dwarf2_per_cu_data::ref_addr_size): Update.
3357 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3359 * dwarf2/read.c (load_cu): Return dwarf2_cu.
3360 (dw2_do_instantiate_symtab): Update.
3361 (queue_and_load_all_dwo_tus): Change parameter from
3362 dwarf2_per_cu_data to dwarf2_cu.
3363 (dwarf2_fetch_die_loc_sect_off): Update.
3364 (dwarf2_fetch_constant_bytes): Update.
3365 (dwarf2_fetch_die_type_sect_off): Update.
3367 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3369 * dwarf2/read.c (process_full_comp_unit,
3370 process_full_type_unit): Remove per_cu, per_objfile paramters.
3371 Add dwarf2_cu parameter.
3372 (process_queue): Update.
3374 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3376 * dwarf2/read.c (create_cu_from_index_list): Replace
3377 dwarf2_per_objfile parameter with dwarf2_per_bfd.
3378 (create_cus_from_index_list): Likewise.
3379 (create_cus_from_index): Likewise.
3380 (create_signatured_type_table_from_index): Likewise.
3381 (create_cus_from_debug_names_list): Likewise.
3382 (create_cus_from_debug_names): Likewise.
3383 (dwarf2_read_gdb_index): Update.
3384 (dwarf2_read_debug_names): Update.
3386 2020-05-27 Tom Tromey <tom@tromey.com>
3387 Simon Marchi <simon.marchi@efficios.com>
3389 * dwarf2/read.h (struct dwarf2_per_objfile)
3390 <get_type_for_signatured_type, set_type_for_signatured_type>:
3392 <m_type_map>: New member.
3393 (struct signatured_type) <type>: Remove.
3395 (dwarf2_per_objfile::get_type_for_signatured_type,
3396 dwarf2_per_objfile::set_type_for_signatured_type): New.
3397 (get_signatured_type): Use new methods.
3399 2020-05-27 Tom Tromey <tom@tromey.com>
3400 Simon Marchi <simon.marchi@efficios.com>
3402 * dwarf2/read.h (struct type_unit_group_unshareable): New.
3403 (struct dwarf2_per_objfile) <type_units>: New member.
3404 <get_type_unit_group_unshareable>: New method.
3405 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
3406 num_symtabs, symtabs>: Remove; move to
3407 type_unit_group_unshareable.
3408 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
3409 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
3410 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
3412 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3414 * dwarf2/read.h (struct dwarf2_per_cu_data):
3415 <dwarf2_per_objfile>: Remove.
3416 * dwarf2/read.c (create_cu_from_index_list): Don't assign
3418 (create_signatured_type_table_from_index): Likewise.
3419 (create_signatured_type_table_from_debug_names): Likewise.
3420 (create_debug_type_hash_table): Likewise.
3421 (fill_in_sig_entry_from_dwo_entry): Likewise.
3422 (create_type_unit_group): Likewise.
3423 (read_comp_units_from_section): Likewise.
3424 (create_cus_hash_table): Likewise.
3426 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3428 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
3429 dwarf2_per_cu_data::dwarf2_per_objfile.
3430 (compute_compunit_symtab_includes): Likewise.
3431 (dwarf2_cu::start_symtab): Likewise.
3433 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3435 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
3437 * dwarf2/read.c (get_die_type_at_offset): Likewise.
3438 (read_namespace_alias): Update.
3439 (lookup_die_type): Update.
3440 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
3441 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
3443 (disassemble_dwarf_expression): Update.
3445 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3447 * dwarf2/read.h (struct dwarf2_queue_item): Add
3448 dwarf2_per_objfile parameter, assign new parameter.
3449 <per_objfile>: New field.
3450 * dwarf2/read.c (free_one_cached_comp_unit): Add
3451 dwarf2_per_objfile parameter.
3452 (queue_comp_unit): Likewise.
3453 (dw2_do_instantiate_symtab): Update.
3454 (process_psymtab_comp_unit): Update.
3455 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
3456 (process_imported_unit_die): Update.
3457 (queue_and_load_dwo_tu): Update.
3458 (follow_die_offset): Update.
3459 (follow_die_sig_1): Update.
3461 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3463 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
3464 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
3465 (read_call_site_scope): Assign per_objfile.
3466 (dwarf2_per_cu_data::objfile): Remove.
3467 * gdbtypes.h (struct call_site) <per_objfile>: New member.
3468 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
3469 dwarf2_per_objfile parameter.
3470 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
3471 dwarf2_per_objfile parameter.
3472 (dwarf_expr_reg_to_entry_parameter): Add output
3473 dwarf2_per_objfile parameter.
3474 (locexpr_get_frame_base): Update.
3475 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
3476 <push_dwarf_reg_entry_value>: Update.
3477 <call_site_to_target_addr>: Update.
3478 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
3480 (value_of_dwarf_reg_entry): Update.
3481 (rw_pieced_value): Update.
3482 (indirect_synthetic_pointer): Update.
3483 (dwarf2_evaluate_property): Update.
3484 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
3486 (locexpr_read_variable): Update.
3487 (locexpr_get_symbol_read_needs): Update.
3488 (loclist_read_variable): Update.
3490 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3492 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
3493 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3494 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
3496 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
3497 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3498 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
3500 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
3501 sect_variable_value): Add dwarf2_per_objfile parameter.
3502 (class dwarf_evaluate_loc_desc) <dwarf_call,
3503 dwarf_variable_value>: Update.
3504 (fetch_const_value_from_synthetic_pointer): Add
3505 dwarf2_per_objfile parameter.
3506 (fetch_const_value_from_synthetic_pointer): Update.
3507 (coerced_pieced_ref): Update.
3508 (class symbol_needs_eval_context) <dwarf_call,
3509 dwarf_variable_value>: Update.
3510 (dwarf2_compile_expr_to_ax): Update.
3512 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3514 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
3516 (dwarf2_evaluate_loc_desc_full): Update.
3518 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3520 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
3522 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
3523 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
3524 dwarf2_per_objfile parameter.
3525 (decode_debug_loc_dwo_addresses): Likewise.
3526 (dwarf2_find_location_expression): Update.
3527 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
3528 (locexpr_describe_location_piece): Add dwarf2_per_objfile
3530 (disassemble_dwarf_expression): Add dwarf2_per_objfile
3532 (locexpr_describe_location_1): Likewise.
3533 (locexpr_describe_location): Update.
3535 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3537 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
3539 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
3540 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
3541 (dwarf2_compile_property_to_c): Update.
3542 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
3543 use text offset from objfile.
3544 (locexpr_tracepoint_var_ref): Update.
3545 (locexpr_generate_c_location): Update.
3546 (loclist_describe_location): Update.
3547 (loclist_tracepoint_var_ref): Update.
3548 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
3549 dwarf2_per_objfile parameter.
3550 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
3551 use text offset from objfile.
3552 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
3554 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3556 * dwarf2/expr.h (struct dwarf_expr_context)
3557 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
3559 <per_objfile>: New member.
3560 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
3561 dwarf2_per_objfile parameter. Don't set offset, set
3563 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
3564 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
3565 a dwarf2_per_objfile object instead of an offset.
3566 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
3568 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
3569 to dwarf2_expr_executor constructor. Don't set offset.
3570 (dwarf2_fetch_cfa_info): Update.
3571 (struct dwarf2_frame_cache) <text_offset>: Remove.
3572 <per_objfile>: New field.
3573 (dwarf2_frame_cache): Update.
3574 (dwarf2_frame_prev_register): Update.
3575 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3576 <dwarf_evaluate_loc_desc>: Add constructor.
3577 (dwarf2_evaluate_loc_desc_full): Update.
3578 (dwarf2_locexpr_baton_eval): Update.
3579 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
3581 (dwarf2_loc_desc_get_symbol_read_needs): Update.
3583 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3585 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
3586 addr_sized_int_type>: Move to dwarf2_cu.
3587 <int_type>: Move to dwarf2_per_objfile.
3588 (struct dwarf2_per_objfile) <int_type>: Move here.
3589 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
3590 addr_sized_int_type>: Move here.
3591 (read_func_scope): Update.
3592 (read_array_type): Update.
3593 (read_tag_string_type): Update.
3594 (attr_to_dynamic_prop): Update.
3595 (dwarf2_per_cu_data::int_type): Rename to...
3596 (dwarf2_per_objfile::int_type): ... this.
3597 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
3598 (dwarf2_cu::addr_sized_int_type): ... this.
3599 (read_subrange_type): Update.
3600 (dwarf2_per_cu_data::addr_type): Rename to...
3601 (dwarf2_cu::addr_type): ... this.
3602 (set_die_type): Update.
3604 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3606 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
3607 data through per_cu->cu.
3609 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3611 * dwarf2/read.c (lookup_dwo_comp_unit): Change
3612 dwarf2_per_cu_data parameter fo dwarf2_cu.
3613 (lookup_dwo_type_unit): Likewise.
3614 (read_cutu_die_from_dwo): Likewise.
3615 (lookup_dwo_unit): Likewise.
3616 (open_and_init_dwo_file): Likewise.
3617 (lookup_dwo_cutu): Likewise.
3618 (lookup_dwo_comp_unit): Likewise.
3619 (lookup_dwo_type_unit): Likewise.
3620 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3621 (cutu_reader::cutu_reader): Update.
3623 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3625 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
3627 (process_full_type_unit): Likewise.
3628 (process_queue): Update.
3630 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3632 * dwarf2/read.c (recursively_compute_inclusions): Add
3633 dwarf2_per_objfile parameter.
3634 (compute_compunit_symtab_includes): Likewise.
3635 (process_cu_includes): Update.
3637 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3639 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
3641 (create_type_unit_group): Update.
3642 (process_psymtab_comp_unit_reader): Update.
3643 (build_type_psymtabs_reader): Update.
3645 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3647 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
3648 object through m_this_cu->cu.
3650 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3652 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
3654 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
3656 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3658 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
3659 per_objfile parameter.
3660 (load_full_type_unit): Add per_objfile parameter.
3661 (read_signatured_type): Likewise.
3662 (load_full_comp_unit): Likewise.
3663 (load_cu): Likewise.
3664 (dw2_do_instantiate_symtab): Likewise.
3665 (dw2_get_file_names): Likewise.
3666 (dw2_map_symtabs_matching_filename): Update.
3667 (dw_expand_symtabs_matching_file_matcher): Update.
3668 (dw2_map_symbol_filenames): Update.
3669 (process_psymtab_comp_unit): Add per_objfile parameter.
3670 (build_type_psymtabs_1): Update.
3671 (process_skeletonless_type_unit): Update.
3672 (dwarf2_build_psymtabs_hard): Update.
3673 (load_partial_comp_unit): Add per_objfile parameter.
3674 (scan_partial_symbols): Update.
3675 (load_full_comp_unit): Add per_objfile parameter.
3676 (process_imported_unit_die): Update.
3677 (create_cus_hash_table): Update.
3678 (find_partial_die): Update.
3679 (dwarf2_read_addr_index): Update.
3680 (follow_die_offset): Update.
3681 (dwarf2_fetch_die_loc_sect_off): Update.
3682 (dwarf2_fetch_constant_bytes): Update.
3683 (dwarf2_fetch_die_type_sect_off): Update.
3684 (follow_die_sig_1): Update.
3685 (load_full_type_unit): Add per_objfile parameter.
3686 (read_signatured_type): Likewise.
3688 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3690 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
3693 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3695 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
3696 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
3697 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
3699 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
3700 (create_cus_from_index): Update.
3701 (dwarf2_read_gdb_index): Update.
3702 (create_cus_from_debug_names): Update.
3703 (dwarf2_read_debug_names): Update.
3704 (get_abbrev_section_for_cu): Update.
3705 (create_all_comp_units): Update.
3706 (read_attribute_value): Update.
3707 (get_debug_line_section): Update.
3708 * dwarf2/index-cache.c (index_cache::store): Update.
3709 * dwarf2/index-write.c (save_gdb_index_command): Update.
3710 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
3712 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3714 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
3716 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
3717 dwarf2_per_cu_data::per_bfd.
3718 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
3719 (create_type_unit_group): Likewise.
3720 (queue_comp_unit): Remove reference to
3721 per_cu->dwarf2_per_objfile.
3722 (maybe_queue_comp_unit): Likewise.
3723 (fill_in_sig_entry_from_dwo_entry): Assign new field.
3724 (create_cus_hash_table): Assign new field.
3726 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3728 * dwarf2/read.c: Replace
3729 dwarf2_cu->per_cu->dwarf2_per_objfile references with
3730 dwarf2_cu->per_objfile throughout.
3732 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3734 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
3735 parameter, don't use per_cu->dwarf2_per_objfile.
3736 (dw2_instantiate_symtab): Likewise.
3737 (dw2_find_last_source_symtab): Update.
3738 (dw2_map_expand_apply): Update.
3739 (dw2_lookup_symbol): Update.
3740 (dw2_expand_symtabs_for_function): Update.
3741 (dw2_expand_all_symtabs): Update.
3742 (dw2_expand_symtabs_with_fullname): Update.
3743 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
3744 don't use per_cu->dwarf2_per_objfile.
3745 (dw2_expand_marked_cus): Update.
3746 (dw2_find_pc_sect_compunit_symtab): Update.
3747 (dw2_debug_names_lookup_symbol): Update.
3748 (dw2_debug_names_expand_symtabs_for_function): Update.
3749 (dw2_debug_names_map_matching_symbols): Update.
3750 (dwarf2_psymtab::expand_psymtab): Update.
3752 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3754 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
3755 <per_objfile>: New member.
3756 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
3757 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
3759 (cutu_reader::cutu_reader): Update.
3760 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
3762 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3764 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
3765 struct dwarf2_per_objfile.
3766 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
3768 * dwarf2/read.c (set_die_type): Update.
3769 (get_die_type_at_offset): Update.
3771 2020-05-27 Tom Tromey <tom@tromey.com>
3772 Simon Marchi <simon.marchi@efficios.com>
3774 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
3776 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
3777 get_symtab, set_symtab>: New methods.
3778 <m_symtabs>: New field.
3779 (struct dwarf2_psymtab): Derive from partial_symtab.
3780 <readin_p, get_compunit_symtab>: Declare methods.
3781 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
3782 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
3784 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
3785 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
3786 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
3787 (dw2_symtab_iter_next, dw2_print_stats)
3788 (dw2_expand_symtabs_with_fullname)
3789 (dw2_expand_symtabs_matching_one)
3790 (dw_expand_symtabs_matching_file_matcher)
3791 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
3792 (dw2_debug_names_iterator::next)
3793 (dw2_debug_names_map_matching_symbols)
3794 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
3795 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
3796 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
3798 (get_compunit_symtab, process_full_comp_unit)
3799 (process_full_type_unit): Update.
3800 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
3802 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3804 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
3805 then introduce a new dwarf2_per_objfile type.
3806 <read_line_string>: Move to the new dwarf2_per_objfile type.
3807 <objfile>: Likewise.
3808 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
3809 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
3810 dwarf2_per_objfile->per_bfd.
3811 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
3812 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
3813 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
3814 (dwarf2_per_bfd::free_cached_comp_units): ... this.
3815 (dwarf2_has_info): Allocate dwarf2_per_bfd.
3816 (dwarf2_per_objfile::locate_sections): Rename to...
3817 (dwarf2_per_bfd::locate_sections): ... this.
3818 (dwarf2_per_objfile::get_cutu): Rename to...
3819 (dwarf2_per_bfd::get_cutu): ... this.
3820 (dwarf2_per_objfile::get_cu): Rename to...
3821 (dwarf2_per_bfd::get_cu): ... this.
3822 (dwarf2_per_objfile::get_tu): Rename to...
3823 (dwarf2_per_bfd::get_tu): ... this.
3824 (dwarf2_per_objfile::allocate_per_cu): Rename to...
3825 (dwarf2_per_bfd::allocate_per_cu): ... this.
3826 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
3827 (dwarf2_per_bfd::allocate_signatured_type): ... this.
3828 (get_gdb_index_contents_ftype): Change parameter from
3829 dwarf2_per_objfile to dwarf2_per_bfd.
3830 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
3831 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
3833 2020-05-27 Tom Tromey <tom@tromey.com>
3834 Simon Marchi <simon.marchi@efficios.com>
3836 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
3837 (allocate_piece_closure): Set "per_objfile" member.
3838 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
3839 (locexpr_describe_location, loclist_describe_location): Use new
3841 * dwarf2/read.c (read_call_site_scope)
3842 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
3843 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
3844 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
3845 handle_data_member_location): Set per_objfile member.
3846 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
3848 (struct dwarf2_loclist_baton) <per_objfile>: New member.
3850 2020-05-27 Tom Tromey <tom@tromey.com>
3852 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
3853 allocate_signatured_type>: Declare new methods.
3854 <m_num_psymtabs>: New member.
3855 (struct dwarf2_per_cu_data) <index>: New member.
3856 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
3857 (dwarf2_per_objfile::allocate_signatured_type): New methods.
3858 (create_cu_from_index_list): Use allocate_per_cu.
3859 (create_signatured_type_table_from_index)
3860 (create_signatured_type_table_from_debug_names)
3861 (create_debug_type_hash_table, add_type_unit)
3862 (read_comp_units_from_section): Use allocate_signatured_type.
3864 2020-05-27 Tom Tromey <tom@tromey.com>
3866 * psymtab.c (partial_map_expand_apply)
3867 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
3868 (psym_lookup_global_symbol_language)
3869 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
3870 (psym_print_stats, psym_expand_symtabs_for_function)
3871 (psym_map_symbol_filenames, psym_map_matching_symbols)
3872 (psym_expand_symtabs_matching)
3873 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
3874 (maintenance_check_psymtabs): Update.
3875 * psympriv.h (struct partial_symtab) <readin_p,
3876 get_compunit_symtab>: Add objfile parameter.
3877 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
3879 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
3880 get_compunit_symtab>: Likewise.
3881 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
3883 2020-05-27 Tom Tromey <tom@tromey.com>
3885 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
3887 * dwarf2/read.c (delete_file_name_entry): Fix comment.
3888 (create_cu_from_index_list)
3889 (create_signatured_type_table_from_index)
3890 (create_signatured_type_table_from_debug_names)
3891 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
3892 (dwarf2_create_include_psymtab)
3893 (create_debug_type_hash_table, add_type_unit)
3894 (create_type_unit_group, read_comp_units_from_section)
3895 (dwarf2_compute_name, create_cus_hash_table)
3896 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
3897 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
3899 (dw2_get_real_path): Likewise. Change argument to
3902 2020-05-27 Luis Machado <luis.machado@linaro.org>
3905 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
3906 for ldrd (immediate).
3908 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3910 * command.h: Add comment giving the name of class_tui.
3911 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
3912 create the fake command for the help for class_tui.
3914 2020-05-26 Tom Tromey <tromey@adacore.com>
3916 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
3917 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
3918 (val_atr): New function.
3919 (value_val_atr): Use it.
3920 * ada-valprint.c (print_optional_low_bound): Change low bound
3922 (val_print_packed_array_elements): Don't call discrete_position.
3923 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
3924 discrete_position for enum types.
3925 * language.c (default_print_array_index): Change type.
3926 * language.h (struct language_defn) <la_print_array_index>: Add
3927 index_type parameter, change type of index_value.
3928 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
3929 (default_print_array_index): Update.
3930 * valprint.c (maybe_print_array_index): Don't call
3931 value_from_longest. Update.
3932 (value_print_array_elements): Don't call discrete_position.
3934 2020-05-26 Tom Tromey <tromey@adacore.com>
3936 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
3937 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
3939 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
3942 * avr-tdep.c (avr_integer_to_address): Return data or code
3943 address accordingly to the second 'type' argument of the
3946 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
3948 * infcmd.c, inferior.h: (construct_inferior_arguments):
3949 Moved function from here to gdbsupport/common-inferior.{h,cc}
3951 2020-05-23 Tom Tromey <tom@tromey.com>
3953 Revert commit eca1f90c:
3954 * NEWS: Remove entry for completion styling.
3955 * completer.c (_rl_completion_prefix_display_length): Move
3957 (gdb_fnprint): Revert.
3958 (gdb_display_match_list_1): Likewise.
3959 * cli/cli-style.c (completion_prefix_style)
3960 (completion_difference_style, completion_suffix_style): Remove.
3961 (_initialize_cli_style): Revert.
3962 * cli/cli-style.h (completion_prefix_style)
3963 (completion_difference_style, completion_suffix_style): Don't
3966 2020-05-24 Pedro Alves <palves@redhat.com>
3968 * symtab.c (completion_list_add_name): Return boolean indication
3969 of whether the symbol matched.
3970 (completion_list_add_symbol): Don't try to remove C++ aliases if
3971 the symbol didn't match in the first place.
3972 * symtab.h (completion_list_add_name): Return bool.
3974 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
3976 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
3979 2020-05-23 Joel Brobecker <brobecker@adacore.com>
3983 2020-05-23 Tom Tromey <tom@tromey.com>
3985 * NEWS: Add entry for completion styling.
3986 * completer.c (_rl_completion_prefix_display_length): Move
3987 declaration earlier.
3988 (gdb_fnprint): Use completion_style.
3989 (gdb_display_match_list_1): Likewise.
3990 * cli/cli-style.c (completion_prefix_style)
3991 (completion_difference_style, completion_suffix_style): New
3993 (_initialize_cli_style): Register new globals.
3994 * cli/cli-style.h (completion_prefix_style)
3995 (completion_difference_style, completion_suffix_style): Declare.
3997 2020-05-23 Pedro Alves <palves@redhat.com>
3999 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
4000 (parse_escape): Use ISDIGIT instead of isdigit.
4001 (puts_debug): Use gdb_isprint instead of isprint.
4002 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
4003 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
4004 ISSPACE instead of isspace.
4005 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
4007 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
4008 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
4009 instead of isxdigit and ISDIGIT instead of isdigit.
4011 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4013 * gdbtypes.h (struct type) <field>: New method.
4014 (TYPE_FIELDS): Remove, replace all uses with either type::fields
4017 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4019 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
4020 (TYPE_FIELDS): Use type::fields. Change all call sites that
4021 modify the propery to use type::set_fields instead.
4023 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4025 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
4026 type::num_fields instead.
4028 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4030 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
4032 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
4033 that modify the number of fields to use type::set_num_fields
4036 2020-05-22 Tom Tromey <tromey@adacore.com>
4038 * compile/compile-object-load.h (munmap_list_free): Don't
4041 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
4043 * annotate.c (annotate_source_line): Update return type, add call
4044 to update current symtab and line.
4045 * annotate.h (annotate_source_line): Update return type, and
4046 extend header comment.
4047 * source.c (info_line_command): Check annotation_level before
4048 calling annotate_source_line.
4049 * stack.c (print_frame_info): If calling annotate_source_line
4050 returns true, then don't print any other source line information.
4052 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
4054 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
4056 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
4058 * coffread.c (patch_type): Remove NULL check before xfree.
4059 * corefile.c (set_gnutarget): Likewise.
4060 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
4061 * exec.c (build_section_table): Likewise.
4062 * remote.c (remote_target::pass_signals): Likewise.
4063 * utils.c (n_spaces): Likewise.
4064 * cli/cli-script.c (document_command): Likewise.
4065 * i386-windows-tdep.c (core_process_module_section): Likewise.
4066 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
4068 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
4070 * symfile.c (reread_symbols): Clear objfile's section_offsets
4071 vector and section indices, re-compute them by calling
4074 2020-05-20 Tom Tromey <tromey@adacore.com>
4076 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
4077 (desc_one_bound, desc_index_type): Compute field name.
4079 2020-05-20 Tom de Vries <tdevries@suse.de>
4082 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
4084 2020-05-20 Alan Modra <amodra@gmail.com>
4087 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
4089 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
4090 passed to bfd_set_filename.
4091 * symfile-mem.c (add_vsyscall_page): Likewise for string
4092 passed to symbol_file_add_from_memory.
4093 (symbol_file_add_from_memory): Make name param a const char* and
4096 2020-05-20 Alan Modra <amodra@gmail.com>
4098 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
4099 rather than accessing bfd->filename directly.
4100 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
4101 and use bfd_section_name.
4102 * dwarf2/frame.c (decode_frame_entry): Likewise.
4103 * exec.c (exec_set_section_address): Likewise.
4104 * solib-aix.c (solib_aix_bfd_open): Likewise.
4105 * stap-probe.c (get_stap_base_address): Likewise.
4106 * symfile.c (reread_symbols): Likewise.
4108 2020-05-19 Tom Tromey <tromey@adacore.com>
4110 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
4112 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4114 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
4116 2020-05-19 Pedro Alves <palves@redhat.com>
4118 * NEWS (set exec-file-mismatch): Adjust entry.
4119 * exec.c: Include "build-id.h".
4120 (validate_exec_file): Try to match build IDs instead of filenames.
4121 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
4122 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
4123 and pass down 'warn_if_slow'.
4124 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
4125 gdb_bfd_open_closure to pass it down.
4126 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
4128 2020-05-19 Pedro Alves <palves@redhat.com>
4130 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
4131 * target.c (target_fileio_open_1): Rename to target_fileio_open
4132 and make extern. Use bool.
4133 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
4134 (target_fileio_read_alloc_1): Adjust.
4135 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
4136 (target_fileio_open_warn_if_slow): Delete declaration.
4138 2020-05-19 Pedro Alves <palves@redhat.com>
4140 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
4143 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
4145 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
4146 whether disp is negative.
4148 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4150 * symfile.h (struct symfile_segment_data)
4151 <~symfile_segment_data>: Remove.
4152 <segment_info>: Change to std::vector.
4153 * symfile.c (default_symfile_segments): Update.
4154 * elfread.c (elf_symfile_segments): Update.
4156 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4158 * symfile.h (struct symfile_segment_data) <struct segment>: New.
4160 <segment_bases, segment_sizes>: Remove.
4161 * symfile.c (default_symfile_segments): Update.
4162 * elfread.c (elf_symfile_segments): Update.
4163 * remote.c (remote_target::get_offsets): Update.
4164 * solib-target.c (solib_target_relocate_section_addresses):
4167 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4169 * symfile.h (struct symfile_segment_data): Initialize fields.
4170 <~symfile_segment_data>: Add.
4171 (symfile_segment_data_up): New.
4172 (struct sym_fns) <sym_segments>: Return a
4173 symfile_segment_data_up.
4174 (default_symfile_segments): Return a symfile_segment_data_up.
4175 (free_symfile_segment_data): Remove.
4176 (get_symfile_segment_data): Return a symfile_segment_data_up.
4177 * symfile.c (default_symfile_segments): Likewise.
4178 (get_symfile_segment_data): Likewise.
4179 (free_symfile_segment_data): Remove.
4180 (symfile_find_segment_sections): Update.
4181 * elfread.c (elf_symfile_segments): Return a
4182 symfile_segment_data_up.
4183 * remote.c (remote_target::get_offsets): Update.
4184 * solib-target.c (solib_target_relocate_section_addresses):
4186 * symfile-debug.c (debug_sym_segments): Return a
4187 symfile_segment_data_up.
4189 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4192 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
4193 Hardcode register numbers.
4196 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
4197 procfs_find_LDT_entry): Remove.
4198 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
4199 procfs_find_LDT_entry): Remove.
4200 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
4203 2020-05-17 Pedro Alves <palves@redhat.com>
4204 Andrew Burgess <andrew.burgess@embecosm.com>
4205 Keno Fischer <keno@juliacomputing.com>
4208 * breakpoint.c (build_target_condition_list): Update comments.
4209 (build_target_command_list): Update comments and skip matching
4211 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
4212 a separate function. Simplify "set breakpoint auto-hw off"
4214 (insert_breakpoints): Update comment.
4215 (tracepoint_locations_match): New parameter. For breakpoints,
4216 compare location types too, if the caller wants to.
4217 (handle_automatic_hardware_breakpoints): New functions.
4218 (bp_location_is_less_than): Also sort by location type and
4219 hardware breakpoint length.
4220 (update_global_location_list): Handle "set breakpoint auto-hw on"
4222 (update_breakpoint_locations): Ask breakpoint_locations_match to
4223 ignore location types.
4225 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
4227 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
4230 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
4232 * gdbtypes.h (struct type) <name, set_name>: New methods.
4233 (TYPE_CODE): Use type::name. Change all call sites used to set
4234 the name to use type::set_name instead.
4236 2020-05-16 Tom Tromey <tom@tromey.com>
4238 * top.c (quit_force): Update.
4239 * infrun.c (handle_no_resumed): Update.
4240 * top.h (all_uis): New function.
4243 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
4245 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
4247 2020-05-16 Pedro Alves <palves@redhat.com>
4250 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
4252 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
4254 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
4256 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
4257 (sparc64_adi_info): Likewise.
4259 2020-05-15 Tom Tromey <tom@tromey.com>
4261 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
4263 (lookup_objfile_from_block): Remove.
4264 (lookup_symbol_in_block, lookup_symbol_in_static_block)
4265 (lookup_global_symbol): Use block_objfile.
4266 * symtab.h (lookup_objfile_from_block): Don't declare.
4267 * printcmd.c (clear_dangling_display_expressions): Use
4269 * parse.c (operator_check_standard): Use block_objfile.
4271 2020-05-15 Tom Tromey <tom@tromey.com>
4273 * language.c (language_alloc_type_symbol): Set
4275 * symtab.c (initialize_objfile_symbol): Remove.
4276 (allocate_symbol): Remove.
4277 (allocate_template_symbol): Remove.
4278 * dwarf2/read.c (fixup_go_packaging): Use "new".
4279 (new_symbol): Use "new".
4280 (read_variable): Don't call initialize_objfile_symbol. Use
4282 (read_func_scope): Use "new".
4283 * xcoffread.c (process_xcoff_symbol): Don't call
4284 initialize_objfile_symbol.
4285 (SYMBOL_DUP): Remove.
4286 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
4288 * symtab.h (allocate_symbol, initialize_objfile_symbol)
4289 (allocate_template_symbol): Don't declare.
4290 (struct symbol): Add copy constructor. Change defaults.
4291 * jit.c (finalize_symtab): Use "new".
4292 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
4294 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
4295 (common_block_end): Use "new".
4296 * mdebugread.c (parse_symbol): Use "new".
4297 (new_symbol): Likewise.
4299 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4301 * NEWS: Mention changes to help and apropos.
4303 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4305 * command.h (enum command_class): Improve comments, document
4306 that class_alias is for user-defined aliases, give the class
4307 name for each class, remove unused class_xdb.
4308 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
4309 * breakpoint.c (_initialize_breakpoint): Replace class_alias
4311 * infcmd.c (_initialize_infcmd): Likewise.
4312 * reverse.c (_initialize_reverse): Likewise.
4313 * stack.c (_initialize_stack): Likewise.
4314 * symfile.c (_initialize_symfile): Likewise.
4315 * tracepoint.c (_initialize_tracepoint): Likewise.
4317 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4319 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
4320 when their aliased command is traversed.
4321 (help_cmd): Add fput_command_names_styled call to
4322 output command name and aliases when command has an alias.
4324 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4326 * cli/cli-decode.h (help_cmd_list): Remove declaration.
4327 * cli/cli-decode.c (help_cmd_list): Declare as static,
4328 remove prefix argument, use bool for recurse arg, rework to show the aliases of
4329 a command together with the command.
4330 (fput_command_name_styled, fput_command_names_styled): New functions.
4331 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
4332 fput_command_name_styled.
4333 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
4334 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
4336 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4338 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
4339 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
4340 * command.h (cmd_show_list): Likewise.
4341 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
4342 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
4344 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4346 * unittests/command-def-selftests.c (traverse_command_structure):
4347 Verify all commands of a list have the same prefix command and
4348 that only the top cmdlist commands have a null prefix.
4350 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4352 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
4353 as prefix, not one of its aliases.
4354 (set_cmd_prefix): Remove.
4355 (do_add_cmd): Centralize the setting of the prefix of a command, when
4356 command is defined after its full chain of prefix commands.
4357 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
4358 (add_setshow_cmd_full): Likewise.
4359 (update_prefix_field_of_prefixed_commands): New function.
4360 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
4361 update_prefix_field_of_prefixed_commands.
4362 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
4363 addresses of remote_set_cmdlist and remote_show_cmdlist given
4364 as argument, not the address of an argument.
4365 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
4366 * gdb/remote.c (_initialize_remote): Likewise.
4368 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4370 * cli/cli-cmds.c (alias_command): Check for an existing alias
4371 using lookup_cmd_composition, as valid_command_p is too strict
4372 and forbids aliases that are the prefix of an existing alias
4374 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
4375 command is properly recognised as a valid command.
4377 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4379 * unittests/help-doc-selftests.c: Rename to
4380 unittests/command-def-selftests.c
4381 * unittests/command-def-selftests.c (help_doc_tests): Update some
4383 (command_structure_tests, traverse_command_structure): New namespace
4385 (command_structure_invariants_tests): New function.
4386 (_initialize_command_def_selftests) Renamed from
4387 _initialize_help_doc_selftests, register command_structure_invariants
4390 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4392 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
4395 2020-05-15 Joel Brobecker <brobecker@adacore.com>
4397 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
4398 ada_is_fixed_point_type. Update all callers.
4399 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
4401 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
4403 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
4404 print_fixed_point_type. Update all callers.
4405 * ada-valprint.c (ada_value_print_num): Replace call to
4406 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
4408 2020-05-14 Kevin Buettner <kevinb@redhat.com>
4410 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
4412 (cpu_supports_bts): Add CV_AMD case.
4414 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
4415 Simon Marchi <simon.marchi@efficios.com>
4417 * infrun.c (stop_all_threads): Collect multiple wait events at
4420 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
4422 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
4425 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
4427 * gdbtypes.h (struct type) <code, set_code>: New methods.
4428 (TYPE_CODE): Use type::code. Change all call sites used to set
4429 the code to use type::set_code instead.
4431 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4432 Tom de Vries <tdevries@suse.de>
4433 Pedro Alves <palves@redhat.com>
4436 * infrun.c (stop_all_threads): Do NOT ignore
4437 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
4438 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
4440 (handle_no_resumed): Remove code handling a live inferior with no
4442 * remote.c (has_single_non_exited_thread): New.
4443 (remote_target::update_thread_list): Do not delete a thread if is
4444 the last thread of the process.
4445 * thread.c (thread_select): Call delete_exited_threads instead of
4448 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4450 * infrun.c (stop_all_threads): Enable/disable thread events of all
4451 targets. Move a debug message denoting the end of the function
4452 into the SCOPED_EXIT block.
4454 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4456 * process-stratum-target.h: Include <set>.
4457 (all_non_exited_process_targets, switch_to_target_no_thread): New
4458 function declarations.
4459 * process-stratum-target.c (all_non_exited_process_targets)
4460 (switch_to_target_no_thread): New function implementations.
4462 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4464 * infrun.c (handle_inferior_event): Extract out a piece of code
4466 (mark_non_executing_threads): ...this new function.
4468 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4470 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
4473 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4475 * regcache.c (regcache_read_pc_protected): New function
4476 implementation that returns 0 if the PC cannot read via
4478 * infrun.c (proceed): Call 'regcache_read_pc_protected'
4479 instead of 'regcache_read_pc'.
4480 (keep_going_pass_signal): Ditto.
4482 2020-05-13 Tom Tromey <tromey@adacore.com>
4484 * ada-lang.c (align_value): Remove.
4485 (ada_template_to_fixed_record_type_1): Use align_up.
4487 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4489 * async-event.c: Update the copyright year.
4490 * async-event.h: Update the copyright year.
4492 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
4494 * objfiles.h (is_addr_in_objfile,
4495 shared_objfile_contains_address_p): Return bool.
4496 * objfile.c (is_addr_in_objfile,
4497 shared_objfile_contains_address_p): Return bool.
4499 2020-05-11 Tom Tromey <tromey@adacore.com>
4501 * cli/cli-cmds.c (info_command): Restore.
4502 (_initialize_cli_cmds): Use add_prefix_command for "info".
4503 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
4505 2020-05-11 Tom Tromey <tromey@adacore.com>
4507 * ada-lang.c (ada_value_primitive_field): Now public.
4508 * ada-lang.h (ada_value_primitive_field): Declare.
4509 * ada-valprint.c (print_field_values): Use
4510 ada_value_primitive_field for wrapper fields.
4512 2020-05-11 Tom de Vries <tdevries@suse.de>
4514 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
4517 2020-05-11 Tom de Vries <tdevries@suse.de>
4520 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
4521 with length 0, if not gdb-produced.
4522 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
4524 2020-05-09 Tom de Vries <tdevries@suse.de>
4527 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
4530 2020-05-09 Tom Tromey <tom@tromey.com>
4532 * top.c (server_command): Now bool.
4533 * top.h (server_command): Now bool.
4535 2020-05-08 Tom Tromey <tromey@adacore.com>
4537 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
4538 already being processed.
4540 2020-05-08 Tom Tromey <tom@tromey.com>
4542 * printcmd.c (struct display) <next>: Remove.
4543 <display>: New constructor.
4544 <exp_string>: Now a std::string.
4545 <enabled_p>: Now a bool.
4546 (display_number): Move definition earlier.
4547 (displays): Rename from display_chain. Now a std::vector.
4548 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
4549 (display_command): Update.
4550 (do_one_display, disable_display)
4551 (enable_disable_display_command, do_enable_disable_display):
4553 (free_display): Remove.
4554 (clear_displays): Rewrite.
4555 (delete_display): Update.
4556 (map_display_numbers): Use function_view. Remove "data"
4558 (do_delete_display): Remove.
4559 (undisplay_command): Update.
4560 (do_one_display, do_displays, disable_display)
4561 (info_display_command): Update.
4562 (do_enable_disable_display): Remove.
4563 (enable_disable_display_command)
4564 (clear_dangling_display_expressions): Update.
4566 2020-05-08 Tom Tromey <tom@tromey.com>
4568 * symtab.c (set_symbol_cache_size)
4569 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
4570 (maintenance_print_symbol_cache_statistics): Update.
4571 * symmisc.c (print_symbol_bcache_statistics)
4572 (print_objfile_statistics, maintenance_print_objfiles)
4573 (maintenance_info_symtabs, maintenance_check_symtabs)
4574 (maintenance_expand_symtabs, maintenance_info_line_tables):
4576 * symfile-debug.c (set_debug_symfile): Update.
4577 * source.c (forget_cached_source_info): Update.
4578 * python/python.c (gdbpy_progspaces): Update.
4579 * psymtab.c (maintenance_info_psymtabs): Update.
4580 * probe.c (parse_probes): Update.
4581 * linespec.c (iterate_over_all_matching_symtabs)
4582 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
4583 * guile/scm-progspace.c (gdbscm_progspaces): Update.
4584 * exec.c (exec_target::close): Update.
4585 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
4586 * breakpoint.c (print_one_breakpoint_location)
4587 (create_longjmp_master_breakpoint)
4588 (create_std_terminate_master_breakpoint): Update.
4589 * progspace.c (program_spaces): Now a std::vector.
4590 (maybe_new_address_space): Update.
4591 (add_program_space): Remove.
4592 (program_space::program_space): Update.
4593 (remove_program_space): Update.
4594 (number_of_program_spaces): Remove.
4595 (print_program_space, update_address_spaces): Update.
4596 * progspace.h (program_spaces): Change type.
4597 (ALL_PSPACES): Remove.
4598 (number_of_program_spaces): Don't declare.
4599 (struct program_space) <next>: Remove.
4601 2020-05-08 Tom Tromey <tom@tromey.com>
4603 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
4604 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
4605 (enable_break): Update.
4606 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
4607 (frv_fdpic_find_canonical_descriptor): Update.
4608 (frv_fetch_objfile_link_map): Update.
4609 * progspace.c (program_space::free_all_objfiles): Update.
4610 (program_space::solibs): New method.
4611 * progspace.h (struct program_space) <solibs>: New method.
4612 * solist.h (master_so_list): Don't declare.
4613 (ALL_SO_LIBS): Remove.
4614 * solib.h (so_list_head): Remove.
4615 (update_solib_list): Update comment.
4616 * solib.c (master_so_list): Remove.
4617 (solib_used, update_solib_list, solib_add)
4618 (info_sharedlibrary_command, clear_solib)
4619 (reload_shared_libraries_1, remove_user_added_objfile): Update.
4621 2020-05-08 Tom Tromey <tom@tromey.com>
4623 * extension.c (extension_languages): Now a std::array.
4624 (ALL_EXTENSION_LANGUAGES): Remove.
4625 (get_ext_lang_defn, get_ext_lang_of_file)
4626 (eval_ext_lang_from_control_command): Update.
4627 (finish_ext_lang_initialization)
4628 (auto_load_ext_lang_scripts_for_objfile)
4629 (ext_lang_type_printers::ext_lang_type_printers)
4630 (apply_ext_lang_type_printers)
4631 (ext_lang_type_printers::~ext_lang_type_printers)
4632 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
4633 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
4634 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
4635 (get_matching_xmethod_workers, ext_lang_colorize)
4636 (ext_lang_before_prompt): Update.
4637 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
4639 2020-05-08 Tom Tromey <tom@tromey.com>
4641 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
4643 <swap_string, m_string>: Remove.
4644 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
4646 * stabsread.c (define_symbol, read_type): Update.
4647 * linespec.c (find_linespec_symbols): Update.
4648 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
4649 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
4650 * dbxread.c (read_dbx_symtab): Update.
4651 * cp-support.h (cp_canonicalize_string_full)
4652 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
4653 Return unique_xmalloc_ptr.
4654 * cp-support.c (inspect_type): Update.
4655 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
4656 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
4658 * c-typeprint.c (print_name_maybe_canonical): Update.
4659 * break-catch-throw.c (check_status_exception_catchpoint):
4662 2020-05-08 Tom de Vries <tdevries@suse.de>
4664 * infrun.c (follow_fork): Copy current_line and current_symtab to
4667 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
4669 * async-event.c (struct async_signal_handler, struct
4670 async_event_handler): Reformat, remove typedef.
4672 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
4674 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
4675 access thistype->main_type->dyn_prop_list directly.
4677 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
4679 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
4680 (remove_dyn_prop): Remove. Update all users to use
4681 type::remove_dyn_prop.
4682 * gdbtypes.c (remove_dyn_prop): Rename to...
4683 (type::remove_dyn_prop): ... this.
4685 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
4687 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
4688 (add_dyn_prop): Remove. Update all users to use
4690 * gdbtypes.c (add_dyn_prop): Rename to...
4691 (type::add_dyn_prop): ... this.
4693 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
4695 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
4696 (get_dyn_prop): Remove. Update all users to use
4698 * gdbtypes.c (get_dyn_prop): Rename to...
4699 (type::dyn_prop): ... this.
4701 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
4703 * gdbtypes.h (struct main_type) <flag_static>: Remove.
4705 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
4707 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
4708 instruction, skip it if it's there.
4710 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
4712 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
4714 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
4716 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
4717 * gdbtypes.c (recursive_dump_type): Remove use of
4720 2020-05-03 Tom Tromey <tom@tromey.com>
4722 * breakpoint.c (catch_command, tcatch_command): Remove.
4723 (_initialize_breakpoint): Use add_basic_prefix_cmd,
4724 add_show_prefix_cmd.
4725 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
4726 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
4728 (add_internal_problem_command): Use add_basic_prefix_cmd,
4729 add_show_prefix_cmd.
4730 * mips-tdep.c (set_mipsfpu_command): Remove.
4731 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
4732 * dwarf2/index-cache.c (set_index_cache_command): Remove.
4733 (_initialize_index_cache): Use add_basic_prefix_cmd.
4734 * memattr.c (dummy_cmd): Remove.
4735 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
4736 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
4737 (_initialize_tui_win): Use add_basic_prefix_cmd,
4738 add_show_prefix_cmd.
4739 * cli/cli-logging.c (set_logging_command): Remove.
4740 (_initialize_cli_logging): Use add_basic_prefix_cmd,
4741 add_show_prefix_cmd.
4742 (show_logging_command): Remove.
4743 * target.c (target_command): Remove.
4744 (add_target): Use add_basic_prefix_cmd.
4746 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
4748 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
4750 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4752 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
4755 2020-04-30 Kamil Rytarowski <n54@gmx.com>
4757 * nbsd-nat.c (nbsd_enable_proc_events)
4758 (nbsd_nat_target::post_startup_inferior): Add.
4759 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
4760 (nbsd_nat_target::update_thread_list): Rewrite.
4761 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
4762 "PTRACE_LWP_CREATE".
4763 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
4765 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4767 * stack.c (_initialize_stack): Remove duplicated creation
4768 of "frame" command and "f" alias.
4770 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
4773 * gdbtypes.c (check_typedef): Calculate size of array of
4776 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
4779 * i386-tdep.c (i386_push_dummy_call): Call
4780 i386_thiscall_push_dummy_call.
4781 (i386_thiscall_push_dummy_call): New function.
4782 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
4783 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
4784 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
4786 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4788 * gdbarch.sh (do_read): Add shellcheck disable directive for
4791 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4793 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
4794 "referenced but not assigned" warning.
4796 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4798 * gdbarch.sh: Remove code that sets fallbackdefault.
4800 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4802 * gdbarch.sh: Use shell operators && and || instead of
4805 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4807 * gdbarch.sh: Use $(...) instead of `...`.
4809 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4811 * gdbarch.sh: Use double quotes around variables.
4813 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4815 * gdbarch.sh: Use %s with printf, instead of variables in the
4818 2020-04-29 Tom Tromey <tromey@adacore.com>
4821 * dwarf2/read.c (update_enumeration_type_from_children): Compute
4823 (read_enumeration_type): Call
4824 update_enumeration_type_from_children later. Update comments.
4825 (process_enumeration_scope): Don't create type fields.
4827 2020-04-29 Kamil Rytarowski <n54@gmx.com>
4829 * nbsd-tdep.c: Include "xml-syscall.h".
4830 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
4832 2020-04-29 Kamil Rytarowski <n54@gmx.com>
4834 * nbsd-nat.c: Include "sys/wait.h".
4835 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
4836 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
4837 (nbsd_nat_target::remove_exec_catchpoint)
4838 (nbsd_nat_target::set_syscall_catchpoint): Add.
4839 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
4840 (nbsd_nat_target::insert_exec_catchpoint)
4841 (nbsd_nat_target::remove_exec_catchpoint)
4842 (nbsd_nat_target::set_syscall_catchpoint): Add.
4843 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
4844 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
4845 `nbsd_get_syscall_number'.
4847 2020-04-29 Tom Tromey <tom@tromey.com>
4849 * stack.c (print_block_frame_labels): Remove.
4851 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
4854 * ada-valprint.c (val_print_packed_array_elements): Move array
4855 end bracket to new line.
4856 (ada_val_print_string): Remove extra spaces before first array
4858 * c-valprint.c (c_value_print_array): Likewise.
4859 * m2-valprint.c (m2_print_array_contents): Likewise.
4860 (m2_value_print_inner): Likewise.
4861 * p-valprint.c (pascal_value_print_inner): Likewise.
4862 * valprint.c (generic_val_print_array): Likewise.
4863 (value_print_array_elements): Move first array element and array
4864 end bracket to new line.
4866 2020-04-29 Tom de Vries <tdevries@suse.de>
4869 * linespec.c (find_method): Fix ix calculation.
4871 2020-04-28 Kamil Rytarowski <n54@gmx.com>
4873 * syscalls/update-netbsd.sh: New file.
4874 * syscalls/netbsd.xml: Regenerate.
4875 * data-directory/Makefile.in: Register `netbsd.xml' in
4878 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
4880 * syscalls/update-freebsd.sh: Add double quotes.
4882 2020-04-28 Tom Tromey <tom@tromey.com>
4885 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
4886 (cmdpy_init): Allow class_tui.
4888 2020-04-28 Mark Williams <mark@myosotissp.com>
4891 * dwarf2read.c: Add missing assingments to list_in_scope when
4892 start_symtab was already called.
4894 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
4897 * dwarf2/read.c (offset_map_type): Use
4898 gdb:hash_enum<sect_offset> as hash function.
4900 2020-04-28 Tom de Vries <tdevries@suse.de>
4902 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
4903 with DW_AT_signature.
4905 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
4907 * configure.ac: Remove check for fs_base/gs_base in
4909 * configure: Re-generate.
4910 * config.in: Re-generate.
4911 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
4912 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
4913 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
4915 2020-04-27 Luis Machado <luis.machado@linaro.org>
4917 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
4918 problematic inline frame unwinding situation.
4919 * frame.c (frame_id_computed_p): New function.
4920 * frame.h (frame_id_computed_p): New prototype.
4922 2020-04-26 Tom Tromey <tom@tromey.com>
4924 * command.h (enum command_class) <class_pseudo>: Remove.
4926 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4928 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
4931 2020-04-25 Kamil Rytarowski <n54@gmx.com>
4933 * inf-ptrace.c (inf_ptrace_target::wait): Remove
4934 `PT_GET_PROCESS_STATE' block.
4936 2020-04-24 Tom Tromey <tom@tromey.com>
4938 * symtab.h (symbol_get_demangled_name): Don't declare.
4939 * symtab.c (symbol_get_demangled_name): Remove.
4940 (general_symbol_info::natural_name)
4941 (general_symbol_info::demangled_name): Update.
4943 2020-04-24 Tom Tromey <tom@tromey.com>
4946 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
4948 2020-04-24 Tom Tromey <tom@tromey.com>
4951 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
4953 (new_symbol): Likewise.
4954 * compile/compile-object-load.c (get_out_value_type): Use
4955 symbol_matches_search_name.
4957 2020-04-24 Tom Tromey <tom@tromey.com>
4959 * dwarf2/read.c (add_partial_symbol): Do not call
4960 compute_and_set_names.
4962 2020-04-24 Tom Tromey <tom@tromey.com>
4964 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
4967 2020-04-24 Tom Tromey <tom@tromey.com>
4969 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
4970 (add_psymbol_to_list): New overload. Make old overload call new
4972 * psympriv.h (add_psymbol_to_list): New overload.
4974 2020-04-24 Tom Tromey <tom@tromey.com>
4976 * dwarf2/read.c (partial_die_info::read) <case
4977 DW_AT_linkage_name>: Use value_as_string.
4978 (dwarf2_string_attr): Use value_as_string.
4979 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
4981 * dwarf2/attribute.c (attribute::value_as_string): New method.
4983 2020-04-24 Tom Tromey <tom@tromey.com>
4985 * symtab.c (general_symbol_info::natural_name)
4986 (general_symbol_info::demangled_name): Check for language_rust.
4988 2020-04-24 Tom Tromey <tom@tromey.com>
4990 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
4991 (dwarf2_physname): ... from here.
4992 (partial_die_info::read): Add Rust "{" hack.
4994 2020-04-24 Tom Tromey <tom@tromey.com>
4996 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
4998 (symbol_set_demangled_name): Don't declare.
4999 * symtab.c (general_symbol_info::set_demangled_name): Rename from
5000 symbol_set_demangled_name.
5001 (general_symbol_info::set_language)
5002 (general_symbol_info::compute_and_set_names): Update.
5003 * minsyms.c (minimal_symbol_reader::install): Update.
5004 * dwarf2/read.c (new_symbol): Update.
5006 2020-04-24 Tom Tromey <tromey@adacore.com>
5009 * python/py-type.c (convert_field): Handle
5010 FIELD_LOC_KIND_DWARF_BLOCK.
5011 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
5012 (typy_get_dynamic): Nw function.
5013 (type_object_getset): Add "dynamic".
5016 2020-04-24 Tom Tromey <tromey@adacore.com>
5018 * ada-typeprint.c (print_choices, print_variant_part)
5019 (print_record_field_types_dynamic): New functions.
5020 (print_record_field_types): Use print_record_field_types_dynamic.
5022 2020-04-24 Tom Tromey <tromey@adacore.com>
5024 * dwarf2/read.c (handle_data_member_location): New overload.
5025 (dwarf2_add_field): Use it.
5026 (decode_locdesc): Add "computed" parameter. Update comment.
5027 * gdbtypes.c (is_dynamic_type_internal): Also look for
5028 FIELD_LOC_KIND_DWARF_BLOCK.
5029 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
5030 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
5031 virtual base classes.
5032 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
5033 FIELD_LOC_KIND_DWARF_BLOCK.
5035 2020-04-24 Tom Tromey <tromey@adacore.com>
5037 * dwarf2/read.c (read_structure_type): Handle dynamic length.
5038 * gdbtypes.c (is_dynamic_type_internal): Check
5039 TYPE_HAS_DYNAMIC_LENGTH.
5040 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
5041 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
5043 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
5046 2020-04-24 Tom Tromey <tromey@adacore.com>
5048 * dwarf2/read.c (struct variant_field): Rewrite.
5049 (struct variant_part_builder): New.
5050 (struct nextfield): Remove "variant" field. Add "offset".
5051 (struct field_info): Add "current_variant_part" and
5053 (alloc_discriminant_info): Remove.
5054 (alloc_rust_variant): New function.
5055 (quirk_rust_enum): Update.
5056 (dwarf2_add_field): Set "offset" member. Don't handle
5057 DW_TAG_variant_part.
5058 (offset_map_type): New typedef.
5059 (convert_variant_range, create_one_variant)
5060 (create_one_variant_part, create_variant_parts)
5061 (add_variant_property): New functions.
5062 (dwarf2_attach_fields_to_type): Call add_variant_property.
5063 (read_structure_type): Don't handle DW_TAG_variant_part.
5064 (handle_variant_part, handle_variant): New functions.
5065 (handle_struct_member_die): Use them.
5066 (process_structure_scope): Don't handle variant parts.
5067 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
5068 (struct discriminant_info): Remove.
5069 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
5070 (struct main_type) <flag_discriminated_union>: Remove.
5071 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
5072 (rust_enum_variant): Return int. Remove "contents". Rewrite.
5073 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
5075 * valops.c (value_union_variant): Remove.
5076 * value.h (value_union_variant): Don't declare.
5078 2020-04-24 Tom Tromey <tromey@adacore.com>
5080 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
5081 (ada_value_primitive_packed_val): Update.
5082 * ada-valprint.c (ada_value_print_1): Update.
5083 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
5084 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
5085 just an address. Use evaluate_for_locexpr_baton.
5086 (dwarf2_evaluate_property): Update.
5087 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
5089 * findvar.c (default_read_var_value): Update.
5090 * gdbtypes.c (compute_variant_fields_inner)
5091 (resolve_dynamic_type_internal): Update.
5092 (resolve_dynamic_type): Change type of valaddr parameter.
5093 * gdbtypes.h (resolve_dynamic_type): Update.
5094 * valarith.c (value_subscripted_rvalue): Update.
5095 * value.c (value_from_contents_and_address): Update.
5097 2020-04-24 Tom Tromey <tromey@adacore.com>
5099 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
5100 "push_initial_value" parameter.
5101 (dwarf2_evaluate_property): Likewise.
5102 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
5104 2020-04-24 Tom Tromey <tromey@adacore.com>
5106 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
5107 (variant::matches, compute_variant_fields_recurse)
5108 (compute_variant_fields_inner, compute_variant_fields): New
5110 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
5111 Use resolved_type after type is made.
5112 (operator==): Add new cases.
5113 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
5114 (struct discriminant_range, struct variant, struct variant_part):
5116 (union dynamic_prop_data) <variant_parts, original_type>: New
5118 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
5119 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
5121 * value.c (unpack_bits_as_long): Now public.
5122 * value.h (unpack_bits_as_long): Declare.
5124 2020-04-24 Tom Tromey <tromey@adacore.com>
5126 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
5127 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
5129 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
5131 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
5133 2020-04-24 Kamil Rytarowski <n54@gmx.com>
5135 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
5136 (remove_fork_catchpoint, post_startup_inferior)
5137 (post_attach): Move...
5138 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
5139 (remove_fork_catchpoint, post_startup_inferior)
5140 (post_attach): ...here.
5141 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
5142 (remove_fork_catchpoint, post_startup_inferior)
5143 (post_attach): Move...
5144 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
5145 (remove_fork_catchpoint, post_startup_inferior)
5146 (post_attach): ...here.
5148 2020-04-24 Tom Tromey <tromey@adacore.com>
5150 * nat/windows-nat.h (struct windows_thread_info)
5151 <pc_adjusted>: New member.
5152 * windows-nat.c (windows_fetch_one_register): Check
5154 (windows_nat_target::get_windows_debug_event)
5155 (windows_nat_target::wait): Set pc_adjusted.
5157 2020-04-24 Tom de Vries <tdevries@suse.de>
5159 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
5160 Run gdb-add-index inside temp dir.
5162 2020-04-23 Tom Tromey <tromey@adacore.com>
5164 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
5167 2020-04-23 Luis Machado <luis.machado@linaro.org>
5169 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
5170 get_frame_register instead of gdbarch_unwind_pc.
5172 2020-04-23 Tom de Vries <tdevries@suse.de>
5174 * symtab.c (lookup_global_symbol): Prefer def over decl.
5176 2020-04-23 Tom de Vries <tdevries@suse.de>
5179 * block.c (best_symbol, better_symbol): Promote to external.
5180 * block.h (best_symbol, better_symbol): Declare.
5181 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
5184 2020-04-23 Tom Tromey <tromey@adacore.com>
5187 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
5188 "const char *", not a "const std::string &".
5189 <name_and_matcher::operator==>: Update.
5190 * unittests/lookup_name_info-selftests.c: Change type of
5193 2020-04-23 Tom Tromey <tom@tromey.com>
5195 * inferior.h (iterate_over_inferiors): Don't declare.
5196 * inferior.c (iterate_over_inferiors): Remove.
5197 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
5199 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
5200 use iterate_over_inferiors.
5201 (darwin_resume_inferior_it)
5202 (struct resume_inferior_threads_param)
5203 (darwin_resume_inferior_threads_it): Remove.
5204 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
5206 2020-04-23 Tom de Vries <tdevries@suse.de>
5208 * blockframe.c (find_pc_partial_function): Use
5209 find_pc_sect_compunit_symtab rather than
5210 objfile->sf->qf->find_pc_sect_compunit_symtab.
5212 2020-04-22 Tom de Vries <tdevries@suse.de>
5215 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
5218 2020-04-22 Tom de Vries <tdevries@suse.de>
5221 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
5224 2020-04-22 Tom de Vries <tdevries@suse.de>
5227 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
5228 CU if already created.
5230 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5232 * infrun.c (displaced_step_fixup): Switch to the event_thread
5233 before calling displaced_step_restore, not after.
5235 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5237 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
5238 its inferior is not recorded by us.
5239 (record_btrace_target_open): Replace call to
5240 all_non_exited_threads () with call to current_inferior
5241 ()->non_exited_threads ().
5242 (record_btrace_target::stop_recording): Likewise.
5243 (record_btrace_target::close): Likewise.
5244 (record_btrace_target::wait): Likewise.
5245 (record_btrace_target::record_stop_replaying): Likewise.
5247 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5249 * btrace.c (btrace_enable): Throw an error on double enables and
5250 when enabling recording fails.
5251 (btrace_disable): Throw an error if the thread is not recorded.
5253 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5255 * record-btrace.c (record_btrace_target::fetch_registers): Forward
5256 request if we do not have a thread_info.
5258 2020-04-21 Tom de Vries <tdevries@suse.de>
5262 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
5263 exception in get_frame_id.
5265 2020-04-20 Tom Tromey <tromey@adacore.com>
5267 * python/python.c (struct gdbpy_event): Mark move constructor as
5269 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
5270 constructor as noexcept.
5271 * completer.h (struct completion_result): Mark move constructor as
5273 * completer.c (completion_result::completion_result): Use
5274 initialization style. Don't call reset_match_list.
5276 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
5278 * MAINTAINERS (Write After Approval): Add myself.
5280 2020-04-18 Tom Tromey <tom@tromey.com>
5282 * windows-tdep.c (init_w32_command_list)
5283 (w32_prefix_command_valid): Restore.
5284 (_initialize_windows_tdep): Call init_w32_command_list.
5286 2020-04-18 Tom Tromey <tom@tromey.com>
5288 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
5289 * value.c (value_fn_field): Update.
5290 * valops.c (find_function_in_inferior)
5291 (value_allocate_space_in_inferior): Update.
5292 * tui/tui-winsource.c (tui_update_source_windows_with_line):
5294 * tui/tui-source.c (tui_source_window::set_contents): Update.
5295 * symtab.c (lookup_global_or_static_symbol)
5296 (find_function_start_sal_1, skip_prologue_sal)
5297 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
5298 * symmisc.c (dump_msymbols, dump_symtab_1)
5299 (maintenance_print_one_line_table): Update.
5300 * symfile.c (init_entry_point_info, section_is_mapped)
5301 (list_overlays_command, simple_read_overlay_table)
5302 (simple_overlay_update_1): Update.
5303 * stap-probe.c (handle_stap_probe): Update.
5304 * stabsread.c (dbx_init_float_type, define_symbol)
5305 (read_one_struct_field, read_enum_type, read_range_type): Update.
5306 * source.c (info_line_command): Update.
5307 * python/python.c (gdbpy_source_objfile_script)
5308 (gdbpy_execute_objfile_script): Update.
5309 * python/py-type.c (save_objfile_types): Update.
5310 * python/py-objfile.c (py_free_objfile): Update.
5311 * python/py-inferior.c (python_new_objfile): Update.
5312 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
5313 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
5314 (maintenance_check_psymtabs): Update.
5315 * printcmd.c (info_address_command): Update.
5316 * objfiles.h (struct objfile) <arch>: New method, from
5318 (get_objfile_arch): Don't declare.
5319 * objfiles.c (get_objfile_arch): Remove.
5320 (filter_overlapping_sections): Update.
5321 * minsyms.c (msymbol_is_function): Update.
5322 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
5323 (output_nondebug_symbol): Update.
5324 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
5325 (mdebug_expand_psymtab): Update.
5326 * machoread.c (macho_add_oso_symfile): Update.
5327 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
5329 * linux-fork.c (checkpoint_command): Update.
5330 * linespec.c (convert_linespec_to_sals): Update.
5331 * jit.c (finalize_symtab): Update.
5332 * infrun.c (insert_exception_resume_from_probe): Update.
5333 * ia64-tdep.c (ia64_find_unwind_table): Update.
5334 * hppa-tdep.c (internalize_unwinds): Update.
5335 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
5337 * gcore.c (call_target_sbrk): Update.
5338 * elfread.c (record_minimal_symbol, elf_symtab_read)
5339 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
5340 (elf_gnu_ifunc_resolve_by_got): Update.
5341 * dwarf2/read.c (create_addrmap_from_index)
5342 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
5343 (read_debug_names_from_section)
5344 (process_psymtab_comp_unit_reader, add_partial_symbol)
5345 (add_partial_subprogram, process_full_comp_unit)
5346 (read_file_scope, read_func_scope, read_lexical_block_scope)
5347 (read_call_site_scope, dwarf2_ranges_read)
5348 (dwarf2_record_block_ranges, dwarf2_add_field)
5349 (mark_common_block_symbol_computed, read_tag_pointer_type)
5350 (read_tag_string_type, dwarf2_init_float_type)
5351 (dwarf2_init_complex_target_type, read_base_type)
5352 (partial_die_info::read, partial_die_info::read)
5353 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
5354 (dwarf2_fetch_die_loc_sect_off): Update.
5355 * dwarf2/loc.c (dwarf2_find_location_expression)
5356 (class dwarf_evaluate_loc_desc, rw_pieced_value)
5357 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
5358 (dwarf2_loc_desc_get_symbol_read_needs)
5359 (locexpr_describe_location_piece, locexpr_describe_location_1)
5360 (loclist_describe_location): Update.
5361 * dwarf2/index-write.c (write_debug_names): Update.
5362 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
5363 * dtrace-probe.c (dtrace_process_dof): Update.
5364 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
5365 (process_one_symbol): Update.
5366 * ctfread.c (ctf_init_float_type, read_base_type): Update.
5367 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
5368 (coff_read_enum_type): Update.
5369 * cli/cli-cmds.c (edit_command, list_command): Update.
5370 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
5371 * breakpoint.c (create_overlay_event_breakpoint)
5372 (create_longjmp_master_breakpoint)
5373 (create_std_terminate_master_breakpoint)
5374 (create_exception_master_breakpoint, get_sal_arch): Update.
5375 * block.c (block_gdbarch): Update.
5376 * annotate.c (annotate_source_line): Update.
5378 2020-04-17 Tom Tromey <tromey@adacore.com>
5380 * auto-load.c (show_auto_load_cmd): Remove.
5381 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
5382 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
5383 (maintenance_print_arc_command): Remove.
5384 * tui/tui-win.c (tui_command): Remove.
5385 (tui_get_cmd_list): Use add_basic_prefix_cmd.
5386 * tui/tui-layout.c (tui_layout_command): Remove.
5387 (_initialize_tui_layout): Use add_basic_prefix_cmd.
5388 * python/python.c (user_set_python, user_show_python): Remove.
5389 (_initialize_python): Use add_basic_prefix_cmd,
5390 add_show_prefix_cmd.
5391 * guile/guile.c (set_guile_command, show_guile_command): Remove.
5392 (install_gdb_commands): Use add_basic_prefix_cmd,
5393 add_show_prefix_cmd.
5394 (info_guile_command): Remove.
5395 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
5396 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
5397 add_show_prefix_cmd.
5398 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
5399 Remove do_set and do_show parameters.
5400 * cli/cli-style.c (set_style, show_style): Remove.
5401 (_initialize_cli_style): Use add_basic_prefix_cmd,
5402 add_show_prefix_cmd.
5403 (cli_style_option::add_setshow_commands): Remove do_set and
5405 (cli_style_option::add_setshow_commands): Use
5406 add_basic_prefix_cmd, add_show_prefix_cmd.
5407 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
5408 (set_style_name): Remove.
5409 * cli/cli-dump.c (dump_command, append_command): Remove.
5410 (srec_dump_command, ihex_dump_command, verilog_dump_command)
5411 (tekhex_dump_command, binary_dump_command)
5412 (binary_append_command): Remove.
5413 (_initialize_cli_dump): Use add_basic_prefix_cmd.
5414 * windows-tdep.c (w32_prefix_command_valid): Remove global.
5415 (init_w32_command_list): Remove; move into ...
5416 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
5417 * valprint.c (set_print, show_print, set_print_raw)
5418 (show_print_raw): Remove.
5419 (_initialize_valprint): Use add_basic_prefix_cmd,
5420 add_show_prefix_cmd.
5421 * typeprint.c (set_print_type, show_print_type): Remove.
5422 (_initialize_typeprint): Use add_basic_prefix_cmd,
5423 add_show_prefix_cmd.
5424 * record.c (set_record_command, show_record_command): Remove.
5425 (_initialize_record): Use add_basic_prefix_cmd,
5426 add_show_prefix_cmd.
5427 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
5428 add_show_prefix_cmd.
5429 (info_command, show_command, set_debug, show_debug): Remove.
5430 * top.h (set_history, show_history): Don't declare.
5431 * top.c (set_history, show_history): Remove.
5432 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
5433 (unset_tdesc_cmd): Remove.
5434 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
5435 add_show_prefix_cmd.
5436 * symtab.c (info_module_command): Remove.
5437 (_initialize_symtab): Use add_basic_prefix_cmd.
5438 * symfile.c (overlay_command): Remove.
5439 (_initialize_symfile): Use add_basic_prefix_cmd.
5440 * sparc64-tdep.c (info_adi_command): Remove.
5441 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
5442 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
5443 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
5444 add_show_prefix_cmd.
5445 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
5446 (_initialize_serial): Use add_basic_prefix_cmd,
5447 add_show_prefix_cmd.
5448 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
5449 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
5450 add_show_prefix_cmd.
5451 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
5452 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
5453 add_show_prefix_cmd.
5454 * riscv-tdep.c (show_riscv_command, set_riscv_command)
5455 (show_debug_riscv_command, set_debug_riscv_command): Remove.
5456 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
5457 add_show_prefix_cmd.
5458 * remote.c (remote_command, set_remote_cmd): Remove.
5459 (_initialize_remote): Use add_basic_prefix_cmd.
5460 * record-full.c (set_record_full_command)
5461 (show_record_full_command): Remove.
5462 (_initialize_record_full): Use add_basic_prefix_cmd,
5463 add_show_prefix_cmd.
5464 * record-btrace.c (cmd_set_record_btrace)
5465 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
5466 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
5467 (cmd_show_record_btrace_pt): Remove.
5468 (_initialize_record_btrace): Use add_basic_prefix_cmd,
5469 add_show_prefix_cmd.
5470 * ravenscar-thread.c (set_ravenscar_command)
5471 (show_ravenscar_command): Remove.
5472 (_initialize_ravenscar): Use add_basic_prefix_cmd,
5473 add_show_prefix_cmd.
5474 * mips-tdep.c (show_mips_command, set_mips_command)
5475 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
5476 add_show_prefix_cmd.
5477 * maint.c (maintenance_command, maintenance_info_command)
5478 (maintenance_check_command, maintenance_print_command)
5479 (maintenance_set_cmd, maintenance_show_cmd): Remove.
5480 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
5481 add_show_prefix_cmd.
5482 (show_per_command_cmd): Remove.
5483 * maint-test-settings.c (maintenance_set_test_settings_cmd):
5485 (maintenance_show_test_settings_cmd): Remove.
5486 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
5487 add_show_prefix_cmd.
5488 * maint-test-options.c (maintenance_test_options_command):
5490 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
5491 * macrocmd.c (macro_command): Remove
5492 (_initialize_macrocmd): Use add_basic_prefix_cmd.
5493 * language.c (set_check, show_check): Remove.
5494 (_initialize_language): Use add_basic_prefix_cmd,
5495 add_show_prefix_cmd.
5496 * infcmd.c (unset_command): Remove.
5497 (_initialize_infcmd): Use add_basic_prefix_cmd.
5498 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
5499 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
5500 add_show_prefix_cmd.
5501 * go32-nat.c (go32_info_dos_command): Remove.
5502 (_initialize_go32_nat): Use add_basic_prefix_cmd.
5503 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
5504 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
5505 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
5506 (_initialize_frame): Use add_basic_prefix_cmd,
5507 add_show_prefix_cmd.
5508 * dcache.c (set_dcache_command, show_dcache_command): Remove.
5509 (_initialize_dcache): Use add_basic_prefix_cmd,
5510 add_show_prefix_cmd.
5511 * cp-support.c (maint_cplus_command): Remove.
5512 (_initialize_cp_support): Use add_basic_prefix_cmd.
5513 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
5514 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
5515 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
5516 add_basic_prefix_cmd, add_show_prefix_cmd.
5517 * breakpoint.c (save_command): Remove.
5518 (_initialize_breakpoint): Use add_basic_prefix_cmd.
5519 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
5520 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
5521 add_show_prefix_cmd.
5522 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
5523 (set_ada_command, show_ada_command): Remove.
5524 (_initialize_ada_language): Use add_basic_prefix_cmd,
5525 add_show_prefix_cmd.
5526 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
5528 2020-04-16 Kamil Rytarowski <n54@gmx.com>
5530 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
5531 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
5533 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
5535 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
5538 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
5540 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
5541 import table is not at beginning of .idata section.
5543 2020-04-16 Pedro Alves <palves@redhat.com>
5545 * inferior.c (delete_inferior): Use delete operator directly
5546 instead of delete_program_space.
5547 * progspace.c (add_program_space): New, factored out from
5548 program_space::program_space.
5549 (remove_program_space): New, factored out from
5550 delete_program_space.
5551 (program_space::program_space): Remove intro comment. Rewrite.
5552 (program_space::~program_space): Remove intro comment. Call
5553 remove_program_space.
5554 (delete_program_space): Delete.
5555 * progspace.h (program_space::program_space): Make explicit. Move
5556 intro comment here, adjusted.
5557 (program_space::~program_space): Move intro comment here,
5559 (delete_program_space): Remove.
5561 2020-04-16 Tom Tromey <tromey@adacore.com>
5563 * windows-nat.c (windows_nat::handle_access_violation): New
5565 * nat/windows-nat.h (handle_access_violation): Declare.
5566 * nat/windows-nat.c (handle_exception): Move Cygwin code to
5567 windows-nat.c. Call handle_access_violation.
5569 2020-04-16 Tom de Vries <tdevries@suse.de>
5572 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
5573 CUs without psymtab.
5575 2020-04-16 Kevin Buettner <kevinb@redhat.com>
5577 * python/python.c (do_start_initialization): Don't call
5578 PyEval_InitThreads for Python 3.9 and beyond.
5580 2020-04-15 Kamil Rytarowski <n54@gmx.com>
5582 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
5584 (obsd_nat_target::wait): Likewise.
5586 2020-04-15 Tom Tromey <tromey@adacore.com>
5588 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
5589 (DEBUG_EXCEPT): Use debug_printf.
5591 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
5593 * completer.c (class completion_tracker::completion_hash_entry)
5594 <hash_name>: New member function.
5595 (completion_tracker::discard_completions): New callback to hash a
5596 completion_hash_entry, pass this to htab_create_alloc.
5598 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
5600 * windows-nat.c (windows_make_so): Warn rather than stopping with
5601 an error if realpath() fails.
5603 2020-04-14 Kamil Rytarowski <n54@gmx.com>
5605 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
5606 (nbsd_nat_target::info_proc): Add do_status.
5608 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
5609 Tom de Vries <tdevries@suse.de>
5612 * psympriv.h (struct partial_symtab::read_symtab)
5613 (struct partial_symtab::expand_psymtab)
5614 (struct partial_symtab::read_dependencies): Update comments.
5615 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
5616 read_symtab for includer.
5617 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
5618 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
5619 (struct dwarf2_include_psymtab::m_readin): Remove.
5620 (struct dwarf2_include_psymtab::includer): New member function.
5621 (dwarf2_psymtab::expand_psymtab): Assert !readin.
5623 2020-04-14 Tom de Vries <tdevries@suse.de>
5626 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
5627 with NULL symbol_matcher and lookup_name.
5628 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
5630 * dwarf2/read.c (dw2_expand_symtabs_matching)
5631 (dw2_debug_names_expand_symtabs_matching): Same.
5632 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
5633 Make lookup_name a pointer. Update comment.
5634 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
5635 lookup_name being a pointer.
5636 * symfile.c (expand_symtabs_matching): Same.
5637 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
5638 * linespec.c (iterate_over_all_matching_symtabs): Same.
5640 2020-04-13 Tom Tromey <tom@tromey.com>
5642 * run-on-main-thread.c: Update include.
5643 * unittests/main-thread-selftests.c: Update include.
5644 * tui/tui-win.c: Update include.
5645 * tui/tui-io.c: Update include.
5646 * tui/tui-interp.c: Update include.
5647 * tui/tui-hooks.c: Update include.
5648 * top.h: Update include.
5649 * top.c: Update include.
5650 * ser-base.c: Update include.
5651 * remote.c: Update include.
5652 * remote-notif.c: Update include.
5653 * remote-fileio.c: Update include.
5654 * record-full.c: Update include.
5655 * record-btrace.c: Update include.
5656 * python/python.c: Update include.
5657 * posix-hdep.c: Update include.
5658 * mingw-hdep.c: Update include.
5659 * mi/mi-main.c: Update include.
5660 * mi/mi-interp.c: Update include.
5661 * main.c: Update include.
5662 * linux-nat.c: Update include.
5663 * interps.c: Update include.
5664 * infrun.c: Update include.
5665 * inf-loop.c: Update include.
5666 * event-top.c: Update include.
5667 * event-loop.c: Move to ../gdbsupport/.
5668 * event-loop.h: Move to ../gdbsupport/.
5669 * async-event.h: Update include.
5670 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
5672 2020-04-13 Tom Tromey <tom@tromey.com>
5674 * tui/tui-win.c: Include async-event.h.
5675 * remote.c: Include async-event.h.
5676 * remote-notif.c: Include async-event.h.
5677 * record-full.c: Include async-event.h.
5678 * record-btrace.c: Include async-event.h.
5679 * infrun.c: Include async-event.h.
5680 * event-top.c: Include async-event.h.
5681 * event-loop.h: Move some declarations to async-event.h.
5682 * event-loop.c: Don't include ser-event.h or top.h. Move some
5683 code to async-event.c.
5684 * async-event.h: New file.
5685 * async-event.c: New file.
5686 * Makefile.in (COMMON_SFILES): Add async-event.c.
5687 (HFILES_NO_SRCDIR): Add async-event.h.
5689 2020-04-13 Tom Tromey <tom@tromey.com>
5691 * utils.c (flush_streams): New function.
5692 * event-loop.c (gdb_wait_for_event): Call flush_streams.
5694 2020-04-13 Tom Tromey <tom@tromey.com>
5696 * event-loop.c (handle_file_event): Use warning, not
5699 2020-04-13 Tom Tromey <tom@tromey.com>
5701 * event-loop.c: Include <chrono>.
5703 2020-04-13 Tom Tromey <tom@tromey.com>
5705 * gdb_select.h: Move to ../gdbsupport/.
5706 * event-loop.c: Update include path.
5707 * top.c: Update include path.
5708 * ser-base.c: Update include path.
5709 * ui-file.c: Update include path.
5710 * ser-tcp.c: Update include path.
5711 * guile/scm-ports.c: Update include path.
5712 * posix-hdep.c: Update include path.
5713 * ser-unix.c: Update include path.
5714 * gdb_usleep.c: Update include path.
5715 * mingw-hdep.c: Update include path.
5716 * inflow.c: Update include path.
5717 * infrun.c: Update include path.
5718 * event-top.c: Update include path.
5720 2020-04-13 Tom Tromey <tom@tromey.com>
5722 * configure: Rebuild.
5723 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
5725 2020-04-13 Tom Tromey <tom@tromey.com>
5727 * event-loop.h (start_event_loop): Don't declare.
5728 * event-loop.c (start_event_loop): Move...
5729 * main.c (start_event_loop): ...here. Now static.
5731 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
5733 * MAINTAINERS: Update my email address.
5735 2020-04-12 Kamil Rytarowski <n54@gmx.com>
5737 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
5740 2020-04-12 Kamil Rytarowski <n54@gmx.com>
5742 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
5743 (nbsd_nat_target::info_proc): Add do_cmdline.
5745 2020-04-12 Kamil Rytarowski <n54@gmx.com>
5747 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
5748 (nbsd_nat_target::info_proc): Add do_cwd.
5750 2020-04-12 Kamil Rytarowski <n54@gmx.com>
5752 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
5754 2020-04-11 Kamil Rytarowski <n54@gmx.com>
5756 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
5757 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
5758 (nbsd_nat_target::info_proc): New functions.
5759 * nbsd-nat.c (kinfo_get_vmmap): New function.
5760 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
5761 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
5762 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
5763 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
5765 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
5766 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
5767 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
5768 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
5769 (KINFO_VME_FLAG_GROWS_DOWN): New.
5771 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
5773 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
5776 2020-04-10 Tom Tromey <tromey@adacore.com>
5778 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
5780 2020-04-10 Tom Tromey <tromey@adacore.com>
5782 * symtab.c (get_symbol_address, get_msymbol_address): Skip
5783 separate debug files.
5785 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
5787 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5789 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5791 * windows-nat.c (windows_nat_target::get_windows_debug_event):
5792 Check for STATUS_WX86_BREAKPOINT.
5793 (windows_nat_target::wait): Same.
5795 2020-04-10 Tom de Vries <tdevries@suse.de>
5798 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
5800 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
5802 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
5803 (Write After Approval): Remove Tom de Vries.
5805 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
5808 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5810 * buildsym.c (record_line): Fix undefined behavior and preserve
5813 2020-04-09 Kamil Rytarowski <n54@gmx.com>
5815 * auxv.h (svr4_auxv_parse): New.
5816 * auxv.c (default_auxv_parse): Split into default_auxv_parse
5817 and generic_auxv_parse.
5818 (svr4_auxv_parse): Add.
5819 * obsd-tdep.c: Include "auxv.h".
5820 (obsd_auxv_parse): Remove.
5821 (obsd_init_abi): Remove comment.
5822 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
5823 from `obsd_auxv_parse' to `svr4_auxv_parse'.
5824 * nbsd-tdep.c: Include "auxv.h".
5825 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
5827 2020-04-08 Tom Tromey <tromey@adacore.com>
5829 * nat/windows-nat.h (last_wait_event): Don't declare.
5830 (wait_for_debug_event): Update comment.
5831 * nat/windows-nat.c (last_wait_event): Now static.
5833 2020-04-08 Tom Tromey <tromey@adacore.com>
5835 * windows-nat.c (wait_for_debug_event): Move to
5837 * nat/windows-nat.h (wait_for_debug_event): Declare.
5838 * nat/windows-nat.c (wait_for_debug_event): Move from
5839 windows-nat.c. No longer static.
5841 2020-04-08 Tom Tromey <tromey@adacore.com>
5843 * windows-nat.c (get_windows_debug_event): Use
5845 * nat/windows-nat.h (fetch_pending_stop): Declare.
5846 * nat/windows-nat.c (fetch_pending_stop): New function.
5848 2020-04-08 Tom Tromey <tromey@adacore.com>
5850 * windows-nat.c (windows_continue): Use matching_pending_stop and
5851 continue_last_debug_event.
5852 * nat/windows-nat.h (matching_pending_stop)
5853 (continue_last_debug_event): Declare.
5854 * nat/windows-nat.c (DEBUG_EVENTS): New define.
5855 (matching_pending_stop, continue_last_debug_event): New
5858 2020-04-08 Tom Tromey <tromey@adacore.com>
5860 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
5861 (handle_exception_result): Move to nat/windows-nat.h.
5862 (DEBUG_EXCEPTION_SIMPLE): Remove.
5863 (windows_nat::handle_ms_vc_exception): New function.
5864 (handle_exception): Move to nat/windows-nat.c.
5865 (get_windows_debug_event): Update.
5866 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
5868 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
5869 (handle_exception_result): Move from windows-nat.c.
5870 (handle_exception): Declare.
5871 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
5872 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
5875 2020-04-08 Tom Tromey <tromey@adacore.com>
5877 * windows-nat.c (exception_count, event_count): Remove.
5878 (handle_exception, get_windows_debug_event)
5879 (do_initial_windows_stuff): Update.
5881 2020-04-08 Tom Tromey <tromey@adacore.com>
5883 * windows-nat.c (windows_nat::handle_load_dll)
5884 (windows_nat::handle_unload_dll): Rename. No longer static.
5885 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
5888 2020-04-08 Tom Tromey <tromey@adacore.com>
5890 * complaints.h (stop_whining): Declare at top-level.
5891 (complaint): Don't declare stop_whining.
5893 2020-04-08 Tom Tromey <tromey@adacore.com>
5895 * windows-nat.c (windows_nat::handle_output_debug_string):
5896 Rename. No longer static.
5897 * nat/windows-nat.h (handle_output_debug_string): Declare.
5899 2020-04-08 Tom Tromey <tromey@adacore.com>
5901 * windows-nat.c (current_process_handle, current_process_id)
5902 (main_thread_id, last_sig, current_event, last_wait_event)
5903 (current_windows_thread, desired_stop_thread_id, pending_stops)
5904 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
5905 (display_selectors, fake_create_process)
5906 (get_windows_debug_event): Update.
5907 * nat/windows-nat.h (current_process_handle, current_process_id)
5908 (main_thread_id, last_sig, current_event, last_wait_event)
5909 (current_windows_thread, desired_stop_thread_id, pending_stops)
5910 (struct pending_stop, siginfo_er): Move from windows-nat.c.
5911 * nat/windows-nat.c (current_process_handle, current_process_id)
5912 (main_thread_id, last_sig, current_event, last_wait_event)
5913 (current_windows_thread, desired_stop_thread_id, pending_stops)
5914 (siginfo_er): New globals. Move from windows-nat.c.
5916 2020-04-08 Tom Tromey <tromey@adacore.com>
5918 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
5919 (handle_load_dll): Update.
5920 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
5922 2020-04-08 Tom Tromey <tromey@adacore.com>
5924 * windows-nat.c (enum thread_disposition_type): Move to
5926 (windows_nat::thread_rec): Rename from thread_rec. No longer
5928 (windows_add_thread, windows_nat_target::fetch_registers)
5929 (windows_nat_target::store_registers, handle_exception)
5930 (windows_nat_target::resume, get_windows_debug_event)
5931 (windows_nat_target::get_tib_address)
5932 (windows_nat_target::thread_name)
5933 (windows_nat_target::thread_alive): Update.
5934 * nat/windows-nat.h (enum thread_disposition_type): Move from
5936 (thread_rec): Declare.
5938 2020-04-08 Tom Tromey <tromey@adacore.com>
5940 * windows-nat.c: Add "using namespace".
5941 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
5942 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
5944 2020-04-08 Tom Tromey <tromey@adacore.com>
5946 * nat/windows-nat.h (struct windows_thread_info): Declare
5948 * nat/windows-nat.c (~windows_thread_info): New.
5950 2020-04-08 Tom Tromey <tromey@adacore.com>
5953 * windows-nat.c (current_event): Update comment.
5954 (last_wait_event, desired_stop_thread_id): New globals.
5955 (struct pending_stop): New.
5956 (pending_stops): New global.
5957 (windows_nat_target) <stopped_by_sw_breakpoint>
5958 <supports_stopped_by_sw_breakpoint>: New methods.
5959 (windows_fetch_one_register): Add assertions. Adjust PC.
5960 (windows_continue): Handle pending stops. Suspend other threads
5961 when stepping. Use last_wait_event
5962 (wait_for_debug_event): New function.
5963 (get_windows_debug_event): Use wait_for_debug_event. Handle
5964 pending stops. Queue spurious stops.
5965 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
5966 (windows_nat_target::kill): Use wait_for_debug_event.
5967 * nat/windows-nat.h (struct windows_thread_info)
5968 <stopped_at_software_breakpoint>: New field.
5969 * nat/windows-nat.c (windows_thread_info::resume): Clear
5970 stopped_at_software_breakpoint.
5972 2020-04-08 Tom Tromey <tromey@adacore.com>
5974 * windows-nat.c (enum thread_disposition_type): New.
5975 (thread_rec): Replace "get_context" parameter with "disposition";
5977 (windows_add_thread, windows_nat_target::fetch_registers)
5978 (windows_nat_target::store_registers, handle_exception)
5979 (windows_nat_target::resume, get_windows_debug_event)
5980 (windows_nat_target::get_tib_address)
5981 (windows_nat_target::thread_name)
5982 (windows_nat_target::thread_alive): Update.
5984 2020-04-08 Tom Tromey <tromey@adacore.com>
5986 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
5987 (windows_continue): Use windows_continue::resume.
5988 * nat/windows-nat.h (struct windows_thread_info) <suspend,
5989 resume>: Declare new methods.
5990 * nat/windows-nat.c: New file.
5991 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
5993 2020-04-08 Tom Tromey <tromey@adacore.com>
5995 * windows-nat.c (windows_add_thread, windows_delete_thread)
5996 (windows_nat_target::fetch_registers)
5997 (windows_nat_target::store_registers, fake_create_process)
5998 (windows_nat_target::resume, windows_nat_target::resume)
5999 (get_windows_debug_event, windows_nat_target::wait)
6000 (windows_nat_target::pid_to_str)
6001 (windows_nat_target::get_tib_address)
6002 (windows_nat_target::get_ada_task_ptid)
6003 (windows_nat_target::thread_name)
6004 (windows_nat_target::thread_alive): Use lwp, not tid.
6006 2020-04-08 Tom Tromey <tromey@adacore.com>
6008 * windows-nat.c (handle_exception)
6009 (windows_nat_target::thread_name): Update.
6010 * nat/windows-nat.h (windows_thread_info): Remove destructor.
6011 <name>: Now unique_xmalloc_ptr.
6013 2020-04-08 Tom Tromey <tromey@adacore.com>
6015 * windows-nat.c (thread_rec)
6016 (windows_nat_target::fetch_registers): Update.
6017 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
6019 <debug_registers_changed, reload_context>: Now bool.
6021 2020-04-08 Tom Tromey <tromey@adacore.com>
6023 * windows-nat.c (windows_add_thread): Use new.
6024 (windows_init_thread_list, windows_delete_thread): Use delete.
6025 (get_windows_debug_event): Update.
6026 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
6027 destructor, and initializers.
6029 2020-04-08 Tom Tromey <tromey@adacore.com>
6031 * windows-nat.c (struct windows_thread_info): Remove.
6032 * nat/windows-nat.h: New file.
6034 2020-04-08 Tom Tromey <tromey@adacore.com>
6036 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
6037 (thread_rec, windows_add_thread, windows_delete_thread)
6038 (windows_continue): Update.
6040 2020-04-08 Tom Tromey <tromey@adacore.com>
6042 * windows-nat.c (struct windows_thread_info): Remove typedef.
6043 (thread_head): Remove.
6044 (thread_list): New global.
6045 (thread_rec, windows_add_thread, windows_init_thread_list)
6046 (windows_delete_thread, windows_continue): Update.
6048 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6050 * windows-tdep.h (windows_init_abi): Add comment.
6051 (cygwin_init_abi): New declaration.
6052 * windows-tdep.c: Split signal enumeration in two, one for
6053 Windows and one for Cygwin.
6054 (windows_gdb_signal_to_target): Only deal with signal of the
6056 (cygwin_gdb_signal_to_target): New function.
6057 (windows_init_abi): Rename to windows_init_abi_common, don't set
6058 gdb_signal_to_target gdbarch method. Add new new function with
6060 (cygwin_init_abi): New function.
6061 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
6062 comment. Don't call windows_init_abi.
6063 (amd64_windows_init_abi): Add comment, call windows_init_abi.
6064 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
6065 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
6066 i386_windows_init_abi_common, don't call windows_init_abi. Add
6067 a new function of this name.
6068 (i386_cygwin_init_abi): New function.
6069 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
6072 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6074 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
6076 (dwarf2_read_gdb_index): Update.
6078 2020-04-07 Kamil Rytarowski <n54@gmx.com>
6080 * nbsd-tdep.c: Include "objfiles.h".
6081 (nbsd_skip_solib_resolver): New.
6082 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
6084 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6086 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
6087 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
6088 with DW_LLE_base_addressx are being emitted in DWARFv5.
6089 Add the newly added kind DW_LOC_OFFSET_PAIR also.
6090 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
6093 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6095 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
6096 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
6097 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
6098 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
6099 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
6100 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
6101 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
6104 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6106 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
6107 (read_loclist_index): New function definition.
6108 (lookup_loclist_base): New function definition.
6109 (read_loclist_header): New function definition.
6110 (dwarf2_cu): Add loclist_base and loclist_header field.
6111 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
6112 (read_full_die_1): Read the value of DW_AT_loclists_base.
6113 (read_attribute_reprocess): Handle DW_FORM_loclistx.
6114 (read_attribute_value): Handle DW_FORM_loclistx.
6115 (skip_one_die): Handle DW_FORM_loclistx.
6116 (loclist_header): New structure declaration.
6117 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
6119 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
6121 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
6122 constructor. Remove `addr` parameter from other constructor and
6123 add `per_cu` parameter.
6124 * dwarf2/read.c (create_partial_symtab): Update.
6126 2020-04-07 Tom de Vries <tdevries@suse.de>
6129 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
6130 (partial_die_info::fixup): Inherit has_const_value.
6132 2020-04-07 Tom de Vries <tdevries@suse.de>
6134 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
6135 symbols without address.
6137 2020-04-06 Kamil Rytarowski <n54@gmx.com>
6139 * nbsd-nat.h (struct thread_info): Add forward declaration.
6140 (nbsd_nat_target::thread_alive): Add.
6141 (nbsd_nat_target::thread_name): Likewise.
6142 (nbsd_nat_target::update_thread_list): Likewise.
6143 (update_thread_list::post_attach): Likewise.
6144 (post_attach::pid_to_str): Likewise.
6145 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
6146 (nbsd_thread_lister): Add.
6147 (nbsd_nat_target::thread_alive): Likewise.
6148 (nbsd_nat_target::thread_name): Likewise.
6149 (nbsd_add_threads): Likewise.
6150 (update_thread_list::post_attach): Likewise.
6151 (nbsd_nat_target::update_thread_list): Likewise.
6152 (post_attach::pid_to_str): Likewise.
6154 2020-04-06 Tom Tromey <tromey@adacore.com>
6156 * ada-valprint.c (print_variant_part): Extract the variant field.
6157 (print_field_values): Use the field as the outer value when
6160 2020-04-06 Tom Tromey <tromey@adacore.com>
6162 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
6163 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
6164 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
6165 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
6166 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
6168 2020-04-06 Tom Tromey <tromey@adacore.com>
6170 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
6173 2020-04-06 Kamil Rytarowski <n54@gmx.com>
6175 * nbsd-tdep.c: Include "gdbarch.h".
6176 Define enum with NetBSD signal numbers.
6177 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
6178 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
6179 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
6180 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
6181 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
6182 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
6183 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
6184 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
6185 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
6186 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
6187 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
6188 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
6190 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
6193 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
6195 2020-04-03 Tom Tromey <tromey@adacore.com>
6197 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
6198 Read constant block.
6200 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6202 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
6203 (gdb_bfd_get_full_section_contents): New declaration.
6204 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
6205 * windows-tdep.c (is_linked_with_cygwin_dll): Use
6206 gdb_bfd_get_full_section_contents.
6208 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6210 * exec.c (build_section_table): Replace internal_error with
6212 (section_table_xfer_memory_partial): Likewise.
6213 * mdebugread.c (parse_partial_symbols): Likewise.
6214 * psymtab.c (lookup_partial_symbol): Likewise.
6215 * utils.c (wrap_here): Likewise.
6217 2020-04-02 Tom Tromey <tromey@adacore.com>
6219 * f-lang.c (build_fortran_types): Use arch_type to initialize
6220 builtin_complex_s32 in the TYPE_CODE_ERROR case.
6222 2020-04-02 Tom Tromey <tromey@adacore.com>
6224 * dwarf2/read.c (partial_die_info::read): Do not create a vector
6227 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
6228 Bernd Edlinger <bernd.edlinger@hotmail.de>
6229 Tom Tromey <tromey@adacore.com>
6231 * buildsym.c (buildsym_compunit::record_line): Remove
6234 2020-04-02 Tom de Vries <tdevries@suse.de>
6237 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
6239 2020-04-02 Tom de Vries <tdevries@suse.de>
6241 * dwarf2/read.c (dwarf2_gdb_index_functions,
6242 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
6244 * psymtab.c (psym_lookup_global_symbol_language): New function.
6245 (psym_functions): Init psym_lookup_global_symbol_language with
6246 psym_lookup_global_symbol_language.
6247 * symfile-debug.c (debug_sym_quick_functions): Init
6248 lookup_global_symbol_language with NULL.
6249 * symfile.c (set_initial_language): Remove fixme comment.
6250 * symfile.h (struct quick_symbol_functions): Add
6251 lookup_global_symbol_language.
6252 * symtab.c (find_quick_global_symbol_language): New function.
6253 (find_main_name): Use find_quick_global_symbol_language.
6255 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
6257 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
6259 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6261 * buildsym.c (record_line): Fix undefined behavior and preserve
6264 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6266 * buildsym.c (record_line): Fix the resizing condition.
6268 2020-04-01 Tom Tromey <tom@tromey.com>
6270 * value.h (value_literal_complex): Add comment.
6271 * valops.c (value_literal_complex): Refer to value.h.
6273 2020-04-01 Tom Tromey <tom@tromey.com>
6275 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
6276 (scalar_type): New rule, from typebase.
6277 (typebase): Use scalar_type. Recognize complex types.
6278 (field_name): Handle FLOAT_KEYWORD.
6279 (ident_tokens): Add _Complex and __complex__.
6281 2020-04-01 Tom Tromey <tom@tromey.com>
6284 * valarith.c (promotion_type, complex_binop): New functions.
6285 (scalar_binop): Handle complex numbers. Use promotion_type.
6286 (value_pos, value_neg, value_complement): Handle complex numbers.
6288 2020-04-01 Tom Tromey <tom@tromey.com>
6290 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
6291 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
6292 (parse_number): Handle complex numbers.
6294 2020-04-01 Tom Tromey <tom@tromey.com>
6296 * c-valprint.c (c_decorations): Change complex suffix to "i".
6298 2020-04-01 Tom Tromey <tom@tromey.com>
6300 * valprint.c (generic_value_print_complex): Use accessors.
6301 * value.h (value_real_part, value_imaginary_part): Declare.
6302 * valops.c (value_real_part, value_imaginary_part): New
6304 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
6306 2020-04-01 Tom Tromey <tom@tromey.com>
6308 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
6309 (read_range_type): Update.
6310 * mdebugread.c (basic_type): Update.
6311 * go-lang.c (build_go_types): Use init_complex_type.
6312 * gdbtypes.h (struct main_type) <complex_type>: New member.
6313 (init_complex_type): Update.
6314 (arch_complex_type): Don't declare.
6315 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
6316 Make name if none given. Use alloc_type_copy. Look for cached
6318 (arch_complex_type): Remove.
6319 (gdbtypes_post_init): Use init_complex_type.
6320 * f-lang.c (build_fortran_types): Use init_complex_type.
6321 * dwarf2/read.c (read_base_type): Update.
6322 * d-lang.c (build_d_types): Use init_complex_type.
6323 * ctfread.c (read_base_type): Update.
6325 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6327 * infrun.c (stop_all_threads): Update assertion, plus when
6328 stopping threads, take into account that we might be trying
6329 to stop an all-stop target.
6330 (stop_waiting): Call 'stop_all_threads' if there exists a
6333 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6335 * target.h (exists_non_stop_target): New function declaration.
6336 * target.c (exists_non_stop_target): New function.
6338 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
6341 * eval.c (is_integral_or_integral_reference): New function.
6342 (evaluate_subexp_standard): Allow integer references in
6345 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6347 * remote.c (remote_target::remote_parse_stop_reply): Remove the
6348 check for no ptid in the stop reply when the target is non-stop.
6350 2020-04-01 Tom Tromey <tromey@adacore.com>
6352 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
6353 "name" parameter to rvalue reference. Initialize m_name_holder.
6354 <lookup_name_info>: New overloads.
6355 <name>: Return gdb::string_view.
6356 <c_str>: New method.
6357 <make_ignore_params>: Update.
6358 <search_name_hash>: Update.
6359 <language_lookup_name>: Return const char *.
6360 <m_name>: Change type.
6361 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
6362 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
6363 (lookup_name_info::match_any): Update.
6364 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
6366 * minsyms.c (linkage_name_str): Update.
6367 * language.c (default_symbol_name_matcher): Update.
6368 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
6370 * ada-lang.c (ada_fold_name): Change parameter to string_view.
6371 (ada_lookup_name_info::ada_lookup_name_info): Update.
6372 (literal_symbol_name_matcher): Update.
6374 2020-04-01 Tom Tromey <tromey@adacore.com>
6376 * psymtab.c (psymtab_search_name): Remove function.
6377 (psym_lookup_symbol): Create search name and lookup name here.
6378 (lookup_partial_symbol): Remove "name" parameter; add
6380 (psym_expand_symtabs_for_function): Update.
6382 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
6385 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
6387 2020-03-31 Tom Tromey <tromey@adacore.com>
6389 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
6392 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
6394 * features/riscv/32bit-csr.xml: Regenerated.
6395 * features/riscv/64bit-csr.xml: Regenerated.
6397 2020-03-30 Tom Tromey <tromey@adacore.com>
6399 * ada-valprint.c (print_variant_part): Update.
6400 * ada-lang.h (ada_which_variant_applies): Update.
6401 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
6402 outer_valaddr parameters; replace with "outer" value parameter.
6403 (to_fixed_variant_branch_type): Update.
6405 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6407 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
6408 <list>. Remove inclusion of observable.h.
6409 (PPC_DEBUG_CURRENT_VERSION): Move up define.
6410 (struct arch_lwp_info): New struct.
6411 (class ppc_linux_dreg_interface): New class.
6412 (struct ppc_linux_process_info): New struct.
6413 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
6414 <low_new_clone, low_forget_process, low_prepare_to_resume>
6415 <copy_thread_dreg_state, mark_thread_stale>
6416 <mark_debug_registers_changed, register_hw_breakpoint>
6417 <clear_hw_breakpoint, register_wp, clear_wp>
6418 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
6419 <num_memory_accesses, get_trigger_type>
6420 <create_watchpoint_request, hwdebug_point_cmp>
6421 <init_arch_lwp_info, get_arch_lwp_info>
6422 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
6424 <struct ptid_hash>: New inner struct.
6425 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
6427 (saved_dabr_value, hwdebug_info, max_slots_number)
6428 (struct hw_break_tuple, struct thread_points, ppc_threads)
6429 (have_ptrace_hwdebug_interface)
6430 (hwdebug_find_thread_points_by_tid)
6431 (hwdebug_insert_point, hwdebug_remove_point): Remove.
6432 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
6433 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
6434 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
6435 use m_dreg_interface.
6436 (hwdebug_point_cmp): Change to...
6437 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
6438 reference arguments instead of pointers.
6439 (ppc_linux_nat_target::ranged_break_num_registers): Use
6441 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
6442 m_dreg_interface. Call register_hw_breakpoint.
6443 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
6444 m_dreg_interface. Call clear_hw_breakpoint.
6445 (get_trigger_type): Change to...
6446 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
6448 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
6449 use m_dreg_interface. Call register_hw_breakpoint.
6450 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
6451 use m_dreg_interface. Call clear_hw_breakpoint.
6452 (can_use_watchpoint_cond_accel): Change to...
6453 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
6454 method. Update comment, use m_dreg_interface and
6456 (calculate_dvc): Change to...
6457 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
6459 (num_memory_accesses): Change to...
6460 (ppc_linux_nat_target::num_memory_accesses): ...this method.
6461 (check_condition): Change to...
6462 (ppc_linux_nat_target::check_condition): ...this method.
6463 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
6464 comment, use m_dreg_interface.
6465 (create_watchpoint_request): Change to...
6466 (ppc_linux_nat_target::create_watchpoint_request): ...this
6467 method. Use m_dreg_interface.
6468 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
6469 m_dreg_interface. Call register_hw_breakpoint or register_wp.
6470 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
6471 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
6472 (ppc_linux_nat_target::low_forget_process)
6473 (ppc_linux_nat_target::low_new_fork)
6474 (ppc_linux_nat_target::low_new_clone)
6475 (ppc_linux_nat_target::low_delete_thread)
6476 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
6477 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
6478 only call mark_thread_stale.
6479 (ppc_linux_thread_exit): Remove.
6480 (ppc_linux_nat_target::stopped_data_address): Change to...
6481 (ppc_linux_nat_target::low_stopped_data_address): This. Add
6482 comment, use m_dreg_interface and m_thread_hw_breakpoints.
6483 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
6484 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
6485 comment. Call low_stopped_data_address.
6486 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
6488 (ppc_linux_nat_target::masked_watch_num_registers): Use
6490 (ppc_linux_nat_target::copy_thread_dreg_state)
6491 (ppc_linux_nat_target::mark_thread_stale)
6492 (ppc_linux_nat_target::mark_debug_registers_changed)
6493 (ppc_linux_nat_target::register_hw_breakpoint)
6494 (ppc_linux_nat_target::clear_hw_breakpoint)
6495 (ppc_linux_nat_target::register_wp)
6496 (ppc_linux_nat_target::clear_wp)
6497 (ppc_linux_nat_target::init_arch_lwp_info)
6498 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
6499 (_initialize_ppc_linux_nat): Remove observer callback.
6501 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6503 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
6504 (ppc_linux_nat_target::auxv_parse)
6505 (ppc_linux_nat_target::read_description)
6506 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
6509 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6511 * linux-nat.h (low_new_clone): New method.
6512 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
6514 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6516 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
6517 (dbx_expand_psymtab): ... this.
6518 (start_psymtab): Update.
6519 * mdebugread.c (psymtab_to_symtab_1): Rename to...
6520 (mdebug_expand_psymtab): ... this.
6521 (parse_partial_symbols): Update.
6522 (new_psymtab): Update.
6523 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
6524 (xcoff_expand_psymtab): ... this.
6525 (xcoff_start_psymtab): Update.
6527 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6529 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
6530 <expand_dependencies>: ... this.
6531 * psymtab.c (partial_symtab::read_dependencies): Rename to...
6532 (partial_symtab::expand_dependencies): ... this.
6533 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
6535 (dwarf2_psymtab::expand_psymtab): Update.
6536 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
6537 * mdebugread.c (psymtab_to_symtab_1): Update.
6538 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
6540 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6542 * psympriv.h (discard_psymtab): Remove.
6543 * dbxread.c (dbx_end_psymtab): Update.
6544 * xcoffread.c (xcoff_end_psymtab): Update.
6546 2020-03-28 Tom Tromey <tom@tromey.com>
6548 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
6551 2020-03-28 Tom Tromey <tom@tromey.com>
6553 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
6555 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
6557 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
6559 2020-03-26 John Baldwin <jhb@FreeBSD.org>
6561 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
6563 2020-03-26 Tom Tromey <tom@tromey.com>
6565 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
6566 (mark_common_block_symbol_computed, read_tag_string_type)
6567 (attr_to_dynamic_prop, read_subrange_type): Update.
6568 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
6569 to be methods on struct attribute.
6570 (skip_one_die, process_imported_unit_die, read_namespace_alias)
6571 (read_call_site_scope, partial_die_info::read)
6572 (partial_die_info::read, lookup_die_type, follow_die_ref):
6574 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
6575 from dwarf2_get_ref_die_offset.
6576 (attribute::constant_value): New method, from
6577 dwarf2_get_attr_constant_value.
6578 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
6580 <constant_value>: New method.
6582 2020-03-26 Tom Tromey <tom@tromey.com>
6584 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
6585 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
6586 (dwarf_type_encoding_name): Move to stringify.c.
6587 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
6588 * dwarf2/stringify.c: New file.
6589 * dwarf2/stringify.h: New file.
6591 2020-03-26 Tom Tromey <tom@tromey.com>
6593 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
6596 2020-03-26 Tom Tromey <tom@tromey.com>
6598 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
6600 * dwarf2/read.c (lookup_addr_base): Move to die.h.
6601 (lookup_ranges_base): Likewise.
6602 (read_cutu_die_from_dwo, read_full_die_1): Update.
6604 2020-03-26 Tom Tromey <tom@tromey.com>
6606 * dwarf2/read.c (read_import_statement, read_file_scope)
6607 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
6608 (read_lexical_block_scope, read_call_site_scope)
6609 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
6610 (handle_struct_member_die, process_structure_scope)
6611 (update_enumeration_type_from_children)
6612 (process_enumeration_scope, read_array_type, read_common_block)
6613 (read_namespace, read_module, read_subroutine_type): Update.
6614 (sibling_die): Remove.
6616 2020-03-26 Tom Tromey <tom@tromey.com>
6618 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
6619 (build_type_psymtabs_reader, read_structure_type)
6620 (read_enumeration_type, read_full_die_1): Update.
6621 (dwarf2_attr_no_follow): Move to die.h.
6622 * dwarf2/die.h (struct die_info) <attr>: New method.
6624 2020-03-26 Tom Tromey <tom@tromey.com>
6626 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
6627 <base_address>: Now an optional.
6628 (dwarf2_find_base_address, dwarf2_rnglists_process)
6629 (dwarf2_ranges_process, fill_in_loclist_baton)
6630 (dwarf2_symbol_mark_computed): Update.
6632 2020-03-26 Tom Tromey <tom@tromey.com>
6634 * dwarf2/read.c (struct die_info): Move to die.h.
6635 * dwarf2/die.h: New file.
6637 2020-03-26 Tom Tromey <tom@tromey.com>
6639 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
6641 (dwarf2_statement_list_fits_in_line_number_section_complaint):
6642 Move to line-header.c.
6643 (read_checked_initial_length_and_offset, read_formatted_entries):
6645 (dwarf_decode_line_header): Split into two.
6646 * dwarf2/line-header.c
6647 (dwarf2_statement_list_fits_in_line_number_section_complaint):
6649 (read_checked_initial_length_and_offset, read_formatted_entries):
6651 (dwarf_decode_line_header): New function, split from read.c.
6653 2020-03-26 Tom Tromey <tom@tromey.com>
6655 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
6657 * dwarf2/read.c (read_attribute_value): Update.
6658 (dwarf2_per_objfile::read_line_string): Rename from
6659 read_indirect_line_string.
6660 (read_formatted_entries): Update.
6662 2020-03-26 Tom Tromey <tom@tromey.com>
6664 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
6667 2020-03-26 Tom Tromey <tom@tromey.com>
6669 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
6671 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
6672 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
6675 2020-03-26 Tom Tromey <tom@tromey.com>
6677 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
6678 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
6679 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
6680 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
6682 2020-03-26 Tom Tromey <tom@tromey.com>
6684 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
6685 file_names_size, file_full_name, file_file_name>: Use const.
6686 <file_name_at, file_names>: Add const overload.
6687 * dwarf2/line-header.c (line_header::file_file_name)
6688 (line_header::file_full_name): Update.
6690 2020-03-26 Tom Tromey <tom@tromey.com>
6692 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
6693 (macro_start_file, consume_improper_spaces)
6694 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
6695 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
6696 (dwarf_decode_macros): Move to macro.c.
6697 * dwarf2/macro.c: New file.
6698 * dwarf2/macro.h: New file.
6699 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
6701 2020-03-26 Tom Tromey <tom@tromey.com>
6703 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
6705 * dwarf2/section.c: New method. From
6706 read_indirect_string_at_offset_from.
6707 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
6708 (read_indirect_string_at_offset_from): Move to section.c.
6709 (read_indirect_string_at_offset): Rewrite.
6710 (read_indirect_line_string_at_offset): Remove.
6711 (read_indirect_string, read_indirect_line_string)
6712 (dwarf_decode_macro_bytes): Update.
6714 2020-03-26 Tom Tromey <tom@tromey.com>
6716 * dwarf2/section.h (struct dwarf2_section_info)
6717 <overload_complaint>: Declare.
6718 (dwarf2_section_buffer_overflow_complaint): Don't declare.
6719 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
6720 Rename from dwarf2_section_buffer_overflow_complaint.
6721 * dwarf2/read.c (skip_one_die, partial_die_info::read)
6722 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
6724 2020-03-26 Tom Tromey <tom@tromey.com>
6726 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
6728 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
6730 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
6733 2020-03-26 Tom Tromey <tom@tromey.com>
6735 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
6737 2020-03-26 Tom Tromey <tom@tromey.com>
6739 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
6741 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
6743 (dwarf_decode_macros): Update.
6745 2020-03-26 Tom Tromey <tom@tromey.com>
6747 * dwarf2/read.c (read_attribute_value): Update.
6748 (read_indirect_string_from_dwz): Move to dwz.c; change into
6750 (dwarf_decode_macro_bytes): Update.
6751 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
6752 * dwarf2/dwz.c: New file.
6753 * Makefile.in (COMMON_SFILES): Add dwz.c.
6755 2020-03-26 Tom Tromey <tom@tromey.com>
6757 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
6758 * dwarf2/read.c: Add include.
6759 * dwarf2/index-write.c: Add include.
6760 * dwarf2/index-cache.c: Add include.
6761 * dwarf2/dwz.h: New file.
6763 2020-03-25 Tom Tromey <tom@tromey.com>
6765 * compile/compile-object-load.c (get_out_value_type): Mention
6766 correct symbol name in error message.
6768 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
6770 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
6772 2020-03-25 Tom de Vries <tdevries@suse.de>
6774 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
6775 * symmisc.c (dump_symtab_1): Print user and includes fields.
6776 (maintenance_info_symtabs): Same.
6778 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
6781 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
6782 (riscv_regcache_cooked_write): New function.
6783 (riscv_push_dummy_call): Use new function.
6784 (riscv_return_value): Likewise.
6786 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
6788 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
6789 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
6790 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
6791 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
6792 * infrun.c (follow_fork): Likewise.
6793 (follow_fork_inferior): Likewise.
6794 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
6795 * linux-nat.h (class linux_nat_target): Likewise.
6796 * remote.c (class remote_target) <follow_fork>: Likewise.
6797 (remote_target::follow_fork): Likewise.
6798 * target-delegates.c: Re-generate.
6799 * target.c (default_follow_fork): Likewise.
6800 (target_follow_fork): Likewise.
6801 * target.h (struct target_ops) <follow_fork>: Likewise.
6802 (target_follow_fork): Likewise.
6804 2020-03-24 Tom de Vries <tdevries@suse.de>
6806 * psymtab.c (maintenance_info_psymtabs): Print user field.
6808 2020-03-20 Tom Tromey <tromey@adacore.com>
6810 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
6812 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
6815 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
6817 * ptrace.m4: Don't check for ptrace declaration.
6818 * config.in: Re-generate.
6819 * configure: Re-generate.
6820 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
6823 2020-03-20 Kamil Rytarowski <n54@gmx.com>
6825 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
6827 * i386-bsd-nat.c (gdb_ptrace): Likewise.
6828 * sparc-nat.c (gdb_ptrace): Likewise.
6829 * x86-bsd-nat.c (gdb_ptrace): Likewise.
6831 2020-03-20 Tom Tromey <tromey@adacore.com>
6833 * c-exp.y (lex_one_token): Fix assert.
6835 2020-03-20 Tom Tromey <tromey@adacore.com>
6837 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
6838 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
6841 2020-03-20 Tom Tromey <tromey@adacore.com>
6843 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
6845 2020-03-20 Tom Tromey <tromey@adacore.com>
6847 * ada-valprint.c (print_variant_part): Remove parameters; switch
6849 (print_field_values): Likewise.
6850 (ada_val_print_struct_union): Likewise.
6851 (ada_value_print_1): Update.
6853 2020-03-20 Kamil Rytarowski <n54@gmx.com>
6855 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
6856 nbsd_nat_target instead of inf_ptrace_target.
6857 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6860 2020-03-20 Kamil Rytarowski <n54@gmx.com>
6862 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
6863 it to the ptrace call.
6864 * (store_registers): Likewise.
6866 2020-03-20 Kamil Rytarowski <n54@gmx.com>
6868 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
6869 it to the ptrace call.
6870 * (store_registers): Likewise.
6872 2020-03-19 Luis Machado <luis.machado@linaro.org>
6874 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
6875 valid, fetch vg value from ptrace.
6877 2020-03-19 Kamil Rytarowski <n54@gmx.com>
6878 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
6879 * inf-ptrace.c: Likewise.
6880 * (gdb_ptrace): Add.
6881 * (inf_ptrace_target::resume): Update.
6882 * (inf_ptrace_target::xfer_partial): Likewise.
6883 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
6884 * (inf_ptrace_peek_poke): Update.
6886 2020-03-19 Kamil Rytarowski <n54@gmx.com>
6888 * x86-bsd-nat.c (gdb_ptrace): New.
6889 * (x86bsd_dr_set): Add new argument `ptid'.
6890 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
6891 x86bsd_dr_set_addr): Update.
6893 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6895 * remote.c (remote_target::process_stop_reply): Handle events for
6896 all threads differently.
6898 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6900 * completer.c (completion_tracker::remove_completion): Define new
6902 * completer.h (completion_tracker::remove_completion): Declare new
6904 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
6905 when adding a C++ function symbol.
6907 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6909 * completer.c (completion_tracker::completion_hash_entry): Define
6911 (advance_to_filename_complete_word_point): Call
6912 recompute_lowest_common_denominator.
6913 (completion_tracker::completion_tracker): Call discard_completions
6914 to setup the hash table.
6915 (completion_tracker::discard_completions): Allow for being called
6916 from the constructor, pass new equal function, and element deleter
6917 when constructing the hash table. Initialise new class member
6919 (completion_tracker::maybe_add_completion): Remove use of
6920 m_entries_vec, and store more information into m_entries_hash.
6921 (completion_tracker::recompute_lcd_visitor): New function, most
6922 content taken from...
6923 (completion_tracker::recompute_lowest_common_denominator):
6924 ...here, this now just visits each item in the hash calling the
6926 (completion_tracker::build_completion_result): Remove use of
6927 m_entries_vec, call recompute_lowest_common_denominator.
6928 * completer.h (completion_tracker::have_completions): Remove use
6930 (completion_tracker::completion_hash_entry): Declare new class.
6931 (completion_tracker::recompute_lowest_common_denominator): Change
6933 (completion_tracker::recompute_lcd_visitor): Declare new function.
6934 (completion_tracker::m_entries_vec): Delete.
6935 (completion_tracker::m_entries_hash): Initialize to NULL.
6936 (completion_tracker::m_lowest_common_denominator_valid): New
6938 (completion_tracker::m_lowest_common_denominator_max_length): New
6941 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6943 * regformats/regdef.h: Put reg in gdb namespace.
6945 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6947 * i386-bsd-nat.c (gdb_ptrace): New.
6948 * (i386bsd_fetch_inferior_registers,
6949 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6950 * (i386bsd_fetch_inferior_registers,
6951 i386bsd_store_inferior_registers) Use gdb_ptrace.
6953 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6955 * amd64-bsd-nat.c (gdb_ptrace): New.
6956 * (amd64bsd_fetch_inferior_registers,
6957 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6958 * (amd64bsd_fetch_inferior_registers,
6959 amd64bsd_store_inferior_registers) Use gdb_ptrace.
6961 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6963 * user-regs.c (user_reg::read): Rename to...
6964 (user_reg::xread): ...this.
6965 * (append_user_reg): Rename argument `read' to `xread'.
6966 * (user_reg_add_builtin): Likewise.
6967 * (user_reg_add): Likewise.
6968 * (value_of_user_reg): Likewise.
6970 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6972 * sparc-nat.c (gdb_ptrace): New.
6973 * sparc-nat.c (sparc_fetch_inferior_registers)
6974 (sparc_store_inferior_registers) Remove obsolete comment.
6975 * sparc-nat.c (sparc_fetch_inferior_registers)
6976 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
6977 * sparc-nat.c (sparc_fetch_inferior_registers)
6978 (sparc_store_inferior_registers) Use gdb_ptrace.
6980 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6982 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
6983 it to the ptrace call.
6984 * sh-nbsd-nat.c (store_registers): Likewise.
6986 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6988 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
6989 nbsd_nat_target instead of inf_ptrace_target.
6990 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6993 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6995 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
6997 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6999 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
7001 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
7003 2020-03-17 Tom de Vries <tdevries@suse.de>
7006 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
7008 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
7010 (process_imported_unit_die): Skip import of c++ CUs.
7012 2020-03-16 Tom Tromey <tom@tromey.com>
7014 * p-valprint.c (pascal_object_print_value): Initialize
7017 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
7018 Shahab Vahedi <shahab@synopsys.com>
7020 * Makefile.in: Add arch/arc.o
7021 * configure.tgt: Likewise.
7022 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
7023 (_initialize_arc_tdep): Don't initialize old target descriptions.
7024 (arc_read_description): New function to cache target descriptions.
7025 * arc-tdep.h (arc_read_description): Add proto type.
7026 * arch/arc.c: New file.
7027 * arch/arc.h: Likewise.
7028 * features/Makefile: Replace old target descriptions with new.
7029 * features/arc-arcompact.c: Remove.
7030 * features/arc-arcompact.xml: Likewise.
7031 * features/arc-v2.c: Likewise
7032 * features/arc-v2.xml: Likewise
7033 * features/arc/aux-arcompact.xml: New file.
7034 * features/arc/aux-v2.xml: Likewise.
7035 * features/arc/core-arcompact.xml: Likewise.
7036 * features/arc/core-v2.xml: Likewise.
7037 * features/arc/aux-arcompact.c: Generate.
7038 * features/arc/aux-v2.c: Likewise.
7039 * features/arc/core-arcompact.c: Likewise.
7040 * features/arc/core-v2.c: Likewise.
7041 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
7043 2020-03-16 Tom Tromey <tromey@adacore.com>
7046 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
7047 putting value into bcache.
7049 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7052 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
7054 (amd64_windows_init_abi_common): ... this. Don't set size of
7056 (amd64_windows_init_abi): New function.
7057 (amd64_cygwin_init_abi): New function.
7058 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
7060 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
7063 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7065 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
7066 * windows-tdep.c (CYGWIN_DLL_NAME): New.
7067 (pe_import_directory_entry): New struct type.
7068 (is_linked_with_cygwin_dll): New function.
7069 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
7070 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
7071 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
7073 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7075 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
7076 i386_cygwin_core_osabi_sniffer.
7078 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7080 * i386-cygwin-tdep.c: Rename to...
7081 * i386-windows-tdep.c: ... this.
7082 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
7083 i386-windows-tdep.c.
7084 * configure.tgt: Likewise.
7086 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7088 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
7089 * osabi.c (gdb_osabi_names): Add "Windows".
7090 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
7091 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
7092 (i386_cygwin_core_osabi_sniffer): New function, extracted from
7093 i386_cygwin_osabi_sniffer.
7094 (_initialize_i386_cygwin_tdep): Register OS ABI
7095 GDB_OSABI_WINDOWS for i386.
7096 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
7097 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
7098 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
7100 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
7101 when the target matches '*-*-mingw*'.
7103 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7105 * defs.h (enum gdb_osabi): Move to...
7106 * osabi.h (enum gdb_osabi): ... here.
7107 * gdbarch.sh: Include osabi.h in gdbarch.h.
7108 * gdbarch.h: Re-generate.
7110 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7112 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
7114 (_initialize_amd64_windows_tdep): Register osabi sniffer.
7116 2020-03-14 Tom Tromey <tom@tromey.com>
7118 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
7120 (c_type_print_modifier): Likewise. Add "language" parameter.
7121 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
7122 (c_type_print_base_1): Update.
7123 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
7125 * type-stack.c (type_stack::insert): Handle tp_atomic and
7127 (type_stack::follow_type_instance_flags): Likewise.
7128 (type_stack::follow_types): Likewise. Merge type-following code.
7129 * c-exp.y (RESTRICT, ATOMIC): New tokens.
7130 (space_identifier, cv_with_space_id)
7131 (const_or_volatile_or_space_identifier_noopt)
7132 (const_or_volatile_or_space_identifier): Remove.
7133 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
7135 (ptr_operator, typebase): Update.
7136 (enum token_flag) <FLAG_C>: New constant.
7137 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
7139 (lex_one_token): Handle FLAG_C.
7141 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7143 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
7144 it to the ptrace call.
7145 * m68k-bsd-nat.c (store_registers): Likewise.
7147 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7149 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
7151 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
7152 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
7153 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
7155 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7157 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
7158 nbsd_nat_target instead of inf_ptrace_target.
7159 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7162 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7164 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
7167 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7169 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
7170 it to the ptrace call.
7171 * alpha-bsd-nat.c (store_registers): Likewise.
7173 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7175 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
7177 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
7178 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
7179 fill_fpregset): Likewise.
7181 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7183 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
7184 nbsd_nat_target instead of inf_ptrace_target.
7185 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7188 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7190 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
7193 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7195 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
7196 it to the ptrace call.
7197 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
7198 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
7199 * arm-nbsd-nat.c (store_register): Likewise.
7200 * arm-nbsd-nat.c (store_regs): Likewise.
7201 * arm-nbsd-nat.c (store_fp_register): Likewise.
7202 * arm-nbsd-nat.c (store_fp_regs): Likewise.
7204 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7206 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
7207 nbsd_nat_target instead of inf_ptrace_target.
7208 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7211 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7213 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
7214 it to the ptrace call.
7215 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
7217 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7219 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
7220 it to the ptrace call.
7221 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
7223 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7225 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
7227 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
7229 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7231 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
7232 instead of inf_ptrace_target.
7233 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7236 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7238 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7241 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7243 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7246 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7248 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
7251 2020-03-13 Tom Tromey <tom@tromey.com>
7253 * value.h (val_print): Don't declare.
7254 * valprint.h (val_print_array_elements)
7255 (val_print_scalar_formatted, generic_val_print): Don't declare.
7256 * valprint.c (generic_val_print_array): Take a struct value.
7257 (generic_val_print_ptr, generic_val_print_memberptr)
7258 (generic_val_print_bool, generic_val_print_int)
7259 (generic_val_print_char, generic_val_print_complex)
7260 (generic_val_print): Remove.
7261 (generic_value_print): Update.
7262 (do_val_print): Remove unused parameters. Don't call
7264 (val_print): Remove.
7265 (common_val_print): Update. Don't call value_check_printable.
7266 (val_print_scalar_formatted, val_print_array_elements): Remove.
7267 * rust-lang.c (rust_val_print): Remove.
7268 (rust_language_defn): Update.
7269 * p-valprint.c (pascal_val_print): Remove.
7270 (pascal_value_print_inner): Update.
7271 (pascal_object_print_val_fields, pascal_object_print_val):
7273 (pascal_object_print_static_field): Update.
7274 * p-lang.h (pascal_val_print): Don't declare.
7275 * p-lang.c (pascal_language_defn): Update.
7276 * opencl-lang.c (opencl_language_defn): Update.
7277 * objc-lang.c (objc_language_defn): Update.
7278 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
7279 * m2-lang.h (m2_val_print): Don't declare.
7280 * m2-lang.c (m2_language_defn): Update.
7281 * language.h (struct language_defn) <la_val_print>: Remove.
7282 * language.c (unk_lang_value_print_inner): Rename. Change
7284 (unknown_language_defn, auto_language_defn): Update.
7285 * go-valprint.c (go_val_print): Remove.
7286 * go-lang.h (go_val_print): Don't declare.
7287 * go-lang.c (go_language_defn): Update.
7288 * f-valprint.c (f_val_print): Remove.
7289 * f-lang.h (f_value_print): Don't declare.
7290 * f-lang.c (f_language_defn): Update.
7291 * d-valprint.c (d_val_print): Remove.
7292 * d-lang.h (d_value_print): Don't declare.
7293 * d-lang.c (d_language_defn): Update.
7294 * cp-valprint.c (cp_print_value_fields)
7295 (cp_print_value_fields_rtti, cp_print_value): Remove.
7296 (cp_print_static_field): Update.
7297 * c-valprint.c (c_val_print_array, c_val_print_ptr)
7298 (c_val_print_struct, c_val_print_union, c_val_print_int)
7299 (c_val_print_memberptr, c_val_print): Remove.
7300 * c-lang.h (c_val_print_array, cp_print_value_fields)
7301 (cp_print_value_fields_rtti): Don't declare.
7302 * c-lang.c (c_language_defn, cplus_language_defn)
7303 (asm_language_defn, minimal_language_defn): Update.
7304 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
7305 (ada_val_print_enum): Take a struct value.
7306 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
7307 (ada_val_print): Remove.
7308 (ada_value_print_1): Update.
7309 (printable_val_type): Remove.
7310 * ada-lang.h (ada_val_print): Don't declare.
7311 * ada-lang.c (ada_language_defn): Update.
7313 2020-03-13 Tom Tromey <tom@tromey.com>
7315 * valprint.c (do_val_print): Update.
7316 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
7318 (value_to_value_object_no_release): Declare.
7319 * python/py-value.c (value_to_value_object_no_release): New
7321 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
7323 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
7325 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
7327 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
7329 (gdbscm_apply_val_pretty_printer): Take a struct value.
7330 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
7332 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
7334 * extension-priv.h (struct extension_language_ops)
7335 <apply_val_pretty_printer>: Take a struct value.
7336 * cp-valprint.c (cp_print_value): Create a struct value.
7337 (cp_print_value): Update.
7339 2020-03-13 Tom Tromey <tom@tromey.com>
7341 * ada-valprint.c (print_field_values): Call common_val_print.
7343 2020-03-13 Tom Tromey <tom@tromey.com>
7345 * ada-valprint.c (val_print_packed_array_elements): Remove
7346 bitoffset and val parameters. Call common_val_print.
7347 (ada_val_print_string): Remove offset, address, and original_value
7349 (ada_val_print_array): Update.
7350 (ada_value_print_array): New function.
7351 (ada_value_print_1): Call it.
7353 2020-03-13 Tom Tromey <tom@tromey.com>
7355 * ada-valprint.c (ada_value_print): Use common_val_print.
7357 2020-03-13 Tom Tromey <tom@tromey.com>
7359 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
7361 2020-03-13 Tom Tromey <tom@tromey.com>
7363 * ada-valprint.c (ada_value_print_num): New function.
7364 (ada_value_print_1): Use it.
7366 2020-03-13 Tom Tromey <tom@tromey.com>
7368 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
7370 2020-03-13 Tom Tromey <tom@tromey.com>
7372 * ada-valprint.c (ada_value_print_ptr): New function.
7373 (ada_value_print_1): Use it.
7375 2020-03-13 Tom Tromey <tom@tromey.com>
7377 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
7378 call common_val_print.
7379 (ada_val_print_1): Update.
7380 (ada_value_print_1): New function.
7381 (ada_value_print_inner): Rewrite.
7383 2020-03-13 Tom Tromey <tom@tromey.com>
7385 * cp-valprint.c (cp_print_value_fields): Update.
7386 (cp_print_value): New function.
7388 2020-03-13 Tom Tromey <tom@tromey.com>
7390 * m2-valprint.c (m2_value_print_inner): Use
7391 cp_print_value_fields.
7392 * cp-valprint.c (cp_print_value_fields): New function.
7393 * c-valprint.c (c_value_print_struct): New function.
7394 (c_value_print_inner): Use c_value_print_struct.
7395 * c-lang.h (cp_print_value_fields): Declare.
7397 2020-03-13 Tom Tromey <tom@tromey.com>
7399 * c-valprint.c (c_value_print_array): New function.
7400 (c_value_print_inner): Use it.
7402 2020-03-13 Tom Tromey <tom@tromey.com>
7404 * c-valprint.c (c_value_print_memberptr): New function.
7405 (c_value_print_inner): Use it.
7407 2020-03-13 Tom Tromey <tom@tromey.com>
7409 * c-valprint.c (c_value_print_int): New function.
7410 (c_value_print_inner): Use it.
7412 2020-03-13 Tom Tromey <tom@tromey.com>
7414 * c-valprint.c (c_value_print_ptr): New function.
7415 (c_value_print_inner): Use it.
7417 2020-03-13 Tom Tromey <tom@tromey.com>
7419 * c-valprint.c (c_value_print_inner): Rewrite.
7421 2020-03-13 Tom Tromey <tom@tromey.com>
7423 * valprint.c (generic_value_print_complex): New function.
7424 (generic_value_print): Use it.
7426 2020-03-13 Tom Tromey <tom@tromey.com>
7428 * valprint.c (generic_val_print_float): Don't call
7429 val_print_scalar_formatted.
7430 (generic_val_print, generic_value_print): Update.
7432 2020-03-13 Tom Tromey <tom@tromey.com>
7434 * valprint.c (generic_value_print_char): New function
7435 (generic_value_print): Use it.
7437 2020-03-13 Tom Tromey <tom@tromey.com>
7439 * valprint.c (generic_value_print_int): New function.
7440 (generic_value_print): Use it.
7442 2020-03-13 Tom Tromey <tom@tromey.com>
7444 * valprint.c (generic_value_print_bool): New function.
7445 (generic_value_print): Use it.
7447 2020-03-13 Tom Tromey <tom@tromey.com>
7449 * valprint.c (generic_val_print_func): Simplify.
7450 (generic_val_print, generic_value_print): Update.
7452 2020-03-13 Tom Tromey <tom@tromey.com>
7454 * valprint.c (generic_val_print_flags): Remove.
7455 (generic_val_print, generic_value_print): Update.
7456 (val_print_type_code_flags): Add original_value parameter.
7458 2020-03-13 Tom Tromey <tom@tromey.com>
7460 * valprint.c (generic_val_print): Update.
7461 (generic_value_print): Update.
7462 * valprint.c (generic_val_print_enum): Don't call
7463 val_print_scalar_formatted.
7465 2020-03-13 Tom Tromey <tom@tromey.com>
7467 * valprint.c (generic_value_print): Call generic_value_print_ptr.
7468 * valprint.c (generic_value_print_ptr): New function.
7470 2020-03-13 Tom Tromey <tom@tromey.com>
7472 * valprint.c (generic_value_print): Rewrite.
7474 2020-03-13 Tom Tromey <tom@tromey.com>
7476 * p-valprint.c (pascal_object_print_value_fields)
7477 (pascal_object_print_value): New functions.
7479 2020-03-13 Tom Tromey <tom@tromey.com>
7481 * p-valprint.c (pascal_value_print_inner): Rewrite.
7483 2020-03-13 Tom Tromey <tom@tromey.com>
7485 * f-valprint.c (f_value_print_innner): Rewrite.
7487 2020-03-13 Tom Tromey <tom@tromey.com>
7489 * m2-valprint.c (m2_print_unbounded_array): New overload.
7490 (m2_print_unbounded_array): Update.
7491 (m2_print_array_contents): Take a struct value.
7492 (m2_value_print_inner): Rewrite.
7494 2020-03-13 Tom Tromey <tom@tromey.com>
7496 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
7497 (d_value_print_inner): New function.
7498 * d-lang.h (d_value_print_inner): Declare.
7499 * d-lang.c (d_language_defn): Use d_value_print_inner.
7501 2020-03-13 Tom Tromey <tom@tromey.com>
7503 * go-valprint.c (go_value_print_inner): New function.
7504 * go-lang.h (go_value_print_inner): Declare.
7505 * go-lang.c (go_language_defn): Use go_value_print_inner.
7507 2020-03-13 Tom Tromey <tom@tromey.com>
7509 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
7511 (rust_val_print): Rewrite.
7512 (rust_value_print_inner): New function, from rust_val_print.
7513 (rust_language_defn): Use rust_value_print_inner.
7515 2020-03-13 Tom Tromey <tom@tromey.com>
7517 * ada-valprint.c (ada_value_print_inner): New function.
7518 * ada-lang.h (ada_value_print_inner): Declare.
7519 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
7521 2020-03-13 Tom Tromey <tom@tromey.com>
7523 * f-valprint.c (f_value_print_innner): New function.
7524 * f-lang.h (f_value_print_innner): Declare.
7525 * f-lang.c (f_language_defn): Use f_value_print_innner.
7527 2020-03-13 Tom Tromey <tom@tromey.com>
7529 * p-valprint.c (pascal_value_print_inner): New function.
7530 * p-lang.h (pascal_value_print_inner): Declare.
7531 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
7533 2020-03-13 Tom Tromey <tom@tromey.com>
7535 * m2-valprint.c (m2_value_print_inner): New function.
7536 * m2-lang.h (m2_value_print_inner): Declare.
7537 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
7539 2020-03-13 Tom Tromey <tom@tromey.com>
7541 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
7542 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
7543 * c-valprint.c (c_value_print_inner): New function.
7544 * c-lang.h (c_value_print_inner): Declare.
7545 * c-lang.c (c_language_defn, cplus_language_defn)
7546 (asm_language_defn, minimal_language_defn): Use
7547 c_value_print_inner.
7549 2020-03-13 Tom Tromey <tom@tromey.com>
7551 * p-valprint.c (pascal_object_print_value_fields): Now static.
7552 * p-lang.h (pascal_object_print_value_fields): Don't declare.
7554 2020-03-13 Tom Tromey <tom@tromey.com>
7556 * c-valprint.c (c_val_print_array): Simplify.
7558 2020-03-13 Tom Tromey <tom@tromey.com>
7560 * valprint.c (value_print_array_elements): New function.
7561 * valprint.h (value_print_array_elements): Declare.
7563 2020-03-13 Tom Tromey <tom@tromey.com>
7565 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
7566 * mips-tdep.c (mips_print_register): Use
7567 value_print_scalar_formatted.
7569 2020-03-13 Tom Tromey <tom@tromey.com>
7571 * valprint.h (value_print_scalar_formatted): Declare.
7572 * valprint.c (value_print_scalar_formatted): New function.
7574 2020-03-13 Tom Tromey <tom@tromey.com>
7576 * valprint.h (generic_value_print): Declare.
7577 * valprint.c (generic_value_print): New function.
7579 2020-03-13 Tom Tromey <tom@tromey.com>
7581 * valprint.c (do_val_print): Call la_value_print_inner, if
7583 * rust-lang.c (rust_language_defn): Update.
7584 * p-lang.c (pascal_language_defn): Update.
7585 * opencl-lang.c (opencl_language_defn): Update.
7586 * objc-lang.c (objc_language_defn): Update.
7587 * m2-lang.c (m2_language_defn): Update.
7588 * language.h (struct language_defn) <la_value_print_inner>: New
7590 * language.c (unknown_language_defn, auto_language_defn): Update.
7591 * go-lang.c (go_language_defn): Update.
7592 * f-lang.c (f_language_defn): Update.
7593 * d-lang.c (d_language_defn): Update.
7594 * c-lang.c (c_language_defn, cplus_language_defn)
7595 (asm_language_defn, minimal_language_defn): Update.
7596 * ada-lang.c (ada_language_defn): Update.
7598 2020-03-13 Tom Tromey <tom@tromey.com>
7600 * c-valprint.c (c_value_print): Use common_val_print.
7602 2020-03-13 Tom Tromey <tom@tromey.com>
7604 * cp-valprint.c (cp_print_static_field): Use common_val_print.
7606 2020-03-13 Tom Tromey <tom@tromey.com>
7608 * f-valprint.c (f77_print_array_1, f_val_print): Use
7611 2020-03-13 Tom Tromey <tom@tromey.com>
7613 * riscv-tdep.c (riscv_print_one_register_info): Use
7616 2020-03-13 Tom Tromey <tom@tromey.com>
7618 * mi/mi-main.c (output_register): Use common_val_print.
7620 2020-03-13 Tom Tromey <tom@tromey.com>
7622 * infcmd.c (default_print_one_register_info): Use
7625 2020-03-13 Tom Tromey <tom@tromey.com>
7627 * valprint.h (common_val_print_checked): Declare.
7628 * valprint.c (common_val_print_checked): New function.
7629 * stack.c (print_frame_arg): Use common_val_print_checked.
7631 2020-03-13 Tom Tromey <tom@tromey.com>
7633 * valprint.c (do_val_print): New function, from val_print.
7634 (val_print): Use do_val_print.
7635 (common_val_print): Use do_val_print.
7637 2020-03-13 Tom Tromey <tom@tromey.com>
7639 * valprint.c (value_print): Use scoped_value_mark.
7641 2020-03-13 Tom de Vries <tdevries@suse.de>
7644 * psymtab.c (partial_symtab::partial_symtab): Don't set
7645 globals_offset and statics_offset. Push element onto
7646 current_global_psymbols and current_static_psymbols stacks.
7647 (concat): New function.
7648 (end_psymtab_common): Set globals_offset and statics_offset. Pop
7649 element from current_global_psymbols and current_static_psymbols
7650 stacks. Concat popped elements to global_psymbols and
7652 (add_psymbol_to_list): Use current_global_psymbols and
7653 current_static_psymbols stacks.
7654 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
7655 current_static_psymbols fields.
7657 2020-03-12 Christian Biesinger <cbiesinger@google.com>
7659 * corelow.c (sniff_core_bfd): Remove.
7660 (class core_target) <m_core_vec>: Remove.
7661 (core_target::core_target): Update.
7662 (core_file_fns): Remove.
7663 (deprecated_add_core_fns): Remove.
7664 (default_core_sniffer): Remove.
7665 (sniff_core_bfd): Remove.
7666 (default_check_format): Remove.
7667 (gdb_check_format): Remove.
7668 (core_target_open): Update.
7669 (core_target::get_core_register_section): Update.
7670 (get_core_registers_cb): Update.
7671 (core_target::fetch_registers): Update.
7672 * gdbcore.h (struct core_fns): Remove.
7673 (deprecated_add_core_fns): Remove.
7674 (default_core_sniffer): Remove.
7675 (default_check_format): Remove.
7677 2020-03-12 Tom Tromey <tom@tromey.com>
7679 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
7681 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
7683 2020-03-12 Tom Tromey <tom@tromey.com>
7685 * remote.c (remote_target::download_tracepoint)
7686 (remote_target::enable_tracepoint)
7687 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
7688 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
7691 2020-03-12 Tom Tromey <tom@tromey.com>
7693 * symfile-mem.c: Update CORE_ADDR size assert.
7695 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
7697 * selftest.m4: Move to gdbsupport/.
7698 * acinclude.m4: Update path to selftest.m4.
7700 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
7702 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
7703 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
7704 gdbarch-selfselftests.c and selftest-arch.c.
7705 (SUBDIR_UNITTESTS_OBS): Rename to...
7706 (SELFTESTS_OBS): ... this.
7707 (COMMON_SFILES): Remove disasm-selftests.c and
7708 gdbarch-selftests.c.
7709 * configure.ac: Don't add selftest-arch.{c,o} to
7711 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
7712 preprocessor conditions.
7714 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
7716 * configure.ac: Don't source bfd/development.sh.
7717 * selftest.m4: Modify comment.
7718 * configure: Re-generate.
7720 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
7722 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
7723 not "true" or "false".
7724 * configure: Re-generate.
7726 2020-03-12 Christian Biesinger <cbiesinger@google.com>
7728 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
7729 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
7730 renamed to arm_nbsd_supply_gregset.
7731 (fetch_register): Update to call arm_nbsd_supply_gregset.
7732 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
7733 (arm_netbsd_nat_target::fetch_registers): Update.
7734 (fetch_elfcore_registers): Removed.
7735 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
7736 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
7737 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
7738 not require NetBSD system headers.
7739 (arm_nbsd_regset): New struct.
7740 (arm_nbsd_iterate_over_regset_sections): New function.
7741 (arm_netbsd_init_abi_common): Updated to call
7742 set_gdbarch_iterate_over_regset_sections.
7743 * arm-nbsd-tdep.h: New file.
7745 2020-03-11 Kevin Buettner <kevinb@redhat.com>
7747 * symtab.c (find_pc_sect_line): Add check which prevents infinite
7750 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
7752 * configure: Re-generate.
7754 2020-03-11 Tom Tromey <tromey@adacore.com>
7756 * ada-typeprint.c (print_choices): Fix comment.
7758 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
7760 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
7761 previous item in the list, when the list has no items.
7763 2020-03-11 Tom de Vries <tdevries@suse.de>
7765 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
7766 PROP_LOCLIST handling code.
7768 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
7770 * buildsym-legacy.c (record_line): Pass extra parameter to
7772 * buildsym.c (buildsym_compunit::record_line): Take an extra
7773 parameter, reduce duplication in the line table, and record the
7774 is_stmt flag in the line table.
7775 * buildsym.h (buildsym_compunit::record_line): Add extra
7777 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
7778 non-statement lines.
7779 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
7780 this to the symtab builder.
7781 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
7782 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
7783 through to dwarf_record_line_1.
7784 * infrun.c (process_event_stop_test): When stepping, don't stop at
7785 a non-statement instruction, and only refresh the step info when
7786 we land in the middle of a line's range. Also add an extra
7788 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
7790 * record-btrace.c (btrace_find_line_range): Only record lines
7791 marked as is-statement.
7792 * stack.c (frame_show_address): Show the frame address if we are
7793 in a non-statement sal.
7794 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
7795 (maintenance_print_one_line_table): Print a header for the is_stmt
7796 column, and include is_stmt information in the output.
7797 * symtab.c (find_pc_sect_line): Find lines marked as statements in
7798 preference to non-statements.
7799 (find_pcs_for_symtab_line): Prefer is-statement entries.
7800 (find_line_common): Likewise.
7801 * symtab.h (struct linetable_entry): Add is_stmt field.
7802 (struct symtab_and_line): Likewise.
7803 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
7804 arranging the line table.
7806 2020-03-07 Tom de Vries <tdevries@suse.de>
7808 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
7811 2020-03-07 Tom Tromey <tom@tromey.com>
7813 * valops.c (value_literal_complex): Remove obsolete comment.
7814 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
7817 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
7819 * infrun.h: Forward-declare thread_info.
7820 (set_step_info): Add thread_info parameter, add doc.
7821 * infrun.c (set_step_info): Add thread_info parameter, move doc
7823 * infrun.c (process_event_stop_test): Pass thread to
7825 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
7827 (prepare_one_step): Add thread_info parameter, pass it to
7828 set_step_frame and prepare_one_step (recursive) call.
7829 (step_1): Pass thread to prepare_one_step call.
7830 (step_command_fsm::should_stop): Pass thread to
7832 (until_next_fsm): Pass thread to set_step_frame call.
7833 (finish_command): Pass thread to set_step_info call.
7835 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
7837 * windows-tdep.c (windows_solib_create_inferior_hook):
7838 Check if inferior is running.
7840 2020-03-06 Tom de Vries <tdevries@suse.de>
7842 * NEWS: Fix "the the".
7845 2020-03-06 Tom de Vries <tdevries@suse.de>
7847 * psymtab.c (psymtab_to_symtab): Don't print "done.".
7849 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
7851 * .dir-locals.el: Add a comment referencing the other copies of
7854 2020-03-05 John Baldwin <jhb@FreeBSD.org>
7856 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
7859 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7861 * .gitattributes: New file.
7863 2020-03-04 Tom Tromey <tom@tromey.com>
7865 * symmisc.c (print_symbol_bcache_statistics)
7866 (print_objfile_statistics): Update.
7867 * symfile.c (allocate_symtab): Use intern.
7868 * psymtab.c (partial_symtab::partial_symtab): Use intern.
7869 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
7870 macro_cache>: Remove.
7871 <string_cache>: New member.
7872 (struct objfile) <intern>: New methods.
7873 * elfread.c (elf_symtab_read): Use intern.
7874 * dwarf2/read.c (fixup_go_packaging): Intern package name.
7875 (dwarf2_compute_name, dwarf2_physname)
7876 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
7878 (guess_partial_die_structure_name): Update.
7879 (partial_die_info::fixup): Intern name.
7880 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
7882 (dwarf2_name): Intern name. Update.
7883 * buildsym.c (buildsym_compunit::get_macro_table): Use
7886 2020-03-04 Tom Tromey <tom@tromey.com>
7888 * jit.c (bfd_open_from_target_memory): Make "target" const.
7889 * corefile.c (gnutarget): Now const.
7890 * gdbcore.h (gnutarget): Now const.
7892 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
7894 * NEWS: Mention support for WOW64 processes.
7895 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
7896 (amd64_windows_segment_register_p): Remove static.
7897 (_initialize_amd64_windows_nat): Update.
7898 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
7899 * i386-windows-nat.c (context_offset): Update.
7900 (i386_mappings): Rename and remove static.
7901 (i386_windows_segment_register_p): Remove static.
7902 (_initialize_i386_windows_nat): Update.
7903 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
7904 (STATUS_WX86_SINGLE_STEP): New macro.
7905 (EnumProcessModulesEx): New macro.
7906 (Wow64SuspendThread): New macro.
7907 (Wow64GetThreadContext): New macro.
7908 (Wow64SetThreadContext): New macro.
7909 (Wow64GetThreadSelectorEntry): New macro.
7910 (windows_set_context_register_offsets): Add static.
7911 (windows_set_segment_register_p): Likewise.
7912 (windows_add_thread): Adapt for WOW64 processes.
7913 (windows_fetch_one_register): Likewise.
7914 (windows_nat_target::fetch_registers): Likewise.
7915 (windows_store_one_register): Likewise.
7916 (display_selector): Likewise.
7917 (display_selectors): Likewise.
7918 (handle_exception): Likewise.
7919 (windows_continue): Likewise.
7920 (windows_nat_target::resume): Likewise.
7921 (windows_add_all_dlls): Likewise.
7922 (do_initial_windows_stuff): Likewise.
7923 (windows_nat_target::attach): Likewise.
7924 (windows_get_exec_module_filename): Likewise.
7925 (windows_nat_target::create_inferior): Likewise.
7926 (windows_xfer_siginfo): Likewise.
7927 (_initialize_loadable): Initialize Wow64SuspendThread,
7928 Wow64GetThreadContext, Wow64SetThreadContext,
7929 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
7930 * windows-nat.h (windows_set_context_register_offsets):
7932 (windows_set_segment_register_p): Likewise.
7933 (i386_windows_segment_register_p): Add declaration.
7934 (amd64_windows_segment_register_p): Likewise.
7936 2020-03-04 Luis Machado <luis.machado@linaro.org>
7938 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
7939 in "info registers" for AArch64/ARM.
7941 The change caused "info registers" to not print GPR's.
7945 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
7947 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
7948 when reg->group is empty and reggroup is not.
7950 2020-03-03 Tom Tromey <tromey@adacore.com>
7952 * dwarf2/frame.c (struct dwarf2_frame_cache)
7953 <checked_tailcall_bottom, entry_cfa_sp_offset,
7954 entry_cfa_sp_offset_p>: Remove members.
7955 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
7956 (dwarf2_frame_prev_register): Don't call
7957 dwarf2_tailcall_sniffer_first.
7958 (dwarf2_append_unwinders): Don't append tailcall unwinder.
7959 * frame-unwind.c (add_unwinder): New fuction.
7960 (frame_unwind_init): Use it. Add tailcall unwinder.
7962 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
7963 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7965 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
7966 value should be printed as true.
7968 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
7970 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
7971 (windows_init_abi): Set and use windows_so_ops.
7973 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
7975 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
7976 when verifying if dealing with a convenience variable.
7978 2020-03-03 Luis Machado <luis.machado@linaro.org>
7980 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
7982 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
7984 * infrun.c (gdbarch_supports_displaced_stepping): New.
7985 (use_displaced_stepping): Break up conditions in smaller pieces.
7986 Use gdbarch_supports_displaced_stepping.
7987 (displaced_step_prepare_throw): Use
7988 gdbarch_supports_displaced_stepping.
7990 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
7992 * NEWS: Mention new behaviour of the history filename.
7993 * top.c (write_history_p): Add comment.
7994 (show_write_history_p): Add header comment, give a different
7995 message when history writing is on, but the history filename is
7997 (history_filename): Add comment.
7998 (history_filename_empty): New function.
7999 (show_history_filename): Add header comment, give a different
8000 message when the filename is empty.
8001 (init_history): Compare history_filename against nullptr, and only
8002 read history if the filename is not empty.
8003 (set_history_filename): Add header comment, and only make
8004 non-empty filenames absolute.
8005 (init_main): Make the filename argument to 'set history filename'
8008 2020-03-02 Christian Biesinger <cbiesinger@google.com>
8010 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
8011 (arm_supply_vfpregset): ...this, and update to use VFP registers.
8012 (fetch_fp_register): Update.
8013 (fetch_fp_regs): Update.
8014 (store_fp_register): Update.
8015 (store_fp_regs): Update.
8016 (arm_netbsd_nat_target::read_description): New function.
8017 (fetch_elfcore_registers): Update.
8019 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8021 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
8022 general_thread if the stop reply is missing a thread-id.
8023 (remote_target::process_stop_reply): Use the first non-exited
8024 thread if the target didn't pass a thread-id.
8025 * infrun.c (do_target_wait): Move call to
8026 switch_to_inferior_no_thread to ....
8027 (do_target_wait_1): ... here.
8029 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
8031 * debuginfod-support.c: Include defs.h first.
8033 2020-02-28 Tom de Vries <tdevries@suse.de>
8035 * symfile.c (set_initial_language): Use default language for lookup.
8037 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
8039 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
8040 reader variable, pass `this` to read_cutu_die_from_dwo.
8042 2020-02-27 Aaron Merey <amerey@redhat.com>
8044 * source.c (open_source_file): Check for nullptr when computing
8047 2020-02-27 Tom Tromey <tromey@adacore.com>
8049 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
8051 (dwarf2_add_field): Don't update nfields.
8052 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
8054 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8056 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
8059 2020-02-26 Tom Tromey <tom@tromey.com>
8061 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
8062 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
8063 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
8064 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
8067 2020-02-26 Tom Tromey <tom@tromey.com>
8069 * dwarf2/index-write.c (psym_index_map): Change type.
8070 (add_address_entry_worker, write_one_signatured_type)
8071 (recursively_count_psymbols, recursively_write_psymbols)
8072 (class debug_names, psyms_seen_size, write_gdbindex)
8073 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
8075 2020-02-26 Aaron Merey <amerey@redhat.com>
8077 * Makefile.in: Handle optional debuginfod support.
8079 * README: Add --with-debuginfod summary.
8080 * config.in: Regenerate.
8081 * configure: Regenerate.
8082 * configure.ac: Handle optional debuginfod support.
8083 * debuginfod-support.c: debuginfod helper functions.
8084 * debuginfod-support.h: Ditto.
8085 * doc/gdb.texinfo: Add --with-debuginfod to configure options
8087 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
8088 when a dwz file cannot be found.
8089 * elfread.c (elf_symfile_read): Query debuginfod servers when a
8090 debuginfo file cannot be found.
8091 * source.c (open_source_file): Query debuginfod servers when a
8092 source file cannot be found.
8093 * top.c (print_gdb_configuration): Include
8094 --{with,without}-debuginfod in the output.
8096 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
8098 * thread.c (thr_try_catch_cmd): Print thread name.
8100 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
8102 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
8103 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8104 dwarf2_fetch_die_type_sect_off): Move to...
8105 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
8106 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8107 dwarf2_fetch_die_type_sect_off): ... here.
8108 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
8109 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8110 dwarf2_fetch_die_type_sect_off): Move doc to header file.
8112 2020-02-26 Tom de Vries <tdevries@suse.de>
8115 * symfile.c (set_initial_language): Exit-early if
8116 language_mode == language_mode_manual.
8118 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8120 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
8121 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
8122 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
8124 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
8126 * gdbtypes.c (create_array_type_with_stride): Handle negative
8128 * valarith.c (value_subscripted_rvalue): Likewise.
8130 2020-02-25 Luis Machado <luis.machado@linaro.org>
8132 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
8134 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8136 * loc.h (dwarf2_get_die_type): Move to...
8137 * read.h (dwarf2_get_die_type): ... here.
8138 * read.c (dwarf2_get_die_type): Move doc to header.
8140 2020-02-25 Joel Brobecker <brobecker@adacore.com>
8142 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
8143 'gnulib/Makefile.in' to the list.
8145 2020-02-24 Tom Tromey <tom@tromey.com>
8147 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
8149 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
8152 2020-02-24 Tom Tromey <tom@tromey.com>
8154 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
8156 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
8157 (dw2_do_instantiate_symtab, dw2_get_file_names)
8158 (build_type_psymtab_dependencies, load_full_type_unit): Update.
8160 2020-02-24 Tom Tromey <tom@tromey.com>
8162 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
8163 make_scoped_restore.
8164 (dwarf2_psymtab::read_symtab): Don't clear
8165 reading_partial_symbols.
8167 2020-02-24 Tom de Vries <tdevries@suse.de>
8170 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
8172 2020-02-24 Tom de Vries <tdevries@suse.de>
8174 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
8175 commands layout next/prev/regs.
8177 2020-02-22 Tom Tromey <tom@tromey.com>
8179 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
8180 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
8182 2020-02-22 Tom Tromey <tom@tromey.com>
8184 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
8186 2020-02-22 Tom Tromey <tom@tromey.com>
8188 * tui/tui-win.c (_initialize_tui_win): Add usage text.
8189 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
8190 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
8191 * tui/tui.c (_initialize_tui): Add usage text.
8193 2020-02-22 Tom Tromey <tom@tromey.com>
8195 * tui/tui-win.c (tui_set_focus_command)
8196 (tui_set_win_height_command): Use error_no_arg.
8197 (_initialize_tui_win): Update help text.
8198 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
8200 2020-02-22 Tom Tromey <tom@tromey.com>
8202 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
8203 * tui/tui-disasm.h (struct tui_disasm_window)
8204 <display_start_addr>: Declare.
8205 * tui/tui-source.h (struct tui_source_window)
8206 <display_start_addr>: Declare.
8207 * tui/tui-winsource.h (struct tui_source_window_base)
8208 <show_source_line, display_start_addr>: New methods.
8209 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
8210 Rename and move to protected section.
8211 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
8212 (tui_source_window_base::do_erase_source_content): Update.
8213 (tui_source_window_base::show_source_line): Now a method.
8214 (tui_source_window_base::show_source_content)
8215 (tui_source_window_base::tui_source_window_base)
8216 (tui_source_window_base::rerender)
8217 (tui_source_window_base::refill)
8218 (tui_source_window_base::do_scroll_horizontal)
8219 (tui_source_window_base::set_is_exec_point_at)
8220 (tui_source_window_base::update_breakpoint_info)
8221 (tui_source_window_base::update_exec_info): Update.
8222 * tui/tui-source.c (tui_source_window::set_contents)
8223 (tui_source_window::showing_source_p)
8224 (tui_source_window::do_scroll_vertical)
8225 (tui_source_window::location_matches_p)
8226 (tui_source_window::line_is_displayed): Update.
8227 (tui_source_window::display_start_addr): New method.
8228 * tui/tui-disasm.c (tui_disasm_window::set_contents)
8229 (tui_disasm_window::do_scroll_vertical)
8230 (tui_disasm_window::location_matches_p): Update.
8231 (tui_disasm_window::display_start_addr): New method.
8233 2020-02-22 Tom Tromey <tom@tromey.com>
8235 * NEWS: Add entry for gdb.register_window_type.
8236 * tui/tui-layout.h (window_factory): New typedef.
8237 (tui_register_window): Declare.
8238 * tui/tui-layout.c (saved_tui_windows): New global.
8239 (tui_apply_current_layout): Use it.
8240 (tui_register_window): New function.
8241 * python/python.c (do_start_initialization): Call
8242 gdbpy_initialize_tui.
8243 (python_GdbMethods): Add "register_window_type" function.
8244 * python/python-internal.h (gdbpy_register_tui_window)
8245 (gdbpy_initialize_tui): Declare.
8246 * python/py-tui.c: New file.
8247 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
8249 2020-02-22 Tom Tromey <tom@tromey.com>
8251 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
8253 2020-02-22 Tom Tromey <tom@tromey.com>
8255 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
8256 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
8257 * tui/tui-data.c (tui_set_win_with_focus): Remove.
8258 (tui_set_win_focus_to): Move from tui-win.c.
8260 2020-02-22 Tom Tromey <tom@tromey.com>
8262 * tui/tui-layout.c (make_standard_window, get_locator_window): New
8264 (known_window_types): New global.
8265 (tui_get_window_by_name): Reimplement.
8266 (initialize_known_windows): New function.
8267 (validate_window_name): Rewrite.
8268 (_initialize_tui_layout): Call initialize_known_windows.
8270 2020-02-22 Tom Tromey <tom@tromey.com>
8272 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
8274 * tui/tui-winsource.h (struct tui_source_window_base)
8275 <tui_source_window_base>: Remove parameter.
8276 * tui/tui-winsource.c
8277 (tui_source_window_base::tui_source_window_base): Remove
8279 (tui_source_window_base::refill): Update.
8280 * tui/tui-stack.h (struct tui_locator_window)
8281 <tui_locator_window>: Update.
8282 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
8283 Default the constructor.
8284 * tui/tui-regs.h (struct tui_data_item_window)
8285 <tui_data_item_window>: Default the constructor.
8286 (struct tui_data_window) <tui_data_window>: Likewise.
8287 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
8288 Default the constructor.
8289 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
8290 Default the constructor.
8292 (struct tui_win_info) <tui_win_info>: Default the constructor.
8293 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
8294 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
8295 Default the constructor.
8297 2020-02-22 Tom Tromey <tom@tromey.com>
8299 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
8300 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
8301 * tui/tui-win.c (tui_resize_all): Don't call
8302 tui_delete_invisible_windows.
8303 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
8305 (tui_set_layout): Update.
8306 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
8307 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
8308 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
8310 2020-02-22 Tom Tromey <tom@tromey.com>
8312 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
8315 2020-02-22 Tom Tromey <tom@tromey.com>
8317 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
8319 2020-02-22 Tom Tromey <tom@tromey.com>
8321 * tui/tui-winsource.h (struct tui_source_window_iterator)
8322 <inner_iterator>: New etytypedef.
8323 <tui_source_window_iterator>: Take "end" parameter.
8324 <tui_source_window_iterator>: Take iterator.
8325 <operator*, advance>: Update.
8326 <m_iter>: Change type.
8328 (struct tui_source_windows) <begin, end>: Update.
8329 * tui/tui-layout.c (tui_windows): New global.
8330 (tui_apply_current_layout): Clear tui_windows.
8331 (tui_layout_window::apply): Update tui_windows.
8332 * tui/tui-data.h (tui_windows): Declare.
8333 (all_tui_windows): Now inline function.
8334 (class tui_window_iterator, struct all_tui_windows): Remove.
8336 2020-02-22 Tom Tromey <tom@tromey.com>
8339 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
8340 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
8342 (class tui_layout_window) <get_sizes>: Likewise.
8343 (class tui_layout_split) <tui_layout_split>: Add "vertical"
8345 <get_sizes>: Add "height" argument.
8346 <m_vertical>: New field.
8347 * tui/tui-layout.c (tui_layout_split::clone): Update.
8348 (tui_layout_split::get_sizes): Add "height" argument.
8349 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
8350 (tui_new_layout_command): Parse "-horizontal".
8351 (_initialize_tui_layout): Update help string.
8352 (tui_layout_split::specification): Add "-horizontal" when needed.
8353 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
8355 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
8358 2020-02-22 Tom Tromey <tom@tromey.com>
8360 * tui/tui-layout.h (enum tui_adjust_result): New.
8361 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
8362 (class tui_layout_window) <adjust_size>: Return
8363 tui_adjust_result. Rewrite.
8364 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
8365 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
8367 2020-02-22 Tom Tromey <tom@tromey.com>
8369 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
8370 parameter and return types.
8371 (class tui_layout_base) <specification>: Add "depth".
8372 (class tui_layout_window) <specification>: Add "depth".
8373 (class tui_layout_split) <specification>: Add "depth".
8374 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
8376 (tui_new_layout_command): Parse sub-layouts.
8377 (_initialize_tui_layout): Update help string.
8378 (tui_layout_window::specification): Add "depth".
8379 (add_layout_command): Update.
8381 2020-02-22 Tom Tromey <tom@tromey.com>
8383 * NEWS: Add "tui new-layout" item.
8384 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
8385 Add new-layout command to help text.
8386 (validate_window_name): New function.
8387 (tui_new_layout_command): New function.
8388 (_initialize_tui_layout): Register "new-layout".
8389 (tui_layout_window::specification): New method.
8390 (tui_layout_window::specification): New method.
8391 * tui/tui-layout.h (class tui_layout_base) <specification>: New
8393 (class tui_layout_window) <specification>: New method.
8394 (class tui_layout_split) <specification>: New method.
8396 2020-02-22 Tom Tromey <tom@tromey.com>
8398 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
8399 * tui/tui-win.c (window_name_completer): Update comment.
8400 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
8402 (class tui_layout_window) <replace_window>: Likewise.
8403 (class tui_layout_split) <replace_window>: Likewise.
8404 (tui_set_layout): Don't declare.
8405 (tui_set_initial_layout): Declare function.
8406 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
8407 (asm_regs_layout): New globals.
8408 (tui_current_layout, show_layout): Remove.
8409 (tui_set_layout, tui_add_win_to_layout): Rewrite.
8410 (find_layout, tui_apply_layout): New function.
8411 (layout_completer): Remove.
8412 (tui_next_layout): Reimplement.
8413 (tui_next_layout_command): New function.
8414 (tui_set_initial_layout, tui_prev_layout_command): New functions.
8415 (tui_regs_layout): Reimplement.
8416 (tui_regs_layout_command): New function.
8417 (extract_display_start_addr): Rewrite.
8418 (next_layout, prev_layout): Remove.
8419 (tui_layout_window::replace_window): New method.
8420 (tui_layout_split::replace_window): New method.
8421 (destroy_layout): New function.
8422 (layout_list): New global.
8423 (add_layout_command): New function.
8424 (initialize_layouts): Update.
8425 (tui_layout_command): New function.
8426 (_initialize_tui_layout): Install "layout" commands.
8427 * tui/tui-data.h (enum tui_layout_type): Remove.
8428 (tui_current_layout): Don't declare.
8430 2020-02-22 Tom Tromey <tom@tromey.com>
8432 * tui/tui-regs.c (tui_reg_layout): Remove.
8433 (tui_reg_command): Use tui_regs_layout.
8434 * tui/tui-layout.h (tui_reg_command): Declare.
8435 * tui/tui-layout.c (tui_reg_command): New function.
8437 2020-02-22 Tom Tromey <tom@tromey.com>
8439 * tui/tui.c (tui_rl_delete_other_windows): Call
8440 tui_remove_some_windows.
8441 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
8443 (class tui_layout_window) <remove_windows>: New method.
8444 (class tui_layout_split) <remove_windows>: Declare.
8445 (tui_remove_some_windows): Declare.
8446 * tui/tui-layout.c (tui_remove_some_windows): New function.
8447 (tui_layout_split::remove_windows): New method.
8449 2020-02-22 Tom Tromey <tom@tromey.com>
8451 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
8452 * tui/tui-layout.h (tui_next_layout): Declare.
8453 * tui/tui-layout.c (tui_next_layout): New function.
8455 2020-02-22 Tom Tromey <tom@tromey.com>
8457 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
8458 correct coordinates.
8460 2020-02-22 Tom Tromey <tom@tromey.com>
8462 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
8463 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
8466 2020-02-22 Tom Tromey <tom@tromey.com>
8468 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
8469 TUI_DISASM_WIN, not tui_win_list.
8471 2020-02-22 Tom Tromey <tom@tromey.com>
8473 * valprint.c (generic_val_print_enum_1)
8474 (val_print_type_code_flags): Style member names.
8475 * rust-lang.c (val_print_struct, rust_print_enum)
8476 (rust_print_struct_def, rust_internal_print_type): Style member
8478 * p-valprint.c (pascal_object_print_value_fields): Style member
8479 names. Only call fprintf_symbol_filtered for static members.
8480 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
8481 * f-valprint.c (f_val_print): Style member names.
8482 * f-typeprint.c (f_type_print_base): Style member names.
8483 * cp-valprint.c (cp_print_value_fields): Style member names. Only
8484 call fprintf_symbol_filtered for static members.
8485 (cp_print_class_member): Style member names.
8486 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
8488 * ada-valprint.c (ada_print_scalar): Style enum names.
8489 (ada_val_print_enum): Likewise.
8490 * ada-typeprint.c (print_enum_type): Style enum names.
8492 2020-02-21 Tom Tromey <tom@tromey.com>
8494 * psympriv.h (struct partial_symtab): Update comment.
8496 2020-02-21 Tom Tromey <tromey@adacore.com>
8498 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
8501 2020-02-21 Tom de Vries <tdevries@suse.de>
8504 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
8505 if dependencies[i]->user != NULL.
8507 2020-02-21 Ali Tamur <tamur@google.com>
8509 * dwarf2/read.c (dwarf2_name): Add null check.
8511 2020-02-20 Tom Tromey <tom@tromey.com>
8513 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
8514 ">=", in binary search.
8515 (dwarf2_find_containing_comp_unit): New overload.
8516 (run_test): New self-test.
8517 (_initialize_dwarf2_read): Register new test.
8519 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
8521 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
8522 * riscv-tdep.h: Likewise.
8523 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
8525 * features/riscv/64bit-csr.xml: Regenerated.
8527 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
8528 Tom Tromey <tom@tromey.com>
8530 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
8531 of 'fputc_unfiltered'.
8532 (putchar_unfiltered): Call 'fputc_unfiltered'.
8533 (fputc_unfiltered): Call 'fputs_unfiltered'.
8535 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
8537 * config.in: Regenerate.
8538 * configure: Regenerate.
8539 * configure.ac: Add --with-python-libdir option.
8540 * main.c: Use WITH_PYTHON_LIBDIR.
8542 2020-02-19 Tom Tromey <tom@tromey.com>
8544 * symtab.c (general_symbol_info::compute_and_set_names): Use
8545 obstack_strndup. Simplify call to symbol_set_demangled_name.
8547 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
8549 * dwarf2/read.c (allocate_signatured_type_table,
8550 allocate_dwo_unit_table, allocate_type_unit_groups_table,
8551 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
8552 Remove objfile parameter, update all callers.
8554 2020-02-19 Doug Evans <dje@google.com>
8557 * rust-lang.c (rust_print_enum): Apply embedded_offset to
8558 rust_enum_variant calculation.
8560 2020-02-19 Tom Tromey <tromey@adacore.com>
8562 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
8564 2020-02-19 Tom Tromey <tromey@adacore.com>
8566 * ada-lang.c (cache_symbol): Use obstack_strdup.
8568 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
8570 * configure: Regenerate.
8572 2020-02-19 Tom Tromey <tromey@adacore.com>
8574 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
8577 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
8579 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
8581 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
8583 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
8584 if GDBSERVER is not defined.
8585 (riscv_tdesc_cache): Likewise, also store const target_desc.
8586 (STATIC_IN_GDB): Define.
8587 (riscv_create_target_description): Update declaration with
8589 (riscv_lookup_target_description): New function, only define if
8590 GDBSERVER is not defined.
8591 * arch/riscv.h (riscv_create_target_description): Declare only
8592 when GDBSERVER is defined.
8593 (riscv_lookup_target_description): New declaration when GDBSERVER
8595 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
8596 (riscv_linux_read_features): ...this, and return
8597 riscv_gdbarch_features instead of target_desc.
8598 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
8599 (riscv_linux_read_description): Rename to...
8600 (riscv_linux_read_features): ...this.
8601 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
8602 Update to use riscv_gdbarch_features and
8603 riscv_lookup_target_description.
8604 * riscv-tdep.c (riscv_find_default_target_description): Use
8605 riscv_lookup_target_description instead of
8606 riscv_create_target_description.
8608 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
8610 * valprint.c (generic_val_print_enum_1): When printing a flag
8611 enum with value 0 and there is no enumerator with value 0, print
8612 just "0" instead of "(unknown: 0x0)".
8614 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
8616 * valprint.c (generic_val_print_enum_1): Print unknown part of
8619 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
8621 * dwarf2/read.c (update_enumeration_type_from_children): Allow
8622 flag enums to contain duplicate enumerators.
8623 * valprint.c (generic_val_print_enum_1): Update comment.
8625 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
8627 * dwarf2/read.c: Include "count-one-bits.h".
8628 (update_enumeration_type_from_children): If an enumerator has
8629 multiple bits set, don't treat the enumeration as a "flag enum".
8630 * valprint.c (generic_val_print_enum_1): Assert that enumerators
8631 of flag enums have 0 or 1 bit set.
8633 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
8635 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
8637 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8638 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
8639 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8640 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
8641 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8643 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
8645 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
8647 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
8649 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
8650 displaced_step_closure_up.
8651 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
8652 (struct displaced_step_closure_up):
8653 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8654 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
8655 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
8657 * gdbarch.sh (displaced_step_copy_insn): Likewise.
8658 * gdbarch.c, gdbarch.h: Re-generate.
8659 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
8660 displaced_step_closure_up.
8661 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8662 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
8663 * infrun.h (displaced_step_closure_up): New type alias.
8664 (struct displaced_step_inferior_state) <step_closure>: Change
8665 type to displaced_step_closure_up.
8666 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
8667 displaced_step_closure_up.
8668 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8670 2020-02-14 Tom Tromey <tom@tromey.com>
8672 * minidebug.c (gnu_debug_key): New global.
8673 (find_separate_debug_file_in_section): Use it.
8675 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
8677 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
8679 * gdbarch.c: Re-generate.
8680 * gdbarch.h: Re-generate.
8681 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
8683 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
8684 type to std::unique_ptr.
8685 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
8686 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8687 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
8688 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
8689 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
8690 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8691 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
8692 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
8693 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8695 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
8697 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
8699 (displaced_step_clear): Rename to...
8700 (displaced_step_reset): ... this. Just call displaced->reset ().
8701 (displaced_step_clear_cleanup): Rename to...
8702 (displaced_step_reset_cleanup): ... this.
8703 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
8704 (displaced_step_fixup): Likewise.
8705 (resume_1): Likewise.
8706 (handle_inferior_event): Restore child's memory before calling
8707 displaced_step_fixup on the parent.
8708 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
8710 <step_closure>: Change type to std::unique_ptr.
8712 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
8714 * arm-tdep.c: Include count-one-bits.h.
8715 (cleanup_block_store_pc): Use count_one_bits.
8716 (cleanup_block_load_pc): Use count_one_bits.
8717 (arm_copy_block_xfer): Use count_one_bits.
8718 (thumb2_copy_block_xfer): Use count_one_bits.
8719 (thumb_copy_pop_pc_16bit): Use count_one_bits.
8720 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
8721 (thumb_get_next_pcs_raw): Use count_one_bits.
8722 (arm_get_next_pcs_raw): Use count_one_bits_l.
8723 * arch/arm.c (bitcount): Remove.
8724 * arch/arm.h (bitcount): Remove.
8726 2020-02-14 Tom Tromey <tromey@adacore.com>
8728 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
8730 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
8731 * dwarf2/loc.c (call_site_find_chain_1): Return
8733 (call_site_find_chain): Likewise.
8735 2020-02-14 Richard Biener <rguenther@suse.de>
8737 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
8738 on expression with division operators.
8740 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8742 * MAINTAINERS (Write After Approval): Adding myself.
8744 2020-02-12 Tom Tromey <tom@tromey.com>
8746 * event-loop.c (event_data, gdb_event, event_handler_func):
8749 2020-02-12 Tom Tromey <tom@tromey.com>
8751 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
8752 (dwarf2_frame_objfile_data): Add comment.
8753 (find_comp_unit, set_comp_unit): New functions.
8754 (dwarf2_frame_find_fde): Use find_comp_unit.
8755 (dwarf2_build_frame_info): Use set_comp_unit.
8757 2020-02-12 Tom Tromey <tom@tromey.com>
8759 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
8760 (comp_unit): Don't initialize objfile.
8761 (execute_cfa_program): Add text_offset parameter.
8762 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
8763 (dwarf2_frame_cache): Update.
8764 (dwarf2_build_frame_info): Don't set "objfile" member.
8766 2020-02-12 Tom Tromey <tom@tromey.com>
8768 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
8769 (decode_frame_entry): Likewise.
8770 (dwarf2_build_frame_info): Update.
8772 2020-02-12 Tom Tromey <tom@tromey.com>
8774 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
8775 (decode_frame_entry_1): Use the comp_unit obstack.
8777 2020-02-12 Tom Tromey <tom@tromey.com>
8779 * dwarf2/frame.c (struct comp_unit): Add initializers and
8781 (dwarf2_frame_objfile_data): Store a comp_unit.
8782 (dwarf2_frame_find_fde): Update.
8783 (dwarf2_build_frame_info): Use "new".
8785 2020-02-12 Tom Tromey <tom@tromey.com>
8787 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
8788 (dwarf2_fde_table): Typedef for std::vector.
8789 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
8790 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
8791 (decode_frame_entry): Update.
8792 (dwarf2_build_frame_info): Use "new".
8794 2020-02-12 Christian Biesinger <cbiesinger@google.com>
8796 * arm-tdep.c (arm_gdbarch_init): Update.
8797 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
8798 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
8799 have_neon, is_m>: Change to bool.
8801 2020-02-12 Christian Biesinger <cbiesinger@google.com>
8803 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
8805 2020-02-12 Tom Tromey <tom@tromey.com>
8807 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
8809 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
8811 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
8812 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
8814 2020-02-11 Tom Tromey <tom@tromey.com>
8816 * psymtab.h: Update comment.
8818 2020-02-11 Tom Tromey <tom@tromey.com>
8820 * gdb_obstack.h (struct auto_obstack): Use
8821 DISABLE_COPY_AND_ASSIGN.
8823 2020-02-11 Tom Tromey <tom@tromey.com>
8825 * dwarf2/frame.h (struct objfile): Don't forward declare.
8827 2020-02-11 Christian Biesinger <cbiesinger@google.com>
8829 * cris-tdep.c (cris_supply_gregset): Change signature to match
8830 what struct regset expects.
8831 (cris_regset): New struct.
8832 (fetch_core_registers): Remove.
8833 (cris_iterate_over_regset_sections): New function.
8834 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
8835 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
8837 2020-02-11 Christian Biesinger <cbiesinger@google.com>
8839 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
8842 2020-02-11 Christian Biesinger <cbiesinger@google.com>
8844 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
8846 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
8848 * configure: Re-generate.
8850 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
8852 * configure: Re-generate.
8854 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
8856 * acinclude: Update warning.m4 path.
8857 * warning.m4: Move to gdbsupport.
8859 2020-02-11 Tom Tromey <tromey@adacore.com>
8861 * remote.c (remote_console_output): Update.
8862 * printcmd.c (printf_command): Update.
8863 * event-loop.c (gdb_wait_for_event): Update.
8864 * linux-nat.c (sigchld_handler): Update.
8865 * remote-sim.c (gdb_os_write_stdout): Update.
8866 (gdb_os_flush_stdout): Update.
8867 (gdb_os_flush_stderr): Update.
8868 (gdb_os_write_stderr): Update.
8869 * exceptions.c (print_exception): Update.
8870 * remote-fileio.c (remote_fileio_func_read): Update.
8871 (remote_fileio_func_write): Update.
8872 * tui/tui.c (tui_enable): Update.
8873 * tui/tui-interp.c (tui_interp::init): Update.
8874 * utils.c (init_page_info): Update.
8875 (putchar_unfiltered, fputc_unfiltered): Update.
8876 (gdb_flush): Update.
8877 (emit_style_escape): Update.
8878 (flush_wrap_buffer, fputs_maybe_filtered): Update.
8879 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
8880 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
8881 (stderr_file::write): Update.
8882 (stderr_file::puts): Update.
8883 * ui-file.h (ui_file_isatty, ui_file_write)
8884 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
8885 (ui_file_puts): Don't declare.
8887 2020-02-10 Tom de Vries <tdevries@suse.de>
8889 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
8892 2020-02-09 Tom de Vries <tdevries@suse.de>
8894 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
8895 filename if it matches "<artificial>".
8897 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
8899 * windows-tdep.c (struct enum_value_name): New struct.
8900 (create_enum): New function.
8901 (windows_get_siginfo_type): Create and use enum types.
8903 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
8905 * NEWS: Mention $_siginfo support for Windows.
8906 * windows-nat.c (handle_exception): Set siginfo_er.
8907 (windows_nat_target::mourn_inferior): Reset siginfo_er.
8908 (windows_xfer_siginfo): New function.
8909 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
8910 * windows-tdep.c (struct windows_gdbarch_data): New struct.
8911 (init_windows_gdbarch_data): New function.
8912 (get_windows_gdbarch_data): New function.
8913 (windows_get_siginfo_type): New function.
8914 (windows_init_abi): Register windows_get_siginfo_type.
8915 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
8917 2020-02-08 Tom Tromey <tom@tromey.com>
8919 * dwarf2/read.c (class cutu_reader) <cutu_reader,
8920 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
8921 <keep>: Declare method.
8922 <m_keep>: Remove member.
8923 <~cutu_reader>: Remove.
8924 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8925 (cutu_reader::cutu_reader): Update.
8926 (cutu_reader::keep): Rename from ~cutu_reader.
8927 (process_psymtab_comp_unit, build_type_psymtabs_1)
8928 (process_skeletonless_type_unit, load_partial_comp_unit)
8929 (load_full_comp_unit, dwarf2_read_addr_index)
8930 (read_signatured_type): Update.
8932 2020-02-08 Tom Tromey <tom@tromey.com>
8934 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
8935 "want_partial_unit" parameter.
8936 (process_psymtab_comp_unit): Change want_partial_unit to bool.
8937 Inline check for DW_TAG_partial_unit.
8938 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
8940 2020-02-08 Tom Tromey <tom@tromey.com>
8942 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
8944 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
8947 2020-02-08 Tom Tromey <tom@tromey.com>
8949 * dwarf2/read.c (read_address): Move to comp-unit.c.
8950 (dwarf2_rnglists_process, dwarf2_ranges_process)
8951 (read_attribute_value, dwarf_decode_lines_1)
8952 (var_decode_location, decode_locdesc): Update.
8953 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
8954 read.c. Remove "cu" parameter.
8955 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
8958 2020-02-08 Tom Tromey <tom@tromey.com>
8960 * dwarf2/read.c (read_attribute_value, read_indirect_string)
8961 (read_indirect_line_string): Update.
8962 * dwarf2/comp-unit.c (read_offset): Remove.
8963 (read_comp_unit_head): Update.
8964 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
8966 (read_offset): Don't declare.
8968 2020-02-08 Tom Tromey <tom@tromey.com>
8970 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
8971 * dwarf2/read.c (struct comp_unit_head): Move to
8973 (enum class rcuh_kind): Move to comp-unit.h.
8974 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
8975 (read_comp_unit_head, error_check_comp_unit_head)
8976 (read_and_check_comp_unit_head): Move to comp-unit.c.
8977 (read_offset, dwarf_unit_type_name): Likewise.
8978 (create_debug_type_hash_table, read_cutu_die_from_dwo)
8979 (cutu_reader::cutu_reader, read_call_site_scope)
8980 (find_partial_die, follow_die_offset): Update.
8981 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
8983 2020-02-08 Tom Tromey <tom@tromey.com>
8985 * dwarf2/read.c (read_offset_1): Move to leb.c.
8986 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
8987 (dwarf_decode_macro_bytes): Update.
8988 * dwarf2/leb.c (read_offset): Rename; move from read.c.
8989 * dwarf2/leb.h (read_offset): Declare.
8991 2020-02-08 Tom Tromey <tom@tromey.com>
8993 * dwarf2/read.c (dwarf2_section_size): Remove.
8994 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
8996 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
8998 2020-02-08 Tom Tromey <tom@tromey.com>
9000 * dwarf2/read.c (read_initial_length): Move to leb.c.
9001 * dwarf2/leb.h (read_initial_length): Declare.
9002 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
9003 handle_nonstd parameter.
9004 * dwarf2/frame.c (read_initial_length): Remove.
9005 (decode_frame_entry_1): Update.
9007 2020-02-08 Tom Tromey <tom@tromey.com>
9009 * dwarf2/loc.c (dwarf2_find_location_expression)
9010 (dwarf_evaluate_loc_desc::get_tls_address)
9011 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
9012 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
9013 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
9014 (dwarf2_compile_property_to_c)
9015 (dwarf2_loc_desc_get_symbol_read_needs)
9016 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
9017 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
9018 (loclist_describe_location, loclist_tracepoint_var_ref)
9019 (loclist_generate_c_location): Update.
9020 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
9021 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
9022 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
9023 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
9024 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
9025 (dwarf2_per_cu_data::addr_size)
9026 (dwarf2_per_cu_data::ref_addr_size)
9027 (dwarf2_per_cu_data::text_offset)
9028 (dwarf2_per_cu_data::addr_type): Now methods.
9029 (per_cu_header_read_in): Make per_cu "const".
9030 (dwarf2_version): Remove.
9031 (dwarf2_per_cu_data::int_type): Now a method.
9032 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
9033 (set_die_type, read_array_type, read_subrange_index_type)
9034 (read_tag_string_type, read_subrange_type): Update.
9035 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
9036 offset_size, ref_addr_size, text_offset, addr_type, version,
9037 objfile, int_type, addr_sized_int_type>: Declare methods.
9039 2020-02-08 Tom Tromey <tom@tromey.com>
9041 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
9044 2020-02-08 Tom Tromey <tom@tromey.com>
9046 * dwarf2/read.h (dwarf_line_debug): Declare.
9047 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
9048 * dwarf2/read.c: Move line_header code to new files.
9049 (dwarf_line_debug): No longer static.
9050 * dwarf2/line-header.c: New file.
9051 * dwarf2/line-header.h: New file.
9053 2020-02-08 Tom Tromey <tom@tromey.com>
9055 * dwarf2/read.c (struct line_header) <file_full_name,
9056 file_file_name>: Return unique_xmalloc_ptr.
9057 (line_header::file_file_name): Update.
9058 (line_header::file_full_name): Update.
9059 (dw2_get_file_names_reader): Update.
9060 (macro_start_file): Update.
9062 2020-02-08 Tom Tromey <tom@tromey.com>
9064 * dwarf2/read.c (struct line_header) <file_full_name,
9065 file_file_name>: Declare methods.
9066 (dw2_get_file_names_reader): Update.
9067 (file_file_name): Now a method.
9068 (file_full_name): Likewise.
9069 (macro_start_file): Update.
9071 2020-02-08 Tom Tromey <tom@tromey.com>
9073 * dwarf2/read.c (dwarf_always_disassemble)
9074 (show_dwarf_always_disassemble): Move to loc.c.
9075 (_initialize_dwarf2_read): Move "always-disassemble" registration
9077 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
9078 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
9080 (show_dwarf_always_disassemble): Move from read.c.
9081 (_initialize_dwarf2loc): Move always-disassemble from read.c.
9083 2020-02-08 Tom Tromey <tom@tromey.com>
9085 * dwarf2/read.c (~dwarf2_per_objfile): Update.
9086 (create_quick_file_names_table): Return htab_up.
9087 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
9089 * dwarf2/read.h (struct dwarf2_per_objfile)
9090 <quick_file_names_table>: Now htab_up.
9092 2020-02-08 Tom Tromey <tom@tromey.com>
9094 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
9096 2020-02-08 Tom Tromey <tom@tromey.com>
9098 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
9100 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
9101 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
9102 (abbrev_table::abbrev_table): No longer inline.
9103 (ABBREV_HASH_SIZE): Remove.
9104 (abbrev_table::m_abbrevs): Now an htab_up.
9106 2020-02-08 Tom Tromey <tom@tromey.com>
9108 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
9109 (cutu_reader): Update.
9110 (build_type_psymtabs_1): Update.
9111 * dwarf2/abbrev.c (abbrev_table::read): Rename.
9112 (abbrev_table::alloc_abbrev): Update.
9113 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
9114 (abbrev_table::read): New static method, renamed from
9115 abbrev_table_read_table.
9116 (abbrev_table::alloc_abbrev)
9117 (abbrev_table::add_abbrev): Now private.
9118 (abbrev_table::abbrev_table): Now private.
9119 (abbrev_table::m_abbrev_obstack): Now private. Rename.
9121 2020-02-08 Tom Tromey <tom@tromey.com>
9123 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
9124 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
9127 2020-02-08 Tom Tromey <tom@tromey.com>
9129 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
9131 (lookup_dwo_unit_in_dwp): Update.
9132 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
9135 2020-02-08 Tom Tromey <tom@tromey.com>
9137 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
9140 2020-02-08 Tom Tromey <tom@tromey.com>
9142 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
9144 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
9145 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
9146 Change type to htab_up.
9148 2020-02-08 Tom Tromey <tom@tromey.com>
9150 * dwarf2/read.c (allocate_type_unit_groups_table): Return
9151 htab_up. Don't allocate on obstack.
9152 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
9153 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
9154 Change type to htab_up.
9156 2020-02-08 Tom Tromey <tom@tromey.com>
9158 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
9159 Change type to htab_up.
9160 * dwarf2/read.c (create_signatured_type_table_from_index)
9161 (create_signatured_type_table_from_debug_names)
9162 (create_all_type_units, add_type_unit)
9163 (lookup_dwo_signatured_type, lookup_signatured_type)
9164 (process_skeletonless_type_unit): Update.
9165 (create_debug_type_hash_table, create_debug_types_hash_table):
9166 Change type of types_htab.
9167 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
9168 htab_up. Don't allocate on obstack.
9169 (create_cus_hash_table): Change type of cus_htab parameter.
9170 (struct dwo_file) <cus, tus>: Now htab_up.
9171 (lookup_dwo_signatured_type, lookup_dwo_cutu)
9172 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
9173 (queue_and_load_all_dwo_tus): Update.
9174 * dwarf2/index-write.c (write_gdbindex): Update.
9175 (write_debug_names): Update.
9177 2020-02-08 Tom Tromey <tom@tromey.com>
9179 * dwarf2/read.h (struct dwarf2_queue_item): Move from
9180 dwarf2/read.c. Remove "next" member. Add constructor ntad
9182 (struct dwarf2_per_objfile) <queue>: New member.
9183 * dwarf2/read.c (struct dwarf2_queue_item): Move to
9185 (dwarf2_queue, dwarf2_queue_tail): Remove.
9186 (class dwarf2_queue_guard): Add parameter to constructor. Use
9187 DISABLE_COPY_AND_ASSIGN.
9188 <m_per_objfile>: New member.
9189 <~dwarf2_queue_guard>: Rewrite.
9190 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
9192 (~dwarf2_queue_item): New.
9194 2020-02-08 Tom Tromey <tom@tromey.com>
9196 * dwarf2/read.c (struct die_info) <has_children>: New member.
9197 (dw2_get_file_names_reader): Remove has_children.
9198 (dw2_get_file_names): Update.
9199 (read_cutu_die_from_dwo): Remove has_children.
9200 (cutu_reader::init_tu_and_read_dwo_dies)
9201 (cutu_reader::cutu_reader): Update.
9202 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
9203 Remove has_children.
9204 (build_type_psymtabs_1, process_skeletonless_type_unit)
9205 (load_partial_comp_unit, load_full_comp_unit): Update.
9206 (create_dwo_cu_reader): Remove has_children.
9207 (create_cus_hash_table, read_die_and_children): Update.
9208 (read_full_die_1,read_full_die): Remove has_children.
9209 (read_signatured_type): Update.
9210 (class cutu_reader) <has_children>: Remove.
9212 2020-02-08 Tom Tromey <tom@tromey.com>
9214 * dwarf2/expr.c: Rename from dwarf2expr.c.
9215 * dwarf2/expr.h: Rename from dwarf2expr.h.
9216 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
9217 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
9218 * dwarf2/frame.c: Rename from dwarf2-frame.c.
9219 * dwarf2/frame.h: Rename from dwarf2-frame.h.
9220 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
9221 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
9222 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
9223 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
9224 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
9225 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
9226 * dwarf2/loc.c: Rename from dwarf2loc.c.
9227 * dwarf2/loc.h: Rename from dwarf2loc.h.
9228 * dwarf2/read.c: Rename from dwarf2read.c.
9229 * dwarf2/read.h: Rename from dwarf2read.h.
9230 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
9231 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
9232 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
9233 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
9234 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
9235 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
9236 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
9237 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
9238 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
9239 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
9240 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
9241 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
9242 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
9244 * Makefile.in (COMMON_SFILES): Update.
9245 (HFILES_NO_SRCDIR): Update.
9247 2020-02-08 Tom Tromey <tom@tromey.com>
9249 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
9250 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
9252 2020-02-08 Tom Tromey <tom@tromey.com>
9254 * dwarf2read.h (struct die_info): Don't declare.
9256 2020-02-08 Tom Tromey <tom@tromey.com>
9258 * dwarf2read.h (die_info_ptr): Remove typedef.
9260 2020-02-08 Tom Tromey <tom@tromey.com>
9262 * dwarf2read.c (read_call_site_scope)
9263 (handle_data_member_location, dwarf2_add_member_fn)
9264 (mark_common_block_symbol_computed, read_common_block)
9265 (attr_to_dynamic_prop, partial_die_info::read)
9266 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
9267 (dwarf2_symbol_mark_computed, set_die_type): Update.
9268 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
9270 (attr_form_is_block): Don't declare.
9271 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
9273 2020-02-08 Tom Tromey <tom@tromey.com>
9275 * dwarf2read.c (dwarf2_find_base_address, )
9276 (read_call_site_scope, rust_containing_type)
9277 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
9278 (handle_data_member_location, dwarf2_add_member_fn)
9279 (get_alignment, read_structure_type, process_structure_scope)
9280 (mark_common_block_symbol_computed, read_common_block)
9281 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
9282 (partial_die_info::read, read_attribute_value, new_symbol)
9283 (lookup_die_type, dwarf2_get_ref_die_offset)
9284 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
9285 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
9286 (dwarf2_symbol_mark_computed): Update.
9287 * dwarf2/attribute.h (struct attribute) <value_as_address,
9288 form_is_section_offset, form_is_constant, form_is_ref>: Declare
9290 (value_as_address, attr_form_is_section_offset)
9291 (attr_form_is_constant, attr_form_is_ref): Don't declare.
9292 * dwarf2/attribute.c (attribute::value_as_address)
9293 (attribute::form_is_section_offset, attribute::form_is_constant)
9294 (attribute::form_is_ref): Now methods.
9296 2020-02-08 Tom Tromey <tom@tromey.com>
9298 * dwarf2read.c (struct attribute, DW_STRING)
9299 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
9300 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
9301 (attr_form_is_block, attr_form_is_section_offset)
9302 (attr_form_is_constant, attr_form_is_ref): Move.
9303 * dwarf2/attribute.h: New file.
9304 * dwarf2/attribute.c: New file, from dwarf2read.c.
9305 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
9307 2020-02-08 Tom Tromey <tom@tromey.com>
9309 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
9310 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
9312 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
9313 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
9314 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
9316 * dwarf2/abbrev.h: New file.
9317 * dwarf2/abbrev.c: New file, from dwarf2read.c.
9318 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
9320 2020-02-08 Tom Tromey <tom@tromey.com>
9322 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
9323 (dwarf2_section_size, dwarf2_get_section_info)
9324 (create_signatured_type_table_from_debug_names)
9325 (create_addrmap_from_aranges, read_debug_names_from_section)
9326 (get_gdb_index_contents_from_section, read_comp_unit_head)
9327 (error_check_comp_unit_head, read_abbrev_offset)
9328 (create_debug_type_hash_table, init_cu_die_reader)
9329 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
9330 (read_comp_units_from_section, create_cus_hash_table)
9331 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
9332 (create_dwp_v2_section, dwarf2_rnglists_process)
9333 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
9334 (abbrev_table_read_table, read_indirect_string_at_offset_from)
9335 (read_indirect_string_from_dwz, read_addr_index_1)
9336 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
9337 (dwarf_decode_macro_bytes, dwarf_decode_macros)
9338 (fill_in_loclist_baton): Update.
9339 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
9340 get_containing_section, get_bfd_owner, get_bfd_section,
9341 get_file_name, get_id, get_flags, empty, read>: Declare methods.
9342 (dwarf2_read_section, get_section_name, get_section_file_name)
9343 (get_containing_section, get_section_bfd_owner)
9344 (get_section_bfd_section, get_section_name, get_section_file_name)
9345 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
9347 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
9348 (dwarf2_section_info::get_bfd_owner)
9349 (dwarf2_section_info::get_bfd_section)
9350 (dwarf2_section_info::get_name)
9351 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
9352 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
9353 (dwarf2_section_info::read): Now methods.
9354 * dwarf-index-write.c (class debug_names): Update.
9356 2020-02-08 Tom Tromey <tom@tromey.com>
9358 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
9359 Move to dwarf2/section.h.
9360 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
9361 (get_section_bfd_section, get_section_name)
9362 (get_section_file_name, get_section_id, get_section_flags)
9363 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
9365 * dwarf2/section.h: New file.
9366 * dwarf2/section.c: New file, from dwarf2read.c.
9367 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
9369 2020-02-08 Tom Tromey <tom@tromey.com>
9371 * dwarf2read.h (read_unsigned_leb128): Don't declare.
9372 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
9373 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
9374 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
9375 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
9376 * dwarf2/leb.h: New file, from dwarf2read.c.
9377 * dwarf2/leb.c: New file, from dwarf2read.c.
9378 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
9380 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
9381 (COMMON_SFILES): Add dwarf2/leb.c.
9383 2020-02-08 Joel Brobecker <brobecker@adacore.com>
9387 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9390 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
9391 * gdb/remote.c (remote_console_output): Update.
9392 * gdb/ui-file.c (fputs_unfiltered): Rename to...
9393 (ui_file_puts): ...this.
9394 * gdb/ui-file.h (ui_file_puts): Add declaration.
9395 * gdb/utils.c (emit_style_escape): Update.
9396 (flush_wrap_buffer): Update.
9397 (fputs_maybe_filtered): Update.
9398 (fputs_unfiltered): Add function.
9400 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9402 * gdb/event-loop.c (gdb_wait_for_event): Update.
9403 * gdb/printcmd.c (printf_command): Update.
9404 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
9405 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
9406 (gdb_os_flush_stderr): Update.
9407 * gdb/remote.c (remote_console_output): Update.
9408 * gdb/ui-file.c (gdb_flush): Rename to...
9409 (ui_file_flush): ...this.
9410 (stderr_file::write): Update.
9411 (stderr_file::puts): Update.
9412 * gdb/ui-file.h (gdb_flush): Rename to...
9413 (ui_file_flush): ...this.
9414 * gdb/utils.c (gdb_flush): Add function.
9415 * gdb/utils.h (gdb_flush): Add declaration.
9417 2020-02-07 Tom Tromey <tromey@adacore.com>
9419 PR breakpoints/24915:
9420 * source.c (find_and_open_source): Do not check basenames_may_differ.
9422 2020-02-07 Tom Tromey <tom@tromey.com>
9424 * README: Update gdbserver documentation.
9425 * gdbserver: Move to top level.
9426 * configure.tgt (build_gdbserver): Remove.
9427 * configure.ac: Remove --enable-gdbserver.
9428 * configure: Rebuild.
9429 * Makefile.in (distclean): Don't mention gdbserver.
9431 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
9433 * source-cache.c (source_cache::ensure): Surround
9434 get_plain_source_lines with a try/catch.
9435 (source_cache::get_line_charpos): Get rid of try/catch
9436 and only check for the return value of "ensure".
9437 * tui/tui-source.c (tui_source_window::set_contents):
9438 Simplify "nlines" calculation.
9440 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
9442 * MAINTAINERS (Write After Approval): Add myself.
9444 2020-02-05 Christian Biesinger <cbiesinger@google.com>
9446 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
9449 2020-02-05 Christian Biesinger <cbiesinger@google.com>
9451 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
9453 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
9455 * nat/riscv-linux-tdesc.h: New file.
9456 * nat/riscv-linux-tdesc.c: New file, taking code from...
9457 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9459 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
9462 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
9464 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
9465 we don't set the fake simulator ptid to the null_ptid.
9467 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
9469 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
9470 * gdbthread.h (class thread_info) <resumed>: Likewise.
9471 * infrun.c (resume_1): Likewise.
9472 (proceed): Likewise.
9473 (infrun_thread_stop_requested): Likewise.
9474 (stop_all_threads): Likewise.
9475 (handle_inferior_event): Likewise.
9476 (restart_threads): Likewise.
9477 (finish_step_over): Likewise.
9478 (keep_going_stepped_thread): Likewise.
9479 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
9480 (linux_handle_extended_wait): Likewise.
9481 * record-btrace.c (get_thread_current_frame_id): Likewise.
9482 * record-full.c (record_full_wait_1): Likewise.
9483 * remote.c (remote_target::process_initial_stop_replies): Likewise.
9484 * target.c (target_resume): Likewise.
9485 * thread.c (set_running_thread): Likewise.
9487 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9489 * f-valprint.c (f77_print_array_1): Changed datatype of index
9490 variable to LONGEST from int to enable it to contain bound
9493 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
9495 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
9496 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
9497 offsets according to FLEN determined.
9498 (riscv_linux_nat_target::read_description): Determine FLEN
9500 (riscv_linux_nat_target::fetch_registers): Size regset buffer
9501 according to FLEN determined.
9502 (riscv_linux_nat_target::store_registers): Likewise.
9504 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
9506 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
9507 when reg->group is empty and reggroup is not.
9509 2020-01-31 Tom Tromey <tromey@adacore.com>
9511 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
9512 Call beneath target's mourn_inferior after unpushing.
9514 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
9517 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
9518 have enough lines to fill the screen, still return the lowest
9521 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
9523 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
9524 '-', '<', and '>' commands.
9526 2020-01-29 Pedro Alves <palves@redhat.com>
9527 Sergio Durigan Junior <sergiodj@redhat.com>
9529 * infcmd.c (construct_inferior_arguments): Assert that
9530 'argc' is greater than 0.
9532 2020-01-29 Luis Machado <luis.machado@linaro.org>
9534 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
9535 (BRK_INSN_MASK): Define to 0xd4200000.
9536 (aarch64_program_breakpoint_here_p): New function.
9537 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
9538 * arch-utils.c (default_program_breakpoint_here_p): Moved from
9540 * arch-utils.h (default_program_breakpoint_here_p): Moved from
9542 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
9543 call gdbarch_program_breakpoint_here_p.
9544 (program_breakpoint_here): Moved to arch-utils.c, renamed to
9545 default_program_breakpoint_here_p, changed return type to bool and
9547 * breakpoint.h (program_breakpoint_here): Moved prototype to
9548 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
9549 return type to bool.
9550 * gdbarch.c: Regenerate.
9551 * gdbarch.h: Regenerate.
9552 * gdbarch.sh (program_breakpoint_here_p): New method.
9553 * infrun.c (handle_signal_stop): Call
9554 gdbarch_program_breakpoint_here_p.
9556 2020-01-26 Tom Tromey <tom@tromey.com>
9558 * ctfread.c (struct ctf_fp_info): Reindent.
9559 (_initialize_ctfread): Remove.
9561 2020-01-26 Tom Tromey <tom@tromey.com>
9563 * psymtab.c (partial_map_expand_apply)
9564 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
9565 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
9566 (psym_print_stats, psym_expand_symtabs_for_function)
9567 (psym_map_symbol_filenames, psym_map_matching_symbols)
9568 (psym_expand_symtabs_matching)
9569 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
9570 (maintenance_check_psymtabs): Use new methods.
9571 * psympriv.h (struct partial_symtab) <readin_p,
9572 get_compunit_symtab>: New methods.
9573 <readin, compunit_symtab>: Remove members.
9574 (struct standard_psymtab): New.
9575 (struct legacy_psymtab): Derive from standard_psymtab.
9576 * dwarf2read.h (struct dwarf2_psymtab): Derive from
9578 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
9580 2020-01-26 Tom Tromey <tom@tromey.com>
9582 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
9583 read_dependencies. Add assert.
9584 * psymtab.c (partial_symtab::read_dependencies): New method.
9585 * psympriv.h (struct partial_symtab) <read_dependencies>: New
9587 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
9588 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
9590 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
9593 2020-01-26 Tom Tromey <tom@tromey.com>
9595 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
9596 Call expand_psymtab.
9597 (xcoff_read_symtab): Call expand_psymtab.
9598 (xcoff_start_psymtab, xcoff_end_psymtab): Set
9599 legacy_expand_psymtab.
9600 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
9602 (struct legacy_psymtab) <expand_psymtab>: Implement.
9603 <legacy_expand_psymtab>: New member.
9604 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
9605 (parse_partial_symbols): Set legacy_expand_psymtab.
9606 (psymtab_to_symtab_1): Change argument order. Call
9608 (new_psymtab): Set legacy_expand_psymtab.
9609 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
9610 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
9612 (dwarf2_psymtab::expand_psymtab): Rename from
9613 psymtab_to_symtab_1. Call expand_psymtab.
9614 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
9615 (dbx_end_psymtab): Likewise.
9616 (dbx_psymtab_to_symtab_1): Change argument order. Call
9618 (dbx_read_symtab): Call expand_psymtab.
9619 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
9620 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
9621 (ctf_psymtab::read_symtab): Call expand_psymtab.
9623 2020-01-26 Tom Tromey <tom@tromey.com>
9625 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
9626 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
9628 * mdebugread.c (mdebug_read_symtab): Remove prints.
9629 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
9631 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
9633 2020-01-26 Tom Tromey <tom@tromey.com>
9635 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
9636 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
9637 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
9639 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
9640 * psymtab.c (psymtab_to_symtab): Call method.
9641 (dump_psymtab): Update.
9642 * psympriv.h (struct partial_symtab): Add virtual destructor.
9643 <read_symtab>: New method.
9644 (struct legacy_symtab): New.
9645 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
9646 (struct pst_map) <pst>: Now a legacy_psymtab.
9647 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
9648 (new_psymtab): Use legacy_psymtab.
9649 * dwarf2read.h (struct dwarf2_psymtab): New.
9650 (struct dwarf2_per_cu_data) <psymtab>: Use it.
9651 * dwarf2read.c (dwarf2_create_include_psymtab)
9652 (dwarf2_build_include_psymtabs, create_type_unit_group)
9653 (create_partial_symtab, process_psymtab_comp_unit_reader)
9654 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
9655 (set_partial_user): Use dwarf2_psymtab.
9656 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
9657 (psymtab_to_symtab_1, process_full_comp_unit)
9658 (process_full_type_unit, dwarf2_ranges_read)
9659 (dwarf2_get_pc_bounds, psymtab_include_file_name)
9660 (dwarf_decode_lines): Use dwarf2_psymtab.
9661 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
9662 (add_address_entry_worker, write_one_signatured_type)
9663 (recursively_count_psymbols, recursively_write_psymbols)
9664 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
9665 (write_debug_names): Likewise.
9666 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
9667 <pst>: Now a legacy_psymtab.
9668 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
9669 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
9670 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
9671 * ctfread.c (struct ctf_psymtab): New.
9672 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
9674 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
9675 (create_partial_symtab): Return a ctf_psymtab.
9676 (scan_partial_symbols): Update.
9678 2020-01-26 Tom Tromey <tom@tromey.com>
9680 * xcoffread.c (xcoff_start_psymtab): Use new.
9681 * psymtab.c (partial_symtab::partial_symtab): New constructor,
9682 renamed from start_psymtab_common.
9683 * psympriv.h (struct partial_symtab): Add new constructor.
9684 (start_psymtab_common): Don't declare.
9685 * mdebugread.c (parse_partial_symbols): Use new.
9686 * dwarf2read.c (create_partial_symtab): Use new.
9687 * dbxread.c (start_psymtab): Use new.
9688 * ctfread.c (create_partial_symtab): Use new.
9690 2020-01-26 Tom Tromey <tom@tromey.com>
9692 * xcoffread.c (xcoff_end_psymtab): Use new.
9693 * psymtab.c (start_psymtab_common): Use new.
9694 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
9696 * psympriv.h (struct partial_symtab): Add parameters to
9697 constructor. Don't inline.
9698 (allocate_psymtab): Don't declare.
9699 * mdebugread.c (new_psymtab): Use new.
9700 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
9701 * dbxread.c (dbx_end_psymtab): Use new.
9703 2020-01-26 Tom Tromey <tom@tromey.com>
9705 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
9706 allocate_psymtab. Update documentation.
9707 * psymtab.c (psymtab_storage::install_psymtab): Rename from
9708 allocate_psymtab. Do not use new.
9709 (allocate_psymtab): Use new. Update.
9711 2020-01-26 Tom Tromey <tom@tromey.com>
9713 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
9714 * psymtab.c (psym_print_stats): Update.
9715 * psympriv.h (struct partial_symtab) <readin,
9716 psymtabs_addrmap_supported, anonymous>: Now bool.
9717 * mdebugread.c (psymtab_to_symtab_1): Update.
9718 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
9719 (build_type_psymtabs_reader, psymtab_to_symtab_1)
9720 (process_full_comp_unit, process_full_type_unit): Update.
9721 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
9722 * ctfread.c (psymtab_to_symtab): Update.
9724 2020-01-26 Tom Tromey <tom@tromey.com>
9726 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
9727 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
9728 * psymtab.c (psymtab_storage): Delete psymtabs.
9729 (psymtab_storage::allocate_psymtab): Use new.
9730 (psymtab_storage::discard_psymtab): Use delete.
9731 * psympriv.h (struct partial_symtab): Add constructor and
9734 2020-01-26 Tom Tromey <tom@tromey.com>
9736 * machoread.c: Do not include psympriv.h.
9738 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9740 * NEWS: Mention the new option and the set/show commands.
9742 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9744 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
9745 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
9746 (validate_exec_file): New variables, enums, functions.
9747 (exec_file_locate_attach, print_section_info): Style the filenames.
9748 (_initialize_exec): Install show_exec_file_mismatch_command and
9749 set_exec_file_mismatch_command.
9750 * gdbcore.h (validate_exec_file): Declare.
9751 * infcmd.c (attach_command): Call validate_exec_file.
9752 * remote.c ( remote_target::remote_add_inferior): Likewise.
9754 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9756 * frame.c (find_frame_sal): Move call to get_next_frame into more
9758 * inline-frame.c (inilne_state) <inline_state>: Update argument
9760 (inilne_state) <skipped_symbol>: Rename to...
9761 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
9762 (skip_inline_frames): Build vector of skipped symbols and use this
9763 to reate the inline_state.
9764 (inline_skipped_symbol): Add a comment and some assertions, fetch
9765 skipped symbol from the list.
9767 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9769 * buildsym.c (lte_is_less_than): Delete.
9770 (buildsym_compunit::end_symtab_with_blockvector): Create local
9771 lambda function to sort line table entries, and use
9772 std::stable_sort instead of std::sort.
9773 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
9774 markers when looking for a previous line.
9776 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9778 * dwarf2read.c (lnp_state_machine::record_line): Include
9779 end_sequence parameter in debug print out. Record the line if we
9780 are at an end_sequence marker even if it's not the start of a
9782 * symmisc.c (maintenance_print_one_line_table): Print end of
9783 sequence markers with 'END' not '0'.
9785 2020-01-24 Pedro Alves <palves@redhat.com>
9788 * thread.c (scoped_restore_current_thread::restore): Use
9789 switch_to_inferior_no_thread.
9790 * exec.c: Include "progspace-and-thread.h".
9791 (add_target_sections, remove_target_sections):
9792 scoped_restore_current_pspace_and_thread instead of
9793 scoped_restore_current_thread.
9794 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
9795 and aspace to the inferior before calling clone_program_space.
9796 Remove stale comment.
9798 2020-01-24 Christian Biesinger <cbiesinger@google.com>
9800 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
9801 (arm_netbsd_nat_target::fetch_registers): ...this.
9802 (arm_nbsd_nat_target::store_registers): Rename to...
9803 (arm_netbsd_nat_target::store_registers): ...this.
9805 2020-01-24 Christian Biesinger <cbiesinger@google.com>
9807 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9810 2020-01-24 Christian Biesinger <cbiesinger@google.com>
9812 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
9814 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
9816 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
9817 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
9818 the correct replacement (iterate_over_regset_sections).
9819 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
9822 2020-01-24 Graham Markall <graham.markall@embecosm.com>
9825 * gdb/python/python.c (execute_gdb_command): Call
9826 async_enable_stdin in catch block.
9828 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9830 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
9831 SWITCH_THRU_ALL_UIS.
9833 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9836 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
9837 comment, add extra parameter, and update to store previous symbol
9839 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
9840 add extra parameter.
9841 * tui/tui-disasm.c (tui_disassemble): Update header comment,
9842 remove unneeded parameter, add try/catch around gdb_print_insn,
9843 rewrite to add items to asm_lines vector.
9844 (tui_find_backward_disassembly_start_address): New function.
9845 (tui_find_disassembly_address): Updated throughout.
9846 (tui_disasm_window::set_contents): Update for changes to
9848 (tui_disasm_window::do_scroll_vertical): No need to adjust the
9849 number of lines to scroll.
9851 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
9853 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
9854 (SECT_OFF_DATA): Likewise.
9855 (SECT_OFF_RODATA): Likewise.
9856 (SECT_OFF_TEXT): Likewise.
9857 (SECT_OFF_BSS): Likewise.
9858 (struct objfile) <text_section_offset, data_section_offset>: New
9860 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
9861 objfile::text_section_offset.
9862 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
9863 * coffread.c (coff_symtab_read): Likewise.
9864 (enter_linenos): Likewise.
9865 (process_coff_symbol): Likewise.
9866 * ctfread.c (get_objfile_text_range): Likewise.
9867 * dtrace-probe.c (dtrace_probe::get_relocated_address):
9868 Use objfile::data_section_offset.
9869 * dwarf2-frame.c (execute_cfa_program): Use
9870 objfile::text_section_offset.
9871 (dwarf2_frame_find_fde): Likewise.
9872 * dwarf2read.c (create_addrmap_from_index): Likewise.
9873 (create_addrmap_from_aranges): Likewise.
9874 (dw2_find_pc_sect_compunit_symtab): Likewise.
9875 (process_psymtab_comp_unit_reader): Likewise.
9876 (add_partial_symbol): Likewise.
9877 (add_partial_subprogram): Likewise.
9878 (process_full_comp_unit): Likewise.
9879 (read_file_scope): Likewise.
9880 (read_func_scope): Likewise.
9881 (read_lexical_block_scope): Likewise.
9882 (read_call_site_scope): Likewise.
9883 (dwarf2_rnglists_process): Likewise.
9884 (dwarf2_ranges_process): Likewise.
9885 (dwarf2_ranges_read): Likewise.
9886 (dwarf_decode_lines_1): Likewise.
9887 (new_symbol): Likewise.
9888 (dwarf2_fetch_die_loc_sect_off): Likewise.
9889 (dwarf2_per_cu_text_offset): Likewise.
9890 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
9891 * hppa-tdep.c (read_unwind_info): Likewise.
9892 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
9893 * psympriv.h (struct partial_symtab): Likewise.
9894 * psymtab.c (find_pc_sect_psymtab): Likewise.
9895 * solib-svr4.c (enable_break): Likewise.
9896 * stap-probe.c (relocate_address): Use
9897 objfile::data_section_offset.
9898 * xcoffread.c (enter_line_range): Use
9899 objfile::text_section_offset.
9900 (read_xcoff_symtab): Likewise.
9902 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
9904 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
9905 declaration to narrower scopes.
9907 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
9909 * darwin-nat.h (struct darwin_exception_msg, enum
9910 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
9912 (class darwin_nat_target) <wait_1, check_new_threads,
9913 decode_exception_message, decode_message, stop_inferior,
9914 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
9915 * darwin-nat.c (darwin_check_new_threads): Rename to...
9916 (darwin_nat_target::check_new_threads): ... this.
9917 (darwin_suspend_inferior_it): Remove.
9918 (darwin_decode_exception_message): Rename to...
9919 (darwin_nat_target::decode_exception_message): ... this.
9920 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
9921 (darwin_decode_message): Rename to...
9922 (darwin_nat_target::decode_message): ... this.
9923 (cancel_breakpoint): Rename to...
9924 (darwin_nat_target::cancel_breakpoint): ... this.
9925 (darwin_wait): Rename to...
9926 (darwin_nat_target::wait_1): ... this. Use range-based for loop
9927 instead of iterate_over_inferiors.
9928 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
9929 (darwin_stop_inferior): Rename to...
9930 (darwin_nat_target::stop_inferior): ... this.
9931 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
9932 (darwin_init_thread_list): Rename to...
9933 (darwin_nat_target::init_thread_list): ... this.
9934 (darwin_ptrace_him): Rename to...
9935 (darwin_nat_target::ptrace_him): ... this.
9936 (darwin_nat_target::create_inferior): Pass lambda function to
9938 (darwin_nat_target::detach): Call stop_inferior instead of
9939 darwin_stop_inferior.
9940 * fork-inferior.h (fork_inferior): Change init_trace_fun
9941 parameter to gdb::function_view.
9942 * fork-inferior.c (fork_inferior): Likewise.
9944 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
9946 * i386-cygwin-tdep.c (core_process_module_section): Update.
9947 * windows-nat.c (struct lm_info_windows): Add text_offset.
9948 (windows_xfer_shared_libraries): Update.
9949 * windows-tdep.c (windows_xfer_shared_library):
9950 Add text_offset_cached argument.
9951 * windows-tdep.h (windows_xfer_shared_library): Update.
9953 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
9955 * gdbarch.sh: Add declaration for _initialize_gdbarch.
9957 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
9959 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
9960 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
9961 replace with range-based for.
9962 (gdbsim_interrupt_inferior): Remove.
9963 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
9964 with a range-based for. Inline code from
9965 gdbsim_interrupt_inferior.
9967 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
9969 * infrun.c (proceed): Fix indentation.
9971 2020-01-21 Tom Tromey <tromey@adacore.com>
9973 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
9974 * python/python.c (python_extension_ops): Update.
9975 (gdbpy_colorize): New function.
9976 * python/lib/gdb/__init__.py (colorize): New function.
9977 * extension.h (ext_lang_colorize): Declare.
9978 * extension.c (ext_lang_colorize): New function.
9979 * extension-priv.h (struct extension_language_ops) <colorize>: New
9981 * cli/cli-style.c (_initialize_cli_style): Update help text.
9983 2020-01-21 Luis Machado <luis.machado@linaro.org>
9985 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
9986 <cond>: Change type to bool.
9987 (aarch64_displaced_step_b_cond): Update cond to use bool type.
9988 (aarch64_displaced_step_cb): Likewise.
9989 (aarch64_displaced_step_tb): Likewise.
9991 2020-01-21 Luis Machado <luis.machado@linaro.org>
9993 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
9996 2020-01-21 Luis Machado <luis.machado@linaro.org>
9998 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
9999 <pc_adjust>: Adjust the documentation.
10000 (aarch64_displaced_step_fixup): Check if PC really moved before
10003 2020-01-19 Tom Tromey <tom@tromey.com>
10005 * disasm.c (~gdb_disassembler): New destructor.
10006 (gdb_buffered_insn_length): Call disassemble_free_target.
10007 * disasm.h (class gdb_disassembler): Declare destructor. Use
10008 DISABLE_COPY_AND_ASSIGN.
10010 2020-01-19 Tom Tromey <tom@tromey.com>
10012 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
10013 (die_reader_func_ftype): Remove.
10014 (cutu_reader): New class.
10015 (dw2_get_file_names_reader): Remove "data" parameter.
10016 (dw2_get_file_names): Use cutu_reader.
10017 (create_debug_type_hash_table): Update.
10018 (read_cutu_die_from_dwo): Update comment.
10019 (lookup_dwo_unit): Add dwo_name parameter.
10020 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
10021 die_reader_func_ftype and data parameters.
10022 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
10023 Remove die_reader_func_ftype and data parameters.
10024 (~cutu_reader): New; from init_cutu_and_read_dies.
10025 (cutu_reader::cutu_reader): Rename from
10026 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
10027 and data parameters.
10028 (init_cutu_and_read_dies_simple): Remove.
10029 (struct process_psymtab_comp_unit_data): Remove.
10030 (process_psymtab_comp_unit_reader): Remove data parameter; add
10031 want_partial_unit and pretend_language parameters.
10032 (process_psymtab_comp_unit): Use cutu_reader.
10033 (build_type_psymtabs_reader): Remove data parameter.
10034 (build_type_psymtabs_1): Use cutu_reader.
10035 (process_skeletonless_type_unit): Likewise.
10036 (load_partial_comp_unit_reader): Remove.
10037 (load_partial_comp_unit): Use cutu_reader.
10038 (load_full_comp_unit_reader): Remove.
10039 (load_full_comp_unit): Use cutu_reader.
10040 (struct create_dwo_cu_data): Remove.
10041 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
10042 dwo_unit parameters.
10043 (create_cus_hash_table): Use cutu_reader.
10044 (struct dwarf2_read_addr_index_data): Remove.
10045 (dwarf2_read_addr_index_reader): Remove.
10046 (dwarf2_read_addr_index): Use cutu_reader.
10047 (read_signatured_type_reader): Remove.
10048 (read_signatured_type): Use cutu_reader.
10050 2020-01-19 Tom Tromey <tom@tromey.com>
10052 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
10053 * tui/tui-wingeneral.h (class tui_suppress_output): New.
10054 (tui_wrefresh): Declare.
10055 * tui/tui-wingeneral.c (suppress_output): New global.
10056 (tui_suppress_output, ~tui_suppress_output): New constructor and
10058 (tui_wrefresh): New function.
10059 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
10060 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
10061 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
10063 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
10065 (tui_data_window::no_refresh): New method.
10066 (tui_data_item_window::refresh_window): Call tui_wrefresh.
10067 (tui_reg_command): Use tui_suppress_output
10068 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
10069 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
10071 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
10073 2020-01-19 Tom Tromey <tom@tromey.com>
10075 * tui/tui-winsource.c (tui_update_source_windows_with_line):
10076 Handle case where symtab is null.
10078 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
10080 * linux-fork.c (one_fork_p): Simplify.
10082 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10084 * top.c (struct qt_args): Remove.
10085 (kill_or_detach): Change return type to void, replace `void *`
10086 parameter with a proper one.
10087 (print_inferior_quit_action): Likewise.
10088 (quit_confirm): Use range-based for loop to iterate over inferiors.
10089 (quit_force): Likewise.
10091 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10093 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
10094 `void *` parameter with proper parameters.
10095 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
10096 (print_one_inferior): Change return type to void, replace `void *`
10097 parameter with proper parameters.
10098 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
10100 (get_other_inferior): Remove.
10101 (mi_cmd_remove_inferior): Use range-based loop to iterate over
10104 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10106 * mi/mi-interp.c (report_initial_inferior): Remove.
10107 (mi_interp::init): Use range-based for to iterate over inferiors.
10109 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10111 * python/py-inferior.c (build_inferior_list): Remove.
10112 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
10114 2020-01-16 Christian Biesinger <cbiesinger@google.com>
10116 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
10117 (btrace_stitch_trace): Likewise.
10118 * charset.c (intermediate_encoding): Likewise (vaild).
10119 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
10120 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
10121 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
10123 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
10125 * windows-tdep.c (windows_get_tlb_type):
10126 Add rtl_user_process_parameters type.
10128 2020-01-16 Pedro Alves <palves@redhat.com>
10129 Norbert Lange <nolange79@gmail.com>
10132 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
10133 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
10134 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
10135 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
10136 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
10137 (ps_plog): Redeclare exported functions with default visibility.
10139 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
10141 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
10142 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
10144 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
10146 * infcmd.c (post_create_inferior): Use get_thread_regcache
10147 instead of get_current_regcache.
10149 2020-01-14 Tom Tromey <tom@tromey.com>
10152 * python/python.c (gdbpy_decode_line): Treat empty string the same
10155 2020-01-14 Tom Tromey <tom@tromey.com>
10157 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
10159 2020-01-14 Tom Tromey <tom@tromey.com>
10161 * nat/linux-btrace.c: Don't include <config.h>.
10162 * nat/linux-ptrace.c: Don't include <config.h>.
10163 * nat/x86-linux-dregs.c: Don't include <config.h>.
10165 2020-01-14 Tom Tromey <tom@tromey.com>
10167 * configure: Rebuild.
10168 * configure.ac: Move many checks to ../gdbsupport/common.m4.
10170 2020-01-14 Tom Tromey <tom@tromey.com>
10172 * nat/x86-linux-dregs.c: Include configh.h.
10173 * nat/linux-ptrace.c: Include configh.h.
10174 * nat/linux-btrace.c: Include configh.h.
10175 * defs.h: Include config.h, bfd.h.
10176 * configure.ac: Don't source common.host.
10177 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
10178 * configure: Rebuild.
10179 * acinclude.m4: Update path.
10180 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
10181 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
10182 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
10183 (CLIBS): Add LIBSUPPORT.
10185 (COMMON_SFILES): Remove gdbsupport files.
10186 (HFILES_NO_SRCDIR): Likewise.
10187 (stamp-version): Update path to create-version.sh.
10188 (ALLDEPFILES): Remove gdbsupport files.
10190 2020-01-14 Tom Tromey <tom@tromey.com>
10192 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
10193 USE_WIN32API when needed.
10194 * configure.ac (USE_WIN32API): Don't define.
10195 (WIN32LIBS): Use WIN32APILIBS.
10196 * configure: Rebuild.
10198 2020-01-14 Tom Tromey <tom@tromey.com>
10200 * configure: Rebuild.
10201 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
10203 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
10205 * skip.c (skip_function_command): Make skip w/o arguments use the
10206 name of the inlined function if pc is inside any inlined function.
10208 2020-01-14 Luis Machado <luis.machado@linaro.org>
10210 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
10211 * infrun.c (resume_1): Likewise.
10212 (handle_inferior_event): Remove stale comment.
10213 * linux-nat.c (linux_nat_target::resume): Update comments.
10214 (save_stop_reason): Likewise.
10215 (linux_nat_filter_event): Likewise.
10216 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
10218 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10220 * elfread.c (record_minimal_symbol): Set section index to 0 for
10221 non-allocatable sections.
10224 2020-01-13 Ali Tamur <tamur@google.com>
10226 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
10227 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
10228 to gdb::optional. Update comments.
10229 (dwo_file): Update comments.
10230 (read_attribute): Update API to take an additional out parameter,
10231 need_reprocess. This is used to mark attributes that need other
10232 attributes (e.g. str_offsets_base) for correct computation which may not
10233 have been read yet.
10234 (read_attribute_reprocess): New function declaration.
10235 (read_addr_index): Likewise.
10236 (read_dwo_str_index): Likewise.
10237 (read_stub_str_index): Likewise.
10238 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
10239 (lookup_addr_base): New function definition.
10240 (lookup_ranges_base): Likewise.
10241 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
10242 lookup_ranges_base.
10243 (init_cutu_and_read_dies): Update comments.
10244 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
10245 unit. This is used to inherit parent's str_offsets_base and addr_base.
10247 (init_cutu_and_read_dies_simple): Reflect API changes.
10248 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
10249 (create_cus_hash_table): Change API to take parent compile unit.
10250 Reflect API changes.
10251 (open_and_init_dwo_file): Reflect API changes.
10252 (dwarf2_get_pc_bounds): Update comments.
10253 (dwarf2_record_block_ranges): Likewise.
10254 (read_full_die_1): Change implementation to reprocess attributes that
10255 need str_offsets_base and addr_base.
10256 (partial_die_info::read): Likewise.
10257 (read_attribute_reprocess): New function definition.
10258 (read_attribute_value): Change API to take an additional out parameter,
10259 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
10260 when a non-dwo compile unit has index based attributes.
10261 (read_attribute): Reflect API changes.
10262 (read_addr_index_1): Reflect API changes. Update comments.
10263 (dwarf2_read_addr_index_data): Reflect API changes.
10264 (dwarf2_read_addr_index): Likewise.
10265 (read_str_index): Change API and implementation. This becomes a helper
10266 to be used by the new string index related methods. Update error
10267 message and comments.
10268 (read_dwo_str_index): New function definition.
10269 (read_stub_str_index): Likewise.
10270 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
10271 * symfile.h (dwarf2_debug_sections): Likewise.
10272 * xcoffread.c (dwarf2_debug_sections): Likewise.
10274 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10276 * gdbcore.h (struct core_fns) <core_read_registers>: Change
10277 core_reg_sect type to gdb_byte *.
10278 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
10279 * cris-tdep.c (fetch_core_registers): Likewise.
10280 * corelow.c (core_target::get_core_register_section): Change
10281 type of `contents` to gdb::byte_vector.
10283 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10285 * tui/tui-wingeneral.c (box_win): Position the title in the center
10288 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10290 * corelow.c (core_target::get_core_register_section): Use
10291 std::vector instead of alloca.
10293 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10295 * warning.m4: Add -Wmissing-declarations to build_warnings.
10296 * configure: Re-generate.
10298 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10300 * python/python.c (init__gdb_module): Add declaration.
10302 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10304 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
10305 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
10306 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
10307 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
10308 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
10309 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
10310 * ada-exp.y (_initialize_ada_exp): Add declaration.
10311 * ada-lang.c (_initialize_ada_language): Add declaration.
10312 * ada-tasks.c (_initialize_tasks): Add declaration.
10313 * agent.c (_initialize_agent): Add declaration.
10314 * aix-thread.c (_initialize_aix_thread): Add declaration.
10315 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
10316 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
10317 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
10318 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
10319 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
10320 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
10321 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
10322 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
10323 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
10324 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
10325 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
10326 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
10327 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
10328 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
10329 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
10330 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
10331 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
10332 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
10333 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
10334 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
10335 * annotate.c (_initialize_annotate): Add declaration.
10336 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
10337 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
10338 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
10339 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
10340 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
10341 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
10342 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
10343 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
10344 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
10345 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
10346 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
10347 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
10348 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
10349 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
10350 * auto-load.c (_initialize_auto_load): Add declaration.
10351 * auxv.c (_initialize_auxv): Add declaration.
10352 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
10353 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
10354 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
10355 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
10356 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
10357 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
10358 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
10359 * breakpoint.c (_initialize_breakpoint): Add declaration.
10360 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
10361 * btrace.c (_initialize_btrace): Add declaration.
10362 * charset.c (_initialize_charset): Add declaration.
10363 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
10364 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
10365 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
10366 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
10367 * cli/cli-script.c (_initialize_cli_script): Add declaration.
10368 * cli/cli-style.c (_initialize_cli_style): Add declaration.
10369 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
10370 * coffread.c (_initialize_coffread): Add declaration.
10371 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
10372 * compile/compile.c (_initialize_compile): Add declaration.
10373 * complaints.c (_initialize_complaints): Add declaration.
10374 * completer.c (_initialize_completer): Add declaration.
10375 * copying.c (_initialize_copying): Add declaration.
10376 * corefile.c (_initialize_core): Add declaration.
10377 * corelow.c (_initialize_corelow): Add declaration.
10378 * cp-abi.c (_initialize_cp_abi): Add declaration.
10379 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
10380 * cp-support.c (_initialize_cp_support): Add declaration.
10381 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
10382 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
10383 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
10384 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
10385 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
10386 * ctfread.c (_initialize_ctfread): Add declaration.
10387 * d-lang.c (_initialize_d_language): Add declaration.
10388 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
10389 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
10390 * dbxread.c (_initialize_dbxread): Add declaration.
10391 * dcache.c (_initialize_dcache): Add declaration.
10392 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
10393 * disasm.c (_initialize_disasm): Add declaration.
10394 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
10395 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
10396 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
10397 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
10398 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
10399 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
10400 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
10401 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
10402 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
10403 * elfread.c (_initialize_elfread): Add declaration.
10404 * exec.c (_initialize_exec): Add declaration.
10405 * extension.c (_initialize_extension): Add declaration.
10406 * f-lang.c (_initialize_f_language): Add declaration.
10407 * f-valprint.c (_initialize_f_valprint): Add declaration.
10408 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
10409 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
10410 * filesystem.c (_initialize_filesystem): Add declaration.
10411 * findcmd.c (_initialize_mem_search): Add declaration.
10412 * findvar.c (_initialize_findvar): Add declaration.
10413 * fork-child.c (_initialize_fork_child): Add declaration.
10414 * frame-base.c (_initialize_frame_base): Add declaration.
10415 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
10416 * frame.c (_initialize_frame): Add declaration.
10417 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
10418 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
10419 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
10420 * gcore.c (_initialize_gcore): Add declaration.
10421 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
10422 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
10423 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
10424 * gdbarch.c (_initialize_gdbarch): Add declaration.
10425 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
10426 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
10427 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
10428 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
10429 * go-lang.c (_initialize_go_language): Add declaration.
10430 * go32-nat.c (_initialize_go32_nat): Add declaration.
10431 * guile/guile.c (_initialize_guile): Add declaration.
10432 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
10433 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
10434 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
10435 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
10436 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
10437 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
10438 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
10439 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
10440 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
10441 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
10442 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
10443 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
10444 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
10445 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
10446 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
10447 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
10448 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
10449 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
10450 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
10451 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
10452 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
10453 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
10454 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
10455 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
10456 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
10457 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
10458 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
10459 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
10460 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
10461 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
10462 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
10463 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
10464 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
10465 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
10466 * infcall.c (_initialize_infcall): Add declaration.
10467 * infcmd.c (_initialize_infcmd): Add declaration.
10468 * inflow.c (_initialize_inflow): Add declaration.
10469 * infrun.c (_initialize_infrun): Add declaration.
10470 * interps.c (_initialize_interpreter): Add declaration.
10471 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
10472 * jit.c (_initialize_jit): Add declaration.
10473 * language.c (_initialize_language): Add declaration.
10474 * linux-fork.c (_initialize_linux_fork): Add declaration.
10475 * linux-nat.c (_initialize_linux_nat): Add declaration.
10476 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
10477 * linux-thread-db.c (_initialize_thread_db): Add declaration.
10478 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
10479 * m2-lang.c (_initialize_m2_language): Add declaration.
10480 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
10481 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
10482 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
10483 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
10484 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
10485 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
10486 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
10487 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
10488 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
10489 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
10490 * machoread.c (_initialize_machoread): Add declaration.
10491 * macrocmd.c (_initialize_macrocmd): Add declaration.
10492 * macroscope.c (_initialize_macroscope): Add declaration.
10493 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
10494 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
10495 * maint.c (_initialize_maint_cmds): Add declaration.
10496 * mdebugread.c (_initialize_mdebugread): Add declaration.
10497 * memattr.c (_initialize_mem): Add declaration.
10498 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
10499 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
10500 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
10501 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
10502 * mi/mi-main.c (_initialize_mi_main): Add declaration.
10503 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
10504 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
10505 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
10506 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
10507 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
10508 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
10509 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
10510 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
10511 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
10512 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
10513 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
10514 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
10515 * mipsread.c (_initialize_mipsread): Add declaration.
10516 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
10517 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
10518 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
10519 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
10520 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
10521 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
10522 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
10523 * nto-procfs.c (_initialize_procfs): Add declaration.
10524 * objc-lang.c (_initialize_objc_language): Add declaration.
10525 * observable.c (_initialize_observer): Add declaration.
10526 * opencl-lang.c (_initialize_opencl_language): Add declaration.
10527 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
10528 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
10529 * osabi.c (_initialize_gdb_osabi): Add declaration.
10530 * osdata.c (_initialize_osdata): Add declaration.
10531 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
10532 * parse.c (_initialize_parse): Add declaration.
10533 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
10534 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
10535 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
10536 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
10537 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
10538 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
10539 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
10540 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
10541 * printcmd.c (_initialize_printcmd): Add declaration.
10542 * probe.c (_initialize_probe): Add declaration.
10543 * proc-api.c (_initialize_proc_api): Add declaration.
10544 * proc-events.c (_initialize_proc_events): Add declaration.
10545 * proc-service.c (_initialize_proc_service): Add declaration.
10546 * procfs.c (_initialize_procfs): Add declaration.
10547 * producer.c (_initialize_producer): Add declaration.
10548 * psymtab.c (_initialize_psymtab): Add declaration.
10549 * python/python.c (_initialize_python): Add declaration.
10550 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
10551 * record-btrace.c (_initialize_record_btrace): Add declaration.
10552 * record-full.c (_initialize_record_full): Add declaration.
10553 * record.c (_initialize_record): Add declaration.
10554 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
10555 * regcache.c (_initialize_regcache): Add declaration.
10556 * reggroups.c (_initialize_reggroup): Add declaration.
10557 * remote-notif.c (_initialize_notif): Add declaration.
10558 * remote-sim.c (_initialize_remote_sim): Add declaration.
10559 * remote.c (_initialize_remote): Add declaration.
10560 * reverse.c (_initialize_reverse): Add declaration.
10561 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
10562 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
10563 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
10564 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
10565 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
10566 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
10567 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
10568 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
10570 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
10571 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
10572 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
10573 * rust-exp.y (_initialize_rust_exp): Add declaration.
10574 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
10575 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
10576 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
10577 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
10578 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
10579 * score-tdep.c (_initialize_score_tdep): Add declaration.
10580 * ser-go32.c (_initialize_ser_dos): Add declaration.
10581 * ser-mingw.c (_initialize_ser_windows): Add declaration.
10582 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
10583 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
10584 * ser-uds.c (_initialize_ser_socket): Add declaration.
10585 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
10586 * serial.c (_initialize_serial): Add declaration.
10587 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
10588 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
10589 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
10590 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
10591 * skip.c (_initialize_step_skip): Add declaration.
10592 * sol-thread.c (_initialize_sol_thread): Add declaration.
10593 * solib-aix.c (_initialize_solib_aix): Add declaration.
10594 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
10595 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
10596 * solib-frv.c (_initialize_frv_solib): Add declaration.
10597 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
10598 * solib-target.c (_initialize_solib_target): Add declaration.
10599 * solib.c (_initialize_solib): Add declaration.
10600 * source-cache.c (_initialize_source_cache): Add declaration.
10601 * source.c (_initialize_source): Add declaration.
10602 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
10603 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
10604 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
10605 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
10606 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
10607 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
10608 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
10609 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
10610 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
10611 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
10612 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
10613 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
10614 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
10615 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
10616 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
10617 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
10618 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
10619 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
10620 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
10621 * stabsread.c (_initialize_stabsread): Add declaration.
10622 * stack.c (_initialize_stack): Add declaration.
10623 * stap-probe.c (_initialize_stap_probe): Add declaration.
10624 * std-regs.c (_initialize_frame_reg): Add declaration.
10625 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
10626 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
10627 * symfile.c (_initialize_symfile): Add declaration.
10628 * symmisc.c (_initialize_symmisc): Add declaration.
10629 * symtab.c (_initialize_symtab): Add declaration.
10630 * target.c (_initialize_target): Add declaration.
10631 * target-connection.c (_initialize_target_connection): Add
10633 * target-dcache.c (_initialize_target_dcache): Add declaration.
10634 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
10635 * thread.c (_initialize_thread): Add declaration.
10636 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
10637 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
10638 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
10639 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
10640 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
10641 * tracectf.c (_initialize_ctf): Add declaration.
10642 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
10643 * tracefile.c (_initialize_tracefile): Add declaration.
10644 * tracepoint.c (_initialize_tracepoint): Add declaration.
10645 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
10646 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
10647 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
10648 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
10649 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
10650 * tui/tui-win.c (_initialize_tui_win): Add declaration.
10651 * tui/tui.c (_initialize_tui): Add declaration.
10652 * typeprint.c (_initialize_typeprint): Add declaration.
10653 * ui-style.c (_initialize_ui_style): Add declaration.
10654 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
10655 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
10656 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
10657 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
10658 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
10659 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
10660 * unittests/filtered_iterator-selftests.c
10661 (_initialize_filtered_iterator_selftests): Add declaration.
10662 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
10663 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
10664 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
10665 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
10666 * unittests/main-thread-selftests.c
10667 (_initialize_main_thread_selftests): Add declaration.
10668 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
10669 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
10670 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
10671 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
10672 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
10673 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
10674 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
10675 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
10676 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
10677 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
10678 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
10679 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
10680 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
10681 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
10682 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
10684 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
10685 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
10686 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
10687 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
10688 * user-regs.c (_initialize_user_regs): Add declaration.
10689 * utils.c (_initialize_utils): Add declaration.
10690 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
10691 * valops.c (_initialize_valops): Add declaration.
10692 * valprint.c (_initialize_valprint): Add declaration.
10693 * value.c (_initialize_values): Add declaration.
10694 * varobj.c (_initialize_varobj): Add declaration.
10695 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
10696 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
10697 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
10698 * windows-nat.c (_initialize_windows_nat): Add declaration.
10699 (_initialize_check_for_gdb_ini): Add declaration.
10700 (_initialize_loadable): Add declaration.
10701 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
10702 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
10703 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
10704 * xcoffread.c (_initialize_xcoffread): Add declaration.
10705 * xml-support.c (_initialize_xml_support): Add declaration.
10706 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
10707 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
10708 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
10709 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
10711 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10713 * regformats/regdat.sh: Generate declaration for init function.
10715 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10717 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
10719 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
10720 close_one_inferior>: New methods.
10721 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
10722 pass down target to find_inferior_pid.
10723 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
10724 Pass down target to find_inferior_ptid.
10725 (gdbsim_target::create_inferior): Pass down target to
10727 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
10728 target down to find_inferior_ptid and switch_to_thread.
10729 (gdbsim_target::close): Update to call close_one_inferior.
10730 (struct resume_data): Remove.
10731 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
10732 directly, rather than through a void pointer.
10733 (gdbsim_target::resume): Update to call resume_one_inferior.
10735 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
10737 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
10739 2020-01-12 Pedro Alves <palves@redhat.com>
10741 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
10742 directly for the current inferior instead of
10743 discard_all_inferiors.
10744 (discard_all_inferiors): Delete.
10746 2020-01-11 Tom Tromey <tom@tromey.com>
10748 * tui/tui-wingeneral.c (box_win): Check cli_styling.
10749 * tui/tui-winsource.c (tui_source_window_base::refill): Use
10750 deprecated_safe_get_selected_frame.
10752 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10754 * inferior.c (print_inferior): Switch inferior before printing it.
10756 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
10757 Pedro Alves <palves@redhat.com>
10759 * progspace-and-thread.c (switch_to_program_space_and_thread):
10760 Assert there's an inferior for PSPACE. Use
10761 switch_to_inferior_no_thread to switch the inferior too.
10762 * progspace.c (program_space::~program_space): Call
10763 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
10764 (program_space::free_all_objfiles): Don't call clear_symtab_users
10766 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
10768 2020-01-10 Pedro Alves <palves@redhat.com>
10770 * NEWS: Mention multi-target debugging, "info connections", and
10771 "add-inferior -no-connection".
10773 2020-01-10 Pedro Alves <palves@redhat.com>
10775 * infrun.c: Include "target-connection.h".
10776 (check_multi_target_resumption): New.
10777 (proceed): Call it.
10778 * target-connection.c (make_target_connection_string): Make
10780 * target-connection.h (make_target_connection_string): Declare.
10782 2020-01-10 Pedro Alves <palves@redhat.com>
10784 * Makefile.in (COMMON_SFILES): Add target-connection.c.
10785 * inferior.c (uiout_field_connection): New function.
10786 (print_inferior): Add new "connection-id" column.
10787 (add_inferior_command): Show connection number/string of added
10789 * process-stratum-target.h
10790 (process_stratum_target::connection_string): New virtual method.
10791 (process_stratum_target::connection_number): New field.
10792 * remote.c (remote_target::connection_string): New override.
10793 * target-connection.c: New file.
10794 * target-connection.h: New file.
10795 * target.c (decref_target): Remove process_stratum targets from
10796 the connection list.
10797 (target_stack::push): Add process_stratum targets to the
10800 2020-01-10 Pedro Alves <palves@redhat.com>
10803 2016-04-12 Pedro Alves <palves@redhat.com>
10804 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
10805 Remove references to name.
10806 * serial.h (struct serial) <name>: Delete.
10808 2020-01-10 Pedro Alves <palves@redhat.com>
10810 * gdbarch-selftests.c (register_to_value_test): Remove "target
10811 already pushed" check.
10813 2020-01-10 Pedro Alves <palves@redhat.com>
10814 John Baldwin <jhb@FreeBSD.org>
10816 * aarch64-linux-nat.c
10817 (aarch64_linux_nat_target::thread_architecture): Adjust.
10818 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
10819 (task_command_1): Likewise.
10820 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
10821 (aix_thread_target::wait, aix_thread_target::fetch_registers)
10822 (aix_thread_target::store_registers)
10823 (aix_thread_target::thread_alive): Adjust.
10824 * amd64-fbsd-tdep.c: Include "inferior.h".
10825 (amd64fbsd_get_thread_local_address): Pass down target.
10826 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
10827 thread's gdbarch instead of target_gdbarch.
10828 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
10829 get_last_target_status.
10830 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
10831 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
10833 (update_inserted_breakpoint_locations): Skip if inferiors with no
10835 (update_global_location_list): When handling moribund locations,
10836 find representative inferior for location's pspace, and use thread
10837 count of its process_stratum target.
10838 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
10839 * bsd-uthread.c (bsd_uthread_target::wait): Use
10840 as_process_stratum_target and adjust thread_change_ptid and
10842 (bsd_uthread_target::update_thread_list): Use
10843 as_process_stratum_target and adjust find_thread_ptid,
10844 thread_change_ptid and add_thread calls.
10845 * btrace.c (maint_btrace_packet_history_cmd): Adjust
10846 find_thread_ptid call.
10847 * corelow.c (add_to_thread_list): Adjust add_thread call.
10848 (core_target_open): Adjust add_thread_silent and thread_count
10850 (core_target::pid_to_str): Adjust find_inferior_ptid call.
10851 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
10852 * event-top.c (async_disconnect): Pop targets from all inferiors.
10853 * exec.c (add_target_sections): Push exec target on all inferiors
10854 sharing the program space.
10855 (remove_target_sections): Remove the exec target from all
10856 inferiors sharing the program space.
10857 (exec_on_vfork): New.
10858 * exec.h (exec_on_vfork): Declare.
10859 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
10861 (fbsd_nat_target::update_thread_list): Adjust.
10862 (fbsd_nat_target::resume): Adjust.
10863 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
10865 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
10866 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
10867 get_thread_arch_regcache call.
10868 * fork-child.c (gdb_startup_inferior): Pass target down to
10869 startup_inferior and set_executing.
10870 * gdbthread.h (struct process_stratum_target): Forward declare.
10871 (add_thread, add_thread_silent, add_thread_with_info)
10872 (in_thread_list): Add process_stratum_target parameter.
10873 (find_thread_ptid(inferior*, ptid_t)): New overload.
10874 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
10876 (all_threads()): Delete overload.
10877 (all_threads, all_non_exited_threads): Add process_stratum_target
10879 (all_threads_safe): Use brace initialization.
10880 (thread_count): Add process_stratum_target parameter.
10881 (set_resumed, set_running, set_stop_requested, set_executing)
10882 (threads_are_executing, finish_thread_state): Add
10883 process_stratum_target parameter.
10884 (switch_to_thread): Use is_current_thread.
10885 * i386-fbsd-tdep.c: Include "inferior.h".
10886 (i386fbsd_get_thread_local_address): Pass down target.
10887 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
10888 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
10889 have_inferiors check.
10890 * inf-ptrace.c (inf_ptrace_target::create_inferior)
10891 (inf_ptrace_target::attach): Adjust.
10892 * infcall.c (run_inferior_call): Adjust.
10893 * infcmd.c (run_command_1): Pass target to
10894 scoped_finish_thread_state.
10895 (proceed_thread_callback): Skip inferiors with no execution.
10896 (continue_command): Rename 'all_threads' local to avoid hiding
10897 'all_threads' function. Adjust get_last_target_status call.
10898 (prepare_one_step): Adjust set_running call.
10899 (signal_command): Use user_visible_resume_target. Compare thread
10900 pointers instead of inferior_ptid.
10901 (info_program_command): Adjust to pass down target.
10902 (attach_command): Mark target's 'thread_executing' flag.
10903 (stop_current_target_threads_ns): New, factored out from ...
10904 (interrupt_target_1): ... this. Switch inferior before making
10907 (struct all_inferiors_iterator, struct all_inferiors_range)
10908 (struct all_inferiors_safe_range)
10909 (struct all_non_exited_inferiors_range): Filter on
10910 process_stratum_target too. Remove explicit.
10911 * inferior.c (inferior::inferior): Push dummy target on target
10913 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
10914 Add process_stratum_target parameter, and pass it down.
10915 (have_live_inferiors): Adjust.
10916 (switch_to_inferior_and_push_target): New.
10917 (add_inferior_command, clone_inferior_command): Handle
10918 "-no-connection" parameter. Use
10919 switch_to_inferior_and_push_target.
10920 (_initialize_inferior): Mention "-no-connection" option in
10921 the help of "add-inferior" and "clone-inferior" commands.
10922 * inferior.h: Include "process-stratum-target.h".
10923 (interrupt_target_1): Use bool.
10924 (struct inferior) <push_target, unpush_target, target_is_pushed,
10925 find_target_beneath, top_target, process_target, target_at,
10927 (discard_all_inferiors): Delete.
10928 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
10929 (all_inferiors, all_non_exited_inferiors): Add
10930 process_stratum_target parameter.
10931 * infrun.c: Include "gdb_select.h" and <unordered_map>.
10932 (target_last_proc_target): New global.
10933 (follow_fork_inferior): Push target on new inferior. Pass target
10934 to add_thread_silent. Call exec_on_vfork. Handle target's
10936 (follow_fork): Adjust get_last_target_status call. Also consider
10938 (follow_exec): Push target on new inferior.
10939 (struct execution_control_state) <target>: New field.
10940 (user_visible_resume_target): New.
10941 (do_target_resume): Call target_async.
10942 (resume_1): Set target's threads_executing flag. Consider resume
10944 (commit_resume_all_targets): New.
10945 (proceed): Also consider resume target. Skip threads of inferiors
10946 with no execution. Commit resumtion in all targets.
10947 (start_remote): Pass current inferior to wait_for_inferior.
10948 (infrun_thread_stop_requested): Consider target as well. Pass
10949 thread_info pointer to clear_inline_frame_state instead of ptid.
10950 (infrun_thread_thread_exit): Consider target as well.
10951 (random_pending_event_thread): New inferior parameter. Use it.
10952 (do_target_wait): Rename to ...
10953 (do_target_wait_1): ... this. Add inferior parameter, and pass it
10955 (threads_are_resumed_pending_p, do_target_wait): New.
10956 (prepare_for_detach): Adjust calls.
10957 (wait_for_inferior): New inferior parameter. Handle it. Use
10958 do_target_wait_1 instead of do_target_wait.
10959 (fetch_inferior_event): Adjust. Switch to representative
10960 inferior. Pass target down.
10961 (set_last_target_status): Add process_stratum_target parameter.
10962 Save target in global.
10963 (get_last_target_status): Add process_stratum_target parameter and
10965 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
10966 (context_switch): Check inferior_ptid == null_ptid before calling
10968 (get_inferior_stop_soon): Pass down target.
10969 (wait_one): Rename to ...
10970 (poll_one_curr_target): ... this.
10971 (struct wait_one_event): New.
10973 (stop_all_threads): Adjust.
10974 (handle_no_resumed, handle_inferior_event): Adjust to consider the
10976 (switch_back_to_stepped_thread): Also consider target.
10977 (print_stop_event): Update.
10978 (normal_stop): Update. Also consider the resume target.
10979 * infrun.h (wait_for_inferior): Remove declaration.
10980 (user_visible_resume_target): New declaration.
10981 (get_last_target_status, set_last_target_status): New
10982 process_stratum_target parameter.
10983 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10984 process_stratum_target parameter, and use it.
10985 (clear_inline_frame_state (thread_info*)): New.
10986 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10987 process_stratum_target parameter.
10988 (clear_inline_frame_state (thread_info*)): Declare.
10989 * linux-fork.c (delete_checkpoint_command): Pass target down to
10991 (checkpoint_command): Adjust.
10992 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
10993 instead of just tweaking inferior_ptid.
10994 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
10995 (exit_lwp): Pass target down to find_thread_ptid.
10996 (attach_proc_task_lwp_callback): Pass target down to
10997 add_thread/set_running/set_executing.
10998 (linux_nat_target::attach): Pass target down to
10999 thread_change_ptid.
11000 (get_detach_signal): Pass target down to find_thread_ptid.
11001 Consider last target status's target.
11002 (linux_resume_one_lwp_throw, resume_lwp)
11003 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
11004 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
11005 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
11006 (linux_nat_target::async_wait_fd): New.
11007 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
11009 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
11010 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
11011 * linux-thread-db.c (struct thread_db_info::process_target): New
11013 (add_thread_db_info): Save target.
11014 (get_thread_db_info): New process_stratum_target parameter. Also
11016 (delete_thread_db_info): New process_stratum_target parameter.
11018 (thread_from_lwp): Adjust to pass down target.
11019 (thread_db_notice_clone): Pass down target.
11020 (check_thread_db_callback): Pass down target.
11021 (try_thread_db_load_1): Always push the thread_db target.
11022 (try_thread_db_load, record_thread): Pass target down.
11023 (thread_db_target::detach): Pass target down. Always unpush the
11025 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
11026 target down. Always unpush the thread_db target.
11027 (find_new_threads_callback, thread_db_find_new_threads_2)
11028 (thread_db_target::update_thread_list): Pass target down.
11029 (thread_db_target::pid_to_str): Pass current inferior down.
11030 (thread_db_target::get_thread_local_address): Pass target down.
11031 (thread_db_target::resume, maintenance_check_libthread_db): Pass
11033 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
11034 * procfs.c (procfs_target::procfs_init_inferior): Declare.
11035 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
11036 (procfs_init_inferior): Rename to ...
11037 (procfs_target::procfs_init_inferior): ... this and adjust.
11038 (procfs_target::create_inferior, procfs_notice_thread)
11039 (procfs_do_thread_registers): Adjust.
11040 * ppc-fbsd-tdep.c: Include "inferior.h".
11041 (ppcfbsd_get_thread_local_address): Pass down target.
11042 * proc-service.c (ps_xfer_memory): Switch current inferior and
11043 program space as well.
11044 (get_ps_regcache): Pass target down.
11045 * process-stratum-target.c
11046 (process_stratum_target::thread_address_space)
11047 (process_stratum_target::thread_architecture): Pass target down.
11048 * process-stratum-target.h
11049 (process_stratum_target::threads_executing): New field.
11050 (as_process_stratum_target): New.
11051 * ravenscar-thread.c
11052 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
11053 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
11055 * record-btrace.c (record_btrace_target::info_record): Adjust.
11056 (record_btrace_target::record_method)
11057 (record_btrace_target::record_is_replaying)
11058 (record_btrace_target::fetch_registers)
11059 (get_thread_current_frame_id, record_btrace_target::resume)
11060 (record_btrace_target::wait, record_btrace_target::stop): Pass
11062 * record-full.c (record_full_wait_1): Switch to event thread.
11064 * regcache.c (regcache::regcache)
11065 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
11066 process_stratum_target parameter and handle it.
11067 (current_thread_target): New global.
11068 (get_thread_regcache): Add process_stratum_target parameter and
11069 handle it. Switch inferior before calling target method.
11070 (get_thread_regcache): Pass target down.
11071 (get_thread_regcache_for_ptid): Pass target down.
11072 (registers_changed_ptid): Add process_stratum_target parameter and
11074 (registers_changed_thread, registers_changed): Pass target down.
11075 (test_get_thread_arch_aspace_regcache): New.
11076 (current_regcache_test): Define a couple local test_target_ops
11077 instances and use them for testing.
11078 (readwrite_regcache): Pass process_stratum_target parameter.
11079 (cooked_read_test, cooked_write_test): Pass mock_target down.
11080 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
11081 (get_thread_arch_aspace_regcache): Add process_stratum_target
11083 (regcache::target): New method.
11084 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
11085 (regcache::registers_changed_ptid): Add process_stratum_target
11087 (regcache::m_target): New field.
11088 (registers_changed_ptid): Add process_stratum_target parameter.
11089 * remote.c (remote_state::supports_vCont_probed): New field.
11090 (remote_target::async_wait_fd): New method.
11091 (remote_unpush_and_throw): Add remote_target parameter.
11092 (get_current_remote_target): Adjust.
11093 (remote_target::remote_add_inferior): Push target.
11094 (remote_target::remote_add_thread)
11095 (remote_target::remote_notice_new_inferior)
11096 (get_remote_thread_info): Pass target down.
11097 (remote_target::update_thread_list): Skip threads of inferiors
11098 bound to other targets. (remote_target::close): Don't discard
11099 inferiors. (remote_target::add_current_inferior_and_thread)
11100 (remote_target::process_initial_stop_replies)
11101 (remote_target::start_remote)
11102 (remote_target::remote_serial_quit_handler): Pass down target.
11103 (remote_target::remote_unpush_target): New remote_target
11104 parameter. Unpush the target from all inferiors.
11105 (remote_target::remote_unpush_and_throw): New remote_target
11106 parameter. Pass it down.
11107 (remote_target::open_1): Check whether the current inferior has
11108 execution instead of checking whether any inferior is live. Pass
11110 (remote_target::remote_detach_1): Pass down target. Use
11111 remote_unpush_target.
11112 (extended_remote_target::attach): Pass down target.
11113 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
11114 (remote_target::append_resumption): Pass down target.
11115 (remote_target::append_pending_thread_resumptions)
11116 (remote_target::remote_resume_with_hc, remote_target::resume)
11117 (remote_target::commit_resume): Pass down target.
11118 (remote_target::remote_stop_ns): Check supports_vCont_probed.
11119 (remote_target::interrupt_query)
11120 (remote_target::remove_new_fork_children)
11121 (remote_target::check_pending_events_prevent_wildcard_vcont)
11122 (remote_target::remote_parse_stop_reply)
11123 (remote_target::process_stop_reply): Pass down target.
11124 (first_remote_resumed_thread): New remote_target parameter. Pass
11126 (remote_target::wait_as): Pass down target.
11127 (unpush_and_perror): New remote_target parameter. Pass it down.
11128 (remote_target::readchar, remote_target::remote_serial_write)
11129 (remote_target::getpkt_or_notif_sane_1)
11130 (remote_target::kill_new_fork_children, remote_target::kill): Pass
11132 (remote_target::mourn_inferior): Pass down target. Use
11133 remote_unpush_target.
11134 (remote_target::core_of_thread)
11135 (remote_target::remote_btrace_maybe_reopen): Pass down target.
11136 (remote_target::pid_to_exec_file)
11137 (remote_target::thread_handle_to_thread_info): Pass down target.
11138 (remote_target::async_wait_fd): New.
11139 * riscv-fbsd-tdep.c: Include "inferior.h".
11140 (riscv_fbsd_get_thread_local_address): Pass down target.
11141 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
11142 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
11143 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
11145 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
11146 * solib-svr4.c (enable_break): Pass down target.
11147 * spu-multiarch.c (parse_spufs_run): Pass down target.
11148 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
11149 * target-delegates.c: Regenerate.
11150 * target.c (g_target_stack): Delete.
11151 (current_top_target): Return the current inferior's top target.
11152 (target_has_execution_1): Refer to the passed-in inferior's top
11154 (target_supports_terminal_ours): Check whether the initial
11155 inferior was already created.
11156 (decref_target): New.
11157 (target_stack::push): Incref/decref the target.
11158 (push_target, push_target, unpush_target): Adjust.
11159 (target_stack::unpush): Defref target.
11160 (target_is_pushed): Return bool. Adjust to refer to the current
11161 inferior's target stack.
11162 (dispose_inferior): Delete, and inline parts ...
11163 (target_preopen): ... here. Only dispose of the current inferior.
11164 (target_detach): Hold strong target reference while detaching.
11166 (target_thread_name): Add assertion.
11167 (target_resume): Pass down target.
11168 (target_ops::beneath, find_target_at): Adjust to refer to the
11169 current inferior's target stack.
11170 (get_dummy_target): New.
11171 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
11172 has a thread running.
11173 (initialize_targets): Rename to ...
11174 (_initialize_target): ... this.
11175 * target.h: Include "gdbsupport/refcounted-object.h".
11176 (struct target_ops): Inherit refcounted_object.
11177 (target_ops::shortname, target_ops::longname): Make const.
11178 (target_ops::async_wait_fd): New method.
11179 (decref_target): Declare.
11180 (struct target_ops_ref_policy): New.
11181 (target_ops_ref): New typedef.
11182 (get_dummy_target): Declare function.
11183 (target_is_pushed): Return bool.
11184 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
11185 (all_matching_threads_iterator::all_matching_threads_iterator):
11186 Handle filter target.
11187 * thread-iter.h (struct all_matching_threads_iterator, struct
11188 all_matching_threads_range, class all_non_exited_threads_range):
11189 Filter by target too. Remove explicit.
11190 * thread.c (threads_executing): Delete.
11191 (inferior_thread): Pass down current inferior.
11192 (clear_thread_inferior_resources): Pass down thread pointer
11194 (add_thread_silent, add_thread_with_info, add_thread): Add
11195 process_stratum_target parameter. Use it for thread and inferior
11197 (is_current_thread): New.
11198 (thread_info::deletable): Use it.
11199 (find_thread_ptid, thread_count, in_thread_list)
11200 (thread_change_ptid, set_resumed, set_running): New
11201 process_stratum_target parameter. Pass it down.
11202 (set_executing): New process_stratum_target parameter. Pass it
11203 down. Adjust reference to 'threads_executing'.
11204 (threads_are_executing): New process_stratum_target parameter.
11205 Adjust reference to 'threads_executing'.
11206 (set_stop_requested, finish_thread_state): New
11207 process_stratum_target parameter. Pass it down.
11208 (switch_to_thread): Also match inferior.
11209 (switch_to_thread): New process_stratum_target parameter. Pass it
11211 (update_threads_executing): Reimplement.
11212 * top.c (quit_force): Pop targets from all inferior.
11213 (gdb_init): Don't call initialize_targets.
11214 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
11216 (windows_add_thread, windows_delete_thread): Adjust.
11217 (get_windows_debug_event): Rename to ...
11218 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
11219 * tracefile-tfile.c (tfile_target_open): Pass down target.
11220 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
11222 (switch_to_thread): Add process_stratum_target parameter.
11223 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
11225 (mi_on_resume): Pass target down.
11226 * nat/fork-inferior.c (startup_inferior): Add
11227 process_stratum_target parameter. Pass it down.
11228 * nat/fork-inferior.h (startup_inferior): Add
11229 process_stratum_target parameter.
11230 * python/py-threadevent.c (py_get_event_thread): Pass target down.
11232 2020-01-10 Pedro Alves <palves@redhat.com>
11234 * remote.c (remote_target::start_remote): Don't set inferior_ptid
11235 directly. Instead find the first thread in the thread list and
11236 use switch_to_thread.
11238 2020-01-10 Pedro Alves <palves@redhat.com>
11240 * remote.c (remote_target::remote_add_inferior): Don't bind a
11241 process to the current inferior if the current inferior is already
11242 bound to a process.
11244 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11245 Pedro Alves <palves@redhat.com>
11247 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
11248 If no process is specified, return null_ptid instead of
11250 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
11251 TARGET_WAITKIND_SIGNALLED with no pid.
11253 2020-01-10 Pedro Alves <palves@redhat.com>
11255 * remote.c (first_remote_resumed_thread): New.
11256 (remote_target::wait_as): Use it as default event_ptid instead of
11259 2020-01-10 Pedro Alves <palves@redhat.com>
11261 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
11263 2020-01-10 Pedro Alves <palves@redhat.com>
11265 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
11268 2020-01-10 Pedro Alves <palves@redhat.com>
11270 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
11271 ptid to get_last_target_status.
11272 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
11273 ptid to get_last_target_status.
11274 * infcmd.c (continue_command): Don't pass a target_waitstatus to
11275 get_last_target_status.
11276 (info_program_command): Don't pass a target_waitstatus to
11277 get_last_target_status.
11278 * infrun.c (init_wait_for_inferior): Use
11279 nullify_last_target_wait_ptid.
11280 (get_last_target_status): Handle nullptr arguments.
11281 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
11282 (print_stop_event): Don't pass a ptid to get_last_target_status.
11283 (normal_stop): Don't pass a ptid to get_last_target_status.
11284 * infrun.h (get_last_target_status, set_last_target_status): Move
11285 comments here and update.
11286 (nullify_last_target_wait_ptid): Declare.
11287 * linux-fork.c (fork_load_infrun_state): Remove local extern
11288 declaration of nullify_last_target_wait_ptid.
11289 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
11290 to get_last_target_status.
11292 2020-01-10 Pedro Alves <palves@redhat.com>
11294 * gdbthread.h (scoped_restore_current_thread)
11295 <dont_restore, restore, m_dont_restore>: Declare.
11296 * thread.c (thread_alive): Add assertion. Return bool.
11297 (switch_to_thread_if_alive): New.
11298 (prune_threads): Switch inferior/thread.
11299 (print_thread_info_1): Switch thread before calling target methods.
11300 (scoped_restore_current_thread::restore): New, factored out from
11302 (scoped_restore_current_thread::~scoped_restore_current_thread):
11304 (scoped_restore_current_thread::scoped_restore_current_thread):
11306 (thread_apply_all_command, thread_select): Use
11307 switch_to_thread_if_alive.
11308 * infrun.c (proceed, restart_threads, handle_signal_stop)
11309 (switch_back_to_stepped_thread): Switch current thread before
11310 calling target methods.
11312 2020-01-10 Pedro Alves <palves@redhat.com>
11314 * inferior.c (switch_to_inferior_no_thread): New function,
11315 factored out from ...
11316 (inferior_command): ... here.
11317 * inferior.h (switch_to_inferior_no_thread): Declare.
11318 * mi/mi-main.c (run_one_inferior): Use
11319 switch_to_inferior_no_thread.
11321 2020-01-10 Pedro Alves <palves@redhat.com>
11323 * infcmd.c (kill_command): Remove dead code.
11325 2020-01-10 Pedro Alves <palves@redhat.com>
11327 * remote.c (remote_target::mourn_inferior): No longer check
11328 whether the target is running.
11330 2020-01-10 Pedro Alves <palves@redhat.com>
11332 * corelow.c (core_target::has_execution): Change parameter type to
11334 * inferior.c (number_of_live_inferiors): Use
11335 inferior::has_execution instead of target_has_execution_1.
11336 * inferior.h (inferior::has_execution): New.
11337 * linux-thread-db.c (thread_db_target::update_thread_list): Use
11338 inferior::has_execution instead of target_has_execution_1.
11339 * process-stratum-target.c
11340 (process_stratum_target::has_execution): Change parameter type to
11341 inferior pointer. Check the inferior's PID instead of
11343 * process-stratum-target.h
11344 (process_stratum_target::has_execution): Change parameter type to
11346 * record-full.c (record_full_core_target::has_execution): Change
11347 parameter type to inferior pointer.
11348 * target.c (target_has_execution_1): Change parameter type to
11350 (target_has_execution_current): Adjust.
11351 * target.h (target_ops::has_execution): Change parameter type to
11353 (target_has_execution_1): Change parameter type to inferior
11354 pointer. Change return type to bool.
11355 * tracefile.h (tracefile_target::has_execution): Change parameter
11356 type to inferior pointer.
11358 2020-01-10 Pedro Alves <palves@redhat.com>
11360 * exceptions.c (print_flush): Remove current_top_target() check.
11362 2020-01-10 Pedro Alves <palves@redhat.com>
11364 * remote.c (show_remote_exec_file): Show the current inferior's
11365 exec-file instead of the command variable's value.
11367 2020-01-10 Pedro Alves <palves@redhat.com>
11369 * record-full.c (record_full_resume_ptid): New global.
11370 (record_full_target::resume): Set it.
11371 (record_full_wait_1): Use record_full_resume_ptid instead of
11374 2020-01-10 Pedro Alves <palves@redhat.com>
11376 * gdbthread.h (scoped_restore_current_thread)
11377 <dont_restore, restore, m_dont_restore>: Declare.
11378 * thread.c (thread_alive): Add assertion. Return bool.
11379 (switch_to_thread_if_alive): New.
11380 (prune_threads): Switch inferior/thread.
11381 (print_thread_info_1): Switch thread before calling target methods.
11382 (scoped_restore_current_thread::restore): New, factored out from
11384 (scoped_restore_current_thread::~scoped_restore_current_thread):
11386 (scoped_restore_current_thread::scoped_restore_current_thread):
11388 (thread_apply_all_command, thread_select): Use
11389 switch_to_thread_if_alive.
11391 2020-01-10 George Barrett <bob@bob131.so>
11393 * stap-probe.c (stap_modify_semaphore): Don't check for null
11395 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
11396 for null semaphores.
11398 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11400 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
11401 all source windows, and maintain horizontal scroll status while
11404 2020-01-09 Tom Tromey <tom@tromey.com>
11407 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
11408 update_source_window, not print_source_lines.
11410 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11412 * tui/tui.c (tui_enable): Register tui hooks after calling
11415 2020-01-09 Christian Biesinger <cbiesinger@google.com>
11417 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
11419 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
11421 * thread.c (print_thread_info_1): Fix indentation.
11423 2020-01-09 Christian Biesinger <cbiesinger@google.com>
11425 * symtab.c (general_symbol_info::compute_and_set_names): Move the
11426 unique_xmalloc_ptr outside the if to always free the demangled name.
11428 2020-01-08 Tom Tromey <tromey@adacore.com>
11430 * xcoffread.c (enter_line_range, read_xcoff_symtab)
11431 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
11432 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
11433 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
11435 (section_offsets): New typedef.
11436 * symtab.c (fixup_section, get_msymbol_address): Update.
11437 * symmisc.c (dump_msymbols): Update.
11438 * symfile.h (relative_addr_info_to_section_offsets)
11439 (symfile_map_offsets_to_segments): Update.
11440 * symfile.c (build_section_addr_info_from_objfile)
11441 (init_objfile_sect_indices): Update.
11442 (struct place_section_arg): Change type of "offsets".
11443 (place_section): Update.
11444 (relative_addr_info_to_section_offsets): Change type of
11445 "section_offsets". Remove "num_sections" parameter.
11446 (default_symfile_offsets, syms_from_objfile_1)
11447 (set_objfile_default_section_offset): Update.
11448 (reread_symbols): No need to preserve section offsets by hand.
11449 (symfile_map_offsets_to_segments): Change type of "offsets".
11450 * stap-probe.c (relocate_address): Update.
11451 * stabsread.h (process_one_symbol): Update.
11452 * solib-target.c (struct lm_info_target) <offsets>: Change type.
11453 (solib_target_relocate_section_addresses): Update.
11454 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
11456 * solib-frv.c (frv_relocate_main_executable): Update.
11457 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
11458 * solib-aix.c (solib_aix_get_section_offsets): Change return
11460 (solib_aix_solib_create_inferior_hook): Update.
11461 * remote.c (remote_target::get_offsets): Update.
11462 * psymtab.c (find_pc_sect_psymtab): Update.
11463 * psympriv.h (struct partial_symbol) <address, text_low,
11464 text_high>: Update.
11465 * objfiles.h (obj_section_offset): Update.
11466 (struct objfile) <section_offsets>: Change type.
11467 <num_sections>: Remove.
11468 (objfile_relocate): Update.
11469 * objfiles.c (entry_point_address_query): Update
11470 (relocate_one_symbol): Change type of "section_offsets".
11471 (objfile_relocate1, objfile_relocate1): Change type of
11473 (objfile_rebase1): Update.
11474 * mipsread.c (mipscoff_symfile_read): Update.
11475 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
11477 * mdebugread.c (parse_symbol): Change type of "section_offsets".
11478 (parse_external, psymtab_to_symtab_1): Update.
11479 * machoread.c (macho_symfile_offsets): Update.
11480 * ia64-tdep.c (ia64_find_unwind_table): Update.
11481 * hppa-tdep.c (read_unwind_info): Update.
11482 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
11483 * dwarf2read.c (create_addrmap_from_index)
11484 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11485 (process_psymtab_comp_unit_reader, add_partial_symbol)
11486 (add_partial_subprogram, process_full_comp_unit)
11487 (read_file_scope, read_func_scope, read_lexical_block_scope)
11488 (read_call_site_scope, dwarf2_rnglists_process)
11489 (dwarf2_ranges_process, dwarf2_ranges_read)
11490 (dwarf_decode_lines_1, var_decode_location, new_symbol)
11491 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
11493 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
11495 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
11496 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
11497 (process_one_symbol): Change type of "section_offsets".
11498 * ctfread.c (get_objfile_text_range): Update.
11499 * coffread.c (coff_symtab_read, enter_linenos)
11500 (process_coff_symbol): Update.
11501 * coff-pe-read.c (add_pe_forwarded_sym): Update.
11502 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
11504 2020-01-08 Tom Tromey <tromey@adacore.com>
11506 * dwarf2read.c (parse_macro_definition): Use std::string.
11507 (parse_macro_definition): Likewise.
11509 2020-01-08 Tom Tromey <tromey@adacore.com>
11511 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
11512 (ATTR_ALLOC_CHUNK): Remove.
11514 2020-01-08 Tom Tromey <tromey@adacore.com>
11516 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
11518 2020-01-08 Tom Tromey <tromey@adacore.com>
11520 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
11521 (dwarf2_compute_name, open_dwo_file): Likewise.
11522 (process_enumeration_scope): Use std::vector.
11523 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
11524 (partial_die_info::fixup, dwarf2_start_subfile)
11525 (guess_full_die_structure_name, dwarf2_name): Likewise.
11526 (determine_prefix): Update.
11527 (guess_full_die_structure_name): Make return type const.
11528 (partial_die_full_name): Return unique_xmalloc_ptr.
11529 (DW_FIELD_ALLOC_CHUNK): Remove.
11531 2020-01-07 Tom Tromey <tromey@adacore.com>
11534 * stap-probe.c (class stap_static_probe_ops): Add constructor.
11536 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
11538 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
11540 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
11542 * stack.c (print_frame_info): Move disassemble_next_line code
11543 inside source_print block.
11545 2020-01-06 Eli Zaretskii <eliz@gnu.org>
11547 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
11548 gdb/signals.h, as we are now using native signal symbols.
11550 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
11552 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
11553 overflow by an early check of content vs threshold.
11554 * tui/tui-source.c (tui_source_window::line_is_displayed):
11557 2020-01-06 Eli Zaretskii <eliz@gnu.org>
11559 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
11561 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
11563 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
11564 export table if no section contains it's RVA.
11566 2020-01-06 Eli Zaretskii <eliz@gnu.org>
11568 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
11570 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
11572 * source.c (print_source_lines_base): Set last_line_listed.
11574 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
11576 * tui/tui-disasm.c: Remove trailing spaces.
11578 2020-01-06 Eli Zaretskii <eliz@gnu.org>
11579 Pedro Alves <palves@redhat.com>
11581 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
11582 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
11583 (windows_gdb_signal_to_target): New function, uses the above
11584 enumeration to convert GDB internal signal codes to equivalent
11586 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
11587 * windows-nat.c: Include "gdb_wait.h".
11588 (get_windows_debug_event): Extract the fatal exception from the
11589 exit status and convert to the equivalent Posix signal number.
11590 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
11591 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
11592 * gdbsupport/gdb_wait.c: New file, implements
11593 windows_status_to_termsig.
11594 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
11595 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
11597 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
11599 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
11602 2020-01-05 Luis Machado <luis.machado@linaro.org>
11604 * aarch64-linux-nat.c
11605 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
11606 and bfd_mach_aarch64.
11608 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11610 * ui-file.c (stdio_file::can_emit_style_escape)
11611 (tee_file::can_emit_style_escape): Ensure style is used also on
11612 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
11614 * main.c (set_gdb_data_directory): Use file style to output the
11615 warning that the given pathname is not a directory.
11616 * top.c (show_history_filename, gdb_safe_append_history)
11617 (show_gdb_datadir): Use file style.
11619 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
11621 * solib-target.c (struct lm_info_target):
11622 Change offsets to be a unique_xmalloc_ptr.
11623 (solib_target_relocate_section_addresses): Update.
11625 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
11627 * windows-nat.c (windows_clear_solib): Free so_list linked list.
11629 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
11631 * MAINTAINERS (Write After Approval): Add myself.
11633 2020-01-02 Luis Machado <luis.machado@linaro.org>
11635 * proc-service.c (get_ps_regcache): Remove reference to obsolete
11636 Cell BE architecture.
11637 * target.h (struct target_ops) <thread_architecture>: Likewise.
11639 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
11641 * Makefile.in: Use INSTALL_PROGRAM_ENV.
11643 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
11645 * MAINTAINERS (Write After Approval): Add myself.
11647 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11649 * gdbarch.sh: Update copyright year range of generated files.
11651 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11653 Update copyright year range in all GDB files.
11655 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11657 * copyright.py: Convert to Python 3.
11659 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11661 * copyright.py: Adapt after move of gnulib directory from gdb
11662 directory to toplevel directory.
11664 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11666 * copyright.py (main): Exit if run from the wrong directory.
11668 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11670 * top.c (print_gdb_version): Change copyright year to 2020.
11672 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11674 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
11676 For older changes see ChangeLog-2019.
11682 version-control: never