[gdb/symtab] Ignore zero line table entries
[binutils-gdb.git] / gdb / ChangeLog
1 2020-07-25 Tom de Vries <tdevries@suse.de>
2
3 PR symtab/26243
4 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
5 entries.
6
7 2020-07-24 Aaron Merey <amerey@redhat.com>
8
9 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
10 * configure: Rebuild.
11
12 2020-07-23 Kevin Buettner <kevinb@redhat.com>
13
14 PR corefiles/26294
15 * corelow.c (_initialize_corelow): Add period to help text
16 for "maintenance print core-file-backed-mappings".
17
18 2020-07-23 Pedro Alves <pedro@palves.net>
19
20 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
21 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
22 meanwhile.
23 * frame.c (frame_cache_generation, get_frame_cache_generation):
24 New.
25 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
26 (get_prev_frame_if_no_cycle): On exception, don't touch
27 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
28 * frame.h (get_frame_cache_generation): Declare.
29
30 2020-07-23 Tom de Vries <tdevries@suse.de>
31
32 PR tui/26282
33 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
34 New default constructor.
35
36 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
37
38 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
39 exclude non-statement entries.
40
41 2020-07-22 Kevin Buettner <kevinb@redhat.com>
42
43 * NEWS (New commands): Mention new command
44 "maintenance print core-file-backed-mappings".
45
46 2020-07-22 Kevin Buettner <kevinb@redhat.com>
47
48 * corelow.c (gdbcmd.h): Include.
49 (core_target::info_proc_mappings): New method.
50 (get_current_core_target): New function.
51 (maintenance_print_core_file_backed_mappings): New function.
52 (_initialize_corelow): Add core-file-backed-mappings to
53 "maint print" commands.
54
55 2020-07-22 Kevin Buettner <kevinb@redhat.com>
56
57 * linux-tdep.c (dump_note_entry_p): New function.
58 (linux_dump_mapping_p_ftype): New typedef.
59 (linux_find_memory_regions_full): Add new parameter,
60 should_dump_mapping_p.
61 (linux_find_memory_regions): Adjust call to
62 linux_find_memory_regions_full.
63 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
64 call to linux_find_memory_regions_full.
65
66 2020-07-22 Kevin Buettner <kevinb@redhat.com>
67
68 * corelow.c (solist.h, unordered_map): Include.
69 (class core_target): Add field m_core_file_mappings and
70 method build_file_mappings.
71 (core_target::core_target): Call build_file_mappings.
72 (core_target::~core_target): Free memory associated with
73 m_core_file_mappings.
74 (core_target::build_file_mappings): New method.
75 (core_target::xfer_partial): Use m_core_file_mappings
76 for memory transfers.
77 * linux-tdep.c (linux_read_core_file_mappings): New
78 function.
79 (linux_core_info_proc_mappings): Rewrite to use
80 linux_read_core_file_mappings.
81 (linux_init_abi): Register linux_read_core_file_mappings.
82
83 2020-07-22 Kevin Buettner <kevinb@redhat.com>
84
85 * arch-utils.c (default_read_core_file_mappings): New function.
86 * arch-utils.c (default_read_core_file_mappings): Declare.
87 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
88 * gdbarch.h, gdbarch.c: Regenerate.
89
90 2020-07-22 Kevin Buettner <kevinb@redhat.com>
91
92 PR corefiles/25631
93 * corelow.c (core_target:xfer_partial): Revise
94 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
95 case after first checking the stratum beneath the core
96 target.
97 (has_all_memory): Return true.
98 * target.c (raw_memory_xfer_partial): Revise comment
99 regarding use of has_all_memory.
100
101 2020-07-22 Kevin Buettner <kevinb@redhat.com>
102
103 * exec.h (section_table_xfer_memory): Revise declaration,
104 replacing section name parameter with an optional callback
105 predicate.
106 * exec.c (section_table_xfer_memory): Likewise.
107 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
108 of section_table_xfer_memory.
109
110 2020-07-22 Tom Tromey <tromey@adacore.com>
111
112 * mi/mi-cmd-stack.c (list_args_or_locals): Use
113 lookup_symbol_search_name.
114
115 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
116
117 * python/py-registers.c (gdbpy_register_object_data_init): Remove
118 redundant local variable.
119 (gdbpy_get_register_descriptor): Extract descriptor vector as a
120 reference, not pointer, update code accordingly.
121
122 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
123 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
124
125 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
126 * jit.c (jit_breakpoint_re_set_internal): Use the
127 `skip_jit_symbol_lookup` field.
128
129 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
130 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
131
132 * jit.c (jit_read_descriptor): Define the descriptor address once,
133 use twice.
134 (jit_breakpoint_deleted): Move the declaration of the loop variable
135 `iter` into the loop header.
136 (jit_breakpoint_re_set_internal): Move the declaration of the local
137 variable `objf_data` to the first point of definition.
138 (jit_event_handler): Move the declaration of local variables
139 `code_entry`, `entry_addr`, and `objf` to their first point of use.
140 Rename `objf` to `jited`.
141
142 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
143
144 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
145 Remove.
146 * jit.c (get_jiter_objfile_data): Update.
147
148 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
149 Simon Marchi <simon.marchi@polymtl.ca>
150
151 * jit.c (struct jit_program_space_data): Remove.
152 (jit_program_space_key): Remove.
153 (jiter_objfile_data::~jiter_objfile_data): Remove program space
154 stuff.
155 (get_jit_program_space_data): Remove.
156 (jit_breakpoint_deleted): Iterate on all of the program space's
157 objfiles.
158 (jit_inferior_init): Likewise.
159 (jit_breakpoint_re_set_internal): Likewise. Also change return
160 type to void.
161 (jit_breakpoint_re_set): Pass current_program_space to
162 jit_breakpoint_re_set_internal.
163
164 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
165
166 * jit.h (struct jiter_objfile_data) <cached_code_address,
167 jit_breakpoint>: Move to here from ...
168 * jit.c (jit_program_space_data): ... here.
169 (jiter_objfile_data::~jiter_objfile_data): Update.
170 (jit_breakpoint_deleted): Update.
171 (jit_breakpoint_re_set_internal): Update.
172
173 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
174
175 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
176 checks.
177 (jit_read_descriptor): Remove NULL check.
178 (jit_event_handler): Add an assertion.
179
180 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
181
182 * jit.h (struct jit_objfile_data): Split into...
183 (struct jiter_objfile_data): ... this ...
184 (struct jited_objfile_data): ... and this.
185 * objfiles.h (struct objfile) <jit_data>: Remove.
186 <jiter_data, jited_data>: New fields.
187 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
188 (jiter_objfile_data::~jiter_objfile_data): ... this.
189 (get_jit_objfile_data): Rename to ...
190 (get_jiter_objfile_data): ... this.
191 (add_objfile_entry): Update.
192 (jit_read_descriptor): Use get_jiter_objfile_data.
193 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
194 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
195 (jit_inferior_exit_hook): Use objfile's jited_data field.
196
197 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
198
199 * jit.h: Forward-declare `struct minimal_symbol`.
200 (struct jit_objfile_data): Migrate to here from jit.c; also add a
201 constructor, destructor, and an objfile* field.
202 * jit.c (jit_objfile_data): Remove.
203 (struct jit_objfile_data): Migrate from here to jit.h.
204 (jit_objfile_data::~jit_objfile_data): New destructor
205 implementation with code moved from free_objfile_data.
206 (free_objfile_data): Delete.
207 (get_jit_objfile_data): Update to use the jit_data field of objfile.
208 (jit_find_objf_with_entry_addr): Ditto.
209 (jit_inferior_exit_hook): Ditto.
210 (_initialize_jit): Remove the call to
211 register_objfile_data_with_cleanup.
212 * objfiles.h (struct objfile) <jit_data>: New field.
213
214 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
215
216 * jit.h: Forward-declare `struct objfile`.
217 (jit_event_handler): Add a second parameter, the JITer objfile.
218 * jit.c (jit_read_descriptor): Change the signature to take the
219 JITer objfile as an argument instead of the jit_program_space_data.
220 (jit_inferior_init): Update the call to jit_read_descriptor.
221 (jit_event_handler): Use the new JITer objfile argument when calling
222 jit_read_descriptor.
223 * breakpoint.c (handle_jit_event): Update the call to
224 jit_event_handler to pass the JITer objfile.
225
226 2020-07-21 John Baldwin <jhb@FreeBSD.org>
227
228 * gdbarch.c: Regenerate.
229 * gdbarch.h: Regenerate.
230 * gdbarch.sh (handle_segmentation_fault): Remove method.
231 * infrun.c (handle_segmentation_fault): Remove.
232 (print_signal_received_reason): Remove call to
233 handle_segmentation_fault.
234
235 2020-07-21 John Baldwin <jhb@FreeBSD.org>
236
237 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
238 Rename to sparc64_linux_report_signal_info and add siggnal
239 argument.
240 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
241 instead of sparc64_linux_handle_segmentation_fault.
242
243 2020-07-21 John Baldwin <jhb@FreeBSD.org>
244
245 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
246 i386_linux_report_signal_info instead of
247 i386_linux_handle_segmentation_fault.
248 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
249 to i386_linux_report_signal_info and add siggnal argument.
250 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
251 of i386_linux_handle_segmentation_fault.
252 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
253 to i386_linux_report_signal_info and add siggnal argument.
254
255 2020-07-21 John Baldwin <jhb@FreeBSD.org>
256
257 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
258 hook if present.
259
260 2020-07-21 John Baldwin <jhb@FreeBSD.org>
261
262 * gdbarch.c: Regenerate.
263 * gdbarch.h: Regenerate.
264 * gdbarch.sh (report_signal_info): New method.
265 * infrun.c (print_signal_received_reason): Invoke gdbarch
266 report_signal_info hook if present.
267
268 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
269
270 * python/py-registers.c : Add 'unordered_map' include.
271 (gdbpy_new_reggroup): Renamed to...
272 (gdbpy_get_reggroup): ...this. Update to only create register
273 group descriptors when needed.
274 (gdbpy_reggroup_iter_next): Update.
275
276 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
277
278 * python/py-registers.c (gdbpy_register_object_data): New static
279 global.
280 (gdbpy_register_object_data_init): New function.
281 (gdbpy_new_register_descriptor): Renamed to...
282 (gdbpy_get_register_descriptor): ...this, and update to reuse
283 existing register descriptors where possible.
284 (gdbpy_register_descriptor_iter_next): Update.
285 (gdbpy_initialize_registers): Register new gdbarch data.
286
287 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
288
289 * linux-nat.c (stopped_pids): Make static.
290
291 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
292
293 PR ada/26235
294 * gdbtypes.c (ada_discrete_type_low_bound,
295 ada_discrete_type_high_bound): Handle undefined bounds.
296
297 2020-07-21 Kamil Rytarowski <n54@gmx.com>
298
299 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
300 declaration.
301 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
302 function.
303
304 2020-07-20 John Baldwin <jhb@FreeBSD.org>
305
306 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
307 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
308 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
309 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
310 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
311 method.
312
313 2020-07-20 Ludovic Courtès <ludo@gnu.org>
314
315 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
316 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
317 which are deprecated in Guile 3.0.
318 * configure.ac (try_guile_versions): Add "guile-3.0".
319 * configure (try_guile_versions): Regenerate.
320 * NEWS: Update entry.
321
322 2020-07-20 Ludovic Courtès <ludo@gnu.org>
323 Doug Evans <dje@google.com>
324
325 PR gdb/21104
326 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
327 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
328 USING_GUILE_BEFORE_2_2.
329 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
330 Change type to 'scm_t_port_type *'.
331 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
332 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
333 parameter and honor it. Update callers.
334 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
335 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
336 functions.
337 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
338 USING_GUILE_BEFORE_2_2.
339 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
340 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
341 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
342 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
343 and 'SCM_PORT_TYPE'.
344 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
345 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
346 (gdbscm_memory_port_read, gdbscm_memory_port_write)
347 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
348 [!USING_GUILE_BEFORE_2_2]: New functions.
349 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
350 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
351 'gdbscm_memory_port_read'.
352 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
353 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
354 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
355 function.
356 (ioscm_init_memory_port): Remove.
357 (ioscm_init_memory_port_stream): New function
358 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
359 function.
360 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
361 Return scm_from_uint (0).
362 (gdbscm_set_memory_port_read_buffer_size_x)
363 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
364 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
365 Return scm_from_uint (0).
366 (gdbscm_set_memory_port_write_buffer_size_x)
367 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
368 * configure.ac (try_guile_versions): Add "guile-2.2".
369 * configure: Regenerate.
370 * NEWS: Add entry.
371
372 2020-07-18 Tom Tromey <tom@tromey.com>
373
374 * linux-nat.c (linux_multi_process): Remove.
375 (linux_nat_target::supports_multi_process): Return true.
376
377 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
378
379 * arch/riscv.c (riscv_tdesc_cache): Change map type.
380 (riscv_lookup_target_description): Return pointer out of
381 unique_ptr.
382 * target-descriptions.c (allocate_target_description): Add
383 comment.
384 (target_desc_deleter::operator()): Likewise.
385 * target-descriptions.h (struct target_desc_deleter): Moved to
386 gdbsupport/tdesc.h.
387 (target_desc_up): Likewise.
388
389 2020-07-17 Tom Tromey <tromey@adacore.com>
390
391 * linux-nat.c (linux_nat_target::supports_non_stop)
392 (linux_nat_target::always_non_stop_p): Use "true".
393 (linux_nat_target::supports_disable_randomization): Use "true" and
394 "false".
395
396 2020-07-16 Caroline Tice <cmtice@google.com>
397
398 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
399 (RNGLIST_HEADER_SIZE64): New constant definition.
400 (struct dwop_section_names): Add rnglists_dwo.
401 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
402 (struct loclist_header): Rename to 'loclists_rnglists_header'.
403 (struct dwo_sections): Add rnglists field.
404 (read_attribut_reprocess): Add tag parameter.
405 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
406 (cu_debug_rnglists_section): New function (decl & definition).
407 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
408 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
409 die whose range is being checked; get rnglist section from
410 cu_debug_rnglists_section, to get from either objfile or dwo file as
411 appropriate. Add cases for DW_RLE_base_addressx,
412 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
413 the base address to DW_RLE_offset_pairs (not to all ranges), moving
414 test inside if-condition and updating complaint message.
415 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
416 dwarf2_rnglists_process.
417 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
418 dwarf2_ranges_process.
419 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
420 need_ranges_base and update comment appropriately. Also pass die tag
421 to dwarf2_ranges_read.
422 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
423 need_ranges_base and update comment appropriately. Also pass die tag
424 to dwarf2_ranges_process.
425 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
426 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
427 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
428 need_ranges_base and update comment appropriately. Also pass die tag
429 to read_attribute_reprocess and dwarf2_ranges_read.
430 (read_loclist_header): Rename function to read_loclists_rnglists_header,
431 and update function comment appropriately.
432 (read_loclist_index): Call read_loclists_rnglists_header instead of
433 read_loclist_header.
434 (read_rnglist_index): New function.
435 (read_attribute_reprocess): Add tag parameter. Add code for
436 DW_FORM_rnglistx, passing tag to read_rnglist_index.
437 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
438
439 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
440
441 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
442 being resolved.
443
444 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
445
446 * arch-utils.c (show_architecture): Update formatting of messages.
447
448 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
449
450 * gdbtypes.h (struct type) <bounds>: Handle array and string
451 types.
452 * ada-lang.c (assign_aggregate): Use type::bounds on
453 array/string type.
454 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
455 * c-varobj.c (c_number_of_children): Likewise.
456 (c_describe_child): Likewise.
457 * eval.c (evaluate_subexp_for_sizeof): Likewise.
458 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
459 (f_type_print_base): Likewise.
460 * f-valprint.c (f77_array_offset_tbl): Likewise.
461 (f77_get_upperbound): Likewise.
462 (f77_print_array_1): Likewise.
463 * guile/scm-type.c (gdbscm_type_range): Likewise.
464 * m2-typeprint.c (m2_array): Likewise.
465 (m2_is_long_set_of_type): Likewise.
466 * m2-valprint.c (get_long_set_bounds): Likewise.
467 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
468 * python/py-type.c (typy_range): Likewise.
469 * rust-lang.c (rust_internal_print_type): Likewise.
470 * type-stack.c (type_stack::follow_types): Likewise.
471 * valarith.c (value_subscripted_rvalue): Likewise.
472 * valops.c (value_cast): Likewise.
473
474 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
475
476 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
477 callers to use the equivalent accessor methods.
478
479 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
480
481 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
482 (struct type) <bit_stride>: New method.
483 (TYPE_BIT_STRIDE): Remove.
484 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
485
486 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
487
488 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
489 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
490 callers to use the equivalent accessor methods instead.
491
492 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
493
494 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
495 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
496 callers to use the equivalent accessor methods instead.
497
498 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
499
500 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
501 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
502 to use dynamic_prop::kind.
503
504 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
505
506 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
507 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
508 to get the bound property's kind and check against
509 PROP_UNDEFINED.
510
511 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
512
513 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
514 all callers to use type::range_bounds followed by
515 dynamic_prop::{low,high}.
516
517 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
518
519 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
520 const_val, set_const_val, baton, set_locexpr, set_loclist,
521 set_addr_offset, variant_parts, set_variant_parts,
522 original_type, set_original_type>: New methods.
523 <kind>: Rename to...
524 <m_kind>: ... this. Update all users to use the new methods
525 instead.
526 <data>: Rename to...
527 <m_data>: ... this. Update all users to use the new methods
528 instead.
529
530 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
531
532 * gdbtypes.c (get_discrete_bounds): Return failure if
533 the range type's bounds are not both defined and constant
534 values.
535 (get_array_bounds): Update comment. Remove undefined bound check.
536
537 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
538
539 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
540 the type::bounds method directly.
541
542 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
543
544 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
545 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
546 are used to set the range type's bounds to use set_bounds.
547
548 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
549
550 * exec.c (_initialize_exec): Update exec-file-mismatch help.
551
552 2020-07-10 Pedro Alves <pedro@palves.net>
553
554 * gdbthread.h (inferior_ref): Define.
555 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
556 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
557 * thread.c
558 (scoped_restore_current_thread::restore):
559 Adjust to gdb::ref_ptr.
560 (scoped_restore_current_thread::~scoped_restore_current_thread):
561 Remove manual decref handling.
562 (scoped_restore_current_thread::scoped_restore_current_thread):
563 Adjust to use
564 inferior_ref::new_reference/thread_info_ref::new_reference.
565 Incref the thread before calling get_frame_id instead of after.
566 Let TARGET_CLOSE_ERROR propagate.
567
568 2020-07-10 Pedro Alves <pedro@palves.net>
569
570 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
571 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
572 NOT_AVAILABLE_ERROR.
573 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
574 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
575
576 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
577 Pedro Alves <pedro@palves.net>
578
579 PR gdb/26199
580 * infrun.c (threads_are_resumed_pending_p): Delete.
581 (do_target_wait): Remove threads_are_executing and
582 threads_are_resumed_pending_p checks from the inferior_matches
583 lambda. Update comments.
584
585 2020-07-10 Pedro Alves <pedro@palves.net>
586
587 PR gdb/26199
588 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
589 executing threads.
590
591 2020-07-10 Pedro Alves <pedro@palves.net>
592
593 PR gdb/26199
594 * infrun.c (handle_no_resumed): Handle multiple targets.
595
596 2020-07-10 Pedro Alves <pedro@palves.net>
597
598 PR gdb/26199
599 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
600 target_is_async_p.
601
602 2020-07-10 Pedro Alves <pedro@palves.net>
603
604 PR gdb/26199
605 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
606 threads, not all threads.
607
608 2020-07-10 Pedro Alves <pedro@palves.net>
609
610 PR gdb/26199
611 * remote.c (remote_target::open_1): Pass remote target pointer as
612 data to create_async_event_handler.
613 (remote_async_inferior_event_handler): Mark async event handler
614 before returning if the remote target still has either pending
615 events or unacknowledged notifications.
616
617 2020-07-10 John Baldwin <jhb@FreeBSD.org>
618
619 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
620 declaration.
621 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
622 function.
623
624 2020-07-09 John Baldwin <jhb@FreeBSD.org>
625
626 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
627 inferior_ptid.
628
629 2020-07-09 John Baldwin <jhb@FreeBSD.org>
630
631 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
632 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
633 AT_FREEBSD_PS_STRINGS.
634
635 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
636
637 * auto-load.c (auto_load_objfile_script_1): Convert drive part
638 of debugfile path on Windows.
639
640 2020-07-08 John Baldwin <jhb@FreeBSD.org>
641
642 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
643 argument to 'data'.
644
645 2020-07-08 Tom Tromey <tromey@adacore.com>
646
647 * ada-lang.c (ada_exception_message_1): Use read_memory.
648
649 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
650
651 PR python/22748
652 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
653 special handling for inline frames.
654 * findvar.c (value_of_register_lazy): Skip inline frames when
655 creating lazy register values.
656 * frame.c (frame_id_computed_p): Delete definition.
657 * frame.h (frame_id_computed_p): Delete declaration.
658
659 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
660
661 * NEWS: Mention additions to Python API.
662 * python/py-arch.c (archpy_register_groups): New function.
663 (arch_object_methods): Add 'register_groups' method.
664 * python/py-registers.c (reggroup_iterator_object): New struct.
665 (reggroup_object): New struct.
666 (gdbpy_new_reggroup): New function.
667 (gdbpy_reggroup_to_string): New function.
668 (gdbpy_reggroup_name): New function.
669 (gdbpy_reggroup_iter): New function.
670 (gdbpy_reggroup_iter_next): New function.
671 (gdbpy_new_reggroup_iterator): New function
672 (gdbpy_initialize_registers): Register new types.
673 (reggroup_iterator_object_type): Define new Python type.
674 (gdbpy_reggroup_getset): New static global.
675 (reggroup_object_type): Define new Python type.
676 * python/python-internal.h
677
678 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
679
680 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
681 * python/py-arch.c (archpy_registers): New function.
682 (arch_object_methods): Add 'registers' method.
683 * python/py-registers.c: New file.
684 * python/python-internal.h
685 (gdbpy_new_register_descriptor_iterator): Declare.
686 (gdbpy_initialize_registers): Declare.
687 * python/python.c (do_start_initialization): Call
688 gdbpy_initialize_registers.
689 * NEWS: Mention additions to the Python API.
690
691 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
692
693 * NEWS: Mention new Python API method.
694 * python/py-unwind.c (pending_framepy_architecture): New function.
695 (pending_frame_object_methods): Add architecture method.
696
697 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
698
699 * gdbarch.c: Regenerate.
700 * gdbarch.h: Regenerate.
701 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
702 (gdbarch_data): Use internal_error for the case where
703 deprecated_set_gdbarch_data was originally needed.
704 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
705 and use passed in obstack.
706 (libunwind_frame_set_descr): Should no longer get back NULL from
707 gdbarch_data.
708 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
709 type.
710 * user-regs.c (user_regs_init): Update parameters, and use passed
711 in obstack.
712 (user_reg_add): Should no longer get back NULL from gdbarch_data.
713 (_initialize_user_regs): Register as a pre-init gdbarch data type.
714
715 2020-07-06 Tom de Vries <tdevries@suse.de>
716
717 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
718 End-Of-Sequence in lte_is_less_than.
719 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
720 "gdb: Don't reorder line table entries too much when sorting".
721
722 2020-07-06 Tom de Vries <tdevries@suse.de>
723
724 PR tui/26205
725 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
726
727 2020-07-05 Tom de Vries <tdevries@suse.de>
728
729 PR build/26187
730 * inferior.h (struct infcall_suspend_state_deleter): If available, use
731 std::uncaught_exceptions instead of deprecated
732 std::uncaught_exception.
733
734 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
735
736 * macroexp.h (macro_stringify): Return
737 gdb::unique_xmalloc_ptr<char>.
738 * macroexp.c (macro_stringify): Likewise.
739 * macrotab.c (fixup_definition): Update.
740
741 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
742
743 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
744 (lex_one_token): Update.
745 * macroexp.c (struct macro_buffer) <release>: Return
746 gdb::unique_xmalloc_ptr<char>.
747 (macro_stringify): Update.
748 (macro_expand): Update.
749 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
750 * macroexp.h (macro_expand_next): Likewise.
751
752 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
753
754 * macroexp.h (macro_lookup_ftype): Remove.
755 (macro_expand, macro_expand_once, macro_expand_next): Remove
756 lookup function parameters, add scope parameter.
757 * macroexp.c (scan, substitute_args, expand, maybe_expand,
758 macro_expand, macro_expand_once, macro_expand_next): Likewise.
759 * macroscope.h (standard_macro_lookup): Change parameter type
760 to macro_scope.
761 * macroscope.c (standard_macro_lookup): Likewise.
762 * c-exp.y (lex_one_token): Update.
763 * macrocmd.c (macro_expand_command): Likewise.
764 (macro_expand_once_command): Likewise.
765
766 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
767
768 * inf-loop.c (inferior_event_handler): Remove client_data param.
769 * inf-loop.h (inferior_event_handler): Likewise.
770 * infcmd.c (step_1): Adjust.
771 * infrun.c (proceed): Adjust.
772 (fetch_inferior_event): Remove client_data param.
773 (infrun_async_inferior_event_handler): Adjust.
774 * infrun.h (fetch_inferior_event): Remove `void *` param.
775 * linux-nat.c (handle_target_event): Adjust.
776 * record-btrace.c (record_btrace_handle_async_inferior_event):
777 Adjust.
778 * record-full.c (record_full_async_inferior_event_handler):
779 Adjust.
780 * remote.c (remote_async_inferior_event_handler): Adjust.
781
782 2020-07-01 Tom Tromey <tom@tromey.com>
783
784 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
785 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
786
787 2020-07-01 Tom Tromey <tom@tromey.com>
788
789 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
790 tui_gen_win_info.
791 (tui_win_info::make_window): Merge with
792 tui_gen_win_info::make_window.
793 (tui_win_info::make_visible): Move from tui_gen_win_info.
794 * tui/tui-win.c (tui_win_info::max_width): Move from
795 tui_gen_win_info.
796 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
797 type.
798 <window_factory>: Likewise.
799 * tui/tui-layout.c (tui_win_info::resize): Move from
800 tui_gen_win_info.
801 (make_standard_window): Change return type.
802 (get_locator_window, tui_get_window_by_name): Likewise.
803 (tui_layout_window::apply): Remove a cast.
804 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
805 (struct tui_win_info): Merge with tui_gen_win_info.
806 (struct tui_gen_win_info): Remove.
807
808 2020-07-01 Tom Tromey <tom@tromey.com>
809
810 * tui/tui-stack.h (struct tui_locator_window): Derive from
811 tui_win_info.
812 <do_scroll_horizontal, do_scroll_vertical>: New methods.
813 <can_box>: New method.
814
815 2020-07-01 Tom Tromey <tom@tromey.com>
816
817 * tui/tui-stack.h (struct tui_locator_window): Remove body.
818
819 2020-07-01 Tom Tromey <tom@tromey.com>
820
821 * tui/tui-regs.c (tui_data_window::display_registers_from)
822 (tui_data_window::display_registers_from)
823 (tui_data_window::first_data_item_displayed)
824 (tui_data_window::delete_data_content_windows): Update.
825 (tui_data_window::refresh_window, tui_data_window::no_refresh):
826 Remove.
827 (tui_data_window::check_register_values): Update.
828 (tui_data_item_window::rerender): Add parameters. Update.
829 (tui_data_item_window::refresh_window): Remove.
830 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
831 virtual.
832 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
833 tui_gen_win_info.
834 <refresh_window, max_height, min_height>: Remove.
835 <rerender>: Add parameters.
836 <x, y, visible>: New members.
837 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
838 <m_item_width>: New member.
839
840 2020-07-01 Tom Tromey <tom@tromey.com>
841
842 * tui/tui-regs.c (tui_data_window::show_register_group)
843 (tui_data_window::check_register_values): Update.
844 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
845 from item_no.
846
847 2020-07-01 Tom Tromey <tom@tromey.com>
848
849 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
850 useless "if".
851
852 2020-07-01 Tom Tromey <tom@tromey.com>
853
854 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
855 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
856
857 2020-07-01 Tom Tromey <tom@tromey.com>
858
859 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
860 * tui/tui-winsource.h (enum tui_line_or_address_kind)
861 (struct tui_line_or_address): Move from tui-data.h.
862 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
863 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
864 (tui_cmd_window, tui_source_window_base, tui_source_window)
865 (tui_disasm_window): Don't declare.
866 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
867 to tui-winsource.h.
868 (SINGLE_KEY): Move to tui-stack.c.
869
870 2020-07-01 Tom Tromey <tom@tromey.com>
871
872 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
873 std::string.
874 * tui/tui-regs.c (class tab_expansion_file): New.
875 (tab_expansion_file::write): New method.
876 (tui_register_format): Change return type. Use
877 tab_expansion_file.
878 (tui_get_register, tui_data_window::display_registers_from)
879 (tui_data_item_window::rerender): Update.
880 * tui/tui-io.h (tui_expand_tabs): Don't declare.
881 * tui/tui-io.c (tui_expand_tabs): Remove.
882
883 2020-07-01 Tom Tromey <tom@tromey.com>
884
885 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
886
887 2020-07-01 Fangrui Song <maskray@google.com>
888
889 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
890
891 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
892
893 * dwarf2/read.c (set_die_type): Removed conditions to restrict
894 forms for DW_AT_associated and DW_AT_allocated attributes,
895 which is already checked in function attr_to_dynamic_prop.
896
897 2020-06-30 Tom Tromey <tromey@adacore.com>
898
899 * dwarf2/read.c (quirk_rust_enum): Correctly call
900 alloc_rust_variant for default-less enum.
901
902 2020-06-30 Tom Tromey <tromey@adacore.com>
903
904 PR build/26183:
905 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
906 gdb::to_string.
907
908 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
909
910 * gdbarch.sh (displaced_step_copy_insn): Update doc.
911 * gdbarch.h: Re-generate.
912
913 2020-06-28 Tom Tromey <tom@tromey.com>
914
915 * command.h (cmd_types): Remove.
916 (cmd_type): Don't declare.
917 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
918 typedef.
919 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
920 * cli/cli-decode.c (cmd_type): Remove.
921
922 2020-06-27 Pedro Alves <palves@redhat.com>
923
924 * fork-child.c (prefork_hook): Adjust.
925 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
926 Delete.
927 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
928 * inferior.c (inferior::set_tty, inferior::tty): New methods.
929 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
930 Remove declarations.
931 (struct inferior) <set_tty, tty>: New methods.
932 (struct inferior) <terminal>: Rename to ...
933 (struct inferior) <m_terminal>: ... this and make private.
934 * main.c (captured_main_1): Adjust.
935 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
936 (mi_cmd_inferior_tty_show): Adjust.
937 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
938 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
939
940 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
941
942 * configure.ac: Add --enable-libctf: handle --disable-static
943 properly.
944 * acinclude.m4: sinclude ../config/enable.m4.
945 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
946 (LIBCTF): Substitute in.
947 (CTF_DEPS): New, likewise.
948 (CLIBS): libctf needs symbols from libbfd: move earlier.
949 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
950 flags.
951 * ctfread.c: Surround in ENABLE_LIBCTF.
952 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
953 * configure: Regenerate.
954 * config.in: Likewise.
955
956 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
957
958 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
959
960 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
961
962 * inferior.h (struct inferior) <terminal>: Change type to
963 gdb::unique_xmalloc_ptr<char>.
964 * inferior.c (inferior::~inferior): Don't free inf->terminal.
965 * infcmd.c (set_inferior_io_terminal): Don't free terminal
966 field, adjust to unique pointer.
967 (get_inferior_io_terminal): Adjust to unique pointer.
968
969 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
970
971 * riscv-tdep.c (riscv_print_registers_info): Loop over all
972 registers, not just the known core set of registers.
973
974 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
975
976 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
977 fflags, frm, and fcsr registers.
978 (riscv_register_reggroup_p): Remove unknown CSRs from save and
979 restore groups.
980 (riscv_tdesc_unknown_reg): New function.
981 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
982 tdesc_use_registers.
983 * riscv-tdep.h (struct gdbarch_tdep): Add
984 unknown_csrs_first_regnum, unknown_csrs_count,
985 duplicate_fflags_regnum, duplicate_frm_regnum, and
986 duplicate_fcsr_regnum fields.
987
988 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
989
990 * target-descriptions.c (tdesc_use_registers): Add new parameter a
991 callback, use the callback (when not null) to help number unknown
992 registers.
993 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
994 (tdesc_use_registers): Add extra parameter to declaration.
995
996 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
997
998 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
999 in the file.
1000 (class riscv_pending_register_alias): Likewise.
1001 (riscv_register_feature::register_info): Change 'required_p' field
1002 to 'required', and change its type. Add 'check' member function.
1003 (riscv_register_feature::register_info::check): Define new member
1004 function.
1005 (riscv_xreg_feature): Change initialisation of 'required' field.
1006 (riscv_freg_feature): Likewise.
1007 (riscv_virtual_feature): Likewise.
1008 (riscv_csr_feature): Likewise.
1009 (riscv_check_tdesc_feature): Take extra parameter, the csr
1010 tdesc_feature, rewrite the function to use the new
1011 riscv_register_feature::register_info::check function.
1012 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
1013
1014 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1015
1016 * features/Makefile: Remove all references to the deleted files
1017 below.
1018 * features/riscv/32bit-csr.c: Deleted.
1019 * features/riscv/32bit-csr.xml: Deleted.
1020 * features/riscv/64bit-csr.c: Deleted.
1021 * features/riscv/64bit-csr.xml: Deleted.
1022 * features/riscv/rebuild-csr-xml.sh: Deleted.
1023
1024 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1025
1026 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
1027 whitespace error for declaration of names member variable.
1028 (struct riscv_register_feature): Add new prefer_first_name member
1029 variable, and fix whitespace error in declaration of registers.
1030 (riscv_xreg_feature): Initialize prefer_first_name field.
1031 (riscv_freg_feature): Likewise.
1032 (riscv_virtual_feature): Likewise.
1033 (riscv_csr_feature): Likewise.
1034 (riscv_register_name): Expand on comments. Remove register name
1035 modifications for CSR and virtual registers.
1036
1037 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1038
1039 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
1040 errors.
1041
1042 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1043
1044 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
1045 riscv-opc.h.
1046 (class riscv_pending_register_alias): New class.
1047 (riscv_check_tdesc_feature): Take vector of pending aliases and
1048 populate it as appropriate.
1049 (riscv_setup_register_aliases): Delete.
1050 (riscv_gdbarch_init): Create vector of pending aliases and pass it
1051 to riscv_check_tdesc_feature in all cases. Use the vector to
1052 create the register aliases.
1053
1054 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1055
1056 * sol2-tdep.c (sol2_static_transform_name): Remove.
1057 (sol2_init_abi): Don't register it.
1058 * gdbarch.sh (static_transform_name): Remove.
1059 * gdbarch.c, gdbarch.h: Regenerate.
1060
1061 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
1062 gdbarch_static_transform_name.
1063 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
1064 * stabsread.c (define_symbol) <'X'>: Remove.
1065 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
1066 handling.
1067 <'V'>: Likewise.
1068 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
1069 <'S'>: Remove call to gdbarch_static_transform_name.
1070
1071 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1072
1073 * procfs.c (procfs_pre_trace): New function.
1074 (procfs_target::create_inferior): Pass it to fork_inferior.
1075
1076 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1077
1078 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
1079 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
1080 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
1081 sol2-tdep.o, sparc-sol2-tdep.o.
1082 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
1083 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
1084 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
1085 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
1086
1087 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1088
1089 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
1090 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
1091 Call sol2_init_abi.
1092 Remove calls to set_gdbarch_skip_solib_resolver,
1093 set_gdbarch_core_pid_to_str.
1094 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
1095 (i386_sol2_static_transform_name): Remove.
1096 (i386_sol2_init_abi): Call sol2_init_abi.
1097 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1098 set_gdbarch_static_transform_name,
1099 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1100 Use sol2_sigtramp_p.
1101 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
1102 (sol2_sigtramp_p): New function.
1103 (sol2_static_transform_name): New function.
1104 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
1105 (sol2_init_abi): New function.
1106 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
1107 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
1108 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
1109 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
1110 (sparc_sol2_static_transform_name): Remove.
1111 (sparc32_sol2_init_abi): Call sol2_init_abi.
1112 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1113 set_gdbarch_static_transform_name,
1114 set_gdbarch_skip_solib_resolver,
1115 set_gdbarch_core_pid_to_str.
1116 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
1117 (sparc_sol2_static_transform_name): Remove
1118 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
1119 call sol2_sigtramp_p.
1120 (sparc64_sol2_init_abi): Call sol2_init_abi.
1121 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1122 set_gdbarch_static_transform_name,
1123 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1124
1125 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1126
1127 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
1128 * exec.c (validate_exec_file): If from_tty, set both
1129 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
1130 * symfile.c (symbol_file_add_with_addrs): if always_confirm
1131 and from_tty, unconditionally ask a confirmation.
1132
1133 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1134
1135 * target-descriptions.c (tdesc_architecture_name): Protect against
1136 NULL pointer dereference.
1137 (maint_print_xml_tdesc_cmd): New function.
1138 (_initialize_target_descriptions): Register new 'maint print
1139 xml-tdesc' command and give it the filename completer.
1140 * NEWS: Mention new 'maint print xml-tdesc' command.
1141
1142 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1143
1144 * target-descriptions.c (class tdesc_compatible_info): New class.
1145 (struct target_desc): Change type of compatible vector.
1146 (tdesc_compatible_p): Update for change in type of
1147 target_desc::compatible.
1148 (tdesc_compatible_info_list): New function.
1149 (tdesc_compatible_info_arch_name): New function.
1150 (tdesc_add_compatible): Update for change in type of
1151 target_desc::compatible.
1152 (print_c_tdesc::visit_pre): Likewise.
1153
1154 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1155
1156 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
1157 whitespace to underscore.
1158 (maint_print_c_tdesc_cmd): Use fake filename for target
1159 descriptions that came from the target.
1160 (_initialize_target_descriptions): Add filename command completion
1161 for 'maint print c-tdesc'.
1162
1163 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
1164
1165 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
1166 lines.
1167
1168 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
1169
1170 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
1171 lines.
1172 (dwarf2_find_location_expression): Likewise.
1173 (call_site_parameter_matches): Likewise.
1174 (dwarf2_compile_expr_to_ax): Likewise.
1175 (disassemble_dwarf_expression): Likewise.
1176 (loclist_describe_location): Likewise.
1177
1178 2020-06-23 Pedro Alves <palves@redhat.com>
1179
1180 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
1181 progspace-and-thread.h. Include scoped-mock-context.h instead.
1182 (register_to_value_test): Use scoped_mock_context.
1183 * regcache.c: Include "scoped-mock-context.h".
1184 (cooked_read_test): Don't error out if a target is already pushed.
1185 Use scoped_mock_context. Adjust.
1186 * scoped-mock-context.h: New file.
1187
1188 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1189
1190 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
1191 initializer.
1192 (ada_language::is_string_type_p): New member function.
1193 * c-lang.c (c_language_data): Delete la_is_string_type_p
1194 initializer.
1195 (cplus_language_data): Likewise.
1196 (asm_language_data): Likewise.
1197 (minimal_language_data): Likewise.
1198 * d-lang.c (d_language_data): Likewise.
1199 * f-lang.c (f_is_string_type_p): Delete function, implementation
1200 moved to f_language::is_string_type_p.
1201 (f_language_data): Delete la_is_string_type_p initializer.
1202 (f_language::is_string_type_p): New member function,
1203 implementation from f_is_string_type_p.
1204 * go-lang.c (go_is_string_type_p): Delete function, implementation
1205 moved to go_language::is_string_type_p.
1206 (go_language_data): Delete la_is_string_type_p initializer.
1207 (go_language::is_string_type_p): New member function,
1208 implementation from go_is_string_type_p.
1209 * language.c (language_defn::is_string_type_p): Define new member
1210 function.
1211 (default_is_string_type_p): Make static, add comment copied from
1212 header file.
1213 (unknown_language_data): Delete la_is_string_type_p initializer.
1214 (unknown_language::is_string_type_p): New member function.
1215 (auto_language_data): Delete la_is_string_type_p initializer.
1216 (auto_language::is_string_type_p): New member function.
1217 * language.h (language_data): Delete la_is_string_type_p field.
1218 (language_defn::is_string_type_p): Declare new function.
1219 (default_is_string_type_p): Delete desclaration, move comment to
1220 definition.
1221 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
1222 moved to m2_language::is_string_type_p.
1223 (m2_language_data): Delete la_is_string_type_p initializer.
1224 (m2_language::is_string_type_p): New member function,
1225 implementation from m2_is_string_type_p.
1226 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
1227 initializer.
1228 * opencl-lang.c (opencl_language_data): Likewise.
1229 * p-lang.c (pascal_is_string_type_p): Delete function,
1230 implementation moved to pascal_language::is_string_type_p.
1231 (pascal_language_data): Delete la_is_string_type_p initializer.
1232 (pascal_language::is_string_type_p): New member function,
1233 implementation from pascal_is_string_type_p.
1234 * rust-lang.c (rust_is_string_type_p): Delete function,
1235 implementation moved to rust_language::is_string_type_p.
1236 (rust_language_data): Delete la_is_string_type_p initializer.
1237 (rust_language::is_string_type_p): New member function,
1238 implementation from rust_is_string_type_p.
1239 * valprint.c (val_print_scalar_or_string_type_p): Update call to
1240 is_string_type_p.
1241
1242 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1243
1244 * ada-lang.c (ada_language_data): Delete la_print_typedef
1245 initializer.
1246 (ada_language::print_typedef): New member function.
1247 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
1248 (cplus_language_data): Likewise.
1249 (asm_language_data): Likewise.
1250 (minimal_language_data): Likewise.
1251 * d-lang.c (d_language_data): Likewise.
1252 * f-lang.c (f_language_data): Likewise.
1253 (f_language::print_typedef): New member function.
1254 * go-lang.c (go_language_data): Delete la_print_typedef
1255 initializer.
1256 * language.c (language_defn::print_typedef): Define member
1257 function.
1258 (unknown_language_data): Delete la_print_typedef initializer.
1259 (unknown_language::print_typedef): New member function.
1260 (auto_language_data): Delete la_print_typedef initializer.
1261 (auto_language::print_typedef): New member function.
1262 * language.h (language_data): Delete la_print_typedef field.
1263 (language_defn::print_typedef): Declare new member function.
1264 (LA_PRINT_TYPEDEF): Update call to print_typedef.
1265 (default_print_typedef): Delete declaration.
1266 * m2-lang.c (m2_language_data): Delete la_print_typedef
1267 initializer.
1268 (m2_language::print_typedef): New member function.
1269 * objc-lang.c (objc_language_data): Delete la_print_typedef
1270 initializer.
1271 * opencl-lang.c (opencl_language_data): Likewise.
1272 * p-lang.c (pascal_language_data): Likewise.
1273 (pascal_language::print_typedef): New member function.
1274 * rust-lang.c (rust_print_typedef): Delete function,
1275 implementation moved to rust_language::print_typedef.
1276 (rust_language): Delete la_print_typedef initializer.
1277 (rust_language::print_typedef): New member function,
1278 implementation from rust_print_typedef.
1279 * typeprint.c (default_print_typedef): Delete.
1280
1281 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1282
1283 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
1284 (ada_language::printstr): New member function.
1285 * c-lang.c (c_language_data): Delete la_printstr initializer.
1286 (cplus_language_data): Likewise.
1287 (asm_language_data): Likewise.
1288 (minimal_language_data): Likewise.
1289 * d-lang.c (d_language_data): Likewise.
1290 * f-lang.c (f_printstr): Rename to f_language::printstr.
1291 (f_language_data): Delete la_printstr initializer.
1292 (f_language::printstr): New member function, implementation from
1293 f_printstr.
1294 * go-lang.c (go_language_data): Delete la_printstr initializer.
1295 * language.c (language_defn::printstr): Define new member
1296 function.
1297 (unk_lang_printstr): Delete.
1298 (unknown_language_data): Delete la_printstr initializer.
1299 (unknown_language::printstr): New member function.
1300 (auto_language_data): Delete la_printstr initializer.
1301 (auto_language::printstr): New member function.
1302 * language.h (language_data): Delete la_printstr field.
1303 (language_defn::printstr): Declare new member function.
1304 (LA_PRINT_STRING): Update call to printstr.
1305 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
1306 (m2_language_data): Delete la_printstr initializer.
1307 (m2_language::printstr): New member function, implementation from
1308 m2_printstr.
1309 * objc-lang.c (objc_language_data): Delete la_printstr
1310 initializer.
1311 * opencl-lang.c (opencl_language_data): Likewise.
1312 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
1313 (pascal_language_data): Delete la_printstr initializer.
1314 (pascal_language::printstr): New member function, implementation
1315 from pascal_printstr.
1316 * p-lang.h (pascal_printstr): Delete declaration.
1317 * rust-lang.c (rust_printstr): Update header comment.
1318 (rust_language_data): Delete la_printstr initializer.
1319 (rust_language::printstr): New member function.
1320
1321 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1322
1323 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
1324 (ada_language::printchar): New member function.
1325 * c-lang.c (c_language_data): Delete la_printchar initializer.
1326 (cplus_language_data): Likewise.
1327 (asm_language_data): Likewise.
1328 (minimal_language_data): Likewise.
1329 * d-lang.c (d_language_data): Likewise.
1330 * f-lang.c (f_printchar): Rename to f_language::printchar.
1331 (f_language_data): Delete la_printchar initializer.
1332 (f_language::printchar): New member function, implementation from
1333 f_printchar.
1334 * go-lang.c (go_language_data): Delete la_printchar initializer.
1335 * language.c (unk_lang_printchar): Delete.
1336 (language_defn::printchar): Define new member function.
1337 (unknown_language_data): Delete la_printchar initializer.
1338 (unknown_language::printchar): New member function.
1339 (auto_language_data): Delete la_printchar initializer.
1340 (auto_language::printchar): New member function.
1341 * language.h (language_data): Delete la_printchar field.
1342 (language_defn::printchar): Declare new member function.
1343 (LA_PRINT_CHAR): Update call to printchar.
1344 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
1345 (m2_language::printchar): New member function.
1346 * objc-lang.c (objc_language_data): Delete la_printchar
1347 initializer.
1348 * opencl-lang.c (opencl_language_data): Likewise.
1349 * p-lang.c (pascal_language_data): Delete la_printchar
1350 initializer.
1351 (pascal_language::printchar): New member function.
1352 * rust-lang.c (rust_printchar): Rename to
1353 rust_language::printchar.
1354 (rust_language_data): Delete la_printchar initializer.
1355 (rust_language::printchar): New member function, implementation
1356 from rust_printchar.
1357
1358 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1359
1360 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
1361 (ada_language_data): Delete la_emitchar initializer.
1362 (ada_language::emitchar): New member function, implementation from
1363 emit_char.
1364 * c-lang.c (c_language_data): Delete la_emitchar initializer.
1365 (cplus_language_data): Likewise.
1366 (asm_language_data): Likewise.
1367 (minimal_language_data): Likewise.
1368 * d-lang.c (d_language_data): Likewise.
1369 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
1370 (f_language_data): Delete la_emitchar initializer.
1371 (f_language::emitchar): New member function, implementation from
1372 f_emit_char.
1373 * go-lang.c (go_language_data): Delete la_emitchar initializer.
1374 * language.c (unk_lang_emit_char): Delete.
1375 (language_defn::emitchar): New member function definition.
1376 (unknown_language_data): Delete la_emitchar initializer.
1377 (unknown_language::emitchar): New member function.
1378 (auto_language_data): Delete la_emitchar initializer.
1379 (auto_language::emitchar): New member function.
1380 * language.h (language_data): Delete la_emitchar field.
1381 (language_defn::emitchar): New member field declaration.
1382 (LA_EMIT_CHAR): Update call to emitchar.
1383 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
1384 (m2_language_data): Delete la_emitchar initializer.
1385 (m2_language::emitchar): New member function, implementation from
1386 m2_emit_char.
1387 * objc-lang.c (objc_language_data): Delete la_emitchar
1388 initializer.
1389 * opencl-lang.c (opencl_language_data): Likewise.
1390 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
1391 (pascal_language_data): Delete la_emitchar initializer.
1392 (pascal_language::emitchar): New member function, implementation
1393 from pascal_emit_char.
1394 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
1395 (rust_language_data): Delete la_emitchar initializer.
1396 (rust_language::emitchar): New member function, implementation
1397 from rust_emitchar.
1398
1399 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1400
1401 * ada-lang.c (resolve): Rename to ada_language::post_parser.
1402 (ada_language_data): Delete la_post_parser initializer.
1403 (ada_language::post_parser): New member function.
1404 * c-lang.c (c_language_data): Delete la_post_parser initializer.
1405 (cplus_language_data): Likewise.
1406 (asm_language_data): Likewise.
1407 (minimal_language_data): Likewise.
1408 * d-lang.c (d_language_data): Likewise.
1409 * f-lang.c (f_language_data): Likewise.
1410 * go-lang.c (go_language_data): Likewise.
1411 * language.c (unknown_language_data): Likewise.
1412 (auto_language_data): Likewise.
1413 * language.h (language_data): Delete la_post_parser field.
1414 (language_defn::post_parser): New member function.
1415 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
1416 * objc-lang.c (objc_language_data): Likewise.
1417 * opencl-lang.c (opencl_language_data): Likewise.
1418 * p-lang.c (pascal_language_data): Likewise.
1419 * parse.c (parse_exp_in_context): Update call to post_parser.
1420 (null_post_parser): Delete definition.
1421 * parser-defs.h (null_post_parser): Delete declaration.
1422 * rust-lang.c (rust_language_data): Delete la_post_parser
1423 initializer.
1424
1425 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1426
1427 * ada-lang.c (parse): Rename to ada_language::parser.
1428 (ada_language_data): Delete la_parser initializer.
1429 (ada_language::parser): New member function, implementation from
1430 parse.
1431 * c-lang.c (c_language_data): Delete la_parser initializer.
1432 (cplus_language_data): Likewise.
1433 (asm_language_data): Likewise.
1434 (minimal_language_data): Likewise.
1435 * d-lang.c (d_language_data): Likewise.
1436 (d_language::parser): New member function.
1437 * f-lang.c (f_language_data): Delete la_parser initializer.
1438 (f_language::parser): New member function.
1439 * go-lang.c (go_language_data): Delete la_parser initializer.
1440 (go_language::parser): New member function.
1441 * language.c (unk_lang_parser): Delete.
1442 (language_defn::parser): Define new member function.
1443 (unknown_language_data): Delete la_parser initializer.
1444 (unknown_language::parser): New member function.
1445 (auto_language_data): Delete la_parser initializer.
1446 (auto_language::parser): New member function.
1447 * language.h (language_data): Delete la_parser field.
1448 (language_defn::parser): Declare new member function.
1449 * m2-lang.c (m2_language_data): Delete la_parser initializer.
1450 (m2_language::parser): New member function.
1451 * objc-lang.c (objc_language_data): Delete la_parser initializer.
1452 * opencl-lang.c (opencl_language_data): Likewise.
1453 * p-lang.c (pascal_language_data): Likewise.
1454 (pascal_language::parser): New member function.
1455 * parse.c (parse_exp_in_context): Update call to parser.
1456 * rust-lang.c (rust_language_data): Delete la_parser initializer.
1457 (rust_language::parser): New member function.
1458
1459 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1460
1461 * top.c (print_gdb_configuration): Print --with-python-libdir
1462 configuration value.
1463
1464 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1465
1466 * NEWS: Mention change to the alias command.
1467
1468 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1469
1470 * cli/cli-cmds.c (lookup_cmd_for_default_args)
1471 (alias_command_completer)
1472 (make_alias_options_def_group): New functions.
1473 (alias_opts, alias_option_defs): New struct and array.
1474 (alias_usage_error): Update usage.
1475 (alias_command): Handles optional DEFAULT-ARGS... arguments.
1476 Use option framework.
1477 (_initialize_cli_cmds): Update alias command help.
1478 Update aliases command help.
1479 (show_user):
1480 Add NULL for new default_args lookup_cmd argument.
1481 (valid_command_p): Rename to validate_aliased_command.
1482 Add NULL for new default_args lookup_cmd argument. Verify that the
1483 aliased_command has no default args.
1484 * cli/cli-decode.c (help_cmd): Show aliases definitions.
1485 (lookup_cmd_1, lookup_cmd): New argument default_args.
1486 (add_alias_cmd):
1487 Add NULL for new default_args lookup_cmd argument.
1488 (print_help_for_command): Show default args under the layout
1489 alias some_alias = some_aliased_cmd some_alias_default_arg.
1490 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
1491 xfree default_args in destructor.
1492 * cli/cli-script.c (process_next_line, do_define_command):
1493 Add NULL for new default_args lookup_cmd argument.
1494 * command.h: Declare new default_args argument in lookup_cmd
1495 and lookup_cmd_1.
1496 * completer.c (complete_line_internal_1):
1497 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1498 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
1499 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
1500 Likewise.
1501 * infcmd.c (_initialize_infcmd): Likewise.
1502 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
1503 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
1504 * python/py-param.c (add_setshow_generic): Likewise.
1505 * remote.c (_initialize_remote): Likewise.
1506 * top.c (execute_command): Prepend default_args if command has some.
1507 (set_verbose):
1508 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1509 * tracepoint.c (validate_actionline, encode_actions_1):
1510 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1511
1512 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1513
1514 * jit.c (jit_read_descriptor): Use bool as the return type.
1515 (jit_breakpoint_re_set_internal): Use bool as the return type.
1516 Invert the return value logic; return true if the jit breakpoint
1517 has been successfully initialized.
1518 (jit_inferior_init): Update the call to
1519 jit_breakpoint_re_set_internal.
1520
1521 2020-06-22 Pedro Alves <palves@redhat.com>
1522
1523 PR gdb/25939
1524 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
1525 Use the current inferior instead. Don't return
1526 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
1527 wait again.
1528 * sol-thread.c (sol_thread_target::wait): Don't reference
1529 inferior_ptid.
1530 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
1531 (sol_update_thread_list_callback): Use the current inferior's pid
1532 instead of inferior_ptid.
1533
1534 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1535
1536 * procfs.c: Cleanup many comments.
1537
1538 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
1539 (AFTER_WATCHFLAG): Replace by value.
1540
1541 (MAIN_PROC_NAME_FORMAT): Inline ...
1542 (create_procinfo): ... here.
1543
1544 (procfs_debug_inferior): Remove SYS_exec handling.
1545 (syscall_is_exec): Likewise.
1546 (procfs_set_exec_trap): Likewise.
1547
1548 (syscall_is_lwp_exit): Inline in callers.
1549 (syscall_is_exit): Likewise.
1550 (syscall_is_exec): Likewise.
1551 (syscall_is_lwp_create): Likewise.
1552
1553 (invalidate_cache): Remove #if 0 code.
1554
1555 (make_signal_thread_runnable): Remove.
1556 (procfs_target::resume): Remove #if 0 code.
1557
1558 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1559
1560 PR gdb/25939
1561 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
1562 call ...
1563 (procfs_target::create_inferior): ... here.
1564
1565 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1566
1567 * exec.c (validate_exec_file): Ensure the build-id is up to
1568 date by calling reopen_exec_file (that checks file timestamp
1569 to decide to re-read the file).
1570
1571 2020-06-18 Pedro Alves <palves@redhat.com>
1572
1573 PR gdb/25412
1574 * gdbthread.h (delete_thread, delete_thread_silent)
1575 (find_thread_ptid): Update comments.
1576 * thread.c (current_thread_): New global.
1577 (is_current_thread): Move higher, and reimplement.
1578 (inferior_thread): Reimplement.
1579 (set_thread_exited): Use bool. Add assertions.
1580 (add_thread_silent): Simplify thread-reuse handling by always
1581 calling delete_thread.
1582 (delete_thread): Remove intro comment.
1583 (find_thread_ptid): Skip exited threads.
1584 (switch_to_thread_no_regs): Write to current_thread_.
1585 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
1586 INFERIOR_PTID. Clear current_thread_.
1587
1588 2020-06-18 Pedro Alves <palves@redhat.com>
1589
1590 * aix-thread.c (pd_update): Use switch_to_thread.
1591
1592 2020-06-18 Pedro Alves <palves@redhat.com>
1593
1594 * ravenscar-thread.c (ravenscar_thread_target): Update.
1595 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
1596 (ravenscar_thread_target::add_active_thread): ... this. Don't
1597 set m_base_ptid here. Update to avoid referencing inferior_ptid.
1598 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
1599
1600 2020-06-18 Pedro Alves <palves@redhat.com>
1601
1602 * nat/windows-nat.c (current_windows_thread): Remove.
1603 * nat/windows-nat.h (current_windows_thread): Remove.
1604 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
1605 Adjust.
1606 (display_selectors): Adjust to fetch the current
1607 windows_thread_info based on inferior_ptid.
1608 (fake_create_process): No longer write to current_windows_thread.
1609 (windows_nat_target::get_windows_debug_event):
1610 Don't set inferior_ptid or current_windows_thread.
1611 (windows_nat_target::wait): Adjust to not rely on
1612 current_windows_thread.
1613 (do_initial_windows_stuff): Now a method of windows_nat_target.
1614 Switch to the last_ptid thread.
1615 (windows_nat_target::attach): Adjust.
1616 (windows_nat_target::detach): Use switch_to_no_thread instead of
1617 writing to inferior_ptid directly.
1618 (windows_nat_target::create_inferior): Adjust.
1619
1620 2020-06-18 Pedro Alves <palves@redhat.com>
1621
1622 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
1623
1624 2020-06-18 Pedro Alves <palves@redhat.com>
1625
1626 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
1627 after creating it, instead of writing to inferior_ptid. Don't
1628 write to inferior_ptid.
1629
1630 2020-06-18 Pedro Alves <palves@redhat.com>
1631
1632 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
1633
1634 2020-06-18 Pedro Alves <palves@redhat.com>
1635
1636 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
1637 it, instead of writing to inferior_ptid.
1638
1639 2020-06-18 Pedro Alves <palves@redhat.com>
1640
1641 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
1642 to inferior_ptid.
1643
1644 2020-06-18 Pedro Alves <palves@redhat.com>
1645
1646 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
1647 instead of writing to inferior_ptid directly.
1648
1649 2020-06-18 Pedro Alves <palves@redhat.com>
1650
1651 * corelow.c (core_target::close): Use switch_to_no_thread instead
1652 of writing to inferior_ptid directly.
1653 (add_to_thread_list, core_target_open): Use switch_to_thread
1654 instead of writing to inferior_ptid directly.
1655
1656 2020-06-18 Pedro Alves <palves@redhat.com>
1657
1658 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
1659 inferior_ptid.
1660 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
1661 inferior_ptid.
1662 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
1663 inferior_ptid directly.
1664 (darwin_nat_target::init_thread_list): Switch to thread, instead
1665 of writing to inferior_ptid.
1666 (darwin_nat_target::attach): Don't write to inferior_ptid.
1667 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
1668
1669 2020-06-18 Pedro Alves <palves@redhat.com>
1670
1671 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
1672 thread.
1673 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
1674 Instead use switch_to_thread.
1675 (gnu_nat_target::detach): Use switch_to_no_thread
1676 instead of writing to inferior_ptid directly. Used passed-in
1677 inferior instead of looking up the inferior by pid.
1678
1679 2020-06-18 Pedro Alves <palves@redhat.com>
1680
1681 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
1682 inferior_ptid.
1683
1684 2020-06-18 Pedro Alves <palves@redhat.com>
1685
1686 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
1687 inferior_ptid.
1688 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
1689 thread.
1690 (nto_procfs_target::detach): Avoid referencing
1691 inferior_ptid. Use switch_to_no_thread instead of writing to
1692 inferior_ptid directly.
1693 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
1694 instead of writing to inferior_ptid directly.
1695 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
1696 to thread.
1697
1698 2020-06-18 Pedro Alves <palves@redhat.com>
1699
1700 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
1701 after creating it, instead of writing to inferior_ptid.
1702 (gdbsim_target_open): Use switch_to_no_thread instead of writing
1703 to inferior_ptid directly.
1704 (gdbsim_target::wait): Don't write to inferior_ptid.
1705
1706 2020-06-18 Pedro Alves <palves@redhat.com>
1707
1708 * remote.c (remote_target::remote_notice_new_inferior): Use
1709 switch_to_thread instead of writing to inferior_ptid directly.
1710 (remote_target::add_current_inferior_and_thread): Use
1711 switch_to_no_thread instead of writing to inferior_ptid directly.
1712 (extended_remote_target::attach): Use switch_to_inferior_no_thread
1713 and switch_to_thread instead of using set_current_inferior or
1714 writing to inferior_ptid directly.
1715
1716 2020-06-18 Pedro Alves <palves@redhat.com>
1717
1718 * tracectf.c (ctf_target_open): Switch to added thread instead of
1719 writing to inferior_ptid directly.
1720 (ctf_target::close): Use switch_to_no_thread instead of writing to
1721 inferior_ptid directly.
1722
1723 2020-06-18 Pedro Alves <palves@redhat.com>
1724
1725 * tracefile-tfile.c (tfile_target_open): Don't write to
1726 inferior_ptid directly, instead switch to added thread.
1727 (tfile_target::close): Use switch_to_no_thread instead of writing
1728 to inferior_ptid directly.
1729
1730 2020-06-18 Pedro Alves <palves@redhat.com>
1731
1732 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
1733 (procfs_target::detach): Use switch_to_no_thread
1734 instead of writing to inferior_ptid directly.
1735 (do_attach): Change return type to void. Switch to the added
1736 thread.
1737 (procfs_target::create_inferior): Switch to the added thread.
1738 (procfs_do_thread_registers): Don't write to inferior_ptid.
1739
1740 2020-06-18 Pedro Alves <palves@redhat.com>
1741
1742 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
1743 of writing to inferior_ptid.
1744 (scoped_restore_exited_inferior): Delete.
1745 (handle_vfork_child_exec_or_exit): Simplify using
1746 scoped_restore_current_pspace_and_thread. Use switch_to_thread
1747 instead of writing to inferior_ptid.
1748 (THREAD_STOPPED_BY): Delete.
1749 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
1750 (thread_stopped_by_hw_breakpoint): Delete.
1751 (save_waitstatus): Use
1752 scoped_restore_current_thread+switch_to_thread, and call
1753 target_stopped_by_watchpoint instead of
1754 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
1755 instead of thread_stopped_by_sw_breakpoint, and
1756 target_stopped_by_hw_breakpoint instead of
1757 thread_stopped_by_hw_breakpoint.
1758 (handle_inferior_event)
1759 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
1760 inferior_ptid directly, nor
1761 set_current_inferior/set_current_program_space. Use
1762 switch_to_thread / switch_to_inferior_no_thread instead.
1763
1764 2020-06-18 Pedro Alves <palves@redhat.com>
1765
1766 * target.c (generic_mourn_inferior): Use switch_to_no_thread
1767 instead of writing to inferior_ptid.
1768
1769 2020-06-18 Pedro Alves <palves@redhat.com>
1770
1771 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
1772 added thread.
1773 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
1774 to the added thread.
1775 (inf_ptrace_target::detach_success): Use switch_to_no_thread
1776 instead of writing to inferior_ptid.
1777
1778 2020-06-18 Pedro Alves <palves@redhat.com>
1779
1780 * gdbarch-selftests.c: Include "progspace-and-thread.h".
1781 (register_to_value_test): Mock a program_space too. Heap-allocate
1782 the address space. Don't write to inferior_ptid. Use
1783 switch_to_thread instead.
1784
1785 2020-06-18 Pedro Alves <palves@redhat.com>
1786
1787 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
1788 Delete.
1789 (find_signalled_thread()): New, factored out from
1790 linux_make_corefile_notes and adjusted to handle exited threads.
1791 (linux_make_corefile_notes): Adjust to use the new
1792 find_signalled_thread.
1793
1794 2020-06-18 Pedro Alves <palves@redhat.com>
1795
1796 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
1797 of saving/restoring inferior_ptid.
1798
1799 2020-06-17 Tom Tromey <tom@tromey.com>
1800
1801 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
1802 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
1803 declare.
1804 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
1805
1806 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
1807
1808 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
1809 of partial symtabs.
1810
1811 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
1812
1813 * regformats/reg-arm.dat: Remove.
1814 * regformats/reg-bfin.dat: Remove.
1815 * regformats/reg-cris.dat: Remove.
1816 * regformats/reg-crisv32.dat: Remove.
1817 * regformats/reg-m32r.dat: Remove.
1818 * regformats/reg-tilegx.dat: Remove.
1819 * regformats/reg-tilegx32.dat: Remove.
1820
1821 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
1822
1823 * features/Makefile (WHICH): Remove arm files.
1824 * regformats/arm/arm-with-iwmmxt.dat: Remove.
1825 * regformats/arm/arm-with-neon.dat: Remove.
1826 * regformats/arm/arm-with-vfpv2.dat: Remove.
1827 * regformats/arm/arm-with-vfpv3.dat: Remove.
1828
1829 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
1830
1831 * features/Makefile (XMLTOC): Remove rx.xml.
1832
1833 2020-06-17 Pedro Alves <palves@redhat.com>
1834
1835 * gdbthread.h (thread_control_state) <trap_expected> Update
1836 comments.
1837
1838 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1839
1840 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
1841 ada_language::lookup_symbol_nonlocal.
1842 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
1843 (ada_language::lookup_symbol_nonlocal): New member function,
1844 implementation from ada_lookup_symbol_nonlocal.
1845 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
1846 initializer.
1847 (cplus_language_data): Delete la_lookup_symbol_nonlocal
1848 initializer.
1849 (cplus_language::lookup_symbol_nonlocal): New member function.
1850 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
1851 (minimal_language_data) Likewise.
1852 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
1853 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
1854 initializer.
1855 (d_language::lookup_symbol_nonlocal): New member function.
1856 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
1857 initializer.
1858 (f_language::lookup_symbol_nonlocal): New member function.
1859 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
1860 initializer.
1861 * language.c (unknown_language_data): Likewise.
1862 (auto_language_data): Likewise.
1863 * language.h (language_data): Delete la_lookup_symbol_nonlocal
1864 field.
1865 (language_defn::lookup_symbol_nonlocal): New member function.
1866 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
1867 initializer.
1868 * objc-lang.c (objc_language_data): Likewise.
1869 * opencl-lang.c (opencl_language_data): Likewise.
1870 * p-lang.c (pascal_language_data): Likewise.
1871 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
1872 rust_language::lookup_symbol_nonlocal.
1873 (rust_language_data): Delete la_lookup_symbol_nonlocal
1874 initializer.
1875 (rust_language::lookup_symbol_nonlocal): New member function,
1876 implementation from rust_lookup_symbol_nonlocal.
1877 * symtab.c (lookup_symbol_aux): Update call to
1878 lookup_symbol_nonlocal.
1879 (basic_lookup_symbol_nonlocal): Rename to...
1880 (language_defn::lookup_symbol_nonlocal): ...this, and update
1881 header comment. Remove language_defn parameter, and replace with
1882 uses of `this'.
1883 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
1884
1885 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1886
1887 * ada-lang.c (ada_language_data): Delete la_value_print_inner
1888 initializer.
1889 (ada_language::value_print_inner): New member function.
1890 * c-lang.c (c_language_data): Delete la_value_print_inner
1891 initializer.
1892 (cplus_language_data): Likewise.
1893 (asm_language_data): Likewise.
1894 (minimal_language_data): Likewise.
1895 * d-lang.c (d_language_data): Likewise.
1896 (d_language::value_print_inner): New member function.
1897 * f-lang.c (f_language_data): Delete la_value_print_inner
1898 initializer.
1899 (f_language::value_print_inner): New member function.
1900 * f-lang.h (f_value_print_innner): Rename to...
1901 (f_value_print_inner): ...this (note spelling of 'inner').
1902 * f-valprint.c (f_value_print_innner): Rename to...
1903 (f_value_print_inner): ...this (note spelling of 'inner').
1904 * go-lang.c (go_language_data): Delete la_value_print_inner
1905 initializer.
1906 (go_language::value_print_inner): New member function.
1907 * language.c (language_defn::value_print_inner): Define new member
1908 function.
1909 (unk_lang_value_print_inner): Delete.
1910 (unknown_language_data): Delete la_value_print_inner initializer.
1911 (unknown_language::value_print_inner): New member function.
1912 (auto_language_data): Delete la_value_print_inner initializer.
1913 (auto_language::value_print_inner): New member function.
1914 * language.h (language_data): Delete la_value_print_inner field.
1915 (language_defn::value_print_inner): Delcare new member function.
1916 * m2-lang.c (m2_language_data): Delete la_value_print_inner
1917 initializer.
1918 (m2_language::value_print_inner): New member function.
1919 * objc-lang.c (objc_language_data): Delete la_value_print_inner
1920 initializer.
1921 * opencl-lang.c (opencl_language_data): Likewise.
1922 * p-lang.c (pascal_language_data): Likewise.
1923 (pascal_language::value_print_inner): New member function.
1924 * rust-lang.c (rust_language_data): Delete la_value_print_inner
1925 initializer.
1926 (rust_language::value_print_inner): New member function.
1927 * valprint.c (do_val_print): Update call to value_print_inner.
1928
1929 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1930
1931 * ada-lang.c (ada_language_data): Delete la_value_print
1932 initializer.
1933 (ada_language::value_print): New member function.
1934 * c-lang.c (c_language_data): Delete la_value_print initializer.
1935 (cplus_language_data): Likewise.
1936 (asm_language_data): Likewise.
1937 (minimal_language_data): Likewise.
1938 * d-lang.c (d_language_data): Likewise.
1939 * f-lang.c (f_language_data): Likewise.
1940 * go-lang.c (go_language_data): Likewise.
1941 * language.c (unk_lang_value_print): Delete.
1942 (language_defn::value_print): Define new member function.
1943 (unknown_language_data): Delete la_value_print initializer.
1944 (unknown_language::value_print): New member function.
1945 (auto_language_data): Delete la_value_print initializer.
1946 (auto_language::value_print): New member function.
1947 * language.h (language_data): Delete la_value_print field.
1948 (language_defn::value_print): Declare new member function.
1949 (LA_VALUE_PRINT): Update call to value_print.
1950 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
1951 * objc-lang.c (objc_language_data): Likewise.
1952 * opencl-lang.c (opencl_language_data): Likewise.
1953 * p-lang.c (pascal_language_data): Likewise.
1954 (pascal_language::value_print): New member function.
1955 * rust-lang.c (rust_language_data): Delete la_value_print
1956 initializer.
1957
1958 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1959
1960 * ada-lang.c (ada_watch_location_expression): Rename to
1961 ada_language::watch_location_expression.
1962 (ada_language_data): Delete la_watch_location_expression
1963 initializer.
1964 (ada_language::watch_location_expression): New member function,
1965 implementation from ada_watch_location_expression.
1966 * breakpoint.c (watch_command_1): Update call to
1967 watch_location_expression.
1968 * c-lang.c (c_watch_location_expression): Rename to
1969 language_defn::watch_location_expression.
1970 (c_language_data): Delete la_watch_location_expression
1971 initializer.
1972 (cplus_language_data): Likewise.
1973 (asm_language_data): Likewise.
1974 (minimal_language_data): Likewise.
1975 * c-lang.h (c_watch_location_expression): Delete declaration.
1976 * d-lang.c (d_language_data): Delete la_watch_location_expression
1977 initializer.
1978 * f-lang.c (f_language_data): Likewise.
1979 * go-lang.c (go_language_data): Likewise.
1980 * language.c (language_defn::watch_location_expression): Member
1981 function implementation from c_watch_location_expression.
1982 (unknown_language_data): Delete la_watch_location_expression
1983 initializer.
1984 (auto_language_data): Likewise.
1985 * language.h (language_data): Delete la_watch_location_expression
1986 field.
1987 (language_defn::watch_location_expression): Declare new member
1988 function.
1989 * m2-lang.c (m2_language_data): Delete
1990 la_watch_location_expression initializer.
1991 * objc-lang.c (objc_language_data): Likewise.
1992 * opencl-lang.c (opencl_language_data): Likewise.
1993 * p-lang.c (pascal_language_data): Likewise.
1994 * rust-lang.c (rust_watch_location_expression): Rename to
1995 rust_language::watch_location_expression.
1996 (rust_language_data): Delete la_watch_location_expression
1997 initializer.
1998 (rust_language::watch_location_expression): New member function,
1999 implementation from rust_watch_location_expression.
2000
2001 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2002
2003 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
2004 ada_language::collect_symbol_completion_matches.
2005 (ada_language_data): Delete la_collect_symbol_completion_matches
2006 initializer.
2007 (ada_language::collect_symbol_completion_matches): New member
2008 function, implementation from
2009 ada_collect_symbol_completion_matches.
2010 * c-lang.c (c_language_data): Delete
2011 la_collect_symbol_completion_matches initializer.
2012 (cplus_language_data): Likewise.
2013 (asm_language_data): Likewise.
2014 (minimal_language_data): Likewise.
2015 * d-lang.c (d_language_data): Likewise.
2016 * f-lang.c (f_collect_symbol_completion_matches): Rename to
2017 f_language::collect_symbol_completion_matches.
2018 (f_language_data): Delete la_collect_symbol_completion_matches
2019 initializer.
2020 (f_language::collect_symbol_completion_matches) New member
2021 function, implementation from f_collect_symbol_completion_matches.
2022 * go-lang.c (go_language_data): Delete
2023 la_collect_symbol_completion_matches initializer.
2024 * language.c (unknown_language_data): Likewise.
2025 (auto_language_data): Likewise.
2026 * language.h (language_data): Delete
2027 la_collect_symbol_completion_matches field.
2028 (language_defn::collect_symbol_completion_matches): New member
2029 function.
2030 * m2-lang.c (m2_language_data): Delete
2031 la_collect_symbol_completion_matches initializer.
2032 * objc-lang.c (objc_language_data): Likewise.
2033 * opencl-lang.c (opencl_language_data): Likewise.
2034 * p-lang.c (pascal_language_data): Likewise.
2035 * rust-lang.c (rust_language_data): Likewise.
2036 * symtab.c (default_collect_symbol_completion_matches): Delete.
2037 (collect_symbol_completion_matches): Update call to
2038 collect_symbol_completion_matches.
2039 (collect_symbol_completion_matches_type): Likewise.
2040 * symtab.h (default_collect_symbol_completion_matches): Delete
2041 declaration.
2042
2043 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2044
2045 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
2046 (ada_language_data): Delete la_word_break_characters initializer.
2047 (ada_language::word_break_characters): New member function.
2048 * c-lang.c (c_language_data): Delete la_word_break_characters
2049 initializer.
2050 (cplus_language_data): Likewise.
2051 (asm_language_data): Likewise.
2052 (minimal_language_data): Likewise.
2053 * completer.c: Update global comment.
2054 (advance_to_expression_complete_word_point): Update call to
2055 word_break_characters.
2056 (complete_files_symbols): Likewise.
2057 (complete_line_internal_1): Likewise.
2058 (default_completer_handle_brkchars): Likewise.
2059 (skip_quoted_chars): Likewise.
2060 * d-lang.c (d_language_data): Delete la_word_break_characters
2061 initializer.
2062 * f-lang.c (f_word_break_characters): Delete.
2063 (f_language_data): Delete la_word_break_characters initializer.
2064 (f_language::word_break_characters): New member function.
2065 * go-lang.c (go_language_data): Delete la_word_break_characters
2066 initializer.
2067 * language.c (unknown_language_data): Likewise.
2068 (auto_language_data): Likewise.
2069 * language.h (default_word_break_characters): Move declaration to
2070 earlier in the file.
2071 (language_data): Delete la_word_break_characters field.
2072 (language_defn::word_break_characters): New member function.
2073 * m2-lang.c (m2_language_data): Delete la_word_break_characters
2074 initializer.
2075 * objc-lang.c (objc_language_data): Likewise.
2076 * opencl-lang.c (opencl_language_data): Likewise.
2077 * p-lang.c (pascal_language_data): Likewise.
2078 * rust-lang.c (rust_language_data): Likewise.
2079
2080 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2081
2082 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
2083 (ada_language_data): Delete la_get_symbol_name_matcher
2084 initializer.
2085 (language_defn::get_symbol_name_matcher_inner): New member
2086 function.
2087 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
2088 initializer.
2089 (cplus_language_data): Likewise.
2090 (cplus_language::get_symbol_name_matcher_inner): New member
2091 function.
2092 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
2093 (minimal_language_data): Likewise.
2094 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
2095 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
2096 initializer.
2097 * dictionary.c (iter_match_first_hashed): Update call to
2098 get_symbol_name_matcher.
2099 (iter_match_next_hashed): Likewise.
2100 (iter_match_next_linear): Likewise.
2101 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
2102 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
2103 initializer.
2104 (f_language::get_symbol_name_matcher_inner): New member function.
2105 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
2106 initializer.
2107 * language.c (default_symbol_name_matcher): Update header comment,
2108 make static.
2109 (language_defn::get_symbol_name_matcher): New definition.
2110 (language_defn::get_symbol_name_matcher_inner): Likewise.
2111 (get_symbol_name_matcher): Delete.
2112 (unknown_language_data): Delete la_get_symbol_name_matcher
2113 initializer.
2114 (auto_language_data): Likewise.
2115 * language.h (language_data): Delete la_get_symbol_name_matcher
2116 field.
2117 (language_defn::get_symbol_name_matcher): New member function.
2118 (language_defn::get_symbol_name_matcher_inner): Likewise.
2119 (default_symbol_name_matcher): Delete declaration.
2120 * linespec.c (find_methods): Update call to
2121 get_symbol_name_matcher.
2122 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
2123 initializer.
2124 * minsyms.c (lookup_minimal_symbol): Update call to
2125 get_symbol_name_matcher.
2126 (iterate_over_minimal_symbols): Likewise.
2127 * objc-lang.c (objc_language_data): Delete
2128 la_get_symbol_name_matcher initializer.
2129 * opencl-lang.c (opencl_language_data): Likewise.
2130 * p-lang.c (pascal_language_data): Likewise.
2131 * psymtab.c (psymbol_name_matches): Update call to
2132 get_symbol_name_matcher.
2133 * rust-lang.c (rust_language_data): Delete
2134 la_get_symbol_name_matcher initializer.
2135 * symtab.c (symbol_matches_search_name): Update call to
2136 get_symbol_name_matcher.
2137 (compare_symbol_name): Likewise.
2138
2139 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2140
2141 * ada-lang.c (ada_language_data): Delete la_compute_program
2142 initializer.
2143 * c-lang.c (c_language_data): Likewise.
2144 (c_language::compute_program): New member function.
2145 (cplus_language_data): Delete la_compute_program initializer.
2146 (cplus_language::compute_program): New member function.
2147 (asm_language_data): Delete la_compute_program initializer.
2148 (minimal_language_data): Likewise.
2149 * c-lang.h (c_compute_program): Update comment.
2150 (cplus_compute_program): Likewise.
2151 * compile/compile-c-support.c (c_compute_program): Likewise.
2152 (cplus_compute_program): Likewise.
2153 * compile/compile.c (compile_to_object): Update call to
2154 la_compute_program.
2155 * d-lang.c (d_language_data): Delete la_compute_program
2156 initializer.
2157 * f-lang.c (f_language_data): Likewise.
2158 * go-lang.c (go_language_data): Likewise.
2159 * language.c (unknown_language_data): Likewise.
2160 (auto_language_data): Likewise.
2161 * language.h (language_data): Delete la_compute_program field.
2162 (language_defn::compute_program): New member function.
2163 * m2-lang.c (m2_language_data): Delete la_compute_program
2164 initializer.
2165 * objc-lang.c (objc_language_data): Likewise.
2166 * opencl-lang.c (opencl_language_data): Likewise.
2167 * p-lang.c (pascal_language_data): Likewise.
2168 * rust-lang.c (rust_language_data): Likewise.
2169
2170 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2171
2172 * ada-lang.c (ada_language_data) Delete
2173 la_class_name_from_physname initializer.
2174 * c-lang.c (c_language_data): Likewise.
2175 (cplus_language_data): Likewise.
2176 (cplus_language::class_name_from_physname): New member function.
2177 (asm_language_data): Delete la_class_name_from_physname
2178 initializer.
2179 (minimal_language_data): Likewise.
2180 * d-lang.c (d_language_data): Likewise.
2181 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
2182 method on language_defn class.
2183 (guess_full_die_structure_name): Likewise.
2184 * f-lang.c (f_language_data): Delete la_class_name_from_physname
2185 initializer.
2186 * go-lang.c (go_language_data): Likewise.
2187 * language.c (language_class_name_from_physname): Delete.
2188 (unk_lang_class_name): Delete.
2189 (unknown_language_data): Delete la_class_name_from_physname
2190 initializer.
2191 (auto_language_data): Likewise.
2192 * language.h (language_data): Delete la_class_name_from_physname
2193 field.
2194 (language_defn::class_name_from_physname): New function.
2195 (language_class_name_from_physname): Delete declaration.
2196 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
2197 initializer.
2198 * objc-lang.c (objc_language_data): Likewise.
2199 * opencl-lang.c (opencl_language_data): Likewise.
2200 * p-lang.c (pascal_language_data): Likewise.
2201 * rust-lang.c (rust_language_data): Likewise.
2202
2203 2020-06-16 Tom Tromey <tom@tromey.com>
2204
2205 * tui/tui-data.h (STATUS_NAME): New macro.
2206 * tui/tui-layout.c (tui_remove_some_windows)
2207 (initialize_known_windows, tui_register_window)
2208 (tui_layout_split::remove_windows, initialize_layouts)
2209 (tui_new_layout_command): Don't use hard-coded window names.
2210
2211 2020-06-16 Tom Tromey <tom@tromey.com>
2212
2213 PR tui/25348:
2214 * tui/tui.c (tui_ensure_readline_initialized): Rename from
2215 tui_initialize_readline. Only run once. Call rl_initialize.
2216 * tui/tui.h (tui_ensure_readline_initialized): Rename from
2217 tui_initialize_readline.
2218 * tui/tui-io.c (tui_setup_io): Call
2219 tui_ensure_readline_initialized.
2220 * tui/tui-interp.c (tui_interp::init): Update.
2221
2222 2020-06-16 Tom Tromey <tom@tromey.com>
2223
2224 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
2225 Also preserve the status window.
2226
2227 2020-06-16 Tom Tromey <tom@tromey.com>
2228
2229 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
2230 where m_window==nullptr.
2231
2232 2020-06-15 Tom Tromey <tromey@adacore.com>
2233
2234 * windows-nat.c (windows_nat::handle_output_debug_string):
2235 Update.
2236 (windows_nat::handle_ms_vc_exception): Update.
2237 * target.h (target_read_string): Change API.
2238 * target.c (target_read_string): Change API.
2239 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
2240 Update.
2241 * solib-frv.c (frv_current_sos): Update.
2242 * solib-dsbt.c (dsbt_current_sos): Update.
2243 * solib-darwin.c (darwin_current_sos): Update.
2244 * linux-thread-db.c (inferior_has_bug): Update.
2245 * expprint.c (print_subexp_standard): Update.
2246 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
2247 (ada_exception_message_1): Update.
2248
2249 2020-06-15 Tom Tromey <tromey@adacore.com>
2250
2251 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
2252
2253 2020-06-15 Tom Tromey <tromey@adacore.com>
2254
2255 * valprint.c (read_string): Update comment.
2256 * target.c (MIN): Remove.
2257 (target_read_string): Rewrite.
2258
2259 2020-06-15 Tom Tromey <tromey@adacore.com>
2260
2261 * corefile.c (read_memory_string): Remove.
2262 * ada-valprint.c (ada_value_print_ptr): Update.
2263 * ada-lang.h (ada_tag_name): Change return type.
2264 * ada-lang.c (type_from_tag): Update.
2265 (ada_tag_name_from_tsd): Change return type. Use
2266 target_read_string.
2267 (ada_tag_name): Likewise.
2268 * gdbcore.h (read_memory_string): Don't declare.
2269
2270 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
2271
2272 * symtab.c (rbreak_command): Ignore Windows drive colon.
2273
2274 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
2275
2276 * NEWS: Mention removed GDBserver host support.
2277
2278 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
2279
2280 * features/riscv/rebuild-csr-xml.sh: Updated.
2281
2282 2020-06-11 Tom Tromey <tom@tromey.com>
2283
2284 PR gdb/18318:
2285 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
2286
2287 2020-06-09 Jonny Grant <jg@jguk.org>
2288 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
2289
2290 * main.c (captured_main_1): Don't print new line after help.
2291 (print_gdb_help): add mailing list and IRC channel information
2292 to --help. Add new lines between items in the footer. Remove
2293 quotes around bug url.
2294
2295 2020-06-11 Keith Seitz <keiths@redhat.com>
2296
2297 PR gdb/21356
2298 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
2299 Resolve typedefs for type length calculations.
2300
2301 2020-06-10 Tom de Vries <tdevries@suse.de>
2302
2303 PR ada/24713
2304 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
2305 (write_psymbols): Enable .gdb_index for ada.
2306 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
2307 ada.
2308
2309 2020-06-10 Tom de Vries <tdevries@suse.de>
2310
2311 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
2312 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
2313 namei" instead of "const char *name" argument.
2314 (dw2_map_matching_symbols): Use "offset_type namei" variant of
2315 dw2_symtab_iter_init.
2316
2317 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2318
2319 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
2320 to use type::field and field::type instead.
2321
2322 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2323
2324 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
2325 to use field::type instead.
2326
2327 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2328
2329 * gdbtypes.h (struct field) <type, set_type>: New methods.
2330 Rename `type` field to...
2331 <m_type>: ... this. Change references throughout to use type or
2332 set_type methods.
2333 (FIELD_TYPE): Use field::type. Change call sites that modify
2334 the field's type to use field::set_type instead.
2335
2336 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2337
2338 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
2339 to use type::index_type instead.
2340
2341 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2342
2343 * gdbtypes.h (struct type) <index_type, set_index_type>: New
2344 methods.
2345 (TYPE_INDEX_TYPE): Use type::index_type.
2346 * gdbtypes.c (create_array_type_with_stride): Likewise.
2347
2348 2020-06-07 Tom Tromey <tom@tromey.com>
2349
2350 * valprint.c (generic_val_print_float): Remove "embedded_offset"
2351 parameter.
2352 (generic_value_print): Update.
2353
2354 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2355
2356 Revert commit 982a38f60b0.
2357 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
2358
2359 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2360
2361 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
2362 avoid use after free.
2363
2364 2020-06-05 Tom de Vries <tdevries@suse.de>
2365
2366 * NEWS: Fix typos.
2367
2368 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
2369
2370 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
2371 the per_bfd object.
2372 (dwarf2_read_debug_names): Likewise.
2373 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
2374 object when re-using a per_bfd object with an index.
2375
2376 2020-06-03 Tom de Vries <tdevries@suse.de>
2377
2378 PR symtab/26046
2379 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
2380 children for C++.
2381 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
2382 DW_TAG_subprogram.
2383
2384 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2385
2386 * ada-lang.c (ada_language_data): Delete skip_trampoline
2387 initializer.
2388 * c-lang.c (c_language_data): Likewise.
2389 (cplus_language_data): Likewise.
2390 (cplus_language::skip_trampoline): New member function.
2391 (asm_language_data): Delete skip_trampoline initializer.
2392 (minimal_language_data): Likewise.
2393 * d-lang.c (d_language_data): Likewise.
2394 * f-lang.c (f_language_data): Likewise.
2395 * go-lang.c (go_language_data): Likewise.
2396 * language.c (unk_lang_trampoline): Delete function.
2397 (skip_language_trampoline): Update.
2398 (unknown_language_data): Delete skip_trampoline initializer.
2399 (auto_language_data): Likewise.
2400 * language.h (language_data): Delete skip_trampoline field.
2401 (language_defn::skip_trampoline): New function.
2402 * m2-lang.c (m2_language_data): Delete skip_trampoline
2403 initializer.
2404 * objc-lang.c (objc_skip_trampoline): Delete function, move
2405 implementation to objc_language::skip_trampoline.
2406 (objc_language_data): Delete skip_trampoline initializer.
2407 (objc_language::skip_trampoline): New member function with
2408 implementation from objc_skip_trampoline.
2409 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
2410 initializer.
2411 * p-lang.c (pascal_language_data): Likewise.
2412 * rust-lang.c (rust_language_data): Likewise.
2413
2414 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2415
2416 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
2417 (ada_language::demangle): New member function.
2418 * c-lang.c (c_language_data): Delete la_demangle initializer.
2419 (cplus_language_data): Delete la_demangle initializer.
2420 (cplus_language::demangle): New member function.
2421 (asm_language_data): Delete la_demangle initializer.
2422 (minimal_language_data): Delete la_demangle initializer.
2423 * d-lang.c (d_language_data): Delete la_demangle initializer.
2424 (d_language::demangle): New member function.
2425 * f-lang.c (f_language_data): Delete la_demangle initializer.
2426 (f_language::demangle): New member function.
2427 * go-lang.c (go_language_data): Delete la_demangle initializer.
2428 (go_language::demangle): New member function.
2429 * language.c (language_demangle): Update.
2430 (unk_lang_demangle): Delete.
2431 (unknown_language_data): Delete la_demangle initializer.
2432 (unknown_language::demangle): New member function.
2433 (auto_language_data): Delete la_demangle initializer.
2434 (auto_language::demangle): New member function.
2435 * language.h (language_data): Delete la_demangle field.
2436 (language_defn::demangle): New function.
2437 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
2438 * objc-lang.c (objc_language_data): Delete la_demangle
2439 initializer.
2440 (objc_language::demangle): New member function.
2441 * opencl-lang.c (opencl_language_data): Delete la_demangle
2442 initializer.
2443 * p-lang.c (pascal_language_data): Likewise.
2444 * rust-lang.c (rust_language_data): Likewise.
2445 (rust_language::demangle): New member function.
2446
2447 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2448
2449 * ada-lang.c (ada_language_data): Delete la_print_type
2450 initializer.
2451 (ada_language::print_type): New member function.
2452 * c-lang.c (c_language_data): Delete la_print_type initializer.
2453 (c_language::print_type): New member function.
2454 (cplus_language_data): Delete la_print_type initializer.
2455 (cplus_language::print_type): New member function.
2456 (asm_language_data): Delete la_print_type initializer.
2457 (asm_language::print_type): New member function.
2458 (minimal_language_data): Delete la_print_type initializer.
2459 (minimal_language::print_type): New member function.
2460 * d-lang.c (d_language_data): Delete la_print_type initializer.
2461 (d_language::print_type): New member function.
2462 * f-lang.c (f_language_data): Delete la_print_type initializer.
2463 (f_language::print_type): New member function.
2464 * go-lang.c (go_language_data): Delete la_print_type initializer.
2465 (go_language::print_type): New member function.
2466 * language.c (unk_lang_print_type): Delete.
2467 (unknown_language_data): Delete la_print_type initializer.
2468 (unknown_language::print_type): New member function.
2469 (auto_language_data): Delete la_print_type initializer.
2470 (auto_language::print_type): New member function.
2471 * language.h (language_data): Delete la_print_type field.
2472 (language_defn::print_type): New function.
2473 (LA_PRINT_TYPE): Update.
2474 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
2475 (m2_language::print_type): New member function.
2476 * objc-lang.c (objc_language_data): Delete la_print_type
2477 initializer.
2478 (objc_language::print_type): New member function.
2479 * opencl-lang.c (opencl_print_type): Delete, implementation moved
2480 to opencl_language::print_type.
2481 (opencl_language_data): Delete la_print_type initializer.
2482 (opencl_language::print_type): New member function, implementation
2483 from opencl_print_type.
2484 * p-lang.c (pascal_language_data): Delete la_print_type
2485 initializer.
2486 (pascal_language::print_type): New member function.
2487 * rust-lang.c (rust_print_type): Delete, implementation moved to
2488 rust_language::print_type.
2489 (rust_language_data): Delete la_print_type initializer.
2490 (rust_language::print_type): New member function, implementation
2491 from rust_print_type.
2492
2493 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2494
2495 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
2496 implementation moves to...
2497 (ada_language::sniff_from_mangled_name): ...here. Update return
2498 type.
2499 (ada_language_data): Delete la_sniff_from_mangled_name
2500 initializer.
2501 * c-lang.c (c_language_data): Likewise.
2502 (cplus_language_data): Likewise.
2503 (cplus_language::sniff_from_mangled_name): New member function,
2504 implementation taken from gdb_sniff_from_mangled_name.
2505 (asm_language_data): Delete la_sniff_from_mangled_name
2506 initializer.
2507 (minimal_language_data): Likewise.
2508 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
2509 implementation moves to cplus_language::sniff_from_mangled_name.
2510 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
2511 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
2512 moves to...
2513 (d_language::sniff_from_mangled_name): ...here.
2514 (d_language_data): Delete la_sniff_from_mangled_name initializer.
2515 * f-lang.c (f_language_data): Likewise.
2516 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
2517 moves to...
2518 (go_language::sniff_from_mangled_name): ...here.
2519 (go_language_data): Delete la_sniff_from_mangled_name initializer.
2520 * language.c (language_sniff_from_mangled_name): Delete.
2521 (unknown_language_data): Delete la_sniff_from_mangled_name
2522 initializer.
2523 (auto_language_data): Likewise.
2524 * language.h (language_data): Delete la_sniff_from_mangled_name
2525 field.
2526 (language_defn::sniff_from_mangled_name): New function.
2527 (language_sniff_from_mangled_name): Delete declaration.
2528 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
2529 field.
2530 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
2531 implementation moves to...
2532 (objc_language::sniff_from_mangled_name): ...here.
2533 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
2534 * opencl-lang.c (opencl_language_data): Likewise.
2535 * p-lang.c (pascal_language_data): Likewise.
2536 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
2537 implementation moves to...
2538 (rust_language::sniff_from_mangled_name): ...here.
2539 (rust_language_data): Delete la_sniff_from_mangled_name
2540 initializer.
2541 * symtab.c (symbol_find_demangled_name): Call
2542 sniff_from_mangled_name member function.
2543
2544 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2545
2546 * ada-lang.c (ada_language_data): Delete la_search_name_hash
2547 initializer.
2548 * c-lang.c (c_language_data): Likewise.
2549 (cplus_language_data): Likewise.
2550 (cplus_language::search_name_hash): New member function.
2551 (asm_language_data): Delete la_search_name_hash initializer.
2552 (minimal_language_data): Likewise.
2553 * d-lang.c (d_language_data): Likewise.
2554 * dictionary.c (default_search_name_hash): Rename to...
2555 (language_defn::search_name_hash): ...this.
2556 * f-lang.c (f_language_data): Likewise.
2557 (f_language::search_name_hash): New member function.
2558 * go-lang.c (go_language_data): Delete la_search_name_hash
2559 initializer.
2560 * language.c (unknown_language_data): Likewise.
2561 (auto_language_data): Likewise.
2562 * language.h (struct language_data): Delete la_search_name_hash
2563 field.
2564 (language_defn::search_name_hash): Declare new member function.
2565 (default_search_name_hash): Delete declaration.
2566 * m2-lang.c (m2_language_data): Delete la_search_name_hash
2567 initializer.
2568 * objc-lang.c (objc_language_data): Likewise.
2569 * opencl-lang.c (opencl_language_data): Likewise.
2570 * p-lang.c (pascal_language_data): Likewise.
2571 * rust-lang.c (rust_language_data): Likewise.
2572 * symtab.c (search_name_hash): Update call.
2573
2574 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2575
2576 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
2577 initializer.
2578 * c-lang.c (class compile_instance): Declare.
2579 (c_language_data): Delete la_get_compile_instance initializer.
2580 (c_language::get_compile_instance): New member function.
2581 (cplus_language_data): Delete la_get_compile_instance initializer.
2582 (cplus_language::get_compile_instance): New member function.
2583 (asm_language_data): Delete la_get_compile_instance initializer.
2584 (minimal_language_data): Likewise.
2585 * c-lang.h (c_get_compile_context): Update comment.
2586 (cplus_get_compile_context): Update comment.
2587 * compile/compile.c (compile_to_object): Update calls, don't rely
2588 on function pointer being NULL.
2589 * d-lang.c (d_language_data): Delete la_get_compile_instance
2590 initializer.
2591 * f-lang.c (f_language_data): Likewise.
2592 * go-lang.c (go_language_data): Likewise.
2593 * language.c (unknown_language_data): Likewise.
2594 (auto_language_data): Likewise.
2595 * language.h (language_data): Delete la_get_compile_instance field.
2596 (language_defn::get_compile_instance): New member function.
2597 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
2598 initializer.
2599 * objc-lang.c (objc_language_data): Likewise.
2600 * opencl-lang.c (opencl_language_data): Likewise.
2601 * p-lang.c (pascal_language_data): Likewise.
2602 * rust-lang.c (rust_language_data): Likewise.
2603
2604 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2605
2606 * ada-lang.c (ada_add_all_symbols): Update comment.
2607 (ada_iterate_over_symbols): Delete, move implementation to...
2608 (ada_language::iterate_over_symbols): ...here, a new member
2609 function, rewrite to use range based for loop.
2610 (ada_language_data): Delete la_iterate_over_symbols initializer.
2611 * c-lang.c (c_language_data): Likewise.
2612 (cplus_language_data): Likewise.
2613 (asm_language_data): Likewise.
2614 (minimal_language_data): Likewise.
2615 * d-lang.c (d_language_data): Likewise.
2616 * f-lang.c (f_language_data): Likewise.
2617 * go-lang.c (go_language_data): Likewise.
2618 * language.c (unknown_language_data): Likewise.
2619 (auto_language_data): Likewise.
2620 * language.h (language_data): Delete la_iterate_over_symbols field.
2621 (language_defn::iterate_over_symbols): New member function.
2622 (LA_ITERATE_OVER_SYMBOLS): Update.
2623 * linespec.c (iterate_over_all_matching_symtabs): Update.
2624 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
2625 initializer.
2626 * objc-lang.c (objc_language_data): Likewise.
2627 * opencl-lang.c (opencl_language_data): Likewise.
2628 * p-lang.c (pascal_language_data): Likewise.
2629 * rust-lang.c (rust_language_data): Likewise.
2630
2631 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2632
2633 * ada-lang.c (ada_language_data): Delete
2634 la_lookup_transparent_type initializer.
2635 * c-lang.c (c_language_data): Likewise.
2636 (cplus_language_data): Likewise.
2637 (cplus_language::lookup_transparent_type): New member function.
2638 (asm_language_data): Delete la_lookup_transparent_type
2639 initializer.
2640 (minimal_language_data): Likewise.
2641 * d-lang.c (d_language_data): Likewise.
2642 * f-lang.c (f_language_data): Likewise.
2643 * go-lang.c (go_language_data): Likewise.
2644 * language.c (unknown_language_data): Likewise.
2645 (auto_language_data): Likewise.
2646 * language.h (struct language_data): Delete
2647 la_lookup_transparent_type field.
2648 (language_defn::lookup_transparent_type): New member function.
2649 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
2650 initializer.
2651 * objc-lang.c (objc_language_data): Likewise.
2652 * opencl-lang.c (opencl_language_data): Likewise.
2653 * p-lang.c (pascal_language_data): Likewise.
2654 * rust-lang.c (rust_language_data): Likewise.
2655 * symtab.c (symbol_matches_domain): Update call.
2656
2657 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2658
2659 * ada-lang.c (ada_language_arch_info): Delete function, move
2660 implementation to...
2661 (ada_language::language_arch_info): ...here, a new member
2662 function.
2663 (ada_language_data): Delete la_language_arch_info.
2664 * c-lang.c (c_language_data): Likewise.
2665 (c_language::language_arch_info): New member function.
2666 (cplus_language_arch_info): Delete function, move
2667 implementation to...
2668 (cplus_language::language_arch_info): ...here, a new member
2669 function.
2670 (cplus_language_data): Delete la_language_arch_info.
2671 (asm_language_data): Likewise.
2672 (asm_language::language_arch_info): New member function.
2673 (minimal_language_data): Delete la_language_arch_info.
2674 (minimal_language::language_arch_info): New member function.
2675 * d-lang.c (d_language_arch_info): Delete function, move
2676 implementation to...
2677 (d_language::language_arch_info): ...here, a new member
2678 function.
2679 (d_language_data): Delete la_language_arch_info.
2680 * f-lang.c (f_language_arch_info): Delete function, move
2681 implementation to...
2682 (f_language::language_arch_info): ...here, a new member
2683 function.
2684 (f_language_data): Delete la_language_arch_info.
2685 * go-lang.c (go_language_arch_info): Delete function, move
2686 implementation to...
2687 (go_language::language_arch_info): ...here, a new member
2688 function.
2689 (go_language_data): Delete la_language_arch_info.
2690 * language.c (unknown_language_data): Likewise.
2691 (unknown_language::language_arch_info): New member function.
2692 (auto_language_data): Delete la_language_arch_info.
2693 (auto_language::language_arch_info): New member function.
2694 (language_gdbarch_post_init): Update call to
2695 la_language_arch_info.
2696 * language.h (language_data): Delete la_language_arch_info
2697 function pointer.
2698 (language_defn::language_arch_info): New function.
2699 * m2-lang.c (m2_language_arch_info): Delete function, move
2700 implementation to...
2701 (m2_language::language_arch_info): ...here, a new member
2702 function.
2703 (m2_language_data): Delete la_language_arch_info.
2704 * objc-lang.c (objc_language_arch_info): Delete function, move
2705 implementation to...
2706 (objc_language::language_arch_info): ...here, a new member
2707 function.
2708 (objc_language_data): Delete la_language_arch_info.
2709 * opencl-lang.c (opencl_language_arch_info): Delete function, move
2710 implementation to...
2711 (opencl_language::language_arch_info): ...here, a new member
2712 function.
2713 (opencl_language_data): Delete la_language_arch_info.
2714 * p-lang.c (pascal_language_arch_info): Delete function, move
2715 implementation to...
2716 (pascal_language::language_arch_info): ...here, a new member
2717 function.
2718 (pascal_language_data): Delete la_language_arch_info.
2719 * rust-lang.c (rust_language_arch_info): Delete function, move
2720 implementation to...
2721 (rust_language::language_arch_info): ...here, a new member
2722 function.
2723 (rust_language_data): Delete la_language_arch_info.
2724
2725 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2726
2727 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
2728 initializer.
2729 * c-lang.c (c_language_data): Likewise.
2730 (cplus_language_data): Likewise.
2731 (cplus_language::pass_by_reference_info): New method.
2732 (asm_language_data): Delete la_pass_by_reference initializer.
2733 (minimal_language_data): Likewise.
2734 * cp-abi.c (cp_pass_by_reference): Remove use of
2735 default_pass_by_reference.
2736 * d-lang.c (d_language_data): Likewise.
2737 * f-lang.c (f_language_data): Likewise.
2738 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
2739 default_pass_by_reference.
2740 * go-lang.c (go_language_data): Likewise.
2741 * language.c (language_pass_by_reference): Update.
2742 (default_pass_by_reference): Delete.
2743 (unknown_language_data): Delete la_pass_by_reference
2744 initializer.
2745 (auto_language_data): Likewise.
2746 * language.h (struct language_data): Delete la_pass_by_reference
2747 field.
2748 (language_defn::pass_by_reference_info): New member function.
2749 (default_pass_by_reference): Delete declaration.
2750 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
2751 initializer.
2752 * objc-lang.c (objc_language_data): Likewise.
2753 * opencl-lang.c (opencl_language_data): Likewise.
2754 * p-lang.c (pascal_language_data): Likewise.
2755 * rust-lang.c (rust_language_data): Likewise.
2756
2757 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2758
2759 * ada-lang.c (ada_read_var_value): Delete function, move
2760 implementation to...
2761 (ada_language::read_var_value): ...here.
2762 (ada_language_data): Delete la_read_var_value initializer.
2763 * c-lang.c (c_language_data): Likewise.
2764 (cplus_language_data): Likewise.
2765 (minimal_language_data): Likewise.
2766 * d-lang.c (d_language_data): Likewise.
2767 * f-lang.c (f_language_data): Likewise.
2768 * findvar.c (default_read_var_value): Rename to...
2769 (language_defn::read_var_value): ...this.
2770 * findvar.c (read_var_value): Update header comment, and change to
2771 call member function instead of function pointer.
2772 * go-lang.c (go_language_data): Likewise.
2773 * language.c (unknown_language_data): Delete la_read_var_value
2774 initializer.
2775 (auto_language_data): Likewise.
2776 * language.h (struct language_data): Delete la_read_var_value
2777 field.
2778 (language_defn::read_var_value): New member function.
2779 (default_read_var_value): Delete declaration.
2780 * m2-lang.c (m2_language_data): Delete la_read_var_value
2781 initializer.
2782 * objc-lang.c (objc_language_data): Likewise.
2783 * opencl-lang.c (opencl_language_data): Likewise.
2784 * p-lang.c (pascal_language_data): Likewise.
2785 * rust-lang.c (rust_language_data): Likewise.
2786 * value.h (default_read_var_value): Delete declaration.
2787
2788 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2789
2790 * ada-lang.c (ada_print_array_index): Delete function, move
2791 implementation to...
2792 (ada_language::print_array_index): ...here.
2793 (ada_language_data): Delete la_print_array_index initializer.
2794 * c-lang.c (c_language_data): Likewise.
2795 (cplus_language_data): Likewise.
2796 (minimal_language_data): Likewise.
2797 * d-lang.c (d_language_data): Likewise.
2798 * f-lang.c (f_language_data): Likewise.
2799 * go-lang.c (go_language_data): Likewise.
2800 * language.c (default_print_array_index): Delete function, move
2801 implementation to...
2802 (language_defn::print_array_index): ...here.
2803 (unknown_language_data): Delete la_print_array_index initializer.
2804 (auto_language_data): Likewise.
2805 * language.h (struct language_data): Delete la_print_array_index
2806 field.
2807 (language_defn::print_array_index): New member function.
2808 (LA_PRINT_ARRAY_INDEX): Update.
2809 (default_print_array_index): Delete declaration.
2810 * m2-lang.c (m2_language_data): Delete la_print_array_index
2811 initializer.
2812 * objc-lang.c (objc_language_data): Likewise.
2813 * opencl-lang.c (opencl_language_data): Likewise.
2814 * p-lang.c (pascal_language_data): Likewise.
2815 * rust-lang.c (rust_language_data): Likewise.
2816
2817 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2818
2819 * gdb/ada-lang.c (ada_language_defn): Convert to...
2820 (ada_language_data): ...this.
2821 (class ada_language): New class.
2822 (ada_language_defn): New static global.
2823 * gdb/c-lang.c (c_language_defn): Convert to...
2824 (c_language_data): ...this.
2825 (class c_language): New class.
2826 (c_language_defn): New static global.
2827 (cplus_language_defn): Convert to...
2828 (cplus_language_data): ...this.
2829 (class cplus_language): New class.
2830 (cplus_language_defn): New static global.
2831 (asm_language_defn): Convert to...
2832 (asm_language_data): ...this.
2833 (class asm_language): New class.
2834 (asm_language_defn): New static global.
2835 (minimal_language_defn): Convert to...
2836 (minimal_language_data): ...this.
2837 (class minimal_language): New class.
2838 (minimal_language_defn): New static global.
2839 * gdb/d-lang.c (d_language_defn): Convert to...
2840 (d_language_data): ...this.
2841 (class d_language): New class.
2842 (d_language_defn): New static global.
2843 * gdb/f-lang.c (f_language_defn): Convert to...
2844 (f_language_data): ...this.
2845 (class f_language): New class.
2846 (f_language_defn): New static global.
2847 * gdb/go-lang.c (go_language_defn): Convert to...
2848 (go_language_data): ...this.
2849 (class go_language): New class.
2850 (go_language_defn): New static global.
2851 * gdb/language.c (unknown_language_defn): Remove declaration.
2852 (current_language): Initialize to nullptr, real initialization is
2853 moved to _initialize_language.
2854 (languages): Delete global.
2855 (language_defn::languages): Define.
2856 (set_language_command): Use language_defn::languages.
2857 (set_language): Likewise.
2858 (range_error): Likewise.
2859 (language_enum): Likewise.
2860 (language_def): Likewise.
2861 (add_set_language_command): Use language_def::languages for the
2862 language list, and language_def to lookup language pointers.
2863 (skip_language_trampoline): Use language_defn::languages.
2864 (unknown_language_defn): Convert to...
2865 (unknown_language_data): ...this.
2866 (class unknown_language): New class.
2867 (unknown_language_defn): New static global.
2868 (auto_language_defn): Convert to...
2869 (auto_language_data): ...this.
2870 (class auto_language): New class.
2871 (auto_language_defn): New static global.
2872 (language_gdbarch_post_init): Use language_defn::languages.
2873 (_initialize_language): Initialize current_language.
2874 * gdb/language.h (struct language_defn): Rename to...
2875 (struct language_data): ...this.
2876 (struct language_defn): New.
2877 (auto_language_defn): Delete.
2878 (unknown_language_defn): Delete.
2879 (minimal_language_defn): Delete.
2880 (ada_language_defn): Delete.
2881 (asm_language_defn): Delete.
2882 (c_language_defn): Delete.
2883 (cplus_language_defn): Delete.
2884 (d_language_defn): Delete.
2885 (f_language_defn): Delete.
2886 (go_language_defn): Delete.
2887 (m2_language_defn): Delete.
2888 (objc_language_defn): Delete.
2889 (opencl_language_defn): Delete.
2890 (pascal_language_defn): Delete.
2891 (rust_language_defn): Delete.
2892 * gdb/m2-lang.c (m2_language_defn): Convert to...
2893 (m2_language_data): ...this.
2894 (class m2_language): New class.
2895 (m2_language_defn): New static global.
2896 * gdb/objc-lang.c (objc_language_defn): Convert to...
2897 (objc_language_data): ...this.
2898 (class objc_language): New class.
2899 (objc_language_defn): New static global.
2900 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
2901 (opencl_language_data): ...this.
2902 (class opencl_language): New class.
2903 (opencl_language_defn): New static global.
2904 * gdb/p-lang.c (pascal_language_defn): Convert to...
2905 (pascal_language_data): ...this.
2906 (class pascal_language): New class.
2907 (pascal_language_defn): New static global.
2908 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
2909 language pointer, update comment format.
2910 * gdb/rust-lang.c (rust_language_defn): Convert to...
2911 (rust_language_data): ...this.
2912 (class rust_language): New class.
2913 (rust_language_defn): New static global.
2914
2915 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
2916
2917 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
2918 member variable.
2919 <m_stmt_at_address>: New member variable.
2920 (lnp_state_machine::record_line): Don't record some lines, update
2921 tracking of is_stmt at the same address.
2922 (lnp_state_machine::lnp_state_machine): Initialise new member
2923 variables.
2924
2925 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
2926
2927 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
2928 "-include gnu-nat-mig.h".
2929 * gnu-nat-mig.h: New file.
2930 * gnu-nat.c: Include "gnu-nat-mig.h".
2931 (exc_server, msg_reply_server, notify_server,
2932 process_reply_server): Remove declarations.
2933
2934 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2935
2936 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
2937 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
2938 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
2939 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
2940 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
2941 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
2942 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
2943 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
2944 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
2945 to gnu_nat_target class.
2946 * gnu-nat.c: Likewise.
2947 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
2948 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
2949 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
2950 object.
2951 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
2952 instead of `gnu_target'.
2953
2954 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2955
2956 * i386-gnu-tdep.c: Include "gdbcore.h"
2957 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
2958 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
2959 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
2960 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
2961 i386_gnu_sigcontext_addr): New functions
2962 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
2963 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
2964 tdep.
2965
2966 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2967
2968 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
2969 before fork_inferior call. Avoid calling it if target_is_pushed returns
2970 true.
2971
2972 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2973
2974 * gnu-nat.h (gnu_target): New variable declaration.
2975 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
2976 gnu_target.
2977 * gnu-nat.c (gnu_target): New variable.
2978 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
2979 add_thread_silent, and add_thread calls.
2980 (gnu_nat_target::create_inferior): Pass gnu_target to
2981 add_thread_silent, thread_change_ptid call.
2982 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
2983 call.
2984
2985 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2986
2987 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
2988 (gnu_nat_target::find_memory_regions): Remove unused
2989 `old_address' variable.
2990
2991 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2992
2993 * gnu-nat.c: Include "gdbarch.h".
2994
2995 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2996
2997 * reply_mig_hack.awk (Error return): Cast function through
2998 void *, to bypass compiler function call check.
2999
3000 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3001
3002 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
3003 $(srcdir)/reply_mig_hack.awk.
3004
3005 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3006
3007 * gnu-nat.h (gnu_debug_flag): Set type to bool.
3008
3009 2020-05-30 Jonny Grant <jg@jguk.org>
3010
3011 * configure.ac (ACX_BUGURL): change bug URL to https.
3012
3013 2020-05-30 Pedro Alves <palves@redhat.com>
3014
3015 * cp-support.c (replace_typedefs_template): New.
3016 (replace_typedefs_qualified_name): Handle
3017 DEMANGLE_COMPONENT_TEMPLATE.
3018
3019 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
3020
3021 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
3022 dwarf2/index-cache.h, dwarf2/index-write.c,
3023 dwarf2/index-write.h, dwarf2/line-header.c,
3024 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
3025 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
3026 variables and fields from `dwarf2_per_objfile` to just
3027 `per_objfile` throughout.
3028
3029 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
3030
3031 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3032 <push_dwarf_reg_entry_value>: Add comment.
3033
3034 2020-05-28 Kevin Buettner <kevinb@redhat.com>
3035 Keith Seitz <keiths@redhat.com>
3036
3037 * python/python.c (do_start_initialization): Call PyEval_SaveThread
3038 instead of PyEval_ReleaseLock.
3039 (class gdbpy_gil): Move to earlier in file.
3040 (finalize_python): Set gdb_python_initialized.
3041 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
3042 when not initialized.
3043
3044 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
3045
3046 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3047 <push_dwarf_reg_entry_value>: Remove assert. Override
3048 per_objfile with caller_per_objfile.
3049
3050 2020-05-28 Tom de Vries <tdevries@suse.de>
3051
3052 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
3053 PR gold/15646 workaround to symbol kind "type".
3054
3055 2020-05-27 Tom Tromey <tromey@adacore.com>
3056
3057 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
3058
3059 2020-05-27 Tom Tromey <tromey@adacore.com>
3060
3061 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
3062 Use htab_find_with_hash.
3063 <add_abbrev>: Remove "abbrev_number" parameter.
3064 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
3065 "abbrev_number" parameter. Use htab_find_slot_with_hash.
3066 (hash_abbrev): Add comment.
3067 (abbrev_table::lookup_abbrev): Move to header file.
3068 (abbrev_table::read): Update.
3069
3070 2020-05-27 Tom Tromey <tromey@adacore.com>
3071
3072 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
3073 method.
3074 <canonical_name>: New member.
3075 <raw_name>: Rename from "name".
3076 (partial_die_info): Initialize canonical_name.
3077 (scan_partial_symbols): Check raw_name.
3078 (partial_die_parent_scope, partial_die_full_name)
3079 (add_partial_symbol, add_partial_subprogram)
3080 (add_partial_enumeration, load_partial_dies): Use "name" method.
3081 (partial_die_info::name): New method.
3082 (partial_die_info::read, guess_partial_die_structure_name)
3083 (partial_die_info::fixup): Update.
3084
3085 2020-05-27 Tom Tromey <tromey@adacore.com>
3086
3087 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
3088 <get_ref_die_offset>: Inline.
3089 <get_ref_die_offset_complaint>: New method.
3090 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
3091 (attribute::get_ref_die_offset_complaint): Rename from
3092 get_ref_die_offset. Just issue complaint.
3093
3094 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
3095
3096 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
3097
3098 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
3099
3100 * exec.c (exec_file_attach): Use errno value of first openp failure.
3101
3102 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
3103
3104 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
3105 Don't close thread handle.
3106
3107 2020-05-27 Tom Tromey <tom@tromey.com>
3108 Simon Marchi <simon.marchi@efficios.com>
3109
3110 * objfiles.h (struct objfile) <partial_symtabs>: Now a
3111 shared_ptr.
3112 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
3113 member.
3114 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
3115 dwarf2_per_bfd_objfile_data_key>: New globals.
3116 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
3117 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
3118 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
3119 shared.
3120 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
3121 short-circuit when sharing.
3122 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
3123 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
3124
3125 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3126
3127 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
3128 to...
3129 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
3130 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
3131
3132 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3133
3134 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
3135 build_name_components, find_name_components_bounds>:
3136 Add per_objfile parameter.
3137 (struct mapped_index) <symbol_name_at>: Likewise.
3138 (struct mapped_debug_names): Remove constructor.
3139 <dwarf2_per_objfile>: Remove field.
3140 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
3141 (mapped_index_base::find_name_components_bounds,
3142 mapped_index_base::build_name_components,
3143 dw2_expand_symtabs_matching_symbol): Likewise.
3144 (class mock_mapped_index) <symbol_name_at>: Likewise.
3145 (check_match): Likewise.
3146 (check_find_bounds_finds): Likewise.
3147 (test_mapped_index_find_name_component_bounds): Update.
3148 (CHECK_MATCH): Update.
3149 (dw2_expand_symtabs_matching): Update.
3150 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
3151 per_objfile parameter.
3152 <find_vec_in_debug_names>: Likewise.
3153 <m_per_objfile>: New field.
3154 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
3155 parameter.
3156 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
3157 (dw2_debug_names_iterator::next): Update.
3158 (dw2_debug_names_lookup_symbol): Update.
3159 (dw2_debug_names_expand_symtabs_for_function): Update.
3160 (dw2_debug_names_map_matching_symbols): Update.
3161 (dw2_debug_names_expand_symtabs_matching): Update.
3162 (dwarf2_read_debug_names): Update.
3163
3164 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3165
3166 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
3167 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
3168 move to dwarf2_per_objfile.
3169 <read_in_chain>: Remove.
3170 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
3171 remove_all_cus, age_comp_units>: New methods.
3172 <m_dwarf2_cus>: New member.
3173 (struct dwarf2_per_cu_data) <cu>: Remove.
3174 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
3175 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
3176 moved to methods of dwarf2_per_objfile.
3177 (dwarf2_clear_marks): Remove.
3178 (dwarf2_queue_item::~dwarf2_queue_item): Update.
3179 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
3180 (dwarf2_per_bfd::free_cached_comp_units): Remove.
3181 (dwarf2_per_objfile::remove_all_cus): New.
3182 (class free_cached_comp_units) <~free_cached_comp_units>:
3183 Update.
3184 (load_cu): Update.
3185 (dw2_do_instantiate_symtab): Adjust.
3186 (fill_in_sig_entry_from_dwo_entry): Adjust.
3187 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3188 (cutu_reader::cutu_reader): Likewise.
3189 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
3190 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
3191 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
3192 and dwarf2_per_objfile::age_comp_units.
3193 (load_partial_comp_unit): Update.
3194 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
3195 (process_queue): Likewise.
3196 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
3197 backlink.
3198 (dwarf2_read_addr_index): Likewise.
3199 (follow_die_offset): Likewise.
3200 (dwarf2_fetch_die_loc_sect_off): Likewise.
3201 (dwarf2_fetch_constant_bytes): Likewise.
3202 (dwarf2_fetch_die_type_sect_off): Likewise.
3203 (follow_die_sig_1): Likewise.
3204 (load_full_type_unit): Likewise.
3205 (read_signatured_type): Likewise.
3206 (dwarf2_cu::dwarf2_cu): Don't set cu field.
3207 (dwarf2_cu::~dwarf2_cu): Remove.
3208 (dwarf2_per_objfile::get_cu): New.
3209 (dwarf2_per_objfile::set_cu): New.
3210 (age_cached_comp_units): Rename to...
3211 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
3212 to std::unordered_map.
3213 (free_one_cached_comp_unit): Rename to...
3214 (dwarf2_per_objfile::remove_cu): ... this. Adjust
3215 to std::unordered_map.
3216 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
3217 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
3218 a dwarf2_per_objfile in data.
3219 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
3220 (dwarf2_clear_marks): Remove.
3221
3222 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3223
3224 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
3225 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
3226 (init_tu_and_read_dwo_dies): Likewise.
3227 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
3228 (cutu_reader::cutu_reader): Likewise.
3229 (load_partial_comp_unit): Likewise.
3230 (process_psymtab_comp_unit): Update.
3231 (build_type_psymtabs_1): Update.
3232 (process_skeletonless_type_unit): Update.
3233 (load_full_comp_unit): Update.
3234 (find_partial_die): Update.
3235 (dwarf2_read_addr_index): Update.
3236 (read_signatured_type): Update.
3237
3238 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3239
3240 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
3241 m_header_read_in>: New fields.
3242 <get_header>: New method.
3243 * dwarf2/read.c (per_cu_header_read_in): Remove.
3244 (dwarf2_per_cu_data::get_header): New.
3245 (dwarf2_per_cu_data::addr_size): Update.
3246 (dwarf2_per_cu_data::offset_size): Update.
3247 (dwarf2_per_cu_data::ref_addr_size): Update.
3248
3249 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3250
3251 * dwarf2/read.c (load_cu): Return dwarf2_cu.
3252 (dw2_do_instantiate_symtab): Update.
3253 (queue_and_load_all_dwo_tus): Change parameter from
3254 dwarf2_per_cu_data to dwarf2_cu.
3255 (dwarf2_fetch_die_loc_sect_off): Update.
3256 (dwarf2_fetch_constant_bytes): Update.
3257 (dwarf2_fetch_die_type_sect_off): Update.
3258
3259 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3260
3261 * dwarf2/read.c (process_full_comp_unit,
3262 process_full_type_unit): Remove per_cu, per_objfile paramters.
3263 Add dwarf2_cu parameter.
3264 (process_queue): Update.
3265
3266 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3267
3268 * dwarf2/read.c (create_cu_from_index_list): Replace
3269 dwarf2_per_objfile parameter with dwarf2_per_bfd.
3270 (create_cus_from_index_list): Likewise.
3271 (create_cus_from_index): Likewise.
3272 (create_signatured_type_table_from_index): Likewise.
3273 (create_cus_from_debug_names_list): Likewise.
3274 (create_cus_from_debug_names): Likewise.
3275 (dwarf2_read_gdb_index): Update.
3276 (dwarf2_read_debug_names): Update.
3277
3278 2020-05-27 Tom Tromey <tom@tromey.com>
3279 Simon Marchi <simon.marchi@efficios.com>
3280
3281 * dwarf2/read.h (struct dwarf2_per_objfile)
3282 <get_type_for_signatured_type, set_type_for_signatured_type>:
3283 New methods.
3284 <m_type_map>: New member.
3285 (struct signatured_type) <type>: Remove.
3286 * dwarf2/read.c
3287 (dwarf2_per_objfile::get_type_for_signatured_type,
3288 dwarf2_per_objfile::set_type_for_signatured_type): New.
3289 (get_signatured_type): Use new methods.
3290
3291 2020-05-27 Tom Tromey <tom@tromey.com>
3292 Simon Marchi <simon.marchi@efficios.com>
3293
3294 * dwarf2/read.h (struct type_unit_group_unshareable): New.
3295 (struct dwarf2_per_objfile) <type_units>: New member.
3296 <get_type_unit_group_unshareable>: New method.
3297 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
3298 num_symtabs, symtabs>: Remove; move to
3299 type_unit_group_unshareable.
3300 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
3301 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
3302 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
3303
3304 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3305
3306 * dwarf2/read.h (struct dwarf2_per_cu_data):
3307 <dwarf2_per_objfile>: Remove.
3308 * dwarf2/read.c (create_cu_from_index_list): Don't assign
3309 dwarf2_per_objfile.
3310 (create_signatured_type_table_from_index): Likewise.
3311 (create_signatured_type_table_from_debug_names): Likewise.
3312 (create_debug_type_hash_table): Likewise.
3313 (fill_in_sig_entry_from_dwo_entry): Likewise.
3314 (create_type_unit_group): Likewise.
3315 (read_comp_units_from_section): Likewise.
3316 (create_cus_hash_table): Likewise.
3317
3318 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3319
3320 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
3321 dwarf2_per_cu_data::dwarf2_per_objfile.
3322 (compute_compunit_symtab_includes): Likewise.
3323 (dwarf2_cu::start_symtab): Likewise.
3324
3325 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3326
3327 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
3328 parameter.
3329 * dwarf2/read.c (get_die_type_at_offset): Likewise.
3330 (read_namespace_alias): Update.
3331 (lookup_die_type): Update.
3332 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
3333 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
3334 Update.
3335 (disassemble_dwarf_expression): Update.
3336
3337 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3338
3339 * dwarf2/read.h (struct dwarf2_queue_item): Add
3340 dwarf2_per_objfile parameter, assign new parameter.
3341 <per_objfile>: New field.
3342 * dwarf2/read.c (free_one_cached_comp_unit): Add
3343 dwarf2_per_objfile parameter.
3344 (queue_comp_unit): Likewise.
3345 (dw2_do_instantiate_symtab): Update.
3346 (process_psymtab_comp_unit): Update.
3347 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
3348 (process_imported_unit_die): Update.
3349 (queue_and_load_dwo_tu): Update.
3350 (follow_die_offset): Update.
3351 (follow_die_sig_1): Update.
3352
3353 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3354
3355 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
3356 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
3357 (read_call_site_scope): Assign per_objfile.
3358 (dwarf2_per_cu_data::objfile): Remove.
3359 * gdbtypes.h (struct call_site) <per_objfile>: New member.
3360 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
3361 dwarf2_per_objfile parameter.
3362 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
3363 dwarf2_per_objfile parameter.
3364 (dwarf_expr_reg_to_entry_parameter): Add output
3365 dwarf2_per_objfile parameter.
3366 (locexpr_get_frame_base): Update.
3367 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
3368 <push_dwarf_reg_entry_value>: Update.
3369 <call_site_to_target_addr>: Update.
3370 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
3371 parameter.
3372 (value_of_dwarf_reg_entry): Update.
3373 (rw_pieced_value): Update.
3374 (indirect_synthetic_pointer): Update.
3375 (dwarf2_evaluate_property): Update.
3376 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
3377 parameter.
3378 (locexpr_read_variable): Update.
3379 (locexpr_get_symbol_read_needs): Update.
3380 (loclist_read_variable): Update.
3381
3382 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3383
3384 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
3385 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3386 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
3387 parameter.
3388 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
3389 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3390 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
3391 parameter.
3392 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
3393 sect_variable_value): Add dwarf2_per_objfile parameter.
3394 (class dwarf_evaluate_loc_desc) <dwarf_call,
3395 dwarf_variable_value>: Update.
3396 (fetch_const_value_from_synthetic_pointer): Add
3397 dwarf2_per_objfile parameter.
3398 (fetch_const_value_from_synthetic_pointer): Update.
3399 (coerced_pieced_ref): Update.
3400 (class symbol_needs_eval_context) <dwarf_call,
3401 dwarf_variable_value>: Update.
3402 (dwarf2_compile_expr_to_ax): Update.
3403
3404 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3405
3406 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
3407 parameter.
3408 (dwarf2_evaluate_loc_desc_full): Update.
3409
3410 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3411
3412 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
3413 parameter.
3414 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
3415 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
3416 dwarf2_per_objfile parameter.
3417 (decode_debug_loc_dwo_addresses): Likewise.
3418 (dwarf2_find_location_expression): Update.
3419 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
3420 (locexpr_describe_location_piece): Add dwarf2_per_objfile
3421 parameter.
3422 (disassemble_dwarf_expression): Add dwarf2_per_objfile
3423 parameter.
3424 (locexpr_describe_location_1): Likewise.
3425 (locexpr_describe_location): Update.
3426
3427 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3428
3429 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
3430 Remove.
3431 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
3432 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
3433 (dwarf2_compile_property_to_c): Update.
3434 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
3435 use text offset from objfile.
3436 (locexpr_tracepoint_var_ref): Update.
3437 (locexpr_generate_c_location): Update.
3438 (loclist_describe_location): Update.
3439 (loclist_tracepoint_var_ref): Update.
3440 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
3441 dwarf2_per_objfile parameter.
3442 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
3443 use text offset from objfile.
3444 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
3445
3446 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3447
3448 * dwarf2/expr.h (struct dwarf_expr_context)
3449 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
3450 <offset>: Remove.
3451 <per_objfile>: New member.
3452 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
3453 dwarf2_per_objfile parameter. Don't set offset, set
3454 per_objfile.
3455 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
3456 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
3457 a dwarf2_per_objfile object instead of an offset.
3458 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
3459 constructor.
3460 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
3461 to dwarf2_expr_executor constructor. Don't set offset.
3462 (dwarf2_fetch_cfa_info): Update.
3463 (struct dwarf2_frame_cache) <text_offset>: Remove.
3464 <per_objfile>: New field.
3465 (dwarf2_frame_cache): Update.
3466 (dwarf2_frame_prev_register): Update.
3467 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3468 <dwarf_evaluate_loc_desc>: Add constructor.
3469 (dwarf2_evaluate_loc_desc_full): Update.
3470 (dwarf2_locexpr_baton_eval): Update.
3471 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
3472 Add constructor.
3473 (dwarf2_loc_desc_get_symbol_read_needs): Update.
3474
3475 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3476
3477 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
3478 addr_sized_int_type>: Move to dwarf2_cu.
3479 <int_type>: Move to dwarf2_per_objfile.
3480 (struct dwarf2_per_objfile) <int_type>: Move here.
3481 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
3482 addr_sized_int_type>: Move here.
3483 (read_func_scope): Update.
3484 (read_array_type): Update.
3485 (read_tag_string_type): Update.
3486 (attr_to_dynamic_prop): Update.
3487 (dwarf2_per_cu_data::int_type): Rename to...
3488 (dwarf2_per_objfile::int_type): ... this.
3489 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
3490 (dwarf2_cu::addr_sized_int_type): ... this.
3491 (read_subrange_type): Update.
3492 (dwarf2_per_cu_data::addr_type): Rename to...
3493 (dwarf2_cu::addr_type): ... this.
3494 (set_die_type): Update.
3495
3496 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3497
3498 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
3499 data through per_cu->cu.
3500
3501 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3502
3503 * dwarf2/read.c (lookup_dwo_comp_unit): Change
3504 dwarf2_per_cu_data parameter fo dwarf2_cu.
3505 (lookup_dwo_type_unit): Likewise.
3506 (read_cutu_die_from_dwo): Likewise.
3507 (lookup_dwo_unit): Likewise.
3508 (open_and_init_dwo_file): Likewise.
3509 (lookup_dwo_cutu): Likewise.
3510 (lookup_dwo_comp_unit): Likewise.
3511 (lookup_dwo_type_unit): Likewise.
3512 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3513 (cutu_reader::cutu_reader): Update.
3514
3515 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3516
3517 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
3518 parameter.
3519 (process_full_type_unit): Likewise.
3520 (process_queue): Update.
3521
3522 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3523
3524 * dwarf2/read.c (recursively_compute_inclusions): Add
3525 dwarf2_per_objfile parameter.
3526 (compute_compunit_symtab_includes): Likewise.
3527 (process_cu_includes): Update.
3528
3529 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3530
3531 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
3532 parameter.
3533 (create_type_unit_group): Update.
3534 (process_psymtab_comp_unit_reader): Update.
3535 (build_type_psymtabs_reader): Update.
3536
3537 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3538
3539 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
3540 object through m_this_cu->cu.
3541
3542 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3543
3544 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
3545 the info parameter.
3546 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
3547
3548 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3549
3550 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
3551 per_objfile parameter.
3552 (load_full_type_unit): Add per_objfile parameter.
3553 (read_signatured_type): Likewise.
3554 (load_full_comp_unit): Likewise.
3555 (load_cu): Likewise.
3556 (dw2_do_instantiate_symtab): Likewise.
3557 (dw2_get_file_names): Likewise.
3558 (dw2_map_symtabs_matching_filename): Update.
3559 (dw_expand_symtabs_matching_file_matcher): Update.
3560 (dw2_map_symbol_filenames): Update.
3561 (process_psymtab_comp_unit): Add per_objfile parameter.
3562 (build_type_psymtabs_1): Update.
3563 (process_skeletonless_type_unit): Update.
3564 (dwarf2_build_psymtabs_hard): Update.
3565 (load_partial_comp_unit): Add per_objfile parameter.
3566 (scan_partial_symbols): Update.
3567 (load_full_comp_unit): Add per_objfile parameter.
3568 (process_imported_unit_die): Update.
3569 (create_cus_hash_table): Update.
3570 (find_partial_die): Update.
3571 (dwarf2_read_addr_index): Update.
3572 (follow_die_offset): Update.
3573 (dwarf2_fetch_die_loc_sect_off): Update.
3574 (dwarf2_fetch_constant_bytes): Update.
3575 (dwarf2_fetch_die_type_sect_off): Update.
3576 (follow_die_sig_1): Update.
3577 (load_full_type_unit): Add per_objfile parameter.
3578 (read_signatured_type): Likewise.
3579
3580 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3581
3582 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
3583 of objfile_name.
3584
3585 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3586
3587 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
3588 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
3589 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
3590 field.
3591 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
3592 (create_cus_from_index): Update.
3593 (dwarf2_read_gdb_index): Update.
3594 (create_cus_from_debug_names): Update.
3595 (dwarf2_read_debug_names): Update.
3596 (get_abbrev_section_for_cu): Update.
3597 (create_all_comp_units): Update.
3598 (read_attribute_value): Update.
3599 (get_debug_line_section): Update.
3600 * dwarf2/index-cache.c (index_cache::store): Update.
3601 * dwarf2/index-write.c (save_gdb_index_command): Update.
3602 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
3603
3604 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3605
3606 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
3607 member.
3608 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
3609 dwarf2_per_cu_data::per_bfd.
3610 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
3611 (create_type_unit_group): Likewise.
3612 (queue_comp_unit): Remove reference to
3613 per_cu->dwarf2_per_objfile.
3614 (maybe_queue_comp_unit): Likewise.
3615 (fill_in_sig_entry_from_dwo_entry): Assign new field.
3616 (create_cus_hash_table): Assign new field.
3617
3618 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3619
3620 * dwarf2/read.c: Replace
3621 dwarf2_cu->per_cu->dwarf2_per_objfile references with
3622 dwarf2_cu->per_objfile throughout.
3623
3624 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3625
3626 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
3627 parameter, don't use per_cu->dwarf2_per_objfile.
3628 (dw2_instantiate_symtab): Likewise.
3629 (dw2_find_last_source_symtab): Update.
3630 (dw2_map_expand_apply): Update.
3631 (dw2_lookup_symbol): Update.
3632 (dw2_expand_symtabs_for_function): Update.
3633 (dw2_expand_all_symtabs): Update.
3634 (dw2_expand_symtabs_with_fullname): Update.
3635 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
3636 don't use per_cu->dwarf2_per_objfile.
3637 (dw2_expand_marked_cus): Update.
3638 (dw2_find_pc_sect_compunit_symtab): Update.
3639 (dw2_debug_names_lookup_symbol): Update.
3640 (dw2_debug_names_expand_symtabs_for_function): Update.
3641 (dw2_debug_names_map_matching_symbols): Update.
3642 (dwarf2_psymtab::expand_psymtab): Update.
3643
3644 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3645
3646 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
3647 <per_objfile>: New member.
3648 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
3649 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
3650 call to dwarf2_cu.
3651 (cutu_reader::cutu_reader): Update.
3652 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
3653
3654 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3655
3656 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
3657 struct dwarf2_per_objfile.
3658 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
3659 dwarf2_per_bfd.
3660 * dwarf2/read.c (set_die_type): Update.
3661 (get_die_type_at_offset): Update.
3662
3663 2020-05-27 Tom Tromey <tom@tromey.com>
3664 Simon Marchi <simon.marchi@efficios.com>
3665
3666 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
3667 method.
3668 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
3669 get_symtab, set_symtab>: New methods.
3670 <m_symtabs>: New field.
3671 (struct dwarf2_psymtab): Derive from partial_symtab.
3672 <readin_p, get_compunit_symtab>: Declare methods.
3673 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
3674 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
3675 New methods.
3676 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
3677 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
3678 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
3679 (dw2_symtab_iter_next, dw2_print_stats)
3680 (dw2_expand_symtabs_with_fullname)
3681 (dw2_expand_symtabs_matching_one)
3682 (dw_expand_symtabs_matching_file_matcher)
3683 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
3684 (dw2_debug_names_iterator::next)
3685 (dw2_debug_names_map_matching_symbols)
3686 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
3687 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
3688 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
3689 New methods.
3690 (get_compunit_symtab, process_full_comp_unit)
3691 (process_full_type_unit): Update.
3692 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
3693
3694 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3695
3696 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
3697 then introduce a new dwarf2_per_objfile type.
3698 <read_line_string>: Move to the new dwarf2_per_objfile type.
3699 <objfile>: Likewise.
3700 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
3701 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
3702 dwarf2_per_objfile->per_bfd.
3703 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
3704 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
3705 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
3706 (dwarf2_per_bfd::free_cached_comp_units): ... this.
3707 (dwarf2_has_info): Allocate dwarf2_per_bfd.
3708 (dwarf2_per_objfile::locate_sections): Rename to...
3709 (dwarf2_per_bfd::locate_sections): ... this.
3710 (dwarf2_per_objfile::get_cutu): Rename to...
3711 (dwarf2_per_bfd::get_cutu): ... this.
3712 (dwarf2_per_objfile::get_cu): Rename to...
3713 (dwarf2_per_bfd::get_cu): ... this.
3714 (dwarf2_per_objfile::get_tu): Rename to...
3715 (dwarf2_per_bfd::get_tu): ... this.
3716 (dwarf2_per_objfile::allocate_per_cu): Rename to...
3717 (dwarf2_per_bfd::allocate_per_cu): ... this.
3718 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
3719 (dwarf2_per_bfd::allocate_signatured_type): ... this.
3720 (get_gdb_index_contents_ftype): Change parameter from
3721 dwarf2_per_objfile to dwarf2_per_bfd.
3722 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
3723 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
3724
3725 2020-05-27 Tom Tromey <tom@tromey.com>
3726 Simon Marchi <simon.marchi@efficios.com>
3727
3728 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
3729 (allocate_piece_closure): Set "per_objfile" member.
3730 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
3731 (locexpr_describe_location, loclist_describe_location): Use new
3732 member.
3733 * dwarf2/read.c (read_call_site_scope)
3734 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
3735 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
3736 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
3737 handle_data_member_location): Set per_objfile member.
3738 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
3739 member.
3740 (struct dwarf2_loclist_baton) <per_objfile>: New member.
3741
3742 2020-05-27 Tom Tromey <tom@tromey.com>
3743
3744 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
3745 allocate_signatured_type>: Declare new methods.
3746 <m_num_psymtabs>: New member.
3747 (struct dwarf2_per_cu_data) <index>: New member.
3748 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
3749 (dwarf2_per_objfile::allocate_signatured_type): New methods.
3750 (create_cu_from_index_list): Use allocate_per_cu.
3751 (create_signatured_type_table_from_index)
3752 (create_signatured_type_table_from_debug_names)
3753 (create_debug_type_hash_table, add_type_unit)
3754 (read_comp_units_from_section): Use allocate_signatured_type.
3755
3756 2020-05-27 Tom Tromey <tom@tromey.com>
3757
3758 * psymtab.c (partial_map_expand_apply)
3759 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
3760 (psym_lookup_global_symbol_language)
3761 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
3762 (psym_print_stats, psym_expand_symtabs_for_function)
3763 (psym_map_symbol_filenames, psym_map_matching_symbols)
3764 (psym_expand_symtabs_matching)
3765 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
3766 (maintenance_check_psymtabs): Update.
3767 * psympriv.h (struct partial_symtab) <readin_p,
3768 get_compunit_symtab>: Add objfile parameter.
3769 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
3770 Likewise.
3771 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
3772 get_compunit_symtab>: Likewise.
3773 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
3774
3775 2020-05-27 Tom Tromey <tom@tromey.com>
3776
3777 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
3778 member.
3779 * dwarf2/read.c (delete_file_name_entry): Fix comment.
3780 (create_cu_from_index_list)
3781 (create_signatured_type_table_from_index)
3782 (create_signatured_type_table_from_debug_names)
3783 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
3784 (dwarf2_create_include_psymtab)
3785 (create_debug_type_hash_table, add_type_unit)
3786 (create_type_unit_group, read_comp_units_from_section)
3787 (dwarf2_compute_name, create_cus_hash_table)
3788 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
3789 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
3790 obstack.
3791 (dw2_get_real_path): Likewise. Change argument to
3792 dwarf2_per_objfile.
3793
3794 2020-05-27 Luis Machado <luis.machado@linaro.org>
3795
3796 PR tdep/26000
3797 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
3798 for ldrd (immediate).
3799
3800 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3801
3802 * command.h: Add comment giving the name of class_tui.
3803 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
3804 create the fake command for the help for class_tui.
3805
3806 2020-05-26 Tom Tromey <tromey@adacore.com>
3807
3808 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
3809 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
3810 (val_atr): New function.
3811 (value_val_atr): Use it.
3812 * ada-valprint.c (print_optional_low_bound): Change low bound
3813 handling for enums.
3814 (val_print_packed_array_elements): Don't call discrete_position.
3815 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
3816 discrete_position for enum types.
3817 * language.c (default_print_array_index): Change type.
3818 * language.h (struct language_defn) <la_print_array_index>: Add
3819 index_type parameter, change type of index_value.
3820 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
3821 (default_print_array_index): Update.
3822 * valprint.c (maybe_print_array_index): Don't call
3823 value_from_longest. Update.
3824 (value_print_array_elements): Don't call discrete_position.
3825
3826 2020-05-26 Tom Tromey <tromey@adacore.com>
3827
3828 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
3829 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
3830
3831 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
3832
3833 PR gdb/13519
3834 * avr-tdep.c (avr_integer_to_address): Return data or code
3835 address accordingly to the second 'type' argument of the
3836 function.
3837
3838 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
3839
3840 * infcmd.c, inferior.h: (construct_inferior_arguments):
3841 Moved function from here to gdbsupport/common-inferior.{h,cc}
3842
3843 2020-05-23 Tom Tromey <tom@tromey.com>
3844
3845 Revert commit eca1f90c:
3846 * NEWS: Remove entry for completion styling.
3847 * completer.c (_rl_completion_prefix_display_length): Move
3848 declaration later.
3849 (gdb_fnprint): Revert.
3850 (gdb_display_match_list_1): Likewise.
3851 * cli/cli-style.c (completion_prefix_style)
3852 (completion_difference_style, completion_suffix_style): Remove.
3853 (_initialize_cli_style): Revert.
3854 * cli/cli-style.h (completion_prefix_style)
3855 (completion_difference_style, completion_suffix_style): Don't
3856 declare.
3857
3858 2020-05-24 Pedro Alves <palves@redhat.com>
3859
3860 * symtab.c (completion_list_add_name): Return boolean indication
3861 of whether the symbol matched.
3862 (completion_list_add_symbol): Don't try to remove C++ aliases if
3863 the symbol didn't match in the first place.
3864 * symtab.h (completion_list_add_name): Return bool.
3865
3866 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
3867
3868 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
3869 type::field.
3870
3871 2020-05-23 Joel Brobecker <brobecker@adacore.com>
3872
3873 GDB 9.2 released.
3874
3875 2020-05-23 Tom Tromey <tom@tromey.com>
3876
3877 * NEWS: Add entry for completion styling.
3878 * completer.c (_rl_completion_prefix_display_length): Move
3879 declaration earlier.
3880 (gdb_fnprint): Use completion_style.
3881 (gdb_display_match_list_1): Likewise.
3882 * cli/cli-style.c (completion_prefix_style)
3883 (completion_difference_style, completion_suffix_style): New
3884 globals.
3885 (_initialize_cli_style): Register new globals.
3886 * cli/cli-style.h (completion_prefix_style)
3887 (completion_difference_style, completion_suffix_style): Declare.
3888
3889 2020-05-23 Pedro Alves <palves@redhat.com>
3890
3891 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
3892 (parse_escape): Use ISDIGIT instead of isdigit.
3893 (puts_debug): Use gdb_isprint instead of isprint.
3894 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
3895 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
3896 ISSPACE instead of isspace.
3897 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
3898 instead of isspace.
3899 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
3900 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
3901 instead of isxdigit and ISDIGIT instead of isdigit.
3902
3903 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
3904
3905 * gdbtypes.h (struct type) <field>: New method.
3906 (TYPE_FIELDS): Remove, replace all uses with either type::fields
3907 or type::field.
3908
3909 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
3910
3911 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
3912 (TYPE_FIELDS): Use type::fields. Change all call sites that
3913 modify the propery to use type::set_fields instead.
3914
3915 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
3916
3917 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
3918 type::num_fields instead.
3919
3920 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
3921
3922 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
3923 methods.
3924 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
3925 that modify the number of fields to use type::set_num_fields
3926 instead.
3927
3928 2020-05-22 Tom Tromey <tromey@adacore.com>
3929
3930 * compile/compile-object-load.h (munmap_list_free): Don't
3931 declare.
3932
3933 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
3934
3935 * annotate.c (annotate_source_line): Update return type, add call
3936 to update current symtab and line.
3937 * annotate.h (annotate_source_line): Update return type, and
3938 extend header comment.
3939 * source.c (info_line_command): Check annotation_level before
3940 calling annotate_source_line.
3941 * stack.c (print_frame_info): If calling annotate_source_line
3942 returns true, then don't print any other source line information.
3943
3944 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
3945
3946 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
3947
3948 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
3949
3950 * coffread.c (patch_type): Remove NULL check before xfree.
3951 * corefile.c (set_gnutarget): Likewise.
3952 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
3953 * exec.c (build_section_table): Likewise.
3954 * remote.c (remote_target::pass_signals): Likewise.
3955 * utils.c (n_spaces): Likewise.
3956 * cli/cli-script.c (document_command): Likewise.
3957 * i386-windows-tdep.c (core_process_module_section): Likewise.
3958 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
3959
3960 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
3961
3962 * symfile.c (reread_symbols): Clear objfile's section_offsets
3963 vector and section indices, re-compute them by calling
3964 sym_offsets.
3965
3966 2020-05-20 Tom Tromey <tromey@adacore.com>
3967
3968 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
3969 (desc_one_bound, desc_index_type): Compute field name.
3970
3971 2020-05-20 Tom de Vries <tdevries@suse.de>
3972
3973 PR symtab/25833
3974 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
3975
3976 2020-05-20 Alan Modra <amodra@gmail.com>
3977
3978 PR 25993
3979 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
3980 bfd_set_filename.
3981 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
3982 passed to bfd_set_filename.
3983 * symfile-mem.c (add_vsyscall_page): Likewise for string
3984 passed to symbol_file_add_from_memory.
3985 (symbol_file_add_from_memory): Make name param a const char* and
3986 don't strdup.
3987
3988 2020-05-20 Alan Modra <amodra@gmail.com>
3989
3990 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
3991 rather than accessing bfd->filename directly.
3992 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
3993 and use bfd_section_name.
3994 * dwarf2/frame.c (decode_frame_entry): Likewise.
3995 * exec.c (exec_set_section_address): Likewise.
3996 * solib-aix.c (solib_aix_bfd_open): Likewise.
3997 * stap-probe.c (get_stap_base_address): Likewise.
3998 * symfile.c (reread_symbols): Likewise.
3999
4000 2020-05-19 Tom Tromey <tromey@adacore.com>
4001
4002 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
4003
4004 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4005
4006 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
4007
4008 2020-05-19 Pedro Alves <palves@redhat.com>
4009
4010 * NEWS (set exec-file-mismatch): Adjust entry.
4011 * exec.c: Include "build-id.h".
4012 (validate_exec_file): Try to match build IDs instead of filenames.
4013 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
4014 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
4015 and pass down 'warn_if_slow'.
4016 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
4017 gdb_bfd_open_closure to pass it down.
4018 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
4019
4020 2020-05-19 Pedro Alves <palves@redhat.com>
4021
4022 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
4023 * target.c (target_fileio_open_1): Rename to target_fileio_open
4024 and make extern. Use bool.
4025 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
4026 (target_fileio_read_alloc_1): Adjust.
4027 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
4028 (target_fileio_open_warn_if_slow): Delete declaration.
4029
4030 2020-05-19 Pedro Alves <palves@redhat.com>
4031
4032 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
4033 Adjust all callers.
4034
4035 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
4036
4037 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
4038 whether disp is negative.
4039
4040 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4041
4042 * symfile.h (struct symfile_segment_data)
4043 <~symfile_segment_data>: Remove.
4044 <segment_info>: Change to std::vector.
4045 * symfile.c (default_symfile_segments): Update.
4046 * elfread.c (elf_symfile_segments): Update.
4047
4048 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4049
4050 * symfile.h (struct symfile_segment_data) <struct segment>: New.
4051 <segments>: New.
4052 <segment_bases, segment_sizes>: Remove.
4053 * symfile.c (default_symfile_segments): Update.
4054 * elfread.c (elf_symfile_segments): Update.
4055 * remote.c (remote_target::get_offsets): Update.
4056 * solib-target.c (solib_target_relocate_section_addresses):
4057 Update.
4058
4059 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4060
4061 * symfile.h (struct symfile_segment_data): Initialize fields.
4062 <~symfile_segment_data>: Add.
4063 (symfile_segment_data_up): New.
4064 (struct sym_fns) <sym_segments>: Return a
4065 symfile_segment_data_up.
4066 (default_symfile_segments): Return a symfile_segment_data_up.
4067 (free_symfile_segment_data): Remove.
4068 (get_symfile_segment_data): Return a symfile_segment_data_up.
4069 * symfile.c (default_symfile_segments): Likewise.
4070 (get_symfile_segment_data): Likewise.
4071 (free_symfile_segment_data): Remove.
4072 (symfile_find_segment_sections): Update.
4073 * elfread.c (elf_symfile_segments): Return a
4074 symfile_segment_data_up.
4075 * remote.c (remote_target::get_offsets): Update.
4076 * solib-target.c (solib_target_relocate_section_addresses):
4077 Update.
4078 * symfile-debug.c (debug_sym_segments): Return a
4079 symfile_segment_data_up.
4080
4081 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4082
4083 PR build/25981
4084 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
4085 Hardcode register numbers.
4086
4087 PR build/25981
4088 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
4089 procfs_find_LDT_entry): Remove.
4090 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
4091 procfs_find_LDT_entry): Remove.
4092 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
4093 Remove.
4094
4095 2020-05-17 Pedro Alves <palves@redhat.com>
4096 Andrew Burgess <andrew.burgess@embecosm.com>
4097 Keno Fischer <keno@juliacomputing.com>
4098
4099 PR gdb/25741
4100 * breakpoint.c (build_target_condition_list): Update comments.
4101 (build_target_command_list): Update comments and skip matching
4102 locations.
4103 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
4104 a separate function. Simplify "set breakpoint auto-hw off"
4105 handling.
4106 (insert_breakpoints): Update comment.
4107 (tracepoint_locations_match): New parameter. For breakpoints,
4108 compare location types too, if the caller wants to.
4109 (handle_automatic_hardware_breakpoints): New functions.
4110 (bp_location_is_less_than): Also sort by location type and
4111 hardware breakpoint length.
4112 (update_global_location_list): Handle "set breakpoint auto-hw on"
4113 here.
4114 (update_breakpoint_locations): Ask breakpoint_locations_match to
4115 ignore location types.
4116
4117 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
4118
4119 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
4120 type::name instead.
4121
4122 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
4123
4124 * gdbtypes.h (struct type) <name, set_name>: New methods.
4125 (TYPE_CODE): Use type::name. Change all call sites used to set
4126 the name to use type::set_name instead.
4127
4128 2020-05-16 Tom Tromey <tom@tromey.com>
4129
4130 * top.c (quit_force): Update.
4131 * infrun.c (handle_no_resumed): Update.
4132 * top.h (all_uis): New function.
4133 (ALL_UIS): Remove.
4134
4135 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
4136
4137 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
4138
4139 2020-05-16 Pedro Alves <palves@redhat.com>
4140
4141 * ia64-linux-nat.c
4142 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
4143 Declare method.
4144 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
4145
4146 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
4147
4148 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
4149 (sparc64_adi_info): Likewise.
4150
4151 2020-05-15 Tom Tromey <tom@tromey.com>
4152
4153 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
4154 block_objfile.
4155 (lookup_objfile_from_block): Remove.
4156 (lookup_symbol_in_block, lookup_symbol_in_static_block)
4157 (lookup_global_symbol): Use block_objfile.
4158 * symtab.h (lookup_objfile_from_block): Don't declare.
4159 * printcmd.c (clear_dangling_display_expressions): Use
4160 block_objfile.
4161 * parse.c (operator_check_standard): Use block_objfile.
4162
4163 2020-05-15 Tom Tromey <tom@tromey.com>
4164
4165 * language.c (language_alloc_type_symbol): Set
4166 SYMBOL_SECTION.
4167 * symtab.c (initialize_objfile_symbol): Remove.
4168 (allocate_symbol): Remove.
4169 (allocate_template_symbol): Remove.
4170 * dwarf2/read.c (fixup_go_packaging): Use "new".
4171 (new_symbol): Use "new".
4172 (read_variable): Don't call initialize_objfile_symbol. Use
4173 "new".
4174 (read_func_scope): Use "new".
4175 * xcoffread.c (process_xcoff_symbol): Don't call
4176 initialize_objfile_symbol.
4177 (SYMBOL_DUP): Remove.
4178 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
4179 "new".
4180 * symtab.h (allocate_symbol, initialize_objfile_symbol)
4181 (allocate_template_symbol): Don't declare.
4182 (struct symbol): Add copy constructor. Change defaults.
4183 * jit.c (finalize_symtab): Use "new".
4184 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
4185 Use "new".
4186 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
4187 (common_block_end): Use "new".
4188 * mdebugread.c (parse_symbol): Use "new".
4189 (new_symbol): Likewise.
4190
4191 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4192
4193 * NEWS: Mention changes to help and apropos.
4194
4195 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4196
4197 * command.h (enum command_class): Improve comments, document
4198 that class_alias is for user-defined aliases, give the class
4199 name for each class, remove unused class_xdb.
4200 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
4201 * breakpoint.c (_initialize_breakpoint): Replace class_alias
4202 by a precise class.
4203 * infcmd.c (_initialize_infcmd): Likewise.
4204 * reverse.c (_initialize_reverse): Likewise.
4205 * stack.c (_initialize_stack): Likewise.
4206 * symfile.c (_initialize_symfile): Likewise.
4207 * tracepoint.c (_initialize_tracepoint): Likewise.
4208
4209 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4210
4211 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
4212 when their aliased command is traversed.
4213 (help_cmd): Add fput_command_names_styled call to
4214 output command name and aliases when command has an alias.
4215
4216 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4217
4218 * cli/cli-decode.h (help_cmd_list): Remove declaration.
4219 * cli/cli-decode.c (help_cmd_list): Declare as static,
4220 remove prefix argument, use bool for recurse arg, rework to show the aliases of
4221 a command together with the command.
4222 (fput_command_name_styled, fput_command_names_styled): New functions.
4223 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
4224 fput_command_name_styled.
4225 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
4226 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
4227
4228 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4229
4230 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
4231 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
4232 * command.h (cmd_show_list): Likewise.
4233 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
4234 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
4235
4236 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4237
4238 * unittests/command-def-selftests.c (traverse_command_structure):
4239 Verify all commands of a list have the same prefix command and
4240 that only the top cmdlist commands have a null prefix.
4241
4242 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4243
4244 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
4245 as prefix, not one of its aliases.
4246 (set_cmd_prefix): Remove.
4247 (do_add_cmd): Centralize the setting of the prefix of a command, when
4248 command is defined after its full chain of prefix commands.
4249 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
4250 (add_setshow_cmd_full): Likewise.
4251 (update_prefix_field_of_prefixed_commands): New function.
4252 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
4253 update_prefix_field_of_prefixed_commands.
4254 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
4255 addresses of remote_set_cmdlist and remote_show_cmdlist given
4256 as argument, not the address of an argument.
4257 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
4258 * gdb/remote.c (_initialize_remote): Likewise.
4259
4260 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4261
4262 * cli/cli-cmds.c (alias_command): Check for an existing alias
4263 using lookup_cmd_composition, as valid_command_p is too strict
4264 and forbids aliases that are the prefix of an existing alias
4265 or command.
4266 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
4267 command is properly recognised as a valid command.
4268
4269 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4270
4271 * unittests/help-doc-selftests.c: Rename to
4272 unittests/command-def-selftests.c
4273 * unittests/command-def-selftests.c (help_doc_tests): Update some
4274 comments.
4275 (command_structure_tests, traverse_command_structure): New namespace
4276 and function.
4277 (command_structure_invariants_tests): New function.
4278 (_initialize_command_def_selftests) Renamed from
4279 _initialize_help_doc_selftests, register command_structure_invariants
4280 selftest.
4281
4282 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4283
4284 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
4285 an alias of 'show'.
4286
4287 2020-05-15 Joel Brobecker <brobecker@adacore.com>
4288
4289 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
4290 ada_is_fixed_point_type. Update all callers.
4291 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
4292 all callers.
4293 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
4294 Update all callers.
4295 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
4296 print_fixed_point_type. Update all callers.
4297 * ada-valprint.c (ada_value_print_num): Replace call to
4298 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
4299
4300 2020-05-14 Kevin Buettner <kevinb@redhat.com>
4301
4302 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
4303 processors.
4304 (cpu_supports_bts): Add CV_AMD case.
4305
4306 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
4307 Simon Marchi <simon.marchi@efficios.com>
4308
4309 * infrun.c (stop_all_threads): Collect multiple wait events at
4310 each pass.
4311
4312 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
4313
4314 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
4315 type::code instead.
4316
4317 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
4318
4319 * gdbtypes.h (struct type) <code, set_code>: New methods.
4320 (TYPE_CODE): Use type::code. Change all call sites used to set
4321 the code to use type::set_code instead.
4322
4323 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4324 Tom de Vries <tdevries@suse.de>
4325 Pedro Alves <palves@redhat.com>
4326
4327 PR threads/25478
4328 * infrun.c (stop_all_threads): Do NOT ignore
4329 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
4330 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
4331 received.
4332 (handle_no_resumed): Remove code handling a live inferior with no
4333 threads.
4334 * remote.c (has_single_non_exited_thread): New.
4335 (remote_target::update_thread_list): Do not delete a thread if is
4336 the last thread of the process.
4337 * thread.c (thread_select): Call delete_exited_threads instead of
4338 prune_threads.
4339
4340 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4341
4342 * infrun.c (stop_all_threads): Enable/disable thread events of all
4343 targets. Move a debug message denoting the end of the function
4344 into the SCOPED_EXIT block.
4345
4346 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4347
4348 * process-stratum-target.h: Include <set>.
4349 (all_non_exited_process_targets, switch_to_target_no_thread): New
4350 function declarations.
4351 * process-stratum-target.c (all_non_exited_process_targets)
4352 (switch_to_target_no_thread): New function implementations.
4353
4354 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4355
4356 * infrun.c (handle_inferior_event): Extract out a piece of code
4357 into...
4358 (mark_non_executing_threads): ...this new function.
4359
4360 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4361
4362 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
4363 use.
4364
4365 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4366
4367 * regcache.c (regcache_read_pc_protected): New function
4368 implementation that returns 0 if the PC cannot read via
4369 'regcache_read_pc'.
4370 * infrun.c (proceed): Call 'regcache_read_pc_protected'
4371 instead of 'regcache_read_pc'.
4372 (keep_going_pass_signal): Ditto.
4373
4374 2020-05-13 Tom Tromey <tromey@adacore.com>
4375
4376 * ada-lang.c (align_value): Remove.
4377 (ada_template_to_fixed_record_type_1): Use align_up.
4378
4379 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4380
4381 * async-event.c: Update the copyright year.
4382 * async-event.h: Update the copyright year.
4383
4384 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
4385
4386 * objfiles.h (is_addr_in_objfile,
4387 shared_objfile_contains_address_p): Return bool.
4388 * objfile.c (is_addr_in_objfile,
4389 shared_objfile_contains_address_p): Return bool.
4390
4391 2020-05-11 Tom Tromey <tromey@adacore.com>
4392
4393 * cli/cli-cmds.c (info_command): Restore.
4394 (_initialize_cli_cmds): Use add_prefix_command for "info".
4395 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
4396
4397 2020-05-11 Tom Tromey <tromey@adacore.com>
4398
4399 * ada-lang.c (ada_value_primitive_field): Now public.
4400 * ada-lang.h (ada_value_primitive_field): Declare.
4401 * ada-valprint.c (print_field_values): Use
4402 ada_value_primitive_field for wrapper fields.
4403
4404 2020-05-11 Tom de Vries <tdevries@suse.de>
4405
4406 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
4407 MODULE_DOMAIN.
4408
4409 2020-05-11 Tom de Vries <tdevries@suse.de>
4410
4411 PR symtab/25941
4412 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
4413 with length 0, if not gdb-produced.
4414 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
4415
4416 2020-05-09 Tom de Vries <tdevries@suse.de>
4417
4418 PR gdb/25955
4419 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
4420 calculation.
4421
4422 2020-05-09 Tom Tromey <tom@tromey.com>
4423
4424 * top.c (server_command): Now bool.
4425 * top.h (server_command): Now bool.
4426
4427 2020-05-08 Tom Tromey <tromey@adacore.com>
4428
4429 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
4430 already being processed.
4431
4432 2020-05-08 Tom Tromey <tom@tromey.com>
4433
4434 * printcmd.c (struct display) <next>: Remove.
4435 <display>: New constructor.
4436 <exp_string>: Now a std::string.
4437 <enabled_p>: Now a bool.
4438 (display_number): Move definition earlier.
4439 (displays): Rename from display_chain. Now a std::vector.
4440 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
4441 (display_command): Update.
4442 (do_one_display, disable_display)
4443 (enable_disable_display_command, do_enable_disable_display):
4444 Update.
4445 (free_display): Remove.
4446 (clear_displays): Rewrite.
4447 (delete_display): Update.
4448 (map_display_numbers): Use function_view. Remove "data"
4449 parameter. Update.
4450 (do_delete_display): Remove.
4451 (undisplay_command): Update.
4452 (do_one_display, do_displays, disable_display)
4453 (info_display_command): Update.
4454 (do_enable_disable_display): Remove.
4455 (enable_disable_display_command)
4456 (clear_dangling_display_expressions): Update.
4457
4458 2020-05-08 Tom Tromey <tom@tromey.com>
4459
4460 * symtab.c (set_symbol_cache_size)
4461 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
4462 (maintenance_print_symbol_cache_statistics): Update.
4463 * symmisc.c (print_symbol_bcache_statistics)
4464 (print_objfile_statistics, maintenance_print_objfiles)
4465 (maintenance_info_symtabs, maintenance_check_symtabs)
4466 (maintenance_expand_symtabs, maintenance_info_line_tables):
4467 Update.
4468 * symfile-debug.c (set_debug_symfile): Update.
4469 * source.c (forget_cached_source_info): Update.
4470 * python/python.c (gdbpy_progspaces): Update.
4471 * psymtab.c (maintenance_info_psymtabs): Update.
4472 * probe.c (parse_probes): Update.
4473 * linespec.c (iterate_over_all_matching_symtabs)
4474 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
4475 * guile/scm-progspace.c (gdbscm_progspaces): Update.
4476 * exec.c (exec_target::close): Update.
4477 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
4478 * breakpoint.c (print_one_breakpoint_location)
4479 (create_longjmp_master_breakpoint)
4480 (create_std_terminate_master_breakpoint): Update.
4481 * progspace.c (program_spaces): Now a std::vector.
4482 (maybe_new_address_space): Update.
4483 (add_program_space): Remove.
4484 (program_space::program_space): Update.
4485 (remove_program_space): Update.
4486 (number_of_program_spaces): Remove.
4487 (print_program_space, update_address_spaces): Update.
4488 * progspace.h (program_spaces): Change type.
4489 (ALL_PSPACES): Remove.
4490 (number_of_program_spaces): Don't declare.
4491 (struct program_space) <next>: Remove.
4492
4493 2020-05-08 Tom Tromey <tom@tromey.com>
4494
4495 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
4496 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
4497 (enable_break): Update.
4498 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
4499 (frv_fdpic_find_canonical_descriptor): Update.
4500 (frv_fetch_objfile_link_map): Update.
4501 * progspace.c (program_space::free_all_objfiles): Update.
4502 (program_space::solibs): New method.
4503 * progspace.h (struct program_space) <solibs>: New method.
4504 * solist.h (master_so_list): Don't declare.
4505 (ALL_SO_LIBS): Remove.
4506 * solib.h (so_list_head): Remove.
4507 (update_solib_list): Update comment.
4508 * solib.c (master_so_list): Remove.
4509 (solib_used, update_solib_list, solib_add)
4510 (info_sharedlibrary_command, clear_solib)
4511 (reload_shared_libraries_1, remove_user_added_objfile): Update.
4512
4513 2020-05-08 Tom Tromey <tom@tromey.com>
4514
4515 * extension.c (extension_languages): Now a std::array.
4516 (ALL_EXTENSION_LANGUAGES): Remove.
4517 (get_ext_lang_defn, get_ext_lang_of_file)
4518 (eval_ext_lang_from_control_command): Update.
4519 (finish_ext_lang_initialization)
4520 (auto_load_ext_lang_scripts_for_objfile)
4521 (ext_lang_type_printers::ext_lang_type_printers)
4522 (apply_ext_lang_type_printers)
4523 (ext_lang_type_printers::~ext_lang_type_printers)
4524 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
4525 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
4526 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
4527 (get_matching_xmethod_workers, ext_lang_colorize)
4528 (ext_lang_before_prompt): Update.
4529 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
4530
4531 2020-05-08 Tom Tromey <tom@tromey.com>
4532
4533 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
4534 overload.
4535 <swap_string, m_string>: Remove.
4536 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
4537 Update.
4538 * stabsread.c (define_symbol, read_type): Update.
4539 * linespec.c (find_linespec_symbols): Update.
4540 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
4541 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
4542 * dbxread.c (read_dbx_symtab): Update.
4543 * cp-support.h (cp_canonicalize_string_full)
4544 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
4545 Return unique_xmalloc_ptr.
4546 * cp-support.c (inspect_type): Update.
4547 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
4548 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
4549 Likewise.
4550 * c-typeprint.c (print_name_maybe_canonical): Update.
4551 * break-catch-throw.c (check_status_exception_catchpoint):
4552 Update.
4553
4554 2020-05-08 Tom de Vries <tdevries@suse.de>
4555
4556 * infrun.c (follow_fork): Copy current_line and current_symtab to
4557 child thread.
4558
4559 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
4560
4561 * async-event.c (struct async_signal_handler, struct
4562 async_event_handler): Reformat, remove typedef.
4563
4564 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
4565
4566 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
4567 access thistype->main_type->dyn_prop_list directly.
4568
4569 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
4570
4571 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
4572 (remove_dyn_prop): Remove. Update all users to use
4573 type::remove_dyn_prop.
4574 * gdbtypes.c (remove_dyn_prop): Rename to...
4575 (type::remove_dyn_prop): ... this.
4576
4577 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
4578
4579 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
4580 (add_dyn_prop): Remove. Update all users to use
4581 type::add_dyn_prop.
4582 * gdbtypes.c (add_dyn_prop): Rename to...
4583 (type::add_dyn_prop): ... this.
4584
4585 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
4586
4587 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
4588 (get_dyn_prop): Remove. Update all users to use
4589 type::dyn_prop.
4590 * gdbtypes.c (get_dyn_prop): Rename to...
4591 (type::dyn_prop): ... this.
4592
4593 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
4594
4595 * gdbtypes.h (struct main_type) <flag_static>: Remove.
4596
4597 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
4598
4599 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
4600 instruction, skip it if it's there.
4601
4602 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
4603
4604 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
4605
4606 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
4607
4608 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
4609 * gdbtypes.c (recursive_dump_type): Remove use of
4610 TYPE_INCOMPLETE.
4611
4612 2020-05-03 Tom Tromey <tom@tromey.com>
4613
4614 * breakpoint.c (catch_command, tcatch_command): Remove.
4615 (_initialize_breakpoint): Use add_basic_prefix_cmd,
4616 add_show_prefix_cmd.
4617 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
4618 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
4619 Remove.
4620 (add_internal_problem_command): Use add_basic_prefix_cmd,
4621 add_show_prefix_cmd.
4622 * mips-tdep.c (set_mipsfpu_command): Remove.
4623 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
4624 * dwarf2/index-cache.c (set_index_cache_command): Remove.
4625 (_initialize_index_cache): Use add_basic_prefix_cmd.
4626 * memattr.c (dummy_cmd): Remove.
4627 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
4628 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
4629 (_initialize_tui_win): Use add_basic_prefix_cmd,
4630 add_show_prefix_cmd.
4631 * cli/cli-logging.c (set_logging_command): Remove.
4632 (_initialize_cli_logging): Use add_basic_prefix_cmd,
4633 add_show_prefix_cmd.
4634 (show_logging_command): Remove.
4635 * target.c (target_command): Remove.
4636 (add_target): Use add_basic_prefix_cmd.
4637
4638 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
4639
4640 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
4641
4642 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4643
4644 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
4645 info_command.
4646
4647 2020-04-30 Kamil Rytarowski <n54@gmx.com>
4648
4649 * nbsd-nat.c (nbsd_enable_proc_events)
4650 (nbsd_nat_target::post_startup_inferior): Add.
4651 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
4652 (nbsd_nat_target::update_thread_list): Rewrite.
4653 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
4654 "PTRACE_LWP_CREATE".
4655 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
4656
4657 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4658
4659 * stack.c (_initialize_stack): Remove duplicated creation
4660 of "frame" command and "f" alias.
4661
4662 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
4663
4664 PR gdb/18706
4665 * gdbtypes.c (check_typedef): Calculate size of array of
4666 stubbed type.
4667
4668 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
4669
4670 PR gdb/15559
4671 * i386-tdep.c (i386_push_dummy_call): Call
4672 i386_thiscall_push_dummy_call.
4673 (i386_thiscall_push_dummy_call): New function.
4674 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
4675 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
4676 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
4677
4678 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4679
4680 * gdbarch.sh (do_read): Add shellcheck disable directive for
4681 warning SC2162.
4682
4683 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4684
4685 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
4686 "referenced but not assigned" warning.
4687
4688 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4689
4690 * gdbarch.sh: Remove code that sets fallbackdefault.
4691
4692 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4693
4694 * gdbarch.sh: Use shell operators && and || instead of
4695 -a and -o.
4696
4697 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4698
4699 * gdbarch.sh: Use $(...) instead of `...`.
4700
4701 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4702
4703 * gdbarch.sh: Use double quotes around variables.
4704
4705 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4706
4707 * gdbarch.sh: Use %s with printf, instead of variables in the
4708 format string.
4709
4710 2020-04-29 Tom Tromey <tromey@adacore.com>
4711
4712 PR ada/25875:
4713 * dwarf2/read.c (update_enumeration_type_from_children): Compute
4714 type fields here.
4715 (read_enumeration_type): Call
4716 update_enumeration_type_from_children later. Update comments.
4717 (process_enumeration_scope): Don't create type fields.
4718
4719 2020-04-29 Kamil Rytarowski <n54@gmx.com>
4720
4721 * nbsd-tdep.c: Include "xml-syscall.h".
4722 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
4723
4724 2020-04-29 Kamil Rytarowski <n54@gmx.com>
4725
4726 * nbsd-nat.c: Include "sys/wait.h".
4727 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
4728 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
4729 (nbsd_nat_target::remove_exec_catchpoint)
4730 (nbsd_nat_target::set_syscall_catchpoint): Add.
4731 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
4732 (nbsd_nat_target::insert_exec_catchpoint)
4733 (nbsd_nat_target::remove_exec_catchpoint)
4734 (nbsd_nat_target::set_syscall_catchpoint): Add.
4735 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
4736 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
4737 `nbsd_get_syscall_number'.
4738
4739 2020-04-29 Tom Tromey <tom@tromey.com>
4740
4741 * stack.c (print_block_frame_labels): Remove.
4742
4743 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
4744
4745 PR gdb/17320
4746 * ada-valprint.c (val_print_packed_array_elements): Move array
4747 end bracket to new line.
4748 (ada_val_print_string): Remove extra spaces before first array
4749 element.
4750 * c-valprint.c (c_value_print_array): Likewise.
4751 * m2-valprint.c (m2_print_array_contents): Likewise.
4752 (m2_value_print_inner): Likewise.
4753 * p-valprint.c (pascal_value_print_inner): Likewise.
4754 * valprint.c (generic_val_print_array): Likewise.
4755 (value_print_array_elements): Move first array element and array
4756 end bracket to new line.
4757
4758 2020-04-29 Tom de Vries <tdevries@suse.de>
4759
4760 PR symtab/25889
4761 * linespec.c (find_method): Fix ix calculation.
4762
4763 2020-04-28 Kamil Rytarowski <n54@gmx.com>
4764
4765 * syscalls/update-netbsd.sh: New file.
4766 * syscalls/netbsd.xml: Regenerate.
4767 * data-directory/Makefile.in: Register `netbsd.xml' in
4768 `SYSCALLS_FILES'.
4769
4770 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
4771
4772 * syscalls/update-freebsd.sh: Add double quotes.
4773
4774 2020-04-28 Tom Tromey <tom@tromey.com>
4775
4776 * NEWS: Update.
4777 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
4778 (cmdpy_init): Allow class_tui.
4779
4780 2020-04-28 Mark Williams <mark@myosotissp.com>
4781
4782 PR gdb/24480
4783 * dwarf2read.c: Add missing assingments to list_in_scope when
4784 start_symtab was already called.
4785
4786 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
4787
4788 PR gdb/25881
4789 * dwarf2/read.c (offset_map_type): Use
4790 gdb:hash_enum<sect_offset> as hash function.
4791
4792 2020-04-28 Tom de Vries <tdevries@suse.de>
4793
4794 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
4795 with DW_AT_signature.
4796
4797 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
4798
4799 * configure.ac: Remove check for fs_base/gs_base in
4800 user_regs_struct.
4801 * configure: Re-generate.
4802 * config.in: Re-generate.
4803 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
4804 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
4805 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
4806
4807 2020-04-27 Luis Machado <luis.machado@linaro.org>
4808
4809 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
4810 problematic inline frame unwinding situation.
4811 * frame.c (frame_id_computed_p): New function.
4812 * frame.h (frame_id_computed_p): New prototype.
4813
4814 2020-04-26 Tom Tromey <tom@tromey.com>
4815
4816 * command.h (enum command_class) <class_pseudo>: Remove.
4817
4818 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4819
4820 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
4821 and whitespace.
4822
4823 2020-04-25 Kamil Rytarowski <n54@gmx.com>
4824
4825 * inf-ptrace.c (inf_ptrace_target::wait): Remove
4826 `PT_GET_PROCESS_STATE' block.
4827
4828 2020-04-24 Tom Tromey <tom@tromey.com>
4829
4830 * symtab.h (symbol_get_demangled_name): Don't declare.
4831 * symtab.c (symbol_get_demangled_name): Remove.
4832 (general_symbol_info::natural_name)
4833 (general_symbol_info::demangled_name): Update.
4834
4835 2020-04-24 Tom Tromey <tom@tromey.com>
4836
4837 PR rust/25025:
4838 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
4839
4840 2020-04-24 Tom Tromey <tom@tromey.com>
4841
4842 PR symtab/12707:
4843 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
4844 exists.
4845 (new_symbol): Likewise.
4846 * compile/compile-object-load.c (get_out_value_type): Use
4847 symbol_matches_search_name.
4848
4849 2020-04-24 Tom Tromey <tom@tromey.com>
4850
4851 * dwarf2/read.c (add_partial_symbol): Do not call
4852 compute_and_set_names.
4853
4854 2020-04-24 Tom Tromey <tom@tromey.com>
4855
4856 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
4857 overload.
4858
4859 2020-04-24 Tom Tromey <tom@tromey.com>
4860
4861 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
4862 (add_psymbol_to_list): New overload. Make old overload call new
4863 one.
4864 * psympriv.h (add_psymbol_to_list): New overload.
4865
4866 2020-04-24 Tom Tromey <tom@tromey.com>
4867
4868 * dwarf2/read.c (partial_die_info::read) <case
4869 DW_AT_linkage_name>: Use value_as_string.
4870 (dwarf2_string_attr): Use value_as_string.
4871 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
4872 method.
4873 * dwarf2/attribute.c (attribute::value_as_string): New method.
4874
4875 2020-04-24 Tom Tromey <tom@tromey.com>
4876
4877 * symtab.c (general_symbol_info::natural_name)
4878 (general_symbol_info::demangled_name): Check for language_rust.
4879
4880 2020-04-24 Tom Tromey <tom@tromey.com>
4881
4882 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
4883 (dwarf2_physname): ... from here.
4884 (partial_die_info::read): Add Rust "{" hack.
4885
4886 2020-04-24 Tom Tromey <tom@tromey.com>
4887
4888 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
4889 method.
4890 (symbol_set_demangled_name): Don't declare.
4891 * symtab.c (general_symbol_info::set_demangled_name): Rename from
4892 symbol_set_demangled_name.
4893 (general_symbol_info::set_language)
4894 (general_symbol_info::compute_and_set_names): Update.
4895 * minsyms.c (minimal_symbol_reader::install): Update.
4896 * dwarf2/read.c (new_symbol): Update.
4897
4898 2020-04-24 Tom Tromey <tromey@adacore.com>
4899
4900 PR python/23662:
4901 * python/py-type.c (convert_field): Handle
4902 FIELD_LOC_KIND_DWARF_BLOCK.
4903 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
4904 (typy_get_dynamic): Nw function.
4905 (type_object_getset): Add "dynamic".
4906 * NEWS: Add entry.
4907
4908 2020-04-24 Tom Tromey <tromey@adacore.com>
4909
4910 * ada-typeprint.c (print_choices, print_variant_part)
4911 (print_record_field_types_dynamic): New functions.
4912 (print_record_field_types): Use print_record_field_types_dynamic.
4913
4914 2020-04-24 Tom Tromey <tromey@adacore.com>
4915
4916 * dwarf2/read.c (handle_data_member_location): New overload.
4917 (dwarf2_add_field): Use it.
4918 (decode_locdesc): Add "computed" parameter. Update comment.
4919 * gdbtypes.c (is_dynamic_type_internal): Also look for
4920 FIELD_LOC_KIND_DWARF_BLOCK.
4921 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
4922 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
4923 virtual base classes.
4924 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
4925 FIELD_LOC_KIND_DWARF_BLOCK.
4926
4927 2020-04-24 Tom Tromey <tromey@adacore.com>
4928
4929 * dwarf2/read.c (read_structure_type): Handle dynamic length.
4930 * gdbtypes.c (is_dynamic_type_internal): Check
4931 TYPE_HAS_DYNAMIC_LENGTH.
4932 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
4933 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
4934 New macros.
4935 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
4936 constant.
4937
4938 2020-04-24 Tom Tromey <tromey@adacore.com>
4939
4940 * dwarf2/read.c (struct variant_field): Rewrite.
4941 (struct variant_part_builder): New.
4942 (struct nextfield): Remove "variant" field. Add "offset".
4943 (struct field_info): Add "current_variant_part" and
4944 "variant_parts".
4945 (alloc_discriminant_info): Remove.
4946 (alloc_rust_variant): New function.
4947 (quirk_rust_enum): Update.
4948 (dwarf2_add_field): Set "offset" member. Don't handle
4949 DW_TAG_variant_part.
4950 (offset_map_type): New typedef.
4951 (convert_variant_range, create_one_variant)
4952 (create_one_variant_part, create_variant_parts)
4953 (add_variant_property): New functions.
4954 (dwarf2_attach_fields_to_type): Call add_variant_property.
4955 (read_structure_type): Don't handle DW_TAG_variant_part.
4956 (handle_variant_part, handle_variant): New functions.
4957 (handle_struct_member_die): Use them.
4958 (process_structure_scope): Don't handle variant parts.
4959 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
4960 (struct discriminant_info): Remove.
4961 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
4962 (struct main_type) <flag_discriminated_union>: Remove.
4963 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
4964 (rust_enum_variant): Return int. Remove "contents". Rewrite.
4965 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
4966 Update.
4967 * valops.c (value_union_variant): Remove.
4968 * value.h (value_union_variant): Don't declare.
4969
4970 2020-04-24 Tom Tromey <tromey@adacore.com>
4971
4972 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
4973 (ada_value_primitive_packed_val): Update.
4974 * ada-valprint.c (ada_value_print_1): Update.
4975 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
4976 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
4977 just an address. Use evaluate_for_locexpr_baton.
4978 (dwarf2_evaluate_property): Update.
4979 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
4980 array_view.
4981 * findvar.c (default_read_var_value): Update.
4982 * gdbtypes.c (compute_variant_fields_inner)
4983 (resolve_dynamic_type_internal): Update.
4984 (resolve_dynamic_type): Change type of valaddr parameter.
4985 * gdbtypes.h (resolve_dynamic_type): Update.
4986 * valarith.c (value_subscripted_rvalue): Update.
4987 * value.c (value_from_contents_and_address): Update.
4988
4989 2020-04-24 Tom Tromey <tromey@adacore.com>
4990
4991 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
4992 "push_initial_value" parameter.
4993 (dwarf2_evaluate_property): Likewise.
4994 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
4995
4996 2020-04-24 Tom Tromey <tromey@adacore.com>
4997
4998 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
4999 (variant::matches, compute_variant_fields_recurse)
5000 (compute_variant_fields_inner, compute_variant_fields): New
5001 functions.
5002 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
5003 Use resolved_type after type is made.
5004 (operator==): Add new cases.
5005 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
5006 (struct discriminant_range, struct variant, struct variant_part):
5007 New.
5008 (union dynamic_prop_data) <variant_parts, original_type>: New
5009 members.
5010 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
5011 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
5012 constants.
5013 * value.c (unpack_bits_as_long): Now public.
5014 * value.h (unpack_bits_as_long): Declare.
5015
5016 2020-04-24 Tom Tromey <tromey@adacore.com>
5017
5018 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
5019 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
5020
5021 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
5022
5023 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
5024
5025 2020-04-24 Kamil Rytarowski <n54@gmx.com>
5026
5027 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
5028 (remove_fork_catchpoint, post_startup_inferior)
5029 (post_attach): Move...
5030 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
5031 (remove_fork_catchpoint, post_startup_inferior)
5032 (post_attach): ...here.
5033 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
5034 (remove_fork_catchpoint, post_startup_inferior)
5035 (post_attach): Move...
5036 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
5037 (remove_fork_catchpoint, post_startup_inferior)
5038 (post_attach): ...here.
5039
5040 2020-04-24 Tom Tromey <tromey@adacore.com>
5041
5042 * nat/windows-nat.h (struct windows_thread_info)
5043 <pc_adjusted>: New member.
5044 * windows-nat.c (windows_fetch_one_register): Check
5045 pc_adjusted.
5046 (windows_nat_target::get_windows_debug_event)
5047 (windows_nat_target::wait): Set pc_adjusted.
5048
5049 2020-04-24 Tom de Vries <tdevries@suse.de>
5050
5051 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
5052 Run gdb-add-index inside temp dir.
5053
5054 2020-04-23 Tom Tromey <tromey@adacore.com>
5055
5056 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
5057 in loop.
5058
5059 2020-04-23 Luis Machado <luis.machado@linaro.org>
5060
5061 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
5062 get_frame_register instead of gdbarch_unwind_pc.
5063
5064 2020-04-23 Tom de Vries <tdevries@suse.de>
5065
5066 * symtab.c (lookup_global_symbol): Prefer def over decl.
5067
5068 2020-04-23 Tom de Vries <tdevries@suse.de>
5069
5070 PR symtab/25807
5071 * block.c (best_symbol, better_symbol): Promote to external.
5072 * block.h (best_symbol, better_symbol): Declare.
5073 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
5074 decl.
5075
5076 2020-04-23 Tom Tromey <tromey@adacore.com>
5077
5078 PR ada/25837:
5079 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
5080 "const char *", not a "const std::string &".
5081 <name_and_matcher::operator==>: Update.
5082 * unittests/lookup_name_info-selftests.c: Change type of
5083 "result".
5084
5085 2020-04-23 Tom Tromey <tom@tromey.com>
5086
5087 * inferior.h (iterate_over_inferiors): Don't declare.
5088 * inferior.c (iterate_over_inferiors): Remove.
5089 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
5090 Remove.
5091 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
5092 use iterate_over_inferiors.
5093 (darwin_resume_inferior_it)
5094 (struct resume_inferior_threads_param)
5095 (darwin_resume_inferior_threads_it): Remove.
5096 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
5097
5098 2020-04-23 Tom de Vries <tdevries@suse.de>
5099
5100 * blockframe.c (find_pc_partial_function): Use
5101 find_pc_sect_compunit_symtab rather than
5102 objfile->sf->qf->find_pc_sect_compunit_symtab.
5103
5104 2020-04-22 Tom de Vries <tdevries@suse.de>
5105
5106 PR symtab/25764
5107 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
5108 in psymtabs.
5109
5110 2020-04-22 Tom de Vries <tdevries@suse.de>
5111
5112 PR symtab/25801
5113 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
5114 symtabs.
5115
5116 2020-04-22 Tom de Vries <tdevries@suse.de>
5117
5118 PR symtab/25700
5119 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
5120 CU if already created.
5121
5122 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5123
5124 * infrun.c (displaced_step_fixup): Switch to the event_thread
5125 before calling displaced_step_restore, not after.
5126
5127 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5128
5129 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
5130 its inferior is not recorded by us.
5131 (record_btrace_target_open): Replace call to
5132 all_non_exited_threads () with call to current_inferior
5133 ()->non_exited_threads ().
5134 (record_btrace_target::stop_recording): Likewise.
5135 (record_btrace_target::close): Likewise.
5136 (record_btrace_target::wait): Likewise.
5137 (record_btrace_target::record_stop_replaying): Likewise.
5138
5139 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5140
5141 * btrace.c (btrace_enable): Throw an error on double enables and
5142 when enabling recording fails.
5143 (btrace_disable): Throw an error if the thread is not recorded.
5144
5145 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5146
5147 * record-btrace.c (record_btrace_target::fetch_registers): Forward
5148 request if we do not have a thread_info.
5149
5150 2020-04-21 Tom de Vries <tdevries@suse.de>
5151
5152 PR gdb/25471
5153 * thread.c
5154 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
5155 exception in get_frame_id.
5156
5157 2020-04-20 Tom Tromey <tromey@adacore.com>
5158
5159 * python/python.c (struct gdbpy_event): Mark move constructor as
5160 noexcept.
5161 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
5162 constructor as noexcept.
5163 * completer.h (struct completion_result): Mark move constructor as
5164 noexcept.
5165 * completer.c (completion_result::completion_result): Use
5166 initialization style. Don't call reset_match_list.
5167
5168 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
5169
5170 * MAINTAINERS (Write After Approval): Add myself.
5171
5172 2020-04-18 Tom Tromey <tom@tromey.com>
5173
5174 * windows-tdep.c (init_w32_command_list)
5175 (w32_prefix_command_valid): Restore.
5176 (_initialize_windows_tdep): Call init_w32_command_list.
5177
5178 2020-04-18 Tom Tromey <tom@tromey.com>
5179
5180 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
5181 * value.c (value_fn_field): Update.
5182 * valops.c (find_function_in_inferior)
5183 (value_allocate_space_in_inferior): Update.
5184 * tui/tui-winsource.c (tui_update_source_windows_with_line):
5185 Update.
5186 * tui/tui-source.c (tui_source_window::set_contents): Update.
5187 * symtab.c (lookup_global_or_static_symbol)
5188 (find_function_start_sal_1, skip_prologue_sal)
5189 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
5190 * symmisc.c (dump_msymbols, dump_symtab_1)
5191 (maintenance_print_one_line_table): Update.
5192 * symfile.c (init_entry_point_info, section_is_mapped)
5193 (list_overlays_command, simple_read_overlay_table)
5194 (simple_overlay_update_1): Update.
5195 * stap-probe.c (handle_stap_probe): Update.
5196 * stabsread.c (dbx_init_float_type, define_symbol)
5197 (read_one_struct_field, read_enum_type, read_range_type): Update.
5198 * source.c (info_line_command): Update.
5199 * python/python.c (gdbpy_source_objfile_script)
5200 (gdbpy_execute_objfile_script): Update.
5201 * python/py-type.c (save_objfile_types): Update.
5202 * python/py-objfile.c (py_free_objfile): Update.
5203 * python/py-inferior.c (python_new_objfile): Update.
5204 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
5205 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
5206 (maintenance_check_psymtabs): Update.
5207 * printcmd.c (info_address_command): Update.
5208 * objfiles.h (struct objfile) <arch>: New method, from
5209 get_objfile_arch.
5210 (get_objfile_arch): Don't declare.
5211 * objfiles.c (get_objfile_arch): Remove.
5212 (filter_overlapping_sections): Update.
5213 * minsyms.c (msymbol_is_function): Update.
5214 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
5215 (output_nondebug_symbol): Update.
5216 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
5217 (mdebug_expand_psymtab): Update.
5218 * machoread.c (macho_add_oso_symfile): Update.
5219 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
5220 Update.
5221 * linux-fork.c (checkpoint_command): Update.
5222 * linespec.c (convert_linespec_to_sals): Update.
5223 * jit.c (finalize_symtab): Update.
5224 * infrun.c (insert_exception_resume_from_probe): Update.
5225 * ia64-tdep.c (ia64_find_unwind_table): Update.
5226 * hppa-tdep.c (internalize_unwinds): Update.
5227 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
5228 Update.
5229 * gcore.c (call_target_sbrk): Update.
5230 * elfread.c (record_minimal_symbol, elf_symtab_read)
5231 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
5232 (elf_gnu_ifunc_resolve_by_got): Update.
5233 * dwarf2/read.c (create_addrmap_from_index)
5234 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
5235 (read_debug_names_from_section)
5236 (process_psymtab_comp_unit_reader, add_partial_symbol)
5237 (add_partial_subprogram, process_full_comp_unit)
5238 (read_file_scope, read_func_scope, read_lexical_block_scope)
5239 (read_call_site_scope, dwarf2_ranges_read)
5240 (dwarf2_record_block_ranges, dwarf2_add_field)
5241 (mark_common_block_symbol_computed, read_tag_pointer_type)
5242 (read_tag_string_type, dwarf2_init_float_type)
5243 (dwarf2_init_complex_target_type, read_base_type)
5244 (partial_die_info::read, partial_die_info::read)
5245 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
5246 (dwarf2_fetch_die_loc_sect_off): Update.
5247 * dwarf2/loc.c (dwarf2_find_location_expression)
5248 (class dwarf_evaluate_loc_desc, rw_pieced_value)
5249 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
5250 (dwarf2_loc_desc_get_symbol_read_needs)
5251 (locexpr_describe_location_piece, locexpr_describe_location_1)
5252 (loclist_describe_location): Update.
5253 * dwarf2/index-write.c (write_debug_names): Update.
5254 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
5255 * dtrace-probe.c (dtrace_process_dof): Update.
5256 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
5257 (process_one_symbol): Update.
5258 * ctfread.c (ctf_init_float_type, read_base_type): Update.
5259 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
5260 (coff_read_enum_type): Update.
5261 * cli/cli-cmds.c (edit_command, list_command): Update.
5262 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
5263 * breakpoint.c (create_overlay_event_breakpoint)
5264 (create_longjmp_master_breakpoint)
5265 (create_std_terminate_master_breakpoint)
5266 (create_exception_master_breakpoint, get_sal_arch): Update.
5267 * block.c (block_gdbarch): Update.
5268 * annotate.c (annotate_source_line): Update.
5269
5270 2020-04-17 Tom Tromey <tromey@adacore.com>
5271
5272 * auto-load.c (show_auto_load_cmd): Remove.
5273 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
5274 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
5275 (maintenance_print_arc_command): Remove.
5276 * tui/tui-win.c (tui_command): Remove.
5277 (tui_get_cmd_list): Use add_basic_prefix_cmd.
5278 * tui/tui-layout.c (tui_layout_command): Remove.
5279 (_initialize_tui_layout): Use add_basic_prefix_cmd.
5280 * python/python.c (user_set_python, user_show_python): Remove.
5281 (_initialize_python): Use add_basic_prefix_cmd,
5282 add_show_prefix_cmd.
5283 * guile/guile.c (set_guile_command, show_guile_command): Remove.
5284 (install_gdb_commands): Use add_basic_prefix_cmd,
5285 add_show_prefix_cmd.
5286 (info_guile_command): Remove.
5287 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
5288 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
5289 add_show_prefix_cmd.
5290 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
5291 Remove do_set and do_show parameters.
5292 * cli/cli-style.c (set_style, show_style): Remove.
5293 (_initialize_cli_style): Use add_basic_prefix_cmd,
5294 add_show_prefix_cmd.
5295 (cli_style_option::add_setshow_commands): Remove do_set and
5296 do_show parameters.
5297 (cli_style_option::add_setshow_commands): Use
5298 add_basic_prefix_cmd, add_show_prefix_cmd.
5299 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
5300 (set_style_name): Remove.
5301 * cli/cli-dump.c (dump_command, append_command): Remove.
5302 (srec_dump_command, ihex_dump_command, verilog_dump_command)
5303 (tekhex_dump_command, binary_dump_command)
5304 (binary_append_command): Remove.
5305 (_initialize_cli_dump): Use add_basic_prefix_cmd.
5306 * windows-tdep.c (w32_prefix_command_valid): Remove global.
5307 (init_w32_command_list): Remove; move into ...
5308 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
5309 * valprint.c (set_print, show_print, set_print_raw)
5310 (show_print_raw): Remove.
5311 (_initialize_valprint): Use add_basic_prefix_cmd,
5312 add_show_prefix_cmd.
5313 * typeprint.c (set_print_type, show_print_type): Remove.
5314 (_initialize_typeprint): Use add_basic_prefix_cmd,
5315 add_show_prefix_cmd.
5316 * record.c (set_record_command, show_record_command): Remove.
5317 (_initialize_record): Use add_basic_prefix_cmd,
5318 add_show_prefix_cmd.
5319 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
5320 add_show_prefix_cmd.
5321 (info_command, show_command, set_debug, show_debug): Remove.
5322 * top.h (set_history, show_history): Don't declare.
5323 * top.c (set_history, show_history): Remove.
5324 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
5325 (unset_tdesc_cmd): Remove.
5326 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
5327 add_show_prefix_cmd.
5328 * symtab.c (info_module_command): Remove.
5329 (_initialize_symtab): Use add_basic_prefix_cmd.
5330 * symfile.c (overlay_command): Remove.
5331 (_initialize_symfile): Use add_basic_prefix_cmd.
5332 * sparc64-tdep.c (info_adi_command): Remove.
5333 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
5334 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
5335 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
5336 add_show_prefix_cmd.
5337 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
5338 (_initialize_serial): Use add_basic_prefix_cmd,
5339 add_show_prefix_cmd.
5340 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
5341 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
5342 add_show_prefix_cmd.
5343 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
5344 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
5345 add_show_prefix_cmd.
5346 * riscv-tdep.c (show_riscv_command, set_riscv_command)
5347 (show_debug_riscv_command, set_debug_riscv_command): Remove.
5348 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
5349 add_show_prefix_cmd.
5350 * remote.c (remote_command, set_remote_cmd): Remove.
5351 (_initialize_remote): Use add_basic_prefix_cmd.
5352 * record-full.c (set_record_full_command)
5353 (show_record_full_command): Remove.
5354 (_initialize_record_full): Use add_basic_prefix_cmd,
5355 add_show_prefix_cmd.
5356 * record-btrace.c (cmd_set_record_btrace)
5357 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
5358 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
5359 (cmd_show_record_btrace_pt): Remove.
5360 (_initialize_record_btrace): Use add_basic_prefix_cmd,
5361 add_show_prefix_cmd.
5362 * ravenscar-thread.c (set_ravenscar_command)
5363 (show_ravenscar_command): Remove.
5364 (_initialize_ravenscar): Use add_basic_prefix_cmd,
5365 add_show_prefix_cmd.
5366 * mips-tdep.c (show_mips_command, set_mips_command)
5367 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
5368 add_show_prefix_cmd.
5369 * maint.c (maintenance_command, maintenance_info_command)
5370 (maintenance_check_command, maintenance_print_command)
5371 (maintenance_set_cmd, maintenance_show_cmd): Remove.
5372 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
5373 add_show_prefix_cmd.
5374 (show_per_command_cmd): Remove.
5375 * maint-test-settings.c (maintenance_set_test_settings_cmd):
5376 Remove.
5377 (maintenance_show_test_settings_cmd): Remove.
5378 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
5379 add_show_prefix_cmd.
5380 * maint-test-options.c (maintenance_test_options_command):
5381 Remove.
5382 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
5383 * macrocmd.c (macro_command): Remove
5384 (_initialize_macrocmd): Use add_basic_prefix_cmd.
5385 * language.c (set_check, show_check): Remove.
5386 (_initialize_language): Use add_basic_prefix_cmd,
5387 add_show_prefix_cmd.
5388 * infcmd.c (unset_command): Remove.
5389 (_initialize_infcmd): Use add_basic_prefix_cmd.
5390 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
5391 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
5392 add_show_prefix_cmd.
5393 * go32-nat.c (go32_info_dos_command): Remove.
5394 (_initialize_go32_nat): Use add_basic_prefix_cmd.
5395 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
5396 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
5397 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
5398 (_initialize_frame): Use add_basic_prefix_cmd,
5399 add_show_prefix_cmd.
5400 * dcache.c (set_dcache_command, show_dcache_command): Remove.
5401 (_initialize_dcache): Use add_basic_prefix_cmd,
5402 add_show_prefix_cmd.
5403 * cp-support.c (maint_cplus_command): Remove.
5404 (_initialize_cp_support): Use add_basic_prefix_cmd.
5405 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
5406 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
5407 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
5408 add_basic_prefix_cmd, add_show_prefix_cmd.
5409 * breakpoint.c (save_command): Remove.
5410 (_initialize_breakpoint): Use add_basic_prefix_cmd.
5411 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
5412 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
5413 add_show_prefix_cmd.
5414 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
5415 (set_ada_command, show_ada_command): Remove.
5416 (_initialize_ada_language): Use add_basic_prefix_cmd,
5417 add_show_prefix_cmd.
5418 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
5419
5420 2020-04-16 Kamil Rytarowski <n54@gmx.com>
5421
5422 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
5423 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
5424
5425 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
5426
5427 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
5428 warning messages.
5429
5430 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
5431
5432 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
5433 import table is not at beginning of .idata section.
5434
5435 2020-04-16 Pedro Alves <palves@redhat.com>
5436
5437 * inferior.c (delete_inferior): Use delete operator directly
5438 instead of delete_program_space.
5439 * progspace.c (add_program_space): New, factored out from
5440 program_space::program_space.
5441 (remove_program_space): New, factored out from
5442 delete_program_space.
5443 (program_space::program_space): Remove intro comment. Rewrite.
5444 (program_space::~program_space): Remove intro comment. Call
5445 remove_program_space.
5446 (delete_program_space): Delete.
5447 * progspace.h (program_space::program_space): Make explicit. Move
5448 intro comment here, adjusted.
5449 (program_space::~program_space): Move intro comment here,
5450 adjusted.
5451 (delete_program_space): Remove.
5452
5453 2020-04-16 Tom Tromey <tromey@adacore.com>
5454
5455 * windows-nat.c (windows_nat::handle_access_violation): New
5456 function.
5457 * nat/windows-nat.h (handle_access_violation): Declare.
5458 * nat/windows-nat.c (handle_exception): Move Cygwin code to
5459 windows-nat.c. Call handle_access_violation.
5460
5461 2020-04-16 Tom de Vries <tdevries@suse.de>
5462
5463 PR symtab/25791
5464 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
5465 CUs without psymtab.
5466
5467 2020-04-16 Kevin Buettner <kevinb@redhat.com>
5468
5469 * python/python.c (do_start_initialization): Don't call
5470 PyEval_InitThreads for Python 3.9 and beyond.
5471
5472 2020-04-15 Kamil Rytarowski <n54@gmx.com>
5473
5474 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
5475 thread functions.
5476 (obsd_nat_target::wait): Likewise.
5477
5478 2020-04-15 Tom Tromey <tromey@adacore.com>
5479
5480 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
5481 (DEBUG_EXCEPT): Use debug_printf.
5482
5483 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
5484
5485 * completer.c (class completion_tracker::completion_hash_entry)
5486 <hash_name>: New member function.
5487 (completion_tracker::discard_completions): New callback to hash a
5488 completion_hash_entry, pass this to htab_create_alloc.
5489
5490 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
5491
5492 * windows-nat.c (windows_make_so): Warn rather than stopping with
5493 an error if realpath() fails.
5494
5495 2020-04-14 Kamil Rytarowski <n54@gmx.com>
5496
5497 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
5498 (nbsd_nat_target::info_proc): Add do_status.
5499
5500 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
5501 Tom de Vries <tdevries@suse.de>
5502
5503 PR symtab/25718
5504 * psympriv.h (struct partial_symtab::read_symtab)
5505 (struct partial_symtab::expand_psymtab)
5506 (struct partial_symtab::read_dependencies): Update comments.
5507 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
5508 read_symtab for includer.
5509 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
5510 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
5511 (struct dwarf2_include_psymtab::m_readin): Remove.
5512 (struct dwarf2_include_psymtab::includer): New member function.
5513 (dwarf2_psymtab::expand_psymtab): Assert !readin.
5514
5515 2020-04-14 Tom de Vries <tdevries@suse.de>
5516
5517 PR symtab/25720
5518 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
5519 with NULL symbol_matcher and lookup_name.
5520 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
5521 and lookup_name.
5522 * dwarf2/read.c (dw2_expand_symtabs_matching)
5523 (dw2_debug_names_expand_symtabs_matching): Same.
5524 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
5525 Make lookup_name a pointer. Update comment.
5526 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
5527 lookup_name being a pointer.
5528 * symfile.c (expand_symtabs_matching): Same.
5529 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
5530 * linespec.c (iterate_over_all_matching_symtabs): Same.
5531
5532 2020-04-13 Tom Tromey <tom@tromey.com>
5533
5534 * run-on-main-thread.c: Update include.
5535 * unittests/main-thread-selftests.c: Update include.
5536 * tui/tui-win.c: Update include.
5537 * tui/tui-io.c: Update include.
5538 * tui/tui-interp.c: Update include.
5539 * tui/tui-hooks.c: Update include.
5540 * top.h: Update include.
5541 * top.c: Update include.
5542 * ser-base.c: Update include.
5543 * remote.c: Update include.
5544 * remote-notif.c: Update include.
5545 * remote-fileio.c: Update include.
5546 * record-full.c: Update include.
5547 * record-btrace.c: Update include.
5548 * python/python.c: Update include.
5549 * posix-hdep.c: Update include.
5550 * mingw-hdep.c: Update include.
5551 * mi/mi-main.c: Update include.
5552 * mi/mi-interp.c: Update include.
5553 * main.c: Update include.
5554 * linux-nat.c: Update include.
5555 * interps.c: Update include.
5556 * infrun.c: Update include.
5557 * inf-loop.c: Update include.
5558 * event-top.c: Update include.
5559 * event-loop.c: Move to ../gdbsupport/.
5560 * event-loop.h: Move to ../gdbsupport/.
5561 * async-event.h: Update include.
5562 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
5563
5564 2020-04-13 Tom Tromey <tom@tromey.com>
5565
5566 * tui/tui-win.c: Include async-event.h.
5567 * remote.c: Include async-event.h.
5568 * remote-notif.c: Include async-event.h.
5569 * record-full.c: Include async-event.h.
5570 * record-btrace.c: Include async-event.h.
5571 * infrun.c: Include async-event.h.
5572 * event-top.c: Include async-event.h.
5573 * event-loop.h: Move some declarations to async-event.h.
5574 * event-loop.c: Don't include ser-event.h or top.h. Move some
5575 code to async-event.c.
5576 * async-event.h: New file.
5577 * async-event.c: New file.
5578 * Makefile.in (COMMON_SFILES): Add async-event.c.
5579 (HFILES_NO_SRCDIR): Add async-event.h.
5580
5581 2020-04-13 Tom Tromey <tom@tromey.com>
5582
5583 * utils.c (flush_streams): New function.
5584 * event-loop.c (gdb_wait_for_event): Call flush_streams.
5585
5586 2020-04-13 Tom Tromey <tom@tromey.com>
5587
5588 * event-loop.c (handle_file_event): Use warning, not
5589 printf_unfiltered.
5590
5591 2020-04-13 Tom Tromey <tom@tromey.com>
5592
5593 * event-loop.c: Include <chrono>.
5594
5595 2020-04-13 Tom Tromey <tom@tromey.com>
5596
5597 * gdb_select.h: Move to ../gdbsupport/.
5598 * event-loop.c: Update include path.
5599 * top.c: Update include path.
5600 * ser-base.c: Update include path.
5601 * ui-file.c: Update include path.
5602 * ser-tcp.c: Update include path.
5603 * guile/scm-ports.c: Update include path.
5604 * posix-hdep.c: Update include path.
5605 * ser-unix.c: Update include path.
5606 * gdb_usleep.c: Update include path.
5607 * mingw-hdep.c: Update include path.
5608 * inflow.c: Update include path.
5609 * infrun.c: Update include path.
5610 * event-top.c: Update include path.
5611
5612 2020-04-13 Tom Tromey <tom@tromey.com>
5613
5614 * configure: Rebuild.
5615 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
5616
5617 2020-04-13 Tom Tromey <tom@tromey.com>
5618
5619 * event-loop.h (start_event_loop): Don't declare.
5620 * event-loop.c (start_event_loop): Move...
5621 * main.c (start_event_loop): ...here. Now static.
5622
5623 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
5624
5625 * MAINTAINERS: Update my email address.
5626
5627 2020-04-12 Kamil Rytarowski <n54@gmx.com>
5628
5629 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
5630 IP_ALL.
5631
5632 2020-04-12 Kamil Rytarowski <n54@gmx.com>
5633
5634 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
5635 (nbsd_nat_target::info_proc): Add do_cmdline.
5636
5637 2020-04-12 Kamil Rytarowski <n54@gmx.com>
5638
5639 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
5640 (nbsd_nat_target::info_proc): Add do_cwd.
5641
5642 2020-04-12 Kamil Rytarowski <n54@gmx.com>
5643
5644 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
5645
5646 2020-04-11 Kamil Rytarowski <n54@gmx.com>
5647
5648 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
5649 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
5650 (nbsd_nat_target::info_proc): New functions.
5651 * nbsd-nat.c (kinfo_get_vmmap): New function.
5652 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
5653 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
5654 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
5655 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
5656 functions.
5657 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
5658 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
5659 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
5660 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
5661 (KINFO_VME_FLAG_GROWS_DOWN): New.
5662
5663 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
5664
5665 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
5666 bit shift.
5667
5668 2020-04-10 Tom Tromey <tromey@adacore.com>
5669
5670 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
5671
5672 2020-04-10 Tom Tromey <tromey@adacore.com>
5673
5674 * symtab.c (get_symbol_address, get_msymbol_address): Skip
5675 separate debug files.
5676
5677 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
5678
5679 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5680 Move to...
5681 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5682 ... here.
5683 * windows-nat.c (windows_nat_target::get_windows_debug_event):
5684 Check for STATUS_WX86_BREAKPOINT.
5685 (windows_nat_target::wait): Same.
5686
5687 2020-04-10 Tom de Vries <tdevries@suse.de>
5688
5689 PR cli/25808
5690 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
5691
5692 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
5693
5694 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
5695 (Write After Approval): Remove Tom de Vries.
5696
5697 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
5698
5699 revert partially:
5700 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5701
5702 * buildsym.c (record_line): Fix undefined behavior and preserve
5703 lines at eof.
5704
5705 2020-04-09 Kamil Rytarowski <n54@gmx.com>
5706
5707 * auxv.h (svr4_auxv_parse): New.
5708 * auxv.c (default_auxv_parse): Split into default_auxv_parse
5709 and generic_auxv_parse.
5710 (svr4_auxv_parse): Add.
5711 * obsd-tdep.c: Include "auxv.h".
5712 (obsd_auxv_parse): Remove.
5713 (obsd_init_abi): Remove comment.
5714 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
5715 from `obsd_auxv_parse' to `svr4_auxv_parse'.
5716 * nbsd-tdep.c: Include "auxv.h".
5717 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
5718
5719 2020-04-08 Tom Tromey <tromey@adacore.com>
5720
5721 * nat/windows-nat.h (last_wait_event): Don't declare.
5722 (wait_for_debug_event): Update comment.
5723 * nat/windows-nat.c (last_wait_event): Now static.
5724
5725 2020-04-08 Tom Tromey <tromey@adacore.com>
5726
5727 * windows-nat.c (wait_for_debug_event): Move to
5728 nat/windows-nat.c.
5729 * nat/windows-nat.h (wait_for_debug_event): Declare.
5730 * nat/windows-nat.c (wait_for_debug_event): Move from
5731 windows-nat.c. No longer static.
5732
5733 2020-04-08 Tom Tromey <tromey@adacore.com>
5734
5735 * windows-nat.c (get_windows_debug_event): Use
5736 fetch_pending_stop.
5737 * nat/windows-nat.h (fetch_pending_stop): Declare.
5738 * nat/windows-nat.c (fetch_pending_stop): New function.
5739
5740 2020-04-08 Tom Tromey <tromey@adacore.com>
5741
5742 * windows-nat.c (windows_continue): Use matching_pending_stop and
5743 continue_last_debug_event.
5744 * nat/windows-nat.h (matching_pending_stop)
5745 (continue_last_debug_event): Declare.
5746 * nat/windows-nat.c (DEBUG_EVENTS): New define.
5747 (matching_pending_stop, continue_last_debug_event): New
5748 functions.
5749
5750 2020-04-08 Tom Tromey <tromey@adacore.com>
5751
5752 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
5753 (handle_exception_result): Move to nat/windows-nat.h.
5754 (DEBUG_EXCEPTION_SIMPLE): Remove.
5755 (windows_nat::handle_ms_vc_exception): New function.
5756 (handle_exception): Move to nat/windows-nat.c.
5757 (get_windows_debug_event): Update.
5758 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
5759 nat/windows-nat.c.
5760 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
5761 (handle_exception_result): Move from windows-nat.c.
5762 (handle_exception): Declare.
5763 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
5764 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
5765 windows-nat.c.
5766
5767 2020-04-08 Tom Tromey <tromey@adacore.com>
5768
5769 * windows-nat.c (exception_count, event_count): Remove.
5770 (handle_exception, get_windows_debug_event)
5771 (do_initial_windows_stuff): Update.
5772
5773 2020-04-08 Tom Tromey <tromey@adacore.com>
5774
5775 * windows-nat.c (windows_nat::handle_load_dll)
5776 (windows_nat::handle_unload_dll): Rename. No longer static.
5777 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
5778 Declare.
5779
5780 2020-04-08 Tom Tromey <tromey@adacore.com>
5781
5782 * complaints.h (stop_whining): Declare at top-level.
5783 (complaint): Don't declare stop_whining.
5784
5785 2020-04-08 Tom Tromey <tromey@adacore.com>
5786
5787 * windows-nat.c (windows_nat::handle_output_debug_string):
5788 Rename. No longer static.
5789 * nat/windows-nat.h (handle_output_debug_string): Declare.
5790
5791 2020-04-08 Tom Tromey <tromey@adacore.com>
5792
5793 * windows-nat.c (current_process_handle, current_process_id)
5794 (main_thread_id, last_sig, current_event, last_wait_event)
5795 (current_windows_thread, desired_stop_thread_id, pending_stops)
5796 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
5797 (display_selectors, fake_create_process)
5798 (get_windows_debug_event): Update.
5799 * nat/windows-nat.h (current_process_handle, current_process_id)
5800 (main_thread_id, last_sig, current_event, last_wait_event)
5801 (current_windows_thread, desired_stop_thread_id, pending_stops)
5802 (struct pending_stop, siginfo_er): Move from windows-nat.c.
5803 * nat/windows-nat.c (current_process_handle, current_process_id)
5804 (main_thread_id, last_sig, current_event, last_wait_event)
5805 (current_windows_thread, desired_stop_thread_id, pending_stops)
5806 (siginfo_er): New globals. Move from windows-nat.c.
5807
5808 2020-04-08 Tom Tromey <tromey@adacore.com>
5809
5810 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
5811 (handle_load_dll): Update.
5812 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
5813
5814 2020-04-08 Tom Tromey <tromey@adacore.com>
5815
5816 * windows-nat.c (enum thread_disposition_type): Move to
5817 nat/windows-nat.h.
5818 (windows_nat::thread_rec): Rename from thread_rec. No longer
5819 static.
5820 (windows_add_thread, windows_nat_target::fetch_registers)
5821 (windows_nat_target::store_registers, handle_exception)
5822 (windows_nat_target::resume, get_windows_debug_event)
5823 (windows_nat_target::get_tib_address)
5824 (windows_nat_target::thread_name)
5825 (windows_nat_target::thread_alive): Update.
5826 * nat/windows-nat.h (enum thread_disposition_type): Move from
5827 windows-nat.c.
5828 (thread_rec): Declare.
5829
5830 2020-04-08 Tom Tromey <tromey@adacore.com>
5831
5832 * windows-nat.c: Add "using namespace".
5833 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
5834 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
5835
5836 2020-04-08 Tom Tromey <tromey@adacore.com>
5837
5838 * nat/windows-nat.h (struct windows_thread_info): Declare
5839 destructor.
5840 * nat/windows-nat.c (~windows_thread_info): New.
5841
5842 2020-04-08 Tom Tromey <tromey@adacore.com>
5843
5844 PR gdb/22992
5845 * windows-nat.c (current_event): Update comment.
5846 (last_wait_event, desired_stop_thread_id): New globals.
5847 (struct pending_stop): New.
5848 (pending_stops): New global.
5849 (windows_nat_target) <stopped_by_sw_breakpoint>
5850 <supports_stopped_by_sw_breakpoint>: New methods.
5851 (windows_fetch_one_register): Add assertions. Adjust PC.
5852 (windows_continue): Handle pending stops. Suspend other threads
5853 when stepping. Use last_wait_event
5854 (wait_for_debug_event): New function.
5855 (get_windows_debug_event): Use wait_for_debug_event. Handle
5856 pending stops. Queue spurious stops.
5857 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
5858 (windows_nat_target::kill): Use wait_for_debug_event.
5859 * nat/windows-nat.h (struct windows_thread_info)
5860 <stopped_at_software_breakpoint>: New field.
5861 * nat/windows-nat.c (windows_thread_info::resume): Clear
5862 stopped_at_software_breakpoint.
5863
5864 2020-04-08 Tom Tromey <tromey@adacore.com>
5865
5866 * windows-nat.c (enum thread_disposition_type): New.
5867 (thread_rec): Replace "get_context" parameter with "disposition";
5868 change type.
5869 (windows_add_thread, windows_nat_target::fetch_registers)
5870 (windows_nat_target::store_registers, handle_exception)
5871 (windows_nat_target::resume, get_windows_debug_event)
5872 (windows_nat_target::get_tib_address)
5873 (windows_nat_target::thread_name)
5874 (windows_nat_target::thread_alive): Update.
5875
5876 2020-04-08 Tom Tromey <tromey@adacore.com>
5877
5878 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
5879 (windows_continue): Use windows_continue::resume.
5880 * nat/windows-nat.h (struct windows_thread_info) <suspend,
5881 resume>: Declare new methods.
5882 * nat/windows-nat.c: New file.
5883 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
5884
5885 2020-04-08 Tom Tromey <tromey@adacore.com>
5886
5887 * windows-nat.c (windows_add_thread, windows_delete_thread)
5888 (windows_nat_target::fetch_registers)
5889 (windows_nat_target::store_registers, fake_create_process)
5890 (windows_nat_target::resume, windows_nat_target::resume)
5891 (get_windows_debug_event, windows_nat_target::wait)
5892 (windows_nat_target::pid_to_str)
5893 (windows_nat_target::get_tib_address)
5894 (windows_nat_target::get_ada_task_ptid)
5895 (windows_nat_target::thread_name)
5896 (windows_nat_target::thread_alive): Use lwp, not tid.
5897
5898 2020-04-08 Tom Tromey <tromey@adacore.com>
5899
5900 * windows-nat.c (handle_exception)
5901 (windows_nat_target::thread_name): Update.
5902 * nat/windows-nat.h (windows_thread_info): Remove destructor.
5903 <name>: Now unique_xmalloc_ptr.
5904
5905 2020-04-08 Tom Tromey <tromey@adacore.com>
5906
5907 * windows-nat.c (thread_rec)
5908 (windows_nat_target::fetch_registers): Update.
5909 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
5910 Update comment.
5911 <debug_registers_changed, reload_context>: Now bool.
5912
5913 2020-04-08 Tom Tromey <tromey@adacore.com>
5914
5915 * windows-nat.c (windows_add_thread): Use new.
5916 (windows_init_thread_list, windows_delete_thread): Use delete.
5917 (get_windows_debug_event): Update.
5918 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
5919 destructor, and initializers.
5920
5921 2020-04-08 Tom Tromey <tromey@adacore.com>
5922
5923 * windows-nat.c (struct windows_thread_info): Remove.
5924 * nat/windows-nat.h: New file.
5925
5926 2020-04-08 Tom Tromey <tromey@adacore.com>
5927
5928 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
5929 (thread_rec, windows_add_thread, windows_delete_thread)
5930 (windows_continue): Update.
5931
5932 2020-04-08 Tom Tromey <tromey@adacore.com>
5933
5934 * windows-nat.c (struct windows_thread_info): Remove typedef.
5935 (thread_head): Remove.
5936 (thread_list): New global.
5937 (thread_rec, windows_add_thread, windows_init_thread_list)
5938 (windows_delete_thread, windows_continue): Update.
5939
5940 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
5941
5942 * windows-tdep.h (windows_init_abi): Add comment.
5943 (cygwin_init_abi): New declaration.
5944 * windows-tdep.c: Split signal enumeration in two, one for
5945 Windows and one for Cygwin.
5946 (windows_gdb_signal_to_target): Only deal with signal of the
5947 Windows OS ABI.
5948 (cygwin_gdb_signal_to_target): New function.
5949 (windows_init_abi): Rename to windows_init_abi_common, don't set
5950 gdb_signal_to_target gdbarch method. Add new new function with
5951 this name.
5952 (cygwin_init_abi): New function.
5953 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
5954 comment. Don't call windows_init_abi.
5955 (amd64_windows_init_abi): Add comment, call windows_init_abi.
5956 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
5957 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
5958 i386_windows_init_abi_common, don't call windows_init_abi. Add
5959 a new function of this name.
5960 (i386_cygwin_init_abi): New function.
5961 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
5962 OS ABI Cygwin.
5963
5964 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
5965
5966 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
5967 parameter.c.
5968 (dwarf2_read_gdb_index): Update.
5969
5970 2020-04-07 Kamil Rytarowski <n54@gmx.com>
5971
5972 * nbsd-tdep.c: Include "objfiles.h".
5973 (nbsd_skip_solib_resolver): New.
5974 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
5975
5976 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5977
5978 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
5979 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
5980 with DW_LLE_base_addressx are being emitted in DWARFv5.
5981 Add the newly added kind DW_LOC_OFFSET_PAIR also.
5982 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
5983 unsigned integer.
5984
5985 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5986
5987 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
5988 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
5989 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
5990 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
5991 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
5992 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
5993 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
5994
5995
5996 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
5997
5998 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
5999 (read_loclist_index): New function definition.
6000 (lookup_loclist_base): New function definition.
6001 (read_loclist_header): New function definition.
6002 (dwarf2_cu): Add loclist_base and loclist_header field.
6003 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
6004 (read_full_die_1): Read the value of DW_AT_loclists_base.
6005 (read_attribute_reprocess): Handle DW_FORM_loclistx.
6006 (read_attribute_value): Handle DW_FORM_loclistx.
6007 (skip_one_die): Handle DW_FORM_loclistx.
6008 (loclist_header): New structure declaration.
6009 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
6010
6011 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
6012
6013 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
6014 constructor. Remove `addr` parameter from other constructor and
6015 add `per_cu` parameter.
6016 * dwarf2/read.c (create_partial_symtab): Update.
6017
6018 2020-04-07 Tom de Vries <tdevries@suse.de>
6019
6020 PR symtab/25796
6021 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
6022 (partial_die_info::fixup): Inherit has_const_value.
6023
6024 2020-04-07 Tom de Vries <tdevries@suse.de>
6025
6026 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
6027 symbols without address.
6028
6029 2020-04-06 Kamil Rytarowski <n54@gmx.com>
6030
6031 * nbsd-nat.h (struct thread_info): Add forward declaration.
6032 (nbsd_nat_target::thread_alive): Add.
6033 (nbsd_nat_target::thread_name): Likewise.
6034 (nbsd_nat_target::update_thread_list): Likewise.
6035 (update_thread_list::post_attach): Likewise.
6036 (post_attach::pid_to_str): Likewise.
6037 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
6038 (nbsd_thread_lister): Add.
6039 (nbsd_nat_target::thread_alive): Likewise.
6040 (nbsd_nat_target::thread_name): Likewise.
6041 (nbsd_add_threads): Likewise.
6042 (update_thread_list::post_attach): Likewise.
6043 (nbsd_nat_target::update_thread_list): Likewise.
6044 (post_attach::pid_to_str): Likewise.
6045
6046 2020-04-06 Tom Tromey <tromey@adacore.com>
6047
6048 * ada-valprint.c (print_variant_part): Extract the variant field.
6049 (print_field_values): Use the field as the outer value when
6050 recursing.
6051
6052 2020-04-06 Tom Tromey <tromey@adacore.com>
6053
6054 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
6055 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
6056 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
6057 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
6058 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
6059
6060 2020-04-06 Tom Tromey <tromey@adacore.com>
6061
6062 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
6063 TYPE_CODE_ERROR.
6064
6065 2020-04-06 Kamil Rytarowski <n54@gmx.com>
6066
6067 * nbsd-tdep.c: Include "gdbarch.h".
6068 Define enum with NetBSD signal numbers.
6069 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
6070 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
6071 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
6072 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
6073 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
6074 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
6075 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
6076 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
6077 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
6078 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
6079 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
6080 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
6081
6082 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
6083
6084 PR gdb/25325
6085 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
6086
6087 2020-04-03 Tom Tromey <tromey@adacore.com>
6088
6089 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
6090 Read constant block.
6091
6092 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6093
6094 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
6095 (gdb_bfd_get_full_section_contents): New declaration.
6096 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
6097 * windows-tdep.c (is_linked_with_cygwin_dll): Use
6098 gdb_bfd_get_full_section_contents.
6099
6100 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6101
6102 * exec.c (build_section_table): Replace internal_error with
6103 gdb_assert.
6104 (section_table_xfer_memory_partial): Likewise.
6105 * mdebugread.c (parse_partial_symbols): Likewise.
6106 * psymtab.c (lookup_partial_symbol): Likewise.
6107 * utils.c (wrap_here): Likewise.
6108
6109 2020-04-02 Tom Tromey <tromey@adacore.com>
6110
6111 * f-lang.c (build_fortran_types): Use arch_type to initialize
6112 builtin_complex_s32 in the TYPE_CODE_ERROR case.
6113
6114 2020-04-02 Tom Tromey <tromey@adacore.com>
6115
6116 * dwarf2/read.c (partial_die_info::read): Do not create a vector
6117 of attributes.
6118
6119 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
6120 Bernd Edlinger <bernd.edlinger@hotmail.de>
6121 Tom Tromey <tromey@adacore.com>
6122
6123 * buildsym.c (buildsym_compunit::record_line): Remove
6124 deduplication code.
6125
6126 2020-04-02 Tom de Vries <tdevries@suse.de>
6127
6128 PR ada/24671
6129 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
6130
6131 2020-04-02 Tom de Vries <tdevries@suse.de>
6132
6133 * dwarf2/read.c (dwarf2_gdb_index_functions,
6134 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
6135 NULL.
6136 * psymtab.c (psym_lookup_global_symbol_language): New function.
6137 (psym_functions): Init psym_lookup_global_symbol_language with
6138 psym_lookup_global_symbol_language.
6139 * symfile-debug.c (debug_sym_quick_functions): Init
6140 lookup_global_symbol_language with NULL.
6141 * symfile.c (set_initial_language): Remove fixme comment.
6142 * symfile.h (struct quick_symbol_functions): Add
6143 lookup_global_symbol_language.
6144 * symtab.c (find_quick_global_symbol_language): New function.
6145 (find_main_name): Use find_quick_global_symbol_language.
6146
6147 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
6148
6149 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
6150
6151 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6152
6153 * buildsym.c (record_line): Fix undefined behavior and preserve
6154 lines at eof.
6155
6156 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6157
6158 * buildsym.c (record_line): Fix the resizing condition.
6159
6160 2020-04-01 Tom Tromey <tom@tromey.com>
6161
6162 * value.h (value_literal_complex): Add comment.
6163 * valops.c (value_literal_complex): Refer to value.h.
6164
6165 2020-04-01 Tom Tromey <tom@tromey.com>
6166
6167 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
6168 (scalar_type): New rule, from typebase.
6169 (typebase): Use scalar_type. Recognize complex types.
6170 (field_name): Handle FLOAT_KEYWORD.
6171 (ident_tokens): Add _Complex and __complex__.
6172
6173 2020-04-01 Tom Tromey <tom@tromey.com>
6174
6175 PR exp/25299:
6176 * valarith.c (promotion_type, complex_binop): New functions.
6177 (scalar_binop): Handle complex numbers. Use promotion_type.
6178 (value_pos, value_neg, value_complement): Handle complex numbers.
6179
6180 2020-04-01 Tom Tromey <tom@tromey.com>
6181
6182 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
6183 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
6184 (parse_number): Handle complex numbers.
6185
6186 2020-04-01 Tom Tromey <tom@tromey.com>
6187
6188 * c-valprint.c (c_decorations): Change complex suffix to "i".
6189
6190 2020-04-01 Tom Tromey <tom@tromey.com>
6191
6192 * valprint.c (generic_value_print_complex): Use accessors.
6193 * value.h (value_real_part, value_imaginary_part): Declare.
6194 * valops.c (value_real_part, value_imaginary_part): New
6195 functions.
6196 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
6197
6198 2020-04-01 Tom Tromey <tom@tromey.com>
6199
6200 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
6201 (read_range_type): Update.
6202 * mdebugread.c (basic_type): Update.
6203 * go-lang.c (build_go_types): Use init_complex_type.
6204 * gdbtypes.h (struct main_type) <complex_type>: New member.
6205 (init_complex_type): Update.
6206 (arch_complex_type): Don't declare.
6207 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
6208 Make name if none given. Use alloc_type_copy. Look for cached
6209 complex type.
6210 (arch_complex_type): Remove.
6211 (gdbtypes_post_init): Use init_complex_type.
6212 * f-lang.c (build_fortran_types): Use init_complex_type.
6213 * dwarf2/read.c (read_base_type): Update.
6214 * d-lang.c (build_d_types): Use init_complex_type.
6215 * ctfread.c (read_base_type): Update.
6216
6217 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6218
6219 * infrun.c (stop_all_threads): Update assertion, plus when
6220 stopping threads, take into account that we might be trying
6221 to stop an all-stop target.
6222 (stop_waiting): Call 'stop_all_threads' if there exists a
6223 non-stop target.
6224
6225 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6226
6227 * target.h (exists_non_stop_target): New function declaration.
6228 * target.c (exists_non_stop_target): New function.
6229
6230 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
6231
6232 PR gdb/24789
6233 * eval.c (is_integral_or_integral_reference): New function.
6234 (evaluate_subexp_standard): Allow integer references in
6235 pointer arithmetic.
6236
6237 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6238
6239 * remote.c (remote_target::remote_parse_stop_reply): Remove the
6240 check for no ptid in the stop reply when the target is non-stop.
6241
6242 2020-04-01 Tom Tromey <tromey@adacore.com>
6243
6244 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
6245 "name" parameter to rvalue reference. Initialize m_name_holder.
6246 <lookup_name_info>: New overloads.
6247 <name>: Return gdb::string_view.
6248 <c_str>: New method.
6249 <make_ignore_params>: Update.
6250 <search_name_hash>: Update.
6251 <language_lookup_name>: Return const char *.
6252 <m_name>: Change type.
6253 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
6254 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
6255 (lookup_name_info::match_any): Update.
6256 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
6257 Update.
6258 * minsyms.c (linkage_name_str): Update.
6259 * language.c (default_symbol_name_matcher): Update.
6260 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
6261 Update.
6262 * ada-lang.c (ada_fold_name): Change parameter to string_view.
6263 (ada_lookup_name_info::ada_lookup_name_info): Update.
6264 (literal_symbol_name_matcher): Update.
6265
6266 2020-04-01 Tom Tromey <tromey@adacore.com>
6267
6268 * psymtab.c (psymtab_search_name): Remove function.
6269 (psym_lookup_symbol): Create search name and lookup name here.
6270 (lookup_partial_symbol): Remove "name" parameter; add
6271 lookup_name.
6272 (psym_expand_symtabs_for_function): Update.
6273
6274 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
6275
6276 PR tui/25597:
6277 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
6278
6279 2020-03-31 Tom Tromey <tromey@adacore.com>
6280
6281 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
6282 memcpy.
6283
6284 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
6285
6286 * features/riscv/32bit-csr.xml: Regenerated.
6287 * features/riscv/64bit-csr.xml: Regenerated.
6288
6289 2020-03-30 Tom Tromey <tromey@adacore.com>
6290
6291 * ada-valprint.c (print_variant_part): Update.
6292 * ada-lang.h (ada_which_variant_applies): Update.
6293 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
6294 outer_valaddr parameters; replace with "outer" value parameter.
6295 (to_fixed_variant_branch_type): Update.
6296
6297 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6298
6299 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
6300 <list>. Remove inclusion of observable.h.
6301 (PPC_DEBUG_CURRENT_VERSION): Move up define.
6302 (struct arch_lwp_info): New struct.
6303 (class ppc_linux_dreg_interface): New class.
6304 (struct ppc_linux_process_info): New struct.
6305 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
6306 <low_new_clone, low_forget_process, low_prepare_to_resume>
6307 <copy_thread_dreg_state, mark_thread_stale>
6308 <mark_debug_registers_changed, register_hw_breakpoint>
6309 <clear_hw_breakpoint, register_wp, clear_wp>
6310 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
6311 <num_memory_accesses, get_trigger_type>
6312 <create_watchpoint_request, hwdebug_point_cmp>
6313 <init_arch_lwp_info, get_arch_lwp_info>
6314 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
6315 methods.
6316 <struct ptid_hash>: New inner struct.
6317 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
6318 members.
6319 (saved_dabr_value, hwdebug_info, max_slots_number)
6320 (struct hw_break_tuple, struct thread_points, ppc_threads)
6321 (have_ptrace_hwdebug_interface)
6322 (hwdebug_find_thread_points_by_tid)
6323 (hwdebug_insert_point, hwdebug_remove_point): Remove.
6324 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
6325 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
6326 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
6327 use m_dreg_interface.
6328 (hwdebug_point_cmp): Change to...
6329 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
6330 reference arguments instead of pointers.
6331 (ppc_linux_nat_target::ranged_break_num_registers): Use
6332 m_dreg_interface.
6333 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
6334 m_dreg_interface. Call register_hw_breakpoint.
6335 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
6336 m_dreg_interface. Call clear_hw_breakpoint.
6337 (get_trigger_type): Change to...
6338 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
6339 comment.
6340 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
6341 use m_dreg_interface. Call register_hw_breakpoint.
6342 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
6343 use m_dreg_interface. Call clear_hw_breakpoint.
6344 (can_use_watchpoint_cond_accel): Change to...
6345 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
6346 method. Update comment, use m_dreg_interface and
6347 m_process_info.
6348 (calculate_dvc): Change to...
6349 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
6350 m_dreg_interface.
6351 (num_memory_accesses): Change to...
6352 (ppc_linux_nat_target::num_memory_accesses): ...this method.
6353 (check_condition): Change to...
6354 (ppc_linux_nat_target::check_condition): ...this method.
6355 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
6356 comment, use m_dreg_interface.
6357 (create_watchpoint_request): Change to...
6358 (ppc_linux_nat_target::create_watchpoint_request): ...this
6359 method. Use m_dreg_interface.
6360 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
6361 m_dreg_interface. Call register_hw_breakpoint or register_wp.
6362 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
6363 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
6364 (ppc_linux_nat_target::low_forget_process)
6365 (ppc_linux_nat_target::low_new_fork)
6366 (ppc_linux_nat_target::low_new_clone)
6367 (ppc_linux_nat_target::low_delete_thread)
6368 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
6369 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
6370 only call mark_thread_stale.
6371 (ppc_linux_thread_exit): Remove.
6372 (ppc_linux_nat_target::stopped_data_address): Change to...
6373 (ppc_linux_nat_target::low_stopped_data_address): This. Add
6374 comment, use m_dreg_interface and m_thread_hw_breakpoints.
6375 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
6376 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
6377 comment. Call low_stopped_data_address.
6378 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
6379 m_dreg_interface.
6380 (ppc_linux_nat_target::masked_watch_num_registers): Use
6381 m_dreg_interface.
6382 (ppc_linux_nat_target::copy_thread_dreg_state)
6383 (ppc_linux_nat_target::mark_thread_stale)
6384 (ppc_linux_nat_target::mark_debug_registers_changed)
6385 (ppc_linux_nat_target::register_hw_breakpoint)
6386 (ppc_linux_nat_target::clear_hw_breakpoint)
6387 (ppc_linux_nat_target::register_wp)
6388 (ppc_linux_nat_target::clear_wp)
6389 (ppc_linux_nat_target::init_arch_lwp_info)
6390 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
6391 (_initialize_ppc_linux_nat): Remove observer callback.
6392
6393 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6394
6395 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
6396 (ppc_linux_nat_target::auxv_parse)
6397 (ppc_linux_nat_target::read_description)
6398 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
6399 Move up.
6400
6401 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6402
6403 * linux-nat.h (low_new_clone): New method.
6404 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
6405
6406 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6407
6408 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
6409 (dbx_expand_psymtab): ... this.
6410 (start_psymtab): Update.
6411 * mdebugread.c (psymtab_to_symtab_1): Rename to...
6412 (mdebug_expand_psymtab): ... this.
6413 (parse_partial_symbols): Update.
6414 (new_psymtab): Update.
6415 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
6416 (xcoff_expand_psymtab): ... this.
6417 (xcoff_start_psymtab): Update.
6418
6419 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6420
6421 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
6422 <expand_dependencies>: ... this.
6423 * psymtab.c (partial_symtab::read_dependencies): Rename to...
6424 (partial_symtab::expand_dependencies): ... this.
6425 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
6426 Update.
6427 (dwarf2_psymtab::expand_psymtab): Update.
6428 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
6429 * mdebugread.c (psymtab_to_symtab_1): Update.
6430 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
6431
6432 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6433
6434 * psympriv.h (discard_psymtab): Remove.
6435 * dbxread.c (dbx_end_psymtab): Update.
6436 * xcoffread.c (xcoff_end_psymtab): Update.
6437
6438 2020-03-28 Tom Tromey <tom@tromey.com>
6439
6440 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
6441 comment.
6442
6443 2020-03-28 Tom Tromey <tom@tromey.com>
6444
6445 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
6446
6447 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
6448
6449 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
6450
6451 2020-03-26 John Baldwin <jhb@FreeBSD.org>
6452
6453 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
6454
6455 2020-03-26 Tom Tromey <tom@tromey.com>
6456
6457 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
6458 (mark_common_block_symbol_computed, read_tag_string_type)
6459 (attr_to_dynamic_prop, read_subrange_type): Update.
6460 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
6461 to be methods on struct attribute.
6462 (skip_one_die, process_imported_unit_die, read_namespace_alias)
6463 (read_call_site_scope, partial_die_info::read)
6464 (partial_die_info::read, lookup_die_type, follow_die_ref):
6465 Update.
6466 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
6467 from dwarf2_get_ref_die_offset.
6468 (attribute::constant_value): New method, from
6469 dwarf2_get_attr_constant_value.
6470 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
6471 Declare method.
6472 <constant_value>: New method.
6473
6474 2020-03-26 Tom Tromey <tom@tromey.com>
6475
6476 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
6477 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
6478 (dwarf_type_encoding_name): Move to stringify.c.
6479 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
6480 * dwarf2/stringify.c: New file.
6481 * dwarf2/stringify.h: New file.
6482
6483 2020-03-26 Tom Tromey <tom@tromey.com>
6484
6485 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
6486 Rewrite.
6487
6488 2020-03-26 Tom Tromey <tom@tromey.com>
6489
6490 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
6491 methods.
6492 * dwarf2/read.c (lookup_addr_base): Move to die.h.
6493 (lookup_ranges_base): Likewise.
6494 (read_cutu_die_from_dwo, read_full_die_1): Update.
6495
6496 2020-03-26 Tom Tromey <tom@tromey.com>
6497
6498 * dwarf2/read.c (read_import_statement, read_file_scope)
6499 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
6500 (read_lexical_block_scope, read_call_site_scope)
6501 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
6502 (handle_struct_member_die, process_structure_scope)
6503 (update_enumeration_type_from_children)
6504 (process_enumeration_scope, read_array_type, read_common_block)
6505 (read_namespace, read_module, read_subroutine_type): Update.
6506 (sibling_die): Remove.
6507
6508 2020-03-26 Tom Tromey <tom@tromey.com>
6509
6510 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
6511 (build_type_psymtabs_reader, read_structure_type)
6512 (read_enumeration_type, read_full_die_1): Update.
6513 (dwarf2_attr_no_follow): Move to die.h.
6514 * dwarf2/die.h (struct die_info) <attr>: New method.
6515
6516 2020-03-26 Tom Tromey <tom@tromey.com>
6517
6518 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
6519 <base_address>: Now an optional.
6520 (dwarf2_find_base_address, dwarf2_rnglists_process)
6521 (dwarf2_ranges_process, fill_in_loclist_baton)
6522 (dwarf2_symbol_mark_computed): Update.
6523
6524 2020-03-26 Tom Tromey <tom@tromey.com>
6525
6526 * dwarf2/read.c (struct die_info): Move to die.h.
6527 * dwarf2/die.h: New file.
6528
6529 2020-03-26 Tom Tromey <tom@tromey.com>
6530
6531 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
6532 * dwarf2/read.c
6533 (dwarf2_statement_list_fits_in_line_number_section_complaint):
6534 Move to line-header.c.
6535 (read_checked_initial_length_and_offset, read_formatted_entries):
6536 Likewise.
6537 (dwarf_decode_line_header): Split into two.
6538 * dwarf2/line-header.c
6539 (dwarf2_statement_list_fits_in_line_number_section_complaint):
6540 Move from read.c.
6541 (read_checked_initial_length_and_offset, read_formatted_entries):
6542 Likewise.
6543 (dwarf_decode_line_header): New function, split from read.c.
6544
6545 2020-03-26 Tom Tromey <tom@tromey.com>
6546
6547 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
6548 Declare method.
6549 * dwarf2/read.c (read_attribute_value): Update.
6550 (dwarf2_per_objfile::read_line_string): Rename from
6551 read_indirect_line_string.
6552 (read_formatted_entries): Update.
6553
6554 2020-03-26 Tom Tromey <tom@tromey.com>
6555
6556 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
6557 variable.
6558
6559 2020-03-26 Tom Tromey <tom@tromey.com>
6560
6561 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
6562 const.
6563 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
6564 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
6565 parameter const.
6566
6567 2020-03-26 Tom Tromey <tom@tromey.com>
6568
6569 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
6570 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
6571 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
6572 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
6573
6574 2020-03-26 Tom Tromey <tom@tromey.com>
6575
6576 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
6577 file_names_size, file_full_name, file_file_name>: Use const.
6578 <file_name_at, file_names>: Add const overload.
6579 * dwarf2/line-header.c (line_header::file_file_name)
6580 (line_header::file_full_name): Update.
6581
6582 2020-03-26 Tom Tromey <tom@tromey.com>
6583
6584 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
6585 (macro_start_file, consume_improper_spaces)
6586 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
6587 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
6588 (dwarf_decode_macros): Move to macro.c.
6589 * dwarf2/macro.c: New file.
6590 * dwarf2/macro.h: New file.
6591 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
6592
6593 2020-03-26 Tom Tromey <tom@tromey.com>
6594
6595 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
6596 method.
6597 * dwarf2/section.c: New method. From
6598 read_indirect_string_at_offset_from.
6599 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
6600 (read_indirect_string_at_offset_from): Move to section.c.
6601 (read_indirect_string_at_offset): Rewrite.
6602 (read_indirect_line_string_at_offset): Remove.
6603 (read_indirect_string, read_indirect_line_string)
6604 (dwarf_decode_macro_bytes): Update.
6605
6606 2020-03-26 Tom Tromey <tom@tromey.com>
6607
6608 * dwarf2/section.h (struct dwarf2_section_info)
6609 <overload_complaint>: Declare.
6610 (dwarf2_section_buffer_overflow_complaint): Don't declare.
6611 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
6612 Rename from dwarf2_section_buffer_overflow_complaint.
6613 * dwarf2/read.c (skip_one_die, partial_die_info::read)
6614 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
6615
6616 2020-03-26 Tom Tromey <tom@tromey.com>
6617
6618 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
6619 Declare.
6620 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
6621 Move from read.c.
6622 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
6623 to section.c.
6624
6625 2020-03-26 Tom Tromey <tom@tromey.com>
6626
6627 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
6628
6629 2020-03-26 Tom Tromey <tom@tromey.com>
6630
6631 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
6632 "builder".
6633 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
6634 parameter.
6635 (dwarf_decode_macros): Update.
6636
6637 2020-03-26 Tom Tromey <tom@tromey.com>
6638
6639 * dwarf2/read.c (read_attribute_value): Update.
6640 (read_indirect_string_from_dwz): Move to dwz.c; change into
6641 method.
6642 (dwarf_decode_macro_bytes): Update.
6643 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
6644 * dwarf2/dwz.c: New file.
6645 * Makefile.in (COMMON_SFILES): Add dwz.c.
6646
6647 2020-03-26 Tom Tromey <tom@tromey.com>
6648
6649 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
6650 * dwarf2/read.c: Add include.
6651 * dwarf2/index-write.c: Add include.
6652 * dwarf2/index-cache.c: Add include.
6653 * dwarf2/dwz.h: New file.
6654
6655 2020-03-25 Tom Tromey <tom@tromey.com>
6656
6657 * compile/compile-object-load.c (get_out_value_type): Mention
6658 correct symbol name in error message.
6659
6660 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
6661
6662 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
6663
6664 2020-03-25 Tom de Vries <tdevries@suse.de>
6665
6666 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
6667 * symmisc.c (dump_symtab_1): Print user and includes fields.
6668 (maintenance_info_symtabs): Same.
6669
6670 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
6671
6672 PR gdb/25534
6673 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
6674 (riscv_regcache_cooked_write): New function.
6675 (riscv_push_dummy_call): Use new function.
6676 (riscv_return_value): Likewise.
6677
6678 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
6679
6680 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
6681 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
6682 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
6683 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
6684 * infrun.c (follow_fork): Likewise.
6685 (follow_fork_inferior): Likewise.
6686 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
6687 * linux-nat.h (class linux_nat_target): Likewise.
6688 * remote.c (class remote_target) <follow_fork>: Likewise.
6689 (remote_target::follow_fork): Likewise.
6690 * target-delegates.c: Re-generate.
6691 * target.c (default_follow_fork): Likewise.
6692 (target_follow_fork): Likewise.
6693 * target.h (struct target_ops) <follow_fork>: Likewise.
6694 (target_follow_fork): Likewise.
6695
6696 2020-03-24 Tom de Vries <tdevries@suse.de>
6697
6698 * psymtab.c (maintenance_info_psymtabs): Print user field.
6699
6700 2020-03-20 Tom Tromey <tromey@adacore.com>
6701
6702 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
6703 const.
6704 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
6705 const.
6706
6707 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
6708
6709 * ptrace.m4: Don't check for ptrace declaration.
6710 * config.in: Re-generate.
6711 * configure: Re-generate.
6712 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
6713 not defined.
6714
6715 2020-03-20 Kamil Rytarowski <n54@gmx.com>
6716
6717 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
6718 `PTRACE_TYPE_RET'.
6719 * i386-bsd-nat.c (gdb_ptrace): Likewise.
6720 * sparc-nat.c (gdb_ptrace): Likewise.
6721 * x86-bsd-nat.c (gdb_ptrace): Likewise.
6722
6723 2020-03-20 Tom Tromey <tromey@adacore.com>
6724
6725 * c-exp.y (lex_one_token): Fix assert.
6726
6727 2020-03-20 Tom Tromey <tromey@adacore.com>
6728
6729 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
6730 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
6731 strncpy call.
6732
6733 2020-03-20 Tom Tromey <tromey@adacore.com>
6734
6735 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
6736
6737 2020-03-20 Tom Tromey <tromey@adacore.com>
6738
6739 * ada-valprint.c (print_variant_part): Remove parameters; switch
6740 to value-based API.
6741 (print_field_values): Likewise.
6742 (ada_val_print_struct_union): Likewise.
6743 (ada_value_print_1): Update.
6744
6745 2020-03-20 Kamil Rytarowski <n54@gmx.com>
6746
6747 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
6748 nbsd_nat_target instead of inf_ptrace_target.
6749 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6750 nbsd_nat_target.
6751
6752 2020-03-20 Kamil Rytarowski <n54@gmx.com>
6753
6754 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
6755 it to the ptrace call.
6756 * (store_registers): Likewise.
6757
6758 2020-03-20 Kamil Rytarowski <n54@gmx.com>
6759
6760 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
6761 it to the ptrace call.
6762 * (store_registers): Likewise.
6763
6764 2020-03-19 Luis Machado <luis.machado@linaro.org>
6765
6766 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
6767 valid, fetch vg value from ptrace.
6768
6769 2020-03-19 Kamil Rytarowski <n54@gmx.com>
6770 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
6771 * inf-ptrace.c: Likewise.
6772 * (gdb_ptrace): Add.
6773 * (inf_ptrace_target::resume): Update.
6774 * (inf_ptrace_target::xfer_partial): Likewise.
6775 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
6776 * (inf_ptrace_peek_poke): Update.
6777
6778 2020-03-19 Kamil Rytarowski <n54@gmx.com>
6779
6780 * x86-bsd-nat.c (gdb_ptrace): New.
6781 * (x86bsd_dr_set): Add new argument `ptid'.
6782 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
6783 x86bsd_dr_set_addr): Update.
6784
6785 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6786
6787 * remote.c (remote_target::process_stop_reply): Handle events for
6788 all threads differently.
6789
6790 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6791
6792 * completer.c (completion_tracker::remove_completion): Define new
6793 function.
6794 * completer.h (completion_tracker::remove_completion): Declare new
6795 function.
6796 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
6797 when adding a C++ function symbol.
6798
6799 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6800
6801 * completer.c (completion_tracker::completion_hash_entry): Define
6802 new class.
6803 (advance_to_filename_complete_word_point): Call
6804 recompute_lowest_common_denominator.
6805 (completion_tracker::completion_tracker): Call discard_completions
6806 to setup the hash table.
6807 (completion_tracker::discard_completions): Allow for being called
6808 from the constructor, pass new equal function, and element deleter
6809 when constructing the hash table. Initialise new class member
6810 variables.
6811 (completion_tracker::maybe_add_completion): Remove use of
6812 m_entries_vec, and store more information into m_entries_hash.
6813 (completion_tracker::recompute_lcd_visitor): New function, most
6814 content taken from...
6815 (completion_tracker::recompute_lowest_common_denominator):
6816 ...here, this now just visits each item in the hash calling the
6817 above visitor.
6818 (completion_tracker::build_completion_result): Remove use of
6819 m_entries_vec, call recompute_lowest_common_denominator.
6820 * completer.h (completion_tracker::have_completions): Remove use
6821 of m_entries_vec.
6822 (completion_tracker::completion_hash_entry): Declare new class.
6823 (completion_tracker::recompute_lowest_common_denominator): Change
6824 function signature.
6825 (completion_tracker::recompute_lcd_visitor): Declare new function.
6826 (completion_tracker::m_entries_vec): Delete.
6827 (completion_tracker::m_entries_hash): Initialize to NULL.
6828 (completion_tracker::m_lowest_common_denominator_valid): New
6829 member variable.
6830 (completion_tracker::m_lowest_common_denominator_max_length): New
6831 member variable.
6832
6833 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6834
6835 * regformats/regdef.h: Put reg in gdb namespace.
6836
6837 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6838
6839 * i386-bsd-nat.c (gdb_ptrace): New.
6840 * (i386bsd_fetch_inferior_registers,
6841 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6842 * (i386bsd_fetch_inferior_registers,
6843 i386bsd_store_inferior_registers) Use gdb_ptrace.
6844
6845 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6846
6847 * amd64-bsd-nat.c (gdb_ptrace): New.
6848 * (amd64bsd_fetch_inferior_registers,
6849 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6850 * (amd64bsd_fetch_inferior_registers,
6851 amd64bsd_store_inferior_registers) Use gdb_ptrace.
6852
6853 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6854
6855 * user-regs.c (user_reg::read): Rename to...
6856 (user_reg::xread): ...this.
6857 * (append_user_reg): Rename argument `read' to `xread'.
6858 * (user_reg_add_builtin): Likewise.
6859 * (user_reg_add): Likewise.
6860 * (value_of_user_reg): Likewise.
6861
6862 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6863
6864 * sparc-nat.c (gdb_ptrace): New.
6865 * sparc-nat.c (sparc_fetch_inferior_registers)
6866 (sparc_store_inferior_registers) Remove obsolete comment.
6867 * sparc-nat.c (sparc_fetch_inferior_registers)
6868 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
6869 * sparc-nat.c (sparc_fetch_inferior_registers)
6870 (sparc_store_inferior_registers) Use gdb_ptrace.
6871
6872 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6873
6874 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
6875 it to the ptrace call.
6876 * sh-nbsd-nat.c (store_registers): Likewise.
6877
6878 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6879
6880 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
6881 nbsd_nat_target instead of inf_ptrace_target.
6882 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6883 nbsd_nat_target.
6884
6885 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6886
6887 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
6888
6889 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6890
6891 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
6892 <sys/sysctl.h>.
6893 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
6894
6895 2020-03-17 Tom de Vries <tdevries@suse.de>
6896
6897 PR gdb/23710
6898 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
6899 fields.
6900 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
6901 fields.
6902 (process_imported_unit_die): Skip import of c++ CUs.
6903
6904 2020-03-16 Tom Tromey <tom@tromey.com>
6905
6906 * p-valprint.c (pascal_object_print_value): Initialize
6907 base_value.
6908
6909 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
6910 Shahab Vahedi <shahab@synopsys.com>
6911
6912 * Makefile.in: Add arch/arc.o
6913 * configure.tgt: Likewise.
6914 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
6915 (_initialize_arc_tdep): Don't initialize old target descriptions.
6916 (arc_read_description): New function to cache target descriptions.
6917 * arc-tdep.h (arc_read_description): Add proto type.
6918 * arch/arc.c: New file.
6919 * arch/arc.h: Likewise.
6920 * features/Makefile: Replace old target descriptions with new.
6921 * features/arc-arcompact.c: Remove.
6922 * features/arc-arcompact.xml: Likewise.
6923 * features/arc-v2.c: Likewise
6924 * features/arc-v2.xml: Likewise
6925 * features/arc/aux-arcompact.xml: New file.
6926 * features/arc/aux-v2.xml: Likewise.
6927 * features/arc/core-arcompact.xml: Likewise.
6928 * features/arc/core-v2.xml: Likewise.
6929 * features/arc/aux-arcompact.c: Generate.
6930 * features/arc/aux-v2.c: Likewise.
6931 * features/arc/core-arcompact.c: Likewise.
6932 * features/arc/core-v2.c: Likewise.
6933 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
6934
6935 2020-03-16 Tom Tromey <tromey@adacore.com>
6936
6937 PR gdb/25663:
6938 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
6939 putting value into bcache.
6940
6941 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
6942
6943 PR gdb/21500
6944 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
6945 to...
6946 (amd64_windows_init_abi_common): ... this. Don't set size of
6947 long type.
6948 (amd64_windows_init_abi): New function.
6949 (amd64_cygwin_init_abi): New function.
6950 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
6951 the Cygwin OS ABI.
6952 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
6953 comment.
6954
6955 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
6956
6957 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
6958 * windows-tdep.c (CYGWIN_DLL_NAME): New.
6959 (pe_import_directory_entry): New struct type.
6960 (is_linked_with_cygwin_dll): New function.
6961 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
6962 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
6963 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
6964
6965 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
6966
6967 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
6968 i386_cygwin_core_osabi_sniffer.
6969
6970 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
6971
6972 * i386-cygwin-tdep.c: Rename to...
6973 * i386-windows-tdep.c: ... this.
6974 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
6975 i386-windows-tdep.c.
6976 * configure.tgt: Likewise.
6977
6978 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
6979
6980 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
6981 * osabi.c (gdb_osabi_names): Add "Windows".
6982 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
6983 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
6984 (i386_cygwin_core_osabi_sniffer): New function, extracted from
6985 i386_cygwin_osabi_sniffer.
6986 (_initialize_i386_cygwin_tdep): Register OS ABI
6987 GDB_OSABI_WINDOWS for i386.
6988 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
6989 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
6990 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
6991 for x86-64.
6992 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
6993 when the target matches '*-*-mingw*'.
6994
6995 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
6996
6997 * defs.h (enum gdb_osabi): Move to...
6998 * osabi.h (enum gdb_osabi): ... here.
6999 * gdbarch.sh: Include osabi.h in gdbarch.h.
7000 * gdbarch.h: Re-generate.
7001
7002 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7003
7004 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
7005 function.
7006 (_initialize_amd64_windows_tdep): Register osabi sniffer.
7007
7008 2020-03-14 Tom Tromey <tom@tromey.com>
7009
7010 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
7011 for C++.
7012 (c_type_print_modifier): Likewise. Add "language" parameter.
7013 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
7014 (c_type_print_base_1): Update.
7015 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
7016 constants.
7017 * type-stack.c (type_stack::insert): Handle tp_atomic and
7018 tp_restrict.
7019 (type_stack::follow_type_instance_flags): Likewise.
7020 (type_stack::follow_types): Likewise. Merge type-following code.
7021 * c-exp.y (RESTRICT, ATOMIC): New tokens.
7022 (space_identifier, cv_with_space_id)
7023 (const_or_volatile_or_space_identifier_noopt)
7024 (const_or_volatile_or_space_identifier): Remove.
7025 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
7026 rules.
7027 (ptr_operator, typebase): Update.
7028 (enum token_flag) <FLAG_C>: New constant.
7029 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
7030 "_Atomic".
7031 (lex_one_token): Handle FLAG_C.
7032
7033 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7034
7035 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
7036 it to the ptrace call.
7037 * m68k-bsd-nat.c (store_registers): Likewise.
7038
7039 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7040
7041 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
7042 gdb_byte *.
7043 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
7044 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
7045 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
7046
7047 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7048
7049 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
7050 nbsd_nat_target instead of inf_ptrace_target.
7051 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7052 nbsd_nat_target.
7053
7054 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7055
7056 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
7057 register_t.
7058
7059 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7060
7061 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
7062 it to the ptrace call.
7063 * alpha-bsd-nat.c (store_registers): Likewise.
7064
7065 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7066
7067 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
7068 includes.
7069 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
7070 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
7071 fill_fpregset): Likewise.
7072
7073 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7074
7075 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
7076 nbsd_nat_target instead of inf_ptrace_target.
7077 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7078 nbsd_nat_target.
7079
7080 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7081
7082 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
7083 register_t.
7084
7085 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7086
7087 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
7088 it to the ptrace call.
7089 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
7090 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
7091 * arm-nbsd-nat.c (store_register): Likewise.
7092 * arm-nbsd-nat.c (store_regs): Likewise.
7093 * arm-nbsd-nat.c (store_fp_register): Likewise.
7094 * arm-nbsd-nat.c (store_fp_regs): Likewise.
7095
7096 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7097
7098 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
7099 nbsd_nat_target instead of inf_ptrace_target.
7100 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7101 nbsd_nat_target.
7102
7103 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7104
7105 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
7106 it to the ptrace call.
7107 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
7108
7109 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7110
7111 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
7112 it to the ptrace call.
7113 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
7114
7115 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7116
7117 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
7118 gdb_byte *.
7119 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
7120
7121 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7122
7123 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
7124 instead of inf_ptrace_target.
7125 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7126 nbsd_nat_target.
7127
7128 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7129
7130 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7131 register_t.
7132
7133 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7134
7135 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7136 register_t.
7137
7138 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7139
7140 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
7141 register_t.
7142
7143 2020-03-13 Tom Tromey <tom@tromey.com>
7144
7145 * value.h (val_print): Don't declare.
7146 * valprint.h (val_print_array_elements)
7147 (val_print_scalar_formatted, generic_val_print): Don't declare.
7148 * valprint.c (generic_val_print_array): Take a struct value.
7149 (generic_val_print_ptr, generic_val_print_memberptr)
7150 (generic_val_print_bool, generic_val_print_int)
7151 (generic_val_print_char, generic_val_print_complex)
7152 (generic_val_print): Remove.
7153 (generic_value_print): Update.
7154 (do_val_print): Remove unused parameters. Don't call
7155 la_val_print.
7156 (val_print): Remove.
7157 (common_val_print): Update. Don't call value_check_printable.
7158 (val_print_scalar_formatted, val_print_array_elements): Remove.
7159 * rust-lang.c (rust_val_print): Remove.
7160 (rust_language_defn): Update.
7161 * p-valprint.c (pascal_val_print): Remove.
7162 (pascal_value_print_inner): Update.
7163 (pascal_object_print_val_fields, pascal_object_print_val):
7164 Remove.
7165 (pascal_object_print_static_field): Update.
7166 * p-lang.h (pascal_val_print): Don't declare.
7167 * p-lang.c (pascal_language_defn): Update.
7168 * opencl-lang.c (opencl_language_defn): Update.
7169 * objc-lang.c (objc_language_defn): Update.
7170 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
7171 * m2-lang.h (m2_val_print): Don't declare.
7172 * m2-lang.c (m2_language_defn): Update.
7173 * language.h (struct language_defn) <la_val_print>: Remove.
7174 * language.c (unk_lang_value_print_inner): Rename. Change
7175 argument types.
7176 (unknown_language_defn, auto_language_defn): Update.
7177 * go-valprint.c (go_val_print): Remove.
7178 * go-lang.h (go_val_print): Don't declare.
7179 * go-lang.c (go_language_defn): Update.
7180 * f-valprint.c (f_val_print): Remove.
7181 * f-lang.h (f_value_print): Don't declare.
7182 * f-lang.c (f_language_defn): Update.
7183 * d-valprint.c (d_val_print): Remove.
7184 * d-lang.h (d_value_print): Don't declare.
7185 * d-lang.c (d_language_defn): Update.
7186 * cp-valprint.c (cp_print_value_fields)
7187 (cp_print_value_fields_rtti, cp_print_value): Remove.
7188 (cp_print_static_field): Update.
7189 * c-valprint.c (c_val_print_array, c_val_print_ptr)
7190 (c_val_print_struct, c_val_print_union, c_val_print_int)
7191 (c_val_print_memberptr, c_val_print): Remove.
7192 * c-lang.h (c_val_print_array, cp_print_value_fields)
7193 (cp_print_value_fields_rtti): Don't declare.
7194 * c-lang.c (c_language_defn, cplus_language_defn)
7195 (asm_language_defn, minimal_language_defn): Update.
7196 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
7197 (ada_val_print_enum): Take a struct value.
7198 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
7199 (ada_val_print): Remove.
7200 (ada_value_print_1): Update.
7201 (printable_val_type): Remove.
7202 * ada-lang.h (ada_val_print): Don't declare.
7203 * ada-lang.c (ada_language_defn): Update.
7204
7205 2020-03-13 Tom Tromey <tom@tromey.com>
7206
7207 * valprint.c (do_val_print): Update.
7208 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
7209 a struct value.
7210 (value_to_value_object_no_release): Declare.
7211 * python/py-value.c (value_to_value_object_no_release): New
7212 function.
7213 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
7214 struct value.
7215 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
7216 function.
7217 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
7218 a struct value.
7219 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
7220 Declare.
7221 (gdbscm_apply_val_pretty_printer): Take a struct value.
7222 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
7223 value.
7224 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
7225 value.
7226 * extension-priv.h (struct extension_language_ops)
7227 <apply_val_pretty_printer>: Take a struct value.
7228 * cp-valprint.c (cp_print_value): Create a struct value.
7229 (cp_print_value): Update.
7230
7231 2020-03-13 Tom Tromey <tom@tromey.com>
7232
7233 * ada-valprint.c (print_field_values): Call common_val_print.
7234
7235 2020-03-13 Tom Tromey <tom@tromey.com>
7236
7237 * ada-valprint.c (val_print_packed_array_elements): Remove
7238 bitoffset and val parameters. Call common_val_print.
7239 (ada_val_print_string): Remove offset, address, and original_value
7240 parameters.
7241 (ada_val_print_array): Update.
7242 (ada_value_print_array): New function.
7243 (ada_value_print_1): Call it.
7244
7245 2020-03-13 Tom Tromey <tom@tromey.com>
7246
7247 * ada-valprint.c (ada_value_print): Use common_val_print.
7248
7249 2020-03-13 Tom Tromey <tom@tromey.com>
7250
7251 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
7252
7253 2020-03-13 Tom Tromey <tom@tromey.com>
7254
7255 * ada-valprint.c (ada_value_print_num): New function.
7256 (ada_value_print_1): Use it.
7257
7258 2020-03-13 Tom Tromey <tom@tromey.com>
7259
7260 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
7261
7262 2020-03-13 Tom Tromey <tom@tromey.com>
7263
7264 * ada-valprint.c (ada_value_print_ptr): New function.
7265 (ada_value_print_1): Use it.
7266
7267 2020-03-13 Tom Tromey <tom@tromey.com>
7268
7269 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
7270 call common_val_print.
7271 (ada_val_print_1): Update.
7272 (ada_value_print_1): New function.
7273 (ada_value_print_inner): Rewrite.
7274
7275 2020-03-13 Tom Tromey <tom@tromey.com>
7276
7277 * cp-valprint.c (cp_print_value_fields): Update.
7278 (cp_print_value): New function.
7279
7280 2020-03-13 Tom Tromey <tom@tromey.com>
7281
7282 * m2-valprint.c (m2_value_print_inner): Use
7283 cp_print_value_fields.
7284 * cp-valprint.c (cp_print_value_fields): New function.
7285 * c-valprint.c (c_value_print_struct): New function.
7286 (c_value_print_inner): Use c_value_print_struct.
7287 * c-lang.h (cp_print_value_fields): Declare.
7288
7289 2020-03-13 Tom Tromey <tom@tromey.com>
7290
7291 * c-valprint.c (c_value_print_array): New function.
7292 (c_value_print_inner): Use it.
7293
7294 2020-03-13 Tom Tromey <tom@tromey.com>
7295
7296 * c-valprint.c (c_value_print_memberptr): New function.
7297 (c_value_print_inner): Use it.
7298
7299 2020-03-13 Tom Tromey <tom@tromey.com>
7300
7301 * c-valprint.c (c_value_print_int): New function.
7302 (c_value_print_inner): Use it.
7303
7304 2020-03-13 Tom Tromey <tom@tromey.com>
7305
7306 * c-valprint.c (c_value_print_ptr): New function.
7307 (c_value_print_inner): Use it.
7308
7309 2020-03-13 Tom Tromey <tom@tromey.com>
7310
7311 * c-valprint.c (c_value_print_inner): Rewrite.
7312
7313 2020-03-13 Tom Tromey <tom@tromey.com>
7314
7315 * valprint.c (generic_value_print_complex): New function.
7316 (generic_value_print): Use it.
7317
7318 2020-03-13 Tom Tromey <tom@tromey.com>
7319
7320 * valprint.c (generic_val_print_float): Don't call
7321 val_print_scalar_formatted.
7322 (generic_val_print, generic_value_print): Update.
7323
7324 2020-03-13 Tom Tromey <tom@tromey.com>
7325
7326 * valprint.c (generic_value_print_char): New function
7327 (generic_value_print): Use it.
7328
7329 2020-03-13 Tom Tromey <tom@tromey.com>
7330
7331 * valprint.c (generic_value_print_int): New function.
7332 (generic_value_print): Use it.
7333
7334 2020-03-13 Tom Tromey <tom@tromey.com>
7335
7336 * valprint.c (generic_value_print_bool): New function.
7337 (generic_value_print): Use it.
7338
7339 2020-03-13 Tom Tromey <tom@tromey.com>
7340
7341 * valprint.c (generic_val_print_func): Simplify.
7342 (generic_val_print, generic_value_print): Update.
7343
7344 2020-03-13 Tom Tromey <tom@tromey.com>
7345
7346 * valprint.c (generic_val_print_flags): Remove.
7347 (generic_val_print, generic_value_print): Update.
7348 (val_print_type_code_flags): Add original_value parameter.
7349
7350 2020-03-13 Tom Tromey <tom@tromey.com>
7351
7352 * valprint.c (generic_val_print): Update.
7353 (generic_value_print): Update.
7354 * valprint.c (generic_val_print_enum): Don't call
7355 val_print_scalar_formatted.
7356
7357 2020-03-13 Tom Tromey <tom@tromey.com>
7358
7359 * valprint.c (generic_value_print): Call generic_value_print_ptr.
7360 * valprint.c (generic_value_print_ptr): New function.
7361
7362 2020-03-13 Tom Tromey <tom@tromey.com>
7363
7364 * valprint.c (generic_value_print): Rewrite.
7365
7366 2020-03-13 Tom Tromey <tom@tromey.com>
7367
7368 * p-valprint.c (pascal_object_print_value_fields)
7369 (pascal_object_print_value): New functions.
7370
7371 2020-03-13 Tom Tromey <tom@tromey.com>
7372
7373 * p-valprint.c (pascal_value_print_inner): Rewrite.
7374
7375 2020-03-13 Tom Tromey <tom@tromey.com>
7376
7377 * f-valprint.c (f_value_print_innner): Rewrite.
7378
7379 2020-03-13 Tom Tromey <tom@tromey.com>
7380
7381 * m2-valprint.c (m2_print_unbounded_array): New overload.
7382 (m2_print_unbounded_array): Update.
7383 (m2_print_array_contents): Take a struct value.
7384 (m2_value_print_inner): Rewrite.
7385
7386 2020-03-13 Tom Tromey <tom@tromey.com>
7387
7388 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
7389 (d_value_print_inner): New function.
7390 * d-lang.h (d_value_print_inner): Declare.
7391 * d-lang.c (d_language_defn): Use d_value_print_inner.
7392
7393 2020-03-13 Tom Tromey <tom@tromey.com>
7394
7395 * go-valprint.c (go_value_print_inner): New function.
7396 * go-lang.h (go_value_print_inner): Declare.
7397 * go-lang.c (go_language_defn): Use go_value_print_inner.
7398
7399 2020-03-13 Tom Tromey <tom@tromey.com>
7400
7401 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
7402 API.
7403 (rust_val_print): Rewrite.
7404 (rust_value_print_inner): New function, from rust_val_print.
7405 (rust_language_defn): Use rust_value_print_inner.
7406
7407 2020-03-13 Tom Tromey <tom@tromey.com>
7408
7409 * ada-valprint.c (ada_value_print_inner): New function.
7410 * ada-lang.h (ada_value_print_inner): Declare.
7411 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
7412
7413 2020-03-13 Tom Tromey <tom@tromey.com>
7414
7415 * f-valprint.c (f_value_print_innner): New function.
7416 * f-lang.h (f_value_print_innner): Declare.
7417 * f-lang.c (f_language_defn): Use f_value_print_innner.
7418
7419 2020-03-13 Tom Tromey <tom@tromey.com>
7420
7421 * p-valprint.c (pascal_value_print_inner): New function.
7422 * p-lang.h (pascal_value_print_inner): Declare.
7423 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
7424
7425 2020-03-13 Tom Tromey <tom@tromey.com>
7426
7427 * m2-valprint.c (m2_value_print_inner): New function.
7428 * m2-lang.h (m2_value_print_inner): Declare.
7429 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
7430
7431 2020-03-13 Tom Tromey <tom@tromey.com>
7432
7433 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
7434 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
7435 * c-valprint.c (c_value_print_inner): New function.
7436 * c-lang.h (c_value_print_inner): Declare.
7437 * c-lang.c (c_language_defn, cplus_language_defn)
7438 (asm_language_defn, minimal_language_defn): Use
7439 c_value_print_inner.
7440
7441 2020-03-13 Tom Tromey <tom@tromey.com>
7442
7443 * p-valprint.c (pascal_object_print_value_fields): Now static.
7444 * p-lang.h (pascal_object_print_value_fields): Don't declare.
7445
7446 2020-03-13 Tom Tromey <tom@tromey.com>
7447
7448 * c-valprint.c (c_val_print_array): Simplify.
7449
7450 2020-03-13 Tom Tromey <tom@tromey.com>
7451
7452 * valprint.c (value_print_array_elements): New function.
7453 * valprint.h (value_print_array_elements): Declare.
7454
7455 2020-03-13 Tom Tromey <tom@tromey.com>
7456
7457 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
7458 * mips-tdep.c (mips_print_register): Use
7459 value_print_scalar_formatted.
7460
7461 2020-03-13 Tom Tromey <tom@tromey.com>
7462
7463 * valprint.h (value_print_scalar_formatted): Declare.
7464 * valprint.c (value_print_scalar_formatted): New function.
7465
7466 2020-03-13 Tom Tromey <tom@tromey.com>
7467
7468 * valprint.h (generic_value_print): Declare.
7469 * valprint.c (generic_value_print): New function.
7470
7471 2020-03-13 Tom Tromey <tom@tromey.com>
7472
7473 * valprint.c (do_val_print): Call la_value_print_inner, if
7474 available.
7475 * rust-lang.c (rust_language_defn): Update.
7476 * p-lang.c (pascal_language_defn): Update.
7477 * opencl-lang.c (opencl_language_defn): Update.
7478 * objc-lang.c (objc_language_defn): Update.
7479 * m2-lang.c (m2_language_defn): Update.
7480 * language.h (struct language_defn) <la_value_print_inner>: New
7481 member.
7482 * language.c (unknown_language_defn, auto_language_defn): Update.
7483 * go-lang.c (go_language_defn): Update.
7484 * f-lang.c (f_language_defn): Update.
7485 * d-lang.c (d_language_defn): Update.
7486 * c-lang.c (c_language_defn, cplus_language_defn)
7487 (asm_language_defn, minimal_language_defn): Update.
7488 * ada-lang.c (ada_language_defn): Update.
7489
7490 2020-03-13 Tom Tromey <tom@tromey.com>
7491
7492 * c-valprint.c (c_value_print): Use common_val_print.
7493
7494 2020-03-13 Tom Tromey <tom@tromey.com>
7495
7496 * cp-valprint.c (cp_print_static_field): Use common_val_print.
7497
7498 2020-03-13 Tom Tromey <tom@tromey.com>
7499
7500 * f-valprint.c (f77_print_array_1, f_val_print): Use
7501 common_val_print.
7502
7503 2020-03-13 Tom Tromey <tom@tromey.com>
7504
7505 * riscv-tdep.c (riscv_print_one_register_info): Use
7506 common_val_print.
7507
7508 2020-03-13 Tom Tromey <tom@tromey.com>
7509
7510 * mi/mi-main.c (output_register): Use common_val_print.
7511
7512 2020-03-13 Tom Tromey <tom@tromey.com>
7513
7514 * infcmd.c (default_print_one_register_info): Use
7515 common_val_print.
7516
7517 2020-03-13 Tom Tromey <tom@tromey.com>
7518
7519 * valprint.h (common_val_print_checked): Declare.
7520 * valprint.c (common_val_print_checked): New function.
7521 * stack.c (print_frame_arg): Use common_val_print_checked.
7522
7523 2020-03-13 Tom Tromey <tom@tromey.com>
7524
7525 * valprint.c (do_val_print): New function, from val_print.
7526 (val_print): Use do_val_print.
7527 (common_val_print): Use do_val_print.
7528
7529 2020-03-13 Tom Tromey <tom@tromey.com>
7530
7531 * valprint.c (value_print): Use scoped_value_mark.
7532
7533 2020-03-13 Tom de Vries <tdevries@suse.de>
7534
7535 PR symtab/25646
7536 * psymtab.c (partial_symtab::partial_symtab): Don't set
7537 globals_offset and statics_offset. Push element onto
7538 current_global_psymbols and current_static_psymbols stacks.
7539 (concat): New function.
7540 (end_psymtab_common): Set globals_offset and statics_offset. Pop
7541 element from current_global_psymbols and current_static_psymbols
7542 stacks. Concat popped elements to global_psymbols and
7543 static_symbols.
7544 (add_psymbol_to_list): Use current_global_psymbols and
7545 current_static_psymbols stacks.
7546 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
7547 current_static_psymbols fields.
7548
7549 2020-03-12 Christian Biesinger <cbiesinger@google.com>
7550
7551 * corelow.c (sniff_core_bfd): Remove.
7552 (class core_target) <m_core_vec>: Remove.
7553 (core_target::core_target): Update.
7554 (core_file_fns): Remove.
7555 (deprecated_add_core_fns): Remove.
7556 (default_core_sniffer): Remove.
7557 (sniff_core_bfd): Remove.
7558 (default_check_format): Remove.
7559 (gdb_check_format): Remove.
7560 (core_target_open): Update.
7561 (core_target::get_core_register_section): Update.
7562 (get_core_registers_cb): Update.
7563 (core_target::fetch_registers): Update.
7564 * gdbcore.h (struct core_fns): Remove.
7565 (deprecated_add_core_fns): Remove.
7566 (default_core_sniffer): Remove.
7567 (default_check_format): Remove.
7568
7569 2020-03-12 Tom Tromey <tom@tromey.com>
7570
7571 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
7572 CORE_ADDR.
7573 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
7574
7575 2020-03-12 Tom Tromey <tom@tromey.com>
7576
7577 * remote.c (remote_target::download_tracepoint)
7578 (remote_target::enable_tracepoint)
7579 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
7580 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
7581 sprintf_vma.
7582
7583 2020-03-12 Tom Tromey <tom@tromey.com>
7584
7585 * symfile-mem.c: Update CORE_ADDR size assert.
7586
7587 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
7588
7589 * selftest.m4: Move to gdbsupport/.
7590 * acinclude.m4: Update path to selftest.m4.
7591
7592 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
7593
7594 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
7595 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
7596 gdbarch-selfselftests.c and selftest-arch.c.
7597 (SUBDIR_UNITTESTS_OBS): Rename to...
7598 (SELFTESTS_OBS): ... this.
7599 (COMMON_SFILES): Remove disasm-selftests.c and
7600 gdbarch-selftests.c.
7601 * configure.ac: Don't add selftest-arch.{c,o} to
7602 CONFIG_{SRCS,OBS}.
7603 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
7604 preprocessor conditions.
7605
7606 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
7607
7608 * configure.ac: Don't source bfd/development.sh.
7609 * selftest.m4: Modify comment.
7610 * configure: Re-generate.
7611
7612 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
7613
7614 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
7615 not "true" or "false".
7616 * configure: Re-generate.
7617
7618 2020-03-12 Christian Biesinger <cbiesinger@google.com>
7619
7620 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
7621 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
7622 renamed to arm_nbsd_supply_gregset.
7623 (fetch_register): Update to call arm_nbsd_supply_gregset.
7624 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
7625 (arm_netbsd_nat_target::fetch_registers): Update.
7626 (fetch_elfcore_registers): Removed.
7627 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
7628 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
7629 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
7630 not require NetBSD system headers.
7631 (arm_nbsd_regset): New struct.
7632 (arm_nbsd_iterate_over_regset_sections): New function.
7633 (arm_netbsd_init_abi_common): Updated to call
7634 set_gdbarch_iterate_over_regset_sections.
7635 * arm-nbsd-tdep.h: New file.
7636
7637 2020-03-11 Kevin Buettner <kevinb@redhat.com>
7638
7639 * symtab.c (find_pc_sect_line): Add check which prevents infinite
7640 recursion.
7641
7642 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
7643
7644 * configure: Re-generate.
7645
7646 2020-03-11 Tom Tromey <tromey@adacore.com>
7647
7648 * ada-typeprint.c (print_choices): Fix comment.
7649
7650 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
7651
7652 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
7653 previous item in the list, when the list has no items.
7654
7655 2020-03-11 Tom de Vries <tdevries@suse.de>
7656
7657 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
7658 PROP_LOCLIST handling code.
7659
7660 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
7661
7662 * buildsym-legacy.c (record_line): Pass extra parameter to
7663 record_line.
7664 * buildsym.c (buildsym_compunit::record_line): Take an extra
7665 parameter, reduce duplication in the line table, and record the
7666 is_stmt flag in the line table.
7667 * buildsym.h (buildsym_compunit::record_line): Add extra
7668 parameter.
7669 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
7670 non-statement lines.
7671 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
7672 this to the symtab builder.
7673 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
7674 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
7675 through to dwarf_record_line_1.
7676 * infrun.c (process_event_stop_test): When stepping, don't stop at
7677 a non-statement instruction, and only refresh the step info when
7678 we land in the middle of a line's range. Also add an extra
7679 comment.
7680 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
7681 field.
7682 * record-btrace.c (btrace_find_line_range): Only record lines
7683 marked as is-statement.
7684 * stack.c (frame_show_address): Show the frame address if we are
7685 in a non-statement sal.
7686 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
7687 (maintenance_print_one_line_table): Print a header for the is_stmt
7688 column, and include is_stmt information in the output.
7689 * symtab.c (find_pc_sect_line): Find lines marked as statements in
7690 preference to non-statements.
7691 (find_pcs_for_symtab_line): Prefer is-statement entries.
7692 (find_line_common): Likewise.
7693 * symtab.h (struct linetable_entry): Add is_stmt field.
7694 (struct symtab_and_line): Likewise.
7695 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
7696 arranging the line table.
7697
7698 2020-03-07 Tom de Vries <tdevries@suse.de>
7699
7700 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
7701 DIE.
7702
7703 2020-03-07 Tom Tromey <tom@tromey.com>
7704
7705 * valops.c (value_literal_complex): Remove obsolete comment.
7706 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
7707 comment.
7708
7709 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
7710
7711 * infrun.h: Forward-declare thread_info.
7712 (set_step_info): Add thread_info parameter, add doc.
7713 * infrun.c (set_step_info): Add thread_info parameter, move doc
7714 to header.
7715 * infrun.c (process_event_stop_test): Pass thread to
7716 set_step_info call.
7717 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
7718 set_step_info.
7719 (prepare_one_step): Add thread_info parameter, pass it to
7720 set_step_frame and prepare_one_step (recursive) call.
7721 (step_1): Pass thread to prepare_one_step call.
7722 (step_command_fsm::should_stop): Pass thread to
7723 prepare_one_step.
7724 (until_next_fsm): Pass thread to set_step_frame call.
7725 (finish_command): Pass thread to set_step_info call.
7726
7727 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
7728
7729 * windows-tdep.c (windows_solib_create_inferior_hook):
7730 Check if inferior is running.
7731
7732 2020-03-06 Tom de Vries <tdevries@suse.de>
7733
7734 * NEWS: Fix "the the".
7735 * ctfread.c: Same.
7736
7737 2020-03-06 Tom de Vries <tdevries@suse.de>
7738
7739 * psymtab.c (psymtab_to_symtab): Don't print "done.".
7740
7741 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
7742
7743 * .dir-locals.el: Add a comment referencing the other copies of
7744 this file.
7745
7746 2020-03-05 John Baldwin <jhb@FreeBSD.org>
7747
7748 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
7749 psargs.
7750
7751 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7752
7753 * .gitattributes: New file.
7754
7755 2020-03-04 Tom Tromey <tom@tromey.com>
7756
7757 * symmisc.c (print_symbol_bcache_statistics)
7758 (print_objfile_statistics): Update.
7759 * symfile.c (allocate_symtab): Use intern.
7760 * psymtab.c (partial_symtab::partial_symtab): Use intern.
7761 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
7762 macro_cache>: Remove.
7763 <string_cache>: New member.
7764 (struct objfile) <intern>: New methods.
7765 * elfread.c (elf_symtab_read): Use intern.
7766 * dwarf2/read.c (fixup_go_packaging): Intern package name.
7767 (dwarf2_compute_name, dwarf2_physname)
7768 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
7769 names.
7770 (guess_partial_die_structure_name): Update.
7771 (partial_die_info::fixup): Intern name.
7772 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
7773 name.
7774 (dwarf2_name): Intern name. Update.
7775 * buildsym.c (buildsym_compunit::get_macro_table): Use
7776 string_cache.
7777
7778 2020-03-04 Tom Tromey <tom@tromey.com>
7779
7780 * jit.c (bfd_open_from_target_memory): Make "target" const.
7781 * corefile.c (gnutarget): Now const.
7782 * gdbcore.h (gnutarget): Now const.
7783
7784 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
7785
7786 * NEWS: Mention support for WOW64 processes.
7787 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
7788 (amd64_windows_segment_register_p): Remove static.
7789 (_initialize_amd64_windows_nat): Update.
7790 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
7791 * i386-windows-nat.c (context_offset): Update.
7792 (i386_mappings): Rename and remove static.
7793 (i386_windows_segment_register_p): Remove static.
7794 (_initialize_i386_windows_nat): Update.
7795 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
7796 (STATUS_WX86_SINGLE_STEP): New macro.
7797 (EnumProcessModulesEx): New macro.
7798 (Wow64SuspendThread): New macro.
7799 (Wow64GetThreadContext): New macro.
7800 (Wow64SetThreadContext): New macro.
7801 (Wow64GetThreadSelectorEntry): New macro.
7802 (windows_set_context_register_offsets): Add static.
7803 (windows_set_segment_register_p): Likewise.
7804 (windows_add_thread): Adapt for WOW64 processes.
7805 (windows_fetch_one_register): Likewise.
7806 (windows_nat_target::fetch_registers): Likewise.
7807 (windows_store_one_register): Likewise.
7808 (display_selector): Likewise.
7809 (display_selectors): Likewise.
7810 (handle_exception): Likewise.
7811 (windows_continue): Likewise.
7812 (windows_nat_target::resume): Likewise.
7813 (windows_add_all_dlls): Likewise.
7814 (do_initial_windows_stuff): Likewise.
7815 (windows_nat_target::attach): Likewise.
7816 (windows_get_exec_module_filename): Likewise.
7817 (windows_nat_target::create_inferior): Likewise.
7818 (windows_xfer_siginfo): Likewise.
7819 (_initialize_loadable): Initialize Wow64SuspendThread,
7820 Wow64GetThreadContext, Wow64SetThreadContext,
7821 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
7822 * windows-nat.h (windows_set_context_register_offsets):
7823 Remove declaration.
7824 (windows_set_segment_register_p): Likewise.
7825 (i386_windows_segment_register_p): Add declaration.
7826 (amd64_windows_segment_register_p): Likewise.
7827
7828 2020-03-04 Luis Machado <luis.machado@linaro.org>
7829
7830 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
7831 in "info registers" for AArch64/ARM.
7832
7833 The change caused "info registers" to not print GPR's.
7834
7835 gdb/ChangeLog:
7836
7837 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
7838
7839 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
7840 when reg->group is empty and reggroup is not.
7841
7842 2020-03-03 Tom Tromey <tromey@adacore.com>
7843
7844 * dwarf2/frame.c (struct dwarf2_frame_cache)
7845 <checked_tailcall_bottom, entry_cfa_sp_offset,
7846 entry_cfa_sp_offset_p>: Remove members.
7847 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
7848 (dwarf2_frame_prev_register): Don't call
7849 dwarf2_tailcall_sniffer_first.
7850 (dwarf2_append_unwinders): Don't append tailcall unwinder.
7851 * frame-unwind.c (add_unwinder): New fuction.
7852 (frame_unwind_init): Use it. Add tailcall unwinder.
7853
7854 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
7855 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7856
7857 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
7858 value should be printed as true.
7859
7860 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
7861
7862 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
7863 (windows_init_abi): Set and use windows_so_ops.
7864
7865 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
7866
7867 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
7868 when verifying if dealing with a convenience variable.
7869
7870 2020-03-03 Luis Machado <luis.machado@linaro.org>
7871
7872 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
7873
7874 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
7875
7876 * infrun.c (gdbarch_supports_displaced_stepping): New.
7877 (use_displaced_stepping): Break up conditions in smaller pieces.
7878 Use gdbarch_supports_displaced_stepping.
7879 (displaced_step_prepare_throw): Use
7880 gdbarch_supports_displaced_stepping.
7881
7882 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
7883
7884 * NEWS: Mention new behaviour of the history filename.
7885 * top.c (write_history_p): Add comment.
7886 (show_write_history_p): Add header comment, give a different
7887 message when history writing is on, but the history filename is
7888 empty.
7889 (history_filename): Add comment.
7890 (history_filename_empty): New function.
7891 (show_history_filename): Add header comment, give a different
7892 message when the filename is empty.
7893 (init_history): Compare history_filename against nullptr, and only
7894 read history if the filename is not empty.
7895 (set_history_filename): Add header comment, and only make
7896 non-empty filenames absolute.
7897 (init_main): Make the filename argument to 'set history filename'
7898 optional.
7899
7900 2020-03-02 Christian Biesinger <cbiesinger@google.com>
7901
7902 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
7903 (arm_supply_vfpregset): ...this, and update to use VFP registers.
7904 (fetch_fp_register): Update.
7905 (fetch_fp_regs): Update.
7906 (store_fp_register): Update.
7907 (store_fp_regs): Update.
7908 (arm_netbsd_nat_target::read_description): New function.
7909 (fetch_elfcore_registers): Update.
7910
7911 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
7912
7913 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
7914 general_thread if the stop reply is missing a thread-id.
7915 (remote_target::process_stop_reply): Use the first non-exited
7916 thread if the target didn't pass a thread-id.
7917 * infrun.c (do_target_wait): Move call to
7918 switch_to_inferior_no_thread to ....
7919 (do_target_wait_1): ... here.
7920
7921 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
7922
7923 * debuginfod-support.c: Include defs.h first.
7924
7925 2020-02-28 Tom de Vries <tdevries@suse.de>
7926
7927 * symfile.c (set_initial_language): Use default language for lookup.
7928
7929 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
7930
7931 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
7932 reader variable, pass `this` to read_cutu_die_from_dwo.
7933
7934 2020-02-27 Aaron Merey <amerey@redhat.com>
7935
7936 * source.c (open_source_file): Check for nullptr when computing
7937 srcpath.
7938
7939 2020-02-27 Tom Tromey <tromey@adacore.com>
7940
7941 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
7942 member.
7943 (dwarf2_add_field): Don't update nfields.
7944 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
7945
7946 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
7947
7948 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
7949 abs.
7950
7951 2020-02-26 Tom Tromey <tom@tromey.com>
7952
7953 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
7954 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
7955 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
7956 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
7957 per_cu_data.
7958
7959 2020-02-26 Tom Tromey <tom@tromey.com>
7960
7961 * dwarf2/index-write.c (psym_index_map): Change type.
7962 (add_address_entry_worker, write_one_signatured_type)
7963 (recursively_count_psymbols, recursively_write_psymbols)
7964 (class debug_names, psyms_seen_size, write_gdbindex)
7965 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
7966
7967 2020-02-26 Aaron Merey <amerey@redhat.com>
7968
7969 * Makefile.in: Handle optional debuginfod support.
7970 * NEWS: Update.
7971 * README: Add --with-debuginfod summary.
7972 * config.in: Regenerate.
7973 * configure: Regenerate.
7974 * configure.ac: Handle optional debuginfod support.
7975 * debuginfod-support.c: debuginfod helper functions.
7976 * debuginfod-support.h: Ditto.
7977 * doc/gdb.texinfo: Add --with-debuginfod to configure options
7978 summary.
7979 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
7980 when a dwz file cannot be found.
7981 * elfread.c (elf_symfile_read): Query debuginfod servers when a
7982 debuginfo file cannot be found.
7983 * source.c (open_source_file): Query debuginfod servers when a
7984 source file cannot be found.
7985 * top.c (print_gdb_configuration): Include
7986 --{with,without}-debuginfod in the output.
7987
7988 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
7989
7990 * thread.c (thr_try_catch_cmd): Print thread name.
7991
7992 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
7993
7994 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
7995 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7996 dwarf2_fetch_die_type_sect_off): Move to...
7997 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
7998 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7999 dwarf2_fetch_die_type_sect_off): ... here.
8000 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
8001 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8002 dwarf2_fetch_die_type_sect_off): Move doc to header file.
8003
8004 2020-02-26 Tom de Vries <tdevries@suse.de>
8005
8006 PR gdb/25603
8007 * symfile.c (set_initial_language): Exit-early if
8008 language_mode == language_mode_manual.
8009
8010 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8011
8012 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
8013 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
8014 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
8015
8016 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
8017
8018 * gdbtypes.c (create_array_type_with_stride): Handle negative
8019 array strides.
8020 * valarith.c (value_subscripted_rvalue): Likewise.
8021
8022 2020-02-25 Luis Machado <luis.machado@linaro.org>
8023
8024 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
8025
8026 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8027
8028 * loc.h (dwarf2_get_die_type): Move to...
8029 * read.h (dwarf2_get_die_type): ... here.
8030 * read.c (dwarf2_get_die_type): Move doc to header.
8031
8032 2020-02-25 Joel Brobecker <brobecker@adacore.com>
8033
8034 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
8035 'gnulib/Makefile.in' to the list.
8036
8037 2020-02-24 Tom Tromey <tom@tromey.com>
8038
8039 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
8040 Remove.
8041 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
8042 XOBNEWVEC.
8043
8044 2020-02-24 Tom Tromey <tom@tromey.com>
8045
8046 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
8047 New method.
8048 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
8049 (dw2_do_instantiate_symtab, dw2_get_file_names)
8050 (build_type_psymtab_dependencies, load_full_type_unit): Update.
8051
8052 2020-02-24 Tom Tromey <tom@tromey.com>
8053
8054 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
8055 make_scoped_restore.
8056 (dwarf2_psymtab::read_symtab): Don't clear
8057 reading_partial_symbols.
8058
8059 2020-02-24 Tom de Vries <tdevries@suse.de>
8060
8061 PR gdb/25592
8062 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
8063
8064 2020-02-24 Tom de Vries <tdevries@suse.de>
8065
8066 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
8067 commands layout next/prev/regs.
8068
8069 2020-02-22 Tom Tromey <tom@tromey.com>
8070
8071 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
8072 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
8073
8074 2020-02-22 Tom Tromey <tom@tromey.com>
8075
8076 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
8077
8078 2020-02-22 Tom Tromey <tom@tromey.com>
8079
8080 * tui/tui-win.c (_initialize_tui_win): Add usage text.
8081 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
8082 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
8083 * tui/tui.c (_initialize_tui): Add usage text.
8084
8085 2020-02-22 Tom Tromey <tom@tromey.com>
8086
8087 * tui/tui-win.c (tui_set_focus_command)
8088 (tui_set_win_height_command): Use error_no_arg.
8089 (_initialize_tui_win): Update help text.
8090 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
8091
8092 2020-02-22 Tom Tromey <tom@tromey.com>
8093
8094 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
8095 * tui/tui-disasm.h (struct tui_disasm_window)
8096 <display_start_addr>: Declare.
8097 * tui/tui-source.h (struct tui_source_window)
8098 <display_start_addr>: Declare.
8099 * tui/tui-winsource.h (struct tui_source_window_base)
8100 <show_source_line, display_start_addr>: New methods.
8101 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
8102 Rename and move to protected section.
8103 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
8104 (tui_source_window_base::do_erase_source_content): Update.
8105 (tui_source_window_base::show_source_line): Now a method.
8106 (tui_source_window_base::show_source_content)
8107 (tui_source_window_base::tui_source_window_base)
8108 (tui_source_window_base::rerender)
8109 (tui_source_window_base::refill)
8110 (tui_source_window_base::do_scroll_horizontal)
8111 (tui_source_window_base::set_is_exec_point_at)
8112 (tui_source_window_base::update_breakpoint_info)
8113 (tui_source_window_base::update_exec_info): Update.
8114 * tui/tui-source.c (tui_source_window::set_contents)
8115 (tui_source_window::showing_source_p)
8116 (tui_source_window::do_scroll_vertical)
8117 (tui_source_window::location_matches_p)
8118 (tui_source_window::line_is_displayed): Update.
8119 (tui_source_window::display_start_addr): New method.
8120 * tui/tui-disasm.c (tui_disasm_window::set_contents)
8121 (tui_disasm_window::do_scroll_vertical)
8122 (tui_disasm_window::location_matches_p): Update.
8123 (tui_disasm_window::display_start_addr): New method.
8124
8125 2020-02-22 Tom Tromey <tom@tromey.com>
8126
8127 * NEWS: Add entry for gdb.register_window_type.
8128 * tui/tui-layout.h (window_factory): New typedef.
8129 (tui_register_window): Declare.
8130 * tui/tui-layout.c (saved_tui_windows): New global.
8131 (tui_apply_current_layout): Use it.
8132 (tui_register_window): New function.
8133 * python/python.c (do_start_initialization): Call
8134 gdbpy_initialize_tui.
8135 (python_GdbMethods): Add "register_window_type" function.
8136 * python/python-internal.h (gdbpy_register_tui_window)
8137 (gdbpy_initialize_tui): Declare.
8138 * python/py-tui.c: New file.
8139 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
8140
8141 2020-02-22 Tom Tromey <tom@tromey.com>
8142
8143 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
8144
8145 2020-02-22 Tom Tromey <tom@tromey.com>
8146
8147 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
8148 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
8149 * tui/tui-data.c (tui_set_win_with_focus): Remove.
8150 (tui_set_win_focus_to): Move from tui-win.c.
8151
8152 2020-02-22 Tom Tromey <tom@tromey.com>
8153
8154 * tui/tui-layout.c (make_standard_window, get_locator_window): New
8155 functions.
8156 (known_window_types): New global.
8157 (tui_get_window_by_name): Reimplement.
8158 (initialize_known_windows): New function.
8159 (validate_window_name): Rewrite.
8160 (_initialize_tui_layout): Call initialize_known_windows.
8161
8162 2020-02-22 Tom Tromey <tom@tromey.com>
8163
8164 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
8165 Remove constants.
8166 * tui/tui-winsource.h (struct tui_source_window_base)
8167 <tui_source_window_base>: Remove parameter.
8168 * tui/tui-winsource.c
8169 (tui_source_window_base::tui_source_window_base): Remove
8170 parameter.
8171 (tui_source_window_base::refill): Update.
8172 * tui/tui-stack.h (struct tui_locator_window)
8173 <tui_locator_window>: Update.
8174 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
8175 Default the constructor.
8176 * tui/tui-regs.h (struct tui_data_item_window)
8177 <tui_data_item_window>: Default the constructor.
8178 (struct tui_data_window) <tui_data_window>: Likewise.
8179 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
8180 Default the constructor.
8181 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
8182 Default the constructor.
8183 <type>: Remove.
8184 (struct tui_win_info) <tui_win_info>: Default the constructor.
8185 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
8186 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
8187 Default the constructor.
8188
8189 2020-02-22 Tom Tromey <tom@tromey.com>
8190
8191 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
8192 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
8193 * tui/tui-win.c (tui_resize_all): Don't call
8194 tui_delete_invisible_windows.
8195 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
8196 done.
8197 (tui_set_layout): Update.
8198 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
8199 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
8200 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
8201
8202 2020-02-22 Tom Tromey <tom@tromey.com>
8203
8204 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
8205 correctly.
8206
8207 2020-02-22 Tom Tromey <tom@tromey.com>
8208
8209 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
8210
8211 2020-02-22 Tom Tromey <tom@tromey.com>
8212
8213 * tui/tui-winsource.h (struct tui_source_window_iterator)
8214 <inner_iterator>: New etytypedef.
8215 <tui_source_window_iterator>: Take "end" parameter.
8216 <tui_source_window_iterator>: Take iterator.
8217 <operator*, advance>: Update.
8218 <m_iter>: Change type.
8219 <m_end>: New field.
8220 (struct tui_source_windows) <begin, end>: Update.
8221 * tui/tui-layout.c (tui_windows): New global.
8222 (tui_apply_current_layout): Clear tui_windows.
8223 (tui_layout_window::apply): Update tui_windows.
8224 * tui/tui-data.h (tui_windows): Declare.
8225 (all_tui_windows): Now inline function.
8226 (class tui_window_iterator, struct all_tui_windows): Remove.
8227
8228 2020-02-22 Tom Tromey <tom@tromey.com>
8229
8230 PR tui/17850:
8231 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
8232 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
8233 "height" argument.
8234 (class tui_layout_window) <get_sizes>: Likewise.
8235 (class tui_layout_split) <tui_layout_split>: Add "vertical"
8236 argument.
8237 <get_sizes>: Add "height" argument.
8238 <m_vertical>: New field.
8239 * tui/tui-layout.c (tui_layout_split::clone): Update.
8240 (tui_layout_split::get_sizes): Add "height" argument.
8241 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
8242 (tui_new_layout_command): Parse "-horizontal".
8243 (_initialize_tui_layout): Update help string.
8244 (tui_layout_split::specification): Add "-horizontal" when needed.
8245 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
8246 argument.
8247 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
8248 New methods.
8249
8250 2020-02-22 Tom Tromey <tom@tromey.com>
8251
8252 * tui/tui-layout.h (enum tui_adjust_result): New.
8253 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
8254 (class tui_layout_window) <adjust_size>: Return
8255 tui_adjust_result. Rewrite.
8256 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
8257 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
8258
8259 2020-02-22 Tom Tromey <tom@tromey.com>
8260
8261 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
8262 parameter and return types.
8263 (class tui_layout_base) <specification>: Add "depth".
8264 (class tui_layout_window) <specification>: Add "depth".
8265 (class tui_layout_split) <specification>: Add "depth".
8266 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
8267 and return types.
8268 (tui_new_layout_command): Parse sub-layouts.
8269 (_initialize_tui_layout): Update help string.
8270 (tui_layout_window::specification): Add "depth".
8271 (add_layout_command): Update.
8272
8273 2020-02-22 Tom Tromey <tom@tromey.com>
8274
8275 * NEWS: Add "tui new-layout" item.
8276 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
8277 Add new-layout command to help text.
8278 (validate_window_name): New function.
8279 (tui_new_layout_command): New function.
8280 (_initialize_tui_layout): Register "new-layout".
8281 (tui_layout_window::specification): New method.
8282 (tui_layout_window::specification): New method.
8283 * tui/tui-layout.h (class tui_layout_base) <specification>: New
8284 method.
8285 (class tui_layout_window) <specification>: New method.
8286 (class tui_layout_split) <specification>: New method.
8287
8288 2020-02-22 Tom Tromey <tom@tromey.com>
8289
8290 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
8291 * tui/tui-win.c (window_name_completer): Update comment.
8292 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
8293 Declare method.
8294 (class tui_layout_window) <replace_window>: Likewise.
8295 (class tui_layout_split) <replace_window>: Likewise.
8296 (tui_set_layout): Don't declare.
8297 (tui_set_initial_layout): Declare function.
8298 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
8299 (asm_regs_layout): New globals.
8300 (tui_current_layout, show_layout): Remove.
8301 (tui_set_layout, tui_add_win_to_layout): Rewrite.
8302 (find_layout, tui_apply_layout): New function.
8303 (layout_completer): Remove.
8304 (tui_next_layout): Reimplement.
8305 (tui_next_layout_command): New function.
8306 (tui_set_initial_layout, tui_prev_layout_command): New functions.
8307 (tui_regs_layout): Reimplement.
8308 (tui_regs_layout_command): New function.
8309 (extract_display_start_addr): Rewrite.
8310 (next_layout, prev_layout): Remove.
8311 (tui_layout_window::replace_window): New method.
8312 (tui_layout_split::replace_window): New method.
8313 (destroy_layout): New function.
8314 (layout_list): New global.
8315 (add_layout_command): New function.
8316 (initialize_layouts): Update.
8317 (tui_layout_command): New function.
8318 (_initialize_tui_layout): Install "layout" commands.
8319 * tui/tui-data.h (enum tui_layout_type): Remove.
8320 (tui_current_layout): Don't declare.
8321
8322 2020-02-22 Tom Tromey <tom@tromey.com>
8323
8324 * tui/tui-regs.c (tui_reg_layout): Remove.
8325 (tui_reg_command): Use tui_regs_layout.
8326 * tui/tui-layout.h (tui_reg_command): Declare.
8327 * tui/tui-layout.c (tui_reg_command): New function.
8328
8329 2020-02-22 Tom Tromey <tom@tromey.com>
8330
8331 * tui/tui.c (tui_rl_delete_other_windows): Call
8332 tui_remove_some_windows.
8333 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
8334 Declare method.
8335 (class tui_layout_window) <remove_windows>: New method.
8336 (class tui_layout_split) <remove_windows>: Declare.
8337 (tui_remove_some_windows): Declare.
8338 * tui/tui-layout.c (tui_remove_some_windows): New function.
8339 (tui_layout_split::remove_windows): New method.
8340
8341 2020-02-22 Tom Tromey <tom@tromey.com>
8342
8343 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
8344 * tui/tui-layout.h (tui_next_layout): Declare.
8345 * tui/tui-layout.c (tui_next_layout): New function.
8346
8347 2020-02-22 Tom Tromey <tom@tromey.com>
8348
8349 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
8350 correct coordinates.
8351
8352 2020-02-22 Tom Tromey <tom@tromey.com>
8353
8354 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
8355 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
8356 DATA_WIN case.
8357
8358 2020-02-22 Tom Tromey <tom@tromey.com>
8359
8360 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
8361 TUI_DISASM_WIN, not tui_win_list.
8362
8363 2020-02-22 Tom Tromey <tom@tromey.com>
8364
8365 * valprint.c (generic_val_print_enum_1)
8366 (val_print_type_code_flags): Style member names.
8367 * rust-lang.c (val_print_struct, rust_print_enum)
8368 (rust_print_struct_def, rust_internal_print_type): Style member
8369 names.
8370 * p-valprint.c (pascal_object_print_value_fields): Style member
8371 names. Only call fprintf_symbol_filtered for static members.
8372 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
8373 * f-valprint.c (f_val_print): Style member names.
8374 * f-typeprint.c (f_type_print_base): Style member names.
8375 * cp-valprint.c (cp_print_value_fields): Style member names. Only
8376 call fprintf_symbol_filtered for static members.
8377 (cp_print_class_member): Style member names.
8378 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
8379 member names.
8380 * ada-valprint.c (ada_print_scalar): Style enum names.
8381 (ada_val_print_enum): Likewise.
8382 * ada-typeprint.c (print_enum_type): Style enum names.
8383
8384 2020-02-21 Tom Tromey <tom@tromey.com>
8385
8386 * psympriv.h (struct partial_symtab): Update comment.
8387
8388 2020-02-21 Tom Tromey <tromey@adacore.com>
8389
8390 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
8391 type is CORE_ADDR.
8392
8393 2020-02-21 Tom de Vries <tdevries@suse.de>
8394
8395 PR gdb/25534
8396 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
8397 if dependencies[i]->user != NULL.
8398
8399 2020-02-21 Ali Tamur <tamur@google.com>
8400
8401 * dwarf2/read.c (dwarf2_name): Add null check.
8402
8403 2020-02-20 Tom Tromey <tom@tromey.com>
8404
8405 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
8406 ">=", in binary search.
8407 (dwarf2_find_containing_comp_unit): New overload.
8408 (run_test): New self-test.
8409 (_initialize_dwarf2_read): Register new test.
8410
8411 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
8412
8413 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
8414 * riscv-tdep.h: Likewise.
8415 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
8416 rv32-only CSR.
8417 * features/riscv/64bit-csr.xml: Regenerated.
8418
8419 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
8420 Tom Tromey <tom@tromey.com>
8421
8422 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
8423 of 'fputc_unfiltered'.
8424 (putchar_unfiltered): Call 'fputc_unfiltered'.
8425 (fputc_unfiltered): Call 'fputs_unfiltered'.
8426
8427 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
8428
8429 * config.in: Regenerate.
8430 * configure: Regenerate.
8431 * configure.ac: Add --with-python-libdir option.
8432 * main.c: Use WITH_PYTHON_LIBDIR.
8433
8434 2020-02-19 Tom Tromey <tom@tromey.com>
8435
8436 * symtab.c (general_symbol_info::compute_and_set_names): Use
8437 obstack_strndup. Simplify call to symbol_set_demangled_name.
8438
8439 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
8440
8441 * dwarf2/read.c (allocate_signatured_type_table,
8442 allocate_dwo_unit_table, allocate_type_unit_groups_table,
8443 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
8444 Remove objfile parameter, update all callers.
8445
8446 2020-02-19 Doug Evans <dje@google.com>
8447
8448 PR rust/25535
8449 * rust-lang.c (rust_print_enum): Apply embedded_offset to
8450 rust_enum_variant calculation.
8451
8452 2020-02-19 Tom Tromey <tromey@adacore.com>
8453
8454 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
8455
8456 2020-02-19 Tom Tromey <tromey@adacore.com>
8457
8458 * ada-lang.c (cache_symbol): Use obstack_strdup.
8459
8460 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
8461
8462 * configure: Regenerate.
8463
8464 2020-02-19 Tom Tromey <tromey@adacore.com>
8465
8466 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
8467 NULL check.
8468
8469 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
8470
8471 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
8472
8473 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
8474
8475 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
8476 if GDBSERVER is not defined.
8477 (riscv_tdesc_cache): Likewise, also store const target_desc.
8478 (STATIC_IN_GDB): Define.
8479 (riscv_create_target_description): Update declaration with
8480 STATIC_IN_GDB.
8481 (riscv_lookup_target_description): New function, only define if
8482 GDBSERVER is not defined.
8483 * arch/riscv.h (riscv_create_target_description): Declare only
8484 when GDBSERVER is defined.
8485 (riscv_lookup_target_description): New declaration when GDBSERVER
8486 is not defined.
8487 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
8488 (riscv_linux_read_features): ...this, and return
8489 riscv_gdbarch_features instead of target_desc.
8490 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
8491 (riscv_linux_read_description): Rename to...
8492 (riscv_linux_read_features): ...this.
8493 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
8494 Update to use riscv_gdbarch_features and
8495 riscv_lookup_target_description.
8496 * riscv-tdep.c (riscv_find_default_target_description): Use
8497 riscv_lookup_target_description instead of
8498 riscv_create_target_description.
8499
8500 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
8501
8502 * valprint.c (generic_val_print_enum_1): When printing a flag
8503 enum with value 0 and there is no enumerator with value 0, print
8504 just "0" instead of "(unknown: 0x0)".
8505
8506 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
8507
8508 * valprint.c (generic_val_print_enum_1): Print unknown part of
8509 flag enum in hex.
8510
8511 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
8512
8513 * dwarf2/read.c (update_enumeration_type_from_children): Allow
8514 flag enums to contain duplicate enumerators.
8515 * valprint.c (generic_val_print_enum_1): Update comment.
8516
8517 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
8518
8519 * dwarf2/read.c: Include "count-one-bits.h".
8520 (update_enumeration_type_from_children): If an enumerator has
8521 multiple bits set, don't treat the enumeration as a "flag enum".
8522 * valprint.c (generic_val_print_enum_1): Assert that enumerators
8523 of flag enums have 0 or 1 bit set.
8524
8525 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
8526
8527 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
8528 conversion.
8529 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8530 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
8531 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8532 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
8533 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8534
8535 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
8536
8537 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
8538
8539 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
8540
8541 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
8542 displaced_step_closure_up.
8543 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
8544 (struct displaced_step_closure_up):
8545 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8546 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
8547 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
8548 Likewise.
8549 * gdbarch.sh (displaced_step_copy_insn): Likewise.
8550 * gdbarch.c, gdbarch.h: Re-generate.
8551 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
8552 displaced_step_closure_up.
8553 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8554 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
8555 * infrun.h (displaced_step_closure_up): New type alias.
8556 (struct displaced_step_inferior_state) <step_closure>: Change
8557 type to displaced_step_closure_up.
8558 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
8559 displaced_step_closure_up.
8560 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8561
8562 2020-02-14 Tom Tromey <tom@tromey.com>
8563
8564 * minidebug.c (gnu_debug_key): New global.
8565 (find_separate_debug_file_in_section): Use it.
8566
8567 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
8568
8569 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
8570 std::unique_ptr.
8571 * gdbarch.c: Re-generate.
8572 * gdbarch.h: Re-generate.
8573 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
8574 change.
8575 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
8576 type to std::unique_ptr.
8577 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
8578 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8579 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
8580 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
8581 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
8582 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8583 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
8584 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
8585 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8586
8587 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
8588
8589 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
8590 std::unique_ptr.
8591 (displaced_step_clear): Rename to...
8592 (displaced_step_reset): ... this. Just call displaced->reset ().
8593 (displaced_step_clear_cleanup): Rename to...
8594 (displaced_step_reset_cleanup): ... this.
8595 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
8596 (displaced_step_fixup): Likewise.
8597 (resume_1): Likewise.
8598 (handle_inferior_event): Restore child's memory before calling
8599 displaced_step_fixup on the parent.
8600 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
8601 to std::unique_ptr.
8602 <step_closure>: Change type to std::unique_ptr.
8603
8604 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
8605
8606 * arm-tdep.c: Include count-one-bits.h.
8607 (cleanup_block_store_pc): Use count_one_bits.
8608 (cleanup_block_load_pc): Use count_one_bits.
8609 (arm_copy_block_xfer): Use count_one_bits.
8610 (thumb2_copy_block_xfer): Use count_one_bits.
8611 (thumb_copy_pop_pc_16bit): Use count_one_bits.
8612 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
8613 (thumb_get_next_pcs_raw): Use count_one_bits.
8614 (arm_get_next_pcs_raw): Use count_one_bits_l.
8615 * arch/arm.c (bitcount): Remove.
8616 * arch/arm.h (bitcount): Remove.
8617
8618 2020-02-14 Tom Tromey <tromey@adacore.com>
8619
8620 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
8621 Update.
8622 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
8623 * dwarf2/loc.c (call_site_find_chain_1): Return
8624 unique_xmalloc_ptr.
8625 (call_site_find_chain): Likewise.
8626
8627 2020-02-14 Richard Biener <rguenther@suse.de>
8628
8629 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
8630 on expression with division operators.
8631
8632 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8633
8634 * MAINTAINERS (Write After Approval): Adding myself.
8635
8636 2020-02-12 Tom Tromey <tom@tromey.com>
8637
8638 * event-loop.c (event_data, gdb_event, event_handler_func):
8639 Remove.
8640
8641 2020-02-12 Tom Tromey <tom@tromey.com>
8642
8643 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
8644 (dwarf2_frame_objfile_data): Add comment.
8645 (find_comp_unit, set_comp_unit): New functions.
8646 (dwarf2_frame_find_fde): Use find_comp_unit.
8647 (dwarf2_build_frame_info): Use set_comp_unit.
8648
8649 2020-02-12 Tom Tromey <tom@tromey.com>
8650
8651 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
8652 (comp_unit): Don't initialize objfile.
8653 (execute_cfa_program): Add text_offset parameter.
8654 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
8655 (dwarf2_frame_cache): Update.
8656 (dwarf2_build_frame_info): Don't set "objfile" member.
8657
8658 2020-02-12 Tom Tromey <tom@tromey.com>
8659
8660 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
8661 (decode_frame_entry): Likewise.
8662 (dwarf2_build_frame_info): Update.
8663
8664 2020-02-12 Tom Tromey <tom@tromey.com>
8665
8666 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
8667 (decode_frame_entry_1): Use the comp_unit obstack.
8668
8669 2020-02-12 Tom Tromey <tom@tromey.com>
8670
8671 * dwarf2/frame.c (struct comp_unit): Add initializers and
8672 constructor.
8673 (dwarf2_frame_objfile_data): Store a comp_unit.
8674 (dwarf2_frame_find_fde): Update.
8675 (dwarf2_build_frame_info): Use "new".
8676
8677 2020-02-12 Tom Tromey <tom@tromey.com>
8678
8679 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
8680 (dwarf2_fde_table): Typedef for std::vector.
8681 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
8682 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
8683 (decode_frame_entry): Update.
8684 (dwarf2_build_frame_info): Use "new".
8685
8686 2020-02-12 Christian Biesinger <cbiesinger@google.com>
8687
8688 * arm-tdep.c (arm_gdbarch_init): Update.
8689 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
8690 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
8691 have_neon, is_m>: Change to bool.
8692
8693 2020-02-12 Christian Biesinger <cbiesinger@google.com>
8694
8695 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
8696
8697 2020-02-12 Tom Tromey <tom@tromey.com>
8698
8699 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
8700
8701 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
8702
8703 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
8704 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
8705
8706 2020-02-11 Tom Tromey <tom@tromey.com>
8707
8708 * psymtab.h: Update comment.
8709
8710 2020-02-11 Tom Tromey <tom@tromey.com>
8711
8712 * gdb_obstack.h (struct auto_obstack): Use
8713 DISABLE_COPY_AND_ASSIGN.
8714
8715 2020-02-11 Tom Tromey <tom@tromey.com>
8716
8717 * dwarf2/frame.h (struct objfile): Don't forward declare.
8718
8719 2020-02-11 Christian Biesinger <cbiesinger@google.com>
8720
8721 * cris-tdep.c (cris_supply_gregset): Change signature to match
8722 what struct regset expects.
8723 (cris_regset): New struct.
8724 (fetch_core_registers): Remove.
8725 (cris_iterate_over_regset_sections): New function.
8726 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
8727 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
8728
8729 2020-02-11 Christian Biesinger <cbiesinger@google.com>
8730
8731 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
8732 registers.
8733
8734 2020-02-11 Christian Biesinger <cbiesinger@google.com>
8735
8736 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
8737
8738 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
8739
8740 * configure: Re-generate.
8741
8742 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
8743
8744 * configure: Re-generate.
8745
8746 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
8747
8748 * acinclude: Update warning.m4 path.
8749 * warning.m4: Move to gdbsupport.
8750
8751 2020-02-11 Tom Tromey <tromey@adacore.com>
8752
8753 * remote.c (remote_console_output): Update.
8754 * printcmd.c (printf_command): Update.
8755 * event-loop.c (gdb_wait_for_event): Update.
8756 * linux-nat.c (sigchld_handler): Update.
8757 * remote-sim.c (gdb_os_write_stdout): Update.
8758 (gdb_os_flush_stdout): Update.
8759 (gdb_os_flush_stderr): Update.
8760 (gdb_os_write_stderr): Update.
8761 * exceptions.c (print_exception): Update.
8762 * remote-fileio.c (remote_fileio_func_read): Update.
8763 (remote_fileio_func_write): Update.
8764 * tui/tui.c (tui_enable): Update.
8765 * tui/tui-interp.c (tui_interp::init): Update.
8766 * utils.c (init_page_info): Update.
8767 (putchar_unfiltered, fputc_unfiltered): Update.
8768 (gdb_flush): Update.
8769 (emit_style_escape): Update.
8770 (flush_wrap_buffer, fputs_maybe_filtered): Update.
8771 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
8772 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
8773 (stderr_file::write): Update.
8774 (stderr_file::puts): Update.
8775 * ui-file.h (ui_file_isatty, ui_file_write)
8776 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
8777 (ui_file_puts): Don't declare.
8778
8779 2020-02-10 Tom de Vries <tdevries@suse.de>
8780
8781 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
8782 sentinel to char *.
8783
8784 2020-02-09 Tom de Vries <tdevries@suse.de>
8785
8786 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
8787 filename if it matches "<artificial>".
8788
8789 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
8790
8791 * windows-tdep.c (struct enum_value_name): New struct.
8792 (create_enum): New function.
8793 (windows_get_siginfo_type): Create and use enum types.
8794
8795 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
8796
8797 * NEWS: Mention $_siginfo support for Windows.
8798 * windows-nat.c (handle_exception): Set siginfo_er.
8799 (windows_nat_target::mourn_inferior): Reset siginfo_er.
8800 (windows_xfer_siginfo): New function.
8801 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
8802 * windows-tdep.c (struct windows_gdbarch_data): New struct.
8803 (init_windows_gdbarch_data): New function.
8804 (get_windows_gdbarch_data): New function.
8805 (windows_get_siginfo_type): New function.
8806 (windows_init_abi): Register windows_get_siginfo_type.
8807 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
8808
8809 2020-02-08 Tom Tromey <tom@tromey.com>
8810
8811 * dwarf2/read.c (class cutu_reader) <cutu_reader,
8812 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
8813 <keep>: Declare method.
8814 <m_keep>: Remove member.
8815 <~cutu_reader>: Remove.
8816 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8817 (cutu_reader::cutu_reader): Update.
8818 (cutu_reader::keep): Rename from ~cutu_reader.
8819 (process_psymtab_comp_unit, build_type_psymtabs_1)
8820 (process_skeletonless_type_unit, load_partial_comp_unit)
8821 (load_full_comp_unit, dwarf2_read_addr_index)
8822 (read_signatured_type): Update.
8823
8824 2020-02-08 Tom Tromey <tom@tromey.com>
8825
8826 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
8827 "want_partial_unit" parameter.
8828 (process_psymtab_comp_unit): Change want_partial_unit to bool.
8829 Inline check for DW_TAG_partial_unit.
8830 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
8831
8832 2020-02-08 Tom Tromey <tom@tromey.com>
8833
8834 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
8835 read.c.
8836 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
8837 read.c.
8838
8839 2020-02-08 Tom Tromey <tom@tromey.com>
8840
8841 * dwarf2/read.c (read_address): Move to comp-unit.c.
8842 (dwarf2_rnglists_process, dwarf2_ranges_process)
8843 (read_attribute_value, dwarf_decode_lines_1)
8844 (var_decode_location, decode_locdesc): Update.
8845 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
8846 read.c. Remove "cu" parameter.
8847 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
8848 method.
8849
8850 2020-02-08 Tom Tromey <tom@tromey.com>
8851
8852 * dwarf2/read.c (read_attribute_value, read_indirect_string)
8853 (read_indirect_line_string): Update.
8854 * dwarf2/comp-unit.c (read_offset): Remove.
8855 (read_comp_unit_head): Update.
8856 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
8857 method.
8858 (read_offset): Don't declare.
8859
8860 2020-02-08 Tom Tromey <tom@tromey.com>
8861
8862 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
8863 * dwarf2/read.c (struct comp_unit_head): Move to
8864 dwarf2/comp-unit.h.
8865 (enum class rcuh_kind): Move to comp-unit.h.
8866 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
8867 (read_comp_unit_head, error_check_comp_unit_head)
8868 (read_and_check_comp_unit_head): Move to comp-unit.c.
8869 (read_offset, dwarf_unit_type_name): Likewise.
8870 (create_debug_type_hash_table, read_cutu_die_from_dwo)
8871 (cutu_reader::cutu_reader, read_call_site_scope)
8872 (find_partial_die, follow_die_offset): Update.
8873 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
8874
8875 2020-02-08 Tom Tromey <tom@tromey.com>
8876
8877 * dwarf2/read.c (read_offset_1): Move to leb.c.
8878 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
8879 (dwarf_decode_macro_bytes): Update.
8880 * dwarf2/leb.c (read_offset): Rename; move from read.c.
8881 * dwarf2/leb.h (read_offset): Declare.
8882
8883 2020-02-08 Tom Tromey <tom@tromey.com>
8884
8885 * dwarf2/read.c (dwarf2_section_size): Remove.
8886 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
8887 Update.
8888 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
8889
8890 2020-02-08 Tom Tromey <tom@tromey.com>
8891
8892 * dwarf2/read.c (read_initial_length): Move to leb.c.
8893 * dwarf2/leb.h (read_initial_length): Declare.
8894 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
8895 handle_nonstd parameter.
8896 * dwarf2/frame.c (read_initial_length): Remove.
8897 (decode_frame_entry_1): Update.
8898
8899 2020-02-08 Tom Tromey <tom@tromey.com>
8900
8901 * dwarf2/loc.c (dwarf2_find_location_expression)
8902 (dwarf_evaluate_loc_desc::get_tls_address)
8903 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
8904 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
8905 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
8906 (dwarf2_compile_property_to_c)
8907 (dwarf2_loc_desc_get_symbol_read_needs)
8908 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
8909 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
8910 (loclist_describe_location, loclist_tracepoint_var_ref)
8911 (loclist_generate_c_location): Update.
8912 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
8913 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
8914 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
8915 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
8916 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
8917 (dwarf2_per_cu_data::addr_size)
8918 (dwarf2_per_cu_data::ref_addr_size)
8919 (dwarf2_per_cu_data::text_offset)
8920 (dwarf2_per_cu_data::addr_type): Now methods.
8921 (per_cu_header_read_in): Make per_cu "const".
8922 (dwarf2_version): Remove.
8923 (dwarf2_per_cu_data::int_type): Now a method.
8924 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
8925 (set_die_type, read_array_type, read_subrange_index_type)
8926 (read_tag_string_type, read_subrange_type): Update.
8927 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
8928 offset_size, ref_addr_size, text_offset, addr_type, version,
8929 objfile, int_type, addr_sized_int_type>: Declare methods.
8930
8931 2020-02-08 Tom Tromey <tom@tromey.com>
8932
8933 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
8934 Move earlier.
8935
8936 2020-02-08 Tom Tromey <tom@tromey.com>
8937
8938 * dwarf2/read.h (dwarf_line_debug): Declare.
8939 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
8940 * dwarf2/read.c: Move line_header code to new files.
8941 (dwarf_line_debug): No longer static.
8942 * dwarf2/line-header.c: New file.
8943 * dwarf2/line-header.h: New file.
8944
8945 2020-02-08 Tom Tromey <tom@tromey.com>
8946
8947 * dwarf2/read.c (struct line_header) <file_full_name,
8948 file_file_name>: Return unique_xmalloc_ptr.
8949 (line_header::file_file_name): Update.
8950 (line_header::file_full_name): Update.
8951 (dw2_get_file_names_reader): Update.
8952 (macro_start_file): Update.
8953
8954 2020-02-08 Tom Tromey <tom@tromey.com>
8955
8956 * dwarf2/read.c (struct line_header) <file_full_name,
8957 file_file_name>: Declare methods.
8958 (dw2_get_file_names_reader): Update.
8959 (file_file_name): Now a method.
8960 (file_full_name): Likewise.
8961 (macro_start_file): Update.
8962
8963 2020-02-08 Tom Tromey <tom@tromey.com>
8964
8965 * dwarf2/read.c (dwarf_always_disassemble)
8966 (show_dwarf_always_disassemble): Move to loc.c.
8967 (_initialize_dwarf2_read): Move "always-disassemble" registration
8968 to loc.c.
8969 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
8970 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
8971 static.
8972 (show_dwarf_always_disassemble): Move from read.c.
8973 (_initialize_dwarf2loc): Move always-disassemble from read.c.
8974
8975 2020-02-08 Tom Tromey <tom@tromey.com>
8976
8977 * dwarf2/read.c (~dwarf2_per_objfile): Update.
8978 (create_quick_file_names_table): Return htab_up.
8979 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
8980 Update.
8981 * dwarf2/read.h (struct dwarf2_per_objfile)
8982 <quick_file_names_table>: Now htab_up.
8983
8984 2020-02-08 Tom Tromey <tom@tromey.com>
8985
8986 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
8987
8988 2020-02-08 Tom Tromey <tom@tromey.com>
8989
8990 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
8991 Rewrite.
8992 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
8993 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
8994 (abbrev_table::abbrev_table): No longer inline.
8995 (ABBREV_HASH_SIZE): Remove.
8996 (abbrev_table::m_abbrevs): Now an htab_up.
8997
8998 2020-02-08 Tom Tromey <tom@tromey.com>
8999
9000 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
9001 (cutu_reader): Update.
9002 (build_type_psymtabs_1): Update.
9003 * dwarf2/abbrev.c (abbrev_table::read): Rename.
9004 (abbrev_table::alloc_abbrev): Update.
9005 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
9006 (abbrev_table::read): New static method, renamed from
9007 abbrev_table_read_table.
9008 (abbrev_table::alloc_abbrev)
9009 (abbrev_table::add_abbrev): Now private.
9010 (abbrev_table::abbrev_table): Now private.
9011 (abbrev_table::m_abbrev_obstack): Now private. Rename.
9012
9013 2020-02-08 Tom Tromey <tom@tromey.com>
9014
9015 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
9016 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
9017 htab_up.
9018
9019 2020-02-08 Tom Tromey <tom@tromey.com>
9020
9021 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
9022 htab_up.
9023 (lookup_dwo_unit_in_dwp): Update.
9024 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
9025 on obstack.
9026
9027 2020-02-08 Tom Tromey <tom@tromey.com>
9028
9029 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
9030 obstack.
9031
9032 2020-02-08 Tom Tromey <tom@tromey.com>
9033
9034 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
9035 line_header_hash.
9036 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
9037 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
9038 Change type to htab_up.
9039
9040 2020-02-08 Tom Tromey <tom@tromey.com>
9041
9042 * dwarf2/read.c (allocate_type_unit_groups_table): Return
9043 htab_up. Don't allocate on obstack.
9044 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
9045 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
9046 Change type to htab_up.
9047
9048 2020-02-08 Tom Tromey <tom@tromey.com>
9049
9050 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
9051 Change type to htab_up.
9052 * dwarf2/read.c (create_signatured_type_table_from_index)
9053 (create_signatured_type_table_from_debug_names)
9054 (create_all_type_units, add_type_unit)
9055 (lookup_dwo_signatured_type, lookup_signatured_type)
9056 (process_skeletonless_type_unit): Update.
9057 (create_debug_type_hash_table, create_debug_types_hash_table):
9058 Change type of types_htab.
9059 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
9060 htab_up. Don't allocate on obstack.
9061 (create_cus_hash_table): Change type of cus_htab parameter.
9062 (struct dwo_file) <cus, tus>: Now htab_up.
9063 (lookup_dwo_signatured_type, lookup_dwo_cutu)
9064 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
9065 (queue_and_load_all_dwo_tus): Update.
9066 * dwarf2/index-write.c (write_gdbindex): Update.
9067 (write_debug_names): Update.
9068
9069 2020-02-08 Tom Tromey <tom@tromey.com>
9070
9071 * dwarf2/read.h (struct dwarf2_queue_item): Move from
9072 dwarf2/read.c. Remove "next" member. Add constructor ntad
9073 destructor.
9074 (struct dwarf2_per_objfile) <queue>: New member.
9075 * dwarf2/read.c (struct dwarf2_queue_item): Move to
9076 dwarf2/read.h.
9077 (dwarf2_queue, dwarf2_queue_tail): Remove.
9078 (class dwarf2_queue_guard): Add parameter to constructor. Use
9079 DISABLE_COPY_AND_ASSIGN.
9080 <m_per_objfile>: New member.
9081 <~dwarf2_queue_guard>: Rewrite.
9082 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
9083 Update.
9084 (~dwarf2_queue_item): New.
9085
9086 2020-02-08 Tom Tromey <tom@tromey.com>
9087
9088 * dwarf2/read.c (struct die_info) <has_children>: New member.
9089 (dw2_get_file_names_reader): Remove has_children.
9090 (dw2_get_file_names): Update.
9091 (read_cutu_die_from_dwo): Remove has_children.
9092 (cutu_reader::init_tu_and_read_dwo_dies)
9093 (cutu_reader::cutu_reader): Update.
9094 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
9095 Remove has_children.
9096 (build_type_psymtabs_1, process_skeletonless_type_unit)
9097 (load_partial_comp_unit, load_full_comp_unit): Update.
9098 (create_dwo_cu_reader): Remove has_children.
9099 (create_cus_hash_table, read_die_and_children): Update.
9100 (read_full_die_1,read_full_die): Remove has_children.
9101 (read_signatured_type): Update.
9102 (class cutu_reader) <has_children>: Remove.
9103
9104 2020-02-08 Tom Tromey <tom@tromey.com>
9105
9106 * dwarf2/expr.c: Rename from dwarf2expr.c.
9107 * dwarf2/expr.h: Rename from dwarf2expr.h.
9108 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
9109 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
9110 * dwarf2/frame.c: Rename from dwarf2-frame.c.
9111 * dwarf2/frame.h: Rename from dwarf2-frame.h.
9112 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
9113 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
9114 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
9115 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
9116 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
9117 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
9118 * dwarf2/loc.c: Rename from dwarf2loc.c.
9119 * dwarf2/loc.h: Rename from dwarf2loc.h.
9120 * dwarf2/read.c: Rename from dwarf2read.c.
9121 * dwarf2/read.h: Rename from dwarf2read.h.
9122 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
9123 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
9124 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
9125 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
9126 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
9127 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
9128 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
9129 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
9130 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
9131 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
9132 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
9133 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
9134 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
9135 Update.
9136 * Makefile.in (COMMON_SFILES): Update.
9137 (HFILES_NO_SRCDIR): Update.
9138
9139 2020-02-08 Tom Tromey <tom@tromey.com>
9140
9141 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
9142 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
9143
9144 2020-02-08 Tom Tromey <tom@tromey.com>
9145
9146 * dwarf2read.h (struct die_info): Don't declare.
9147
9148 2020-02-08 Tom Tromey <tom@tromey.com>
9149
9150 * dwarf2read.h (die_info_ptr): Remove typedef.
9151
9152 2020-02-08 Tom Tromey <tom@tromey.com>
9153
9154 * dwarf2read.c (read_call_site_scope)
9155 (handle_data_member_location, dwarf2_add_member_fn)
9156 (mark_common_block_symbol_computed, read_common_block)
9157 (attr_to_dynamic_prop, partial_die_info::read)
9158 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
9159 (dwarf2_symbol_mark_computed, set_die_type): Update.
9160 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
9161 method.
9162 (attr_form_is_block): Don't declare.
9163 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
9164
9165 2020-02-08 Tom Tromey <tom@tromey.com>
9166
9167 * dwarf2read.c (dwarf2_find_base_address, )
9168 (read_call_site_scope, rust_containing_type)
9169 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
9170 (handle_data_member_location, dwarf2_add_member_fn)
9171 (get_alignment, read_structure_type, process_structure_scope)
9172 (mark_common_block_symbol_computed, read_common_block)
9173 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
9174 (partial_die_info::read, read_attribute_value, new_symbol)
9175 (lookup_die_type, dwarf2_get_ref_die_offset)
9176 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
9177 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
9178 (dwarf2_symbol_mark_computed): Update.
9179 * dwarf2/attribute.h (struct attribute) <value_as_address,
9180 form_is_section_offset, form_is_constant, form_is_ref>: Declare
9181 methods.
9182 (value_as_address, attr_form_is_section_offset)
9183 (attr_form_is_constant, attr_form_is_ref): Don't declare.
9184 * dwarf2/attribute.c (attribute::value_as_address)
9185 (attribute::form_is_section_offset, attribute::form_is_constant)
9186 (attribute::form_is_ref): Now methods.
9187
9188 2020-02-08 Tom Tromey <tom@tromey.com>
9189
9190 * dwarf2read.c (struct attribute, DW_STRING)
9191 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
9192 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
9193 (attr_form_is_block, attr_form_is_section_offset)
9194 (attr_form_is_constant, attr_form_is_ref): Move.
9195 * dwarf2/attribute.h: New file.
9196 * dwarf2/attribute.c: New file, from dwarf2read.c.
9197 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
9198
9199 2020-02-08 Tom Tromey <tom@tromey.com>
9200
9201 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
9202 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
9203 Move.
9204 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
9205 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
9206 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
9207 abbrev.c.
9208 * dwarf2/abbrev.h: New file.
9209 * dwarf2/abbrev.c: New file, from dwarf2read.c.
9210 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
9211
9212 2020-02-08 Tom Tromey <tom@tromey.com>
9213
9214 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
9215 (dwarf2_section_size, dwarf2_get_section_info)
9216 (create_signatured_type_table_from_debug_names)
9217 (create_addrmap_from_aranges, read_debug_names_from_section)
9218 (get_gdb_index_contents_from_section, read_comp_unit_head)
9219 (error_check_comp_unit_head, read_abbrev_offset)
9220 (create_debug_type_hash_table, init_cu_die_reader)
9221 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
9222 (read_comp_units_from_section, create_cus_hash_table)
9223 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
9224 (create_dwp_v2_section, dwarf2_rnglists_process)
9225 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
9226 (abbrev_table_read_table, read_indirect_string_at_offset_from)
9227 (read_indirect_string_from_dwz, read_addr_index_1)
9228 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
9229 (dwarf_decode_macro_bytes, dwarf_decode_macros)
9230 (fill_in_loclist_baton): Update.
9231 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
9232 get_containing_section, get_bfd_owner, get_bfd_section,
9233 get_file_name, get_id, get_flags, empty, read>: Declare methods.
9234 (dwarf2_read_section, get_section_name, get_section_file_name)
9235 (get_containing_section, get_section_bfd_owner)
9236 (get_section_bfd_section, get_section_name, get_section_file_name)
9237 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
9238 declare.
9239 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
9240 (dwarf2_section_info::get_bfd_owner)
9241 (dwarf2_section_info::get_bfd_section)
9242 (dwarf2_section_info::get_name)
9243 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
9244 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
9245 (dwarf2_section_info::read): Now methods.
9246 * dwarf-index-write.c (class debug_names): Update.
9247
9248 2020-02-08 Tom Tromey <tom@tromey.com>
9249
9250 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
9251 Move to dwarf2/section.h.
9252 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
9253 (get_section_bfd_section, get_section_name)
9254 (get_section_file_name, get_section_id, get_section_flags)
9255 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
9256 dwarf2/section.c.
9257 * dwarf2/section.h: New file.
9258 * dwarf2/section.c: New file, from dwarf2read.c.
9259 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
9260
9261 2020-02-08 Tom Tromey <tom@tromey.com>
9262
9263 * dwarf2read.h (read_unsigned_leb128): Don't declare.
9264 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
9265 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
9266 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
9267 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
9268 * dwarf2/leb.h: New file, from dwarf2read.c.
9269 * dwarf2/leb.c: New file, from dwarf2read.c.
9270 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
9271 Remove.
9272 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
9273 (COMMON_SFILES): Add dwarf2/leb.c.
9274
9275 2020-02-08 Joel Brobecker <brobecker@adacore.com>
9276
9277 GDB 9.1 released.
9278
9279 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9280
9281 PR gdb/25190:
9282 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
9283 * gdb/remote.c (remote_console_output): Update.
9284 * gdb/ui-file.c (fputs_unfiltered): Rename to...
9285 (ui_file_puts): ...this.
9286 * gdb/ui-file.h (ui_file_puts): Add declaration.
9287 * gdb/utils.c (emit_style_escape): Update.
9288 (flush_wrap_buffer): Update.
9289 (fputs_maybe_filtered): Update.
9290 (fputs_unfiltered): Add function.
9291
9292 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9293
9294 * gdb/event-loop.c (gdb_wait_for_event): Update.
9295 * gdb/printcmd.c (printf_command): Update.
9296 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
9297 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
9298 (gdb_os_flush_stderr): Update.
9299 * gdb/remote.c (remote_console_output): Update.
9300 * gdb/ui-file.c (gdb_flush): Rename to...
9301 (ui_file_flush): ...this.
9302 (stderr_file::write): Update.
9303 (stderr_file::puts): Update.
9304 * gdb/ui-file.h (gdb_flush): Rename to...
9305 (ui_file_flush): ...this.
9306 * gdb/utils.c (gdb_flush): Add function.
9307 * gdb/utils.h (gdb_flush): Add declaration.
9308
9309 2020-02-07 Tom Tromey <tromey@adacore.com>
9310
9311 PR breakpoints/24915:
9312 * source.c (find_and_open_source): Do not check basenames_may_differ.
9313
9314 2020-02-07 Tom Tromey <tom@tromey.com>
9315
9316 * README: Update gdbserver documentation.
9317 * gdbserver: Move to top level.
9318 * configure.tgt (build_gdbserver): Remove.
9319 * configure.ac: Remove --enable-gdbserver.
9320 * configure: Rebuild.
9321 * Makefile.in (distclean): Don't mention gdbserver.
9322
9323 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
9324
9325 * source-cache.c (source_cache::ensure): Surround
9326 get_plain_source_lines with a try/catch.
9327 (source_cache::get_line_charpos): Get rid of try/catch
9328 and only check for the return value of "ensure".
9329 * tui/tui-source.c (tui_source_window::set_contents):
9330 Simplify "nlines" calculation.
9331
9332 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
9333
9334 * MAINTAINERS (Write After Approval): Add myself.
9335
9336 2020-02-05 Christian Biesinger <cbiesinger@google.com>
9337
9338 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
9339 function call.
9340
9341 2020-02-05 Christian Biesinger <cbiesinger@google.com>
9342
9343 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
9344
9345 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
9346
9347 * nat/riscv-linux-tdesc.h: New file.
9348 * nat/riscv-linux-tdesc.c: New file, taking code from...
9349 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9350 ... here.
9351 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
9352 NATDEPFILES.
9353
9354 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
9355
9356 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
9357 we don't set the fake simulator ptid to the null_ptid.
9358
9359 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
9360
9361 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
9362 * gdbthread.h (class thread_info) <resumed>: Likewise.
9363 * infrun.c (resume_1): Likewise.
9364 (proceed): Likewise.
9365 (infrun_thread_stop_requested): Likewise.
9366 (stop_all_threads): Likewise.
9367 (handle_inferior_event): Likewise.
9368 (restart_threads): Likewise.
9369 (finish_step_over): Likewise.
9370 (keep_going_stepped_thread): Likewise.
9371 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
9372 (linux_handle_extended_wait): Likewise.
9373 * record-btrace.c (get_thread_current_frame_id): Likewise.
9374 * record-full.c (record_full_wait_1): Likewise.
9375 * remote.c (remote_target::process_initial_stop_replies): Likewise.
9376 * target.c (target_resume): Likewise.
9377 * thread.c (set_running_thread): Likewise.
9378
9379 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9380
9381 * f-valprint.c (f77_print_array_1): Changed datatype of index
9382 variable to LONGEST from int to enable it to contain bound
9383 values correctly.
9384
9385 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
9386
9387 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
9388 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
9389 offsets according to FLEN determined.
9390 (riscv_linux_nat_target::read_description): Determine FLEN
9391 dynamically.
9392 (riscv_linux_nat_target::fetch_registers): Size regset buffer
9393 according to FLEN determined.
9394 (riscv_linux_nat_target::store_registers): Likewise.
9395
9396 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
9397
9398 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
9399 when reg->group is empty and reggroup is not.
9400
9401 2020-01-31 Tom Tromey <tromey@adacore.com>
9402
9403 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
9404 Call beneath target's mourn_inferior after unpushing.
9405
9406 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
9407
9408 PR tui/9765
9409 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
9410 have enough lines to fill the screen, still return the lowest
9411 address we found.
9412
9413 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
9414
9415 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
9416 '-', '<', and '>' commands.
9417
9418 2020-01-29 Pedro Alves <palves@redhat.com>
9419 Sergio Durigan Junior <sergiodj@redhat.com>
9420
9421 * infcmd.c (construct_inferior_arguments): Assert that
9422 'argc' is greater than 0.
9423
9424 2020-01-29 Luis Machado <luis.machado@linaro.org>
9425
9426 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
9427 (BRK_INSN_MASK): Define to 0xd4200000.
9428 (aarch64_program_breakpoint_here_p): New function.
9429 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
9430 * arch-utils.c (default_program_breakpoint_here_p): Moved from
9431 breakpoint.c.
9432 * arch-utils.h (default_program_breakpoint_here_p): Moved from
9433 breakpoint.h
9434 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
9435 call gdbarch_program_breakpoint_here_p.
9436 (program_breakpoint_here): Moved to arch-utils.c, renamed to
9437 default_program_breakpoint_here_p, changed return type to bool and
9438 simplified.
9439 * breakpoint.h (program_breakpoint_here): Moved prototype to
9440 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
9441 return type to bool.
9442 * gdbarch.c: Regenerate.
9443 * gdbarch.h: Regenerate.
9444 * gdbarch.sh (program_breakpoint_here_p): New method.
9445 * infrun.c (handle_signal_stop): Call
9446 gdbarch_program_breakpoint_here_p.
9447
9448 2020-01-26 Tom Tromey <tom@tromey.com>
9449
9450 * ctfread.c (struct ctf_fp_info): Reindent.
9451 (_initialize_ctfread): Remove.
9452
9453 2020-01-26 Tom Tromey <tom@tromey.com>
9454
9455 * psymtab.c (partial_map_expand_apply)
9456 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
9457 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
9458 (psym_print_stats, psym_expand_symtabs_for_function)
9459 (psym_map_symbol_filenames, psym_map_matching_symbols)
9460 (psym_expand_symtabs_matching)
9461 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
9462 (maintenance_check_psymtabs): Use new methods.
9463 * psympriv.h (struct partial_symtab) <readin_p,
9464 get_compunit_symtab>: New methods.
9465 <readin, compunit_symtab>: Remove members.
9466 (struct standard_psymtab): New.
9467 (struct legacy_psymtab): Derive from standard_psymtab.
9468 * dwarf2read.h (struct dwarf2_psymtab): Derive from
9469 standard_psymtab.
9470 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
9471
9472 2020-01-26 Tom Tromey <tom@tromey.com>
9473
9474 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
9475 read_dependencies. Add assert.
9476 * psymtab.c (partial_symtab::read_dependencies): New method.
9477 * psympriv.h (struct partial_symtab) <read_dependencies>: New
9478 method.
9479 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
9480 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
9481 read_dependencies.
9482 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
9483 Add assert.
9484
9485 2020-01-26 Tom Tromey <tom@tromey.com>
9486
9487 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
9488 Call expand_psymtab.
9489 (xcoff_read_symtab): Call expand_psymtab.
9490 (xcoff_start_psymtab, xcoff_end_psymtab): Set
9491 legacy_expand_psymtab.
9492 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
9493 method.
9494 (struct legacy_psymtab) <expand_psymtab>: Implement.
9495 <legacy_expand_psymtab>: New member.
9496 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
9497 (parse_partial_symbols): Set legacy_expand_psymtab.
9498 (psymtab_to_symtab_1): Change argument order. Call
9499 expand_psymtab.
9500 (new_psymtab): Set legacy_expand_psymtab.
9501 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
9502 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
9503 expand_psymtab.
9504 (dwarf2_psymtab::expand_psymtab): Rename from
9505 psymtab_to_symtab_1. Call expand_psymtab.
9506 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
9507 (dbx_end_psymtab): Likewise.
9508 (dbx_psymtab_to_symtab_1): Change argument order. Call
9509 expand_psymtab.
9510 (dbx_read_symtab): Call expand_psymtab.
9511 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
9512 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
9513 (ctf_psymtab::read_symtab): Call expand_psymtab.
9514
9515 2020-01-26 Tom Tromey <tom@tromey.com>
9516
9517 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
9518 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
9519 messages.
9520 * mdebugread.c (mdebug_read_symtab): Remove prints.
9521 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
9522 assert.
9523 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
9524
9525 2020-01-26 Tom Tromey <tom@tromey.com>
9526
9527 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
9528 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
9529 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
9530 legacy_symtab.
9531 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
9532 * psymtab.c (psymtab_to_symtab): Call method.
9533 (dump_psymtab): Update.
9534 * psympriv.h (struct partial_symtab): Add virtual destructor.
9535 <read_symtab>: New method.
9536 (struct legacy_symtab): New.
9537 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
9538 (struct pst_map) <pst>: Now a legacy_psymtab.
9539 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
9540 (new_psymtab): Use legacy_psymtab.
9541 * dwarf2read.h (struct dwarf2_psymtab): New.
9542 (struct dwarf2_per_cu_data) <psymtab>: Use it.
9543 * dwarf2read.c (dwarf2_create_include_psymtab)
9544 (dwarf2_build_include_psymtabs, create_type_unit_group)
9545 (create_partial_symtab, process_psymtab_comp_unit_reader)
9546 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
9547 (set_partial_user): Use dwarf2_psymtab.
9548 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
9549 (psymtab_to_symtab_1, process_full_comp_unit)
9550 (process_full_type_unit, dwarf2_ranges_read)
9551 (dwarf2_get_pc_bounds, psymtab_include_file_name)
9552 (dwarf_decode_lines): Use dwarf2_psymtab.
9553 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
9554 (add_address_entry_worker, write_one_signatured_type)
9555 (recursively_count_psymbols, recursively_write_psymbols)
9556 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
9557 (write_debug_names): Likewise.
9558 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
9559 <pst>: Now a legacy_psymtab.
9560 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
9561 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
9562 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
9563 * ctfread.c (struct ctf_psymtab): New.
9564 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
9565 ctf_psymtab.
9566 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
9567 (create_partial_symtab): Return a ctf_psymtab.
9568 (scan_partial_symbols): Update.
9569
9570 2020-01-26 Tom Tromey <tom@tromey.com>
9571
9572 * xcoffread.c (xcoff_start_psymtab): Use new.
9573 * psymtab.c (partial_symtab::partial_symtab): New constructor,
9574 renamed from start_psymtab_common.
9575 * psympriv.h (struct partial_symtab): Add new constructor.
9576 (start_psymtab_common): Don't declare.
9577 * mdebugread.c (parse_partial_symbols): Use new.
9578 * dwarf2read.c (create_partial_symtab): Use new.
9579 * dbxread.c (start_psymtab): Use new.
9580 * ctfread.c (create_partial_symtab): Use new.
9581
9582 2020-01-26 Tom Tromey <tom@tromey.com>
9583
9584 * xcoffread.c (xcoff_end_psymtab): Use new.
9585 * psymtab.c (start_psymtab_common): Use new.
9586 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
9587 Update.
9588 * psympriv.h (struct partial_symtab): Add parameters to
9589 constructor. Don't inline.
9590 (allocate_psymtab): Don't declare.
9591 * mdebugread.c (new_psymtab): Use new.
9592 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
9593 * dbxread.c (dbx_end_psymtab): Use new.
9594
9595 2020-01-26 Tom Tromey <tom@tromey.com>
9596
9597 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
9598 allocate_psymtab. Update documentation.
9599 * psymtab.c (psymtab_storage::install_psymtab): Rename from
9600 allocate_psymtab. Do not use new.
9601 (allocate_psymtab): Use new. Update.
9602
9603 2020-01-26 Tom Tromey <tom@tromey.com>
9604
9605 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
9606 * psymtab.c (psym_print_stats): Update.
9607 * psympriv.h (struct partial_symtab) <readin,
9608 psymtabs_addrmap_supported, anonymous>: Now bool.
9609 * mdebugread.c (psymtab_to_symtab_1): Update.
9610 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
9611 (build_type_psymtabs_reader, psymtab_to_symtab_1)
9612 (process_full_comp_unit, process_full_type_unit): Update.
9613 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
9614 * ctfread.c (psymtab_to_symtab): Update.
9615
9616 2020-01-26 Tom Tromey <tom@tromey.com>
9617
9618 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
9619 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
9620 * psymtab.c (psymtab_storage): Delete psymtabs.
9621 (psymtab_storage::allocate_psymtab): Use new.
9622 (psymtab_storage::discard_psymtab): Use delete.
9623 * psympriv.h (struct partial_symtab): Add constructor and
9624 initializers.
9625
9626 2020-01-26 Tom Tromey <tom@tromey.com>
9627
9628 * machoread.c: Do not include psympriv.h.
9629
9630 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9631
9632 * NEWS: Mention the new option and the set/show commands.
9633
9634 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9635
9636 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
9637 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
9638 (validate_exec_file): New variables, enums, functions.
9639 (exec_file_locate_attach, print_section_info): Style the filenames.
9640 (_initialize_exec): Install show_exec_file_mismatch_command and
9641 set_exec_file_mismatch_command.
9642 * gdbcore.h (validate_exec_file): Declare.
9643 * infcmd.c (attach_command): Call validate_exec_file.
9644 * remote.c ( remote_target::remote_add_inferior): Likewise.
9645
9646 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9647
9648 * frame.c (find_frame_sal): Move call to get_next_frame into more
9649 inner scope.
9650 * inline-frame.c (inilne_state) <inline_state>: Update argument
9651 types.
9652 (inilne_state) <skipped_symbol>: Rename to...
9653 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
9654 (skip_inline_frames): Build vector of skipped symbols and use this
9655 to reate the inline_state.
9656 (inline_skipped_symbol): Add a comment and some assertions, fetch
9657 skipped symbol from the list.
9658
9659 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9660
9661 * buildsym.c (lte_is_less_than): Delete.
9662 (buildsym_compunit::end_symtab_with_blockvector): Create local
9663 lambda function to sort line table entries, and use
9664 std::stable_sort instead of std::sort.
9665 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
9666 markers when looking for a previous line.
9667
9668 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9669
9670 * dwarf2read.c (lnp_state_machine::record_line): Include
9671 end_sequence parameter in debug print out. Record the line if we
9672 are at an end_sequence marker even if it's not the start of a
9673 statement.
9674 * symmisc.c (maintenance_print_one_line_table): Print end of
9675 sequence markers with 'END' not '0'.
9676
9677 2020-01-24 Pedro Alves <palves@redhat.com>
9678
9679 PR gdb/25410
9680 * thread.c (scoped_restore_current_thread::restore): Use
9681 switch_to_inferior_no_thread.
9682 * exec.c: Include "progspace-and-thread.h".
9683 (add_target_sections, remove_target_sections):
9684 scoped_restore_current_pspace_and_thread instead of
9685 scoped_restore_current_thread.
9686 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
9687 and aspace to the inferior before calling clone_program_space.
9688 Remove stale comment.
9689
9690 2020-01-24 Christian Biesinger <cbiesinger@google.com>
9691
9692 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
9693 (arm_netbsd_nat_target::fetch_registers): ...this.
9694 (arm_nbsd_nat_target::store_registers): Rename to...
9695 (arm_netbsd_nat_target::store_registers): ...this.
9696
9697 2020-01-24 Christian Biesinger <cbiesinger@google.com>
9698
9699 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9700 register_t.
9701
9702 2020-01-24 Christian Biesinger <cbiesinger@google.com>
9703
9704 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
9705 Update comment.
9706 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
9707 Likewise.
9708 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
9709 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
9710 the correct replacement (iterate_over_regset_sections).
9711 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
9712 Update comment.
9713
9714 2020-01-24 Graham Markall <graham.markall@embecosm.com>
9715
9716 PR gdb/23718
9717 * gdb/python/python.c (execute_gdb_command): Call
9718 async_enable_stdin in catch block.
9719
9720 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9721
9722 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
9723 SWITCH_THRU_ALL_UIS.
9724
9725 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9726
9727 PR tui/9765
9728 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
9729 comment, add extra parameter, and update to store previous symbol
9730 when appropriate.
9731 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
9732 add extra parameter.
9733 * tui/tui-disasm.c (tui_disassemble): Update header comment,
9734 remove unneeded parameter, add try/catch around gdb_print_insn,
9735 rewrite to add items to asm_lines vector.
9736 (tui_find_backward_disassembly_start_address): New function.
9737 (tui_find_disassembly_address): Updated throughout.
9738 (tui_disasm_window::set_contents): Update for changes to
9739 tui_disassemble.
9740 (tui_disasm_window::do_scroll_vertical): No need to adjust the
9741 number of lines to scroll.
9742
9743 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
9744
9745 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
9746 (SECT_OFF_DATA): Likewise.
9747 (SECT_OFF_RODATA): Likewise.
9748 (SECT_OFF_TEXT): Likewise.
9749 (SECT_OFF_BSS): Likewise.
9750 (struct objfile) <text_section_offset, data_section_offset>: New
9751 methods.
9752 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
9753 objfile::text_section_offset.
9754 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
9755 * coffread.c (coff_symtab_read): Likewise.
9756 (enter_linenos): Likewise.
9757 (process_coff_symbol): Likewise.
9758 * ctfread.c (get_objfile_text_range): Likewise.
9759 * dtrace-probe.c (dtrace_probe::get_relocated_address):
9760 Use objfile::data_section_offset.
9761 * dwarf2-frame.c (execute_cfa_program): Use
9762 objfile::text_section_offset.
9763 (dwarf2_frame_find_fde): Likewise.
9764 * dwarf2read.c (create_addrmap_from_index): Likewise.
9765 (create_addrmap_from_aranges): Likewise.
9766 (dw2_find_pc_sect_compunit_symtab): Likewise.
9767 (process_psymtab_comp_unit_reader): Likewise.
9768 (add_partial_symbol): Likewise.
9769 (add_partial_subprogram): Likewise.
9770 (process_full_comp_unit): Likewise.
9771 (read_file_scope): Likewise.
9772 (read_func_scope): Likewise.
9773 (read_lexical_block_scope): Likewise.
9774 (read_call_site_scope): Likewise.
9775 (dwarf2_rnglists_process): Likewise.
9776 (dwarf2_ranges_process): Likewise.
9777 (dwarf2_ranges_read): Likewise.
9778 (dwarf_decode_lines_1): Likewise.
9779 (new_symbol): Likewise.
9780 (dwarf2_fetch_die_loc_sect_off): Likewise.
9781 (dwarf2_per_cu_text_offset): Likewise.
9782 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
9783 * hppa-tdep.c (read_unwind_info): Likewise.
9784 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
9785 * psympriv.h (struct partial_symtab): Likewise.
9786 * psymtab.c (find_pc_sect_psymtab): Likewise.
9787 * solib-svr4.c (enable_break): Likewise.
9788 * stap-probe.c (relocate_address): Use
9789 objfile::data_section_offset.
9790 * xcoffread.c (enter_line_range): Use
9791 objfile::text_section_offset.
9792 (read_xcoff_symtab): Likewise.
9793
9794 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
9795
9796 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
9797 declaration to narrower scopes.
9798
9799 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
9800
9801 * darwin-nat.h (struct darwin_exception_msg, enum
9802 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
9803 Move up.
9804 (class darwin_nat_target) <wait_1, check_new_threads,
9805 decode_exception_message, decode_message, stop_inferior,
9806 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
9807 * darwin-nat.c (darwin_check_new_threads): Rename to...
9808 (darwin_nat_target::check_new_threads): ... this.
9809 (darwin_suspend_inferior_it): Remove.
9810 (darwin_decode_exception_message): Rename to...
9811 (darwin_nat_target::decode_exception_message): ... this.
9812 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
9813 (darwin_decode_message): Rename to...
9814 (darwin_nat_target::decode_message): ... this.
9815 (cancel_breakpoint): Rename to...
9816 (darwin_nat_target::cancel_breakpoint): ... this.
9817 (darwin_wait): Rename to...
9818 (darwin_nat_target::wait_1): ... this. Use range-based for loop
9819 instead of iterate_over_inferiors.
9820 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
9821 (darwin_stop_inferior): Rename to...
9822 (darwin_nat_target::stop_inferior): ... this.
9823 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
9824 (darwin_init_thread_list): Rename to...
9825 (darwin_nat_target::init_thread_list): ... this.
9826 (darwin_ptrace_him): Rename to...
9827 (darwin_nat_target::ptrace_him): ... this.
9828 (darwin_nat_target::create_inferior): Pass lambda function to
9829 fork_inferior.
9830 (darwin_nat_target::detach): Call stop_inferior instead of
9831 darwin_stop_inferior.
9832 * fork-inferior.h (fork_inferior): Change init_trace_fun
9833 parameter to gdb::function_view.
9834 * fork-inferior.c (fork_inferior): Likewise.
9835
9836 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
9837
9838 * i386-cygwin-tdep.c (core_process_module_section): Update.
9839 * windows-nat.c (struct lm_info_windows): Add text_offset.
9840 (windows_xfer_shared_libraries): Update.
9841 * windows-tdep.c (windows_xfer_shared_library):
9842 Add text_offset_cached argument.
9843 * windows-tdep.h (windows_xfer_shared_library): Update.
9844
9845 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
9846
9847 * gdbarch.sh: Add declaration for _initialize_gdbarch.
9848
9849 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
9850
9851 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
9852 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
9853 replace with range-based for.
9854 (gdbsim_interrupt_inferior): Remove.
9855 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
9856 with a range-based for. Inline code from
9857 gdbsim_interrupt_inferior.
9858
9859 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
9860
9861 * infrun.c (proceed): Fix indentation.
9862
9863 2020-01-21 Tom Tromey <tromey@adacore.com>
9864
9865 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
9866 * python/python.c (python_extension_ops): Update.
9867 (gdbpy_colorize): New function.
9868 * python/lib/gdb/__init__.py (colorize): New function.
9869 * extension.h (ext_lang_colorize): Declare.
9870 * extension.c (ext_lang_colorize): New function.
9871 * extension-priv.h (struct extension_language_ops) <colorize>: New
9872 member.
9873 * cli/cli-style.c (_initialize_cli_style): Update help text.
9874
9875 2020-01-21 Luis Machado <luis.machado@linaro.org>
9876
9877 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
9878 <cond>: Change type to bool.
9879 (aarch64_displaced_step_b_cond): Update cond to use bool type.
9880 (aarch64_displaced_step_cb): Likewise.
9881 (aarch64_displaced_step_tb): Likewise.
9882
9883 2020-01-21 Luis Machado <luis.machado@linaro.org>
9884
9885 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
9886 output.
9887
9888 2020-01-21 Luis Machado <luis.machado@linaro.org>
9889
9890 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
9891 <pc_adjust>: Adjust the documentation.
9892 (aarch64_displaced_step_fixup): Check if PC really moved before
9893 adjusting it.
9894
9895 2020-01-19 Tom Tromey <tom@tromey.com>
9896
9897 * disasm.c (~gdb_disassembler): New destructor.
9898 (gdb_buffered_insn_length): Call disassemble_free_target.
9899 * disasm.h (class gdb_disassembler): Declare destructor. Use
9900 DISABLE_COPY_AND_ASSIGN.
9901
9902 2020-01-19 Tom Tromey <tom@tromey.com>
9903
9904 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
9905 (die_reader_func_ftype): Remove.
9906 (cutu_reader): New class.
9907 (dw2_get_file_names_reader): Remove "data" parameter.
9908 (dw2_get_file_names): Use cutu_reader.
9909 (create_debug_type_hash_table): Update.
9910 (read_cutu_die_from_dwo): Update comment.
9911 (lookup_dwo_unit): Add dwo_name parameter.
9912 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
9913 die_reader_func_ftype and data parameters.
9914 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
9915 Remove die_reader_func_ftype and data parameters.
9916 (~cutu_reader): New; from init_cutu_and_read_dies.
9917 (cutu_reader::cutu_reader): Rename from
9918 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
9919 and data parameters.
9920 (init_cutu_and_read_dies_simple): Remove.
9921 (struct process_psymtab_comp_unit_data): Remove.
9922 (process_psymtab_comp_unit_reader): Remove data parameter; add
9923 want_partial_unit and pretend_language parameters.
9924 (process_psymtab_comp_unit): Use cutu_reader.
9925 (build_type_psymtabs_reader): Remove data parameter.
9926 (build_type_psymtabs_1): Use cutu_reader.
9927 (process_skeletonless_type_unit): Likewise.
9928 (load_partial_comp_unit_reader): Remove.
9929 (load_partial_comp_unit): Use cutu_reader.
9930 (load_full_comp_unit_reader): Remove.
9931 (load_full_comp_unit): Use cutu_reader.
9932 (struct create_dwo_cu_data): Remove.
9933 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
9934 dwo_unit parameters.
9935 (create_cus_hash_table): Use cutu_reader.
9936 (struct dwarf2_read_addr_index_data): Remove.
9937 (dwarf2_read_addr_index_reader): Remove.
9938 (dwarf2_read_addr_index): Use cutu_reader.
9939 (read_signatured_type_reader): Remove.
9940 (read_signatured_type): Use cutu_reader.
9941
9942 2020-01-19 Tom Tromey <tom@tromey.com>
9943
9944 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
9945 * tui/tui-wingeneral.h (class tui_suppress_output): New.
9946 (tui_wrefresh): Declare.
9947 * tui/tui-wingeneral.c (suppress_output): New global.
9948 (tui_suppress_output, ~tui_suppress_output): New constructor and
9949 destructor.
9950 (tui_wrefresh): New function.
9951 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
9952 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
9953 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
9954 method.
9955 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
9956 tui_wrefresh.
9957 (tui_data_window::no_refresh): New method.
9958 (tui_data_item_window::refresh_window): Call tui_wrefresh.
9959 (tui_reg_command): Use tui_suppress_output
9960 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
9961 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
9962 method.
9963 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
9964
9965 2020-01-19 Tom Tromey <tom@tromey.com>
9966
9967 * tui/tui-winsource.c (tui_update_source_windows_with_line):
9968 Handle case where symtab is null.
9969
9970 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
9971
9972 * linux-fork.c (one_fork_p): Simplify.
9973
9974 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
9975
9976 * top.c (struct qt_args): Remove.
9977 (kill_or_detach): Change return type to void, replace `void *`
9978 parameter with a proper one.
9979 (print_inferior_quit_action): Likewise.
9980 (quit_confirm): Use range-based for loop to iterate over inferiors.
9981 (quit_force): Likewise.
9982
9983 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
9984
9985 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
9986 `void *` parameter with proper parameters.
9987 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
9988 (print_one_inferior): Change return type to void, replace `void *`
9989 parameter with proper parameters.
9990 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
9991 inferiors.
9992 (get_other_inferior): Remove.
9993 (mi_cmd_remove_inferior): Use range-based loop to iterate over
9994 inferiors.
9995
9996 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
9997
9998 * mi/mi-interp.c (report_initial_inferior): Remove.
9999 (mi_interp::init): Use range-based for to iterate over inferiors.
10000
10001 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10002
10003 * python/py-inferior.c (build_inferior_list): Remove.
10004 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
10005
10006 2020-01-16 Christian Biesinger <cbiesinger@google.com>
10007
10008 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
10009 (btrace_stitch_trace): Likewise.
10010 * charset.c (intermediate_encoding): Likewise (vaild).
10011 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
10012 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
10013 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
10014
10015 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
10016
10017 * windows-tdep.c (windows_get_tlb_type):
10018 Add rtl_user_process_parameters type.
10019
10020 2020-01-16 Pedro Alves <palves@redhat.com>
10021 Norbert Lange <nolange79@gmail.com>
10022
10023 PR build/24805
10024 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
10025 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
10026 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
10027 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
10028 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
10029 (ps_plog): Redeclare exported functions with default visibility.
10030
10031 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
10032
10033 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
10034 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
10035
10036 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
10037
10038 * infcmd.c (post_create_inferior): Use get_thread_regcache
10039 instead of get_current_regcache.
10040
10041 2020-01-14 Tom Tromey <tom@tromey.com>
10042
10043 PR symtab/12535:
10044 * python/python.c (gdbpy_decode_line): Treat empty string the same
10045 as no argument.
10046
10047 2020-01-14 Tom Tromey <tom@tromey.com>
10048
10049 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
10050
10051 2020-01-14 Tom Tromey <tom@tromey.com>
10052
10053 * nat/linux-btrace.c: Don't include <config.h>.
10054 * nat/linux-ptrace.c: Don't include <config.h>.
10055 * nat/x86-linux-dregs.c: Don't include <config.h>.
10056
10057 2020-01-14 Tom Tromey <tom@tromey.com>
10058
10059 * configure: Rebuild.
10060 * configure.ac: Move many checks to ../gdbsupport/common.m4.
10061
10062 2020-01-14 Tom Tromey <tom@tromey.com>
10063
10064 * nat/x86-linux-dregs.c: Include configh.h.
10065 * nat/linux-ptrace.c: Include configh.h.
10066 * nat/linux-btrace.c: Include configh.h.
10067 * defs.h: Include config.h, bfd.h.
10068 * configure.ac: Don't source common.host.
10069 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
10070 * configure: Rebuild.
10071 * acinclude.m4: Update path.
10072 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
10073 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
10074 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
10075 (CLIBS): Add LIBSUPPORT.
10076 (CDEPS): Likewise.
10077 (COMMON_SFILES): Remove gdbsupport files.
10078 (HFILES_NO_SRCDIR): Likewise.
10079 (stamp-version): Update path to create-version.sh.
10080 (ALLDEPFILES): Remove gdbsupport files.
10081
10082 2020-01-14 Tom Tromey <tom@tromey.com>
10083
10084 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
10085 USE_WIN32API when needed.
10086 * configure.ac (USE_WIN32API): Don't define.
10087 (WIN32LIBS): Use WIN32APILIBS.
10088 * configure: Rebuild.
10089
10090 2020-01-14 Tom Tromey <tom@tromey.com>
10091
10092 * configure: Rebuild.
10093 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
10094
10095 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
10096
10097 * skip.c (skip_function_command): Make skip w/o arguments use the
10098 name of the inlined function if pc is inside any inlined function.
10099
10100 2020-01-14 Luis Machado <luis.machado@linaro.org>
10101
10102 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
10103 * infrun.c (resume_1): Likewise.
10104 (handle_inferior_event): Remove stale comment.
10105 * linux-nat.c (linux_nat_target::resume): Update comments.
10106 (save_stop_reason): Likewise.
10107 (linux_nat_filter_event): Likewise.
10108 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
10109
10110 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10111
10112 * elfread.c (record_minimal_symbol): Set section index to 0 for
10113 non-allocatable sections.
10114
10115
10116 2020-01-13 Ali Tamur <tamur@google.com>
10117
10118 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
10119 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
10120 to gdb::optional. Update comments.
10121 (dwo_file): Update comments.
10122 (read_attribute): Update API to take an additional out parameter,
10123 need_reprocess. This is used to mark attributes that need other
10124 attributes (e.g. str_offsets_base) for correct computation which may not
10125 have been read yet.
10126 (read_attribute_reprocess): New function declaration.
10127 (read_addr_index): Likewise.
10128 (read_dwo_str_index): Likewise.
10129 (read_stub_str_index): Likewise.
10130 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
10131 (lookup_addr_base): New function definition.
10132 (lookup_ranges_base): Likewise.
10133 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
10134 lookup_ranges_base.
10135 (init_cutu_and_read_dies): Update comments.
10136 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
10137 unit. This is used to inherit parent's str_offsets_base and addr_base.
10138 Update comments.
10139 (init_cutu_and_read_dies_simple): Reflect API changes.
10140 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
10141 (create_cus_hash_table): Change API to take parent compile unit.
10142 Reflect API changes.
10143 (open_and_init_dwo_file): Reflect API changes.
10144 (dwarf2_get_pc_bounds): Update comments.
10145 (dwarf2_record_block_ranges): Likewise.
10146 (read_full_die_1): Change implementation to reprocess attributes that
10147 need str_offsets_base and addr_base.
10148 (partial_die_info::read): Likewise.
10149 (read_attribute_reprocess): New function definition.
10150 (read_attribute_value): Change API to take an additional out parameter,
10151 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
10152 when a non-dwo compile unit has index based attributes.
10153 (read_attribute): Reflect API changes.
10154 (read_addr_index_1): Reflect API changes. Update comments.
10155 (dwarf2_read_addr_index_data): Reflect API changes.
10156 (dwarf2_read_addr_index): Likewise.
10157 (read_str_index): Change API and implementation. This becomes a helper
10158 to be used by the new string index related methods. Update error
10159 message and comments.
10160 (read_dwo_str_index): New function definition.
10161 (read_stub_str_index): Likewise.
10162 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
10163 * symfile.h (dwarf2_debug_sections): Likewise.
10164 * xcoffread.c (dwarf2_debug_sections): Likewise.
10165
10166 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10167
10168 * gdbcore.h (struct core_fns) <core_read_registers>: Change
10169 core_reg_sect type to gdb_byte *.
10170 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
10171 * cris-tdep.c (fetch_core_registers): Likewise.
10172 * corelow.c (core_target::get_core_register_section): Change
10173 type of `contents` to gdb::byte_vector.
10174
10175 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10176
10177 * tui/tui-wingeneral.c (box_win): Position the title in the center
10178 of the border.
10179
10180 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10181
10182 * corelow.c (core_target::get_core_register_section): Use
10183 std::vector instead of alloca.
10184
10185 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10186
10187 * warning.m4: Add -Wmissing-declarations to build_warnings.
10188 * configure: Re-generate.
10189
10190 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10191
10192 * python/python.c (init__gdb_module): Add declaration.
10193
10194 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10195
10196 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
10197 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
10198 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
10199 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
10200 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
10201 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
10202 * ada-exp.y (_initialize_ada_exp): Add declaration.
10203 * ada-lang.c (_initialize_ada_language): Add declaration.
10204 * ada-tasks.c (_initialize_tasks): Add declaration.
10205 * agent.c (_initialize_agent): Add declaration.
10206 * aix-thread.c (_initialize_aix_thread): Add declaration.
10207 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
10208 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
10209 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
10210 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
10211 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
10212 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
10213 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
10214 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
10215 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
10216 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
10217 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
10218 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
10219 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
10220 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
10221 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
10222 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
10223 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
10224 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
10225 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
10226 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
10227 * annotate.c (_initialize_annotate): Add declaration.
10228 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
10229 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
10230 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
10231 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
10232 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
10233 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
10234 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
10235 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
10236 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
10237 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
10238 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
10239 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
10240 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
10241 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
10242 * auto-load.c (_initialize_auto_load): Add declaration.
10243 * auxv.c (_initialize_auxv): Add declaration.
10244 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
10245 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
10246 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
10247 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
10248 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
10249 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
10250 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
10251 * breakpoint.c (_initialize_breakpoint): Add declaration.
10252 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
10253 * btrace.c (_initialize_btrace): Add declaration.
10254 * charset.c (_initialize_charset): Add declaration.
10255 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
10256 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
10257 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
10258 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
10259 * cli/cli-script.c (_initialize_cli_script): Add declaration.
10260 * cli/cli-style.c (_initialize_cli_style): Add declaration.
10261 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
10262 * coffread.c (_initialize_coffread): Add declaration.
10263 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
10264 * compile/compile.c (_initialize_compile): Add declaration.
10265 * complaints.c (_initialize_complaints): Add declaration.
10266 * completer.c (_initialize_completer): Add declaration.
10267 * copying.c (_initialize_copying): Add declaration.
10268 * corefile.c (_initialize_core): Add declaration.
10269 * corelow.c (_initialize_corelow): Add declaration.
10270 * cp-abi.c (_initialize_cp_abi): Add declaration.
10271 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
10272 * cp-support.c (_initialize_cp_support): Add declaration.
10273 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
10274 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
10275 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
10276 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
10277 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
10278 * ctfread.c (_initialize_ctfread): Add declaration.
10279 * d-lang.c (_initialize_d_language): Add declaration.
10280 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
10281 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
10282 * dbxread.c (_initialize_dbxread): Add declaration.
10283 * dcache.c (_initialize_dcache): Add declaration.
10284 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
10285 * disasm.c (_initialize_disasm): Add declaration.
10286 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
10287 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
10288 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
10289 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
10290 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
10291 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
10292 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
10293 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
10294 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
10295 * elfread.c (_initialize_elfread): Add declaration.
10296 * exec.c (_initialize_exec): Add declaration.
10297 * extension.c (_initialize_extension): Add declaration.
10298 * f-lang.c (_initialize_f_language): Add declaration.
10299 * f-valprint.c (_initialize_f_valprint): Add declaration.
10300 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
10301 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
10302 * filesystem.c (_initialize_filesystem): Add declaration.
10303 * findcmd.c (_initialize_mem_search): Add declaration.
10304 * findvar.c (_initialize_findvar): Add declaration.
10305 * fork-child.c (_initialize_fork_child): Add declaration.
10306 * frame-base.c (_initialize_frame_base): Add declaration.
10307 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
10308 * frame.c (_initialize_frame): Add declaration.
10309 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
10310 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
10311 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
10312 * gcore.c (_initialize_gcore): Add declaration.
10313 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
10314 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
10315 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
10316 * gdbarch.c (_initialize_gdbarch): Add declaration.
10317 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
10318 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
10319 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
10320 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
10321 * go-lang.c (_initialize_go_language): Add declaration.
10322 * go32-nat.c (_initialize_go32_nat): Add declaration.
10323 * guile/guile.c (_initialize_guile): Add declaration.
10324 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
10325 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
10326 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
10327 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
10328 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
10329 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
10330 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
10331 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
10332 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
10333 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
10334 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
10335 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
10336 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
10337 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
10338 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
10339 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
10340 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
10341 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
10342 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
10343 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
10344 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
10345 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
10346 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
10347 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
10348 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
10349 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
10350 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
10351 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
10352 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
10353 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
10354 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
10355 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
10356 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
10357 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
10358 * infcall.c (_initialize_infcall): Add declaration.
10359 * infcmd.c (_initialize_infcmd): Add declaration.
10360 * inflow.c (_initialize_inflow): Add declaration.
10361 * infrun.c (_initialize_infrun): Add declaration.
10362 * interps.c (_initialize_interpreter): Add declaration.
10363 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
10364 * jit.c (_initialize_jit): Add declaration.
10365 * language.c (_initialize_language): Add declaration.
10366 * linux-fork.c (_initialize_linux_fork): Add declaration.
10367 * linux-nat.c (_initialize_linux_nat): Add declaration.
10368 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
10369 * linux-thread-db.c (_initialize_thread_db): Add declaration.
10370 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
10371 * m2-lang.c (_initialize_m2_language): Add declaration.
10372 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
10373 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
10374 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
10375 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
10376 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
10377 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
10378 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
10379 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
10380 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
10381 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
10382 * machoread.c (_initialize_machoread): Add declaration.
10383 * macrocmd.c (_initialize_macrocmd): Add declaration.
10384 * macroscope.c (_initialize_macroscope): Add declaration.
10385 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
10386 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
10387 * maint.c (_initialize_maint_cmds): Add declaration.
10388 * mdebugread.c (_initialize_mdebugread): Add declaration.
10389 * memattr.c (_initialize_mem): Add declaration.
10390 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
10391 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
10392 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
10393 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
10394 * mi/mi-main.c (_initialize_mi_main): Add declaration.
10395 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
10396 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
10397 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
10398 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
10399 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
10400 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
10401 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
10402 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
10403 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
10404 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
10405 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
10406 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
10407 * mipsread.c (_initialize_mipsread): Add declaration.
10408 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
10409 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
10410 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
10411 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
10412 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
10413 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
10414 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
10415 * nto-procfs.c (_initialize_procfs): Add declaration.
10416 * objc-lang.c (_initialize_objc_language): Add declaration.
10417 * observable.c (_initialize_observer): Add declaration.
10418 * opencl-lang.c (_initialize_opencl_language): Add declaration.
10419 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
10420 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
10421 * osabi.c (_initialize_gdb_osabi): Add declaration.
10422 * osdata.c (_initialize_osdata): Add declaration.
10423 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
10424 * parse.c (_initialize_parse): Add declaration.
10425 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
10426 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
10427 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
10428 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
10429 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
10430 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
10431 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
10432 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
10433 * printcmd.c (_initialize_printcmd): Add declaration.
10434 * probe.c (_initialize_probe): Add declaration.
10435 * proc-api.c (_initialize_proc_api): Add declaration.
10436 * proc-events.c (_initialize_proc_events): Add declaration.
10437 * proc-service.c (_initialize_proc_service): Add declaration.
10438 * procfs.c (_initialize_procfs): Add declaration.
10439 * producer.c (_initialize_producer): Add declaration.
10440 * psymtab.c (_initialize_psymtab): Add declaration.
10441 * python/python.c (_initialize_python): Add declaration.
10442 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
10443 * record-btrace.c (_initialize_record_btrace): Add declaration.
10444 * record-full.c (_initialize_record_full): Add declaration.
10445 * record.c (_initialize_record): Add declaration.
10446 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
10447 * regcache.c (_initialize_regcache): Add declaration.
10448 * reggroups.c (_initialize_reggroup): Add declaration.
10449 * remote-notif.c (_initialize_notif): Add declaration.
10450 * remote-sim.c (_initialize_remote_sim): Add declaration.
10451 * remote.c (_initialize_remote): Add declaration.
10452 * reverse.c (_initialize_reverse): Add declaration.
10453 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
10454 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
10455 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
10456 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
10457 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
10458 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
10459 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
10460 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
10461 Add declaration.
10462 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
10463 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
10464 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
10465 * rust-exp.y (_initialize_rust_exp): Add declaration.
10466 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
10467 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
10468 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
10469 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
10470 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
10471 * score-tdep.c (_initialize_score_tdep): Add declaration.
10472 * ser-go32.c (_initialize_ser_dos): Add declaration.
10473 * ser-mingw.c (_initialize_ser_windows): Add declaration.
10474 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
10475 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
10476 * ser-uds.c (_initialize_ser_socket): Add declaration.
10477 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
10478 * serial.c (_initialize_serial): Add declaration.
10479 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
10480 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
10481 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
10482 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
10483 * skip.c (_initialize_step_skip): Add declaration.
10484 * sol-thread.c (_initialize_sol_thread): Add declaration.
10485 * solib-aix.c (_initialize_solib_aix): Add declaration.
10486 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
10487 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
10488 * solib-frv.c (_initialize_frv_solib): Add declaration.
10489 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
10490 * solib-target.c (_initialize_solib_target): Add declaration.
10491 * solib.c (_initialize_solib): Add declaration.
10492 * source-cache.c (_initialize_source_cache): Add declaration.
10493 * source.c (_initialize_source): Add declaration.
10494 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
10495 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
10496 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
10497 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
10498 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
10499 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
10500 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
10501 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
10502 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
10503 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
10504 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
10505 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
10506 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
10507 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
10508 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
10509 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
10510 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
10511 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
10512 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
10513 * stabsread.c (_initialize_stabsread): Add declaration.
10514 * stack.c (_initialize_stack): Add declaration.
10515 * stap-probe.c (_initialize_stap_probe): Add declaration.
10516 * std-regs.c (_initialize_frame_reg): Add declaration.
10517 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
10518 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
10519 * symfile.c (_initialize_symfile): Add declaration.
10520 * symmisc.c (_initialize_symmisc): Add declaration.
10521 * symtab.c (_initialize_symtab): Add declaration.
10522 * target.c (_initialize_target): Add declaration.
10523 * target-connection.c (_initialize_target_connection): Add
10524 declaration.
10525 * target-dcache.c (_initialize_target_dcache): Add declaration.
10526 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
10527 * thread.c (_initialize_thread): Add declaration.
10528 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
10529 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
10530 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
10531 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
10532 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
10533 * tracectf.c (_initialize_ctf): Add declaration.
10534 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
10535 * tracefile.c (_initialize_tracefile): Add declaration.
10536 * tracepoint.c (_initialize_tracepoint): Add declaration.
10537 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
10538 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
10539 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
10540 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
10541 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
10542 * tui/tui-win.c (_initialize_tui_win): Add declaration.
10543 * tui/tui.c (_initialize_tui): Add declaration.
10544 * typeprint.c (_initialize_typeprint): Add declaration.
10545 * ui-style.c (_initialize_ui_style): Add declaration.
10546 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
10547 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
10548 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
10549 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
10550 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
10551 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
10552 * unittests/filtered_iterator-selftests.c
10553 (_initialize_filtered_iterator_selftests): Add declaration.
10554 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
10555 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
10556 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
10557 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
10558 * unittests/main-thread-selftests.c
10559 (_initialize_main_thread_selftests): Add declaration.
10560 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
10561 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
10562 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
10563 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
10564 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
10565 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
10566 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
10567 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
10568 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
10569 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
10570 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
10571 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
10572 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
10573 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
10574 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
10575 declaration.
10576 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
10577 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
10578 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
10579 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
10580 * user-regs.c (_initialize_user_regs): Add declaration.
10581 * utils.c (_initialize_utils): Add declaration.
10582 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
10583 * valops.c (_initialize_valops): Add declaration.
10584 * valprint.c (_initialize_valprint): Add declaration.
10585 * value.c (_initialize_values): Add declaration.
10586 * varobj.c (_initialize_varobj): Add declaration.
10587 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
10588 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
10589 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
10590 * windows-nat.c (_initialize_windows_nat): Add declaration.
10591 (_initialize_check_for_gdb_ini): Add declaration.
10592 (_initialize_loadable): Add declaration.
10593 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
10594 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
10595 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
10596 * xcoffread.c (_initialize_xcoffread): Add declaration.
10597 * xml-support.c (_initialize_xml_support): Add declaration.
10598 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
10599 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
10600 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
10601 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
10602
10603 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10604
10605 * regformats/regdat.sh: Generate declaration for init function.
10606
10607 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10608
10609 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
10610 up.
10611 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
10612 close_one_inferior>: New methods.
10613 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
10614 pass down target to find_inferior_pid.
10615 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
10616 Pass down target to find_inferior_ptid.
10617 (gdbsim_target::create_inferior): Pass down target to
10618 add_thread_silent.
10619 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
10620 target down to find_inferior_ptid and switch_to_thread.
10621 (gdbsim_target::close): Update to call close_one_inferior.
10622 (struct resume_data): Remove.
10623 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
10624 directly, rather than through a void pointer.
10625 (gdbsim_target::resume): Update to call resume_one_inferior.
10626
10627 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
10628
10629 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
10630
10631 2020-01-12 Pedro Alves <palves@redhat.com>
10632
10633 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
10634 directly for the current inferior instead of
10635 discard_all_inferiors.
10636 (discard_all_inferiors): Delete.
10637
10638 2020-01-11 Tom Tromey <tom@tromey.com>
10639
10640 * tui/tui-wingeneral.c (box_win): Check cli_styling.
10641 * tui/tui-winsource.c (tui_source_window_base::refill): Use
10642 deprecated_safe_get_selected_frame.
10643
10644 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10645
10646 * inferior.c (print_inferior): Switch inferior before printing it.
10647
10648 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
10649 Pedro Alves <palves@redhat.com>
10650
10651 * progspace-and-thread.c (switch_to_program_space_and_thread):
10652 Assert there's an inferior for PSPACE. Use
10653 switch_to_inferior_no_thread to switch the inferior too.
10654 * progspace.c (program_space::~program_space): Call
10655 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
10656 (program_space::free_all_objfiles): Don't call clear_symtab_users
10657 here.
10658 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
10659
10660 2020-01-10 Pedro Alves <palves@redhat.com>
10661
10662 * NEWS: Mention multi-target debugging, "info connections", and
10663 "add-inferior -no-connection".
10664
10665 2020-01-10 Pedro Alves <palves@redhat.com>
10666
10667 * infrun.c: Include "target-connection.h".
10668 (check_multi_target_resumption): New.
10669 (proceed): Call it.
10670 * target-connection.c (make_target_connection_string): Make
10671 extern.
10672 * target-connection.h (make_target_connection_string): Declare.
10673
10674 2020-01-10 Pedro Alves <palves@redhat.com>
10675
10676 * Makefile.in (COMMON_SFILES): Add target-connection.c.
10677 * inferior.c (uiout_field_connection): New function.
10678 (print_inferior): Add new "connection-id" column.
10679 (add_inferior_command): Show connection number/string of added
10680 inferior.
10681 * process-stratum-target.h
10682 (process_stratum_target::connection_string): New virtual method.
10683 (process_stratum_target::connection_number): New field.
10684 * remote.c (remote_target::connection_string): New override.
10685 * target-connection.c: New file.
10686 * target-connection.h: New file.
10687 * target.c (decref_target): Remove process_stratum targets from
10688 the connection list.
10689 (target_stack::push): Add process_stratum targets to the
10690 connection list.
10691
10692 2020-01-10 Pedro Alves <palves@redhat.com>
10693
10694 Revert:
10695 2016-04-12 Pedro Alves <palves@redhat.com>
10696 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
10697 Remove references to name.
10698 * serial.h (struct serial) <name>: Delete.
10699
10700 2020-01-10 Pedro Alves <palves@redhat.com>
10701
10702 * gdbarch-selftests.c (register_to_value_test): Remove "target
10703 already pushed" check.
10704
10705 2020-01-10 Pedro Alves <palves@redhat.com>
10706 John Baldwin <jhb@FreeBSD.org>
10707
10708 * aarch64-linux-nat.c
10709 (aarch64_linux_nat_target::thread_architecture): Adjust.
10710 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
10711 (task_command_1): Likewise.
10712 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
10713 (aix_thread_target::wait, aix_thread_target::fetch_registers)
10714 (aix_thread_target::store_registers)
10715 (aix_thread_target::thread_alive): Adjust.
10716 * amd64-fbsd-tdep.c: Include "inferior.h".
10717 (amd64fbsd_get_thread_local_address): Pass down target.
10718 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
10719 thread's gdbarch instead of target_gdbarch.
10720 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
10721 get_last_target_status.
10722 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
10723 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
10724 inferiors.
10725 (update_inserted_breakpoint_locations): Skip if inferiors with no
10726 execution.
10727 (update_global_location_list): When handling moribund locations,
10728 find representative inferior for location's pspace, and use thread
10729 count of its process_stratum target.
10730 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
10731 * bsd-uthread.c (bsd_uthread_target::wait): Use
10732 as_process_stratum_target and adjust thread_change_ptid and
10733 add_thread calls.
10734 (bsd_uthread_target::update_thread_list): Use
10735 as_process_stratum_target and adjust find_thread_ptid,
10736 thread_change_ptid and add_thread calls.
10737 * btrace.c (maint_btrace_packet_history_cmd): Adjust
10738 find_thread_ptid call.
10739 * corelow.c (add_to_thread_list): Adjust add_thread call.
10740 (core_target_open): Adjust add_thread_silent and thread_count
10741 calls.
10742 (core_target::pid_to_str): Adjust find_inferior_ptid call.
10743 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
10744 * event-top.c (async_disconnect): Pop targets from all inferiors.
10745 * exec.c (add_target_sections): Push exec target on all inferiors
10746 sharing the program space.
10747 (remove_target_sections): Remove the exec target from all
10748 inferiors sharing the program space.
10749 (exec_on_vfork): New.
10750 * exec.h (exec_on_vfork): Declare.
10751 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
10752 Pass it down.
10753 (fbsd_nat_target::update_thread_list): Adjust.
10754 (fbsd_nat_target::resume): Adjust.
10755 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
10756 down.
10757 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
10758 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
10759 get_thread_arch_regcache call.
10760 * fork-child.c (gdb_startup_inferior): Pass target down to
10761 startup_inferior and set_executing.
10762 * gdbthread.h (struct process_stratum_target): Forward declare.
10763 (add_thread, add_thread_silent, add_thread_with_info)
10764 (in_thread_list): Add process_stratum_target parameter.
10765 (find_thread_ptid(inferior*, ptid_t)): New overload.
10766 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
10767 parameter.
10768 (all_threads()): Delete overload.
10769 (all_threads, all_non_exited_threads): Add process_stratum_target
10770 parameter.
10771 (all_threads_safe): Use brace initialization.
10772 (thread_count): Add process_stratum_target parameter.
10773 (set_resumed, set_running, set_stop_requested, set_executing)
10774 (threads_are_executing, finish_thread_state): Add
10775 process_stratum_target parameter.
10776 (switch_to_thread): Use is_current_thread.
10777 * i386-fbsd-tdep.c: Include "inferior.h".
10778 (i386fbsd_get_thread_local_address): Pass down target.
10779 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
10780 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
10781 have_inferiors check.
10782 * inf-ptrace.c (inf_ptrace_target::create_inferior)
10783 (inf_ptrace_target::attach): Adjust.
10784 * infcall.c (run_inferior_call): Adjust.
10785 * infcmd.c (run_command_1): Pass target to
10786 scoped_finish_thread_state.
10787 (proceed_thread_callback): Skip inferiors with no execution.
10788 (continue_command): Rename 'all_threads' local to avoid hiding
10789 'all_threads' function. Adjust get_last_target_status call.
10790 (prepare_one_step): Adjust set_running call.
10791 (signal_command): Use user_visible_resume_target. Compare thread
10792 pointers instead of inferior_ptid.
10793 (info_program_command): Adjust to pass down target.
10794 (attach_command): Mark target's 'thread_executing' flag.
10795 (stop_current_target_threads_ns): New, factored out from ...
10796 (interrupt_target_1): ... this. Switch inferior before making
10797 target calls.
10798 * inferior-iter.h
10799 (struct all_inferiors_iterator, struct all_inferiors_range)
10800 (struct all_inferiors_safe_range)
10801 (struct all_non_exited_inferiors_range): Filter on
10802 process_stratum_target too. Remove explicit.
10803 * inferior.c (inferior::inferior): Push dummy target on target
10804 stack.
10805 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
10806 Add process_stratum_target parameter, and pass it down.
10807 (have_live_inferiors): Adjust.
10808 (switch_to_inferior_and_push_target): New.
10809 (add_inferior_command, clone_inferior_command): Handle
10810 "-no-connection" parameter. Use
10811 switch_to_inferior_and_push_target.
10812 (_initialize_inferior): Mention "-no-connection" option in
10813 the help of "add-inferior" and "clone-inferior" commands.
10814 * inferior.h: Include "process-stratum-target.h".
10815 (interrupt_target_1): Use bool.
10816 (struct inferior) <push_target, unpush_target, target_is_pushed,
10817 find_target_beneath, top_target, process_target, target_at,
10818 m_stack>: New.
10819 (discard_all_inferiors): Delete.
10820 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
10821 (all_inferiors, all_non_exited_inferiors): Add
10822 process_stratum_target parameter.
10823 * infrun.c: Include "gdb_select.h" and <unordered_map>.
10824 (target_last_proc_target): New global.
10825 (follow_fork_inferior): Push target on new inferior. Pass target
10826 to add_thread_silent. Call exec_on_vfork. Handle target's
10827 reference count.
10828 (follow_fork): Adjust get_last_target_status call. Also consider
10829 target.
10830 (follow_exec): Push target on new inferior.
10831 (struct execution_control_state) <target>: New field.
10832 (user_visible_resume_target): New.
10833 (do_target_resume): Call target_async.
10834 (resume_1): Set target's threads_executing flag. Consider resume
10835 target.
10836 (commit_resume_all_targets): New.
10837 (proceed): Also consider resume target. Skip threads of inferiors
10838 with no execution. Commit resumtion in all targets.
10839 (start_remote): Pass current inferior to wait_for_inferior.
10840 (infrun_thread_stop_requested): Consider target as well. Pass
10841 thread_info pointer to clear_inline_frame_state instead of ptid.
10842 (infrun_thread_thread_exit): Consider target as well.
10843 (random_pending_event_thread): New inferior parameter. Use it.
10844 (do_target_wait): Rename to ...
10845 (do_target_wait_1): ... this. Add inferior parameter, and pass it
10846 down.
10847 (threads_are_resumed_pending_p, do_target_wait): New.
10848 (prepare_for_detach): Adjust calls.
10849 (wait_for_inferior): New inferior parameter. Handle it. Use
10850 do_target_wait_1 instead of do_target_wait.
10851 (fetch_inferior_event): Adjust. Switch to representative
10852 inferior. Pass target down.
10853 (set_last_target_status): Add process_stratum_target parameter.
10854 Save target in global.
10855 (get_last_target_status): Add process_stratum_target parameter and
10856 handle it.
10857 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
10858 (context_switch): Check inferior_ptid == null_ptid before calling
10859 inferior_thread().
10860 (get_inferior_stop_soon): Pass down target.
10861 (wait_one): Rename to ...
10862 (poll_one_curr_target): ... this.
10863 (struct wait_one_event): New.
10864 (wait_one): New.
10865 (stop_all_threads): Adjust.
10866 (handle_no_resumed, handle_inferior_event): Adjust to consider the
10867 event's target.
10868 (switch_back_to_stepped_thread): Also consider target.
10869 (print_stop_event): Update.
10870 (normal_stop): Update. Also consider the resume target.
10871 * infrun.h (wait_for_inferior): Remove declaration.
10872 (user_visible_resume_target): New declaration.
10873 (get_last_target_status, set_last_target_status): New
10874 process_stratum_target parameter.
10875 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10876 process_stratum_target parameter, and use it.
10877 (clear_inline_frame_state (thread_info*)): New.
10878 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10879 process_stratum_target parameter.
10880 (clear_inline_frame_state (thread_info*)): Declare.
10881 * linux-fork.c (delete_checkpoint_command): Pass target down to
10882 find_thread_ptid.
10883 (checkpoint_command): Adjust.
10884 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
10885 instead of just tweaking inferior_ptid.
10886 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
10887 (exit_lwp): Pass target down to find_thread_ptid.
10888 (attach_proc_task_lwp_callback): Pass target down to
10889 add_thread/set_running/set_executing.
10890 (linux_nat_target::attach): Pass target down to
10891 thread_change_ptid.
10892 (get_detach_signal): Pass target down to find_thread_ptid.
10893 Consider last target status's target.
10894 (linux_resume_one_lwp_throw, resume_lwp)
10895 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
10896 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
10897 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
10898 (linux_nat_target::async_wait_fd): New.
10899 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
10900 target down.
10901 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
10902 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
10903 * linux-thread-db.c (struct thread_db_info::process_target): New
10904 field.
10905 (add_thread_db_info): Save target.
10906 (get_thread_db_info): New process_stratum_target parameter. Also
10907 match target.
10908 (delete_thread_db_info): New process_stratum_target parameter.
10909 Also match target.
10910 (thread_from_lwp): Adjust to pass down target.
10911 (thread_db_notice_clone): Pass down target.
10912 (check_thread_db_callback): Pass down target.
10913 (try_thread_db_load_1): Always push the thread_db target.
10914 (try_thread_db_load, record_thread): Pass target down.
10915 (thread_db_target::detach): Pass target down. Always unpush the
10916 thread_db target.
10917 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
10918 target down. Always unpush the thread_db target.
10919 (find_new_threads_callback, thread_db_find_new_threads_2)
10920 (thread_db_target::update_thread_list): Pass target down.
10921 (thread_db_target::pid_to_str): Pass current inferior down.
10922 (thread_db_target::get_thread_local_address): Pass target down.
10923 (thread_db_target::resume, maintenance_check_libthread_db): Pass
10924 target down.
10925 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
10926 * procfs.c (procfs_target::procfs_init_inferior): Declare.
10927 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
10928 (procfs_init_inferior): Rename to ...
10929 (procfs_target::procfs_init_inferior): ... this and adjust.
10930 (procfs_target::create_inferior, procfs_notice_thread)
10931 (procfs_do_thread_registers): Adjust.
10932 * ppc-fbsd-tdep.c: Include "inferior.h".
10933 (ppcfbsd_get_thread_local_address): Pass down target.
10934 * proc-service.c (ps_xfer_memory): Switch current inferior and
10935 program space as well.
10936 (get_ps_regcache): Pass target down.
10937 * process-stratum-target.c
10938 (process_stratum_target::thread_address_space)
10939 (process_stratum_target::thread_architecture): Pass target down.
10940 * process-stratum-target.h
10941 (process_stratum_target::threads_executing): New field.
10942 (as_process_stratum_target): New.
10943 * ravenscar-thread.c
10944 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
10945 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
10946 down.
10947 * record-btrace.c (record_btrace_target::info_record): Adjust.
10948 (record_btrace_target::record_method)
10949 (record_btrace_target::record_is_replaying)
10950 (record_btrace_target::fetch_registers)
10951 (get_thread_current_frame_id, record_btrace_target::resume)
10952 (record_btrace_target::wait, record_btrace_target::stop): Pass
10953 target down.
10954 * record-full.c (record_full_wait_1): Switch to event thread.
10955 Pass target down.
10956 * regcache.c (regcache::regcache)
10957 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
10958 process_stratum_target parameter and handle it.
10959 (current_thread_target): New global.
10960 (get_thread_regcache): Add process_stratum_target parameter and
10961 handle it. Switch inferior before calling target method.
10962 (get_thread_regcache): Pass target down.
10963 (get_thread_regcache_for_ptid): Pass target down.
10964 (registers_changed_ptid): Add process_stratum_target parameter and
10965 handle it.
10966 (registers_changed_thread, registers_changed): Pass target down.
10967 (test_get_thread_arch_aspace_regcache): New.
10968 (current_regcache_test): Define a couple local test_target_ops
10969 instances and use them for testing.
10970 (readwrite_regcache): Pass process_stratum_target parameter.
10971 (cooked_read_test, cooked_write_test): Pass mock_target down.
10972 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
10973 (get_thread_arch_aspace_regcache): Add process_stratum_target
10974 parameter.
10975 (regcache::target): New method.
10976 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
10977 (regcache::registers_changed_ptid): Add process_stratum_target
10978 parameter.
10979 (regcache::m_target): New field.
10980 (registers_changed_ptid): Add process_stratum_target parameter.
10981 * remote.c (remote_state::supports_vCont_probed): New field.
10982 (remote_target::async_wait_fd): New method.
10983 (remote_unpush_and_throw): Add remote_target parameter.
10984 (get_current_remote_target): Adjust.
10985 (remote_target::remote_add_inferior): Push target.
10986 (remote_target::remote_add_thread)
10987 (remote_target::remote_notice_new_inferior)
10988 (get_remote_thread_info): Pass target down.
10989 (remote_target::update_thread_list): Skip threads of inferiors
10990 bound to other targets. (remote_target::close): Don't discard
10991 inferiors. (remote_target::add_current_inferior_and_thread)
10992 (remote_target::process_initial_stop_replies)
10993 (remote_target::start_remote)
10994 (remote_target::remote_serial_quit_handler): Pass down target.
10995 (remote_target::remote_unpush_target): New remote_target
10996 parameter. Unpush the target from all inferiors.
10997 (remote_target::remote_unpush_and_throw): New remote_target
10998 parameter. Pass it down.
10999 (remote_target::open_1): Check whether the current inferior has
11000 execution instead of checking whether any inferior is live. Pass
11001 target down.
11002 (remote_target::remote_detach_1): Pass down target. Use
11003 remote_unpush_target.
11004 (extended_remote_target::attach): Pass down target.
11005 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
11006 (remote_target::append_resumption): Pass down target.
11007 (remote_target::append_pending_thread_resumptions)
11008 (remote_target::remote_resume_with_hc, remote_target::resume)
11009 (remote_target::commit_resume): Pass down target.
11010 (remote_target::remote_stop_ns): Check supports_vCont_probed.
11011 (remote_target::interrupt_query)
11012 (remote_target::remove_new_fork_children)
11013 (remote_target::check_pending_events_prevent_wildcard_vcont)
11014 (remote_target::remote_parse_stop_reply)
11015 (remote_target::process_stop_reply): Pass down target.
11016 (first_remote_resumed_thread): New remote_target parameter. Pass
11017 it down.
11018 (remote_target::wait_as): Pass down target.
11019 (unpush_and_perror): New remote_target parameter. Pass it down.
11020 (remote_target::readchar, remote_target::remote_serial_write)
11021 (remote_target::getpkt_or_notif_sane_1)
11022 (remote_target::kill_new_fork_children, remote_target::kill): Pass
11023 down target.
11024 (remote_target::mourn_inferior): Pass down target. Use
11025 remote_unpush_target.
11026 (remote_target::core_of_thread)
11027 (remote_target::remote_btrace_maybe_reopen): Pass down target.
11028 (remote_target::pid_to_exec_file)
11029 (remote_target::thread_handle_to_thread_info): Pass down target.
11030 (remote_target::async_wait_fd): New.
11031 * riscv-fbsd-tdep.c: Include "inferior.h".
11032 (riscv_fbsd_get_thread_local_address): Pass down target.
11033 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
11034 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
11035 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
11036 Adjust.
11037 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
11038 * solib-svr4.c (enable_break): Pass down target.
11039 * spu-multiarch.c (parse_spufs_run): Pass down target.
11040 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
11041 * target-delegates.c: Regenerate.
11042 * target.c (g_target_stack): Delete.
11043 (current_top_target): Return the current inferior's top target.
11044 (target_has_execution_1): Refer to the passed-in inferior's top
11045 target.
11046 (target_supports_terminal_ours): Check whether the initial
11047 inferior was already created.
11048 (decref_target): New.
11049 (target_stack::push): Incref/decref the target.
11050 (push_target, push_target, unpush_target): Adjust.
11051 (target_stack::unpush): Defref target.
11052 (target_is_pushed): Return bool. Adjust to refer to the current
11053 inferior's target stack.
11054 (dispose_inferior): Delete, and inline parts ...
11055 (target_preopen): ... here. Only dispose of the current inferior.
11056 (target_detach): Hold strong target reference while detaching.
11057 Pass target down.
11058 (target_thread_name): Add assertion.
11059 (target_resume): Pass down target.
11060 (target_ops::beneath, find_target_at): Adjust to refer to the
11061 current inferior's target stack.
11062 (get_dummy_target): New.
11063 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
11064 has a thread running.
11065 (initialize_targets): Rename to ...
11066 (_initialize_target): ... this.
11067 * target.h: Include "gdbsupport/refcounted-object.h".
11068 (struct target_ops): Inherit refcounted_object.
11069 (target_ops::shortname, target_ops::longname): Make const.
11070 (target_ops::async_wait_fd): New method.
11071 (decref_target): Declare.
11072 (struct target_ops_ref_policy): New.
11073 (target_ops_ref): New typedef.
11074 (get_dummy_target): Declare function.
11075 (target_is_pushed): Return bool.
11076 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
11077 (all_matching_threads_iterator::all_matching_threads_iterator):
11078 Handle filter target.
11079 * thread-iter.h (struct all_matching_threads_iterator, struct
11080 all_matching_threads_range, class all_non_exited_threads_range):
11081 Filter by target too. Remove explicit.
11082 * thread.c (threads_executing): Delete.
11083 (inferior_thread): Pass down current inferior.
11084 (clear_thread_inferior_resources): Pass down thread pointer
11085 instead of ptid_t.
11086 (add_thread_silent, add_thread_with_info, add_thread): Add
11087 process_stratum_target parameter. Use it for thread and inferior
11088 searches.
11089 (is_current_thread): New.
11090 (thread_info::deletable): Use it.
11091 (find_thread_ptid, thread_count, in_thread_list)
11092 (thread_change_ptid, set_resumed, set_running): New
11093 process_stratum_target parameter. Pass it down.
11094 (set_executing): New process_stratum_target parameter. Pass it
11095 down. Adjust reference to 'threads_executing'.
11096 (threads_are_executing): New process_stratum_target parameter.
11097 Adjust reference to 'threads_executing'.
11098 (set_stop_requested, finish_thread_state): New
11099 process_stratum_target parameter. Pass it down.
11100 (switch_to_thread): Also match inferior.
11101 (switch_to_thread): New process_stratum_target parameter. Pass it
11102 down.
11103 (update_threads_executing): Reimplement.
11104 * top.c (quit_force): Pop targets from all inferior.
11105 (gdb_init): Don't call initialize_targets.
11106 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
11107 Declare.
11108 (windows_add_thread, windows_delete_thread): Adjust.
11109 (get_windows_debug_event): Rename to ...
11110 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
11111 * tracefile-tfile.c (tfile_target_open): Pass down target.
11112 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
11113 Forward declare.
11114 (switch_to_thread): Add process_stratum_target parameter.
11115 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
11116 parameter. Use it.
11117 (mi_on_resume): Pass target down.
11118 * nat/fork-inferior.c (startup_inferior): Add
11119 process_stratum_target parameter. Pass it down.
11120 * nat/fork-inferior.h (startup_inferior): Add
11121 process_stratum_target parameter.
11122 * python/py-threadevent.c (py_get_event_thread): Pass target down.
11123
11124 2020-01-10 Pedro Alves <palves@redhat.com>
11125
11126 * remote.c (remote_target::start_remote): Don't set inferior_ptid
11127 directly. Instead find the first thread in the thread list and
11128 use switch_to_thread.
11129
11130 2020-01-10 Pedro Alves <palves@redhat.com>
11131
11132 * remote.c (remote_target::remote_add_inferior): Don't bind a
11133 process to the current inferior if the current inferior is already
11134 bound to a process.
11135
11136 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11137 Pedro Alves <palves@redhat.com>
11138
11139 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
11140 If no process is specified, return null_ptid instead of
11141 inferior_ptid.
11142 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
11143 TARGET_WAITKIND_SIGNALLED with no pid.
11144
11145 2020-01-10 Pedro Alves <palves@redhat.com>
11146
11147 * remote.c (first_remote_resumed_thread): New.
11148 (remote_target::wait_as): Use it as default event_ptid instead of
11149 inferior_ptid.
11150
11151 2020-01-10 Pedro Alves <palves@redhat.com>
11152
11153 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
11154
11155 2020-01-10 Pedro Alves <palves@redhat.com>
11156
11157 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
11158 not -1.
11159
11160 2020-01-10 Pedro Alves <palves@redhat.com>
11161
11162 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
11163 ptid to get_last_target_status.
11164 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
11165 ptid to get_last_target_status.
11166 * infcmd.c (continue_command): Don't pass a target_waitstatus to
11167 get_last_target_status.
11168 (info_program_command): Don't pass a target_waitstatus to
11169 get_last_target_status.
11170 * infrun.c (init_wait_for_inferior): Use
11171 nullify_last_target_wait_ptid.
11172 (get_last_target_status): Handle nullptr arguments.
11173 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
11174 (print_stop_event): Don't pass a ptid to get_last_target_status.
11175 (normal_stop): Don't pass a ptid to get_last_target_status.
11176 * infrun.h (get_last_target_status, set_last_target_status): Move
11177 comments here and update.
11178 (nullify_last_target_wait_ptid): Declare.
11179 * linux-fork.c (fork_load_infrun_state): Remove local extern
11180 declaration of nullify_last_target_wait_ptid.
11181 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
11182 to get_last_target_status.
11183
11184 2020-01-10 Pedro Alves <palves@redhat.com>
11185
11186 * gdbthread.h (scoped_restore_current_thread)
11187 <dont_restore, restore, m_dont_restore>: Declare.
11188 * thread.c (thread_alive): Add assertion. Return bool.
11189 (switch_to_thread_if_alive): New.
11190 (prune_threads): Switch inferior/thread.
11191 (print_thread_info_1): Switch thread before calling target methods.
11192 (scoped_restore_current_thread::restore): New, factored out from
11193 ...
11194 (scoped_restore_current_thread::~scoped_restore_current_thread):
11195 ... this.
11196 (scoped_restore_current_thread::scoped_restore_current_thread):
11197 Add assertion.
11198 (thread_apply_all_command, thread_select): Use
11199 switch_to_thread_if_alive.
11200 * infrun.c (proceed, restart_threads, handle_signal_stop)
11201 (switch_back_to_stepped_thread): Switch current thread before
11202 calling target methods.
11203
11204 2020-01-10 Pedro Alves <palves@redhat.com>
11205
11206 * inferior.c (switch_to_inferior_no_thread): New function,
11207 factored out from ...
11208 (inferior_command): ... here.
11209 * inferior.h (switch_to_inferior_no_thread): Declare.
11210 * mi/mi-main.c (run_one_inferior): Use
11211 switch_to_inferior_no_thread.
11212
11213 2020-01-10 Pedro Alves <palves@redhat.com>
11214
11215 * infcmd.c (kill_command): Remove dead code.
11216
11217 2020-01-10 Pedro Alves <palves@redhat.com>
11218
11219 * remote.c (remote_target::mourn_inferior): No longer check
11220 whether the target is running.
11221
11222 2020-01-10 Pedro Alves <palves@redhat.com>
11223
11224 * corelow.c (core_target::has_execution): Change parameter type to
11225 inferior pointer.
11226 * inferior.c (number_of_live_inferiors): Use
11227 inferior::has_execution instead of target_has_execution_1.
11228 * inferior.h (inferior::has_execution): New.
11229 * linux-thread-db.c (thread_db_target::update_thread_list): Use
11230 inferior::has_execution instead of target_has_execution_1.
11231 * process-stratum-target.c
11232 (process_stratum_target::has_execution): Change parameter type to
11233 inferior pointer. Check the inferior's PID instead of
11234 inferior_ptid.
11235 * process-stratum-target.h
11236 (process_stratum_target::has_execution): Change parameter type to
11237 inferior pointer.
11238 * record-full.c (record_full_core_target::has_execution): Change
11239 parameter type to inferior pointer.
11240 * target.c (target_has_execution_1): Change parameter type to
11241 inferior pointer.
11242 (target_has_execution_current): Adjust.
11243 * target.h (target_ops::has_execution): Change parameter type to
11244 inferior pointer.
11245 (target_has_execution_1): Change parameter type to inferior
11246 pointer. Change return type to bool.
11247 * tracefile.h (tracefile_target::has_execution): Change parameter
11248 type to inferior pointer.
11249
11250 2020-01-10 Pedro Alves <palves@redhat.com>
11251
11252 * exceptions.c (print_flush): Remove current_top_target() check.
11253
11254 2020-01-10 Pedro Alves <palves@redhat.com>
11255
11256 * remote.c (show_remote_exec_file): Show the current inferior's
11257 exec-file instead of the command variable's value.
11258
11259 2020-01-10 Pedro Alves <palves@redhat.com>
11260
11261 * record-full.c (record_full_resume_ptid): New global.
11262 (record_full_target::resume): Set it.
11263 (record_full_wait_1): Use record_full_resume_ptid instead of
11264 inferior_ptid.
11265
11266 2020-01-10 Pedro Alves <palves@redhat.com>
11267
11268 * gdbthread.h (scoped_restore_current_thread)
11269 <dont_restore, restore, m_dont_restore>: Declare.
11270 * thread.c (thread_alive): Add assertion. Return bool.
11271 (switch_to_thread_if_alive): New.
11272 (prune_threads): Switch inferior/thread.
11273 (print_thread_info_1): Switch thread before calling target methods.
11274 (scoped_restore_current_thread::restore): New, factored out from
11275 ...
11276 (scoped_restore_current_thread::~scoped_restore_current_thread):
11277 ... this.
11278 (scoped_restore_current_thread::scoped_restore_current_thread):
11279 Add assertion.
11280 (thread_apply_all_command, thread_select): Use
11281 switch_to_thread_if_alive.
11282
11283 2020-01-10 George Barrett <bob@bob131.so>
11284
11285 * stap-probe.c (stap_modify_semaphore): Don't check for null
11286 semaphores.
11287 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
11288 for null semaphores.
11289
11290 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11291
11292 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
11293 all source windows, and maintain horizontal scroll status while
11294 doing so.
11295
11296 2020-01-09 Tom Tromey <tom@tromey.com>
11297
11298 PR tui/18932:
11299 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
11300 update_source_window, not print_source_lines.
11301
11302 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11303
11304 * tui/tui.c (tui_enable): Register tui hooks after calling
11305 tui_display_main.
11306
11307 2020-01-09 Christian Biesinger <cbiesinger@google.com>
11308
11309 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
11310
11311 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
11312
11313 * thread.c (print_thread_info_1): Fix indentation.
11314
11315 2020-01-09 Christian Biesinger <cbiesinger@google.com>
11316
11317 * symtab.c (general_symbol_info::compute_and_set_names): Move the
11318 unique_xmalloc_ptr outside the if to always free the demangled name.
11319
11320 2020-01-08 Tom Tromey <tromey@adacore.com>
11321
11322 * xcoffread.c (enter_line_range, read_xcoff_symtab)
11323 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
11324 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
11325 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
11326 Remove.
11327 (section_offsets): New typedef.
11328 * symtab.c (fixup_section, get_msymbol_address): Update.
11329 * symmisc.c (dump_msymbols): Update.
11330 * symfile.h (relative_addr_info_to_section_offsets)
11331 (symfile_map_offsets_to_segments): Update.
11332 * symfile.c (build_section_addr_info_from_objfile)
11333 (init_objfile_sect_indices): Update.
11334 (struct place_section_arg): Change type of "offsets".
11335 (place_section): Update.
11336 (relative_addr_info_to_section_offsets): Change type of
11337 "section_offsets". Remove "num_sections" parameter.
11338 (default_symfile_offsets, syms_from_objfile_1)
11339 (set_objfile_default_section_offset): Update.
11340 (reread_symbols): No need to preserve section offsets by hand.
11341 (symfile_map_offsets_to_segments): Change type of "offsets".
11342 * stap-probe.c (relocate_address): Update.
11343 * stabsread.h (process_one_symbol): Update.
11344 * solib-target.c (struct lm_info_target) <offsets>: Change type.
11345 (solib_target_relocate_section_addresses): Update.
11346 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
11347 Update.
11348 * solib-frv.c (frv_relocate_main_executable): Update.
11349 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
11350 * solib-aix.c (solib_aix_get_section_offsets): Change return
11351 type.
11352 (solib_aix_solib_create_inferior_hook): Update.
11353 * remote.c (remote_target::get_offsets): Update.
11354 * psymtab.c (find_pc_sect_psymtab): Update.
11355 * psympriv.h (struct partial_symbol) <address, text_low,
11356 text_high>: Update.
11357 * objfiles.h (obj_section_offset): Update.
11358 (struct objfile) <section_offsets>: Change type.
11359 <num_sections>: Remove.
11360 (objfile_relocate): Update.
11361 * objfiles.c (entry_point_address_query): Update
11362 (relocate_one_symbol): Change type of "section_offsets".
11363 (objfile_relocate1, objfile_relocate1): Change type of
11364 "new_offsets".
11365 (objfile_rebase1): Update.
11366 * mipsread.c (mipscoff_symfile_read): Update.
11367 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
11368 parameter.
11369 * mdebugread.c (parse_symbol): Change type of "section_offsets".
11370 (parse_external, psymtab_to_symtab_1): Update.
11371 * machoread.c (macho_symfile_offsets): Update.
11372 * ia64-tdep.c (ia64_find_unwind_table): Update.
11373 * hppa-tdep.c (read_unwind_info): Update.
11374 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
11375 * dwarf2read.c (create_addrmap_from_index)
11376 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11377 (process_psymtab_comp_unit_reader, add_partial_symbol)
11378 (add_partial_subprogram, process_full_comp_unit)
11379 (read_file_scope, read_func_scope, read_lexical_block_scope)
11380 (read_call_site_scope, dwarf2_rnglists_process)
11381 (dwarf2_ranges_process, dwarf2_ranges_read)
11382 (dwarf_decode_lines_1, var_decode_location, new_symbol)
11383 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
11384 Update.
11385 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
11386 Update.
11387 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
11388 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
11389 (process_one_symbol): Change type of "section_offsets".
11390 * ctfread.c (get_objfile_text_range): Update.
11391 * coffread.c (coff_symtab_read, enter_linenos)
11392 (process_coff_symbol): Update.
11393 * coff-pe-read.c (add_pe_forwarded_sym): Update.
11394 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
11395
11396 2020-01-08 Tom Tromey <tromey@adacore.com>
11397
11398 * dwarf2read.c (parse_macro_definition): Use std::string.
11399 (parse_macro_definition): Likewise.
11400
11401 2020-01-08 Tom Tromey <tromey@adacore.com>
11402
11403 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
11404 (ATTR_ALLOC_CHUNK): Remove.
11405
11406 2020-01-08 Tom Tromey <tromey@adacore.com>
11407
11408 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
11409
11410 2020-01-08 Tom Tromey <tromey@adacore.com>
11411
11412 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
11413 (dwarf2_compute_name, open_dwo_file): Likewise.
11414 (process_enumeration_scope): Use std::vector.
11415 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
11416 (partial_die_info::fixup, dwarf2_start_subfile)
11417 (guess_full_die_structure_name, dwarf2_name): Likewise.
11418 (determine_prefix): Update.
11419 (guess_full_die_structure_name): Make return type const.
11420 (partial_die_full_name): Return unique_xmalloc_ptr.
11421 (DW_FIELD_ALLOC_CHUNK): Remove.
11422
11423 2020-01-07 Tom Tromey <tromey@adacore.com>
11424
11425 PR build/24937:
11426 * stap-probe.c (class stap_static_probe_ops): Add constructor.
11427
11428 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
11429
11430 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
11431
11432 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
11433
11434 * stack.c (print_frame_info): Move disassemble_next_line code
11435 inside source_print block.
11436
11437 2020-01-06 Eli Zaretskii <eliz@gnu.org>
11438
11439 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
11440 gdb/signals.h, as we are now using native signal symbols.
11441
11442 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
11443
11444 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
11445 overflow by an early check of content vs threshold.
11446 * tui/tui-source.c (tui_source_window::line_is_displayed):
11447 Likewise.
11448
11449 2020-01-06 Eli Zaretskii <eliz@gnu.org>
11450
11451 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
11452
11453 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
11454
11455 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
11456 export table if no section contains it's RVA.
11457
11458 2020-01-06 Eli Zaretskii <eliz@gnu.org>
11459
11460 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
11461
11462 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
11463
11464 * source.c (print_source_lines_base): Set last_line_listed.
11465
11466 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
11467
11468 * tui/tui-disasm.c: Remove trailing spaces.
11469
11470 2020-01-06 Eli Zaretskii <eliz@gnu.org>
11471 Pedro Alves <palves@redhat.com>
11472
11473 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
11474 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
11475 (windows_gdb_signal_to_target): New function, uses the above
11476 enumeration to convert GDB internal signal codes to equivalent
11477 Windows codes.
11478 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
11479 * windows-nat.c: Include "gdb_wait.h".
11480 (get_windows_debug_event): Extract the fatal exception from the
11481 exit status and convert to the equivalent Posix signal number.
11482 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
11483 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
11484 * gdbsupport/gdb_wait.c: New file, implements
11485 windows_status_to_termsig.
11486 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
11487 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
11488
11489 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
11490
11491 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
11492 show_layout.
11493
11494 2020-01-05 Luis Machado <luis.machado@linaro.org>
11495
11496 * aarch64-linux-nat.c
11497 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
11498 and bfd_mach_aarch64.
11499
11500 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11501
11502 * ui-file.c (stdio_file::can_emit_style_escape)
11503 (tee_file::can_emit_style_escape): Ensure style is used also on
11504 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
11505 to gdb_stdout.
11506 * main.c (set_gdb_data_directory): Use file style to output the
11507 warning that the given pathname is not a directory.
11508 * top.c (show_history_filename, gdb_safe_append_history)
11509 (show_gdb_datadir): Use file style.
11510
11511 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
11512
11513 * solib-target.c (struct lm_info_target):
11514 Change offsets to be a unique_xmalloc_ptr.
11515 (solib_target_relocate_section_addresses): Update.
11516
11517 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
11518
11519 * windows-nat.c (windows_clear_solib): Free so_list linked list.
11520
11521 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
11522
11523 * MAINTAINERS (Write After Approval): Add myself.
11524
11525 2020-01-02 Luis Machado <luis.machado@linaro.org>
11526
11527 * proc-service.c (get_ps_regcache): Remove reference to obsolete
11528 Cell BE architecture.
11529 * target.h (struct target_ops) <thread_architecture>: Likewise.
11530
11531 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
11532
11533 * Makefile.in: Use INSTALL_PROGRAM_ENV.
11534
11535 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
11536
11537 * MAINTAINERS (Write After Approval): Add myself.
11538
11539 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11540
11541 * gdbarch.sh: Update copyright year range of generated files.
11542
11543 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11544
11545 Update copyright year range in all GDB files.
11546
11547 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11548
11549 * copyright.py: Convert to Python 3.
11550
11551 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11552
11553 * copyright.py: Adapt after move of gnulib directory from gdb
11554 directory to toplevel directory.
11555
11556 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11557
11558 * copyright.py (main): Exit if run from the wrong directory.
11559
11560 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11561
11562 * top.c (print_gdb_version): Change copyright year to 2020.
11563
11564 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11565
11566 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
11567
11568 For older changes see ChangeLog-2019.
11569 \f
11570 Local Variables:
11571 mode: change-log
11572 left-margin: 8
11573 fill-column: 74
11574 version-control: never
11575 coding: utf-8
11576 End: