]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
PR25022 testcase segfault for generic ELF linker targets
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
ddce1758
JB
12020-07-27 John Baldwin <jhb@FreeBSD.org>
2
3 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
4 for all architectures on FreeBSD 11.3 and later.
5
a4089f52
TT
62020-07-27 Tom Tromey <tromey@adacore.com>
7
8 * gcore.h (load_corefile): Don't declare.
9
95420d30
TV
102020-07-27 Tom de Vries <tdevries@suse.de>
11
12 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
13 * config.in: Regenerate.
14 * configure: Regenerate.
15
05a6b8c2
EZ
162020-07-26 Eli Zaretskii <eliz@gnu.org>
17
18 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
19 ws2tcpip.h. When checking whether socklen_t type is defined, use
20 ws2tcpip.h if it is available and sys/socket.h isn't.
21 * configure: Regenerate.
22 * config.in: Regenerate.
23
e79eb02f
AB
242020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
25
26 PR fortran/23051
27 PR fortran/26139
28 * valops.c (value_ind): Pass address to
29 readjust_indirect_value_type.
30 * value.c (readjust_indirect_value_type): Make parameter
31 non-const, and add extra address parameter. Resolve original type
32 before using it.
33 * value.h (readjust_indirect_value_type): Update function
34 signature and comment.
35
876518dd
TV
362020-07-25 Tom de Vries <tdevries@suse.de>
37
38 PR symtab/26243
39 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
40 entries.
41
f6720b1c
AM
422020-07-24 Aaron Merey <amerey@redhat.com>
43
44 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
45 * configure: Rebuild.
46
513487e1
KB
472020-07-23 Kevin Buettner <kevinb@redhat.com>
48
49 PR corefiles/26294
50 * corelow.c (_initialize_corelow): Add period to help text
51 for "maintenance print core-file-backed-mappings".
52
e7bc9db8
PA
532020-07-23 Pedro Alves <pedro@palves.net>
54
55 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
56 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
57 meanwhile.
58 * frame.c (frame_cache_generation, get_frame_cache_generation):
59 New.
60 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
61 (get_prev_frame_if_no_cycle): On exception, don't touch
62 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
63 * frame.h (get_frame_cache_generation): Declare.
64
90fcc466
TV
652020-07-23 Tom de Vries <tdevries@suse.de>
66
67 PR tui/26282
68 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
69 New default constructor.
70
78344df7
AB
712020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
72
73 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
74 exclude non-statement entries.
75
b089853a
KB
762020-07-22 Kevin Buettner <kevinb@redhat.com>
77
78 * NEWS (New commands): Mention new command
79 "maintenance print core-file-backed-mappings".
80
09c2f5d4
KB
812020-07-22 Kevin Buettner <kevinb@redhat.com>
82
83 * corelow.c (gdbcmd.h): Include.
84 (core_target::info_proc_mappings): New method.
85 (get_current_core_target): New function.
86 (maintenance_print_core_file_backed_mappings): New function.
87 (_initialize_corelow): Add core-file-backed-mappings to
88 "maint print" commands.
89
9c5ec5c2
KB
902020-07-22 Kevin Buettner <kevinb@redhat.com>
91
92 * linux-tdep.c (dump_note_entry_p): New function.
93 (linux_dump_mapping_p_ftype): New typedef.
94 (linux_find_memory_regions_full): Add new parameter,
95 should_dump_mapping_p.
96 (linux_find_memory_regions): Adjust call to
97 linux_find_memory_regions_full.
98 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
99 call to linux_find_memory_regions_full.
100
db082f59
KB
1012020-07-22 Kevin Buettner <kevinb@redhat.com>
102
103 * corelow.c (solist.h, unordered_map): Include.
104 (class core_target): Add field m_core_file_mappings and
105 method build_file_mappings.
106 (core_target::core_target): Call build_file_mappings.
107 (core_target::~core_target): Free memory associated with
108 m_core_file_mappings.
109 (core_target::build_file_mappings): New method.
110 (core_target::xfer_partial): Use m_core_file_mappings
111 for memory transfers.
112 * linux-tdep.c (linux_read_core_file_mappings): New
113 function.
114 (linux_core_info_proc_mappings): Rewrite to use
115 linux_read_core_file_mappings.
116 (linux_init_abi): Register linux_read_core_file_mappings.
117
7e183d27
KB
1182020-07-22 Kevin Buettner <kevinb@redhat.com>
119
120 * arch-utils.c (default_read_core_file_mappings): New function.
121 * arch-utils.c (default_read_core_file_mappings): Declare.
122 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
123 * gdbarch.h, gdbarch.c: Regenerate.
124
2735d421
KB
1252020-07-22 Kevin Buettner <kevinb@redhat.com>
126
127 PR corefiles/25631
128 * corelow.c (core_target:xfer_partial): Revise
129 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
130 case after first checking the stratum beneath the core
131 target.
132 (has_all_memory): Return true.
133 * target.c (raw_memory_xfer_partial): Revise comment
134 regarding use of has_all_memory.
135
e56cb451
KB
1362020-07-22 Kevin Buettner <kevinb@redhat.com>
137
138 * exec.h (section_table_xfer_memory): Revise declaration,
139 replacing section name parameter with an optional callback
140 predicate.
141 * exec.c (section_table_xfer_memory): Likewise.
142 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
143 of section_table_xfer_memory.
144
32fa152e
TT
1452020-07-22 Tom Tromey <tromey@adacore.com>
146
147 * mi/mi-cmd-stack.c (list_args_or_locals): Use
148 lookup_symbol_search_name.
149
a67a1c41
AB
1502020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
151
152 * python/py-registers.c (gdbpy_register_object_data_init): Remove
153 redundant local variable.
154 (gdbpy_get_register_descriptor): Extract descriptor vector as a
155 reference, not pointer, update code accordingly.
156
a7b4ff4f
SM
1572020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
158 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
159
160 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
161 * jit.c (jit_breakpoint_re_set_internal): Use the
162 `skip_jit_symbol_lookup` field.
163
2340e834
SM
1642020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
165 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
166
167 * jit.c (jit_read_descriptor): Define the descriptor address once,
168 use twice.
169 (jit_breakpoint_deleted): Move the declaration of the loop variable
170 `iter` into the loop header.
171 (jit_breakpoint_re_set_internal): Move the declaration of the local
172 variable `objf_data` to the first point of definition.
173 (jit_event_handler): Move the declaration of local variables
174 `code_entry`, `entry_addr`, and `objf` to their first point of use.
175 Rename `objf` to `jited`.
176
c1072906
SM
1772020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
178
179 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
180 Remove.
181 * jit.c (get_jiter_objfile_data): Update.
182
c8474dc3
TBA
1832020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
184 Simon Marchi <simon.marchi@polymtl.ca>
185
186 * jit.c (struct jit_program_space_data): Remove.
187 (jit_program_space_key): Remove.
188 (jiter_objfile_data::~jiter_objfile_data): Remove program space
189 stuff.
190 (get_jit_program_space_data): Remove.
191 (jit_breakpoint_deleted): Iterate on all of the program space's
192 objfiles.
193 (jit_inferior_init): Likewise.
194 (jit_breakpoint_re_set_internal): Likewise. Also change return
195 type to void.
196 (jit_breakpoint_re_set): Pass current_program_space to
197 jit_breakpoint_re_set_internal.
198
77208eb7
SM
1992020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
200
201 * jit.h (struct jiter_objfile_data) <cached_code_address,
202 jit_breakpoint>: Move to here from ...
203 * jit.c (jit_program_space_data): ... here.
204 (jiter_objfile_data::~jiter_objfile_data): Update.
205 (jit_breakpoint_deleted): Update.
206 (jit_breakpoint_re_set_internal): Update.
207
8c1c720f
SM
2082020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
209
210 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
211 checks.
212 (jit_read_descriptor): Remove NULL check.
213 (jit_event_handler): Add an assertion.
214
0e74a041
SM
2152020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
216
217 * jit.h (struct jit_objfile_data): Split into...
218 (struct jiter_objfile_data): ... this ...
219 (struct jited_objfile_data): ... and this.
220 * objfiles.h (struct objfile) <jit_data>: Remove.
221 <jiter_data, jited_data>: New fields.
222 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
223 (jiter_objfile_data::~jiter_objfile_data): ... this.
224 (get_jit_objfile_data): Rename to ...
225 (get_jiter_objfile_data): ... this.
226 (add_objfile_entry): Update.
227 (jit_read_descriptor): Use get_jiter_objfile_data.
228 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
229 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
230 (jit_inferior_exit_hook): Use objfile's jited_data field.
231
238b5c9f
SM
2322020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
233
234 * jit.h: Forward-declare `struct minimal_symbol`.
235 (struct jit_objfile_data): Migrate to here from jit.c; also add a
236 constructor, destructor, and an objfile* field.
237 * jit.c (jit_objfile_data): Remove.
238 (struct jit_objfile_data): Migrate from here to jit.h.
239 (jit_objfile_data::~jit_objfile_data): New destructor
240 implementation with code moved from free_objfile_data.
241 (free_objfile_data): Delete.
242 (get_jit_objfile_data): Update to use the jit_data field of objfile.
243 (jit_find_objf_with_entry_addr): Ditto.
244 (jit_inferior_exit_hook): Ditto.
245 (_initialize_jit): Remove the call to
246 register_objfile_data_with_cleanup.
247 * objfiles.h (struct objfile) <jit_data>: New field.
248
fe053b9e
TBA
2492020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
250
251 * jit.h: Forward-declare `struct objfile`.
252 (jit_event_handler): Add a second parameter, the JITer objfile.
253 * jit.c (jit_read_descriptor): Change the signature to take the
254 JITer objfile as an argument instead of the jit_program_space_data.
255 (jit_inferior_init): Update the call to jit_read_descriptor.
256 (jit_event_handler): Use the new JITer objfile argument when calling
257 jit_read_descriptor.
258 * breakpoint.c (handle_jit_event): Update the call to
259 jit_event_handler to pass the JITer objfile.
260
4cec0c66
JB
2612020-07-21 John Baldwin <jhb@FreeBSD.org>
262
263 * gdbarch.c: Regenerate.
264 * gdbarch.h: Regenerate.
265 * gdbarch.sh (handle_segmentation_fault): Remove method.
266 * infrun.c (handle_segmentation_fault): Remove.
267 (print_signal_received_reason): Remove call to
268 handle_segmentation_fault.
269
0e42f66a
JB
2702020-07-21 John Baldwin <jhb@FreeBSD.org>
271
272 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
273 Rename to sparc64_linux_report_signal_info and add siggnal
274 argument.
275 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
276 instead of sparc64_linux_handle_segmentation_fault.
277
77bdfeb2
JB
2782020-07-21 John Baldwin <jhb@FreeBSD.org>
279
280 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
281 i386_linux_report_signal_info instead of
282 i386_linux_handle_segmentation_fault.
283 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
284 to i386_linux_report_signal_info and add siggnal argument.
285 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
286 of i386_linux_handle_segmentation_fault.
287 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
288 to i386_linux_report_signal_info and add siggnal argument.
289
ad97bfc5
JB
2902020-07-21 John Baldwin <jhb@FreeBSD.org>
291
292 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
293 hook if present.
294
272bb05c
JB
2952020-07-21 John Baldwin <jhb@FreeBSD.org>
296
297 * gdbarch.c: Regenerate.
298 * gdbarch.h: Regenerate.
299 * gdbarch.sh (report_signal_info): New method.
300 * infrun.c (print_signal_received_reason): Invoke gdbarch
301 report_signal_info hook if present.
302
baf8791e
AB
3032020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
304
305 * python/py-registers.c : Add 'unordered_map' include.
306 (gdbpy_new_reggroup): Renamed to...
307 (gdbpy_get_reggroup): ...this. Update to only create register
308 group descriptors when needed.
309 (gdbpy_reggroup_iter_next): Update.
310
f7306dac
AB
3112020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
312
313 * python/py-registers.c (gdbpy_register_object_data): New static
314 global.
315 (gdbpy_register_object_data_init): New function.
316 (gdbpy_new_register_descriptor): Renamed to...
317 (gdbpy_get_register_descriptor): ...this, and update to reuse
318 existing register descriptors where possible.
319 (gdbpy_register_descriptor_iter_next): Update.
320 (gdbpy_initialize_registers): Register new gdbarch data.
321
05c309a8
SM
3222020-07-21 Simon Marchi <simon.marchi@efficios.com>
323
324 * linux-nat.c (stopped_pids): Make static.
325
d1fd641e
SM
3262020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
327
328 PR ada/26235
329 * gdbtypes.c (ada_discrete_type_low_bound,
330 ada_discrete_type_high_bound): Handle undefined bounds.
331
1de14d77
KR
3322020-07-21 Kamil Rytarowski <n54@gmx.com>
333
334 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
335 declaration.
336 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
337 function.
338
ed810cc7
JB
3392020-07-20 John Baldwin <jhb@FreeBSD.org>
340
341 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
342 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
343 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
344 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
345 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
346 method.
347
ae5369e7
LC
3482020-07-20 Ludovic Courtès <ludo@gnu.org>
349
350 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
351 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
352 which are deprecated in Guile 3.0.
353 * configure.ac (try_guile_versions): Add "guile-3.0".
354 * configure (try_guile_versions): Regenerate.
355 * NEWS: Update entry.
356
68cf161c
LC
3572020-07-20 Ludovic Courtès <ludo@gnu.org>
358 Doug Evans <dje@google.com>
359
360 PR gdb/21104
361 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
362 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
363 USING_GUILE_BEFORE_2_2.
364 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
365 Change type to 'scm_t_port_type *'.
366 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
367 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
368 parameter and honor it. Update callers.
369 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
370 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
371 functions.
372 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
373 USING_GUILE_BEFORE_2_2.
374 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
375 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
376 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
377 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
378 and 'SCM_PORT_TYPE'.
379 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
380 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
381 (gdbscm_memory_port_read, gdbscm_memory_port_write)
382 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
383 [!USING_GUILE_BEFORE_2_2]: New functions.
384 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
385 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
386 'gdbscm_memory_port_read'.
387 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
388 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
389 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
390 function.
391 (ioscm_init_memory_port): Remove.
392 (ioscm_init_memory_port_stream): New function
393 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
394 function.
395 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
396 Return scm_from_uint (0).
397 (gdbscm_set_memory_port_read_buffer_size_x)
398 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
399 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
400 Return scm_from_uint (0).
401 (gdbscm_set_memory_port_write_buffer_size_x)
402 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
403 * configure.ac (try_guile_versions): Add "guile-2.2".
404 * configure: Regenerate.
405 * NEWS: Add entry.
406
aee91db3
TT
4072020-07-18 Tom Tromey <tom@tromey.com>
408
409 * linux-nat.c (linux_multi_process): Remove.
410 (linux_nat_target::supports_multi_process): Return true.
411
0e267416
AB
4122020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
413
414 * arch/riscv.c (riscv_tdesc_cache): Change map type.
415 (riscv_lookup_target_description): Return pointer out of
416 unique_ptr.
417 * target-descriptions.c (allocate_target_description): Add
418 comment.
419 (target_desc_deleter::operator()): Likewise.
420 * target-descriptions.h (struct target_desc_deleter): Moved to
421 gdbsupport/tdesc.h.
422 (target_desc_up): Likewise.
423
f80c8ec4
TT
4242020-07-17 Tom Tromey <tromey@adacore.com>
425
426 * linux-nat.c (linux_nat_target::supports_non_stop)
427 (linux_nat_target::always_non_stop_p): Use "true".
428 (linux_nat_target::supports_disable_randomization): Use "true" and
429 "false".
430
d0ce17d8
CT
4312020-07-16 Caroline Tice <cmtice@google.com>
432
433 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
434 (RNGLIST_HEADER_SIZE64): New constant definition.
435 (struct dwop_section_names): Add rnglists_dwo.
436 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
437 (struct loclist_header): Rename to 'loclists_rnglists_header'.
438 (struct dwo_sections): Add rnglists field.
439 (read_attribut_reprocess): Add tag parameter.
440 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
441 (cu_debug_rnglists_section): New function (decl & definition).
442 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
443 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
444 die whose range is being checked; get rnglist section from
445 cu_debug_rnglists_section, to get from either objfile or dwo file as
446 appropriate. Add cases for DW_RLE_base_addressx,
447 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
448 the base address to DW_RLE_offset_pairs (not to all ranges), moving
449 test inside if-condition and updating complaint message.
450 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
451 dwarf2_rnglists_process.
452 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
453 dwarf2_ranges_process.
454 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
455 need_ranges_base and update comment appropriately. Also pass die tag
456 to dwarf2_ranges_read.
457 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
458 need_ranges_base and update comment appropriately. Also pass die tag
459 to dwarf2_ranges_process.
460 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
461 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
462 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
463 need_ranges_base and update comment appropriately. Also pass die tag
464 to read_attribute_reprocess and dwarf2_ranges_read.
465 (read_loclist_header): Rename function to read_loclists_rnglists_header,
466 and update function comment appropriately.
467 (read_loclist_index): Call read_loclists_rnglists_header instead of
468 read_loclist_header.
469 (read_rnglist_index): New function.
470 (read_attribute_reprocess): Add tag parameter. Add code for
471 DW_FORM_rnglistx, passing tag to read_rnglist_index.
472 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
473
3dcc261c
AB
4742020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
475
476 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
477 being resolved.
478
ccb9eba6
AB
4792020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
480
481 * arch-utils.c (show_architecture): Update formatting of messages.
482
cf88be68
SM
4832020-07-12 Simon Marchi <simon.marchi@efficios.com>
484
485 * gdbtypes.h (struct type) <bounds>: Handle array and string
486 types.
487 * ada-lang.c (assign_aggregate): Use type::bounds on
488 array/string type.
489 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
490 * c-varobj.c (c_number_of_children): Likewise.
491 (c_describe_child): Likewise.
492 * eval.c (evaluate_subexp_for_sizeof): Likewise.
493 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
494 (f_type_print_base): Likewise.
495 * f-valprint.c (f77_array_offset_tbl): Likewise.
496 (f77_get_upperbound): Likewise.
497 (f77_print_array_1): Likewise.
498 * guile/scm-type.c (gdbscm_type_range): Likewise.
499 * m2-typeprint.c (m2_array): Likewise.
500 (m2_is_long_set_of_type): Likewise.
501 * m2-valprint.c (get_long_set_bounds): Likewise.
502 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
503 * python/py-type.c (typy_range): Likewise.
504 * rust-lang.c (rust_internal_print_type): Likewise.
505 * type-stack.c (type_stack::follow_types): Likewise.
506 * valarith.c (value_subscripted_rvalue): Likewise.
507 * valops.c (value_cast): Likewise.
508
509971ae
SM
5092020-07-12 Simon Marchi <simon.marchi@efficios.com>
510
511 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
512 callers to use the equivalent accessor methods.
513
107406b7
SM
5142020-07-12 Simon Marchi <simon.marchi@efficios.com>
515
516 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
517 (struct type) <bit_stride>: New method.
518 (TYPE_BIT_STRIDE): Remove.
519 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
520
bb789949
SM
5212020-07-12 Simon Marchi <simon.marchi@efficios.com>
522
523 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
524 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
525 callers to use the equivalent accessor methods instead.
526
39498edb
SM
5272020-07-12 Simon Marchi <simon.marchi@efficios.com>
528
529 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
530 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
531 callers to use the equivalent accessor methods instead.
532
3b606f38
SM
5332020-07-12 Simon Marchi <simon.marchi@efficios.com>
534
535 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
536 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
537 to use dynamic_prop::kind.
538
064d9cb9
SM
5392020-07-12 Simon Marchi <simon.marchi@efficios.com>
540
541 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
542 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
543 to get the bound property's kind and check against
544 PROP_UNDEFINED.
545
5537ddd0
SM
5462020-07-12 Simon Marchi <simon.marchi@efficios.com>
547
548 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
549 all callers to use type::range_bounds followed by
550 dynamic_prop::{low,high}.
551
8c2e4e06
SM
5522020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
553
554 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
555 const_val, set_const_val, baton, set_locexpr, set_loclist,
556 set_addr_offset, variant_parts, set_variant_parts,
557 original_type, set_original_type>: New methods.
558 <kind>: Rename to...
559 <m_kind>: ... this. Update all users to use the new methods
560 instead.
561 <data>: Rename to...
562 <m_data>: ... this. Update all users to use the new methods
563 instead.
564
7c6f2712
SM
5652020-07-12 Simon Marchi <simon.marchi@efficios.com>
566
567 * gdbtypes.c (get_discrete_bounds): Return failure if
568 the range type's bounds are not both defined and constant
569 values.
570 (get_array_bounds): Update comment. Remove undefined bound check.
571
599088e3
SM
5722020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
573
574 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
575 the type::bounds method directly.
576
c4dfcb36
SM
5772020-07-12 Simon Marchi <simon.marchi@efficios.com>
578
579 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
580 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
581 are used to set the range type's bounds to use set_bounds.
582
0a278aa7
PW
5832020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
584
585 * exec.c (_initialize_exec): Update exec-file-mismatch help.
586
cce20f10
PA
5872020-07-10 Pedro Alves <pedro@palves.net>
588
589 * gdbthread.h (inferior_ref): Define.
590 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
591 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
592 * thread.c
593 (scoped_restore_current_thread::restore):
594 Adjust to gdb::ref_ptr.
595 (scoped_restore_current_thread::~scoped_restore_current_thread):
596 Remove manual decref handling.
597 (scoped_restore_current_thread::scoped_restore_current_thread):
598 Adjust to use
599 inferior_ref::new_reference/thread_info_ref::new_reference.
600 Incref the thread before calling get_frame_id instead of after.
601 Let TARGET_CLOSE_ERROR propagate.
602
6d7aa592
PA
6032020-07-10 Pedro Alves <pedro@palves.net>
604
605 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
606 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
607 NOT_AVAILABLE_ERROR.
608 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
609 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
610
b3e3a4c1
SM
6112020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
612 Pedro Alves <pedro@palves.net>
613
614 PR gdb/26199
615 * infrun.c (threads_are_resumed_pending_p): Delete.
616 (do_target_wait): Remove threads_are_executing and
617 threads_are_resumed_pending_p checks from the inferior_matches
618 lambda. Update comments.
619
d6cc5d98
PA
6202020-07-10 Pedro Alves <pedro@palves.net>
621
622 PR gdb/26199
623 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
624 executing threads.
625
7d3badc6
PA
6262020-07-10 Pedro Alves <pedro@palves.net>
627
628 PR gdb/26199
629 * infrun.c (handle_no_resumed): Handle multiple targets.
630
42bd97a6
PA
6312020-07-10 Pedro Alves <pedro@palves.net>
632
633 PR gdb/26199
634 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
635 target_is_async_p.
636
43667cc6
PA
6372020-07-10 Pedro Alves <pedro@palves.net>
638
639 PR gdb/26199
640 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
641 threads, not all threads.
642
96118d11
PA
6432020-07-10 Pedro Alves <pedro@palves.net>
644
645 PR gdb/26199
646 * remote.c (remote_target::open_1): Pass remote target pointer as
647 data to create_async_event_handler.
648 (remote_async_inferior_event_handler): Mark async event handler
649 before returning if the remote target still has either pending
650 events or unacknowledged notifications.
651
54904d81
JB
6522020-07-10 John Baldwin <jhb@FreeBSD.org>
653
654 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
655 declaration.
656 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
657 function.
658
f37e5866
JB
6592020-07-09 John Baldwin <jhb@FreeBSD.org>
660
661 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
662 inferior_ptid.
663
fc238d4a
JB
6642020-07-09 John Baldwin <jhb@FreeBSD.org>
665
666 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
667 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
668 AT_FREEBSD_PS_STRINGS.
669
6e2469ff
HD
6702020-07-08 Hannes Domani <ssbssa@yahoo.de>
671
672 * auto-load.c (auto_load_objfile_script_1): Convert drive part
673 of debugfile path on Windows.
674
d1076c41
JB
6752020-07-08 John Baldwin <jhb@FreeBSD.org>
676
677 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
678 argument to 'data'.
679
15f3b077
TT
6802020-07-08 Tom Tromey <tromey@adacore.com>
681
682 * ada-lang.c (ada_exception_message_1): Use read_memory.
683
9fc501fd
AB
6842020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
685
686 PR python/22748
687 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
688 special handling for inline frames.
689 * findvar.c (value_of_register_lazy): Skip inline frames when
690 creating lazy register values.
691 * frame.c (frame_id_computed_p): Delete definition.
692 * frame.h (frame_id_computed_p): Delete declaration.
693
64cb3757
AB
6942020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
695
696 * NEWS: Mention additions to Python API.
697 * python/py-arch.c (archpy_register_groups): New function.
698 (arch_object_methods): Add 'register_groups' method.
699 * python/py-registers.c (reggroup_iterator_object): New struct.
700 (reggroup_object): New struct.
701 (gdbpy_new_reggroup): New function.
702 (gdbpy_reggroup_to_string): New function.
703 (gdbpy_reggroup_name): New function.
704 (gdbpy_reggroup_iter): New function.
705 (gdbpy_reggroup_iter_next): New function.
706 (gdbpy_new_reggroup_iterator): New function
707 (gdbpy_initialize_registers): Register new types.
708 (reggroup_iterator_object_type): Define new Python type.
709 (gdbpy_reggroup_getset): New static global.
710 (reggroup_object_type): Define new Python type.
711 * python/python-internal.h
712
0f767f94
AB
7132020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
714
715 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
716 * python/py-arch.c (archpy_registers): New function.
717 (arch_object_methods): Add 'registers' method.
718 * python/py-registers.c: New file.
719 * python/python-internal.h
720 (gdbpy_new_register_descriptor_iterator): Declare.
721 (gdbpy_initialize_registers): Declare.
722 * python/python.c (do_start_initialization): Call
723 gdbpy_initialize_registers.
724 * NEWS: Mention additions to the Python API.
725
87dbc774
AB
7262020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
727
728 * NEWS: Mention new Python API method.
729 * python/py-unwind.c (pending_framepy_architecture): New function.
730 (pending_frame_object_methods): Add architecture method.
731
3bc98c0c
AB
7322020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
733
734 * gdbarch.c: Regenerate.
735 * gdbarch.h: Regenerate.
736 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
737 (gdbarch_data): Use internal_error for the case where
738 deprecated_set_gdbarch_data was originally needed.
739 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
740 and use passed in obstack.
741 (libunwind_frame_set_descr): Should no longer get back NULL from
742 gdbarch_data.
743 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
744 type.
745 * user-regs.c (user_regs_init): Update parameters, and use passed
746 in obstack.
747 (user_reg_add): Should no longer get back NULL from gdbarch_data.
748 (_initialize_user_regs): Register as a pre-init gdbarch data type.
749
d8cc8af6
TV
7502020-07-06 Tom de Vries <tdevries@suse.de>
751
752 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
753 End-Of-Sequence in lte_is_less_than.
754 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
755 "gdb: Don't reorder line table entries too much when sorting".
756
947f7597
TV
7572020-07-06 Tom de Vries <tdevries@suse.de>
758
759 PR tui/26205
760 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
761
1e7c1b22
TV
7622020-07-05 Tom de Vries <tdevries@suse.de>
763
764 PR build/26187
765 * inferior.h (struct infcall_suspend_state_deleter): If available, use
766 std::uncaught_exceptions instead of deprecated
767 std::uncaught_exception.
768
a36158ec
SM
7692020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
770
771 * macroexp.h (macro_stringify): Return
772 gdb::unique_xmalloc_ptr<char>.
773 * macroexp.c (macro_stringify): Likewise.
774 * macrotab.c (fixup_definition): Update.
775
14d960c8
SM
7762020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
777
778 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
779 (lex_one_token): Update.
780 * macroexp.c (struct macro_buffer) <release>: Return
781 gdb::unique_xmalloc_ptr<char>.
782 (macro_stringify): Update.
783 (macro_expand): Update.
784 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
785 * macroexp.h (macro_expand_next): Likewise.
786
211d5b1c
SM
7872020-07-02 Simon Marchi <simon.marchi@efficios.com>
788
789 * macroexp.h (macro_lookup_ftype): Remove.
790 (macro_expand, macro_expand_once, macro_expand_next): Remove
791 lookup function parameters, add scope parameter.
792 * macroexp.c (scan, substitute_args, expand, maybe_expand,
793 macro_expand, macro_expand_once, macro_expand_next): Likewise.
794 * macroscope.h (standard_macro_lookup): Change parameter type
795 to macro_scope.
796 * macroscope.c (standard_macro_lookup): Likewise.
797 * c-exp.y (lex_one_token): Update.
798 * macrocmd.c (macro_expand_command): Likewise.
799 (macro_expand_once_command): Likewise.
800
b1a35af2
SM
8012020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
802
803 * inf-loop.c (inferior_event_handler): Remove client_data param.
804 * inf-loop.h (inferior_event_handler): Likewise.
805 * infcmd.c (step_1): Adjust.
806 * infrun.c (proceed): Adjust.
807 (fetch_inferior_event): Remove client_data param.
808 (infrun_async_inferior_event_handler): Adjust.
809 * infrun.h (fetch_inferior_event): Remove `void *` param.
810 * linux-nat.c (handle_target_event): Adjust.
811 * record-btrace.c (record_btrace_handle_async_inferior_event):
812 Adjust.
813 * record-full.c (record_full_async_inferior_event_handler):
814 Adjust.
815 * remote.c (remote_async_inferior_event_handler): Adjust.
816
1cdf9e33
TT
8172020-07-01 Tom Tromey <tom@tromey.com>
818
819 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
820 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
821
32c1e210
TT
8222020-07-01 Tom Tromey <tom@tromey.com>
823
824 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
825 tui_gen_win_info.
826 (tui_win_info::make_window): Merge with
827 tui_gen_win_info::make_window.
828 (tui_win_info::make_visible): Move from tui_gen_win_info.
829 * tui/tui-win.c (tui_win_info::max_width): Move from
830 tui_gen_win_info.
831 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
832 type.
833 <window_factory>: Likewise.
834 * tui/tui-layout.c (tui_win_info::resize): Move from
835 tui_gen_win_info.
836 (make_standard_window): Change return type.
837 (get_locator_window, tui_get_window_by_name): Likewise.
838 (tui_layout_window::apply): Remove a cast.
839 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
840 (struct tui_win_info): Merge with tui_gen_win_info.
841 (struct tui_gen_win_info): Remove.
842
a30cb6da
TT
8432020-07-01 Tom Tromey <tom@tromey.com>
844
845 * tui/tui-stack.h (struct tui_locator_window): Derive from
846 tui_win_info.
847 <do_scroll_horizontal, do_scroll_vertical>: New methods.
848 <can_box>: New method.
849
1eb2161f
TT
8502020-07-01 Tom Tromey <tom@tromey.com>
851
852 * tui/tui-stack.h (struct tui_locator_window): Remove body.
853
7134f2eb
TT
8542020-07-01 Tom Tromey <tom@tromey.com>
855
856 * tui/tui-regs.c (tui_data_window::display_registers_from)
857 (tui_data_window::display_registers_from)
858 (tui_data_window::first_data_item_displayed)
859 (tui_data_window::delete_data_content_windows): Update.
860 (tui_data_window::refresh_window, tui_data_window::no_refresh):
861 Remove.
862 (tui_data_window::check_register_values): Update.
863 (tui_data_item_window::rerender): Add parameters. Update.
864 (tui_data_item_window::refresh_window): Remove.
865 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
866 virtual.
867 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
868 tui_gen_win_info.
869 <refresh_window, max_height, min_height>: Remove.
870 <rerender>: Add parameters.
871 <x, y, visible>: New members.
872 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
873 <m_item_width>: New member.
874
22b7b041
TT
8752020-07-01 Tom Tromey <tom@tromey.com>
876
877 * tui/tui-regs.c (tui_data_window::show_register_group)
878 (tui_data_window::check_register_values): Update.
879 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
880 from item_no.
881
c9753adb
TT
8822020-07-01 Tom Tromey <tom@tromey.com>
883
884 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
885 useless "if".
886
9ab26b4a
TT
8872020-07-01 Tom Tromey <tom@tromey.com>
888
889 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
890 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
891
e555083f
TT
8922020-07-01 Tom Tromey <tom@tromey.com>
893
894 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
895 * tui/tui-winsource.h (enum tui_line_or_address_kind)
896 (struct tui_line_or_address): Move from tui-data.h.
897 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
898 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
899 (tui_cmd_window, tui_source_window_base, tui_source_window)
900 (tui_disasm_window): Don't declare.
901 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
902 to tui-winsource.h.
903 (SINGLE_KEY): Move to tui-stack.c.
904
7a02bab7
TT
9052020-07-01 Tom Tromey <tom@tromey.com>
906
907 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
908 std::string.
909 * tui/tui-regs.c (class tab_expansion_file): New.
910 (tab_expansion_file::write): New method.
911 (tui_register_format): Change return type. Use
912 tab_expansion_file.
913 (tui_get_register, tui_data_window::display_registers_from)
914 (tui_data_item_window::rerender): Update.
915 * tui/tui-io.h (tui_expand_tabs): Don't declare.
916 * tui/tui-io.c (tui_expand_tabs): Remove.
917
ea68593b
TT
9182020-07-01 Tom Tromey <tom@tromey.com>
919
920 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
921
a8caed5d
FS
9222020-07-01 Fangrui Song <maskray@google.com>
923
924 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
925
9cdf9820
AKS
9262020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
927
928 * dwarf2/read.c (set_die_type): Removed conditions to restrict
929 forms for DW_AT_associated and DW_AT_allocated attributes,
930 which is already checked in function attr_to_dynamic_prop.
931
a1520ad8
TT
9322020-06-30 Tom Tromey <tromey@adacore.com>
933
934 * dwarf2/read.c (quirk_rust_enum): Correctly call
935 alloc_rust_variant for default-less enum.
936
5ac58899
TT
9372020-06-30 Tom Tromey <tromey@adacore.com>
938
939 PR build/26183:
940 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
941 gdb::to_string.
942
19b187a9
SM
9432020-06-29 Simon Marchi <simon.marchi@efficios.com>
944
945 * gdbarch.sh (displaced_step_copy_insn): Update doc.
946 * gdbarch.h: Re-generate.
947
cd4c4c07
TT
9482020-06-28 Tom Tromey <tom@tromey.com>
949
950 * command.h (cmd_types): Remove.
951 (cmd_type): Don't declare.
952 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
953 typedef.
954 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
955 * cli/cli-decode.c (cmd_type): Remove.
956
05779d57
PA
9572020-06-27 Pedro Alves <palves@redhat.com>
958
959 * fork-child.c (prefork_hook): Adjust.
960 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
961 Delete.
962 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
963 * inferior.c (inferior::set_tty, inferior::tty): New methods.
964 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
965 Remove declarations.
966 (struct inferior) <set_tty, tty>: New methods.
967 (struct inferior) <terminal>: Rename to ...
968 (struct inferior) <m_terminal>: ... this and make private.
969 * main.c (captured_main_1): Adjust.
970 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
971 (mi_cmd_inferior_tty_show): Adjust.
972 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
973 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
974
1776e3e5
NA
9752020-06-26 Nick Alcock <nick.alcock@oracle.com>
976
977 * configure.ac: Add --enable-libctf: handle --disable-static
978 properly.
979 * acinclude.m4: sinclude ../config/enable.m4.
980 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
981 (LIBCTF): Substitute in.
982 (CTF_DEPS): New, likewise.
983 (CLIBS): libctf needs symbols from libbfd: move earlier.
984 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
985 flags.
986 * ctfread.c: Surround in ENABLE_LIBCTF.
987 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
988 * configure: Regenerate.
989 * config.in: Likewise.
990
58373b80
SM
9912020-06-25 Simon Marchi <simon.marchi@efficios.com>
992
993 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
994
277474ee
SM
9952020-06-25 Simon Marchi <simon.marchi@efficios.com>
996
997 * inferior.h (struct inferior) <terminal>: Change type to
998 gdb::unique_xmalloc_ptr<char>.
999 * inferior.c (inferior::~inferior): Don't free inf->terminal.
1000 * infcmd.c (set_inferior_io_terminal): Don't free terminal
1001 field, adjust to unique pointer.
1002 (get_inferior_io_terminal): Adjust to unique pointer.
1003
6d74da72
AB
10042020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1005
1006 * riscv-tdep.c (riscv_print_registers_info): Loop over all
1007 registers, not just the known core set of registers.
1008
2e52d038
AB
10092020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1010
1011 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
1012 fflags, frm, and fcsr registers.
1013 (riscv_register_reggroup_p): Remove unknown CSRs from save and
1014 restore groups.
1015 (riscv_tdesc_unknown_reg): New function.
1016 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
1017 tdesc_use_registers.
1018 * riscv-tdep.h (struct gdbarch_tdep): Add
1019 unknown_csrs_first_regnum, unknown_csrs_count,
1020 duplicate_fflags_regnum, duplicate_frm_regnum, and
1021 duplicate_fcsr_regnum fields.
1022
be64fd07
AB
10232020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1024
1025 * target-descriptions.c (tdesc_use_registers): Add new parameter a
1026 callback, use the callback (when not null) to help number unknown
1027 registers.
1028 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
1029 (tdesc_use_registers): Add extra parameter to declaration.
1030
3b9fce96
AB
10312020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1032
1033 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
1034 in the file.
1035 (class riscv_pending_register_alias): Likewise.
1036 (riscv_register_feature::register_info): Change 'required_p' field
1037 to 'required', and change its type. Add 'check' member function.
1038 (riscv_register_feature::register_info::check): Define new member
1039 function.
1040 (riscv_xreg_feature): Change initialisation of 'required' field.
1041 (riscv_freg_feature): Likewise.
1042 (riscv_virtual_feature): Likewise.
1043 (riscv_csr_feature): Likewise.
1044 (riscv_check_tdesc_feature): Take extra parameter, the csr
1045 tdesc_feature, rewrite the function to use the new
1046 riscv_register_feature::register_info::check function.
1047 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
1048
865bad26
AB
10492020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1050
1051 * features/Makefile: Remove all references to the deleted files
1052 below.
1053 * features/riscv/32bit-csr.c: Deleted.
1054 * features/riscv/32bit-csr.xml: Deleted.
1055 * features/riscv/64bit-csr.c: Deleted.
1056 * features/riscv/64bit-csr.xml: Deleted.
1057 * features/riscv/rebuild-csr-xml.sh: Deleted.
1058
ed69cbc8
AB
10592020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1060
1061 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
1062 whitespace error for declaration of names member variable.
1063 (struct riscv_register_feature): Add new prefer_first_name member
1064 variable, and fix whitespace error in declaration of registers.
1065 (riscv_xreg_feature): Initialize prefer_first_name field.
1066 (riscv_freg_feature): Likewise.
1067 (riscv_virtual_feature): Likewise.
1068 (riscv_csr_feature): Likewise.
1069 (riscv_register_name): Expand on comments. Remove register name
1070 modifications for CSR and virtual registers.
1071
4445e8f5
AB
10722020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1073
1074 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
1075 errors.
1076
767a879e
AB
10772020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1078
1079 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
1080 riscv-opc.h.
1081 (class riscv_pending_register_alias): New class.
1082 (riscv_check_tdesc_feature): Take vector of pending aliases and
1083 populate it as appropriate.
1084 (riscv_setup_register_aliases): Delete.
1085 (riscv_gdbarch_init): Create vector of pending aliases and pass it
1086 to riscv_check_tdesc_feature in all cases. Use the vector to
1087 create the register aliases.
1088
bb6e55f3
RO
10892020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1090
1091 * sol2-tdep.c (sol2_static_transform_name): Remove.
1092 (sol2_init_abi): Don't register it.
1093 * gdbarch.sh (static_transform_name): Remove.
1094 * gdbarch.c, gdbarch.h: Regenerate.
1095
1096 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
1097 gdbarch_static_transform_name.
1098 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
1099 * stabsread.c (define_symbol) <'X'>: Remove.
1100 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
1101 handling.
1102 <'V'>: Likewise.
1103 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
1104 <'S'>: Remove call to gdbarch_static_transform_name.
1105
c6d36836
RO
11062020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1107
1108 * procfs.c (procfs_pre_trace): New function.
1109 (procfs_target::create_inferior): Pass it to fork_inferior.
1110
a7e6196b
RO
11112020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1112
1113 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
1114 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
1115 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
1116 sol2-tdep.o, sparc-sol2-tdep.o.
1117 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
1118 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
1119 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
1120 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
1121
d412e696
RO
11222020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1123
1124 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
1125 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
1126 Call sol2_init_abi.
1127 Remove calls to set_gdbarch_skip_solib_resolver,
1128 set_gdbarch_core_pid_to_str.
1129 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
1130 (i386_sol2_static_transform_name): Remove.
1131 (i386_sol2_init_abi): Call sol2_init_abi.
1132 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1133 set_gdbarch_static_transform_name,
1134 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1135 Use sol2_sigtramp_p.
1136 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
1137 (sol2_sigtramp_p): New function.
1138 (sol2_static_transform_name): New function.
1139 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
1140 (sol2_init_abi): New function.
1141 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
1142 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
1143 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
1144 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
1145 (sparc_sol2_static_transform_name): Remove.
1146 (sparc32_sol2_init_abi): Call sol2_init_abi.
1147 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1148 set_gdbarch_static_transform_name,
1149 set_gdbarch_skip_solib_resolver,
1150 set_gdbarch_core_pid_to_str.
1151 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
1152 (sparc_sol2_static_transform_name): Remove
1153 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
1154 call sol2_sigtramp_p.
1155 (sparc64_sol2_init_abi): Call sol2_init_abi.
1156 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1157 set_gdbarch_static_transform_name,
1158 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1159
a8654e7d
PW
11602020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1161
1162 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
1163 * exec.c (validate_exec_file): If from_tty, set both
1164 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
1165 * symfile.c (symbol_file_add_with_addrs): if always_confirm
1166 and from_tty, unconditionally ask a confirmation.
1167
caa7fd04
AB
11682020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1169
1170 * target-descriptions.c (tdesc_architecture_name): Protect against
1171 NULL pointer dereference.
1172 (maint_print_xml_tdesc_cmd): New function.
1173 (_initialize_target_descriptions): Register new 'maint print
1174 xml-tdesc' command and give it the filename completer.
1175 * NEWS: Mention new 'maint print xml-tdesc' command.
1176
fbf42f4e
AB
11772020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1178
1179 * target-descriptions.c (class tdesc_compatible_info): New class.
1180 (struct target_desc): Change type of compatible vector.
1181 (tdesc_compatible_p): Update for change in type of
1182 target_desc::compatible.
1183 (tdesc_compatible_info_list): New function.
1184 (tdesc_compatible_info_arch_name): New function.
1185 (tdesc_add_compatible): Update for change in type of
1186 target_desc::compatible.
1187 (print_c_tdesc::visit_pre): Likewise.
1188
20821f4e
AB
11892020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1190
1191 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
1192 whitespace to underscore.
1193 (maint_print_c_tdesc_cmd): Use fake filename for target
1194 descriptions that came from the target.
1195 (_initialize_target_descriptions): Add filename command completion
1196 for 'maint print c-tdesc'.
1197
1fb5ee62
SM
11982020-06-23 Simon Marchi <simon.marchi@efficios.com>
1199
1200 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
1201 lines.
1202
fc3ecb3e
SM
12032020-06-23 Simon Marchi <simon.marchi@efficios.com>
1204
1205 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
1206 lines.
1207 (dwarf2_find_location_expression): Likewise.
1208 (call_site_parameter_matches): Likewise.
1209 (dwarf2_compile_expr_to_ax): Likewise.
1210 (disassemble_dwarf_expression): Likewise.
1211 (loclist_describe_location): Likewise.
1212
236ef034
PA
12132020-06-23 Pedro Alves <palves@redhat.com>
1214
1215 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
1216 progspace-and-thread.h. Include scoped-mock-context.h instead.
1217 (register_to_value_test): Use scoped_mock_context.
1218 * regcache.c: Include "scoped-mock-context.h".
1219 (cooked_read_test): Don't error out if a target is already pushed.
1220 Use scoped_mock_context. Adjust.
1221 * scoped-mock-context.h: New file.
1222
39e7ecca
AB
12232020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1224
1225 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
1226 initializer.
1227 (ada_language::is_string_type_p): New member function.
1228 * c-lang.c (c_language_data): Delete la_is_string_type_p
1229 initializer.
1230 (cplus_language_data): Likewise.
1231 (asm_language_data): Likewise.
1232 (minimal_language_data): Likewise.
1233 * d-lang.c (d_language_data): Likewise.
1234 * f-lang.c (f_is_string_type_p): Delete function, implementation
1235 moved to f_language::is_string_type_p.
1236 (f_language_data): Delete la_is_string_type_p initializer.
1237 (f_language::is_string_type_p): New member function,
1238 implementation from f_is_string_type_p.
1239 * go-lang.c (go_is_string_type_p): Delete function, implementation
1240 moved to go_language::is_string_type_p.
1241 (go_language_data): Delete la_is_string_type_p initializer.
1242 (go_language::is_string_type_p): New member function,
1243 implementation from go_is_string_type_p.
1244 * language.c (language_defn::is_string_type_p): Define new member
1245 function.
1246 (default_is_string_type_p): Make static, add comment copied from
1247 header file.
1248 (unknown_language_data): Delete la_is_string_type_p initializer.
1249 (unknown_language::is_string_type_p): New member function.
1250 (auto_language_data): Delete la_is_string_type_p initializer.
1251 (auto_language::is_string_type_p): New member function.
1252 * language.h (language_data): Delete la_is_string_type_p field.
1253 (language_defn::is_string_type_p): Declare new function.
1254 (default_is_string_type_p): Delete desclaration, move comment to
1255 definition.
1256 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
1257 moved to m2_language::is_string_type_p.
1258 (m2_language_data): Delete la_is_string_type_p initializer.
1259 (m2_language::is_string_type_p): New member function,
1260 implementation from m2_is_string_type_p.
1261 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
1262 initializer.
1263 * opencl-lang.c (opencl_language_data): Likewise.
1264 * p-lang.c (pascal_is_string_type_p): Delete function,
1265 implementation moved to pascal_language::is_string_type_p.
1266 (pascal_language_data): Delete la_is_string_type_p initializer.
1267 (pascal_language::is_string_type_p): New member function,
1268 implementation from pascal_is_string_type_p.
1269 * rust-lang.c (rust_is_string_type_p): Delete function,
1270 implementation moved to rust_language::is_string_type_p.
1271 (rust_language_data): Delete la_is_string_type_p initializer.
1272 (rust_language::is_string_type_p): New member function,
1273 implementation from rust_is_string_type_p.
1274 * valprint.c (val_print_scalar_or_string_type_p): Update call to
1275 is_string_type_p.
1276
4ffc13fb
AB
12772020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1278
1279 * ada-lang.c (ada_language_data): Delete la_print_typedef
1280 initializer.
1281 (ada_language::print_typedef): New member function.
1282 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
1283 (cplus_language_data): Likewise.
1284 (asm_language_data): Likewise.
1285 (minimal_language_data): Likewise.
1286 * d-lang.c (d_language_data): Likewise.
1287 * f-lang.c (f_language_data): Likewise.
1288 (f_language::print_typedef): New member function.
1289 * go-lang.c (go_language_data): Delete la_print_typedef
1290 initializer.
1291 * language.c (language_defn::print_typedef): Define member
1292 function.
1293 (unknown_language_data): Delete la_print_typedef initializer.
1294 (unknown_language::print_typedef): New member function.
1295 (auto_language_data): Delete la_print_typedef initializer.
1296 (auto_language::print_typedef): New member function.
1297 * language.h (language_data): Delete la_print_typedef field.
1298 (language_defn::print_typedef): Declare new member function.
1299 (LA_PRINT_TYPEDEF): Update call to print_typedef.
1300 (default_print_typedef): Delete declaration.
1301 * m2-lang.c (m2_language_data): Delete la_print_typedef
1302 initializer.
1303 (m2_language::print_typedef): New member function.
1304 * objc-lang.c (objc_language_data): Delete la_print_typedef
1305 initializer.
1306 * opencl-lang.c (opencl_language_data): Likewise.
1307 * p-lang.c (pascal_language_data): Likewise.
1308 (pascal_language::print_typedef): New member function.
1309 * rust-lang.c (rust_print_typedef): Delete function,
1310 implementation moved to rust_language::print_typedef.
1311 (rust_language): Delete la_print_typedef initializer.
1312 (rust_language::print_typedef): New member function,
1313 implementation from rust_print_typedef.
1314 * typeprint.c (default_print_typedef): Delete.
1315
d711ee67
AB
13162020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1317
1318 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
1319 (ada_language::printstr): New member function.
1320 * c-lang.c (c_language_data): Delete la_printstr initializer.
1321 (cplus_language_data): Likewise.
1322 (asm_language_data): Likewise.
1323 (minimal_language_data): Likewise.
1324 * d-lang.c (d_language_data): Likewise.
1325 * f-lang.c (f_printstr): Rename to f_language::printstr.
1326 (f_language_data): Delete la_printstr initializer.
1327 (f_language::printstr): New member function, implementation from
1328 f_printstr.
1329 * go-lang.c (go_language_data): Delete la_printstr initializer.
1330 * language.c (language_defn::printstr): Define new member
1331 function.
1332 (unk_lang_printstr): Delete.
1333 (unknown_language_data): Delete la_printstr initializer.
1334 (unknown_language::printstr): New member function.
1335 (auto_language_data): Delete la_printstr initializer.
1336 (auto_language::printstr): New member function.
1337 * language.h (language_data): Delete la_printstr field.
1338 (language_defn::printstr): Declare new member function.
1339 (LA_PRINT_STRING): Update call to printstr.
1340 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
1341 (m2_language_data): Delete la_printstr initializer.
1342 (m2_language::printstr): New member function, implementation from
1343 m2_printstr.
1344 * objc-lang.c (objc_language_data): Delete la_printstr
1345 initializer.
1346 * opencl-lang.c (opencl_language_data): Likewise.
1347 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
1348 (pascal_language_data): Delete la_printstr initializer.
1349 (pascal_language::printstr): New member function, implementation
1350 from pascal_printstr.
1351 * p-lang.h (pascal_printstr): Delete declaration.
1352 * rust-lang.c (rust_printstr): Update header comment.
1353 (rust_language_data): Delete la_printstr initializer.
1354 (rust_language::printstr): New member function.
1355
52b50f2c
AB
13562020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1357
1358 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
1359 (ada_language::printchar): New member function.
1360 * c-lang.c (c_language_data): Delete la_printchar initializer.
1361 (cplus_language_data): Likewise.
1362 (asm_language_data): Likewise.
1363 (minimal_language_data): Likewise.
1364 * d-lang.c (d_language_data): Likewise.
1365 * f-lang.c (f_printchar): Rename to f_language::printchar.
1366 (f_language_data): Delete la_printchar initializer.
1367 (f_language::printchar): New member function, implementation from
1368 f_printchar.
1369 * go-lang.c (go_language_data): Delete la_printchar initializer.
1370 * language.c (unk_lang_printchar): Delete.
1371 (language_defn::printchar): Define new member function.
1372 (unknown_language_data): Delete la_printchar initializer.
1373 (unknown_language::printchar): New member function.
1374 (auto_language_data): Delete la_printchar initializer.
1375 (auto_language::printchar): New member function.
1376 * language.h (language_data): Delete la_printchar field.
1377 (language_defn::printchar): Declare new member function.
1378 (LA_PRINT_CHAR): Update call to printchar.
1379 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
1380 (m2_language::printchar): New member function.
1381 * objc-lang.c (objc_language_data): Delete la_printchar
1382 initializer.
1383 * opencl-lang.c (opencl_language_data): Likewise.
1384 * p-lang.c (pascal_language_data): Delete la_printchar
1385 initializer.
1386 (pascal_language::printchar): New member function.
1387 * rust-lang.c (rust_printchar): Rename to
1388 rust_language::printchar.
1389 (rust_language_data): Delete la_printchar initializer.
1390 (rust_language::printchar): New member function, implementation
1391 from rust_printchar.
1392
ec8cec5b
AB
13932020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1394
1395 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
1396 (ada_language_data): Delete la_emitchar initializer.
1397 (ada_language::emitchar): New member function, implementation from
1398 emit_char.
1399 * c-lang.c (c_language_data): Delete la_emitchar initializer.
1400 (cplus_language_data): Likewise.
1401 (asm_language_data): Likewise.
1402 (minimal_language_data): Likewise.
1403 * d-lang.c (d_language_data): Likewise.
1404 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
1405 (f_language_data): Delete la_emitchar initializer.
1406 (f_language::emitchar): New member function, implementation from
1407 f_emit_char.
1408 * go-lang.c (go_language_data): Delete la_emitchar initializer.
1409 * language.c (unk_lang_emit_char): Delete.
1410 (language_defn::emitchar): New member function definition.
1411 (unknown_language_data): Delete la_emitchar initializer.
1412 (unknown_language::emitchar): New member function.
1413 (auto_language_data): Delete la_emitchar initializer.
1414 (auto_language::emitchar): New member function.
1415 * language.h (language_data): Delete la_emitchar field.
1416 (language_defn::emitchar): New member field declaration.
1417 (LA_EMIT_CHAR): Update call to emitchar.
1418 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
1419 (m2_language_data): Delete la_emitchar initializer.
1420 (m2_language::emitchar): New member function, implementation from
1421 m2_emit_char.
1422 * objc-lang.c (objc_language_data): Delete la_emitchar
1423 initializer.
1424 * opencl-lang.c (opencl_language_data): Likewise.
1425 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
1426 (pascal_language_data): Delete la_emitchar initializer.
1427 (pascal_language::emitchar): New member function, implementation
1428 from pascal_emit_char.
1429 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
1430 (rust_language_data): Delete la_emitchar initializer.
1431 (rust_language::emitchar): New member function, implementation
1432 from rust_emitchar.
1433
1bf9c363
AB
14342020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1435
1436 * ada-lang.c (resolve): Rename to ada_language::post_parser.
1437 (ada_language_data): Delete la_post_parser initializer.
1438 (ada_language::post_parser): New member function.
1439 * c-lang.c (c_language_data): Delete la_post_parser initializer.
1440 (cplus_language_data): Likewise.
1441 (asm_language_data): Likewise.
1442 (minimal_language_data): Likewise.
1443 * d-lang.c (d_language_data): Likewise.
1444 * f-lang.c (f_language_data): Likewise.
1445 * go-lang.c (go_language_data): Likewise.
1446 * language.c (unknown_language_data): Likewise.
1447 (auto_language_data): Likewise.
1448 * language.h (language_data): Delete la_post_parser field.
1449 (language_defn::post_parser): New member function.
1450 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
1451 * objc-lang.c (objc_language_data): Likewise.
1452 * opencl-lang.c (opencl_language_data): Likewise.
1453 * p-lang.c (pascal_language_data): Likewise.
1454 * parse.c (parse_exp_in_context): Update call to post_parser.
1455 (null_post_parser): Delete definition.
1456 * parser-defs.h (null_post_parser): Delete declaration.
1457 * rust-lang.c (rust_language_data): Delete la_post_parser
1458 initializer.
1459
87afa652
AB
14602020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1461
1462 * ada-lang.c (parse): Rename to ada_language::parser.
1463 (ada_language_data): Delete la_parser initializer.
1464 (ada_language::parser): New member function, implementation from
1465 parse.
1466 * c-lang.c (c_language_data): Delete la_parser initializer.
1467 (cplus_language_data): Likewise.
1468 (asm_language_data): Likewise.
1469 (minimal_language_data): Likewise.
1470 * d-lang.c (d_language_data): Likewise.
1471 (d_language::parser): New member function.
1472 * f-lang.c (f_language_data): Delete la_parser initializer.
1473 (f_language::parser): New member function.
1474 * go-lang.c (go_language_data): Delete la_parser initializer.
1475 (go_language::parser): New member function.
1476 * language.c (unk_lang_parser): Delete.
1477 (language_defn::parser): Define new member function.
1478 (unknown_language_data): Delete la_parser initializer.
1479 (unknown_language::parser): New member function.
1480 (auto_language_data): Delete la_parser initializer.
1481 (auto_language::parser): New member function.
1482 * language.h (language_data): Delete la_parser field.
1483 (language_defn::parser): Declare new member function.
1484 * m2-lang.c (m2_language_data): Delete la_parser initializer.
1485 (m2_language::parser): New member function.
1486 * objc-lang.c (objc_language_data): Delete la_parser initializer.
1487 * opencl-lang.c (opencl_language_data): Likewise.
1488 * p-lang.c (pascal_language_data): Likewise.
1489 (pascal_language::parser): New member function.
1490 * parse.c (parse_exp_in_context): Update call to parser.
1491 * rust-lang.c (rust_language_data): Delete la_parser initializer.
1492 (rust_language::parser): New member function.
1493
37825800
AB
14942020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1495
1496 * top.c (print_gdb_configuration): Print --with-python-libdir
1497 configuration value.
1498
5b860c93
PW
14992020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1500
1501 * NEWS: Mention change to the alias command.
1502
cf00cd6f
PW
15032020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1504
1505 * cli/cli-cmds.c (lookup_cmd_for_default_args)
1506 (alias_command_completer)
1507 (make_alias_options_def_group): New functions.
1508 (alias_opts, alias_option_defs): New struct and array.
1509 (alias_usage_error): Update usage.
1510 (alias_command): Handles optional DEFAULT-ARGS... arguments.
1511 Use option framework.
1512 (_initialize_cli_cmds): Update alias command help.
1513 Update aliases command help.
1514 (show_user):
1515 Add NULL for new default_args lookup_cmd argument.
1516 (valid_command_p): Rename to validate_aliased_command.
1517 Add NULL for new default_args lookup_cmd argument. Verify that the
1518 aliased_command has no default args.
1519 * cli/cli-decode.c (help_cmd): Show aliases definitions.
1520 (lookup_cmd_1, lookup_cmd): New argument default_args.
1521 (add_alias_cmd):
1522 Add NULL for new default_args lookup_cmd argument.
1523 (print_help_for_command): Show default args under the layout
1524 alias some_alias = some_aliased_cmd some_alias_default_arg.
1525 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
1526 xfree default_args in destructor.
1527 * cli/cli-script.c (process_next_line, do_define_command):
1528 Add NULL for new default_args lookup_cmd argument.
1529 * command.h: Declare new default_args argument in lookup_cmd
1530 and lookup_cmd_1.
1531 * completer.c (complete_line_internal_1):
1532 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1533 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
1534 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
1535 Likewise.
1536 * infcmd.c (_initialize_infcmd): Likewise.
1537 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
1538 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
1539 * python/py-param.c (add_setshow_generic): Likewise.
1540 * remote.c (_initialize_remote): Likewise.
1541 * top.c (execute_command): Prepend default_args if command has some.
1542 (set_verbose):
1543 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1544 * tracepoint.c (validate_actionline, encode_actions_1):
1545 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1546
bd920864
TBA
15472020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1548
1549 * jit.c (jit_read_descriptor): Use bool as the return type.
1550 (jit_breakpoint_re_set_internal): Use bool as the return type.
1551 Invert the return value logic; return true if the jit breakpoint
1552 has been successfully initialized.
1553 (jit_inferior_init): Update the call to
1554 jit_breakpoint_re_set_internal.
1555
f8098322
PA
15562020-06-22 Pedro Alves <palves@redhat.com>
1557
1558 PR gdb/25939
1559 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
1560 Use the current inferior instead. Don't return
1561 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
1562 wait again.
1563 * sol-thread.c (sol_thread_target::wait): Don't reference
1564 inferior_ptid.
1565 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
1566 (sol_update_thread_list_callback): Use the current inferior's pid
1567 instead of inferior_ptid.
1568
196535a6
RO
15692020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1570
1571 * procfs.c: Cleanup many comments.
1572
1573 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
1574 (AFTER_WATCHFLAG): Replace by value.
1575
1576 (MAIN_PROC_NAME_FORMAT): Inline ...
1577 (create_procinfo): ... here.
1578
1579 (procfs_debug_inferior): Remove SYS_exec handling.
1580 (syscall_is_exec): Likewise.
1581 (procfs_set_exec_trap): Likewise.
1582
1583 (syscall_is_lwp_exit): Inline in callers.
1584 (syscall_is_exit): Likewise.
1585 (syscall_is_exec): Likewise.
1586 (syscall_is_lwp_create): Likewise.
1587
1588 (invalidate_cache): Remove #if 0 code.
1589
1590 (make_signal_thread_runnable): Remove.
1591 (procfs_target::resume): Remove #if 0 code.
1592
cf6f3e86
RO
15932020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1594
1595 PR gdb/25939
1596 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
1597 call ...
1598 (procfs_target::create_inferior): ... here.
1599
48e9cc84
PW
16002020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1601
1602 * exec.c (validate_exec_file): Ensure the build-id is up to
1603 date by calling reopen_exec_file (that checks file timestamp
1604 to decide to re-read the file).
1605
3922b302
PA
16062020-06-18 Pedro Alves <palves@redhat.com>
1607
1608 PR gdb/25412
1609 * gdbthread.h (delete_thread, delete_thread_silent)
1610 (find_thread_ptid): Update comments.
1611 * thread.c (current_thread_): New global.
1612 (is_current_thread): Move higher, and reimplement.
1613 (inferior_thread): Reimplement.
1614 (set_thread_exited): Use bool. Add assertions.
1615 (add_thread_silent): Simplify thread-reuse handling by always
1616 calling delete_thread.
1617 (delete_thread): Remove intro comment.
1618 (find_thread_ptid): Skip exited threads.
1619 (switch_to_thread_no_regs): Write to current_thread_.
1620 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
1621 INFERIOR_PTID. Clear current_thread_.
1622
6dbdab44
PA
16232020-06-18 Pedro Alves <palves@redhat.com>
1624
1625 * aix-thread.c (pd_update): Use switch_to_thread.
1626
2da4b788
PA
16272020-06-18 Pedro Alves <palves@redhat.com>
1628
1629 * ravenscar-thread.c (ravenscar_thread_target): Update.
1630 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
1631 (ravenscar_thread_target::add_active_thread): ... this. Don't
1632 set m_base_ptid here. Update to avoid referencing inferior_ptid.
1633 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
1634
50838d1b
PA
16352020-06-18 Pedro Alves <palves@redhat.com>
1636
1637 * nat/windows-nat.c (current_windows_thread): Remove.
1638 * nat/windows-nat.h (current_windows_thread): Remove.
1639 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
1640 Adjust.
1641 (display_selectors): Adjust to fetch the current
1642 windows_thread_info based on inferior_ptid.
1643 (fake_create_process): No longer write to current_windows_thread.
1644 (windows_nat_target::get_windows_debug_event):
1645 Don't set inferior_ptid or current_windows_thread.
1646 (windows_nat_target::wait): Adjust to not rely on
1647 current_windows_thread.
1648 (do_initial_windows_stuff): Now a method of windows_nat_target.
1649 Switch to the last_ptid thread.
1650 (windows_nat_target::attach): Adjust.
1651 (windows_nat_target::detach): Use switch_to_no_thread instead of
1652 writing to inferior_ptid directly.
1653 (windows_nat_target::create_inferior): Adjust.
1654
31ce04e9
PA
16552020-06-18 Pedro Alves <palves@redhat.com>
1656
1657 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
1658
1ee1a363
PA
16592020-06-18 Pedro Alves <palves@redhat.com>
1660
1661 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
1662 after creating it, instead of writing to inferior_ptid. Don't
1663 write to inferior_ptid.
1664
6d350754
PA
16652020-06-18 Pedro Alves <palves@redhat.com>
1666
1667 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
1668
5d971d48
PA
16692020-06-18 Pedro Alves <palves@redhat.com>
1670
1671 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
1672 it, instead of writing to inferior_ptid.
1673
86e57d1b
PA
16742020-06-18 Pedro Alves <palves@redhat.com>
1675
1676 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
1677 to inferior_ptid.
1678
f2e1c129
PA
16792020-06-18 Pedro Alves <palves@redhat.com>
1680
1681 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
1682 instead of writing to inferior_ptid directly.
1683
60db1b85
PA
16842020-06-18 Pedro Alves <palves@redhat.com>
1685
1686 * corelow.c (core_target::close): Use switch_to_no_thread instead
1687 of writing to inferior_ptid directly.
1688 (add_to_thread_list, core_target_open): Use switch_to_thread
1689 instead of writing to inferior_ptid directly.
1690
fe7d6a8d
PA
16912020-06-18 Pedro Alves <palves@redhat.com>
1692
1693 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
1694 inferior_ptid.
1695 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
1696 inferior_ptid.
1697 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
1698 inferior_ptid directly.
1699 (darwin_nat_target::init_thread_list): Switch to thread, instead
1700 of writing to inferior_ptid.
1701 (darwin_nat_target::attach): Don't write to inferior_ptid.
1702 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
1703
975f8708
PA
17042020-06-18 Pedro Alves <palves@redhat.com>
1705
1706 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
1707 thread.
1708 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
1709 Instead use switch_to_thread.
1710 (gnu_nat_target::detach): Use switch_to_no_thread
1711 instead of writing to inferior_ptid directly. Used passed-in
1712 inferior instead of looking up the inferior by pid.
1713
1a204730
PA
17142020-06-18 Pedro Alves <palves@redhat.com>
1715
1716 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
1717 inferior_ptid.
1718
ebe84f23
PA
17192020-06-18 Pedro Alves <palves@redhat.com>
1720
1721 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
1722 inferior_ptid.
1723 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
1724 thread.
1725 (nto_procfs_target::detach): Avoid referencing
1726 inferior_ptid. Use switch_to_no_thread instead of writing to
1727 inferior_ptid directly.
1728 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
1729 instead of writing to inferior_ptid directly.
1730 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
1731 to thread.
1732
191f02e5
PA
17332020-06-18 Pedro Alves <palves@redhat.com>
1734
1735 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
1736 after creating it, instead of writing to inferior_ptid.
1737 (gdbsim_target_open): Use switch_to_no_thread instead of writing
1738 to inferior_ptid directly.
1739 (gdbsim_target::wait): Don't write to inferior_ptid.
1740
0ac55310
PA
17412020-06-18 Pedro Alves <palves@redhat.com>
1742
1743 * remote.c (remote_target::remote_notice_new_inferior): Use
1744 switch_to_thread instead of writing to inferior_ptid directly.
1745 (remote_target::add_current_inferior_and_thread): Use
1746 switch_to_no_thread instead of writing to inferior_ptid directly.
1747 (extended_remote_target::attach): Use switch_to_inferior_no_thread
1748 and switch_to_thread instead of using set_current_inferior or
1749 writing to inferior_ptid directly.
1750
5233f39b
PA
17512020-06-18 Pedro Alves <palves@redhat.com>
1752
1753 * tracectf.c (ctf_target_open): Switch to added thread instead of
1754 writing to inferior_ptid directly.
1755 (ctf_target::close): Use switch_to_no_thread instead of writing to
1756 inferior_ptid directly.
1757
087e161b
PA
17582020-06-18 Pedro Alves <palves@redhat.com>
1759
1760 * tracefile-tfile.c (tfile_target_open): Don't write to
1761 inferior_ptid directly, instead switch to added thread.
1762 (tfile_target::close): Use switch_to_no_thread instead of writing
1763 to inferior_ptid directly.
1764
7fb43e53
PA
17652020-06-18 Pedro Alves <palves@redhat.com>
1766
1767 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
1768 (procfs_target::detach): Use switch_to_no_thread
1769 instead of writing to inferior_ptid directly.
1770 (do_attach): Change return type to void. Switch to the added
1771 thread.
1772 (procfs_target::create_inferior): Switch to the added thread.
1773 (procfs_do_thread_registers): Don't write to inferior_ptid.
1774
18493a00
PA
17752020-06-18 Pedro Alves <palves@redhat.com>
1776
1777 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
1778 of writing to inferior_ptid.
1779 (scoped_restore_exited_inferior): Delete.
1780 (handle_vfork_child_exec_or_exit): Simplify using
1781 scoped_restore_current_pspace_and_thread. Use switch_to_thread
1782 instead of writing to inferior_ptid.
1783 (THREAD_STOPPED_BY): Delete.
1784 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
1785 (thread_stopped_by_hw_breakpoint): Delete.
1786 (save_waitstatus): Use
1787 scoped_restore_current_thread+switch_to_thread, and call
1788 target_stopped_by_watchpoint instead of
1789 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
1790 instead of thread_stopped_by_sw_breakpoint, and
1791 target_stopped_by_hw_breakpoint instead of
1792 thread_stopped_by_hw_breakpoint.
1793 (handle_inferior_event)
1794 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
1795 inferior_ptid directly, nor
1796 set_current_inferior/set_current_program_space. Use
1797 switch_to_thread / switch_to_inferior_no_thread instead.
1798
a0776b13
PA
17992020-06-18 Pedro Alves <palves@redhat.com>
1800
1801 * target.c (generic_mourn_inferior): Use switch_to_no_thread
1802 instead of writing to inferior_ptid.
1803
6155c136
PA
18042020-06-18 Pedro Alves <palves@redhat.com>
1805
1806 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
1807 added thread.
1808 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
1809 to the added thread.
1810 (inf_ptrace_target::detach_success): Use switch_to_no_thread
1811 instead of writing to inferior_ptid.
1812
c5316fc6
PA
18132020-06-18 Pedro Alves <palves@redhat.com>
1814
1815 * gdbarch-selftests.c: Include "progspace-and-thread.h".
1816 (register_to_value_test): Mock a program_space too. Heap-allocate
1817 the address space. Don't write to inferior_ptid. Use
1818 switch_to_thread instead.
1819
8df01799
PA
18202020-06-18 Pedro Alves <palves@redhat.com>
1821
1822 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
1823 Delete.
1824 (find_signalled_thread()): New, factored out from
1825 linux_make_corefile_notes and adjusted to handle exited threads.
1826 (linux_make_corefile_notes): Adjust to use the new
1827 find_signalled_thread.
1828
41792d68
PA
18292020-06-18 Pedro Alves <palves@redhat.com>
1830
1831 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
1832 of saving/restoring inferior_ptid.
1833
612f258a
TT
18342020-06-17 Tom Tromey <tom@tromey.com>
1835
1836 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
1837 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
1838 declare.
1839 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
1840
efb763a5
SM
18412020-06-15 Simon Marchi <simon.marchi@efficios.com>
1842
1843 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
1844 of partial symtabs.
1845
2951f6c0
SM
18462020-06-17 Simon Marchi <simon.marchi@efficios.com>
1847
1848 * regformats/reg-arm.dat: Remove.
1849 * regformats/reg-bfin.dat: Remove.
1850 * regformats/reg-cris.dat: Remove.
1851 * regformats/reg-crisv32.dat: Remove.
1852 * regformats/reg-m32r.dat: Remove.
1853 * regformats/reg-tilegx.dat: Remove.
1854 * regformats/reg-tilegx32.dat: Remove.
1855
7d458ea5
SM
18562020-06-17 Simon Marchi <simon.marchi@efficios.com>
1857
1858 * features/Makefile (WHICH): Remove arm files.
1859 * regformats/arm/arm-with-iwmmxt.dat: Remove.
1860 * regformats/arm/arm-with-neon.dat: Remove.
1861 * regformats/arm/arm-with-vfpv2.dat: Remove.
1862 * regformats/arm/arm-with-vfpv3.dat: Remove.
1863
3af96c0d
SM
18642020-06-17 Simon Marchi <simon.marchi@efficios.com>
1865
1866 * features/Makefile (XMLTOC): Remove rx.xml.
1867
b25e22fd
PA
18682020-06-17 Pedro Alves <palves@redhat.com>
1869
1870 * gdbthread.h (thread_control_state) <trap_expected> Update
1871 comments.
1872
a78a19b1
AB
18732020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1874
1875 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
1876 ada_language::lookup_symbol_nonlocal.
1877 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
1878 (ada_language::lookup_symbol_nonlocal): New member function,
1879 implementation from ada_lookup_symbol_nonlocal.
1880 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
1881 initializer.
1882 (cplus_language_data): Delete la_lookup_symbol_nonlocal
1883 initializer.
1884 (cplus_language::lookup_symbol_nonlocal): New member function.
1885 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
1886 (minimal_language_data) Likewise.
1887 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
1888 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
1889 initializer.
1890 (d_language::lookup_symbol_nonlocal): New member function.
1891 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
1892 initializer.
1893 (f_language::lookup_symbol_nonlocal): New member function.
1894 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
1895 initializer.
1896 * language.c (unknown_language_data): Likewise.
1897 (auto_language_data): Likewise.
1898 * language.h (language_data): Delete la_lookup_symbol_nonlocal
1899 field.
1900 (language_defn::lookup_symbol_nonlocal): New member function.
1901 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
1902 initializer.
1903 * objc-lang.c (objc_language_data): Likewise.
1904 * opencl-lang.c (opencl_language_data): Likewise.
1905 * p-lang.c (pascal_language_data): Likewise.
1906 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
1907 rust_language::lookup_symbol_nonlocal.
1908 (rust_language_data): Delete la_lookup_symbol_nonlocal
1909 initializer.
1910 (rust_language::lookup_symbol_nonlocal): New member function,
1911 implementation from rust_lookup_symbol_nonlocal.
1912 * symtab.c (lookup_symbol_aux): Update call to
1913 lookup_symbol_nonlocal.
1914 (basic_lookup_symbol_nonlocal): Rename to...
1915 (language_defn::lookup_symbol_nonlocal): ...this, and update
1916 header comment. Remove language_defn parameter, and replace with
1917 uses of `this'.
1918 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
1919
ebe2334e
AB
19202020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1921
1922 * ada-lang.c (ada_language_data): Delete la_value_print_inner
1923 initializer.
1924 (ada_language::value_print_inner): New member function.
1925 * c-lang.c (c_language_data): Delete la_value_print_inner
1926 initializer.
1927 (cplus_language_data): Likewise.
1928 (asm_language_data): Likewise.
1929 (minimal_language_data): Likewise.
1930 * d-lang.c (d_language_data): Likewise.
1931 (d_language::value_print_inner): New member function.
1932 * f-lang.c (f_language_data): Delete la_value_print_inner
1933 initializer.
1934 (f_language::value_print_inner): New member function.
1935 * f-lang.h (f_value_print_innner): Rename to...
1936 (f_value_print_inner): ...this (note spelling of 'inner').
1937 * f-valprint.c (f_value_print_innner): Rename to...
1938 (f_value_print_inner): ...this (note spelling of 'inner').
1939 * go-lang.c (go_language_data): Delete la_value_print_inner
1940 initializer.
1941 (go_language::value_print_inner): New member function.
1942 * language.c (language_defn::value_print_inner): Define new member
1943 function.
1944 (unk_lang_value_print_inner): Delete.
1945 (unknown_language_data): Delete la_value_print_inner initializer.
1946 (unknown_language::value_print_inner): New member function.
1947 (auto_language_data): Delete la_value_print_inner initializer.
1948 (auto_language::value_print_inner): New member function.
1949 * language.h (language_data): Delete la_value_print_inner field.
1950 (language_defn::value_print_inner): Delcare new member function.
1951 * m2-lang.c (m2_language_data): Delete la_value_print_inner
1952 initializer.
1953 (m2_language::value_print_inner): New member function.
1954 * objc-lang.c (objc_language_data): Delete la_value_print_inner
1955 initializer.
1956 * opencl-lang.c (opencl_language_data): Likewise.
1957 * p-lang.c (pascal_language_data): Likewise.
1958 (pascal_language::value_print_inner): New member function.
1959 * rust-lang.c (rust_language_data): Delete la_value_print_inner
1960 initializer.
1961 (rust_language::value_print_inner): New member function.
1962 * valprint.c (do_val_print): Update call to value_print_inner.
1963
a1d1fa3e
AB
19642020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1965
1966 * ada-lang.c (ada_language_data): Delete la_value_print
1967 initializer.
1968 (ada_language::value_print): New member function.
1969 * c-lang.c (c_language_data): Delete la_value_print initializer.
1970 (cplus_language_data): Likewise.
1971 (asm_language_data): Likewise.
1972 (minimal_language_data): Likewise.
1973 * d-lang.c (d_language_data): Likewise.
1974 * f-lang.c (f_language_data): Likewise.
1975 * go-lang.c (go_language_data): Likewise.
1976 * language.c (unk_lang_value_print): Delete.
1977 (language_defn::value_print): Define new member function.
1978 (unknown_language_data): Delete la_value_print initializer.
1979 (unknown_language::value_print): New member function.
1980 (auto_language_data): Delete la_value_print initializer.
1981 (auto_language::value_print): New member function.
1982 * language.h (language_data): Delete la_value_print field.
1983 (language_defn::value_print): Declare new member function.
1984 (LA_VALUE_PRINT): Update call to value_print.
1985 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
1986 * objc-lang.c (objc_language_data): Likewise.
1987 * opencl-lang.c (opencl_language_data): Likewise.
1988 * p-lang.c (pascal_language_data): Likewise.
1989 (pascal_language::value_print): New member function.
1990 * rust-lang.c (rust_language_data): Delete la_value_print
1991 initializer.
1992
f16a9f57
AB
19932020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1994
1995 * ada-lang.c (ada_watch_location_expression): Rename to
1996 ada_language::watch_location_expression.
1997 (ada_language_data): Delete la_watch_location_expression
1998 initializer.
1999 (ada_language::watch_location_expression): New member function,
2000 implementation from ada_watch_location_expression.
2001 * breakpoint.c (watch_command_1): Update call to
2002 watch_location_expression.
2003 * c-lang.c (c_watch_location_expression): Rename to
2004 language_defn::watch_location_expression.
2005 (c_language_data): Delete la_watch_location_expression
2006 initializer.
2007 (cplus_language_data): Likewise.
2008 (asm_language_data): Likewise.
2009 (minimal_language_data): Likewise.
2010 * c-lang.h (c_watch_location_expression): Delete declaration.
2011 * d-lang.c (d_language_data): Delete la_watch_location_expression
2012 initializer.
2013 * f-lang.c (f_language_data): Likewise.
2014 * go-lang.c (go_language_data): Likewise.
2015 * language.c (language_defn::watch_location_expression): Member
2016 function implementation from c_watch_location_expression.
2017 (unknown_language_data): Delete la_watch_location_expression
2018 initializer.
2019 (auto_language_data): Likewise.
2020 * language.h (language_data): Delete la_watch_location_expression
2021 field.
2022 (language_defn::watch_location_expression): Declare new member
2023 function.
2024 * m2-lang.c (m2_language_data): Delete
2025 la_watch_location_expression initializer.
2026 * objc-lang.c (objc_language_data): Likewise.
2027 * opencl-lang.c (opencl_language_data): Likewise.
2028 * p-lang.c (pascal_language_data): Likewise.
2029 * rust-lang.c (rust_watch_location_expression): Rename to
2030 rust_language::watch_location_expression.
2031 (rust_language_data): Delete la_watch_location_expression
2032 initializer.
2033 (rust_language::watch_location_expression): New member function,
2034 implementation from rust_watch_location_expression.
2035
7e56227d
AB
20362020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2037
2038 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
2039 ada_language::collect_symbol_completion_matches.
2040 (ada_language_data): Delete la_collect_symbol_completion_matches
2041 initializer.
2042 (ada_language::collect_symbol_completion_matches): New member
2043 function, implementation from
2044 ada_collect_symbol_completion_matches.
2045 * c-lang.c (c_language_data): Delete
2046 la_collect_symbol_completion_matches initializer.
2047 (cplus_language_data): Likewise.
2048 (asm_language_data): Likewise.
2049 (minimal_language_data): Likewise.
2050 * d-lang.c (d_language_data): Likewise.
2051 * f-lang.c (f_collect_symbol_completion_matches): Rename to
2052 f_language::collect_symbol_completion_matches.
2053 (f_language_data): Delete la_collect_symbol_completion_matches
2054 initializer.
2055 (f_language::collect_symbol_completion_matches) New member
2056 function, implementation from f_collect_symbol_completion_matches.
2057 * go-lang.c (go_language_data): Delete
2058 la_collect_symbol_completion_matches initializer.
2059 * language.c (unknown_language_data): Likewise.
2060 (auto_language_data): Likewise.
2061 * language.h (language_data): Delete
2062 la_collect_symbol_completion_matches field.
2063 (language_defn::collect_symbol_completion_matches): New member
2064 function.
2065 * m2-lang.c (m2_language_data): Delete
2066 la_collect_symbol_completion_matches initializer.
2067 * objc-lang.c (objc_language_data): Likewise.
2068 * opencl-lang.c (opencl_language_data): Likewise.
2069 * p-lang.c (pascal_language_data): Likewise.
2070 * rust-lang.c (rust_language_data): Likewise.
2071 * symtab.c (default_collect_symbol_completion_matches): Delete.
2072 (collect_symbol_completion_matches): Update call to
2073 collect_symbol_completion_matches.
2074 (collect_symbol_completion_matches_type): Likewise.
2075 * symtab.h (default_collect_symbol_completion_matches): Delete
2076 declaration.
2077
53fc67f8
AB
20782020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2079
2080 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
2081 (ada_language_data): Delete la_word_break_characters initializer.
2082 (ada_language::word_break_characters): New member function.
2083 * c-lang.c (c_language_data): Delete la_word_break_characters
2084 initializer.
2085 (cplus_language_data): Likewise.
2086 (asm_language_data): Likewise.
2087 (minimal_language_data): Likewise.
2088 * completer.c: Update global comment.
2089 (advance_to_expression_complete_word_point): Update call to
2090 word_break_characters.
2091 (complete_files_symbols): Likewise.
2092 (complete_line_internal_1): Likewise.
2093 (default_completer_handle_brkchars): Likewise.
2094 (skip_quoted_chars): Likewise.
2095 * d-lang.c (d_language_data): Delete la_word_break_characters
2096 initializer.
2097 * f-lang.c (f_word_break_characters): Delete.
2098 (f_language_data): Delete la_word_break_characters initializer.
2099 (f_language::word_break_characters): New member function.
2100 * go-lang.c (go_language_data): Delete la_word_break_characters
2101 initializer.
2102 * language.c (unknown_language_data): Likewise.
2103 (auto_language_data): Likewise.
2104 * language.h (default_word_break_characters): Move declaration to
2105 earlier in the file.
2106 (language_data): Delete la_word_break_characters field.
2107 (language_defn::word_break_characters): New member function.
2108 * m2-lang.c (m2_language_data): Delete la_word_break_characters
2109 initializer.
2110 * objc-lang.c (objc_language_data): Likewise.
2111 * opencl-lang.c (opencl_language_data): Likewise.
2112 * p-lang.c (pascal_language_data): Likewise.
2113 * rust-lang.c (rust_language_data): Likewise.
2114
c9debfb9
AB
21152020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2116
2117 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
2118 (ada_language_data): Delete la_get_symbol_name_matcher
2119 initializer.
2120 (language_defn::get_symbol_name_matcher_inner): New member
2121 function.
2122 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
2123 initializer.
2124 (cplus_language_data): Likewise.
2125 (cplus_language::get_symbol_name_matcher_inner): New member
2126 function.
2127 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
2128 (minimal_language_data): Likewise.
2129 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
2130 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
2131 initializer.
2132 * dictionary.c (iter_match_first_hashed): Update call to
2133 get_symbol_name_matcher.
2134 (iter_match_next_hashed): Likewise.
2135 (iter_match_next_linear): Likewise.
2136 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
2137 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
2138 initializer.
2139 (f_language::get_symbol_name_matcher_inner): New member function.
2140 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
2141 initializer.
2142 * language.c (default_symbol_name_matcher): Update header comment,
2143 make static.
2144 (language_defn::get_symbol_name_matcher): New definition.
2145 (language_defn::get_symbol_name_matcher_inner): Likewise.
2146 (get_symbol_name_matcher): Delete.
2147 (unknown_language_data): Delete la_get_symbol_name_matcher
2148 initializer.
2149 (auto_language_data): Likewise.
2150 * language.h (language_data): Delete la_get_symbol_name_matcher
2151 field.
2152 (language_defn::get_symbol_name_matcher): New member function.
2153 (language_defn::get_symbol_name_matcher_inner): Likewise.
2154 (default_symbol_name_matcher): Delete declaration.
2155 * linespec.c (find_methods): Update call to
2156 get_symbol_name_matcher.
2157 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
2158 initializer.
2159 * minsyms.c (lookup_minimal_symbol): Update call to
2160 get_symbol_name_matcher.
2161 (iterate_over_minimal_symbols): Likewise.
2162 * objc-lang.c (objc_language_data): Delete
2163 la_get_symbol_name_matcher initializer.
2164 * opencl-lang.c (opencl_language_data): Likewise.
2165 * p-lang.c (pascal_language_data): Likewise.
2166 * psymtab.c (psymbol_name_matches): Update call to
2167 get_symbol_name_matcher.
2168 * rust-lang.c (rust_language_data): Delete
2169 la_get_symbol_name_matcher initializer.
2170 * symtab.c (symbol_matches_search_name): Update call to
2171 get_symbol_name_matcher.
2172 (compare_symbol_name): Likewise.
2173
9a49ad8c
AB
21742020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2175
2176 * ada-lang.c (ada_language_data): Delete la_compute_program
2177 initializer.
2178 * c-lang.c (c_language_data): Likewise.
2179 (c_language::compute_program): New member function.
2180 (cplus_language_data): Delete la_compute_program initializer.
2181 (cplus_language::compute_program): New member function.
2182 (asm_language_data): Delete la_compute_program initializer.
2183 (minimal_language_data): Likewise.
2184 * c-lang.h (c_compute_program): Update comment.
2185 (cplus_compute_program): Likewise.
2186 * compile/compile-c-support.c (c_compute_program): Likewise.
2187 (cplus_compute_program): Likewise.
2188 * compile/compile.c (compile_to_object): Update call to
2189 la_compute_program.
2190 * d-lang.c (d_language_data): Delete la_compute_program
2191 initializer.
2192 * f-lang.c (f_language_data): Likewise.
2193 * go-lang.c (go_language_data): Likewise.
2194 * language.c (unknown_language_data): Likewise.
2195 (auto_language_data): Likewise.
2196 * language.h (language_data): Delete la_compute_program field.
2197 (language_defn::compute_program): New member function.
2198 * m2-lang.c (m2_language_data): Delete la_compute_program
2199 initializer.
2200 * objc-lang.c (objc_language_data): Likewise.
2201 * opencl-lang.c (opencl_language_data): Likewise.
2202 * p-lang.c (pascal_language_data): Likewise.
2203 * rust-lang.c (rust_language_data): Likewise.
2204
eff93b4d
AB
22052020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2206
2207 * ada-lang.c (ada_language_data) Delete
2208 la_class_name_from_physname initializer.
2209 * c-lang.c (c_language_data): Likewise.
2210 (cplus_language_data): Likewise.
2211 (cplus_language::class_name_from_physname): New member function.
2212 (asm_language_data): Delete la_class_name_from_physname
2213 initializer.
2214 (minimal_language_data): Likewise.
2215 * d-lang.c (d_language_data): Likewise.
2216 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
2217 method on language_defn class.
2218 (guess_full_die_structure_name): Likewise.
2219 * f-lang.c (f_language_data): Delete la_class_name_from_physname
2220 initializer.
2221 * go-lang.c (go_language_data): Likewise.
2222 * language.c (language_class_name_from_physname): Delete.
2223 (unk_lang_class_name): Delete.
2224 (unknown_language_data): Delete la_class_name_from_physname
2225 initializer.
2226 (auto_language_data): Likewise.
2227 * language.h (language_data): Delete la_class_name_from_physname
2228 field.
2229 (language_defn::class_name_from_physname): New function.
2230 (language_class_name_from_physname): Delete declaration.
2231 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
2232 initializer.
2233 * objc-lang.c (objc_language_data): Likewise.
2234 * opencl-lang.c (opencl_language_data): Likewise.
2235 * p-lang.c (pascal_language_data): Likewise.
2236 * rust-lang.c (rust_language_data): Likewise.
2237
de543742
TT
22382020-06-16 Tom Tromey <tom@tromey.com>
2239
2240 * tui/tui-data.h (STATUS_NAME): New macro.
2241 * tui/tui-layout.c (tui_remove_some_windows)
2242 (initialize_known_windows, tui_register_window)
2243 (tui_layout_split::remove_windows, initialize_layouts)
2244 (tui_new_layout_command): Don't use hard-coded window names.
2245
a350efd4
TT
22462020-06-16 Tom Tromey <tom@tromey.com>
2247
2248 PR tui/25348:
2249 * tui/tui.c (tui_ensure_readline_initialized): Rename from
2250 tui_initialize_readline. Only run once. Call rl_initialize.
2251 * tui/tui.h (tui_ensure_readline_initialized): Rename from
2252 tui_initialize_readline.
2253 * tui/tui-io.c (tui_setup_io): Call
2254 tui_ensure_readline_initialized.
2255 * tui/tui-interp.c (tui_interp::init): Update.
2256
39ec0490
TT
22572020-06-16 Tom Tromey <tom@tromey.com>
2258
2259 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
2260 Also preserve the status window.
2261
d2d1ea20
TT
22622020-06-16 Tom Tromey <tom@tromey.com>
2263
2264 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
2265 where m_window==nullptr.
2266
66920317
TT
22672020-06-15 Tom Tromey <tromey@adacore.com>
2268
2269 * windows-nat.c (windows_nat::handle_output_debug_string):
2270 Update.
2271 (windows_nat::handle_ms_vc_exception): Update.
2272 * target.h (target_read_string): Change API.
2273 * target.c (target_read_string): Change API.
2274 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
2275 Update.
2276 * solib-frv.c (frv_current_sos): Update.
2277 * solib-dsbt.c (dsbt_current_sos): Update.
2278 * solib-darwin.c (darwin_current_sos): Update.
2279 * linux-thread-db.c (inferior_has_bug): Update.
2280 * expprint.c (print_subexp_standard): Update.
2281 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
2282 (ada_exception_message_1): Update.
2283
a5d871dd
TT
22842020-06-15 Tom Tromey <tromey@adacore.com>
2285
2286 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
2287
670e35fa
TT
22882020-06-15 Tom Tromey <tromey@adacore.com>
2289
2290 * valprint.c (read_string): Update comment.
2291 * target.c (MIN): Remove.
2292 (target_read_string): Rewrite.
2293
f5272a3b
TT
22942020-06-15 Tom Tromey <tromey@adacore.com>
2295
2296 * corefile.c (read_memory_string): Remove.
2297 * ada-valprint.c (ada_value_print_ptr): Update.
2298 * ada-lang.h (ada_tag_name): Change return type.
2299 * ada-lang.c (type_from_tag): Update.
2300 (ada_tag_name_from_tsd): Change return type. Use
2301 target_read_string.
2302 (ada_tag_name): Likewise.
2303 * gdbcore.h (read_memory_string): Don't declare.
2304
2c074f49
HD
23052020-06-14 Hannes Domani <ssbssa@yahoo.de>
2306
2307 * symtab.c (rbreak_command): Ignore Windows drive colon.
2308
6a17d503
SM
23092020-06-12 Simon Marchi <simon.marchi@efficios.com>
2310
2311 * NEWS: Mention removed GDBserver host support.
2312
453c733f
NC
23132020-06-12 Nelson Chu <nelson.chu@sifive.com>
2314
2315 * features/riscv/rebuild-csr-xml.sh: Updated.
2316
2b4e6a3f
TT
23172020-06-11 Tom Tromey <tom@tromey.com>
2318
2319 PR gdb/18318:
2320 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
2321
4412332f
JG
23222020-06-09 Jonny Grant <jg@jguk.org>
23232020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
2324
2325 * main.c (captured_main_1): Don't print new line after help.
2326 (print_gdb_help): add mailing list and IRC channel information
2327 to --help. Add new lines between items in the footer. Remove
2328 quotes around bug url.
2329
2f33032a
KS
23302020-06-11 Keith Seitz <keiths@redhat.com>
2331
2332 PR gdb/21356
2333 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
2334 Resolve typedefs for type length calculations.
2335
7ab96794
TV
23362020-06-10 Tom de Vries <tdevries@suse.de>
2337
2338 PR ada/24713
2339 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
2340 (write_psymbols): Enable .gdb_index for ada.
2341 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
2342 ada.
2343
e5f3ece2
TV
23442020-06-10 Tom de Vries <tdevries@suse.de>
2345
2346 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
2347 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
2348 namei" instead of "const char *name" argument.
2349 (dw2_map_matching_symbols): Use "offset_type namei" variant of
2350 dw2_symtab_iter_init.
2351
940da03e
SM
23522020-06-08 Simon Marchi <simon.marchi@efficios.com>
2353
2354 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
2355 to use type::field and field::type instead.
2356
b6cdac4b
SM
23572020-06-08 Simon Marchi <simon.marchi@efficios.com>
2358
2359 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
2360 to use field::type instead.
2361
5d14b6e5
SM
23622020-06-08 Simon Marchi <simon.marchi@efficios.com>
2363
2364 * gdbtypes.h (struct field) <type, set_type>: New methods.
2365 Rename `type` field to...
2366 <m_type>: ... this. Change references throughout to use type or
2367 set_type methods.
2368 (FIELD_TYPE): Use field::type. Change call sites that modify
2369 the field's type to use field::set_type instead.
2370
3d967001
SM
23712020-06-08 Simon Marchi <simon.marchi@efficios.com>
2372
2373 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
2374 to use type::index_type instead.
2375
262abc0d
SM
23762020-06-08 Simon Marchi <simon.marchi@efficios.com>
2377
2378 * gdbtypes.h (struct type) <index_type, set_index_type>: New
2379 methods.
2380 (TYPE_INDEX_TYPE): Use type::index_type.
2381 * gdbtypes.c (create_array_type_with_stride): Likewise.
2382
82836c92
TT
23832020-06-07 Tom Tromey <tom@tromey.com>
2384
2385 * valprint.c (generic_val_print_float): Remove "embedded_offset"
2386 parameter.
2387 (generic_value_print): Update.
2388
940dace9
AB
23892020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2390
2391 Revert commit 982a38f60b0.
2392 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
2393
982a38f6
AB
23942020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2395
2396 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
2397 avoid use after free.
2398
82f06518
TV
23992020-06-05 Tom de Vries <tdevries@suse.de>
2400
2401 * NEWS: Fix typos.
2402
f8c41851
SM
24032020-06-04 Simon Marchi <simon.marchi@efficios.com>
2404
2405 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
2406 the per_bfd object.
2407 (dwarf2_read_debug_names): Likewise.
2408 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
2409 object when re-using a per_bfd object with an index.
2410
f9b5d5ea
TV
24112020-06-03 Tom de Vries <tdevries@suse.de>
2412
2413 PR symtab/26046
2414 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
2415 children for C++.
2416 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
2417 DW_TAG_subprogram.
2418
f6eee2d0
AB
24192020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2420
2421 * ada-lang.c (ada_language_data): Delete skip_trampoline
2422 initializer.
2423 * c-lang.c (c_language_data): Likewise.
2424 (cplus_language_data): Likewise.
2425 (cplus_language::skip_trampoline): New member function.
2426 (asm_language_data): Delete skip_trampoline initializer.
2427 (minimal_language_data): Likewise.
2428 * d-lang.c (d_language_data): Likewise.
2429 * f-lang.c (f_language_data): Likewise.
2430 * go-lang.c (go_language_data): Likewise.
2431 * language.c (unk_lang_trampoline): Delete function.
2432 (skip_language_trampoline): Update.
2433 (unknown_language_data): Delete skip_trampoline initializer.
2434 (auto_language_data): Likewise.
2435 * language.h (language_data): Delete skip_trampoline field.
2436 (language_defn::skip_trampoline): New function.
2437 * m2-lang.c (m2_language_data): Delete skip_trampoline
2438 initializer.
2439 * objc-lang.c (objc_skip_trampoline): Delete function, move
2440 implementation to objc_language::skip_trampoline.
2441 (objc_language_data): Delete skip_trampoline initializer.
2442 (objc_language::skip_trampoline): New member function with
2443 implementation from objc_skip_trampoline.
2444 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
2445 initializer.
2446 * p-lang.c (pascal_language_data): Likewise.
2447 * rust-lang.c (rust_language_data): Likewise.
2448
0a50df5d
AB
24492020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2450
2451 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
2452 (ada_language::demangle): New member function.
2453 * c-lang.c (c_language_data): Delete la_demangle initializer.
2454 (cplus_language_data): Delete la_demangle initializer.
2455 (cplus_language::demangle): New member function.
2456 (asm_language_data): Delete la_demangle initializer.
2457 (minimal_language_data): Delete la_demangle initializer.
2458 * d-lang.c (d_language_data): Delete la_demangle initializer.
2459 (d_language::demangle): New member function.
2460 * f-lang.c (f_language_data): Delete la_demangle initializer.
2461 (f_language::demangle): New member function.
2462 * go-lang.c (go_language_data): Delete la_demangle initializer.
2463 (go_language::demangle): New member function.
2464 * language.c (language_demangle): Update.
2465 (unk_lang_demangle): Delete.
2466 (unknown_language_data): Delete la_demangle initializer.
2467 (unknown_language::demangle): New member function.
2468 (auto_language_data): Delete la_demangle initializer.
2469 (auto_language::demangle): New member function.
2470 * language.h (language_data): Delete la_demangle field.
2471 (language_defn::demangle): New function.
2472 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
2473 * objc-lang.c (objc_language_data): Delete la_demangle
2474 initializer.
2475 (objc_language::demangle): New member function.
2476 * opencl-lang.c (opencl_language_data): Delete la_demangle
2477 initializer.
2478 * p-lang.c (pascal_language_data): Likewise.
2479 * rust-lang.c (rust_language_data): Likewise.
2480 (rust_language::demangle): New member function.
2481
fbfb0a46
AB
24822020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2483
2484 * ada-lang.c (ada_language_data): Delete la_print_type
2485 initializer.
2486 (ada_language::print_type): New member function.
2487 * c-lang.c (c_language_data): Delete la_print_type initializer.
2488 (c_language::print_type): New member function.
2489 (cplus_language_data): Delete la_print_type initializer.
2490 (cplus_language::print_type): New member function.
2491 (asm_language_data): Delete la_print_type initializer.
2492 (asm_language::print_type): New member function.
2493 (minimal_language_data): Delete la_print_type initializer.
2494 (minimal_language::print_type): New member function.
2495 * d-lang.c (d_language_data): Delete la_print_type initializer.
2496 (d_language::print_type): New member function.
2497 * f-lang.c (f_language_data): Delete la_print_type initializer.
2498 (f_language::print_type): New member function.
2499 * go-lang.c (go_language_data): Delete la_print_type initializer.
2500 (go_language::print_type): New member function.
2501 * language.c (unk_lang_print_type): Delete.
2502 (unknown_language_data): Delete la_print_type initializer.
2503 (unknown_language::print_type): New member function.
2504 (auto_language_data): Delete la_print_type initializer.
2505 (auto_language::print_type): New member function.
2506 * language.h (language_data): Delete la_print_type field.
2507 (language_defn::print_type): New function.
2508 (LA_PRINT_TYPE): Update.
2509 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
2510 (m2_language::print_type): New member function.
2511 * objc-lang.c (objc_language_data): Delete la_print_type
2512 initializer.
2513 (objc_language::print_type): New member function.
2514 * opencl-lang.c (opencl_print_type): Delete, implementation moved
2515 to opencl_language::print_type.
2516 (opencl_language_data): Delete la_print_type initializer.
2517 (opencl_language::print_type): New member function, implementation
2518 from opencl_print_type.
2519 * p-lang.c (pascal_language_data): Delete la_print_type
2520 initializer.
2521 (pascal_language::print_type): New member function.
2522 * rust-lang.c (rust_print_type): Delete, implementation moved to
2523 rust_language::print_type.
2524 (rust_language_data): Delete la_print_type initializer.
2525 (rust_language::print_type): New member function, implementation
2526 from rust_print_type.
2527
6f827019
AB
25282020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2529
2530 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
2531 implementation moves to...
2532 (ada_language::sniff_from_mangled_name): ...here. Update return
2533 type.
2534 (ada_language_data): Delete la_sniff_from_mangled_name
2535 initializer.
2536 * c-lang.c (c_language_data): Likewise.
2537 (cplus_language_data): Likewise.
2538 (cplus_language::sniff_from_mangled_name): New member function,
2539 implementation taken from gdb_sniff_from_mangled_name.
2540 (asm_language_data): Delete la_sniff_from_mangled_name
2541 initializer.
2542 (minimal_language_data): Likewise.
2543 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
2544 implementation moves to cplus_language::sniff_from_mangled_name.
2545 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
2546 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
2547 moves to...
2548 (d_language::sniff_from_mangled_name): ...here.
2549 (d_language_data): Delete la_sniff_from_mangled_name initializer.
2550 * f-lang.c (f_language_data): Likewise.
2551 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
2552 moves to...
2553 (go_language::sniff_from_mangled_name): ...here.
2554 (go_language_data): Delete la_sniff_from_mangled_name initializer.
2555 * language.c (language_sniff_from_mangled_name): Delete.
2556 (unknown_language_data): Delete la_sniff_from_mangled_name
2557 initializer.
2558 (auto_language_data): Likewise.
2559 * language.h (language_data): Delete la_sniff_from_mangled_name
2560 field.
2561 (language_defn::sniff_from_mangled_name): New function.
2562 (language_sniff_from_mangled_name): Delete declaration.
2563 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
2564 field.
2565 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
2566 implementation moves to...
2567 (objc_language::sniff_from_mangled_name): ...here.
2568 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
2569 * opencl-lang.c (opencl_language_data): Likewise.
2570 * p-lang.c (pascal_language_data): Likewise.
2571 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
2572 implementation moves to...
2573 (rust_language::sniff_from_mangled_name): ...here.
2574 (rust_language_data): Delete la_sniff_from_mangled_name
2575 initializer.
2576 * symtab.c (symbol_find_demangled_name): Call
2577 sniff_from_mangled_name member function.
2578
fb8006fd
AB
25792020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2580
2581 * ada-lang.c (ada_language_data): Delete la_search_name_hash
2582 initializer.
2583 * c-lang.c (c_language_data): Likewise.
2584 (cplus_language_data): Likewise.
2585 (cplus_language::search_name_hash): New member function.
2586 (asm_language_data): Delete la_search_name_hash initializer.
2587 (minimal_language_data): Likewise.
2588 * d-lang.c (d_language_data): Likewise.
2589 * dictionary.c (default_search_name_hash): Rename to...
2590 (language_defn::search_name_hash): ...this.
2591 * f-lang.c (f_language_data): Likewise.
2592 (f_language::search_name_hash): New member function.
2593 * go-lang.c (go_language_data): Delete la_search_name_hash
2594 initializer.
2595 * language.c (unknown_language_data): Likewise.
2596 (auto_language_data): Likewise.
2597 * language.h (struct language_data): Delete la_search_name_hash
2598 field.
2599 (language_defn::search_name_hash): Declare new member function.
2600 (default_search_name_hash): Delete declaration.
2601 * m2-lang.c (m2_language_data): Delete la_search_name_hash
2602 initializer.
2603 * objc-lang.c (objc_language_data): Likewise.
2604 * opencl-lang.c (opencl_language_data): Likewise.
2605 * p-lang.c (pascal_language_data): Likewise.
2606 * rust-lang.c (rust_language_data): Likewise.
2607 * symtab.c (search_name_hash): Update call.
2608
8e25bafe
AB
26092020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2610
2611 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
2612 initializer.
2613 * c-lang.c (class compile_instance): Declare.
2614 (c_language_data): Delete la_get_compile_instance initializer.
2615 (c_language::get_compile_instance): New member function.
2616 (cplus_language_data): Delete la_get_compile_instance initializer.
2617 (cplus_language::get_compile_instance): New member function.
2618 (asm_language_data): Delete la_get_compile_instance initializer.
2619 (minimal_language_data): Likewise.
2620 * c-lang.h (c_get_compile_context): Update comment.
2621 (cplus_get_compile_context): Update comment.
2622 * compile/compile.c (compile_to_object): Update calls, don't rely
2623 on function pointer being NULL.
2624 * d-lang.c (d_language_data): Delete la_get_compile_instance
2625 initializer.
2626 * f-lang.c (f_language_data): Likewise.
2627 * go-lang.c (go_language_data): Likewise.
2628 * language.c (unknown_language_data): Likewise.
2629 (auto_language_data): Likewise.
2630 * language.h (language_data): Delete la_get_compile_instance field.
2631 (language_defn::get_compile_instance): New member function.
2632 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
2633 initializer.
2634 * objc-lang.c (objc_language_data): Likewise.
2635 * opencl-lang.c (opencl_language_data): Likewise.
2636 * p-lang.c (pascal_language_data): Likewise.
2637 * rust-lang.c (rust_language_data): Likewise.
2638
4009ee92
AB
26392020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2640
2641 * ada-lang.c (ada_add_all_symbols): Update comment.
2642 (ada_iterate_over_symbols): Delete, move implementation to...
2643 (ada_language::iterate_over_symbols): ...here, a new member
2644 function, rewrite to use range based for loop.
2645 (ada_language_data): Delete la_iterate_over_symbols initializer.
2646 * c-lang.c (c_language_data): Likewise.
2647 (cplus_language_data): Likewise.
2648 (asm_language_data): Likewise.
2649 (minimal_language_data): Likewise.
2650 * d-lang.c (d_language_data): Likewise.
2651 * f-lang.c (f_language_data): Likewise.
2652 * go-lang.c (go_language_data): Likewise.
2653 * language.c (unknown_language_data): Likewise.
2654 (auto_language_data): Likewise.
2655 * language.h (language_data): Delete la_iterate_over_symbols field.
2656 (language_defn::iterate_over_symbols): New member function.
2657 (LA_ITERATE_OVER_SYMBOLS): Update.
2658 * linespec.c (iterate_over_all_matching_symtabs): Update.
2659 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
2660 initializer.
2661 * objc-lang.c (objc_language_data): Likewise.
2662 * opencl-lang.c (opencl_language_data): Likewise.
2663 * p-lang.c (pascal_language_data): Likewise.
2664 * rust-lang.c (rust_language_data): Likewise.
2665
54f4ca46
AB
26662020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2667
2668 * ada-lang.c (ada_language_data): Delete
2669 la_lookup_transparent_type initializer.
2670 * c-lang.c (c_language_data): Likewise.
2671 (cplus_language_data): Likewise.
2672 (cplus_language::lookup_transparent_type): New member function.
2673 (asm_language_data): Delete la_lookup_transparent_type
2674 initializer.
2675 (minimal_language_data): Likewise.
2676 * d-lang.c (d_language_data): Likewise.
2677 * f-lang.c (f_language_data): Likewise.
2678 * go-lang.c (go_language_data): Likewise.
2679 * language.c (unknown_language_data): Likewise.
2680 (auto_language_data): Likewise.
2681 * language.h (struct language_data): Delete
2682 la_lookup_transparent_type field.
2683 (language_defn::lookup_transparent_type): New member function.
2684 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
2685 initializer.
2686 * objc-lang.c (objc_language_data): Likewise.
2687 * opencl-lang.c (opencl_language_data): Likewise.
2688 * p-lang.c (pascal_language_data): Likewise.
2689 * rust-lang.c (rust_language_data): Likewise.
2690 * symtab.c (symbol_matches_domain): Update call.
2691
1fb314aa
AB
26922020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2693
2694 * ada-lang.c (ada_language_arch_info): Delete function, move
2695 implementation to...
2696 (ada_language::language_arch_info): ...here, a new member
2697 function.
2698 (ada_language_data): Delete la_language_arch_info.
2699 * c-lang.c (c_language_data): Likewise.
2700 (c_language::language_arch_info): New member function.
2701 (cplus_language_arch_info): Delete function, move
2702 implementation to...
2703 (cplus_language::language_arch_info): ...here, a new member
2704 function.
2705 (cplus_language_data): Delete la_language_arch_info.
2706 (asm_language_data): Likewise.
2707 (asm_language::language_arch_info): New member function.
2708 (minimal_language_data): Delete la_language_arch_info.
2709 (minimal_language::language_arch_info): New member function.
2710 * d-lang.c (d_language_arch_info): Delete function, move
2711 implementation to...
2712 (d_language::language_arch_info): ...here, a new member
2713 function.
2714 (d_language_data): Delete la_language_arch_info.
2715 * f-lang.c (f_language_arch_info): Delete function, move
2716 implementation to...
2717 (f_language::language_arch_info): ...here, a new member
2718 function.
2719 (f_language_data): Delete la_language_arch_info.
2720 * go-lang.c (go_language_arch_info): Delete function, move
2721 implementation to...
2722 (go_language::language_arch_info): ...here, a new member
2723 function.
2724 (go_language_data): Delete la_language_arch_info.
2725 * language.c (unknown_language_data): Likewise.
2726 (unknown_language::language_arch_info): New member function.
2727 (auto_language_data): Delete la_language_arch_info.
2728 (auto_language::language_arch_info): New member function.
2729 (language_gdbarch_post_init): Update call to
2730 la_language_arch_info.
2731 * language.h (language_data): Delete la_language_arch_info
2732 function pointer.
2733 (language_defn::language_arch_info): New function.
2734 * m2-lang.c (m2_language_arch_info): Delete function, move
2735 implementation to...
2736 (m2_language::language_arch_info): ...here, a new member
2737 function.
2738 (m2_language_data): Delete la_language_arch_info.
2739 * objc-lang.c (objc_language_arch_info): Delete function, move
2740 implementation to...
2741 (objc_language::language_arch_info): ...here, a new member
2742 function.
2743 (objc_language_data): Delete la_language_arch_info.
2744 * opencl-lang.c (opencl_language_arch_info): Delete function, move
2745 implementation to...
2746 (opencl_language::language_arch_info): ...here, a new member
2747 function.
2748 (opencl_language_data): Delete la_language_arch_info.
2749 * p-lang.c (pascal_language_arch_info): Delete function, move
2750 implementation to...
2751 (pascal_language::language_arch_info): ...here, a new member
2752 function.
2753 (pascal_language_data): Delete la_language_arch_info.
2754 * rust-lang.c (rust_language_arch_info): Delete function, move
2755 implementation to...
2756 (rust_language::language_arch_info): ...here, a new member
2757 function.
2758 (rust_language_data): Delete la_language_arch_info.
2759
48448202
AB
27602020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2761
2762 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
2763 initializer.
2764 * c-lang.c (c_language_data): Likewise.
2765 (cplus_language_data): Likewise.
2766 (cplus_language::pass_by_reference_info): New method.
2767 (asm_language_data): Delete la_pass_by_reference initializer.
2768 (minimal_language_data): Likewise.
2769 * cp-abi.c (cp_pass_by_reference): Remove use of
2770 default_pass_by_reference.
2771 * d-lang.c (d_language_data): Likewise.
2772 * f-lang.c (f_language_data): Likewise.
2773 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
2774 default_pass_by_reference.
2775 * go-lang.c (go_language_data): Likewise.
2776 * language.c (language_pass_by_reference): Update.
2777 (default_pass_by_reference): Delete.
2778 (unknown_language_data): Delete la_pass_by_reference
2779 initializer.
2780 (auto_language_data): Likewise.
2781 * language.h (struct language_data): Delete la_pass_by_reference
2782 field.
2783 (language_defn::pass_by_reference_info): New member function.
2784 (default_pass_by_reference): Delete declaration.
2785 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
2786 initializer.
2787 * objc-lang.c (objc_language_data): Likewise.
2788 * opencl-lang.c (opencl_language_data): Likewise.
2789 * p-lang.c (pascal_language_data): Likewise.
2790 * rust-lang.c (rust_language_data): Likewise.
2791
15e5fd35
AB
27922020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2793
2794 * ada-lang.c (ada_read_var_value): Delete function, move
2795 implementation to...
2796 (ada_language::read_var_value): ...here.
2797 (ada_language_data): Delete la_read_var_value initializer.
2798 * c-lang.c (c_language_data): Likewise.
2799 (cplus_language_data): Likewise.
2800 (minimal_language_data): Likewise.
2801 * d-lang.c (d_language_data): Likewise.
2802 * f-lang.c (f_language_data): Likewise.
2803 * findvar.c (default_read_var_value): Rename to...
2804 (language_defn::read_var_value): ...this.
2805 * findvar.c (read_var_value): Update header comment, and change to
2806 call member function instead of function pointer.
2807 * go-lang.c (go_language_data): Likewise.
2808 * language.c (unknown_language_data): Delete la_read_var_value
2809 initializer.
2810 (auto_language_data): Likewise.
2811 * language.h (struct language_data): Delete la_read_var_value
2812 field.
2813 (language_defn::read_var_value): New member function.
2814 (default_read_var_value): Delete declaration.
2815 * m2-lang.c (m2_language_data): Delete la_read_var_value
2816 initializer.
2817 * objc-lang.c (objc_language_data): Likewise.
2818 * opencl-lang.c (opencl_language_data): Likewise.
2819 * p-lang.c (pascal_language_data): Likewise.
2820 * rust-lang.c (rust_language_data): Likewise.
2821 * value.h (default_read_var_value): Delete declaration.
2822
5bd40f2a
AB
28232020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2824
2825 * ada-lang.c (ada_print_array_index): Delete function, move
2826 implementation to...
2827 (ada_language::print_array_index): ...here.
2828 (ada_language_data): Delete la_print_array_index initializer.
2829 * c-lang.c (c_language_data): Likewise.
2830 (cplus_language_data): Likewise.
2831 (minimal_language_data): Likewise.
2832 * d-lang.c (d_language_data): Likewise.
2833 * f-lang.c (f_language_data): Likewise.
2834 * go-lang.c (go_language_data): Likewise.
2835 * language.c (default_print_array_index): Delete function, move
2836 implementation to...
2837 (language_defn::print_array_index): ...here.
2838 (unknown_language_data): Delete la_print_array_index initializer.
2839 (auto_language_data): Likewise.
2840 * language.h (struct language_data): Delete la_print_array_index
2841 field.
2842 (language_defn::print_array_index): New member function.
2843 (LA_PRINT_ARRAY_INDEX): Update.
2844 (default_print_array_index): Delete declaration.
2845 * m2-lang.c (m2_language_data): Delete la_print_array_index
2846 initializer.
2847 * objc-lang.c (objc_language_data): Likewise.
2848 * opencl-lang.c (opencl_language_data): Likewise.
2849 * p-lang.c (pascal_language_data): Likewise.
2850 * rust-lang.c (rust_language_data): Likewise.
2851
0874fd07
AB
28522020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2853
2854 * gdb/ada-lang.c (ada_language_defn): Convert to...
2855 (ada_language_data): ...this.
2856 (class ada_language): New class.
2857 (ada_language_defn): New static global.
2858 * gdb/c-lang.c (c_language_defn): Convert to...
2859 (c_language_data): ...this.
2860 (class c_language): New class.
2861 (c_language_defn): New static global.
2862 (cplus_language_defn): Convert to...
2863 (cplus_language_data): ...this.
2864 (class cplus_language): New class.
2865 (cplus_language_defn): New static global.
2866 (asm_language_defn): Convert to...
2867 (asm_language_data): ...this.
2868 (class asm_language): New class.
2869 (asm_language_defn): New static global.
2870 (minimal_language_defn): Convert to...
2871 (minimal_language_data): ...this.
2872 (class minimal_language): New class.
2873 (minimal_language_defn): New static global.
2874 * gdb/d-lang.c (d_language_defn): Convert to...
2875 (d_language_data): ...this.
2876 (class d_language): New class.
2877 (d_language_defn): New static global.
2878 * gdb/f-lang.c (f_language_defn): Convert to...
2879 (f_language_data): ...this.
2880 (class f_language): New class.
2881 (f_language_defn): New static global.
2882 * gdb/go-lang.c (go_language_defn): Convert to...
2883 (go_language_data): ...this.
2884 (class go_language): New class.
2885 (go_language_defn): New static global.
2886 * gdb/language.c (unknown_language_defn): Remove declaration.
2887 (current_language): Initialize to nullptr, real initialization is
2888 moved to _initialize_language.
2889 (languages): Delete global.
2890 (language_defn::languages): Define.
2891 (set_language_command): Use language_defn::languages.
2892 (set_language): Likewise.
2893 (range_error): Likewise.
2894 (language_enum): Likewise.
2895 (language_def): Likewise.
2896 (add_set_language_command): Use language_def::languages for the
2897 language list, and language_def to lookup language pointers.
2898 (skip_language_trampoline): Use language_defn::languages.
2899 (unknown_language_defn): Convert to...
2900 (unknown_language_data): ...this.
2901 (class unknown_language): New class.
2902 (unknown_language_defn): New static global.
2903 (auto_language_defn): Convert to...
2904 (auto_language_data): ...this.
2905 (class auto_language): New class.
2906 (auto_language_defn): New static global.
2907 (language_gdbarch_post_init): Use language_defn::languages.
2908 (_initialize_language): Initialize current_language.
2909 * gdb/language.h (struct language_defn): Rename to...
2910 (struct language_data): ...this.
2911 (struct language_defn): New.
2912 (auto_language_defn): Delete.
2913 (unknown_language_defn): Delete.
2914 (minimal_language_defn): Delete.
2915 (ada_language_defn): Delete.
2916 (asm_language_defn): Delete.
2917 (c_language_defn): Delete.
2918 (cplus_language_defn): Delete.
2919 (d_language_defn): Delete.
2920 (f_language_defn): Delete.
2921 (go_language_defn): Delete.
2922 (m2_language_defn): Delete.
2923 (objc_language_defn): Delete.
2924 (opencl_language_defn): Delete.
2925 (pascal_language_defn): Delete.
2926 (rust_language_defn): Delete.
2927 * gdb/m2-lang.c (m2_language_defn): Convert to...
2928 (m2_language_data): ...this.
2929 (class m2_language): New class.
2930 (m2_language_defn): New static global.
2931 * gdb/objc-lang.c (objc_language_defn): Convert to...
2932 (objc_language_data): ...this.
2933 (class objc_language): New class.
2934 (objc_language_defn): New static global.
2935 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
2936 (opencl_language_data): ...this.
2937 (class opencl_language): New class.
2938 (opencl_language_defn): New static global.
2939 * gdb/p-lang.c (pascal_language_defn): Convert to...
2940 (pascal_language_data): ...this.
2941 (class pascal_language): New class.
2942 (pascal_language_defn): New static global.
2943 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
2944 language pointer, update comment format.
2945 * gdb/rust-lang.c (rust_language_defn): Convert to...
2946 (rust_language_data): ...this.
2947 (class rust_language): New class.
2948 (rust_language_defn): New static global.
2949
1313c56e
AB
29502020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
2951
2952 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
2953 member variable.
2954 <m_stmt_at_address>: New member variable.
2955 (lnp_state_machine::record_line): Don't record some lines, update
2956 tracking of is_stmt at the same address.
2957 (lnp_state_machine::lnp_state_machine): Initialise new member
2958 variables.
2959
b7ed9f3d
ST
29602020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
2961
2962 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
2963 "-include gnu-nat-mig.h".
2964 * gnu-nat-mig.h: New file.
2965 * gnu-nat.c: Include "gnu-nat-mig.h".
2966 (exc_server, msg_reply_server, notify_server,
2967 process_reply_server): Remove declarations.
2968
14a8ad62
ST
29692020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2970
2971 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
2972 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
2973 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
2974 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
2975 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
2976 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
2977 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
2978 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
2979 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
2980 to gnu_nat_target class.
2981 * gnu-nat.c: Likewise.
2982 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
2983 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
2984 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
2985 object.
2986 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
2987 instead of `gnu_target'.
2988
0af5e106
ST
29892020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2990
2991 * i386-gnu-tdep.c: Include "gdbcore.h"
2992 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
2993 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
2994 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
2995 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
2996 i386_gnu_sigcontext_addr): New functions
2997 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
2998 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
2999 tdep.
3000
078f2fc9
ST
30012020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3002
3003 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
3004 before fork_inferior call. Avoid calling it if target_is_pushed returns
3005 true.
3006
53dff92c
ST
30072020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3008
3009 * gnu-nat.h (gnu_target): New variable declaration.
3010 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
3011 gnu_target.
3012 * gnu-nat.c (gnu_target): New variable.
3013 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
3014 add_thread_silent, and add_thread calls.
3015 (gnu_nat_target::create_inferior): Pass gnu_target to
3016 add_thread_silent, thread_change_ptid call.
3017 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
3018 call.
3019
5a8b8627
ST
30202020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3021
3022 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
3023 (gnu_nat_target::find_memory_regions): Remove unused
3024 `old_address' variable.
3025
366f550a
ST
30262020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3027
3028 * gnu-nat.c: Include "gdbarch.h".
3029
f14871bf
ST
30302020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3031
3032 * reply_mig_hack.awk (Error return): Cast function through
3033 void *, to bypass compiler function call check.
3034
c6887cfb
ST
30352020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3036
3037 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
3038 $(srcdir)/reply_mig_hack.awk.
3039
6930bffe
ST
30402020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3041
3042 * gnu-nat.h (gnu_debug_flag): Set type to bool.
3043
112c22ed
JG
30442020-05-30 Jonny Grant <jg@jguk.org>
3045
3046 * configure.ac (ACX_BUGURL): change bug URL to https.
3047
f68f85b5
PA
30482020-05-30 Pedro Alves <palves@redhat.com>
3049
3050 * cp-support.c (replace_typedefs_template): New.
3051 (replace_typedefs_qualified_name): Handle
3052 DEMANGLE_COMPONENT_TEMPLATE.
3053
976ca316
SM
30542020-05-29 Simon Marchi <simon.marchi@efficios.com>
3055
3056 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
3057 dwarf2/index-cache.h, dwarf2/index-write.c,
3058 dwarf2/index-write.h, dwarf2/line-header.c,
3059 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
3060 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
3061 variables and fields from `dwarf2_per_objfile` to just
3062 `per_objfile` throughout.
3063
989ade05
SM
30642020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
3065
3066 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3067 <push_dwarf_reg_entry_value>: Add comment.
3068
c47bae85
KB
30692020-05-28 Kevin Buettner <kevinb@redhat.com>
3070 Keith Seitz <keiths@redhat.com>
3071
3072 * python/python.c (do_start_initialization): Call PyEval_SaveThread
3073 instead of PyEval_ReleaseLock.
3074 (class gdbpy_gil): Move to earlier in file.
3075 (finalize_python): Set gdb_python_initialized.
3076 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
3077 when not initialized.
3078
44486dcf
SM
30792020-05-28 Simon Marchi <simon.marchi@efficios.com>
3080
3081 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3082 <push_dwarf_reg_entry_value>: Remove assert. Override
3083 per_objfile with caller_per_objfile.
3084
f030440d
TV
30852020-05-28 Tom de Vries <tdevries@suse.de>
3086
3087 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
3088 PR gold/15646 workaround to symbol kind "type".
3089
f0fbb768
TT
30902020-05-27 Tom Tromey <tromey@adacore.com>
3091
3092 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
3093
af0b2a3e
TT
30942020-05-27 Tom Tromey <tromey@adacore.com>
3095
3096 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
3097 Use htab_find_with_hash.
3098 <add_abbrev>: Remove "abbrev_number" parameter.
3099 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
3100 "abbrev_number" parameter. Use htab_find_slot_with_hash.
3101 (hash_abbrev): Add comment.
3102 (abbrev_table::lookup_abbrev): Move to header file.
3103 (abbrev_table::read): Update.
3104
7d00ffec
TT
31052020-05-27 Tom Tromey <tromey@adacore.com>
3106
3107 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
3108 method.
3109 <canonical_name>: New member.
3110 <raw_name>: Rename from "name".
3111 (partial_die_info): Initialize canonical_name.
3112 (scan_partial_symbols): Check raw_name.
3113 (partial_die_parent_scope, partial_die_full_name)
3114 (add_partial_symbol, add_partial_subprogram)
3115 (add_partial_enumeration, load_partial_dies): Use "name" method.
3116 (partial_die_info::name): New method.
3117 (partial_die_info::read, guess_partial_die_structure_name)
3118 (partial_die_info::fixup): Update.
3119
697bba18
TT
31202020-05-27 Tom Tromey <tromey@adacore.com>
3121
3122 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
3123 <get_ref_die_offset>: Inline.
3124 <get_ref_die_offset_complaint>: New method.
3125 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
3126 (attribute::get_ref_die_offset_complaint): Rename from
3127 get_ref_die_offset. Just issue complaint.
3128
c17ace43
HD
31292020-05-27 Hannes Domani <ssbssa@yahoo.de>
3130
3131 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
3132
96445f0b
HD
31332020-05-27 Hannes Domani <ssbssa@yahoo.de>
3134
3135 * exec.c (exec_file_attach): Use errno value of first openp failure.
3136
ac637ec3
HD
31372020-05-27 Hannes Domani <ssbssa@yahoo.de>
3138
3139 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
3140 Don't close thread handle.
3141
17ee85fc
TT
31422020-05-27 Tom Tromey <tom@tromey.com>
3143 Simon Marchi <simon.marchi@efficios.com>
3144
3145 * objfiles.h (struct objfile) <partial_symtabs>: Now a
3146 shared_ptr.
3147 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
3148 member.
3149 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
3150 dwarf2_per_bfd_objfile_data_key>: New globals.
3151 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
3152 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
3153 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
3154 shared.
3155 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
3156 short-circuit when sharing.
3157 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
3158 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
3159
39b16f87
SM
31602020-05-27 Simon Marchi <simon.marchi@efficios.com>
3161
3162 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
3163 to...
3164 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
3165 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
3166
fcf23d5b
SM
31672020-05-27 Simon Marchi <simon.marchi@efficios.com>
3168
3169 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
3170 build_name_components, find_name_components_bounds>:
3171 Add per_objfile parameter.
3172 (struct mapped_index) <symbol_name_at>: Likewise.
3173 (struct mapped_debug_names): Remove constructor.
3174 <dwarf2_per_objfile>: Remove field.
3175 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
3176 (mapped_index_base::find_name_components_bounds,
3177 mapped_index_base::build_name_components,
3178 dw2_expand_symtabs_matching_symbol): Likewise.
3179 (class mock_mapped_index) <symbol_name_at>: Likewise.
3180 (check_match): Likewise.
3181 (check_find_bounds_finds): Likewise.
3182 (test_mapped_index_find_name_component_bounds): Update.
3183 (CHECK_MATCH): Update.
3184 (dw2_expand_symtabs_matching): Update.
3185 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
3186 per_objfile parameter.
3187 <find_vec_in_debug_names>: Likewise.
3188 <m_per_objfile>: New field.
3189 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
3190 parameter.
3191 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
3192 (dw2_debug_names_iterator::next): Update.
3193 (dw2_debug_names_lookup_symbol): Update.
3194 (dw2_debug_names_expand_symtabs_for_function): Update.
3195 (dw2_debug_names_map_matching_symbols): Update.
3196 (dw2_debug_names_expand_symtabs_matching): Update.
3197 (dwarf2_read_debug_names): Update.
3198
7188ed02
SM
31992020-05-27 Simon Marchi <simon.marchi@efficios.com>
3200
3201 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
3202 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
3203 move to dwarf2_per_objfile.
3204 <read_in_chain>: Remove.
3205 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
3206 remove_all_cus, age_comp_units>: New methods.
3207 <m_dwarf2_cus>: New member.
3208 (struct dwarf2_per_cu_data) <cu>: Remove.
3209 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
3210 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
3211 moved to methods of dwarf2_per_objfile.
3212 (dwarf2_clear_marks): Remove.
3213 (dwarf2_queue_item::~dwarf2_queue_item): Update.
3214 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
3215 (dwarf2_per_bfd::free_cached_comp_units): Remove.
3216 (dwarf2_per_objfile::remove_all_cus): New.
3217 (class free_cached_comp_units) <~free_cached_comp_units>:
3218 Update.
3219 (load_cu): Update.
3220 (dw2_do_instantiate_symtab): Adjust.
3221 (fill_in_sig_entry_from_dwo_entry): Adjust.
3222 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3223 (cutu_reader::cutu_reader): Likewise.
3224 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
3225 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
3226 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
3227 and dwarf2_per_objfile::age_comp_units.
3228 (load_partial_comp_unit): Update.
3229 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
3230 (process_queue): Likewise.
3231 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
3232 backlink.
3233 (dwarf2_read_addr_index): Likewise.
3234 (follow_die_offset): Likewise.
3235 (dwarf2_fetch_die_loc_sect_off): Likewise.
3236 (dwarf2_fetch_constant_bytes): Likewise.
3237 (dwarf2_fetch_die_type_sect_off): Likewise.
3238 (follow_die_sig_1): Likewise.
3239 (load_full_type_unit): Likewise.
3240 (read_signatured_type): Likewise.
3241 (dwarf2_cu::dwarf2_cu): Don't set cu field.
3242 (dwarf2_cu::~dwarf2_cu): Remove.
3243 (dwarf2_per_objfile::get_cu): New.
3244 (dwarf2_per_objfile::set_cu): New.
3245 (age_cached_comp_units): Rename to...
3246 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
3247 to std::unordered_map.
3248 (free_one_cached_comp_unit): Rename to...
3249 (dwarf2_per_objfile::remove_cu): ... this. Adjust
3250 to std::unordered_map.
3251 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
3252 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
3253 a dwarf2_per_objfile in data.
3254 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
3255 (dwarf2_clear_marks): Remove.
3256
2e671100
SM
32572020-05-27 Simon Marchi <simon.marchi@efficios.com>
3258
3259 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
3260 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
3261 (init_tu_and_read_dwo_dies): Likewise.
3262 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
3263 (cutu_reader::cutu_reader): Likewise.
3264 (load_partial_comp_unit): Likewise.
3265 (process_psymtab_comp_unit): Update.
3266 (build_type_psymtabs_1): Update.
3267 (process_skeletonless_type_unit): Update.
3268 (load_full_comp_unit): Update.
3269 (find_partial_die): Update.
3270 (dwarf2_read_addr_index): Update.
3271 (read_signatured_type): Update.
3272
2e6a9f79
SM
32732020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3274
3275 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
3276 m_header_read_in>: New fields.
3277 <get_header>: New method.
3278 * dwarf2/read.c (per_cu_header_read_in): Remove.
3279 (dwarf2_per_cu_data::get_header): New.
3280 (dwarf2_per_cu_data::addr_size): Update.
3281 (dwarf2_per_cu_data::offset_size): Update.
3282 (dwarf2_per_cu_data::ref_addr_size): Update.
3283
1b555f17
SM
32842020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3285
3286 * dwarf2/read.c (load_cu): Return dwarf2_cu.
3287 (dw2_do_instantiate_symtab): Update.
3288 (queue_and_load_all_dwo_tus): Change parameter from
3289 dwarf2_per_cu_data to dwarf2_cu.
3290 (dwarf2_fetch_die_loc_sect_off): Update.
3291 (dwarf2_fetch_constant_bytes): Update.
3292 (dwarf2_fetch_die_type_sect_off): Update.
3293
8fc0b21d
SM
32942020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3295
3296 * dwarf2/read.c (process_full_comp_unit,
3297 process_full_type_unit): Remove per_cu, per_objfile paramters.
3298 Add dwarf2_cu parameter.
3299 (process_queue): Update.
3300
168c9250
SM
33012020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3302
3303 * dwarf2/read.c (create_cu_from_index_list): Replace
3304 dwarf2_per_objfile parameter with dwarf2_per_bfd.
3305 (create_cus_from_index_list): Likewise.
3306 (create_cus_from_index): Likewise.
3307 (create_signatured_type_table_from_index): Likewise.
3308 (create_cus_from_debug_names_list): Likewise.
3309 (create_cus_from_debug_names): Likewise.
3310 (dwarf2_read_gdb_index): Update.
3311 (dwarf2_read_debug_names): Update.
3312
e286671b
TT
33132020-05-27 Tom Tromey <tom@tromey.com>
3314 Simon Marchi <simon.marchi@efficios.com>
3315
3316 * dwarf2/read.h (struct dwarf2_per_objfile)
3317 <get_type_for_signatured_type, set_type_for_signatured_type>:
3318 New methods.
3319 <m_type_map>: New member.
3320 (struct signatured_type) <type>: Remove.
3321 * dwarf2/read.c
3322 (dwarf2_per_objfile::get_type_for_signatured_type,
3323 dwarf2_per_objfile::set_type_for_signatured_type): New.
3324 (get_signatured_type): Use new methods.
3325
8adb8487
TT
33262020-05-27 Tom Tromey <tom@tromey.com>
3327 Simon Marchi <simon.marchi@efficios.com>
3328
3329 * dwarf2/read.h (struct type_unit_group_unshareable): New.
3330 (struct dwarf2_per_objfile) <type_units>: New member.
3331 <get_type_unit_group_unshareable>: New method.
3332 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
3333 num_symtabs, symtabs>: Remove; move to
3334 type_unit_group_unshareable.
3335 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
3336 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
3337 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
3338
127bbf4b
SM
33392020-05-27 Simon Marchi <simon.marchi@efficios.com>
3340
3341 * dwarf2/read.h (struct dwarf2_per_cu_data):
3342 <dwarf2_per_objfile>: Remove.
3343 * dwarf2/read.c (create_cu_from_index_list): Don't assign
3344 dwarf2_per_objfile.
3345 (create_signatured_type_table_from_index): Likewise.
3346 (create_signatured_type_table_from_debug_names): Likewise.
3347 (create_debug_type_hash_table): Likewise.
3348 (fill_in_sig_entry_from_dwo_entry): Likewise.
3349 (create_type_unit_group): Likewise.
3350 (read_comp_units_from_section): Likewise.
3351 (create_cus_hash_table): Likewise.
3352
f6e649dd
SM
33532020-05-27 Simon Marchi <simon.marchi@efficios.com>
3354
3355 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
3356 dwarf2_per_cu_data::dwarf2_per_objfile.
3357 (compute_compunit_symtab_includes): Likewise.
3358 (dwarf2_cu::start_symtab): Likewise.
3359
aa66c379
SM
33602020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3361
3362 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
3363 parameter.
3364 * dwarf2/read.c (get_die_type_at_offset): Likewise.
3365 (read_namespace_alias): Update.
3366 (lookup_die_type): Update.
3367 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
3368 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
3369 Update.
3370 (disassemble_dwarf_expression): Update.
3371
120ce1b5
SM
33722020-05-27 Simon Marchi <simon.marchi@efficios.com>
3373
3374 * dwarf2/read.h (struct dwarf2_queue_item): Add
3375 dwarf2_per_objfile parameter, assign new parameter.
3376 <per_objfile>: New field.
3377 * dwarf2/read.c (free_one_cached_comp_unit): Add
3378 dwarf2_per_objfile parameter.
3379 (queue_comp_unit): Likewise.
3380 (dw2_do_instantiate_symtab): Update.
3381 (process_psymtab_comp_unit): Update.
3382 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
3383 (process_imported_unit_die): Update.
3384 (queue_and_load_dwo_tu): Update.
3385 (follow_die_offset): Update.
3386 (follow_die_sig_1): Update.
3387
9f47c707
SM
33882020-05-27 Simon Marchi <simon.marchi@efficios.com>
3389
3390 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
3391 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
3392 (read_call_site_scope): Assign per_objfile.
3393 (dwarf2_per_cu_data::objfile): Remove.
3394 * gdbtypes.h (struct call_site) <per_objfile>: New member.
3395 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
3396 dwarf2_per_objfile parameter.
3397 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
3398 dwarf2_per_objfile parameter.
3399 (dwarf_expr_reg_to_entry_parameter): Add output
3400 dwarf2_per_objfile parameter.
3401 (locexpr_get_frame_base): Update.
3402 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
3403 <push_dwarf_reg_entry_value>: Update.
3404 <call_site_to_target_addr>: Update.
3405 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
3406 parameter.
3407 (value_of_dwarf_reg_entry): Update.
3408 (rw_pieced_value): Update.
3409 (indirect_synthetic_pointer): Update.
3410 (dwarf2_evaluate_property): Update.
3411 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
3412 parameter.
3413 (locexpr_read_variable): Update.
3414 (locexpr_get_symbol_read_needs): Update.
3415 (loclist_read_variable): Update.
3416
14095eb3
SM
34172020-05-27 Simon Marchi <simon.marchi@efficios.com>
3418
3419 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
3420 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3421 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
3422 parameter.
3423 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
3424 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3425 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
3426 parameter.
3427 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
3428 sect_variable_value): Add dwarf2_per_objfile parameter.
3429 (class dwarf_evaluate_loc_desc) <dwarf_call,
3430 dwarf_variable_value>: Update.
3431 (fetch_const_value_from_synthetic_pointer): Add
3432 dwarf2_per_objfile parameter.
3433 (fetch_const_value_from_synthetic_pointer): Update.
3434 (coerced_pieced_ref): Update.
3435 (class symbol_needs_eval_context) <dwarf_call,
3436 dwarf_variable_value>: Update.
3437 (dwarf2_compile_expr_to_ax): Update.
3438
3c3cd3d4
SM
34392020-05-27 Simon Marchi <simon.marchi@efficios.com>
3440
3441 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
3442 parameter.
3443 (dwarf2_evaluate_loc_desc_full): Update.
3444
82ca3f51
SM
34452020-05-27 Simon Marchi <simon.marchi@efficios.com>
3446
3447 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
3448 parameter.
3449 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
3450 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
3451 dwarf2_per_objfile parameter.
3452 (decode_debug_loc_dwo_addresses): Likewise.
3453 (dwarf2_find_location_expression): Update.
3454 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
3455 (locexpr_describe_location_piece): Add dwarf2_per_objfile
3456 parameter.
3457 (disassemble_dwarf_expression): Add dwarf2_per_objfile
3458 parameter.
3459 (locexpr_describe_location_1): Likewise.
3460 (locexpr_describe_location): Update.
3461
4b167ea1
SM
34622020-05-27 Simon Marchi <simon.marchi@efficios.com>
3463
3464 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
3465 Remove.
3466 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
3467 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
3468 (dwarf2_compile_property_to_c): Update.
3469 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
3470 use text offset from objfile.
3471 (locexpr_tracepoint_var_ref): Update.
3472 (locexpr_generate_c_location): Update.
3473 (loclist_describe_location): Update.
3474 (loclist_tracepoint_var_ref): Update.
3475 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
3476 dwarf2_per_objfile parameter.
3477 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
3478 use text offset from objfile.
3479 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
3480
89b07335
SM
34812020-05-27 Simon Marchi <simon.marchi@efficios.com>
3482
3483 * dwarf2/expr.h (struct dwarf_expr_context)
3484 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
3485 <offset>: Remove.
3486 <per_objfile>: New member.
3487 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
3488 dwarf2_per_objfile parameter. Don't set offset, set
3489 per_objfile.
3490 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
3491 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
3492 a dwarf2_per_objfile object instead of an offset.
3493 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
3494 constructor.
3495 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
3496 to dwarf2_expr_executor constructor. Don't set offset.
3497 (dwarf2_fetch_cfa_info): Update.
3498 (struct dwarf2_frame_cache) <text_offset>: Remove.
3499 <per_objfile>: New field.
3500 (dwarf2_frame_cache): Update.
3501 (dwarf2_frame_prev_register): Update.
3502 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3503 <dwarf_evaluate_loc_desc>: Add constructor.
3504 (dwarf2_evaluate_loc_desc_full): Update.
3505 (dwarf2_locexpr_baton_eval): Update.
3506 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
3507 Add constructor.
3508 (dwarf2_loc_desc_get_symbol_read_needs): Update.
3509
293e7e51
SM
35102020-05-27 Simon Marchi <simon.marchi@efficios.com>
3511
3512 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
3513 addr_sized_int_type>: Move to dwarf2_cu.
3514 <int_type>: Move to dwarf2_per_objfile.
3515 (struct dwarf2_per_objfile) <int_type>: Move here.
3516 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
3517 addr_sized_int_type>: Move here.
3518 (read_func_scope): Update.
3519 (read_array_type): Update.
3520 (read_tag_string_type): Update.
3521 (attr_to_dynamic_prop): Update.
3522 (dwarf2_per_cu_data::int_type): Rename to...
3523 (dwarf2_per_objfile::int_type): ... this.
3524 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
3525 (dwarf2_cu::addr_sized_int_type): ... this.
3526 (read_subrange_type): Update.
3527 (dwarf2_per_cu_data::addr_type): Rename to...
3528 (dwarf2_cu::addr_type): ... this.
3529 (set_die_type): Update.
3530
64874a40
SM
35312020-05-27 Simon Marchi <simon.marchi@efficios.com>
3532
3533 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
3534 data through per_cu->cu.
3535
4ab09049
SM
35362020-05-27 Simon Marchi <simon.marchi@efficios.com>
3537
3538 * dwarf2/read.c (lookup_dwo_comp_unit): Change
3539 dwarf2_per_cu_data parameter fo dwarf2_cu.
3540 (lookup_dwo_type_unit): Likewise.
3541 (read_cutu_die_from_dwo): Likewise.
3542 (lookup_dwo_unit): Likewise.
3543 (open_and_init_dwo_file): Likewise.
3544 (lookup_dwo_cutu): Likewise.
3545 (lookup_dwo_comp_unit): Likewise.
3546 (lookup_dwo_type_unit): Likewise.
3547 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3548 (cutu_reader::cutu_reader): Update.
3549
47b14e86
SM
35502020-05-27 Simon Marchi <simon.marchi@efficios.com>
3551
3552 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
3553 parameter.
3554 (process_full_type_unit): Likewise.
3555 (process_queue): Update.
3556
43182c09
SM
35572020-05-27 Simon Marchi <simon.marchi@efficios.com>
3558
3559 * dwarf2/read.c (recursively_compute_inclusions): Add
3560 dwarf2_per_objfile parameter.
3561 (compute_compunit_symtab_includes): Likewise.
3562 (process_cu_includes): Update.
3563
7aa104c4
SM
35642020-05-27 Simon Marchi <simon.marchi@efficios.com>
3565
3566 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
3567 parameter.
3568 (create_type_unit_group): Update.
3569 (process_psymtab_comp_unit_reader): Update.
3570 (build_type_psymtabs_reader): Update.
3571
e3beb21d
SM
35722020-05-27 Simon Marchi <simon.marchi@efficios.com>
3573
3574 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
3575 object through m_this_cu->cu.
3576
d460f660
SM
35772020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3578
3579 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
3580 the info parameter.
3581 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
3582
ab432490
SM
35832020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3584
3585 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
3586 per_objfile parameter.
3587 (load_full_type_unit): Add per_objfile parameter.
3588 (read_signatured_type): Likewise.
3589 (load_full_comp_unit): Likewise.
3590 (load_cu): Likewise.
3591 (dw2_do_instantiate_symtab): Likewise.
3592 (dw2_get_file_names): Likewise.
3593 (dw2_map_symtabs_matching_filename): Update.
3594 (dw_expand_symtabs_matching_file_matcher): Update.
3595 (dw2_map_symbol_filenames): Update.
3596 (process_psymtab_comp_unit): Add per_objfile parameter.
3597 (build_type_psymtabs_1): Update.
3598 (process_skeletonless_type_unit): Update.
3599 (dwarf2_build_psymtabs_hard): Update.
3600 (load_partial_comp_unit): Add per_objfile parameter.
3601 (scan_partial_symbols): Update.
3602 (load_full_comp_unit): Add per_objfile parameter.
3603 (process_imported_unit_die): Update.
3604 (create_cus_hash_table): Update.
3605 (find_partial_die): Update.
3606 (dwarf2_read_addr_index): Update.
3607 (follow_die_offset): Update.
3608 (dwarf2_fetch_die_loc_sect_off): Update.
3609 (dwarf2_fetch_constant_bytes): Update.
3610 (dwarf2_fetch_die_type_sect_off): Update.
3611 (follow_die_sig_1): Update.
3612 (load_full_type_unit): Add per_objfile parameter.
3613 (read_signatured_type): Likewise.
3614
313bad1b
SM
36152020-05-27 Simon Marchi <simon.marchi@efficios.com>
3616
3617 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
3618 of objfile_name.
3619
c3699833
SM
36202020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3621
3622 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
3623 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
3624 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
3625 field.
3626 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
3627 (create_cus_from_index): Update.
3628 (dwarf2_read_gdb_index): Update.
3629 (create_cus_from_debug_names): Update.
3630 (dwarf2_read_debug_names): Update.
3631 (get_abbrev_section_for_cu): Update.
3632 (create_all_comp_units): Update.
3633 (read_attribute_value): Update.
3634 (get_debug_line_section): Update.
3635 * dwarf2/index-cache.c (index_cache::store): Update.
3636 * dwarf2/index-write.c (save_gdb_index_command): Update.
3637 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
3638
1859c670
SM
36392020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3640
3641 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
3642 member.
3643 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
3644 dwarf2_per_cu_data::per_bfd.
3645 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
3646 (create_type_unit_group): Likewise.
3647 (queue_comp_unit): Remove reference to
3648 per_cu->dwarf2_per_objfile.
3649 (maybe_queue_comp_unit): Likewise.
3650 (fill_in_sig_entry_from_dwo_entry): Assign new field.
3651 (create_cus_hash_table): Assign new field.
3652
5e22e966
SM
36532020-05-27 Simon Marchi <simon.marchi@efficios.com>
3654
3655 * dwarf2/read.c: Replace
3656 dwarf2_cu->per_cu->dwarf2_per_objfile references with
3657 dwarf2_cu->per_objfile throughout.
3658
97a1449a
SM
36592020-05-27 Simon Marchi <simon.marchi@efficios.com>
3660
3661 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
3662 parameter, don't use per_cu->dwarf2_per_objfile.
3663 (dw2_instantiate_symtab): Likewise.
3664 (dw2_find_last_source_symtab): Update.
3665 (dw2_map_expand_apply): Update.
3666 (dw2_lookup_symbol): Update.
3667 (dw2_expand_symtabs_for_function): Update.
3668 (dw2_expand_all_symtabs): Update.
3669 (dw2_expand_symtabs_with_fullname): Update.
3670 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
3671 don't use per_cu->dwarf2_per_objfile.
3672 (dw2_expand_marked_cus): Update.
3673 (dw2_find_pc_sect_compunit_symtab): Update.
3674 (dw2_debug_names_lookup_symbol): Update.
3675 (dw2_debug_names_expand_symtabs_for_function): Update.
3676 (dw2_debug_names_map_matching_symbols): Update.
3677 (dwarf2_psymtab::expand_psymtab): Update.
3678
9e021579
SM
36792020-05-27 Simon Marchi <simon.marchi@efficios.com>
3680
3681 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
3682 <per_objfile>: New member.
3683 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
3684 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
3685 call to dwarf2_cu.
3686 (cutu_reader::cutu_reader): Update.
3687 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
3688
ae090bdb
SM
36892020-05-27 Simon Marchi <simon.marchi@efficios.com>
3690
3691 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
3692 struct dwarf2_per_objfile.
3693 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
3694 dwarf2_per_bfd.
3695 * dwarf2/read.c (set_die_type): Update.
3696 (get_die_type_at_offset): Update.
3697
af758d11
SM
36982020-05-27 Tom Tromey <tom@tromey.com>
3699 Simon Marchi <simon.marchi@efficios.com>
3700
3701 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
3702 method.
3703 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
3704 get_symtab, set_symtab>: New methods.
3705 <m_symtabs>: New field.
3706 (struct dwarf2_psymtab): Derive from partial_symtab.
3707 <readin_p, get_compunit_symtab>: Declare methods.
3708 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
3709 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
3710 New methods.
3711 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
3712 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
3713 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
3714 (dw2_symtab_iter_next, dw2_print_stats)
3715 (dw2_expand_symtabs_with_fullname)
3716 (dw2_expand_symtabs_matching_one)
3717 (dw_expand_symtabs_matching_file_matcher)
3718 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
3719 (dw2_debug_names_iterator::next)
3720 (dw2_debug_names_map_matching_symbols)
3721 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
3722 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
3723 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
3724 New methods.
3725 (get_compunit_symtab, process_full_comp_unit)
3726 (process_full_type_unit): Update.
3727 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
3728
5989a64e
SM
37292020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3730
3731 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
3732 then introduce a new dwarf2_per_objfile type.
3733 <read_line_string>: Move to the new dwarf2_per_objfile type.
3734 <objfile>: Likewise.
3735 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
3736 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
3737 dwarf2_per_objfile->per_bfd.
3738 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
3739 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
3740 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
3741 (dwarf2_per_bfd::free_cached_comp_units): ... this.
3742 (dwarf2_has_info): Allocate dwarf2_per_bfd.
3743 (dwarf2_per_objfile::locate_sections): Rename to...
3744 (dwarf2_per_bfd::locate_sections): ... this.
3745 (dwarf2_per_objfile::get_cutu): Rename to...
3746 (dwarf2_per_bfd::get_cutu): ... this.
3747 (dwarf2_per_objfile::get_cu): Rename to...
3748 (dwarf2_per_bfd::get_cu): ... this.
3749 (dwarf2_per_objfile::get_tu): Rename to...
3750 (dwarf2_per_bfd::get_tu): ... this.
3751 (dwarf2_per_objfile::allocate_per_cu): Rename to...
3752 (dwarf2_per_bfd::allocate_per_cu): ... this.
3753 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
3754 (dwarf2_per_bfd::allocate_signatured_type): ... this.
3755 (get_gdb_index_contents_ftype): Change parameter from
3756 dwarf2_per_objfile to dwarf2_per_bfd.
3757 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
3758 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
3759
a50264ba
TT
37602020-05-27 Tom Tromey <tom@tromey.com>
3761 Simon Marchi <simon.marchi@efficios.com>
3762
3763 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
3764 (allocate_piece_closure): Set "per_objfile" member.
3765 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
3766 (locexpr_describe_location, loclist_describe_location): Use new
3767 member.
3768 * dwarf2/read.c (read_call_site_scope)
3769 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
3770 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
3771 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
3772 handle_data_member_location): Set per_objfile member.
3773 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
3774 member.
3775 (struct dwarf2_loclist_baton) <per_objfile>: New member.
3776
d3473f0c
TT
37772020-05-27 Tom Tromey <tom@tromey.com>
3778
3779 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
3780 allocate_signatured_type>: Declare new methods.
3781 <m_num_psymtabs>: New member.
3782 (struct dwarf2_per_cu_data) <index>: New member.
3783 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
3784 (dwarf2_per_objfile::allocate_signatured_type): New methods.
3785 (create_cu_from_index_list): Use allocate_per_cu.
3786 (create_signatured_type_table_from_index)
3787 (create_signatured_type_table_from_debug_names)
3788 (create_debug_type_hash_table, add_type_unit)
3789 (read_comp_units_from_section): Use allocate_signatured_type.
3790
5717c425
TT
37912020-05-27 Tom Tromey <tom@tromey.com>
3792
3793 * psymtab.c (partial_map_expand_apply)
3794 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
3795 (psym_lookup_global_symbol_language)
3796 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
3797 (psym_print_stats, psym_expand_symtabs_for_function)
3798 (psym_map_symbol_filenames, psym_map_matching_symbols)
3799 (psym_expand_symtabs_matching)
3800 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
3801 (maintenance_check_psymtabs): Update.
3802 * psympriv.h (struct partial_symtab) <readin_p,
3803 get_compunit_symtab>: Add objfile parameter.
3804 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
3805 Likewise.
3806 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
3807 get_compunit_symtab>: Likewise.
3808 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
3809
45940949
TT
38102020-05-27 Tom Tromey <tom@tromey.com>
3811
3812 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
3813 member.
3814 * dwarf2/read.c (delete_file_name_entry): Fix comment.
3815 (create_cu_from_index_list)
3816 (create_signatured_type_table_from_index)
3817 (create_signatured_type_table_from_debug_names)
3818 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
3819 (dwarf2_create_include_psymtab)
3820 (create_debug_type_hash_table, add_type_unit)
3821 (create_type_unit_group, read_comp_units_from_section)
3822 (dwarf2_compute_name, create_cus_hash_table)
3823 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
3824 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
3825 obstack.
3826 (dw2_get_real_path): Likewise. Change argument to
3827 dwarf2_per_objfile.
3828
f8c6d152
LM
38292020-05-27 Luis Machado <luis.machado@linaro.org>
3830
3831 PR tdep/26000
3832 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
3833 for ldrd (immediate).
3834
e98d2e6d
PW
38352020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3836
3837 * command.h: Add comment giving the name of class_tui.
3838 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
3839 create the fake command for the help for class_tui.
3840
53a47a3e
TT
38412020-05-26 Tom Tromey <tromey@adacore.com>
3842
3843 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
3844 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
3845 (val_atr): New function.
3846 (value_val_atr): Use it.
3847 * ada-valprint.c (print_optional_low_bound): Change low bound
3848 handling for enums.
3849 (val_print_packed_array_elements): Don't call discrete_position.
3850 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
3851 discrete_position for enum types.
3852 * language.c (default_print_array_index): Change type.
3853 * language.h (struct language_defn) <la_print_array_index>: Add
3854 index_type parameter, change type of index_value.
3855 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
3856 (default_print_array_index): Update.
3857 * valprint.c (maybe_print_array_index): Don't call
3858 value_from_longest. Update.
3859 (value_print_array_elements): Don't call discrete_position.
3860
0bc2354b
TT
38612020-05-26 Tom Tromey <tromey@adacore.com>
3862
3863 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
3864 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
3865
1218a4bf
CDA
38662020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
3867
3868 PR gdb/13519
3869 * avr-tdep.c (avr_integer_to_address): Return data or code
3870 address accordingly to the second 'type' argument of the
3871 function.
3872
92651b1d
MW
38732020-05-25 Michael Weghorn <m.weghorn@posteo.de>
3874
3875 * infcmd.c, inferior.h: (construct_inferior_arguments):
3876 Moved function from here to gdbsupport/common-inferior.{h,cc}
3877
0a4f5f8c
TT
38782020-05-23 Tom Tromey <tom@tromey.com>
3879
3880 Revert commit eca1f90c:
3881 * NEWS: Remove entry for completion styling.
3882 * completer.c (_rl_completion_prefix_display_length): Move
3883 declaration later.
3884 (gdb_fnprint): Revert.
3885 (gdb_display_match_list_1): Likewise.
3886 * cli/cli-style.c (completion_prefix_style)
3887 (completion_difference_style, completion_suffix_style): Remove.
3888 (_initialize_cli_style): Revert.
3889 * cli/cli-style.h (completion_prefix_style)
3890 (completion_difference_style, completion_suffix_style): Don't
3891 declare.
3892
e08bd6c5
PA
38932020-05-24 Pedro Alves <palves@redhat.com>
3894
3895 * symtab.c (completion_list_add_name): Return boolean indication
3896 of whether the symbol matched.
3897 (completion_list_add_symbol): Don't try to remove C++ aliases if
3898 the symbol didn't match in the first place.
3899 * symtab.h (completion_list_add_name): Return bool.
3900
ceacbf6e
SM
39012020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
3902
3903 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
3904 type::field.
3905
26f16254
JB
39062020-05-23 Joel Brobecker <brobecker@adacore.com>
3907
3908 GDB 9.2 released.
3909
eca1f90c
TT
39102020-05-23 Tom Tromey <tom@tromey.com>
3911
3912 * NEWS: Add entry for completion styling.
3913 * completer.c (_rl_completion_prefix_display_length): Move
3914 declaration earlier.
3915 (gdb_fnprint): Use completion_style.
3916 (gdb_display_match_list_1): Likewise.
3917 * cli/cli-style.c (completion_prefix_style)
3918 (completion_difference_style, completion_suffix_style): New
3919 globals.
3920 (_initialize_cli_style): Register new globals.
3921 * cli/cli-style.h (completion_prefix_style)
3922 (completion_difference_style, completion_suffix_style): Declare.
3923
51e2cfa2
PA
39242020-05-23 Pedro Alves <palves@redhat.com>
3925
3926 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
3927 (parse_escape): Use ISDIGIT instead of isdigit.
3928 (puts_debug): Use gdb_isprint instead of isprint.
3929 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
3930 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
3931 ISSPACE instead of isspace.
3932 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
3933 instead of isspace.
3934 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
3935 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
3936 instead of isxdigit and ISDIGIT instead of isdigit.
3937
80fc5e77
SM
39382020-05-22 Simon Marchi <simon.marchi@efficios.com>
3939
3940 * gdbtypes.h (struct type) <field>: New method.
3941 (TYPE_FIELDS): Remove, replace all uses with either type::fields
3942 or type::field.
3943
3cabb6b0
SM
39442020-05-22 Simon Marchi <simon.marchi@efficios.com>
3945
3946 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
3947 (TYPE_FIELDS): Use type::fields. Change all call sites that
3948 modify the propery to use type::set_fields instead.
3949
1f704f76
SM
39502020-05-22 Simon Marchi <simon.marchi@efficios.com>
3951
3952 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
3953 type::num_fields instead.
3954
5e33d5f4
SM
39552020-05-22 Simon Marchi <simon.marchi@efficios.com>
3956
3957 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
3958 methods.
3959 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
3960 that modify the number of fields to use type::set_num_fields
3961 instead.
3962
9392ebb3
TT
39632020-05-22 Tom Tromey <tromey@adacore.com>
3964
3965 * compile/compile-object-load.h (munmap_list_free): Don't
3966 declare.
3967
7c13f4e8
AB
39682020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
3969
3970 * annotate.c (annotate_source_line): Update return type, add call
3971 to update current symtab and line.
3972 * annotate.h (annotate_source_line): Update return type, and
3973 extend header comment.
3974 * source.c (info_line_command): Check annotation_level before
3975 calling annotate_source_line.
3976 * stack.c (print_frame_info): If calling annotate_source_line
3977 returns true, then don't print any other source line information.
3978
aa370940
SM
39792020-05-21 Simon Marchi <simon.marchi@efficios.com>
3980
3981 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
3982
84d53fa9
SM
39832020-05-21 Simon Marchi <simon.marchi@efficios.com>
3984
3985 * coffread.c (patch_type): Remove NULL check before xfree.
3986 * corefile.c (set_gnutarget): Likewise.
3987 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
3988 * exec.c (build_section_table): Likewise.
3989 * remote.c (remote_target::pass_signals): Likewise.
3990 * utils.c (n_spaces): Likewise.
3991 * cli/cli-script.c (document_command): Likewise.
3992 * i386-windows-tdep.c (core_process_module_section): Likewise.
3993 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
3994
9d428aae
SM
39952020-05-20 Simon Marchi <simon.marchi@efficios.com>
3996
3997 * symfile.c (reread_symbols): Clear objfile's section_offsets
3998 vector and section indices, re-compute them by calling
3999 sym_offsets.
4000
250106a7
TT
40012020-05-20 Tom Tromey <tromey@adacore.com>
4002
4003 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 4004 (desc_one_bound, desc_index_type): Compute field name.
250106a7 4005
9a0bacfb
TV
40062020-05-20 Tom de Vries <tdevries@suse.de>
4007
4008 PR symtab/25833
4009 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
4010
7b958a48
AM
40112020-05-20 Alan Modra <amodra@gmail.com>
4012
4013 PR 25993
4014 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
4015 bfd_set_filename.
4016 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
4017 passed to bfd_set_filename.
4018 * symfile-mem.c (add_vsyscall_page): Likewise for string
4019 passed to symbol_file_add_from_memory.
4020 (symbol_file_add_from_memory): Make name param a const char* and
4021 don't strdup.
4022
c7e97679
AM
40232020-05-20 Alan Modra <amodra@gmail.com>
4024
4025 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
4026 rather than accessing bfd->filename directly.
4027 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
4028 and use bfd_section_name.
4029 * dwarf2/frame.c (decode_frame_entry): Likewise.
4030 * exec.c (exec_set_section_address): Likewise.
4031 * solib-aix.c (solib_aix_bfd_open): Likewise.
4032 * stap-probe.c (get_stap_base_address): Likewise.
4033 * symfile.c (reread_symbols): Likewise.
4034
563c591b
TT
40352020-05-19 Tom Tromey <tromey@adacore.com>
4036
4037 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
4038
f408d82c
SM
40392020-05-19 Simon Marchi <simon.marchi@efficios.com>
4040
4041 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
4042
98c59b52
PA
40432020-05-19 Pedro Alves <palves@redhat.com>
4044
4045 * NEWS (set exec-file-mismatch): Adjust entry.
4046 * exec.c: Include "build-id.h".
4047 (validate_exec_file): Try to match build IDs instead of filenames.
4048 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
4049 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
4050 and pass down 'warn_if_slow'.
4051 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
4052 gdb_bfd_open_closure to pass it down.
4053 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
4054
4111f652
PA
40552020-05-19 Pedro Alves <palves@redhat.com>
4056
4057 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
4058 * target.c (target_fileio_open_1): Rename to target_fileio_open
4059 and make extern. Use bool.
4060 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
4061 (target_fileio_read_alloc_1): Adjust.
4062 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
4063 (target_fileio_open_warn_if_slow): Delete declaration.
4064
ad80db5b
PA
40652020-05-19 Pedro Alves <palves@redhat.com>
4066
4067 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
4068 Adjust all callers.
4069
1d6ce4d3
YS
40702020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
4071
4072 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
4073 whether disp is negative.
4074
9005fbbb
SM
40752020-05-19 Simon Marchi <simon.marchi@efficios.com>
4076
4077 * symfile.h (struct symfile_segment_data)
4078 <~symfile_segment_data>: Remove.
4079 <segment_info>: Change to std::vector.
4080 * symfile.c (default_symfile_segments): Update.
4081 * elfread.c (elf_symfile_segments): Update.
4082
68b888ff
SM
40832020-05-19 Simon Marchi <simon.marchi@efficios.com>
4084
4085 * symfile.h (struct symfile_segment_data) <struct segment>: New.
4086 <segments>: New.
4087 <segment_bases, segment_sizes>: Remove.
4088 * symfile.c (default_symfile_segments): Update.
4089 * elfread.c (elf_symfile_segments): Update.
4090 * remote.c (remote_target::get_offsets): Update.
4091 * solib-target.c (solib_target_relocate_section_addresses):
4092 Update.
4093
62982abd
SM
40942020-05-19 Simon Marchi <simon.marchi@efficios.com>
4095
4096 * symfile.h (struct symfile_segment_data): Initialize fields.
4097 <~symfile_segment_data>: Add.
4098 (symfile_segment_data_up): New.
4099 (struct sym_fns) <sym_segments>: Return a
4100 symfile_segment_data_up.
4101 (default_symfile_segments): Return a symfile_segment_data_up.
4102 (free_symfile_segment_data): Remove.
4103 (get_symfile_segment_data): Return a symfile_segment_data_up.
4104 * symfile.c (default_symfile_segments): Likewise.
4105 (get_symfile_segment_data): Likewise.
4106 (free_symfile_segment_data): Remove.
4107 (symfile_find_segment_sections): Update.
4108 * elfread.c (elf_symfile_segments): Return a
4109 symfile_segment_data_up.
4110 * remote.c (remote_target::get_offsets): Update.
4111 * solib-target.c (solib_target_relocate_section_addresses):
4112 Update.
4113 * symfile-debug.c (debug_sym_segments): Return a
4114 symfile_segment_data_up.
4115
7f204339
RO
41162020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4117
e52a0f1b
RO
4118 PR build/25981
4119 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
4120 Hardcode register numbers.
4121
7f204339
RO
4122 PR build/25981
4123 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
4124 procfs_find_LDT_entry): Remove.
4125 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
4126 procfs_find_LDT_entry): Remove.
4127 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
4128 Remove.
4129
7f32a4d5
PA
41302020-05-17 Pedro Alves <palves@redhat.com>
4131 Andrew Burgess <andrew.burgess@embecosm.com>
4132 Keno Fischer <keno@juliacomputing.com>
4133
4134 PR gdb/25741
4135 * breakpoint.c (build_target_condition_list): Update comments.
4136 (build_target_command_list): Update comments and skip matching
4137 locations.
4138 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
4139 a separate function. Simplify "set breakpoint auto-hw off"
4140 handling.
4141 (insert_breakpoints): Update comment.
4142 (tracepoint_locations_match): New parameter. For breakpoints,
4143 compare location types too, if the caller wants to.
4144 (handle_automatic_hardware_breakpoints): New functions.
4145 (bp_location_is_less_than): Also sort by location type and
4146 hardware breakpoint length.
4147 (update_global_location_list): Handle "set breakpoint auto-hw on"
4148 here.
4149 (update_breakpoint_locations): Ask breakpoint_locations_match to
4150 ignore location types.
4151
7d93a1e0
SM
41522020-05-16 Simon Marchi <simon.marchi@efficios.com>
4153
4154 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
4155 type::name instead.
4156
d0e39ea2
SM
41572020-05-16 Simon Marchi <simon.marchi@efficios.com>
4158
4159 * gdbtypes.h (struct type) <name, set_name>: New methods.
4160 (TYPE_CODE): Use type::name. Change all call sites used to set
4161 the name to use type::set_name instead.
4162
2dab0c7b
TT
41632020-05-16 Tom Tromey <tom@tromey.com>
4164
4165 * top.c (quit_force): Update.
4166 * infrun.c (handle_no_resumed): Update.
4167 * top.h (all_uis): New function.
4168 (ALL_UIS): Remove.
4169
59f7bd8d
SM
41702020-05-16 Simon Marchi <simon.marchi@efficios.com>
4171
4172 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
4173
9bf058f0
PA
41742020-05-16 Pedro Alves <palves@redhat.com>
4175
4176 * ia64-linux-nat.c
4177 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
4178 Declare method.
4179 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
4180
8f86ae1a
SM
41812020-05-15 Simon Marchi <simon.marchi@efficios.com>
4182
4183 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
4184 (sparc64_adi_info): Likewise.
4185
d6bc0792
TT
41862020-05-15 Tom Tromey <tom@tromey.com>
4187
4188 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
4189 block_objfile.
4190 (lookup_objfile_from_block): Remove.
4191 (lookup_symbol_in_block, lookup_symbol_in_static_block)
4192 (lookup_global_symbol): Use block_objfile.
4193 * symtab.h (lookup_objfile_from_block): Don't declare.
4194 * printcmd.c (clear_dangling_display_expressions): Use
4195 block_objfile.
4196 * parse.c (operator_check_standard): Use block_objfile.
4197
8c14c3a3
TT
41982020-05-15 Tom Tromey <tom@tromey.com>
4199
4200 * language.c (language_alloc_type_symbol): Set
4201 SYMBOL_SECTION.
4202 * symtab.c (initialize_objfile_symbol): Remove.
4203 (allocate_symbol): Remove.
4204 (allocate_template_symbol): Remove.
4205 * dwarf2/read.c (fixup_go_packaging): Use "new".
4206 (new_symbol): Use "new".
4207 (read_variable): Don't call initialize_objfile_symbol. Use
4208 "new".
4209 (read_func_scope): Use "new".
4210 * xcoffread.c (process_xcoff_symbol): Don't call
4211 initialize_objfile_symbol.
4212 (SYMBOL_DUP): Remove.
4213 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
4214 "new".
4215 * symtab.h (allocate_symbol, initialize_objfile_symbol)
4216 (allocate_template_symbol): Don't declare.
4217 (struct symbol): Add copy constructor. Change defaults.
4218 * jit.c (finalize_symtab): Use "new".
4219 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
4220 Use "new".
4221 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
4222 (common_block_end): Use "new".
4223 * mdebugread.c (parse_symbol): Use "new".
4224 (new_symbol): Likewise.
4225
5b4a1a8d
PW
42262020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4227
4228 * NEWS: Mention changes to help and apropos.
4229
57b4f16e
PW
42302020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4231
4232 * command.h (enum command_class): Improve comments, document
4233 that class_alias is for user-defined aliases, give the class
4234 name for each class, remove unused class_xdb.
4235 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
4236 * breakpoint.c (_initialize_breakpoint): Replace class_alias
4237 by a precise class.
4238 * infcmd.c (_initialize_infcmd): Likewise.
4239 * reverse.c (_initialize_reverse): Likewise.
4240 * stack.c (_initialize_stack): Likewise.
4241 * symfile.c (_initialize_symfile): Likewise.
4242 * tracepoint.c (_initialize_tracepoint): Likewise.
4243
7c05caf7
PW
42442020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4245
4246 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
4247 when their aliased command is traversed.
4248 (help_cmd): Add fput_command_names_styled call to
4249 output command name and aliases when command has an alias.
4250
3b3aaacb
PW
42512020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4252
4253 * cli/cli-decode.h (help_cmd_list): Remove declaration.
4254 * cli/cli-decode.c (help_cmd_list): Declare as static,
4255 remove prefix argument, use bool for recurse arg, rework to show the aliases of
4256 a command together with the command.
4257 (fput_command_name_styled, fput_command_names_styled): New functions.
4258 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
4259 fput_command_name_styled.
4260 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
4261 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
4262
7aa1b46f
PW
42632020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4264
4265 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
4266 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
4267 * command.h (cmd_show_list): Likewise.
4268 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
4269 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
4270
89bcba74
PW
42712020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4272
4273 * unittests/command-def-selftests.c (traverse_command_structure):
4274 Verify all commands of a list have the same prefix command and
4275 that only the top cmdlist commands have a null prefix.
4276
3f4d92eb
PW
42772020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4278
4279 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
4280 as prefix, not one of its aliases.
4281 (set_cmd_prefix): Remove.
4282 (do_add_cmd): Centralize the setting of the prefix of a command, when
4283 command is defined after its full chain of prefix commands.
4284 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
4285 (add_setshow_cmd_full): Likewise.
4286 (update_prefix_field_of_prefixed_commands): New function.
4287 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
4288 update_prefix_field_of_prefixed_commands.
4289 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
4290 addresses of remote_set_cmdlist and remote_show_cmdlist given
4291 as argument, not the address of an argument.
4292 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
4293 * gdb/remote.c (_initialize_remote): Likewise.
4294
0605465f
PW
42952020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4296
4297 * cli/cli-cmds.c (alias_command): Check for an existing alias
4298 using lookup_cmd_composition, as valid_command_p is too strict
4299 and forbids aliases that are the prefix of an existing alias
4300 or command.
4301 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
4302 command is properly recognised as a valid command.
4303
58e6ac70
PW
43042020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4305
4306 * unittests/help-doc-selftests.c: Rename to
4307 unittests/command-def-selftests.c
4308 * unittests/command-def-selftests.c (help_doc_tests): Update some
4309 comments.
4310 (command_structure_tests, traverse_command_structure): New namespace
4311 and function.
4312 (command_structure_invariants_tests): New function.
4313 (_initialize_command_def_selftests) Renamed from
4314 _initialize_help_doc_selftests, register command_structure_invariants
4315 selftest.
4316
a7b9ceb8
PW
43172020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4318
4319 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
4320 an alias of 'show'.
4321
b2188a06
JB
43222020-05-15 Joel Brobecker <brobecker@adacore.com>
4323
4324 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
4325 ada_is_fixed_point_type. Update all callers.
4326 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
4327 all callers.
4328 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
4329 Update all callers.
4330 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
4331 print_fixed_point_type. Update all callers.
4332 * ada-valprint.c (ada_value_print_num): Replace call to
4333 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
4334
a51951c2
KB
43352020-05-14 Kevin Buettner <kevinb@redhat.com>
4336
4337 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
4338 processors.
4339 (cpu_supports_bts): Add CV_AMD case.
4340
29d6859f
LM
43412020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
4342 Simon Marchi <simon.marchi@efficios.com>
4343
4344 * infrun.c (stop_all_threads): Collect multiple wait events at
4345 each pass.
4346
78134374
SM
43472020-05-14 Simon Marchi <simon.marchi@efficios.com>
4348
4349 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
4350 type::code instead.
4351
67607e24
SM
43522020-05-14 Simon Marchi <simon.marchi@efficios.com>
4353
4354 * gdbtypes.h (struct type) <code, set_code>: New methods.
4355 (TYPE_CODE): Use type::code. Change all call sites used to set
4356 the code to use type::set_code instead.
4357
a05575d3
TBA
43582020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4359 Tom de Vries <tdevries@suse.de>
4360 Pedro Alves <palves@redhat.com>
4361
4362 PR threads/25478
4363 * infrun.c (stop_all_threads): Do NOT ignore
4364 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
4365 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
4366 received.
4367 (handle_no_resumed): Remove code handling a live inferior with no
4368 threads.
4369 * remote.c (has_single_non_exited_thread): New.
4370 (remote_target::update_thread_list): Do not delete a thread if is
4371 the last thread of the process.
4372 * thread.c (thread_select): Call delete_exited_threads instead of
4373 prune_threads.
4374
6ad82919
TBA
43752020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4376
4377 * infrun.c (stop_all_threads): Enable/disable thread events of all
4378 targets. Move a debug message denoting the end of the function
4379 into the SCOPED_EXIT block.
4380
d890404b
TBA
43812020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4382
4383 * process-stratum-target.h: Include <set>.
4384 (all_non_exited_process_targets, switch_to_target_no_thread): New
4385 function declarations.
4386 * process-stratum-target.c (all_non_exited_process_targets)
4387 (switch_to_target_no_thread): New function implementations.
4388
293b3ebc
TBA
43892020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4390
4391 * infrun.c (handle_inferior_event): Extract out a piece of code
4392 into...
4393 (mark_non_executing_threads): ...this new function.
4394
7ca9b62a
TBA
43952020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4396
4397 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
4398 use.
4399
fc75c28b
TBA
44002020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4401
4402 * regcache.c (regcache_read_pc_protected): New function
4403 implementation that returns 0 if the PC cannot read via
4404 'regcache_read_pc'.
4405 * infrun.c (proceed): Call 'regcache_read_pc_protected'
4406 instead of 'regcache_read_pc'.
4407 (keep_going_pass_signal): Ditto.
4408
a89febbd
TT
44092020-05-13 Tom Tromey <tromey@adacore.com>
4410
4411 * ada-lang.c (align_value): Remove.
4412 (ada_template_to_fixed_record_type_1): Use align_up.
4413
f7e23710
TBA
44142020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4415
4416 * async-event.c: Update the copyright year.
4417 * async-event.h: Update the copyright year.
4418
02ff80c2
SM
44192020-05-12 Simon Marchi <simon.marchi@efficios.com>
4420
4421 * objfiles.h (is_addr_in_objfile,
4422 shared_objfile_contains_address_p): Return bool.
4423 * objfile.c (is_addr_in_objfile,
4424 shared_objfile_contains_address_p): Return bool.
4425
4fd6c7e8
TT
44262020-05-11 Tom Tromey <tromey@adacore.com>
4427
4428 * cli/cli-cmds.c (info_command): Restore.
4429 (_initialize_cli_cmds): Use add_prefix_command for "info".
4430 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
4431
5eb68a39
TT
44322020-05-11 Tom Tromey <tromey@adacore.com>
4433
4434 * ada-lang.c (ada_value_primitive_field): Now public.
4435 * ada-lang.h (ada_value_primitive_field): Declare.
4436 * ada-valprint.c (print_field_values): Use
4437 ada_value_primitive_field for wrapper fields.
4438
7666722f
TV
44392020-05-11 Tom de Vries <tdevries@suse.de>
4440
4441 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
4442 MODULE_DOMAIN.
4443
3ee6bb11
TV
44442020-05-11 Tom de Vries <tdevries@suse.de>
4445
4446 PR symtab/25941
4447 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
4448 with length 0, if not gdb-produced.
4449 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
4450
43434996
TV
44512020-05-09 Tom de Vries <tdevries@suse.de>
4452
4453 PR gdb/25955
4454 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
4455 calculation.
4456
2f78cffc
TT
44572020-05-09 Tom Tromey <tom@tromey.com>
4458
4459 * top.c (server_command): Now bool.
4460 * top.h (server_command): Now bool.
4461
4f7bc5ed
TT
44622020-05-08 Tom Tromey <tromey@adacore.com>
4463
4464 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
4465 already being processed.
4466
8be4b118
TT
44672020-05-08 Tom Tromey <tom@tromey.com>
4468
4469 * printcmd.c (struct display) <next>: Remove.
4470 <display>: New constructor.
4471 <exp_string>: Now a std::string.
4472 <enabled_p>: Now a bool.
4473 (display_number): Move definition earlier.
4474 (displays): Rename from display_chain. Now a std::vector.
4475 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
4476 (display_command): Update.
4477 (do_one_display, disable_display)
4478 (enable_disable_display_command, do_enable_disable_display):
4479 Update.
4480 (free_display): Remove.
4481 (clear_displays): Rewrite.
4482 (delete_display): Update.
4483 (map_display_numbers): Use function_view. Remove "data"
4484 parameter. Update.
4485 (do_delete_display): Remove.
4486 (undisplay_command): Update.
4487 (do_one_display, do_displays, disable_display)
4488 (info_display_command): Update.
4489 (do_enable_disable_display): Remove.
4490 (enable_disable_display_command)
4491 (clear_dangling_display_expressions): Update.
4492
94c93c35
TT
44932020-05-08 Tom Tromey <tom@tromey.com>
4494
4495 * symtab.c (set_symbol_cache_size)
4496 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
4497 (maintenance_print_symbol_cache_statistics): Update.
4498 * symmisc.c (print_symbol_bcache_statistics)
4499 (print_objfile_statistics, maintenance_print_objfiles)
4500 (maintenance_info_symtabs, maintenance_check_symtabs)
4501 (maintenance_expand_symtabs, maintenance_info_line_tables):
4502 Update.
4503 * symfile-debug.c (set_debug_symfile): Update.
4504 * source.c (forget_cached_source_info): Update.
4505 * python/python.c (gdbpy_progspaces): Update.
4506 * psymtab.c (maintenance_info_psymtabs): Update.
4507 * probe.c (parse_probes): Update.
4508 * linespec.c (iterate_over_all_matching_symtabs)
4509 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
4510 * guile/scm-progspace.c (gdbscm_progspaces): Update.
4511 * exec.c (exec_target::close): Update.
4512 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
4513 * breakpoint.c (print_one_breakpoint_location)
4514 (create_longjmp_master_breakpoint)
4515 (create_std_terminate_master_breakpoint): Update.
4516 * progspace.c (program_spaces): Now a std::vector.
4517 (maybe_new_address_space): Update.
4518 (add_program_space): Remove.
4519 (program_space::program_space): Update.
4520 (remove_program_space): Update.
4521 (number_of_program_spaces): Remove.
4522 (print_program_space, update_address_spaces): Update.
4523 * progspace.h (program_spaces): Change type.
4524 (ALL_PSPACES): Remove.
4525 (number_of_program_spaces): Don't declare.
4526 (struct program_space) <next>: Remove.
4527
a1fd1ac9
TT
45282020-05-08 Tom Tromey <tom@tromey.com>
4529
4530 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
4531 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
4532 (enable_break): Update.
4533 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
4534 (frv_fdpic_find_canonical_descriptor): Update.
4535 (frv_fetch_objfile_link_map): Update.
4536 * progspace.c (program_space::free_all_objfiles): Update.
4537 (program_space::solibs): New method.
4538 * progspace.h (struct program_space) <solibs>: New method.
4539 * solist.h (master_so_list): Don't declare.
4540 (ALL_SO_LIBS): Remove.
4541 * solib.h (so_list_head): Remove.
4542 (update_solib_list): Update comment.
4543 * solib.c (master_so_list): Remove.
4544 (solib_used, update_solib_list, solib_add)
4545 (info_sharedlibrary_command, clear_solib)
4546 (reload_shared_libraries_1, remove_user_added_objfile): Update.
4547
38eae084
TT
45482020-05-08 Tom Tromey <tom@tromey.com>
4549
4550 * extension.c (extension_languages): Now a std::array.
4551 (ALL_EXTENSION_LANGUAGES): Remove.
4552 (get_ext_lang_defn, get_ext_lang_of_file)
4553 (eval_ext_lang_from_control_command): Update.
4554 (finish_ext_lang_initialization)
4555 (auto_load_ext_lang_scripts_for_objfile)
4556 (ext_lang_type_printers::ext_lang_type_printers)
4557 (apply_ext_lang_type_printers)
4558 (ext_lang_type_printers::~ext_lang_type_printers)
4559 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
4560 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
4561 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
4562 (get_matching_xmethod_workers, ext_lang_colorize)
4563 (ext_lang_before_prompt): Update.
4564 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
4565
596dc4ad
TT
45662020-05-08 Tom Tromey <tom@tromey.com>
4567
4568 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
4569 overload.
4570 <swap_string, m_string>: Remove.
4571 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
4572 Update.
4573 * stabsread.c (define_symbol, read_type): Update.
4574 * linespec.c (find_linespec_symbols): Update.
4575 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
4576 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
4577 * dbxread.c (read_dbx_symtab): Update.
4578 * cp-support.h (cp_canonicalize_string_full)
4579 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
4580 Return unique_xmalloc_ptr.
4581 * cp-support.c (inspect_type): Update.
4582 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
4583 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
4584 Likewise.
4585 * c-typeprint.c (print_name_maybe_canonical): Update.
4586 * break-catch-throw.c (check_status_exception_catchpoint):
4587 Update.
4588
bf4cb9be
TV
45892020-05-08 Tom de Vries <tdevries@suse.de>
4590
4591 * infrun.c (follow_fork): Copy current_line and current_symtab to
4592 child thread.
4593
a1b68f28
SM
45942020-05-07 Simon Marchi <simon.marchi@efficios.com>
4595
4596 * async-event.c (struct async_signal_handler, struct
4597 async_event_handler): Reformat, remove typedef.
4598
98d48915
SM
45992020-05-07 Simon Marchi <simon.marchi@efficios.com>
4600
4601 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
4602 access thistype->main_type->dyn_prop_list directly.
4603
7aa91313
SM
46042020-05-07 Simon Marchi <simon.marchi@efficios.com>
4605
4606 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
4607 (remove_dyn_prop): Remove. Update all users to use
4608 type::remove_dyn_prop.
4609 * gdbtypes.c (remove_dyn_prop): Rename to...
4610 (type::remove_dyn_prop): ... this.
4611
5c54719c
SM
46122020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
4613
4614 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
4615 (add_dyn_prop): Remove. Update all users to use
4616 type::add_dyn_prop.
4617 * gdbtypes.c (add_dyn_prop): Rename to...
4618 (type::add_dyn_prop): ... this.
4619
24e99c6c
SM
46202020-05-07 Simon Marchi <simon.marchi@efficios.com>
4621
4622 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
4623 (get_dyn_prop): Remove. Update all users to use
4624 type::dyn_prop.
4625 * gdbtypes.c (get_dyn_prop): Rename to...
4626 (type::dyn_prop): ... this.
4627
0d4bf016
SM
46282020-05-06 Simon Marchi <simon.marchi@efficios.com>
4629
4630 * gdbtypes.h (struct main_type) <flag_static>: Remove.
4631
ac4a4f1c
SM
46322020-05-06 Simon Marchi <simon.marchi@efficios.com>
4633
4634 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
4635 instruction, skip it if it's there.
4636
a3bbacc1
SM
46372020-05-05 Simon Marchi <simon.marchi@efficios.com>
4638
4639 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
4640
c3236f84
SM
46412020-05-04 Simon Marchi <simon.marchi@efficios.com>
4642
4643 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
4644 * gdbtypes.c (recursive_dump_type): Remove use of
4645 TYPE_INCOMPLETE.
4646
3b6acaee
TT
46472020-05-03 Tom Tromey <tom@tromey.com>
4648
4649 * breakpoint.c (catch_command, tcatch_command): Remove.
4650 (_initialize_breakpoint): Use add_basic_prefix_cmd,
4651 add_show_prefix_cmd.
4652 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
4653 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
4654 Remove.
4655 (add_internal_problem_command): Use add_basic_prefix_cmd,
4656 add_show_prefix_cmd.
4657 * mips-tdep.c (set_mipsfpu_command): Remove.
4658 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
4659 * dwarf2/index-cache.c (set_index_cache_command): Remove.
4660 (_initialize_index_cache): Use add_basic_prefix_cmd.
4661 * memattr.c (dummy_cmd): Remove.
4662 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
4663 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
4664 (_initialize_tui_win): Use add_basic_prefix_cmd,
4665 add_show_prefix_cmd.
4666 * cli/cli-logging.c (set_logging_command): Remove.
4667 (_initialize_cli_logging): Use add_basic_prefix_cmd,
4668 add_show_prefix_cmd.
4669 (show_logging_command): Remove.
4670 * target.c (target_command): Remove.
4671 (add_target): Use add_basic_prefix_cmd.
4672
a51119cd
HD
46732020-05-02 Hannes Domani <ssbssa@yahoo.de>
4674
4675 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
4676
652fc23a 46772020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 4678
652fc23a
PW
4679 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
4680 info_command.
4681
117539e6
KR
46822020-04-30 Kamil Rytarowski <n54@gmx.com>
4683
4684 * nbsd-nat.c (nbsd_enable_proc_events)
4685 (nbsd_nat_target::post_startup_inferior): Add.
4686 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
4687 (nbsd_nat_target::update_thread_list): Rewrite.
4688 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
4689 "PTRACE_LWP_CREATE".
4690 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
4691
102e38eb 46922020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 4693
102e38eb
PW
4694 * stack.c (_initialize_stack): Remove duplicated creation
4695 of "frame" command and "f" alias.
4696
ee9d1e5f
HD
46972020-04-30 Hannes Domani <ssbssa@yahoo.de>
4698
4699 PR gdb/18706
4700 * gdbtypes.c (check_typedef): Calculate size of array of
4701 stubbed type.
4702
627c7fb8
HD
47032020-04-30 Hannes Domani <ssbssa@yahoo.de>
4704
4705 PR gdb/15559
4706 * i386-tdep.c (i386_push_dummy_call): Call
4707 i386_thiscall_push_dummy_call.
4708 (i386_thiscall_push_dummy_call): New function.
4709 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
4710 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
4711 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
4712
ffc2844e
SM
47132020-04-29 Simon Marchi <simon.marchi@efficios.com>
4714
4715 * gdbarch.sh (do_read): Add shellcheck disable directive for
4716 warning SC2162.
4717
1207375d
SM
47182020-04-29 Simon Marchi <simon.marchi@efficios.com>
4719
4720 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
4721 "referenced but not assigned" warning.
4722
9fdb2916
SM
47232020-04-29 Simon Marchi <simon.marchi@efficios.com>
4724
4725 * gdbarch.sh: Remove code that sets fallbackdefault.
4726
759cea5e
SM
47272020-04-29 Simon Marchi <simon.marchi@efficios.com>
4728
4729 * gdbarch.sh: Use shell operators && and || instead of
4730 -a and -o.
4731
cb02ab24
SM
47322020-04-29 Simon Marchi <simon.marchi@efficios.com>
4733
4734 * gdbarch.sh: Use $(...) instead of `...`.
4735
a6fc5ffc
SM
47362020-04-29 Simon Marchi <simon.marchi@efficios.com>
4737
4738 * gdbarch.sh: Use double quotes around variables.
4739
8d113d13
SM
47402020-04-29 Simon Marchi <simon.marchi@efficios.com>
4741
4742 * gdbarch.sh: Use %s with printf, instead of variables in the
4743 format string.
4744
ed6acedd
TT
47452020-04-29 Tom Tromey <tromey@adacore.com>
4746
4747 PR ada/25875:
4748 * dwarf2/read.c (update_enumeration_type_from_children): Compute
4749 type fields here.
4750 (read_enumeration_type): Call
4751 update_enumeration_type_from_children later. Update comments.
4752 (process_enumeration_scope): Don't create type fields.
4753
b68b1b58
KR
47542020-04-29 Kamil Rytarowski <n54@gmx.com>
4755
4756 * nbsd-tdep.c: Include "xml-syscall.h".
4757 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
4758
f94b2e03
KR
47592020-04-29 Kamil Rytarowski <n54@gmx.com>
4760
4761 * nbsd-nat.c: Include "sys/wait.h".
4762 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
4763 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
4764 (nbsd_nat_target::remove_exec_catchpoint)
4765 (nbsd_nat_target::set_syscall_catchpoint): Add.
4766 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
4767 (nbsd_nat_target::insert_exec_catchpoint)
4768 (nbsd_nat_target::remove_exec_catchpoint)
4769 (nbsd_nat_target::set_syscall_catchpoint): Add.
4770 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
4771 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
4772 `nbsd_get_syscall_number'.
4773
fc49bc72
TT
47742020-04-29 Tom Tromey <tom@tromey.com>
4775
4776 * stack.c (print_block_frame_labels): Remove.
4777
d642b692
HD
47782020-04-29 Hannes Domani <ssbssa@yahoo.de>
4779
4780 PR gdb/17320
4781 * ada-valprint.c (val_print_packed_array_elements): Move array
4782 end bracket to new line.
4783 (ada_val_print_string): Remove extra spaces before first array
4784 element.
4785 * c-valprint.c (c_value_print_array): Likewise.
4786 * m2-valprint.c (m2_print_array_contents): Likewise.
4787 (m2_value_print_inner): Likewise.
4788 * p-valprint.c (pascal_value_print_inner): Likewise.
4789 * valprint.c (generic_val_print_array): Likewise.
4790 (value_print_array_elements): Move first array element and array
4791 end bracket to new line.
4792
ea90f227
TV
47932020-04-29 Tom de Vries <tdevries@suse.de>
4794
4795 PR symtab/25889
4796 * linespec.c (find_method): Fix ix calculation.
4797
4498ef4f
KR
47982020-04-28 Kamil Rytarowski <n54@gmx.com>
4799
4800 * syscalls/update-netbsd.sh: New file.
4801 * syscalls/netbsd.xml: Regenerate.
4802 * data-directory/Makefile.in: Register `netbsd.xml' in
4803 `SYSCALLS_FILES'.
4804
a55e30b5
SM
48052020-04-28 Simon Marchi <simon.marchi@efficios.com>
4806
4807 * syscalls/update-freebsd.sh: Add double quotes.
4808
2b2fbab8
TT
48092020-04-28 Tom Tromey <tom@tromey.com>
4810
4811 * NEWS: Update.
4812 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
4813 (cmdpy_init): Allow class_tui.
4814
a65189c9
TV
48152020-04-28 Mark Williams <mark@myosotissp.com>
4816
4817 PR gdb/24480
4818 * dwarf2read.c: Add missing assingments to list_in_scope when
4819 start_symtab was already called.
4820
1b95cdb7
SM
48212020-04-28 Simon Marchi <simon.marchi@efficios.com>
4822
4823 PR gdb/25881
4824 * dwarf2/read.c (offset_map_type): Use
4825 gdb:hash_enum<sect_offset> as hash function.
4826
15cd93d0
TV
48272020-04-28 Tom de Vries <tdevries@suse.de>
4828
4829 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
4830 with DW_AT_signature.
4831
1eb39914
SM
48322020-04-27 Simon Marchi <simon.marchi@efficios.com>
4833
4834 * configure.ac: Remove check for fs_base/gs_base in
4835 user_regs_struct.
4836 * configure: Re-generate.
4837 * config.in: Re-generate.
4838 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
4839 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
4840 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
4841
991a3e2e
LM
48422020-04-27 Luis Machado <luis.machado@linaro.org>
4843
4844 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
4845 problematic inline frame unwinding situation.
4846 * frame.c (frame_id_computed_p): New function.
4847 * frame.h (frame_id_computed_p): New prototype.
4848
361ba0e8
TT
48492020-04-26 Tom Tromey <tom@tromey.com>
4850
4851 * command.h (enum command_class) <class_pseudo>: Remove.
4852
bc3609fd
PW
48532020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4854
4855 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
4856 and whitespace.
4857
b9771db7
KR
48582020-04-25 Kamil Rytarowski <n54@gmx.com>
4859
ec16513e
SM
4860 * inf-ptrace.c (inf_ptrace_target::wait): Remove
4861 `PT_GET_PROCESS_STATE' block.
b9771db7 4862
7151c1af
TT
48632020-04-24 Tom Tromey <tom@tromey.com>
4864
4865 * symtab.h (symbol_get_demangled_name): Don't declare.
4866 * symtab.c (symbol_get_demangled_name): Remove.
4867 (general_symbol_info::natural_name)
4868 (general_symbol_info::demangled_name): Update.
4869
906bb4c5
TT
48702020-04-24 Tom Tromey <tom@tromey.com>
4871
4872 PR rust/25025:
4873 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
4874
bcfe6157
TT
48752020-04-24 Tom Tromey <tom@tromey.com>
4876
4877 PR symtab/12707:
4878 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
4879 exists.
4880 (new_symbol): Likewise.
4881 * compile/compile-object-load.c (get_out_value_type): Use
4882 symbol_matches_search_name.
4883
f049a313
TT
48842020-04-24 Tom Tromey <tom@tromey.com>
4885
4886 * dwarf2/read.c (add_partial_symbol): Do not call
4887 compute_and_set_names.
4888
76e288d1
TT
48892020-04-24 Tom Tromey <tom@tromey.com>
4890
4891 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
4892 overload.
4893
2467f4f6
TT
48942020-04-24 Tom Tromey <tom@tromey.com>
4895
4896 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
4897 (add_psymbol_to_list): New overload. Make old overload call new
4898 one.
4899 * psympriv.h (add_psymbol_to_list): New overload.
4900
e61108c9
TT
49012020-04-24 Tom Tromey <tom@tromey.com>
4902
4903 * dwarf2/read.c (partial_die_info::read) <case
4904 DW_AT_linkage_name>: Use value_as_string.
4905 (dwarf2_string_attr): Use value_as_string.
4906 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
4907 method.
4908 * dwarf2/attribute.c (attribute::value_as_string): New method.
4909
8c87a452
TT
49102020-04-24 Tom Tromey <tom@tromey.com>
4911
4912 * symtab.c (general_symbol_info::natural_name)
4913 (general_symbol_info::demangled_name): Check for language_rust.
4914
787de330
TT
49152020-04-24 Tom Tromey <tom@tromey.com>
4916
4917 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
4918 (dwarf2_physname): ... from here.
4919 (partial_die_info::read): Add Rust "{" hack.
4920
ff985671
TT
49212020-04-24 Tom Tromey <tom@tromey.com>
4922
4923 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
4924 method.
4925 (symbol_set_demangled_name): Don't declare.
4926 * symtab.c (general_symbol_info::set_demangled_name): Rename from
4927 symbol_set_demangled_name.
4928 (general_symbol_info::set_language)
4929 (general_symbol_info::compute_and_set_names): Update.
4930 * minsyms.c (minimal_symbol_reader::install): Update.
4931 * dwarf2/read.c (new_symbol): Update.
4932
1acda803
TT
49332020-04-24 Tom Tromey <tromey@adacore.com>
4934
4935 PR python/23662:
4936 * python/py-type.c (convert_field): Handle
4937 FIELD_LOC_KIND_DWARF_BLOCK.
4938 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
4939 (typy_get_dynamic): Nw function.
4940 (type_object_getset): Add "dynamic".
4941 * NEWS: Add entry.
4942
d656f129
TT
49432020-04-24 Tom Tromey <tromey@adacore.com>
4944
4945 * ada-typeprint.c (print_choices, print_variant_part)
4946 (print_record_field_types_dynamic): New functions.
4947 (print_record_field_types): Use print_record_field_types_dynamic.
4948
7d79de9a
TT
49492020-04-24 Tom Tromey <tromey@adacore.com>
4950
4951 * dwarf2/read.c (handle_data_member_location): New overload.
4952 (dwarf2_add_field): Use it.
4953 (decode_locdesc): Add "computed" parameter. Update comment.
4954 * gdbtypes.c (is_dynamic_type_internal): Also look for
4955 FIELD_LOC_KIND_DWARF_BLOCK.
4956 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
4957 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
4958 virtual base classes.
4959 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
4960 FIELD_LOC_KIND_DWARF_BLOCK.
4961
f8e89861
TT
49622020-04-24 Tom Tromey <tromey@adacore.com>
4963
4964 * dwarf2/read.c (read_structure_type): Handle dynamic length.
4965 * gdbtypes.c (is_dynamic_type_internal): Check
4966 TYPE_HAS_DYNAMIC_LENGTH.
4967 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
4968 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
4969 New macros.
4970 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
4971 constant.
4972
9c6a1327
TT
49732020-04-24 Tom Tromey <tromey@adacore.com>
4974
4975 * dwarf2/read.c (struct variant_field): Rewrite.
4976 (struct variant_part_builder): New.
4977 (struct nextfield): Remove "variant" field. Add "offset".
4978 (struct field_info): Add "current_variant_part" and
4979 "variant_parts".
4980 (alloc_discriminant_info): Remove.
4981 (alloc_rust_variant): New function.
4982 (quirk_rust_enum): Update.
4983 (dwarf2_add_field): Set "offset" member. Don't handle
4984 DW_TAG_variant_part.
4985 (offset_map_type): New typedef.
4986 (convert_variant_range, create_one_variant)
4987 (create_one_variant_part, create_variant_parts)
4988 (add_variant_property): New functions.
4989 (dwarf2_attach_fields_to_type): Call add_variant_property.
4990 (read_structure_type): Don't handle DW_TAG_variant_part.
4991 (handle_variant_part, handle_variant): New functions.
4992 (handle_struct_member_die): Use them.
4993 (process_structure_scope): Don't handle variant parts.
4994 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
4995 (struct discriminant_info): Remove.
4996 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
4997 (struct main_type) <flag_discriminated_union>: Remove.
4998 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
4999 (rust_enum_variant): Return int. Remove "contents". Rewrite.
5000 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
5001 Update.
5002 * valops.c (value_union_variant): Remove.
5003 * value.h (value_union_variant): Don't declare.
5004
b249d2c2
TT
50052020-04-24 Tom Tromey <tromey@adacore.com>
5006
5007 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
5008 (ada_value_primitive_packed_val): Update.
5009 * ada-valprint.c (ada_value_print_1): Update.
5010 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
5011 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
5012 just an address. Use evaluate_for_locexpr_baton.
5013 (dwarf2_evaluate_property): Update.
5014 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
5015 array_view.
5016 * findvar.c (default_read_var_value): Update.
5017 * gdbtypes.c (compute_variant_fields_inner)
5018 (resolve_dynamic_type_internal): Update.
5019 (resolve_dynamic_type): Change type of valaddr parameter.
5020 * gdbtypes.h (resolve_dynamic_type): Update.
5021 * valarith.c (value_subscripted_rvalue): Update.
5022 * value.c (value_from_contents_and_address): Update.
5023
61122aa9
TT
50242020-04-24 Tom Tromey <tromey@adacore.com>
5025
5026 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
5027 "push_initial_value" parameter.
5028 (dwarf2_evaluate_property): Likewise.
5029 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
5030
ef83a141
TT
50312020-04-24 Tom Tromey <tromey@adacore.com>
5032
5033 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
5034 (variant::matches, compute_variant_fields_recurse)
5035 (compute_variant_fields_inner, compute_variant_fields): New
5036 functions.
5037 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
5038 Use resolved_type after type is made.
5039 (operator==): Add new cases.
5040 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
5041 (struct discriminant_range, struct variant, struct variant_part):
5042 New.
5043 (union dynamic_prop_data) <variant_parts, original_type>: New
5044 members.
5045 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
5046 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
5047 constants.
5048 * value.c (unpack_bits_as_long): Now public.
5049 * value.h (unpack_bits_as_long): Declare.
5050
675127ec
TT
50512020-04-24 Tom Tromey <tromey@adacore.com>
5052
5053 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
5054 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
5055
9852ceef
HD
50562020-04-24 Hannes Domani <ssbssa@yahoo.de>
5057
5058 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
5059
7632c6ce
KR
50602020-04-24 Kamil Rytarowski <n54@gmx.com>
5061
5062 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
5063 (remove_fork_catchpoint, post_startup_inferior)
5064 (post_attach): Move...
5065 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
5066 (remove_fork_catchpoint, post_startup_inferior)
5067 (post_attach): ...here.
5068 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
5069 (remove_fork_catchpoint, post_startup_inferior)
5070 (post_attach): Move...
5071 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
5072 (remove_fork_catchpoint, post_startup_inferior)
5073 (post_attach): ...here.
5074
7be2bb4f
TT
50752020-04-24 Tom Tromey <tromey@adacore.com>
5076
5077 * nat/windows-nat.h (struct windows_thread_info)
5078 <pc_adjusted>: New member.
5079 * windows-nat.c (windows_fetch_one_register): Check
5080 pc_adjusted.
5081 (windows_nat_target::get_windows_debug_event)
5082 (windows_nat_target::wait): Set pc_adjusted.
5083
f80cb3b4
TV
50842020-04-24 Tom de Vries <tdevries@suse.de>
5085
5086 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
5087 Run gdb-add-index inside temp dir.
5088
29514b87
TT
50892020-04-23 Tom Tromey <tromey@adacore.com>
5090
5091 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
5092 in loop.
5093
5939967b
LM
50942020-04-23 Luis Machado <luis.machado@linaro.org>
5095
5096 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
5097 get_frame_register instead of gdbarch_unwind_pc.
5098
70bc38f5
TV
50992020-04-23 Tom de Vries <tdevries@suse.de>
5100
5101 * symtab.c (lookup_global_symbol): Prefer def over decl.
5102
de82891c
TV
51032020-04-23 Tom de Vries <tdevries@suse.de>
5104
5105 PR symtab/25807
5106 * block.c (best_symbol, better_symbol): Promote to external.
5107 * block.h (best_symbol, better_symbol): Declare.
5108 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
5109 decl.
5110
ecc6c606
TT
51112020-04-23 Tom Tromey <tromey@adacore.com>
5112
5113 PR ada/25837:
5114 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
5115 "const char *", not a "const std::string &".
5116 <name_and_matcher::operator==>: Update.
5117 * unittests/lookup_name_info-selftests.c: Change type of
5118 "result".
5119
740480b8
TT
51202020-04-23 Tom Tromey <tom@tromey.com>
5121
5122 * inferior.h (iterate_over_inferiors): Don't declare.
5123 * inferior.c (iterate_over_inferiors): Remove.
5124 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
5125 Remove.
5126 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
5127 use iterate_over_inferiors.
5128 (darwin_resume_inferior_it)
5129 (struct resume_inferior_threads_param)
5130 (darwin_resume_inferior_threads_it): Remove.
5131 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
5132
ae3ab1f0
TV
51332020-04-23 Tom de Vries <tdevries@suse.de>
5134
5135 * blockframe.c (find_pc_partial_function): Use
5136 find_pc_sect_compunit_symtab rather than
5137 objfile->sf->qf->find_pc_sect_compunit_symtab.
5138
317d2668
TV
51392020-04-22 Tom de Vries <tdevries@suse.de>
5140
5141 PR symtab/25764
5142 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
5143 in psymtabs.
5144
eea9e357
TV
51452020-04-22 Tom de Vries <tdevries@suse.de>
5146
5147 PR symtab/25801
5148 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
5149 symtabs.
5150
3d5afab3
TV
51512020-04-22 Tom de Vries <tdevries@suse.de>
5152
5153 PR symtab/25700
5154 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
5155 CU if already created.
5156
d43b7a2d
TBA
51572020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5158
5159 * infrun.c (displaced_step_fixup): Switch to the event_thread
5160 before calling displaced_step_restore, not after.
5161
d89edf9b
MM
51622020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5163
5164 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
5165 its inferior is not recorded by us.
5166 (record_btrace_target_open): Replace call to
5167 all_non_exited_threads () with call to current_inferior
5168 ()->non_exited_threads ().
5169 (record_btrace_target::stop_recording): Likewise.
5170 (record_btrace_target::close): Likewise.
5171 (record_btrace_target::wait): Likewise.
5172 (record_btrace_target::record_stop_replaying): Likewise.
5173
5897fd49
MM
51742020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5175
5176 * btrace.c (btrace_enable): Throw an error on double enables and
5177 when enabling recording fails.
5178 (btrace_disable): Throw an error if the thread is not recorded.
5179
1a476b6d
MM
51802020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5181
5182 * record-btrace.c (record_btrace_target::fetch_registers): Forward
5183 request if we do not have a thread_info.
5184
4778a5f8
TV
51852020-04-21 Tom de Vries <tdevries@suse.de>
5186
5187 PR gdb/25471
5188 * thread.c
5189 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
5190 exception in get_frame_id.
5191
0fa7617d
TT
51922020-04-20 Tom Tromey <tromey@adacore.com>
5193
5194 * python/python.c (struct gdbpy_event): Mark move constructor as
5195 noexcept.
5196 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
5197 constructor as noexcept.
5198 * completer.h (struct completion_result): Mark move constructor as
5199 noexcept.
5200 * completer.c (completion_result::completion_result): Use
5201 initialization style. Don't call reset_match_list.
5202
ad23bda0
MS
52032020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
5204
5205 * MAINTAINERS (Write After Approval): Add myself.
5206
45e1f031
TT
52072020-04-18 Tom Tromey <tom@tromey.com>
5208
5209 * windows-tdep.c (init_w32_command_list)
5210 (w32_prefix_command_valid): Restore.
5211 (_initialize_windows_tdep): Call init_w32_command_list.
5212
08feed99
TT
52132020-04-18 Tom Tromey <tom@tromey.com>
5214
5215 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
5216 * value.c (value_fn_field): Update.
5217 * valops.c (find_function_in_inferior)
5218 (value_allocate_space_in_inferior): Update.
5219 * tui/tui-winsource.c (tui_update_source_windows_with_line):
5220 Update.
5221 * tui/tui-source.c (tui_source_window::set_contents): Update.
5222 * symtab.c (lookup_global_or_static_symbol)
5223 (find_function_start_sal_1, skip_prologue_sal)
5224 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
5225 * symmisc.c (dump_msymbols, dump_symtab_1)
5226 (maintenance_print_one_line_table): Update.
5227 * symfile.c (init_entry_point_info, section_is_mapped)
5228 (list_overlays_command, simple_read_overlay_table)
5229 (simple_overlay_update_1): Update.
5230 * stap-probe.c (handle_stap_probe): Update.
5231 * stabsread.c (dbx_init_float_type, define_symbol)
5232 (read_one_struct_field, read_enum_type, read_range_type): Update.
5233 * source.c (info_line_command): Update.
5234 * python/python.c (gdbpy_source_objfile_script)
5235 (gdbpy_execute_objfile_script): Update.
5236 * python/py-type.c (save_objfile_types): Update.
5237 * python/py-objfile.c (py_free_objfile): Update.
5238 * python/py-inferior.c (python_new_objfile): Update.
5239 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
5240 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
5241 (maintenance_check_psymtabs): Update.
5242 * printcmd.c (info_address_command): Update.
5243 * objfiles.h (struct objfile) <arch>: New method, from
5244 get_objfile_arch.
5245 (get_objfile_arch): Don't declare.
5246 * objfiles.c (get_objfile_arch): Remove.
5247 (filter_overlapping_sections): Update.
5248 * minsyms.c (msymbol_is_function): Update.
5249 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
5250 (output_nondebug_symbol): Update.
5251 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
5252 (mdebug_expand_psymtab): Update.
5253 * machoread.c (macho_add_oso_symfile): Update.
5254 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
5255 Update.
5256 * linux-fork.c (checkpoint_command): Update.
5257 * linespec.c (convert_linespec_to_sals): Update.
5258 * jit.c (finalize_symtab): Update.
5259 * infrun.c (insert_exception_resume_from_probe): Update.
5260 * ia64-tdep.c (ia64_find_unwind_table): Update.
5261 * hppa-tdep.c (internalize_unwinds): Update.
5262 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
5263 Update.
5264 * gcore.c (call_target_sbrk): Update.
5265 * elfread.c (record_minimal_symbol, elf_symtab_read)
5266 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
5267 (elf_gnu_ifunc_resolve_by_got): Update.
5268 * dwarf2/read.c (create_addrmap_from_index)
5269 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
5270 (read_debug_names_from_section)
5271 (process_psymtab_comp_unit_reader, add_partial_symbol)
5272 (add_partial_subprogram, process_full_comp_unit)
5273 (read_file_scope, read_func_scope, read_lexical_block_scope)
5274 (read_call_site_scope, dwarf2_ranges_read)
5275 (dwarf2_record_block_ranges, dwarf2_add_field)
5276 (mark_common_block_symbol_computed, read_tag_pointer_type)
5277 (read_tag_string_type, dwarf2_init_float_type)
5278 (dwarf2_init_complex_target_type, read_base_type)
5279 (partial_die_info::read, partial_die_info::read)
5280 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
5281 (dwarf2_fetch_die_loc_sect_off): Update.
5282 * dwarf2/loc.c (dwarf2_find_location_expression)
5283 (class dwarf_evaluate_loc_desc, rw_pieced_value)
5284 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
5285 (dwarf2_loc_desc_get_symbol_read_needs)
5286 (locexpr_describe_location_piece, locexpr_describe_location_1)
5287 (loclist_describe_location): Update.
5288 * dwarf2/index-write.c (write_debug_names): Update.
5289 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
5290 * dtrace-probe.c (dtrace_process_dof): Update.
5291 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
5292 (process_one_symbol): Update.
5293 * ctfread.c (ctf_init_float_type, read_base_type): Update.
5294 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
5295 (coff_read_enum_type): Update.
5296 * cli/cli-cmds.c (edit_command, list_command): Update.
5297 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
5298 * breakpoint.c (create_overlay_event_breakpoint)
5299 (create_longjmp_master_breakpoint)
5300 (create_std_terminate_master_breakpoint)
5301 (create_exception_master_breakpoint, get_sal_arch): Update.
5302 * block.c (block_gdbarch): Update.
5303 * annotate.c (annotate_source_line): Update.
5304
0743fc83
TT
53052020-04-17 Tom Tromey <tromey@adacore.com>
5306
5307 * auto-load.c (show_auto_load_cmd): Remove.
5308 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
5309 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
5310 (maintenance_print_arc_command): Remove.
5311 * tui/tui-win.c (tui_command): Remove.
5312 (tui_get_cmd_list): Use add_basic_prefix_cmd.
5313 * tui/tui-layout.c (tui_layout_command): Remove.
5314 (_initialize_tui_layout): Use add_basic_prefix_cmd.
5315 * python/python.c (user_set_python, user_show_python): Remove.
5316 (_initialize_python): Use add_basic_prefix_cmd,
5317 add_show_prefix_cmd.
5318 * guile/guile.c (set_guile_command, show_guile_command): Remove.
5319 (install_gdb_commands): Use add_basic_prefix_cmd,
5320 add_show_prefix_cmd.
5321 (info_guile_command): Remove.
5322 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
5323 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
5324 add_show_prefix_cmd.
5325 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
5326 Remove do_set and do_show parameters.
5327 * cli/cli-style.c (set_style, show_style): Remove.
5328 (_initialize_cli_style): Use add_basic_prefix_cmd,
5329 add_show_prefix_cmd.
5330 (cli_style_option::add_setshow_commands): Remove do_set and
5331 do_show parameters.
5332 (cli_style_option::add_setshow_commands): Use
5333 add_basic_prefix_cmd, add_show_prefix_cmd.
5334 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
5335 (set_style_name): Remove.
5336 * cli/cli-dump.c (dump_command, append_command): Remove.
5337 (srec_dump_command, ihex_dump_command, verilog_dump_command)
5338 (tekhex_dump_command, binary_dump_command)
5339 (binary_append_command): Remove.
5340 (_initialize_cli_dump): Use add_basic_prefix_cmd.
5341 * windows-tdep.c (w32_prefix_command_valid): Remove global.
5342 (init_w32_command_list): Remove; move into ...
5343 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
5344 * valprint.c (set_print, show_print, set_print_raw)
5345 (show_print_raw): Remove.
5346 (_initialize_valprint): Use add_basic_prefix_cmd,
5347 add_show_prefix_cmd.
5348 * typeprint.c (set_print_type, show_print_type): Remove.
5349 (_initialize_typeprint): Use add_basic_prefix_cmd,
5350 add_show_prefix_cmd.
5351 * record.c (set_record_command, show_record_command): Remove.
5352 (_initialize_record): Use add_basic_prefix_cmd,
5353 add_show_prefix_cmd.
5354 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
5355 add_show_prefix_cmd.
5356 (info_command, show_command, set_debug, show_debug): Remove.
5357 * top.h (set_history, show_history): Don't declare.
5358 * top.c (set_history, show_history): Remove.
5359 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
5360 (unset_tdesc_cmd): Remove.
5361 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
5362 add_show_prefix_cmd.
5363 * symtab.c (info_module_command): Remove.
5364 (_initialize_symtab): Use add_basic_prefix_cmd.
5365 * symfile.c (overlay_command): Remove.
5366 (_initialize_symfile): Use add_basic_prefix_cmd.
5367 * sparc64-tdep.c (info_adi_command): Remove.
5368 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
5369 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
5370 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
5371 add_show_prefix_cmd.
5372 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
5373 (_initialize_serial): Use add_basic_prefix_cmd,
5374 add_show_prefix_cmd.
5375 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
5376 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
5377 add_show_prefix_cmd.
5378 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
5379 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
5380 add_show_prefix_cmd.
5381 * riscv-tdep.c (show_riscv_command, set_riscv_command)
5382 (show_debug_riscv_command, set_debug_riscv_command): Remove.
5383 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
5384 add_show_prefix_cmd.
5385 * remote.c (remote_command, set_remote_cmd): Remove.
5386 (_initialize_remote): Use add_basic_prefix_cmd.
5387 * record-full.c (set_record_full_command)
5388 (show_record_full_command): Remove.
5389 (_initialize_record_full): Use add_basic_prefix_cmd,
5390 add_show_prefix_cmd.
5391 * record-btrace.c (cmd_set_record_btrace)
5392 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
5393 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
5394 (cmd_show_record_btrace_pt): Remove.
5395 (_initialize_record_btrace): Use add_basic_prefix_cmd,
5396 add_show_prefix_cmd.
5397 * ravenscar-thread.c (set_ravenscar_command)
5398 (show_ravenscar_command): Remove.
5399 (_initialize_ravenscar): Use add_basic_prefix_cmd,
5400 add_show_prefix_cmd.
5401 * mips-tdep.c (show_mips_command, set_mips_command)
5402 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
5403 add_show_prefix_cmd.
5404 * maint.c (maintenance_command, maintenance_info_command)
5405 (maintenance_check_command, maintenance_print_command)
5406 (maintenance_set_cmd, maintenance_show_cmd): Remove.
5407 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
5408 add_show_prefix_cmd.
5409 (show_per_command_cmd): Remove.
5410 * maint-test-settings.c (maintenance_set_test_settings_cmd):
5411 Remove.
5412 (maintenance_show_test_settings_cmd): Remove.
5413 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
5414 add_show_prefix_cmd.
5415 * maint-test-options.c (maintenance_test_options_command):
5416 Remove.
5417 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
5418 * macrocmd.c (macro_command): Remove
5419 (_initialize_macrocmd): Use add_basic_prefix_cmd.
5420 * language.c (set_check, show_check): Remove.
5421 (_initialize_language): Use add_basic_prefix_cmd,
5422 add_show_prefix_cmd.
5423 * infcmd.c (unset_command): Remove.
5424 (_initialize_infcmd): Use add_basic_prefix_cmd.
5425 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
5426 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
5427 add_show_prefix_cmd.
5428 * go32-nat.c (go32_info_dos_command): Remove.
5429 (_initialize_go32_nat): Use add_basic_prefix_cmd.
5430 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
5431 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
5432 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
5433 (_initialize_frame): Use add_basic_prefix_cmd,
5434 add_show_prefix_cmd.
5435 * dcache.c (set_dcache_command, show_dcache_command): Remove.
5436 (_initialize_dcache): Use add_basic_prefix_cmd,
5437 add_show_prefix_cmd.
5438 * cp-support.c (maint_cplus_command): Remove.
5439 (_initialize_cp_support): Use add_basic_prefix_cmd.
5440 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
5441 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
5442 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
5443 add_basic_prefix_cmd, add_show_prefix_cmd.
5444 * breakpoint.c (save_command): Remove.
5445 (_initialize_breakpoint): Use add_basic_prefix_cmd.
5446 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
5447 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
5448 add_show_prefix_cmd.
5449 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
5450 (set_ada_command, show_ada_command): Remove.
5451 (_initialize_ada_language): Use add_basic_prefix_cmd,
5452 add_show_prefix_cmd.
5453 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
5454
3557f442
KR
54552020-04-16 Kamil Rytarowski <n54@gmx.com>
5456
5457 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
5458 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
5459
16197208
SM
54602020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
5461
5462 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
5463 warning messages.
5464
00ac85d3
SM
54652020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
5466
5467 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
5468 import table is not at beginning of .idata section.
5469
381ce63f
PA
54702020-04-16 Pedro Alves <palves@redhat.com>
5471
5472 * inferior.c (delete_inferior): Use delete operator directly
5473 instead of delete_program_space.
5474 * progspace.c (add_program_space): New, factored out from
5475 program_space::program_space.
5476 (remove_program_space): New, factored out from
5477 delete_program_space.
5478 (program_space::program_space): Remove intro comment. Rewrite.
5479 (program_space::~program_space): Remove intro comment. Call
5480 remove_program_space.
5481 (delete_program_space): Delete.
5482 * progspace.h (program_space::program_space): Make explicit. Move
5483 intro comment here, adjusted.
5484 (program_space::~program_space): Move intro comment here,
5485 adjusted.
5486 (delete_program_space): Remove.
5487
a010605f
TT
54882020-04-16 Tom Tromey <tromey@adacore.com>
5489
5490 * windows-nat.c (windows_nat::handle_access_violation): New
5491 function.
5492 * nat/windows-nat.h (handle_access_violation): Declare.
5493 * nat/windows-nat.c (handle_exception): Move Cygwin code to
5494 windows-nat.c. Call handle_access_violation.
5495
efba5c23
TV
54962020-04-16 Tom de Vries <tdevries@suse.de>
5497
5498 PR symtab/25791
5499 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
5500 CUs without psymtab.
5501
97ed802d
KB
55022020-04-16 Kevin Buettner <kevinb@redhat.com>
5503
5504 * python/python.c (do_start_initialization): Don't call
5505 PyEval_InitThreads for Python 3.9 and beyond.
5506
c7d64809
KR
55072020-04-15 Kamil Rytarowski <n54@gmx.com>
5508
5509 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
5510 thread functions.
5511 (obsd_nat_target::wait): Likewise.
5512
ce127a96
TT
55132020-04-15 Tom Tromey <tromey@adacore.com>
5514
5515 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
5516 (DEBUG_EXCEPT): Use debug_printf.
5517
99f1bc6a
AB
55182020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
5519
5520 * completer.c (class completion_tracker::completion_hash_entry)
5521 <hash_name>: New member function.
5522 (completion_tracker::discard_completions): New callback to hash a
5523 completion_hash_entry, pass this to htab_create_alloc.
5524
a0e9b532
JT
55252016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
5526
5527 * windows-nat.c (windows_make_so): Warn rather than stopping with
5528 an error if realpath() fails.
5529
06ca5dd4
KR
55302020-04-14 Kamil Rytarowski <n54@gmx.com>
5531
5532 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
5533 (nbsd_nat_target::info_proc): Add do_status.
5534
194d088f
TV
55352020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
5536 Tom de Vries <tdevries@suse.de>
5537
5538 PR symtab/25718
5539 * psympriv.h (struct partial_symtab::read_symtab)
5540 (struct partial_symtab::expand_psymtab)
5541 (struct partial_symtab::read_dependencies): Update comments.
5542 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
5543 read_symtab for includer.
5544 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
5545 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
5546 (struct dwarf2_include_psymtab::m_readin): Remove.
5547 (struct dwarf2_include_psymtab::includer): New member function.
5548 (dwarf2_psymtab::expand_psymtab): Assert !readin.
5549
c1a66c06
TV
55502020-04-14 Tom de Vries <tdevries@suse.de>
5551
5552 PR symtab/25720
5553 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
5554 with NULL symbol_matcher and lookup_name.
5555 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
5556 and lookup_name.
5557 * dwarf2/read.c (dw2_expand_symtabs_matching)
5558 (dw2_debug_names_expand_symtabs_matching): Same.
5559 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
5560 Make lookup_name a pointer. Update comment.
5561 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
5562 lookup_name being a pointer.
5563 * symfile.c (expand_symtabs_matching): Same.
5564 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
5565 * linespec.c (iterate_over_all_matching_symtabs): Same.
5566
400b5eca
TT
55672020-04-13 Tom Tromey <tom@tromey.com>
5568
5569 * run-on-main-thread.c: Update include.
5570 * unittests/main-thread-selftests.c: Update include.
5571 * tui/tui-win.c: Update include.
5572 * tui/tui-io.c: Update include.
5573 * tui/tui-interp.c: Update include.
5574 * tui/tui-hooks.c: Update include.
5575 * top.h: Update include.
5576 * top.c: Update include.
5577 * ser-base.c: Update include.
5578 * remote.c: Update include.
5579 * remote-notif.c: Update include.
5580 * remote-fileio.c: Update include.
5581 * record-full.c: Update include.
5582 * record-btrace.c: Update include.
5583 * python/python.c: Update include.
5584 * posix-hdep.c: Update include.
5585 * mingw-hdep.c: Update include.
5586 * mi/mi-main.c: Update include.
5587 * mi/mi-interp.c: Update include.
5588 * main.c: Update include.
5589 * linux-nat.c: Update include.
5590 * interps.c: Update include.
5591 * infrun.c: Update include.
5592 * inf-loop.c: Update include.
5593 * event-top.c: Update include.
5594 * event-loop.c: Move to ../gdbsupport/.
5595 * event-loop.h: Move to ../gdbsupport/.
5596 * async-event.h: Update include.
5597 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
5598
93b54c8e
TT
55992020-04-13 Tom Tromey <tom@tromey.com>
5600
5601 * tui/tui-win.c: Include async-event.h.
5602 * remote.c: Include async-event.h.
5603 * remote-notif.c: Include async-event.h.
5604 * record-full.c: Include async-event.h.
5605 * record-btrace.c: Include async-event.h.
5606 * infrun.c: Include async-event.h.
5607 * event-top.c: Include async-event.h.
5608 * event-loop.h: Move some declarations to async-event.h.
5609 * event-loop.c: Don't include ser-event.h or top.h. Move some
5610 code to async-event.c.
5611 * async-event.h: New file.
5612 * async-event.c: New file.
5613 * Makefile.in (COMMON_SFILES): Add async-event.c.
5614 (HFILES_NO_SRCDIR): Add async-event.h.
5615
c1cd3163
TT
56162020-04-13 Tom Tromey <tom@tromey.com>
5617
5618 * utils.c (flush_streams): New function.
5619 * event-loop.c (gdb_wait_for_event): Call flush_streams.
5620
29f2bf4f
TT
56212020-04-13 Tom Tromey <tom@tromey.com>
5622
5623 * event-loop.c (handle_file_event): Use warning, not
5624 printf_unfiltered.
5625
98029d02
TT
56262020-04-13 Tom Tromey <tom@tromey.com>
5627
5628 * event-loop.c: Include <chrono>.
5629
06cc9596
TT
56302020-04-13 Tom Tromey <tom@tromey.com>
5631
5632 * gdb_select.h: Move to ../gdbsupport/.
5633 * event-loop.c: Update include path.
5634 * top.c: Update include path.
5635 * ser-base.c: Update include path.
5636 * ui-file.c: Update include path.
5637 * ser-tcp.c: Update include path.
5638 * guile/scm-ports.c: Update include path.
5639 * posix-hdep.c: Update include path.
5640 * ser-unix.c: Update include path.
5641 * gdb_usleep.c: Update include path.
5642 * mingw-hdep.c: Update include path.
5643 * inflow.c: Update include path.
5644 * infrun.c: Update include path.
5645 * event-top.c: Update include path.
5646
8ae8e197
TT
56472020-04-13 Tom Tromey <tom@tromey.com>
5648
5649 * configure: Rebuild.
5650 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
5651
58cf28e8
TT
56522020-04-13 Tom Tromey <tom@tromey.com>
5653
5654 * event-loop.h (start_event_loop): Don't declare.
5655 * event-loop.c (start_event_loop): Move...
5656 * main.c (start_event_loop): ...here. Now static.
5657
b7f999ae
SDJ
56582020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
5659
5660 * MAINTAINERS: Update my email address.
5661
1085dfd4
KR
56622020-04-12 Kamil Rytarowski <n54@gmx.com>
5663
5664 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
5665 IP_ALL.
5666
49d1d1f5
KR
56672020-04-12 Kamil Rytarowski <n54@gmx.com>
5668
5669 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 5670 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 5671
b4848d2a
KR
56722020-04-12 Kamil Rytarowski <n54@gmx.com>
5673
5674 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 5675 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 5676
51c133d5
KR
56772020-04-12 Kamil Rytarowski <n54@gmx.com>
5678
5679 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
5680
54b8cbd0
KR
56812020-04-11 Kamil Rytarowski <n54@gmx.com>
5682
5683 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
5684 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
5685 (nbsd_nat_target::info_proc): New functions.
5686 * nbsd-nat.c (kinfo_get_vmmap): New function.
5687 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
5688 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
5689 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
5690 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
5691 functions.
5692 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
5693 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
5694 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
5695 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
5696 (KINFO_VME_FLAG_GROWS_DOWN): New.
5697
cf83625d
AS
56982020-04-10 Artur Shepilko <nomadbyte@gmail.com>
5699
5700 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
5701 bit shift.
5702
0c4311ab
TT
57032020-04-10 Tom Tromey <tromey@adacore.com>
5704
5705 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
5706
3e65b3e9
TT
57072020-04-10 Tom Tromey <tromey@adacore.com>
5708
5709 * symtab.c (get_symbol_address, get_msymbol_address): Skip
5710 separate debug files.
5711
13302e95
HD
57122020-04-10 Hannes Domani <ssbssa@yahoo.de>
5713
5714 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5715 Move to...
5716 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5717 ... here.
5718 * windows-nat.c (windows_nat_target::get_windows_debug_event):
5719 Check for STATUS_WX86_BREAKPOINT.
5720 (windows_nat_target::wait): Same.
5721
bdfc1e8a
TV
57222020-04-10 Tom de Vries <tdevries@suse.de>
5723
5724 PR cli/25808
5725 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
5726
f4460aec
SM
57272020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
5728
5729 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
5730 (Write After Approval): Remove Tom de Vries.
5731
a25198bb
BE
57322020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
5733
5734 revert partially:
5735 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5736
aac66a4c
SM
5737 * buildsym.c (record_line): Fix undefined behavior and preserve
5738 lines at eof.
a25198bb 5739
206c98a6
KR
57402020-04-09 Kamil Rytarowski <n54@gmx.com>
5741
5742 * auxv.h (svr4_auxv_parse): New.
5743 * auxv.c (default_auxv_parse): Split into default_auxv_parse
5744 and generic_auxv_parse.
5745 (svr4_auxv_parse): Add.
5746 * obsd-tdep.c: Include "auxv.h".
5747 (obsd_auxv_parse): Remove.
5748 (obsd_init_abi): Remove comment.
5749 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
5750 from `obsd_auxv_parse' to `svr4_auxv_parse'.
5751 * nbsd-tdep.c: Include "auxv.h".
5752 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
5753
71fbdbaf
TT
57542020-04-08 Tom Tromey <tromey@adacore.com>
5755
5756 * nat/windows-nat.h (last_wait_event): Don't declare.
5757 (wait_for_debug_event): Update comment.
5758 * nat/windows-nat.c (last_wait_event): Now static.
5759
2c1d95e8
TT
57602020-04-08 Tom Tromey <tromey@adacore.com>
5761
5762 * windows-nat.c (wait_for_debug_event): Move to
5763 nat/windows-nat.c.
5764 * nat/windows-nat.h (wait_for_debug_event): Declare.
5765 * nat/windows-nat.c (wait_for_debug_event): Move from
5766 windows-nat.c. No longer static.
5767
d2977bc4
TT
57682020-04-08 Tom Tromey <tromey@adacore.com>
5769
5770 * windows-nat.c (get_windows_debug_event): Use
5771 fetch_pending_stop.
5772 * nat/windows-nat.h (fetch_pending_stop): Declare.
5773 * nat/windows-nat.c (fetch_pending_stop): New function.
5774
e758e19c
TT
57752020-04-08 Tom Tromey <tromey@adacore.com>
5776
5777 * windows-nat.c (windows_continue): Use matching_pending_stop and
5778 continue_last_debug_event.
5779 * nat/windows-nat.h (matching_pending_stop)
5780 (continue_last_debug_event): Declare.
5781 * nat/windows-nat.c (DEBUG_EVENTS): New define.
5782 (matching_pending_stop, continue_last_debug_event): New
5783 functions.
5784
8d30e395
TT
57852020-04-08 Tom Tromey <tromey@adacore.com>
5786
5787 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
5788 (handle_exception_result): Move to nat/windows-nat.h.
5789 (DEBUG_EXCEPTION_SIMPLE): Remove.
5790 (windows_nat::handle_ms_vc_exception): New function.
5791 (handle_exception): Move to nat/windows-nat.c.
5792 (get_windows_debug_event): Update.
5793 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
5794 nat/windows-nat.c.
5795 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
5796 (handle_exception_result): Move from windows-nat.c.
5797 (handle_exception): Declare.
5798 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
5799 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
5800 windows-nat.c.
5801
29de418d
TT
58022020-04-08 Tom Tromey <tromey@adacore.com>
5803
5804 * windows-nat.c (exception_count, event_count): Remove.
5805 (handle_exception, get_windows_debug_event)
5806 (do_initial_windows_stuff): Update.
5807
a816ba18
TT
58082020-04-08 Tom Tromey <tromey@adacore.com>
5809
5810 * windows-nat.c (windows_nat::handle_load_dll)
5811 (windows_nat::handle_unload_dll): Rename. No longer static.
5812 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
5813 Declare.
5814
a00caa12
TT
58152020-04-08 Tom Tromey <tromey@adacore.com>
5816
5817 * complaints.h (stop_whining): Declare at top-level.
5818 (complaint): Don't declare stop_whining.
5819
d41b524f
TT
58202020-04-08 Tom Tromey <tromey@adacore.com>
5821
5822 * windows-nat.c (windows_nat::handle_output_debug_string):
5823 Rename. No longer static.
5824 * nat/windows-nat.h (handle_output_debug_string): Declare.
5825
3c76026d
TT
58262020-04-08 Tom Tromey <tromey@adacore.com>
5827
5828 * windows-nat.c (current_process_handle, current_process_id)
5829 (main_thread_id, last_sig, current_event, last_wait_event)
5830 (current_windows_thread, desired_stop_thread_id, pending_stops)
5831 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
5832 (display_selectors, fake_create_process)
5833 (get_windows_debug_event): Update.
5834 * nat/windows-nat.h (current_process_handle, current_process_id)
5835 (main_thread_id, last_sig, current_event, last_wait_event)
5836 (current_windows_thread, desired_stop_thread_id, pending_stops)
5837 (struct pending_stop, siginfo_er): Move from windows-nat.c.
5838 * nat/windows-nat.c (current_process_handle, current_process_id)
5839 (main_thread_id, last_sig, current_event, last_wait_event)
5840 (current_windows_thread, desired_stop_thread_id, pending_stops)
5841 (siginfo_er): New globals. Move from windows-nat.c.
5842
9d8679cc
TT
58432020-04-08 Tom Tromey <tromey@adacore.com>
5844
5845 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
5846 (handle_load_dll): Update.
5847 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
5848
28688adf
TT
58492020-04-08 Tom Tromey <tromey@adacore.com>
5850
5851 * windows-nat.c (enum thread_disposition_type): Move to
5852 nat/windows-nat.h.
5853 (windows_nat::thread_rec): Rename from thread_rec. No longer
5854 static.
5855 (windows_add_thread, windows_nat_target::fetch_registers)
5856 (windows_nat_target::store_registers, handle_exception)
5857 (windows_nat_target::resume, get_windows_debug_event)
5858 (windows_nat_target::get_tib_address)
5859 (windows_nat_target::thread_name)
5860 (windows_nat_target::thread_alive): Update.
5861 * nat/windows-nat.h (enum thread_disposition_type): Move from
5862 windows-nat.c.
5863 (thread_rec): Declare.
5864
4834dad0
TT
58652020-04-08 Tom Tromey <tromey@adacore.com>
5866
5867 * windows-nat.c: Add "using namespace".
5868 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
5869 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
5870
65bafd5b
TT
58712020-04-08 Tom Tromey <tromey@adacore.com>
5872
5873 * nat/windows-nat.h (struct windows_thread_info): Declare
5874 destructor.
5875 * nat/windows-nat.c (~windows_thread_info): New.
5876
0a4afda3
TT
58772020-04-08 Tom Tromey <tromey@adacore.com>
5878
5879 PR gdb/22992
5880 * windows-nat.c (current_event): Update comment.
5881 (last_wait_event, desired_stop_thread_id): New globals.
5882 (struct pending_stop): New.
5883 (pending_stops): New global.
5884 (windows_nat_target) <stopped_by_sw_breakpoint>
5885 <supports_stopped_by_sw_breakpoint>: New methods.
5886 (windows_fetch_one_register): Add assertions. Adjust PC.
5887 (windows_continue): Handle pending stops. Suspend other threads
5888 when stepping. Use last_wait_event
5889 (wait_for_debug_event): New function.
5890 (get_windows_debug_event): Use wait_for_debug_event. Handle
5891 pending stops. Queue spurious stops.
5892 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
5893 (windows_nat_target::kill): Use wait_for_debug_event.
5894 * nat/windows-nat.h (struct windows_thread_info)
5895 <stopped_at_software_breakpoint>: New field.
5896 * nat/windows-nat.c (windows_thread_info::resume): Clear
5897 stopped_at_software_breakpoint.
5898
8e61ebec
TT
58992020-04-08 Tom Tromey <tromey@adacore.com>
5900
5901 * windows-nat.c (enum thread_disposition_type): New.
5902 (thread_rec): Replace "get_context" parameter with "disposition";
5903 change type.
5904 (windows_add_thread, windows_nat_target::fetch_registers)
5905 (windows_nat_target::store_registers, handle_exception)
5906 (windows_nat_target::resume, get_windows_debug_event)
5907 (windows_nat_target::get_tib_address)
5908 (windows_nat_target::thread_name)
5909 (windows_nat_target::thread_alive): Update.
5910
98a03287
TT
59112020-04-08 Tom Tromey <tromey@adacore.com>
5912
5913 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
5914 (windows_continue): Use windows_continue::resume.
5915 * nat/windows-nat.h (struct windows_thread_info) <suspend,
5916 resume>: Declare new methods.
5917 * nat/windows-nat.c: New file.
5918 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
5919
7c7411bc
TT
59202020-04-08 Tom Tromey <tromey@adacore.com>
5921
5922 * windows-nat.c (windows_add_thread, windows_delete_thread)
5923 (windows_nat_target::fetch_registers)
5924 (windows_nat_target::store_registers, fake_create_process)
5925 (windows_nat_target::resume, windows_nat_target::resume)
5926 (get_windows_debug_event, windows_nat_target::wait)
5927 (windows_nat_target::pid_to_str)
5928 (windows_nat_target::get_tib_address)
5929 (windows_nat_target::get_ada_task_ptid)
5930 (windows_nat_target::thread_name)
5931 (windows_nat_target::thread_alive): Use lwp, not tid.
5932
2950fdf7
TT
59332020-04-08 Tom Tromey <tromey@adacore.com>
5934
5935 * windows-nat.c (handle_exception)
5936 (windows_nat_target::thread_name): Update.
5937 * nat/windows-nat.h (windows_thread_info): Remove destructor.
5938 <name>: Now unique_xmalloc_ptr.
5939
62fe396b
TT
59402020-04-08 Tom Tromey <tromey@adacore.com>
5941
5942 * windows-nat.c (thread_rec)
5943 (windows_nat_target::fetch_registers): Update.
5944 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
5945 Update comment.
5946 <debug_registers_changed, reload_context>: Now bool.
5947
e9534bd2
TT
59482020-04-08 Tom Tromey <tromey@adacore.com>
5949
5950 * windows-nat.c (windows_add_thread): Use new.
5951 (windows_init_thread_list, windows_delete_thread): Use delete.
5952 (get_windows_debug_event): Update.
5953 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
5954 destructor, and initializers.
5955
ae1f8880
TT
59562020-04-08 Tom Tromey <tromey@adacore.com>
5957
5958 * windows-nat.c (struct windows_thread_info): Remove.
5959 * nat/windows-nat.h: New file.
5960
55a1e039
TT
59612020-04-08 Tom Tromey <tromey@adacore.com>
5962
5963 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
5964 (thread_rec, windows_add_thread, windows_delete_thread)
5965 (windows_continue): Update.
5966
93366324
TT
59672020-04-08 Tom Tromey <tromey@adacore.com>
5968
5969 * windows-nat.c (struct windows_thread_info): Remove typedef.
5970 (thread_head): Remove.
5971 (thread_list): New global.
5972 (thread_rec, windows_add_thread, windows_init_thread_list)
5973 (windows_delete_thread, windows_continue): Update.
5974
0f2265e2
SM
59752020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
5976
5977 * windows-tdep.h (windows_init_abi): Add comment.
5978 (cygwin_init_abi): New declaration.
5979 * windows-tdep.c: Split signal enumeration in two, one for
5980 Windows and one for Cygwin.
5981 (windows_gdb_signal_to_target): Only deal with signal of the
5982 Windows OS ABI.
5983 (cygwin_gdb_signal_to_target): New function.
5984 (windows_init_abi): Rename to windows_init_abi_common, don't set
5985 gdb_signal_to_target gdbarch method. Add new new function with
5986 this name.
5987 (cygwin_init_abi): New function.
5988 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
5989 comment. Don't call windows_init_abi.
5990 (amd64_windows_init_abi): Add comment, call windows_init_abi.
5991 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
5992 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
5993 i386_windows_init_abi_common, don't call windows_init_abi. Add
5994 a new function of this name.
5995 (i386_cygwin_init_abi): New function.
5996 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
5997 OS ABI Cygwin.
5998
3810f182
SM
59992020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6000
6001 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
6002 parameter.c.
6003 (dwarf2_read_gdb_index): Update.
6004
063f8e80
KR
60052020-04-07 Kamil Rytarowski <n54@gmx.com>
6006
6007 * nbsd-tdep.c: Include "objfiles.h".
6008 (nbsd_skip_solib_resolver): New.
6009 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
6010
85a9510c 60112020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6012
6013 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
6014 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
6015 with DW_LLE_base_addressx are being emitted in DWARFv5.
6016 Add the newly added kind DW_LOC_OFFSET_PAIR also.
6017 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
6018 unsigned integer.
6019
9fc3eaae 60202020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6021
6022 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
6023 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
6024 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
6025 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
6026 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
6027 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
6028 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
6029
6030
41144253 60312020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6032
6033 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
6034 (read_loclist_index): New function definition.
6035 (lookup_loclist_base): New function definition.
6036 (read_loclist_header): New function definition.
6037 (dwarf2_cu): Add loclist_base and loclist_header field.
6038 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
6039 (read_full_die_1): Read the value of DW_AT_loclists_base.
6040 (read_attribute_reprocess): Handle DW_FORM_loclistx.
6041 (read_attribute_value): Handle DW_FORM_loclistx.
6042 (skip_one_die): Handle DW_FORM_loclistx.
6043 (loclist_header): New structure declaration.
6044 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
6045
9f4e76a4
SM
60462020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
6047
6048 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
6049 constructor. Remove `addr` parameter from other constructor and
6050 add `per_cu` parameter.
6051 * dwarf2/read.c (create_partial_symtab): Update.
6052
25c11aca
TV
60532020-04-07 Tom de Vries <tdevries@suse.de>
6054
6055 PR symtab/25796
6056 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
6057 (partial_die_info::fixup): Inherit has_const_value.
6058
5707e24b
TV
60592020-04-07 Tom de Vries <tdevries@suse.de>
6060
6061 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
6062 symbols without address.
6063
05f00e22
KR
60642020-04-06 Kamil Rytarowski <n54@gmx.com>
6065
6066 * nbsd-nat.h (struct thread_info): Add forward declaration.
6067 (nbsd_nat_target::thread_alive): Add.
6068 (nbsd_nat_target::thread_name): Likewise.
6069 (nbsd_nat_target::update_thread_list): Likewise.
6070 (update_thread_list::post_attach): Likewise.
6071 (post_attach::pid_to_str): Likewise.
6072 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
6073 (nbsd_thread_lister): Add.
6074 (nbsd_nat_target::thread_alive): Likewise.
6075 (nbsd_nat_target::thread_name): Likewise.
6076 (nbsd_add_threads): Likewise.
6077 (update_thread_list::post_attach): Likewise.
6078 (nbsd_nat_target::update_thread_list): Likewise.
6079 (post_attach::pid_to_str): Likewise.
6080
6ee448cc
TT
60812020-04-06 Tom Tromey <tromey@adacore.com>
6082
6083 * ada-valprint.c (print_variant_part): Extract the variant field.
6084 (print_field_values): Use the field as the outer value when
6085 recursing.
6086
dea34e8c
TT
60872020-04-06 Tom Tromey <tromey@adacore.com>
6088
6089 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
6090 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
6091 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
6092 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
6093 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
6094
93689ce9
TT
60952020-04-06 Tom Tromey <tromey@adacore.com>
6096
6097 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
6098 TYPE_CODE_ERROR.
6099
79743962
KR
61002020-04-06 Kamil Rytarowski <n54@gmx.com>
6101
6102 * nbsd-tdep.c: Include "gdbarch.h".
6103 Define enum with NetBSD signal numbers.
6104 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
6105 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
6106 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
6107 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
6108 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
6109 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
6110 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
6111 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
6112 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
6113 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
6114 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
6115 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
6116
9e7c9a03
HD
61172020-04-03 Hannes Domani <ssbssa@yahoo.de>
6118
6119 PR gdb/25325
6120 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
6121
d9e49b61
TT
61222020-04-03 Tom Tromey <tromey@adacore.com>
6123
6124 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
6125 Read constant block.
6126
e0fc5c3f
SM
61272020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6128
6129 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
6130 (gdb_bfd_get_full_section_contents): New declaration.
6131 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
6132 * windows-tdep.c (is_linked_with_cygwin_dll): Use
6133 gdb_bfd_get_full_section_contents.
6134
e2ff18a0
SM
61352020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6136
6137 * exec.c (build_section_table): Replace internal_error with
6138 gdb_assert.
6139 (section_table_xfer_memory_partial): Likewise.
6140 * mdebugread.c (parse_partial_symbols): Likewise.
6141 * psymtab.c (lookup_partial_symbol): Likewise.
6142 * utils.c (wrap_here): Likewise.
6143
0830d301
TT
61442020-04-02 Tom Tromey <tromey@adacore.com>
6145
6146 * f-lang.c (build_fortran_types): Use arch_type to initialize
6147 builtin_complex_s32 in the TYPE_CODE_ERROR case.
6148
e7da7f8f
TT
61492020-04-02 Tom Tromey <tromey@adacore.com>
6150
6151 * dwarf2/read.c (partial_die_info::read): Do not create a vector
6152 of attributes.
6153
c90d28ac
AB
61542020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
6155 Bernd Edlinger <bernd.edlinger@hotmail.de>
6156 Tom Tromey <tromey@adacore.com>
6157
6158 * buildsym.c (buildsym_compunit::record_line): Remove
6159 deduplication code.
6160
1aa98955
TV
61612020-04-02 Tom de Vries <tdevries@suse.de>
6162
6163 PR ada/24671
6164 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
6165
d3214198
TV
61662020-04-02 Tom de Vries <tdevries@suse.de>
6167
6168 * dwarf2/read.c (dwarf2_gdb_index_functions,
6169 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
6170 NULL.
6171 * psymtab.c (psym_lookup_global_symbol_language): New function.
6172 (psym_functions): Init psym_lookup_global_symbol_language with
6173 psym_lookup_global_symbol_language.
6174 * symfile-debug.c (debug_sym_quick_functions): Init
6175 lookup_global_symbol_language with NULL.
6176 * symfile.c (set_initial_language): Remove fixme comment.
6177 * symfile.h (struct quick_symbol_functions): Add
6178 lookup_global_symbol_language.
6179 * symtab.c (find_quick_global_symbol_language): New function.
6180 (find_main_name): Use find_quick_global_symbol_language.
6181
2836752f
SM
61822020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
6183
6184 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
6185
64dc2d4b
BE
61862020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6187
6188 * buildsym.c (record_line): Fix undefined behavior and preserve
6189 lines at eof.
6190
bbe3dc41
BE
61912020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6192
6193 * buildsym.c (record_line): Fix the resizing condition.
6194
6b4a335b
TT
61952020-04-01 Tom Tromey <tom@tromey.com>
6196
6197 * value.h (value_literal_complex): Add comment.
6198 * valops.c (value_literal_complex): Refer to value.h.
6199
3638a098
TT
62002020-04-01 Tom Tromey <tom@tromey.com>
6201
6202 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
6203 (scalar_type): New rule, from typebase.
6204 (typebase): Use scalar_type. Recognize complex types.
6205 (field_name): Handle FLOAT_KEYWORD.
6206 (ident_tokens): Add _Complex and __complex__.
6207
c34e8714
TT
62082020-04-01 Tom Tromey <tom@tromey.com>
6209
6210 PR exp/25299:
6211 * valarith.c (promotion_type, complex_binop): New functions.
6212 (scalar_binop): Handle complex numbers. Use promotion_type.
6213 (value_pos, value_neg, value_complement): Handle complex numbers.
6214
fa649bb7
TT
62152020-04-01 Tom Tromey <tom@tromey.com>
6216
6217 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
6218 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
6219 (parse_number): Handle complex numbers.
6220
981c08ce
TT
62212020-04-01 Tom Tromey <tom@tromey.com>
6222
6223 * c-valprint.c (c_decorations): Change complex suffix to "i".
6224
4c99290d
TT
62252020-04-01 Tom Tromey <tom@tromey.com>
6226
6227 * valprint.c (generic_value_print_complex): Use accessors.
6228 * value.h (value_real_part, value_imaginary_part): Declare.
6229 * valops.c (value_real_part, value_imaginary_part): New
6230 functions.
6231 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
6232
5b930b45
TT
62332020-04-01 Tom Tromey <tom@tromey.com>
6234
6235 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
6236 (read_range_type): Update.
6237 * mdebugread.c (basic_type): Update.
6238 * go-lang.c (build_go_types): Use init_complex_type.
6239 * gdbtypes.h (struct main_type) <complex_type>: New member.
6240 (init_complex_type): Update.
6241 (arch_complex_type): Don't declare.
6242 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
6243 Make name if none given. Use alloc_type_copy. Look for cached
6244 complex type.
6245 (arch_complex_type): Remove.
6246 (gdbtypes_post_init): Use init_complex_type.
6247 * f-lang.c (build_fortran_types): Use init_complex_type.
6248 * dwarf2/read.c (read_base_type): Update.
6249 * d-lang.c (build_d_types): Use init_complex_type.
6250 * ctfread.c (read_base_type): Update.
6251
53cccef1
TBA
62522020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6253
6254 * infrun.c (stop_all_threads): Update assertion, plus when
6255 stopping threads, take into account that we might be trying
6256 to stop an all-stop target.
6257 (stop_waiting): Call 'stop_all_threads' if there exists a
6258 non-stop target.
6259
a0714d30
TBA
62602020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6261
6262 * target.h (exists_non_stop_target): New function declaration.
6263 * target.c (exists_non_stop_target): New function.
6264
60e22c1e
HD
62652020-04-01 Hannes Domani <ssbssa@yahoo.de>
6266
6267 PR gdb/24789
6268 * eval.c (is_integral_or_integral_reference): New function.
6269 (evaluate_subexp_standard): Allow integer references in
6270 pointer arithmetic.
6271
e139a727
TBA
62722020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6273
6274 * remote.c (remote_target::remote_parse_stop_reply): Remove the
6275 check for no ptid in the stop reply when the target is non-stop.
6276
e0802d59
TT
62772020-04-01 Tom Tromey <tromey@adacore.com>
6278
6279 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
6280 "name" parameter to rvalue reference. Initialize m_name_holder.
6281 <lookup_name_info>: New overloads.
6282 <name>: Return gdb::string_view.
6283 <c_str>: New method.
6284 <make_ignore_params>: Update.
6285 <search_name_hash>: Update.
6286 <language_lookup_name>: Return const char *.
6287 <m_name>: Change type.
6288 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
6289 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
6290 (lookup_name_info::match_any): Update.
6291 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
6292 Update.
6293 * minsyms.c (linkage_name_str): Update.
6294 * language.c (default_symbol_name_matcher): Update.
6295 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
6296 Update.
6297 * ada-lang.c (ada_fold_name): Change parameter to string_view.
6298 (ada_lookup_name_info::ada_lookup_name_info): Update.
6299 (literal_symbol_name_matcher): Update.
6300
8c072cb6
TT
63012020-04-01 Tom Tromey <tromey@adacore.com>
6302
6303 * psymtab.c (psymtab_search_name): Remove function.
6304 (psym_lookup_symbol): Create search name and lookup name here.
6305 (lookup_partial_symbol): Remove "name" parameter; add
6306 lookup_name.
6307 (psym_expand_symtabs_for_function): Update.
6308
6f29a534
TT
63092020-03-31 Joel Jones <joelkevinjones@gmail.com>
6310
6311 PR tui/25597:
6312 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
6313
af62665e
TT
63142020-03-31 Tom Tromey <tromey@adacore.com>
6315
6316 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
6317 memcpy.
6318
d1a89da5
NC
63192020-03-30 Nelson Chu <nelson.chu@sifive.com>
6320
6321 * features/riscv/32bit-csr.xml: Regenerated.
6322 * features/riscv/64bit-csr.xml: Regenerated.
6323
d8af9068
TT
63242020-03-30 Tom Tromey <tromey@adacore.com>
6325
6326 * ada-valprint.c (print_variant_part): Update.
6327 * ada-lang.h (ada_which_variant_applies): Update.
6328 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
6329 outer_valaddr parameters; replace with "outer" value parameter.
6330 (to_fixed_variant_branch_type): Update.
6331
227c0bf4
PFC
63322020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6333
6334 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
6335 <list>. Remove inclusion of observable.h.
6336 (PPC_DEBUG_CURRENT_VERSION): Move up define.
6337 (struct arch_lwp_info): New struct.
6338 (class ppc_linux_dreg_interface): New class.
6339 (struct ppc_linux_process_info): New struct.
6340 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
6341 <low_new_clone, low_forget_process, low_prepare_to_resume>
6342 <copy_thread_dreg_state, mark_thread_stale>
6343 <mark_debug_registers_changed, register_hw_breakpoint>
6344 <clear_hw_breakpoint, register_wp, clear_wp>
6345 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
6346 <num_memory_accesses, get_trigger_type>
6347 <create_watchpoint_request, hwdebug_point_cmp>
6348 <init_arch_lwp_info, get_arch_lwp_info>
6349 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
6350 methods.
6351 <struct ptid_hash>: New inner struct.
6352 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
6353 members.
6354 (saved_dabr_value, hwdebug_info, max_slots_number)
6355 (struct hw_break_tuple, struct thread_points, ppc_threads)
6356 (have_ptrace_hwdebug_interface)
6357 (hwdebug_find_thread_points_by_tid)
6358 (hwdebug_insert_point, hwdebug_remove_point): Remove.
6359 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
6360 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
6361 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
6362 use m_dreg_interface.
6363 (hwdebug_point_cmp): Change to...
6364 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
6365 reference arguments instead of pointers.
6366 (ppc_linux_nat_target::ranged_break_num_registers): Use
6367 m_dreg_interface.
6368 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
6369 m_dreg_interface. Call register_hw_breakpoint.
6370 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
6371 m_dreg_interface. Call clear_hw_breakpoint.
6372 (get_trigger_type): Change to...
6373 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
6374 comment.
6375 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
6376 use m_dreg_interface. Call register_hw_breakpoint.
6377 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
6378 use m_dreg_interface. Call clear_hw_breakpoint.
6379 (can_use_watchpoint_cond_accel): Change to...
6380 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
6381 method. Update comment, use m_dreg_interface and
6382 m_process_info.
6383 (calculate_dvc): Change to...
6384 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
6385 m_dreg_interface.
6386 (num_memory_accesses): Change to...
6387 (ppc_linux_nat_target::num_memory_accesses): ...this method.
6388 (check_condition): Change to...
6389 (ppc_linux_nat_target::check_condition): ...this method.
6390 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
6391 comment, use m_dreg_interface.
6392 (create_watchpoint_request): Change to...
6393 (ppc_linux_nat_target::create_watchpoint_request): ...this
6394 method. Use m_dreg_interface.
6395 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
6396 m_dreg_interface. Call register_hw_breakpoint or register_wp.
6397 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
6398 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
6399 (ppc_linux_nat_target::low_forget_process)
6400 (ppc_linux_nat_target::low_new_fork)
6401 (ppc_linux_nat_target::low_new_clone)
6402 (ppc_linux_nat_target::low_delete_thread)
6403 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
6404 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
6405 only call mark_thread_stale.
6406 (ppc_linux_thread_exit): Remove.
6407 (ppc_linux_nat_target::stopped_data_address): Change to...
6408 (ppc_linux_nat_target::low_stopped_data_address): This. Add
6409 comment, use m_dreg_interface and m_thread_hw_breakpoints.
6410 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
6411 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
6412 comment. Call low_stopped_data_address.
6413 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
6414 m_dreg_interface.
6415 (ppc_linux_nat_target::masked_watch_num_registers): Use
6416 m_dreg_interface.
6417 (ppc_linux_nat_target::copy_thread_dreg_state)
6418 (ppc_linux_nat_target::mark_thread_stale)
6419 (ppc_linux_nat_target::mark_debug_registers_changed)
6420 (ppc_linux_nat_target::register_hw_breakpoint)
6421 (ppc_linux_nat_target::clear_hw_breakpoint)
6422 (ppc_linux_nat_target::register_wp)
6423 (ppc_linux_nat_target::clear_wp)
6424 (ppc_linux_nat_target::init_arch_lwp_info)
6425 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
6426 (_initialize_ppc_linux_nat): Remove observer callback.
6427
4db10d8f
PFC
64282020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6429
6430 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
6431 (ppc_linux_nat_target::auxv_parse)
6432 (ppc_linux_nat_target::read_description)
6433 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
6434 Move up.
6435
1310c1b0
PFC
64362020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6437
6438 * linux-nat.h (low_new_clone): New method.
6439 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
6440
69b037c3
SM
64412020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6442
6443 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
6444 (dbx_expand_psymtab): ... this.
6445 (start_psymtab): Update.
6446 * mdebugread.c (psymtab_to_symtab_1): Rename to...
6447 (mdebug_expand_psymtab): ... this.
6448 (parse_partial_symbols): Update.
6449 (new_psymtab): Update.
6450 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
6451 (xcoff_expand_psymtab): ... this.
6452 (xcoff_start_psymtab): Update.
6453
48993951
SM
64542020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6455
6456 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
6457 <expand_dependencies>: ... this.
6458 * psymtab.c (partial_symtab::read_dependencies): Rename to...
6459 (partial_symtab::expand_dependencies): ... this.
6460 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
6461 Update.
6462 (dwarf2_psymtab::expand_psymtab): Update.
6463 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
6464 * mdebugread.c (psymtab_to_symtab_1): Update.
6465 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
6466
3ad83046
SM
64672020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6468
6469 * psympriv.h (discard_psymtab): Remove.
6470 * dbxread.c (dbx_end_psymtab): Update.
6471 * xcoffread.c (xcoff_end_psymtab): Update.
6472
4d1b9ab6
TT
64732020-03-28 Tom Tromey <tom@tromey.com>
6474
6475 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
6476 comment.
6477
f1749218
TT
64782020-03-28 Tom Tromey <tom@tromey.com>
6479
6480 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
6481
ebea7626
HD
64822020-03-27 Hannes Domani <ssbssa@yahoo.de>
6483
6484 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
6485
a879b4d5
JB
64862020-03-26 John Baldwin <jhb@FreeBSD.org>
6487
6488 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
6489
0826b30a
TT
64902020-03-26 Tom Tromey <tom@tromey.com>
6491
6492 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
6493 (mark_common_block_symbol_computed, read_tag_string_type)
6494 (attr_to_dynamic_prop, read_subrange_type): Update.
6495 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
6496 to be methods on struct attribute.
6497 (skip_one_die, process_imported_unit_die, read_namespace_alias)
6498 (read_call_site_scope, partial_die_info::read)
6499 (partial_die_info::read, lookup_die_type, follow_die_ref):
6500 Update.
6501 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
6502 from dwarf2_get_ref_die_offset.
6503 (attribute::constant_value): New method, from
6504 dwarf2_get_attr_constant_value.
6505 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
6506 Declare method.
6507 <constant_value>: New method.
6508
2b2558bf
TT
65092020-03-26 Tom Tromey <tom@tromey.com>
6510
6511 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
6512 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
6513 (dwarf_type_encoding_name): Move to stringify.c.
6514 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
6515 * dwarf2/stringify.c: New file.
6516 * dwarf2/stringify.h: New file.
6517
eeb64781
TT
65182020-03-26 Tom Tromey <tom@tromey.com>
6519
6520 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
6521 Rewrite.
6522
a39fdb41
TT
65232020-03-26 Tom Tromey <tom@tromey.com>
6524
6525 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
6526 methods.
6527 * dwarf2/read.c (lookup_addr_base): Move to die.h.
6528 (lookup_ranges_base): Likewise.
6529 (read_cutu_die_from_dwo, read_full_die_1): Update.
6530
436c571c
TT
65312020-03-26 Tom Tromey <tom@tromey.com>
6532
6533 * dwarf2/read.c (read_import_statement, read_file_scope)
6534 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
6535 (read_lexical_block_scope, read_call_site_scope)
6536 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
6537 (handle_struct_member_die, process_structure_scope)
6538 (update_enumeration_type_from_children)
6539 (process_enumeration_scope, read_array_type, read_common_block)
6540 (read_namespace, read_module, read_subroutine_type): Update.
6541 (sibling_die): Remove.
6542
052c8bb8
TT
65432020-03-26 Tom Tromey <tom@tromey.com>
6544
6545 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
6546 (build_type_psymtabs_reader, read_structure_type)
6547 (read_enumeration_type, read_full_die_1): Update.
6548 (dwarf2_attr_no_follow): Move to die.h.
6549 * dwarf2/die.h (struct die_info) <attr>: New method.
6550
2b24b6e4
TT
65512020-03-26 Tom Tromey <tom@tromey.com>
6552
6553 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
6554 <base_address>: Now an optional.
6555 (dwarf2_find_base_address, dwarf2_rnglists_process)
6556 (dwarf2_ranges_process, fill_in_loclist_baton)
6557 (dwarf2_symbol_mark_computed): Update.
6558
c2d50fd0
TT
65592020-03-26 Tom Tromey <tom@tromey.com>
6560
6561 * dwarf2/read.c (struct die_info): Move to die.h.
6562 * dwarf2/die.h: New file.
6563
0df7ad3a
TT
65642020-03-26 Tom Tromey <tom@tromey.com>
6565
6566 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
6567 * dwarf2/read.c
6568 (dwarf2_statement_list_fits_in_line_number_section_complaint):
6569 Move to line-header.c.
6570 (read_checked_initial_length_and_offset, read_formatted_entries):
6571 Likewise.
6572 (dwarf_decode_line_header): Split into two.
6573 * dwarf2/line-header.c
6574 (dwarf2_statement_list_fits_in_line_number_section_complaint):
6575 Move from read.c.
6576 (read_checked_initial_length_and_offset, read_formatted_entries):
6577 Likewise.
6578 (dwarf_decode_line_header): New function, split from read.c.
6579
86c0bb4c
TT
65802020-03-26 Tom Tromey <tom@tromey.com>
6581
6582 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
6583 Declare method.
6584 * dwarf2/read.c (read_attribute_value): Update.
6585 (dwarf2_per_objfile::read_line_string): Rename from
6586 read_indirect_line_string.
6587 (read_formatted_entries): Update.
6588
2ef46c2f
TT
65892020-03-26 Tom Tromey <tom@tromey.com>
6590
6591 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
6592 variable.
6593
4f9c1eda
TT
65942020-03-26 Tom Tromey <tom@tromey.com>
6595
6596 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
6597 const.
6598 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
6599 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
6600 parameter const.
6601
5a0e026f
TT
66022020-03-26 Tom Tromey <tom@tromey.com>
6603
6604 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
6605 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
6606 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
6607 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
6608
8844c11b
TT
66092020-03-26 Tom Tromey <tom@tromey.com>
6610
6611 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
6612 file_names_size, file_full_name, file_file_name>: Use const.
6613 <file_name_at, file_names>: Add const overload.
6614 * dwarf2/line-header.c (line_header::file_file_name)
6615 (line_header::file_full_name): Update.
6616
c90ec28a
TT
66172020-03-26 Tom Tromey <tom@tromey.com>
6618
6619 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
6620 (macro_start_file, consume_improper_spaces)
6621 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
6622 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
6623 (dwarf_decode_macros): Move to macro.c.
6624 * dwarf2/macro.c: New file.
6625 * dwarf2/macro.h: New file.
6626 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
6627
4f44ae6c
TT
66282020-03-26 Tom Tromey <tom@tromey.com>
6629
6630 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
6631 method.
6632 * dwarf2/section.c: New method. From
6633 read_indirect_string_at_offset_from.
6634 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
6635 (read_indirect_string_at_offset_from): Move to section.c.
6636 (read_indirect_string_at_offset): Rewrite.
6637 (read_indirect_line_string_at_offset): Remove.
6638 (read_indirect_string, read_indirect_line_string)
6639 (dwarf_decode_macro_bytes): Update.
6640
a0194fa8
TT
66412020-03-26 Tom Tromey <tom@tromey.com>
6642
6643 * dwarf2/section.h (struct dwarf2_section_info)
6644 <overload_complaint>: Declare.
6645 (dwarf2_section_buffer_overflow_complaint): Don't declare.
6646 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
6647 Rename from dwarf2_section_buffer_overflow_complaint.
6648 * dwarf2/read.c (skip_one_die, partial_die_info::read)
6649 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
6650
3d27bbdb
TT
66512020-03-26 Tom Tromey <tom@tromey.com>
6652
6653 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
6654 Declare.
6655 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
6656 Move from read.c.
6657 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
6658 to section.c.
6659
9eac9650
TT
66602020-03-26 Tom Tromey <tom@tromey.com>
6661
6662 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
6663
bf80d710
TT
66642020-03-26 Tom Tromey <tom@tromey.com>
6665
6666 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
6667 "builder".
6668 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
6669 parameter.
6670 (dwarf_decode_macros): Update.
6671
0314b390
TT
66722020-03-26 Tom Tromey <tom@tromey.com>
6673
6674 * dwarf2/read.c (read_attribute_value): Update.
6675 (read_indirect_string_from_dwz): Move to dwz.c; change into
6676 method.
6677 (dwarf_decode_macro_bytes): Update.
6678 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
6679 * dwarf2/dwz.c: New file.
6680 * Makefile.in (COMMON_SFILES): Add dwz.c.
6681
9fda78b6
TT
66822020-03-26 Tom Tromey <tom@tromey.com>
6683
6684 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
6685 * dwarf2/read.c: Add include.
6686 * dwarf2/index-write.c: Add include.
6687 * dwarf2/index-cache.c: Add include.
6688 * dwarf2/dwz.h: New file.
6689
33aa3c10
TT
66902020-03-25 Tom Tromey <tom@tromey.com>
6691
6692 * compile/compile-object-load.c (get_out_value_type): Mention
6693 correct symbol name in error message.
6694
d503b685
HD
66952020-03-25 Hannes Domani <ssbssa@yahoo.de>
6696
6697 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
6698
7b1eff95
TV
66992020-03-25 Tom de Vries <tdevries@suse.de>
6700
6701 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
6702 * symmisc.c (dump_symtab_1): Print user and includes fields.
6703 (maintenance_info_symtabs): Same.
6704
dd895392
AB
67052020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
6706
6707 PR gdb/25534
6708 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
6709 (riscv_regcache_cooked_write): New function.
6710 (riscv_push_dummy_call): Use new function.
6711 (riscv_return_value): Likewise.
6712
5ab2fbf1
SM
67132020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
6714
6715 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
6716 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
6717 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
6718 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
6719 * infrun.c (follow_fork): Likewise.
6720 (follow_fork_inferior): Likewise.
6721 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
6722 * linux-nat.h (class linux_nat_target): Likewise.
6723 * remote.c (class remote_target) <follow_fork>: Likewise.
6724 (remote_target::follow_fork): Likewise.
6725 * target-delegates.c: Re-generate.
6726 * target.c (default_follow_fork): Likewise.
6727 (target_follow_fork): Likewise.
6728 * target.h (struct target_ops) <follow_fork>: Likewise.
6729 (target_follow_fork): Likewise.
6730
a64fafb5
TV
67312020-03-24 Tom de Vries <tdevries@suse.de>
6732
6733 * psymtab.c (maintenance_info_psymtabs): Print user field.
6734
fe26d3a3
TT
67352020-03-20 Tom Tromey <tromey@adacore.com>
6736
6737 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
6738 const.
6739 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
6740 const.
6741
c884cc46
SM
67422020-03-20 Simon Marchi <simon.marchi@efficios.com>
6743
6744 * ptrace.m4: Don't check for ptrace declaration.
6745 * config.in: Re-generate.
6746 * configure: Re-generate.
6747 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
6748 not defined.
6749
1ff700c2
KR
67502020-03-20 Kamil Rytarowski <n54@gmx.com>
6751
6752 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
6753 `PTRACE_TYPE_RET'.
6754 * i386-bsd-nat.c (gdb_ptrace): Likewise.
6755 * sparc-nat.c (gdb_ptrace): Likewise.
6756 * x86-bsd-nat.c (gdb_ptrace): Likewise.
6757
f7d4f0b1
TT
67582020-03-20 Tom Tromey <tromey@adacore.com>
6759
6760 * c-exp.y (lex_one_token): Fix assert.
6761
f67210ff
TT
67622020-03-20 Tom Tromey <tromey@adacore.com>
6763
6764 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
6765 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
6766 strncpy call.
6767
1773be9e
TT
67682020-03-20 Tom Tromey <tromey@adacore.com>
6769
6770 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
6771
70304be9
TT
67722020-03-20 Tom Tromey <tromey@adacore.com>
6773
6774 * ada-valprint.c (print_variant_part): Remove parameters; switch
6775 to value-based API.
6776 (print_field_values): Likewise.
6777 (ada_val_print_struct_union): Likewise.
6778 (ada_value_print_1): Update.
6779
9faa006d
KR
67802020-03-20 Kamil Rytarowski <n54@gmx.com>
6781
6782 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
6783 nbsd_nat_target instead of inf_ptrace_target.
6784 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6785 nbsd_nat_target.
6786
4a90f062
KR
67872020-03-20 Kamil Rytarowski <n54@gmx.com>
6788
6789 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
6790 it to the ptrace call.
6791 * (store_registers): Likewise.
6792
67932020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
6794
6795 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
6796 it to the ptrace call.
6797 * (store_registers): Likewise.
6798
2d07da27
LM
67992020-03-19 Luis Machado <luis.machado@linaro.org>
6800
6801 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
6802 valid, fetch vg value from ptrace.
6803
f09db380
KR
68042020-03-19 Kamil Rytarowski <n54@gmx.com>
6805 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
6806 * inf-ptrace.c: Likewise.
6807 * (gdb_ptrace): Add.
6808 * (inf_ptrace_target::resume): Update.
6809 * (inf_ptrace_target::xfer_partial): Likewise.
6810 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
6811 * (inf_ptrace_peek_poke): Update.
6812
fcc7376e
KR
68132020-03-19 Kamil Rytarowski <n54@gmx.com>
6814
6815 * x86-bsd-nat.c (gdb_ptrace): New.
6816 * (x86bsd_dr_set): Add new argument `ptid'.
6817 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
6818 x86bsd_dr_set_addr): Update.
6819
cada5fc9
AB
68202020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6821
6822 * remote.c (remote_target::process_stop_reply): Handle events for
6823 all threads differently.
6824
19a2740f
AB
68252020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6826
6827 * completer.c (completion_tracker::remove_completion): Define new
6828 function.
6829 * completer.h (completion_tracker::remove_completion): Declare new
6830 function.
6831 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
6832 when adding a C++ function symbol.
6833
724fd9ba
AB
68342020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6835
6836 * completer.c (completion_tracker::completion_hash_entry): Define
6837 new class.
6838 (advance_to_filename_complete_word_point): Call
6839 recompute_lowest_common_denominator.
6840 (completion_tracker::completion_tracker): Call discard_completions
6841 to setup the hash table.
6842 (completion_tracker::discard_completions): Allow for being called
6843 from the constructor, pass new equal function, and element deleter
6844 when constructing the hash table. Initialise new class member
6845 variables.
6846 (completion_tracker::maybe_add_completion): Remove use of
6847 m_entries_vec, and store more information into m_entries_hash.
6848 (completion_tracker::recompute_lcd_visitor): New function, most
6849 content taken from...
6850 (completion_tracker::recompute_lowest_common_denominator):
6851 ...here, this now just visits each item in the hash calling the
6852 above visitor.
6853 (completion_tracker::build_completion_result): Remove use of
6854 m_entries_vec, call recompute_lowest_common_denominator.
6855 * completer.h (completion_tracker::have_completions): Remove use
6856 of m_entries_vec.
6857 (completion_tracker::completion_hash_entry): Declare new class.
6858 (completion_tracker::recompute_lowest_common_denominator): Change
6859 function signature.
6860 (completion_tracker::recompute_lcd_visitor): Declare new function.
6861 (completion_tracker::m_entries_vec): Delete.
6862 (completion_tracker::m_entries_hash): Initialize to NULL.
6863 (completion_tracker::m_lowest_common_denominator_valid): New
6864 member variable.
6865 (completion_tracker::m_lowest_common_denominator_max_length): New
6866 member variable.
6867
5a82b8a1
KR
68682020-03-17 Kamil Rytarowski <n54@gmx.com>
6869
6870 * regformats/regdef.h: Put reg in gdb namespace.
6871
fb516a69
KR
68722020-03-17 Kamil Rytarowski <n54@gmx.com>
6873
6874 * i386-bsd-nat.c (gdb_ptrace): New.
6875 * (i386bsd_fetch_inferior_registers,
6876 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6877 * (i386bsd_fetch_inferior_registers,
6878 i386bsd_store_inferior_registers) Use gdb_ptrace.
6879
1c0aa1fb
KR
68802020-03-17 Kamil Rytarowski <n54@gmx.com>
6881
6882 * amd64-bsd-nat.c (gdb_ptrace): New.
6883 * (amd64bsd_fetch_inferior_registers,
6884 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6885 * (amd64bsd_fetch_inferior_registers,
6886 amd64bsd_store_inferior_registers) Use gdb_ptrace.
6887
5ccd2fb7
KR
68882020-03-17 Kamil Rytarowski <n54@gmx.com>
6889
6890 * user-regs.c (user_reg::read): Rename to...
6891 (user_reg::xread): ...this.
6892 * (append_user_reg): Rename argument `read' to `xread'.
6893 * (user_reg_add_builtin): Likewise.
6894 * (user_reg_add): Likewise.
6895 * (value_of_user_reg): Likewise.
6896
2108a63a
KR
68972020-03-17 Kamil Rytarowski <n54@gmx.com>
6898
6899 * sparc-nat.c (gdb_ptrace): New.
6900 * sparc-nat.c (sparc_fetch_inferior_registers)
6901 (sparc_store_inferior_registers) Remove obsolete comment.
6902 * sparc-nat.c (sparc_fetch_inferior_registers)
6903 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
6904 * sparc-nat.c (sparc_fetch_inferior_registers)
6905 (sparc_store_inferior_registers) Use gdb_ptrace.
6906
a225c9a8
KR
69072020-03-17 Kamil Rytarowski <n54@gmx.com>
6908
6909 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
6910 it to the ptrace call.
6911 * sh-nbsd-nat.c (store_registers): Likewise.
6912
98097623
KR
69132020-03-17 Kamil Rytarowski <n54@gmx.com>
6914
6915 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
6916 nbsd_nat_target instead of inf_ptrace_target.
6917 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6918 nbsd_nat_target.
6919
9e38d619
KR
69202020-03-17 Kamil Rytarowski <n54@gmx.com>
6921
6922 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
6923
a2ecbe9f
KR
69242020-03-17 Kamil Rytarowski <n54@gmx.com>
6925
6926 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
6927 <sys/sysctl.h>.
6928 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
6929
58990295
TV
69302020-03-17 Tom de Vries <tdevries@suse.de>
6931
6932 PR gdb/23710
6933 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
6934 fields.
6935 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
6936 fields.
6937 (process_imported_unit_die): Skip import of c++ CUs.
6938
771dd3a8
TT
69392020-03-16 Tom Tromey <tom@tromey.com>
6940
6941 * p-valprint.c (pascal_object_print_value): Initialize
6942 base_value.
6943
817a7585
AK
69442020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
6945 Shahab Vahedi <shahab@synopsys.com>
6946
6947 * Makefile.in: Add arch/arc.o
6948 * configure.tgt: Likewise.
6949 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
6950 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 6951 (arc_read_description): New function to cache target descriptions.
817a7585
AK
6952 * arc-tdep.h (arc_read_description): Add proto type.
6953 * arch/arc.c: New file.
6954 * arch/arc.h: Likewise.
6955 * features/Makefile: Replace old target descriptions with new.
6956 * features/arc-arcompact.c: Remove.
6957 * features/arc-arcompact.xml: Likewise.
6958 * features/arc-v2.c: Likewise
6959 * features/arc-v2.xml: Likewise
6960 * features/arc/aux-arcompact.xml: New file.
6961 * features/arc/aux-v2.xml: Likewise.
6962 * features/arc/core-arcompact.xml: Likewise.
6963 * features/arc/core-v2.xml: Likewise.
6964 * features/arc/aux-arcompact.c: Generate.
6965 * features/arc/aux-v2.c: Likewise.
6966 * features/arc/core-arcompact.c: Likewise.
6967 * features/arc/core-v2.c: Likewise.
6968 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
6969
67430cd0
TT
69702020-03-16 Tom Tromey <tromey@adacore.com>
6971
6972 PR gdb/25663:
6973 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
6974 putting value into bcache.
6975
30efb6c7
SM
69762020-03-16 Simon Marchi <simon.marchi@efficios.com>
6977
6978 PR gdb/21500
6979 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
6980 to...
6981 (amd64_windows_init_abi_common): ... this. Don't set size of
6982 long type.
6983 (amd64_windows_init_abi): New function.
6984 (amd64_cygwin_init_abi): New function.
6985 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
6986 the Cygwin OS ABI.
6987 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
6988 comment.
6989
8db52437
SM
69902020-03-16 Simon Marchi <simon.marchi@efficios.com>
6991
6992 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
6993 * windows-tdep.c (CYGWIN_DLL_NAME): New.
6994 (pe_import_directory_entry): New struct type.
6995 (is_linked_with_cygwin_dll): New function.
6996 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
6997 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
6998 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
6999
5982a56a
SM
70002020-03-16 Simon Marchi <simon.marchi@efficios.com>
7001
7002 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
7003 i386_cygwin_core_osabi_sniffer.
7004
7a1998df
SM
70052020-03-16 Simon Marchi <simon.marchi@efficios.com>
7006
7007 * i386-cygwin-tdep.c: Rename to...
7008 * i386-windows-tdep.c: ... this.
7009 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
7010 i386-windows-tdep.c.
7011 * configure.tgt: Likewise.
7012
053205cc
SM
70132020-03-16 Simon Marchi <simon.marchi@efficios.com>
7014
7015 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
7016 * osabi.c (gdb_osabi_names): Add "Windows".
7017 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
7018 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
7019 (i386_cygwin_core_osabi_sniffer): New function, extracted from
7020 i386_cygwin_osabi_sniffer.
7021 (_initialize_i386_cygwin_tdep): Register OS ABI
7022 GDB_OSABI_WINDOWS for i386.
7023 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
7024 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
7025 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
7026 for x86-64.
7027 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
7028 when the target matches '*-*-mingw*'.
7029
fe4b2ee6
SM
70302020-03-16 Simon Marchi <simon.marchi@efficios.com>
7031
7032 * defs.h (enum gdb_osabi): Move to...
7033 * osabi.h (enum gdb_osabi): ... here.
7034 * gdbarch.sh: Include osabi.h in gdbarch.h.
7035 * gdbarch.h: Re-generate.
7036
cb9b645d
SM
70372020-03-16 Simon Marchi <simon.marchi@efficios.com>
7038
7039 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
7040 function.
7041 (_initialize_amd64_windows_tdep): Register osabi sniffer.
7042
3293bbaf
TT
70432020-03-14 Tom Tromey <tom@tromey.com>
7044
7045 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
7046 for C++.
7047 (c_type_print_modifier): Likewise. Add "language" parameter.
7048 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
7049 (c_type_print_base_1): Update.
7050 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
7051 constants.
7052 * type-stack.c (type_stack::insert): Handle tp_atomic and
7053 tp_restrict.
7054 (type_stack::follow_type_instance_flags): Likewise.
7055 (type_stack::follow_types): Likewise. Merge type-following code.
7056 * c-exp.y (RESTRICT, ATOMIC): New tokens.
7057 (space_identifier, cv_with_space_id)
7058 (const_or_volatile_or_space_identifier_noopt)
7059 (const_or_volatile_or_space_identifier): Remove.
7060 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
7061 rules.
7062 (ptr_operator, typebase): Update.
7063 (enum token_flag) <FLAG_C>: New constant.
7064 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
7065 "_Atomic".
7066 (lex_one_token): Handle FLAG_C.
7067
154151a6
KR
70682020-03-14 Kamil Rytarowski <n54@gmx.com>
7069
7070 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
7071 it to the ptrace call.
7072 * m68k-bsd-nat.c (store_registers): Likewise.
7073
bc107784
KR
70742020-03-14 Kamil Rytarowski <n54@gmx.com>
7075
7076 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
7077 gdb_byte *.
7078 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
7079 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
7080 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
7081
01a80117
KR
70822020-03-14 Kamil Rytarowski <n54@gmx.com>
7083
7084 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
7085 nbsd_nat_target instead of inf_ptrace_target.
7086 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7087 nbsd_nat_target.
7088
f90280ca
KR
70892020-03-14 Kamil Rytarowski <n54@gmx.com>
7090
7091 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
7092 register_t.
7093
6def66f1
KR
70942020-03-14 Kamil Rytarowski <n54@gmx.com>
7095
7096 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
7097 it to the ptrace call.
7098 * alpha-bsd-nat.c (store_registers): Likewise.
7099
66eaca97
KR
71002020-03-14 Kamil Rytarowski <n54@gmx.com>
7101
7102 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
7103 includes.
7104 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
7105 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
7106 fill_fpregset): Likewise.
7107
4fed520b
KR
71082020-03-14 Kamil Rytarowski <n54@gmx.com>
7109
7110 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
7111 nbsd_nat_target instead of inf_ptrace_target.
7112 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7113 nbsd_nat_target.
7114
2190cf06
KR
71152020-03-14 Kamil Rytarowski <n54@gmx.com>
7116
7117 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
7118 register_t.
7119
75c56d3d
KR
71202020-03-14 Kamil Rytarowski <n54@gmx.com>
7121
7122 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
7123 it to the ptrace call.
7124 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
7125 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
7126 * arm-nbsd-nat.c (store_register): Likewise.
7127 * arm-nbsd-nat.c (store_regs): Likewise.
7128 * arm-nbsd-nat.c (store_fp_register): Likewise.
7129 * arm-nbsd-nat.c (store_fp_regs): Likewise.
7130
6018d381
KR
71312020-03-14 Kamil Rytarowski <n54@gmx.com>
7132
7133 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
7134 nbsd_nat_target instead of inf_ptrace_target.
7135 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7136 nbsd_nat_target.
7137
013f99f0
KR
71382020-03-14 Kamil Rytarowski <n54@gmx.com>
7139
7140 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
7141 it to the ptrace call.
7142 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
7143
12753073
KR
71442020-03-14 Kamil Rytarowski <n54@gmx.com>
7145
6227b330
KR
7146 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
7147 it to the ptrace call.
7148 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
7149
71502020-03-14 Kamil Rytarowski <n54@gmx.com>
7151
7152 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
7153 gdb_byte *.
12753073
KR
7154 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
7155
d5be5fa4
KR
71562020-03-14 Kamil Rytarowski <n54@gmx.com>
7157
7158 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
7159 instead of inf_ptrace_target.
7160 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7161 nbsd_nat_target.
7162
8110f842
KR
71632020-03-14 Kamil Rytarowski <n54@gmx.com>
7164
7165 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7166 register_t.
7167
52feded7
KR
71682020-03-14 Kamil Rytarowski <n54@gmx.com>
7169
7170 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7171 register_t.
7172
25567eee
KR
71732020-03-14 Kamil Rytarowski <n54@gmx.com>
7174
7175 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
7176 register_t.
7177
426a9c18
TT
71782020-03-13 Tom Tromey <tom@tromey.com>
7179
7180 * value.h (val_print): Don't declare.
7181 * valprint.h (val_print_array_elements)
7182 (val_print_scalar_formatted, generic_val_print): Don't declare.
7183 * valprint.c (generic_val_print_array): Take a struct value.
7184 (generic_val_print_ptr, generic_val_print_memberptr)
7185 (generic_val_print_bool, generic_val_print_int)
7186 (generic_val_print_char, generic_val_print_complex)
7187 (generic_val_print): Remove.
7188 (generic_value_print): Update.
7189 (do_val_print): Remove unused parameters. Don't call
7190 la_val_print.
7191 (val_print): Remove.
7192 (common_val_print): Update. Don't call value_check_printable.
7193 (val_print_scalar_formatted, val_print_array_elements): Remove.
7194 * rust-lang.c (rust_val_print): Remove.
7195 (rust_language_defn): Update.
7196 * p-valprint.c (pascal_val_print): Remove.
7197 (pascal_value_print_inner): Update.
7198 (pascal_object_print_val_fields, pascal_object_print_val):
7199 Remove.
7200 (pascal_object_print_static_field): Update.
7201 * p-lang.h (pascal_val_print): Don't declare.
7202 * p-lang.c (pascal_language_defn): Update.
7203 * opencl-lang.c (opencl_language_defn): Update.
7204 * objc-lang.c (objc_language_defn): Update.
7205 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
7206 * m2-lang.h (m2_val_print): Don't declare.
7207 * m2-lang.c (m2_language_defn): Update.
7208 * language.h (struct language_defn) <la_val_print>: Remove.
7209 * language.c (unk_lang_value_print_inner): Rename. Change
7210 argument types.
7211 (unknown_language_defn, auto_language_defn): Update.
7212 * go-valprint.c (go_val_print): Remove.
7213 * go-lang.h (go_val_print): Don't declare.
7214 * go-lang.c (go_language_defn): Update.
7215 * f-valprint.c (f_val_print): Remove.
7216 * f-lang.h (f_value_print): Don't declare.
7217 * f-lang.c (f_language_defn): Update.
7218 * d-valprint.c (d_val_print): Remove.
7219 * d-lang.h (d_value_print): Don't declare.
7220 * d-lang.c (d_language_defn): Update.
7221 * cp-valprint.c (cp_print_value_fields)
7222 (cp_print_value_fields_rtti, cp_print_value): Remove.
7223 (cp_print_static_field): Update.
7224 * c-valprint.c (c_val_print_array, c_val_print_ptr)
7225 (c_val_print_struct, c_val_print_union, c_val_print_int)
7226 (c_val_print_memberptr, c_val_print): Remove.
7227 * c-lang.h (c_val_print_array, cp_print_value_fields)
7228 (cp_print_value_fields_rtti): Don't declare.
7229 * c-lang.c (c_language_defn, cplus_language_defn)
7230 (asm_language_defn, minimal_language_defn): Update.
7231 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
7232 (ada_val_print_enum): Take a struct value.
7233 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
7234 (ada_val_print): Remove.
7235 (ada_value_print_1): Update.
7236 (printable_val_type): Remove.
7237 * ada-lang.h (ada_val_print): Don't declare.
7238 * ada-lang.c (ada_language_defn): Update.
7239
42331a1e
TT
72402020-03-13 Tom Tromey <tom@tromey.com>
7241
7242 * valprint.c (do_val_print): Update.
7243 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
7244 a struct value.
7245 (value_to_value_object_no_release): Declare.
7246 * python/py-value.c (value_to_value_object_no_release): New
7247 function.
7248 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
7249 struct value.
7250 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
7251 function.
7252 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
7253 a struct value.
7254 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
7255 Declare.
7256 (gdbscm_apply_val_pretty_printer): Take a struct value.
7257 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
7258 value.
7259 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
7260 value.
7261 * extension-priv.h (struct extension_language_ops)
7262 <apply_val_pretty_printer>: Take a struct value.
7263 * cp-valprint.c (cp_print_value): Create a struct value.
7264 (cp_print_value): Update.
7265
3a916a97
TT
72662020-03-13 Tom Tromey <tom@tromey.com>
7267
7268 * ada-valprint.c (print_field_values): Call common_val_print.
7269
b59eac37
TT
72702020-03-13 Tom Tromey <tom@tromey.com>
7271
7272 * ada-valprint.c (val_print_packed_array_elements): Remove
7273 bitoffset and val parameters. Call common_val_print.
7274 (ada_val_print_string): Remove offset, address, and original_value
7275 parameters.
7276 (ada_val_print_array): Update.
7277 (ada_value_print_array): New function.
7278 (ada_value_print_1): Call it.
7279
03371129
TT
72802020-03-13 Tom Tromey <tom@tromey.com>
7281
7282 * ada-valprint.c (ada_value_print): Use common_val_print.
7283
2e088f8b
TT
72842020-03-13 Tom Tromey <tom@tromey.com>
7285
7286 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
7287
39ef85a8
TT
72882020-03-13 Tom Tromey <tom@tromey.com>
7289
7290 * ada-valprint.c (ada_value_print_num): New function.
7291 (ada_value_print_1): Use it.
7292
b9fa6e07
TT
72932020-03-13 Tom Tromey <tom@tromey.com>
7294
7295 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
7296
416595d6
TT
72972020-03-13 Tom Tromey <tom@tromey.com>
7298
7299 * ada-valprint.c (ada_value_print_ptr): New function.
7300 (ada_value_print_1): Use it.
7301
5b5e15ec
TT
73022020-03-13 Tom Tromey <tom@tromey.com>
7303
7304 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
7305 call common_val_print.
7306 (ada_val_print_1): Update.
7307 (ada_value_print_1): New function.
7308 (ada_value_print_inner): Rewrite.
7309
fbf54e75
TT
73102020-03-13 Tom Tromey <tom@tromey.com>
7311
7312 * cp-valprint.c (cp_print_value_fields): Update.
7313 (cp_print_value): New function.
7314
64b653ca
TT
73152020-03-13 Tom Tromey <tom@tromey.com>
7316
7317 * m2-valprint.c (m2_value_print_inner): Use
7318 cp_print_value_fields.
7319 * cp-valprint.c (cp_print_value_fields): New function.
7320 * c-valprint.c (c_value_print_struct): New function.
7321 (c_value_print_inner): Use c_value_print_struct.
7322 * c-lang.h (cp_print_value_fields): Declare.
7323
6999f067
TT
73242020-03-13 Tom Tromey <tom@tromey.com>
7325
7326 * c-valprint.c (c_value_print_array): New function.
7327 (c_value_print_inner): Use it.
7328
ce80b8bd
TT
73292020-03-13 Tom Tromey <tom@tromey.com>
7330
7331 * c-valprint.c (c_value_print_memberptr): New function.
7332 (c_value_print_inner): Use it.
7333
2faac269
TT
73342020-03-13 Tom Tromey <tom@tromey.com>
7335
7336 * c-valprint.c (c_value_print_int): New function.
7337 (c_value_print_inner): Use it.
7338
da3e2c29
TT
73392020-03-13 Tom Tromey <tom@tromey.com>
7340
7341 * c-valprint.c (c_value_print_ptr): New function.
7342 (c_value_print_inner): Use it.
7343
50836231
TT
73442020-03-13 Tom Tromey <tom@tromey.com>
7345
7346 * c-valprint.c (c_value_print_inner): Rewrite.
7347
4f412b6e
TT
73482020-03-13 Tom Tromey <tom@tromey.com>
7349
7350 * valprint.c (generic_value_print_complex): New function.
7351 (generic_value_print): Use it.
7352
f5354008
TT
73532020-03-13 Tom Tromey <tom@tromey.com>
7354
7355 * valprint.c (generic_val_print_float): Don't call
7356 val_print_scalar_formatted.
7357 (generic_val_print, generic_value_print): Update.
7358
3eec3b05
TT
73592020-03-13 Tom Tromey <tom@tromey.com>
7360
7361 * valprint.c (generic_value_print_char): New function
7362 (generic_value_print): Use it.
7363
fdddfccb
TT
73642020-03-13 Tom Tromey <tom@tromey.com>
7365
7366 * valprint.c (generic_value_print_int): New function.
7367 (generic_value_print): Use it.
7368
6dde7521
TT
73692020-03-13 Tom Tromey <tom@tromey.com>
7370
7371 * valprint.c (generic_value_print_bool): New function.
7372 (generic_value_print): Use it.
7373
4112d2e6
TT
73742020-03-13 Tom Tromey <tom@tromey.com>
7375
7376 * valprint.c (generic_val_print_func): Simplify.
7377 (generic_val_print, generic_value_print): Update.
7378
65786af6
TT
73792020-03-13 Tom Tromey <tom@tromey.com>
7380
7381 * valprint.c (generic_val_print_flags): Remove.
7382 (generic_val_print, generic_value_print): Update.
7383 (val_print_type_code_flags): Add original_value parameter.
7384
40f3ce18
TT
73852020-03-13 Tom Tromey <tom@tromey.com>
7386
7387 * valprint.c (generic_val_print): Update.
7388 (generic_value_print): Update.
7389 * valprint.c (generic_val_print_enum): Don't call
7390 val_print_scalar_formatted.
7391
2a5b130b
TT
73922020-03-13 Tom Tromey <tom@tromey.com>
7393
7394 * valprint.c (generic_value_print): Call generic_value_print_ptr.
7395 * valprint.c (generic_value_print_ptr): New function.
7396
abc66ce9
TT
73972020-03-13 Tom Tromey <tom@tromey.com>
7398
7399 * valprint.c (generic_value_print): Rewrite.
7400
07a32858
TT
74012020-03-13 Tom Tromey <tom@tromey.com>
7402
7403 * p-valprint.c (pascal_object_print_value_fields)
7404 (pascal_object_print_value): New functions.
7405
64d64d3a
TT
74062020-03-13 Tom Tromey <tom@tromey.com>
7407
7408 * p-valprint.c (pascal_value_print_inner): Rewrite.
7409
6a95a1f5
TT
74102020-03-13 Tom Tromey <tom@tromey.com>
7411
7412 * f-valprint.c (f_value_print_innner): Rewrite.
7413
59fcdac6
TT
74142020-03-13 Tom Tromey <tom@tromey.com>
7415
7416 * m2-valprint.c (m2_print_unbounded_array): New overload.
7417 (m2_print_unbounded_array): Update.
7418 (m2_print_array_contents): Take a struct value.
7419 (m2_value_print_inner): Rewrite.
7420
d133c3e1
TT
74212020-03-13 Tom Tromey <tom@tromey.com>
7422
7423 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
7424 (d_value_print_inner): New function.
7425 * d-lang.h (d_value_print_inner): Declare.
7426 * d-lang.c (d_language_defn): Use d_value_print_inner.
7427
23b0f06b
TT
74282020-03-13 Tom Tromey <tom@tromey.com>
7429
7430 * go-valprint.c (go_value_print_inner): New function.
7431 * go-lang.h (go_value_print_inner): Declare.
7432 * go-lang.c (go_language_defn): Use go_value_print_inner.
7433
5f56f7cb
TT
74342020-03-13 Tom Tromey <tom@tromey.com>
7435
7436 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
7437 API.
7438 (rust_val_print): Rewrite.
7439 (rust_value_print_inner): New function, from rust_val_print.
7440 (rust_language_defn): Use rust_value_print_inner.
7441
26792ee0
TT
74422020-03-13 Tom Tromey <tom@tromey.com>
7443
7444 * ada-valprint.c (ada_value_print_inner): New function.
7445 * ada-lang.h (ada_value_print_inner): Declare.
7446 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
7447
24051bbe
TT
74482020-03-13 Tom Tromey <tom@tromey.com>
7449
7450 * f-valprint.c (f_value_print_innner): New function.
7451 * f-lang.h (f_value_print_innner): Declare.
7452 * f-lang.c (f_language_defn): Use f_value_print_innner.
7453
c0941be6
TT
74542020-03-13 Tom Tromey <tom@tromey.com>
7455
7456 * p-valprint.c (pascal_value_print_inner): New function.
7457 * p-lang.h (pascal_value_print_inner): Declare.
7458 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
7459
62c4663d
TT
74602020-03-13 Tom Tromey <tom@tromey.com>
7461
7462 * m2-valprint.c (m2_value_print_inner): New function.
7463 * m2-lang.h (m2_value_print_inner): Declare.
7464 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
7465
62182190
TT
74662020-03-13 Tom Tromey <tom@tromey.com>
7467
7468 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
7469 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
7470 * c-valprint.c (c_value_print_inner): New function.
7471 * c-lang.h (c_value_print_inner): Declare.
7472 * c-lang.c (c_language_defn, cplus_language_defn)
7473 (asm_language_defn, minimal_language_defn): Use
7474 c_value_print_inner.
7475
1e592a8a
TT
74762020-03-13 Tom Tromey <tom@tromey.com>
7477
7478 * p-valprint.c (pascal_object_print_value_fields): Now static.
7479 * p-lang.h (pascal_object_print_value_fields): Don't declare.
7480
7fe471e9
TT
74812020-03-13 Tom Tromey <tom@tromey.com>
7482
7483 * c-valprint.c (c_val_print_array): Simplify.
7484
d121c6ce
TT
74852020-03-13 Tom Tromey <tom@tromey.com>
7486
7487 * valprint.c (value_print_array_elements): New function.
7488 * valprint.h (value_print_array_elements): Declare.
7489
4dba70ee
TT
74902020-03-13 Tom Tromey <tom@tromey.com>
7491
7492 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
7493 * mips-tdep.c (mips_print_register): Use
7494 value_print_scalar_formatted.
7495
4f9ae810
TT
74962020-03-13 Tom Tromey <tom@tromey.com>
7497
7498 * valprint.h (value_print_scalar_formatted): Declare.
7499 * valprint.c (value_print_scalar_formatted): New function.
7500
156bfec9
TT
75012020-03-13 Tom Tromey <tom@tromey.com>
7502
7503 * valprint.h (generic_value_print): Declare.
7504 * valprint.c (generic_value_print): New function.
7505
2b4e573d
TT
75062020-03-13 Tom Tromey <tom@tromey.com>
7507
7508 * valprint.c (do_val_print): Call la_value_print_inner, if
7509 available.
7510 * rust-lang.c (rust_language_defn): Update.
7511 * p-lang.c (pascal_language_defn): Update.
7512 * opencl-lang.c (opencl_language_defn): Update.
7513 * objc-lang.c (objc_language_defn): Update.
7514 * m2-lang.c (m2_language_defn): Update.
7515 * language.h (struct language_defn) <la_value_print_inner>: New
7516 member.
7517 * language.c (unknown_language_defn, auto_language_defn): Update.
7518 * go-lang.c (go_language_defn): Update.
7519 * f-lang.c (f_language_defn): Update.
7520 * d-lang.c (d_language_defn): Update.
7521 * c-lang.c (c_language_defn, cplus_language_defn)
7522 (asm_language_defn, minimal_language_defn): Update.
7523 * ada-lang.c (ada_language_defn): Update.
7524
a1f6a07c
TT
75252020-03-13 Tom Tromey <tom@tromey.com>
7526
7527 * c-valprint.c (c_value_print): Use common_val_print.
7528
410cf315
TT
75292020-03-13 Tom Tromey <tom@tromey.com>
7530
7531 * cp-valprint.c (cp_print_static_field): Use common_val_print.
7532
72a45c93
TT
75332020-03-13 Tom Tromey <tom@tromey.com>
7534
7535 * f-valprint.c (f77_print_array_1, f_val_print): Use
7536 common_val_print.
7537
040f66bd
TT
75382020-03-13 Tom Tromey <tom@tromey.com>
7539
7540 * riscv-tdep.c (riscv_print_one_register_info): Use
7541 common_val_print.
7542
a6e05a6c
TT
75432020-03-13 Tom Tromey <tom@tromey.com>
7544
7545 * mi/mi-main.c (output_register): Use common_val_print.
7546
3444c526
TT
75472020-03-13 Tom Tromey <tom@tromey.com>
7548
7549 * infcmd.c (default_print_one_register_info): Use
7550 common_val_print.
7551
c2a44efe
TT
75522020-03-13 Tom Tromey <tom@tromey.com>
7553
7554 * valprint.h (common_val_print_checked): Declare.
7555 * valprint.c (common_val_print_checked): New function.
7556 * stack.c (print_frame_arg): Use common_val_print_checked.
7557
b0c26e99
TT
75582020-03-13 Tom Tromey <tom@tromey.com>
7559
7560 * valprint.c (do_val_print): New function, from val_print.
7561 (val_print): Use do_val_print.
7562 (common_val_print): Use do_val_print.
7563
ce3acbe9
TT
75642020-03-13 Tom Tromey <tom@tromey.com>
7565
7566 * valprint.c (value_print): Use scoped_value_mark.
7567
96c7f873
TV
75682020-03-13 Tom de Vries <tdevries@suse.de>
7569
7570 PR symtab/25646
7571 * psymtab.c (partial_symtab::partial_symtab): Don't set
7572 globals_offset and statics_offset. Push element onto
7573 current_global_psymbols and current_static_psymbols stacks.
7574 (concat): New function.
7575 (end_psymtab_common): Set globals_offset and statics_offset. Pop
7576 element from current_global_psymbols and current_static_psymbols
7577 stacks. Concat popped elements to global_psymbols and
7578 static_symbols.
7579 (add_psymbol_to_list): Use current_global_psymbols and
7580 current_static_psymbols stacks.
7581 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
7582 current_static_psymbols fields.
7583
6ba0a321
CB
75842020-03-12 Christian Biesinger <cbiesinger@google.com>
7585
7586 * corelow.c (sniff_core_bfd): Remove.
7587 (class core_target) <m_core_vec>: Remove.
7588 (core_target::core_target): Update.
7589 (core_file_fns): Remove.
7590 (deprecated_add_core_fns): Remove.
7591 (default_core_sniffer): Remove.
7592 (sniff_core_bfd): Remove.
7593 (default_check_format): Remove.
7594 (gdb_check_format): Remove.
7595 (core_target_open): Update.
7596 (core_target::get_core_register_section): Update.
7597 (get_core_registers_cb): Update.
7598 (core_target::fetch_registers): Update.
7599 * gdbcore.h (struct core_fns): Remove.
7600 (deprecated_add_core_fns): Remove.
7601 (default_core_sniffer): Remove.
7602 (default_check_format): Remove.
7603
227031b2
TT
76042020-03-12 Tom Tromey <tom@tromey.com>
7605
7606 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
7607 CORE_ADDR.
7608 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
7609
53807e9f
TT
76102020-03-12 Tom Tromey <tom@tromey.com>
7611
7612 * remote.c (remote_target::download_tracepoint)
7613 (remote_target::enable_tracepoint)
7614 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
7615 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
7616 sprintf_vma.
7617
64f25102
TT
76182020-03-12 Tom Tromey <tom@tromey.com>
7619
7620 * symfile-mem.c: Update CORE_ADDR size assert.
7621
272cd5a3
SM
76222020-03-12 Simon Marchi <simon.marchi@efficios.com>
7623
7624 * selftest.m4: Move to gdbsupport/.
7625 * acinclude.m4: Update path to selftest.m4.
7626
74cd3f9d
SM
76272020-03-12 Simon Marchi <simon.marchi@efficios.com>
7628
7629 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
7630 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
7631 gdbarch-selfselftests.c and selftest-arch.c.
7632 (SUBDIR_UNITTESTS_OBS): Rename to...
7633 (SELFTESTS_OBS): ... this.
7634 (COMMON_SFILES): Remove disasm-selftests.c and
7635 gdbarch-selftests.c.
7636 * configure.ac: Don't add selftest-arch.{c,o} to
7637 CONFIG_{SRCS,OBS}.
7638 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
7639 preprocessor conditions.
7640
db6878ac
SM
76412020-03-12 Simon Marchi <simon.marchi@efficios.com>
7642
7643 * configure.ac: Don't source bfd/development.sh.
7644 * selftest.m4: Modify comment.
7645 * configure: Re-generate.
7646
4d696a5c
SM
76472020-03-12 Simon Marchi <simon.marchi@efficios.com>
7648
7649 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
7650 not "true" or "false".
7651 * configure: Re-generate.
7652
8dd8e1c7
CB
76532020-03-12 Christian Biesinger <cbiesinger@google.com>
7654
7655 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
7656 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
7657 renamed to arm_nbsd_supply_gregset.
7658 (fetch_register): Update to call arm_nbsd_supply_gregset.
7659 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
7660 (arm_netbsd_nat_target::fetch_registers): Update.
7661 (fetch_elfcore_registers): Removed.
7662 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
7663 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
7664 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
7665 not require NetBSD system headers.
7666 (arm_nbsd_regset): New struct.
7667 (arm_nbsd_iterate_over_regset_sections): New function.
7668 (arm_netbsd_init_abi_common): Updated to call
7669 set_gdbarch_iterate_over_regset_sections.
7670 * arm-nbsd-tdep.h: New file.
7671
dd69bf7a
KB
76722020-03-11 Kevin Buettner <kevinb@redhat.com>
7673
7674 * symtab.c (find_pc_sect_line): Add check which prevents infinite
7675 recursion.
7676
a0761e34
SM
76772020-03-11 Simon Marchi <simon.marchi@efficios.com>
7678
7679 * configure: Re-generate.
7680
e7a82140
TT
76812020-03-11 Tom Tromey <tromey@adacore.com>
7682
7683 * ada-typeprint.c (print_choices): Fix comment.
7684
dcc050c8
AB
76852020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
7686
7687 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
7688 previous item in the list, when the list has no items.
7689
1c33af77
TV
76902020-03-11 Tom de Vries <tdevries@suse.de>
7691
7692 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
7693 PROP_LOCLIST handling code.
7694
8c95582d
AB
76952020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
7696
7697 * buildsym-legacy.c (record_line): Pass extra parameter to
7698 record_line.
7699 * buildsym.c (buildsym_compunit::record_line): Take an extra
7700 parameter, reduce duplication in the line table, and record the
7701 is_stmt flag in the line table.
7702 * buildsym.h (buildsym_compunit::record_line): Add extra
7703 parameter.
7704 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
7705 non-statement lines.
7706 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
7707 this to the symtab builder.
7708 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
7709 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
7710 through to dwarf_record_line_1.
7711 * infrun.c (process_event_stop_test): When stepping, don't stop at
7712 a non-statement instruction, and only refresh the step info when
7713 we land in the middle of a line's range. Also add an extra
7714 comment.
7715 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
7716 field.
7717 * record-btrace.c (btrace_find_line_range): Only record lines
7718 marked as is-statement.
7719 * stack.c (frame_show_address): Show the frame address if we are
7720 in a non-statement sal.
7721 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
7722 (maintenance_print_one_line_table): Print a header for the is_stmt
7723 column, and include is_stmt information in the output.
7724 * symtab.c (find_pc_sect_line): Find lines marked as statements in
7725 preference to non-statements.
7726 (find_pcs_for_symtab_line): Prefer is-statement entries.
7727 (find_line_common): Likewise.
7728 * symtab.h (struct linetable_entry): Add is_stmt field.
7729 (struct symtab_and_line): Likewise.
7730 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
7731 arranging the line table.
7732
e4003a34
TV
77332020-03-07 Tom de Vries <tdevries@suse.de>
7734
7735 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
7736 DIE.
7737
e8932576
TT
77382020-03-07 Tom Tromey <tom@tromey.com>
7739
7740 * valops.c (value_literal_complex): Remove obsolete comment.
7741 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
7742 comment.
7743
29734269
SM
77442020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
7745
7746 * infrun.h: Forward-declare thread_info.
7747 (set_step_info): Add thread_info parameter, add doc.
7748 * infrun.c (set_step_info): Add thread_info parameter, move doc
7749 to header.
7750 * infrun.c (process_event_stop_test): Pass thread to
7751 set_step_info call.
7752 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
7753 set_step_info.
7754 (prepare_one_step): Add thread_info parameter, pass it to
7755 set_step_frame and prepare_one_step (recursive) call.
7756 (step_1): Pass thread to prepare_one_step call.
7757 (step_command_fsm::should_stop): Pass thread to
7758 prepare_one_step.
7759 (until_next_fsm): Pass thread to set_step_frame call.
7760 (finish_command): Pass thread to set_step_info call.
7761
b7d64b29
HD
77622020-03-06 Hannes Domani <ssbssa@yahoo.de>
7763
7764 * windows-tdep.c (windows_solib_create_inferior_hook):
7765 Check if inferior is running.
7766
09f2921c
TV
77672020-03-06 Tom de Vries <tdevries@suse.de>
7768
7769 * NEWS: Fix "the the".
7770 * ctfread.c: Same.
7771
fd760e79
TV
77722020-03-06 Tom de Vries <tdevries@suse.de>
7773
7774 * psymtab.c (psymtab_to_symtab): Don't print "done.".
7775
20ea4a60
AB
77762020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
7777
7778 * .dir-locals.el: Add a comment referencing the other copies of
7779 this file.
7780
0afbabf0
JB
77812020-03-05 John Baldwin <jhb@FreeBSD.org>
7782
7783 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
7784 psargs.
7785
842806cb
TBA
77862020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7787
7788 * .gitattributes: New file.
7789
be1e3d3e
TT
77902020-03-04 Tom Tromey <tom@tromey.com>
7791
7792 * symmisc.c (print_symbol_bcache_statistics)
7793 (print_objfile_statistics): Update.
7794 * symfile.c (allocate_symtab): Use intern.
7795 * psymtab.c (partial_symtab::partial_symtab): Use intern.
7796 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
7797 macro_cache>: Remove.
7798 <string_cache>: New member.
7799 (struct objfile) <intern>: New methods.
7800 * elfread.c (elf_symtab_read): Use intern.
7801 * dwarf2/read.c (fixup_go_packaging): Intern package name.
7802 (dwarf2_compute_name, dwarf2_physname)
7803 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
7804 names.
7805 (guess_partial_die_structure_name): Update.
7806 (partial_die_info::fixup): Intern name.
7807 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
7808 name.
7809 (dwarf2_name): Intern name. Update.
7810 * buildsym.c (buildsym_compunit::get_macro_table): Use
7811 string_cache.
7812
4e7625fd
TT
78132020-03-04 Tom Tromey <tom@tromey.com>
7814
7815 * jit.c (bfd_open_from_target_memory): Make "target" const.
7816 * corefile.c (gnutarget): Now const.
7817 * gdbcore.h (gnutarget): Now const.
7818
46f9f931
HD
78192020-03-04 Hannes Domani <ssbssa@yahoo.de>
7820
7821 * NEWS: Mention support for WOW64 processes.
7822 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
7823 (amd64_windows_segment_register_p): Remove static.
7824 (_initialize_amd64_windows_nat): Update.
7825 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
7826 * i386-windows-nat.c (context_offset): Update.
7827 (i386_mappings): Rename and remove static.
7828 (i386_windows_segment_register_p): Remove static.
7829 (_initialize_i386_windows_nat): Update.
7830 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
7831 (STATUS_WX86_SINGLE_STEP): New macro.
7832 (EnumProcessModulesEx): New macro.
7833 (Wow64SuspendThread): New macro.
7834 (Wow64GetThreadContext): New macro.
7835 (Wow64SetThreadContext): New macro.
7836 (Wow64GetThreadSelectorEntry): New macro.
7837 (windows_set_context_register_offsets): Add static.
7838 (windows_set_segment_register_p): Likewise.
7839 (windows_add_thread): Adapt for WOW64 processes.
7840 (windows_fetch_one_register): Likewise.
7841 (windows_nat_target::fetch_registers): Likewise.
7842 (windows_store_one_register): Likewise.
7843 (display_selector): Likewise.
7844 (display_selectors): Likewise.
7845 (handle_exception): Likewise.
7846 (windows_continue): Likewise.
7847 (windows_nat_target::resume): Likewise.
7848 (windows_add_all_dlls): Likewise.
7849 (do_initial_windows_stuff): Likewise.
7850 (windows_nat_target::attach): Likewise.
7851 (windows_get_exec_module_filename): Likewise.
7852 (windows_nat_target::create_inferior): Likewise.
7853 (windows_xfer_siginfo): Likewise.
7854 (_initialize_loadable): Initialize Wow64SuspendThread,
7855 Wow64GetThreadContext, Wow64SetThreadContext,
7856 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
7857 * windows-nat.h (windows_set_context_register_offsets):
7858 Remove declaration.
7859 (windows_set_segment_register_p): Likewise.
7860 (i386_windows_segment_register_p): Add declaration.
7861 (amd64_windows_segment_register_p): Likewise.
7862
440cf44e
LM
78632020-03-04 Luis Machado <luis.machado@linaro.org>
7864
7865 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
7866 in "info registers" for AArch64/ARM.
7867
7868 The change caused "info registers" to not print GPR's.
7869
7870 gdb/ChangeLog:
7871
7872 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
7873
7874 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
7875 when reg->group is empty and reggroup is not.
7876
1009d92f
TT
78772020-03-03 Tom Tromey <tromey@adacore.com>
7878
7879 * dwarf2/frame.c (struct dwarf2_frame_cache)
7880 <checked_tailcall_bottom, entry_cfa_sp_offset,
7881 entry_cfa_sp_offset_p>: Remove members.
7882 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
7883 (dwarf2_frame_prev_register): Don't call
7884 dwarf2_tailcall_sniffer_first.
7885 (dwarf2_append_unwinders): Don't append tailcall unwinder.
7886 * frame-unwind.c (add_unwinder): New fuction.
7887 (frame_unwind_init): Use it. Add tailcall unwinder.
7888
5e5d66b6
AB
78892020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
7890 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7891
7892 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
7893 value should be printed as true.
7894
584cf46d
HD
78952020-03-03 Hannes Domani <ssbssa@yahoo.de>
7896
7897 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
7898 (windows_init_abi): Set and use windows_so_ops.
7899
7b973adc
SDJ
79002020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
7901
7902 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
7903 when verifying if dealing with a convenience variable.
7904
bb7b70ab
LM
79052020-03-03 Luis Machado <luis.machado@linaro.org>
7906
7907 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
7908
9822cb57
SM
79092020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
7910
7911 * infrun.c (gdbarch_supports_displaced_stepping): New.
7912 (use_displaced_stepping): Break up conditions in smaller pieces.
7913 Use gdbarch_supports_displaced_stepping.
7914 (displaced_step_prepare_throw): Use
7915 gdbarch_supports_displaced_stepping.
7916
63e163f2
AB
79172020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
7918
7919 * NEWS: Mention new behaviour of the history filename.
7920 * top.c (write_history_p): Add comment.
7921 (show_write_history_p): Add header comment, give a different
7922 message when history writing is on, but the history filename is
7923 empty.
7924 (history_filename): Add comment.
7925 (history_filename_empty): New function.
7926 (show_history_filename): Add header comment, give a different
7927 message when the filename is empty.
7928 (init_history): Compare history_filename against nullptr, and only
7929 read history if the filename is not empty.
7930 (set_history_filename): Add header comment, and only make
7931 non-empty filenames absolute.
7932 (init_main): Make the filename argument to 'set history filename'
7933 optional.
7934
81b86b97
CB
79352020-03-02 Christian Biesinger <cbiesinger@google.com>
7936
7937 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
7938 (arm_supply_vfpregset): ...this, and update to use VFP registers.
7939 (fetch_fp_register): Update.
7940 (fetch_fp_regs): Update.
7941 (store_fp_register): Update.
7942 (store_fp_regs): Update.
7943 (arm_netbsd_nat_target::read_description): New function.
7944 (fetch_elfcore_registers): Update.
7945
24ed6739
AB
79462020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
7947
7948 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
7949 general_thread if the stop reply is missing a thread-id.
7950 (remote_target::process_stop_reply): Use the first non-exited
7951 thread if the target didn't pass a thread-id.
7952 * infrun.c (do_target_wait): Move call to
7953 switch_to_inferior_no_thread to ....
7954 (do_target_wait_1): ... here.
7955
a84bb2a0
JT
79562020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
7957
7958 * debuginfod-support.c: Include defs.h first.
7959
658dadf0
TV
79602020-02-28 Tom de Vries <tdevries@suse.de>
7961
7962 * symfile.c (set_initial_language): Use default language for lookup.
7963
4ebe4877
SM
79642020-02-28 Simon Marchi <simon.marchi@efficios.com>
7965
7966 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
7967 reader variable, pass `this` to read_cutu_die_from_dwo.
7968
e5da1139
AM
79692020-02-27 Aaron Merey <amerey@redhat.com>
7970
7971 * source.c (open_source_file): Check for nullptr when computing
7972 srcpath.
7973
317f7127
TT
79742020-02-27 Tom Tromey <tromey@adacore.com>
7975
7976 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
7977 member.
7978 (dwarf2_add_field): Don't update nfields.
7979 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
7980
3104d9ee
AB
79812020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
7982
7983 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
7984 abs.
7985
b83470bf
TT
79862020-02-26 Tom Tromey <tom@tromey.com>
7987
7988 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
7989 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
7990 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
7991 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
7992 per_cu_data.
7993
edfe0a0c
TT
79942020-02-26 Tom Tromey <tom@tromey.com>
7995
7996 * dwarf2/index-write.c (psym_index_map): Change type.
7997 (add_address_entry_worker, write_one_signatured_type)
7998 (recursively_count_psymbols, recursively_write_psymbols)
7999 (class debug_names, psyms_seen_size, write_gdbindex)
8000 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
8001
0d79cdc4
AM
80022020-02-26 Aaron Merey <amerey@redhat.com>
8003
8004 * Makefile.in: Handle optional debuginfod support.
8005 * NEWS: Update.
8006 * README: Add --with-debuginfod summary.
8007 * config.in: Regenerate.
8008 * configure: Regenerate.
8009 * configure.ac: Handle optional debuginfod support.
8010 * debuginfod-support.c: debuginfod helper functions.
8011 * debuginfod-support.h: Ditto.
8012 * doc/gdb.texinfo: Add --with-debuginfod to configure options
8013 summary.
8014 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
8015 when a dwz file cannot be found.
8016 * elfread.c (elf_symfile_read): Query debuginfod servers when a
8017 debuginfo file cannot be found.
8018 * source.c (open_source_file): Query debuginfod servers when a
8019 source file cannot be found.
8020 * top.c (print_gdb_configuration): Include
8021 --{with,without}-debuginfod in the output.
8022
b65ce565
JG
80232020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
8024
8025 * thread.c (thr_try_catch_cmd): Print thread name.
8026
d4c9a4f8
SM
80272020-02-26 Simon Marchi <simon.marchi@efficios.com>
8028
8029 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
8030 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8031 dwarf2_fetch_die_type_sect_off): Move to...
8032 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
8033 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8034 dwarf2_fetch_die_type_sect_off): ... here.
8035 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
8036 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8037 dwarf2_fetch_die_type_sect_off): Move doc to header file.
8038
0dce4280
TV
80392020-02-26 Tom de Vries <tdevries@suse.de>
8040
8041 PR gdb/25603
8042 * symfile.c (set_initial_language): Exit-early if
8043 language_mode == language_mode_manual.
8044
450a1bfc
SM
80452020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8046
8047 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
8048 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
8049 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
8050
9e80cfa1
AB
80512020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
8052
8053 * gdbtypes.c (create_array_type_with_stride): Handle negative
8054 array strides.
8055 * valarith.c (value_subscripted_rvalue): Likewise.
8056
09624f1f
LM
80572020-02-25 Luis Machado <luis.machado@linaro.org>
8058
8059 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
8060
8cb5117c
SM
80612020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8062
8063 * loc.h (dwarf2_get_die_type): Move to...
8064 * read.h (dwarf2_get_die_type): ... here.
8065 * read.c (dwarf2_get_die_type): Move doc to header.
8066
c325c44e
JB
80672020-02-25 Joel Brobecker <brobecker@adacore.com>
8068
8069 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
8070 'gnulib/Makefile.in' to the list.
8071
4ac93832
TT
80722020-02-24 Tom Tromey <tom@tromey.com>
8073
8074 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
8075 Remove.
8076 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
8077 XOBNEWVEC.
8078
197400e8
TT
80792020-02-24 Tom Tromey <tom@tromey.com>
8080
8081 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
8082 New method.
8083 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
8084 (dw2_do_instantiate_symtab, dw2_get_file_names)
8085 (build_type_psymtab_dependencies, load_full_type_unit): Update.
8086
76935768
TT
80872020-02-24 Tom Tromey <tom@tromey.com>
8088
8089 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
8090 make_scoped_restore.
8091 (dwarf2_psymtab::read_symtab): Don't clear
8092 reading_partial_symbols.
8093
a88ef40d
TV
80942020-02-24 Tom de Vries <tdevries@suse.de>
8095
8096 PR gdb/25592
8097 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
8098
c9af6521
TV
80992020-02-24 Tom de Vries <tdevries@suse.de>
8100
8101 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
8102 commands layout next/prev/regs.
8103
5707a07a
TT
81042020-02-22 Tom Tromey <tom@tromey.com>
8105
8106 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
8107 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
8108
3b0fb49e
TT
81092020-02-22 Tom Tromey <tom@tromey.com>
8110
8111 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
8112
283be8bf
TT
81132020-02-22 Tom Tromey <tom@tromey.com>
8114
8115 * tui/tui-win.c (_initialize_tui_win): Add usage text.
8116 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
8117 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
8118 * tui/tui.c (_initialize_tui): Add usage text.
8119
ca793b96
TT
81202020-02-22 Tom Tromey <tom@tromey.com>
8121
8122 * tui/tui-win.c (tui_set_focus_command)
8123 (tui_set_win_height_command): Use error_no_arg.
8124 (_initialize_tui_win): Update help text.
8125 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
8126
432b5c40
TT
81272020-02-22 Tom Tromey <tom@tromey.com>
8128
8129 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
8130 * tui/tui-disasm.h (struct tui_disasm_window)
8131 <display_start_addr>: Declare.
8132 * tui/tui-source.h (struct tui_source_window)
8133 <display_start_addr>: Declare.
8134 * tui/tui-winsource.h (struct tui_source_window_base)
8135 <show_source_line, display_start_addr>: New methods.
8136 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
8137 Rename and move to protected section.
8138 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
8139 (tui_source_window_base::do_erase_source_content): Update.
8140 (tui_source_window_base::show_source_line): Now a method.
8141 (tui_source_window_base::show_source_content)
8142 (tui_source_window_base::tui_source_window_base)
8143 (tui_source_window_base::rerender)
8144 (tui_source_window_base::refill)
8145 (tui_source_window_base::do_scroll_horizontal)
8146 (tui_source_window_base::set_is_exec_point_at)
8147 (tui_source_window_base::update_breakpoint_info)
8148 (tui_source_window_base::update_exec_info): Update.
8149 * tui/tui-source.c (tui_source_window::set_contents)
8150 (tui_source_window::showing_source_p)
8151 (tui_source_window::do_scroll_vertical)
8152 (tui_source_window::location_matches_p)
8153 (tui_source_window::line_is_displayed): Update.
8154 (tui_source_window::display_start_addr): New method.
8155 * tui/tui-disasm.c (tui_disasm_window::set_contents)
8156 (tui_disasm_window::do_scroll_vertical)
8157 (tui_disasm_window::location_matches_p): Update.
8158 (tui_disasm_window::display_start_addr): New method.
8159
01b1af32
TT
81602020-02-22 Tom Tromey <tom@tromey.com>
8161
8162 * NEWS: Add entry for gdb.register_window_type.
8163 * tui/tui-layout.h (window_factory): New typedef.
8164 (tui_register_window): Declare.
8165 * tui/tui-layout.c (saved_tui_windows): New global.
8166 (tui_apply_current_layout): Use it.
8167 (tui_register_window): New function.
8168 * python/python.c (do_start_initialization): Call
8169 gdbpy_initialize_tui.
8170 (python_GdbMethods): Add "register_window_type" function.
8171 * python/python-internal.h (gdbpy_register_tui_window)
8172 (gdbpy_initialize_tui): Declare.
8173 * python/py-tui.c: New file.
8174 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
8175
fc96d20b
TT
81762020-02-22 Tom Tromey <tom@tromey.com>
8177
8178 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
8179
935c78c0
TT
81802020-02-22 Tom Tromey <tom@tromey.com>
8181
8182 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
8183 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
8184 * tui/tui-data.c (tui_set_win_with_focus): Remove.
8185 (tui_set_win_focus_to): Move from tui-win.c.
8186
0240c8f1
TT
81872020-02-22 Tom Tromey <tom@tromey.com>
8188
8189 * tui/tui-layout.c (make_standard_window, get_locator_window): New
8190 functions.
8191 (known_window_types): New global.
8192 (tui_get_window_by_name): Reimplement.
8193 (initialize_known_windows): New function.
8194 (validate_window_name): Rewrite.
8195 (_initialize_tui_layout): Call initialize_known_windows.
8196
fdb01f0c
TT
81972020-02-22 Tom Tromey <tom@tromey.com>
8198
8199 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
8200 Remove constants.
8201 * tui/tui-winsource.h (struct tui_source_window_base)
8202 <tui_source_window_base>: Remove parameter.
8203 * tui/tui-winsource.c
8204 (tui_source_window_base::tui_source_window_base): Remove
8205 parameter.
8206 (tui_source_window_base::refill): Update.
8207 * tui/tui-stack.h (struct tui_locator_window)
8208 <tui_locator_window>: Update.
8209 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
8210 Default the constructor.
8211 * tui/tui-regs.h (struct tui_data_item_window)
8212 <tui_data_item_window>: Default the constructor.
8213 (struct tui_data_window) <tui_data_window>: Likewise.
8214 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
8215 Default the constructor.
8216 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
8217 Default the constructor.
8218 <type>: Remove.
8219 (struct tui_win_info) <tui_win_info>: Default the constructor.
8220 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
8221 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
8222 Default the constructor.
8223
865a5aec
TT
82242020-02-22 Tom Tromey <tom@tromey.com>
8225
8226 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
8227 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
8228 * tui/tui-win.c (tui_resize_all): Don't call
8229 tui_delete_invisible_windows.
8230 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
8231 done.
8232 (tui_set_layout): Update.
8233 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
8234 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
8235 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
8236
e098d18c
TT
82372020-02-22 Tom Tromey <tom@tromey.com>
8238
8239 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
8240 correctly.
8241
eb9c8874
TT
82422020-02-22 Tom Tromey <tom@tromey.com>
8243
8244 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
8245
7eed1a8e
TT
82462020-02-22 Tom Tromey <tom@tromey.com>
8247
8248 * tui/tui-winsource.h (struct tui_source_window_iterator)
8249 <inner_iterator>: New etytypedef.
8250 <tui_source_window_iterator>: Take "end" parameter.
8251 <tui_source_window_iterator>: Take iterator.
8252 <operator*, advance>: Update.
8253 <m_iter>: Change type.
8254 <m_end>: New field.
8255 (struct tui_source_windows) <begin, end>: Update.
8256 * tui/tui-layout.c (tui_windows): New global.
8257 (tui_apply_current_layout): Clear tui_windows.
8258 (tui_layout_window::apply): Update tui_windows.
8259 * tui/tui-data.h (tui_windows): Declare.
8260 (all_tui_windows): Now inline function.
8261 (class tui_window_iterator, struct all_tui_windows): Remove.
8262
7c043ba6
TT
82632020-02-22 Tom Tromey <tom@tromey.com>
8264
8265 PR tui/17850:
8266 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
8267 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
8268 "height" argument.
8269 (class tui_layout_window) <get_sizes>: Likewise.
8270 (class tui_layout_split) <tui_layout_split>: Add "vertical"
8271 argument.
8272 <get_sizes>: Add "height" argument.
8273 <m_vertical>: New field.
8274 * tui/tui-layout.c (tui_layout_split::clone): Update.
8275 (tui_layout_split::get_sizes): Add "height" argument.
8276 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
8277 (tui_new_layout_command): Parse "-horizontal".
8278 (_initialize_tui_layout): Update help string.
8279 (tui_layout_split::specification): Add "-horizontal" when needed.
8280 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
8281 argument.
8282 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
8283 New methods.
8284
6bc56648
TT
82852020-02-22 Tom Tromey <tom@tromey.com>
8286
8287 * tui/tui-layout.h (enum tui_adjust_result): New.
8288 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
8289 (class tui_layout_window) <adjust_size>: Return
8290 tui_adjust_result. Rewrite.
8291 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
8292 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
8293
c22fef7e
TT
82942020-02-22 Tom Tromey <tom@tromey.com>
8295
8296 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
8297 parameter and return types.
8298 (class tui_layout_base) <specification>: Add "depth".
8299 (class tui_layout_window) <specification>: Add "depth".
8300 (class tui_layout_split) <specification>: Add "depth".
8301 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
8302 and return types.
8303 (tui_new_layout_command): Parse sub-layouts.
8304 (_initialize_tui_layout): Update help string.
8305 (tui_layout_window::specification): Add "depth".
8306 (add_layout_command): Update.
8307
ee325b61
TT
83082020-02-22 Tom Tromey <tom@tromey.com>
8309
8310 * NEWS: Add "tui new-layout" item.
8311 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
8312 Add new-layout command to help text.
8313 (validate_window_name): New function.
8314 (tui_new_layout_command): New function.
8315 (_initialize_tui_layout): Register "new-layout".
8316 (tui_layout_window::specification): New method.
8317 (tui_layout_window::specification): New method.
8318 * tui/tui-layout.h (class tui_layout_base) <specification>: New
8319 method.
8320 (class tui_layout_window) <specification>: New method.
8321 (class tui_layout_split) <specification>: New method.
8322
416eb92d
TT
83232020-02-22 Tom Tromey <tom@tromey.com>
8324
8325 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
8326 * tui/tui-win.c (window_name_completer): Update comment.
8327 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
8328 Declare method.
8329 (class tui_layout_window) <replace_window>: Likewise.
8330 (class tui_layout_split) <replace_window>: Likewise.
8331 (tui_set_layout): Don't declare.
8332 (tui_set_initial_layout): Declare function.
8333 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
8334 (asm_regs_layout): New globals.
8335 (tui_current_layout, show_layout): Remove.
8336 (tui_set_layout, tui_add_win_to_layout): Rewrite.
8337 (find_layout, tui_apply_layout): New function.
8338 (layout_completer): Remove.
8339 (tui_next_layout): Reimplement.
8340 (tui_next_layout_command): New function.
8341 (tui_set_initial_layout, tui_prev_layout_command): New functions.
8342 (tui_regs_layout): Reimplement.
8343 (tui_regs_layout_command): New function.
8344 (extract_display_start_addr): Rewrite.
8345 (next_layout, prev_layout): Remove.
8346 (tui_layout_window::replace_window): New method.
8347 (tui_layout_split::replace_window): New method.
8348 (destroy_layout): New function.
8349 (layout_list): New global.
8350 (add_layout_command): New function.
8351 (initialize_layouts): Update.
8352 (tui_layout_command): New function.
8353 (_initialize_tui_layout): Install "layout" commands.
8354 * tui/tui-data.h (enum tui_layout_type): Remove.
8355 (tui_current_layout): Don't declare.
8356
0dbc2fc7
TT
83572020-02-22 Tom Tromey <tom@tromey.com>
8358
8359 * tui/tui-regs.c (tui_reg_layout): Remove.
8360 (tui_reg_command): Use tui_regs_layout.
8361 * tui/tui-layout.h (tui_reg_command): Declare.
8362 * tui/tui-layout.c (tui_reg_command): New function.
8363
5afe342e
TT
83642020-02-22 Tom Tromey <tom@tromey.com>
8365
8366 * tui/tui.c (tui_rl_delete_other_windows): Call
8367 tui_remove_some_windows.
8368 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
8369 Declare method.
8370 (class tui_layout_window) <remove_windows>: New method.
8371 (class tui_layout_split) <remove_windows>: Declare.
8372 (tui_remove_some_windows): Declare.
8373 * tui/tui-layout.c (tui_remove_some_windows): New function.
8374 (tui_layout_split::remove_windows): New method.
8375
427326a8
TT
83762020-02-22 Tom Tromey <tom@tromey.com>
8377
8378 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
8379 * tui/tui-layout.h (tui_next_layout): Declare.
8380 * tui/tui-layout.c (tui_next_layout): New function.
8381
3fe12b6d
TT
83822020-02-22 Tom Tromey <tom@tromey.com>
8383
8384 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
8385 correct coordinates.
8386
59b8b5d2
TT
83872020-02-22 Tom Tromey <tom@tromey.com>
8388
8389 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
8390 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
8391 DATA_WIN case.
8392
2a3d458b
TT
83932020-02-22 Tom Tromey <tom@tromey.com>
8394
8395 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
8396 TUI_DISASM_WIN, not tui_win_list.
8397
3f0cbb04
TT
83982020-02-22 Tom Tromey <tom@tromey.com>
8399
8400 * valprint.c (generic_val_print_enum_1)
8401 (val_print_type_code_flags): Style member names.
8402 * rust-lang.c (val_print_struct, rust_print_enum)
8403 (rust_print_struct_def, rust_internal_print_type): Style member
8404 names.
8405 * p-valprint.c (pascal_object_print_value_fields): Style member
8406 names. Only call fprintf_symbol_filtered for static members.
8407 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
8408 * f-valprint.c (f_val_print): Style member names.
8409 * f-typeprint.c (f_type_print_base): Style member names.
8410 * cp-valprint.c (cp_print_value_fields): Style member names. Only
8411 call fprintf_symbol_filtered for static members.
8412 (cp_print_class_member): Style member names.
8413 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
8414 member names.
8415 * ada-valprint.c (ada_print_scalar): Style enum names.
8416 (ada_val_print_enum): Likewise.
8417 * ada-typeprint.c (print_enum_type): Style enum names.
8418
d4d947ae
TT
84192020-02-21 Tom Tromey <tom@tromey.com>
8420
8421 * psympriv.h (struct partial_symtab): Update comment.
8422
e94e944b
TT
84232020-02-21 Tom Tromey <tromey@adacore.com>
8424
8425 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
8426 type is CORE_ADDR.
8427
1eb73179
TV
84282020-02-21 Tom de Vries <tdevries@suse.de>
8429
8430 PR gdb/25534
8431 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
8432 if dependencies[i]->user != NULL.
8433
4f180d53
AT
84342020-02-21 Ali Tamur <tamur@google.com>
8435
8436 * dwarf2/read.c (dwarf2_name): Add null check.
8437
22b6cd70
TT
84382020-02-20 Tom Tromey <tom@tromey.com>
8439
8440 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
8441 ">=", in binary search.
8442 (dwarf2_find_containing_comp_unit): New overload.
8443 (run_test): New self-test.
8444 (_initialize_dwarf2_read): Register new test.
8445
bd0cf5a6
NC
84462020-02-20 Nelson Chu <nelson.chu@sifive.com>
8447
8448 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
8449 * riscv-tdep.h: Likewise.
8450 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
8451 rv32-only CSR.
8452 * features/riscv/64bit-csr.xml: Regenerated.
8453
3f702acd
SDJ
84542020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
8455 Tom Tromey <tom@tromey.com>
8456
8457 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
8458 of 'fputc_unfiltered'.
8459 (putchar_unfiltered): Call 'fputc_unfiltered'.
8460 (fputc_unfiltered): Call 'fputs_unfiltered'.
8461
d13c7322
AB
84622020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
8463
8464 * config.in: Regenerate.
8465 * configure: Regenerate.
8466 * configure.ac: Add --with-python-libdir option.
8467 * main.c: Use WITH_PYTHON_LIBDIR.
8468
869d8950
TT
84692020-02-19 Tom Tromey <tom@tromey.com>
8470
8471 * symtab.c (general_symbol_info::compute_and_set_names): Use
8472 obstack_strndup. Simplify call to symbol_set_demangled_name.
8473
298e9637
SM
84742020-02-19 Simon Marchi <simon.marchi@efficios.com>
8475
8476 * dwarf2/read.c (allocate_signatured_type_table,
8477 allocate_dwo_unit_table, allocate_type_unit_groups_table,
8478 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
8479 Remove objfile parameter, update all callers.
8480
08410482
DE
84812020-02-19 Doug Evans <dje@google.com>
8482
8483 PR rust/25535
8484 * rust-lang.c (rust_print_enum): Apply embedded_offset to
8485 rust_enum_variant calculation.
8486
dfdeeca1
TT
84872020-02-19 Tom Tromey <tromey@adacore.com>
8488
8489 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
8490
2ef5453b
TT
84912020-02-19 Tom Tromey <tromey@adacore.com>
8492
8493 * ada-lang.c (cache_symbol): Use obstack_strdup.
8494
9f1528a1
AB
84952020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
8496
8497 * configure: Regenerate.
8498
d3c22fa8
TT
84992020-02-19 Tom Tromey <tromey@adacore.com>
8500
8501 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
8502 NULL check.
8503
bf84f706
MR
85042020-02-19 Maciej W. Rozycki <macro@wdc.com>
8505
8506 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
8507
d1c9b20f
AB
85082020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
8509
8510 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
8511 if GDBSERVER is not defined.
8512 (riscv_tdesc_cache): Likewise, also store const target_desc.
8513 (STATIC_IN_GDB): Define.
8514 (riscv_create_target_description): Update declaration with
8515 STATIC_IN_GDB.
8516 (riscv_lookup_target_description): New function, only define if
8517 GDBSERVER is not defined.
8518 * arch/riscv.h (riscv_create_target_description): Declare only
8519 when GDBSERVER is defined.
8520 (riscv_lookup_target_description): New declaration when GDBSERVER
8521 is not defined.
8522 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
8523 (riscv_linux_read_features): ...this, and return
8524 riscv_gdbarch_features instead of target_desc.
8525 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
8526 (riscv_linux_read_description): Rename to...
8527 (riscv_linux_read_features): ...this.
8528 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
8529 Update to use riscv_gdbarch_features and
8530 riscv_lookup_target_description.
8531 * riscv-tdep.c (riscv_find_default_target_description): Use
8532 riscv_lookup_target_description instead of
8533 riscv_create_target_description.
8534
373d7ac0
SM
85352020-02-18 Simon Marchi <simon.marchi@efficios.com>
8536
8537 * valprint.c (generic_val_print_enum_1): When printing a flag
8538 enum with value 0 and there is no enumerator with value 0, print
8539 just "0" instead of "(unknown: 0x0)".
8540
b29a2df0
SM
85412020-02-18 Simon Marchi <simon.marchi@efficios.com>
8542
8543 * valprint.c (generic_val_print_enum_1): Print unknown part of
8544 flag enum in hex.
8545
6740f0cc
SM
85462020-02-18 Simon Marchi <simon.marchi@efficios.com>
8547
8548 * dwarf2/read.c (update_enumeration_type_from_children): Allow
8549 flag enums to contain duplicate enumerators.
8550 * valprint.c (generic_val_print_enum_1): Update comment.
8551
edd45eb0
SM
85522020-02-18 Simon Marchi <simon.marchi@efficios.com>
8553
8554 * dwarf2/read.c: Include "count-one-bits.h".
8555 (update_enumeration_type_from_children): If an enumerator has
8556 multiple bits set, don't treat the enumeration as a "flag enum".
8557 * valprint.c (generic_val_print_enum_1): Assert that enumerators
8558 of flag enums have 0 or 1 bit set.
8559
6d0cf446
BE
85602020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
8561
8562 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
8563 conversion.
8564 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8565 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
8566 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8567 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
8568 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8569
7001c1b7
SM
85702020-02-18 Simon Marchi <simon.marchi@efficios.com>
8571
8572 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
8573
fdb61c6c
SM
85742020-02-14 Simon Marchi <simon.marchi@efficios.com>
8575
8576 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
8577 displaced_step_closure_up.
8578 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
8579 (struct displaced_step_closure_up):
8580 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8581 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
8582 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
8583 Likewise.
8584 * gdbarch.sh (displaced_step_copy_insn): Likewise.
8585 * gdbarch.c, gdbarch.h: Re-generate.
8586 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
8587 displaced_step_closure_up.
8588 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8589 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
8590 * infrun.h (displaced_step_closure_up): New type alias.
8591 (struct displaced_step_inferior_state) <step_closure>: Change
8592 type to displaced_step_closure_up.
8593 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
8594 displaced_step_closure_up.
8595 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8596
a4a38eb4
TT
85972020-02-14 Tom Tromey <tom@tromey.com>
8598
8599 * minidebug.c (gnu_debug_key): New global.
8600 (find_separate_debug_file_in_section): Use it.
8601
e8217e61
SM
86022020-02-14 Simon Marchi <simon.marchi@efficios.com>
8603
8604 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
8605 std::unique_ptr.
8606 * gdbarch.c: Re-generate.
8607 * gdbarch.h: Re-generate.
8608 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
8609 change.
8610 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
8611 type to std::unique_ptr.
8612 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
8613 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8614 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
8615 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
8616 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
8617 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8618 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
8619 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
8620 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8621
d8d83535
SM
86222020-02-14 Simon Marchi <simon.marchi@efficios.com>
8623
8624 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
8625 std::unique_ptr.
8626 (displaced_step_clear): Rename to...
8627 (displaced_step_reset): ... this. Just call displaced->reset ().
8628 (displaced_step_clear_cleanup): Rename to...
8629 (displaced_step_reset_cleanup): ... this.
8630 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
8631 (displaced_step_fixup): Likewise.
8632 (resume_1): Likewise.
8633 (handle_inferior_event): Restore child's memory before calling
8634 displaced_step_fixup on the parent.
8635 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
8636 to std::unique_ptr.
8637 <step_closure>: Change type to std::unique_ptr.
8638
5f661e03
SM
86392020-02-14 Simon Marchi <simon.marchi@efficios.com>
8640
8641 * arm-tdep.c: Include count-one-bits.h.
8642 (cleanup_block_store_pc): Use count_one_bits.
8643 (cleanup_block_load_pc): Use count_one_bits.
8644 (arm_copy_block_xfer): Use count_one_bits.
8645 (thumb2_copy_block_xfer): Use count_one_bits.
8646 (thumb_copy_pop_pc_16bit): Use count_one_bits.
8647 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
8648 (thumb_get_next_pcs_raw): Use count_one_bits.
8649 (arm_get_next_pcs_raw): Use count_one_bits_l.
8650 * arch/arm.c (bitcount): Remove.
8651 * arch/arm.h (bitcount): Remove.
8652
8084e579
TT
86532020-02-14 Tom Tromey <tromey@adacore.com>
8654
8655 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
8656 Update.
8657 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
8658 * dwarf2/loc.c (call_site_find_chain_1): Return
8659 unique_xmalloc_ptr.
8660 (call_site_find_chain): Likewise.
8661
258bf0ee
RB
86622020-02-14 Richard Biener <rguenther@suse.de>
8663
8664 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
8665 on expression with division operators.
8666
f98a8458
AKS
86672020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8668
8669 * MAINTAINERS (Write After Approval): Adding myself.
8670
d1437c0e
TT
86712020-02-12 Tom Tromey <tom@tromey.com>
8672
8673 * event-loop.c (event_data, gdb_event, event_handler_func):
8674 Remove.
8675
3d4560f7
TT
86762020-02-12 Tom Tromey <tom@tromey.com>
8677
8678 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
8679 (dwarf2_frame_objfile_data): Add comment.
8680 (find_comp_unit, set_comp_unit): New functions.
8681 (dwarf2_frame_find_fde): Use find_comp_unit.
8682 (dwarf2_build_frame_info): Use set_comp_unit.
8683
21982304
TT
86842020-02-12 Tom Tromey <tom@tromey.com>
8685
8686 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
8687 (comp_unit): Don't initialize objfile.
8688 (execute_cfa_program): Add text_offset parameter.
8689 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
8690 (dwarf2_frame_cache): Update.
8691 (dwarf2_build_frame_info): Don't set "objfile" member.
8692
4debb237
TT
86932020-02-12 Tom Tromey <tom@tromey.com>
8694
8695 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
8696 (decode_frame_entry): Likewise.
8697 (dwarf2_build_frame_info): Update.
8698
0d404d44
TT
86992020-02-12 Tom Tromey <tom@tromey.com>
8700
8701 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
8702 (decode_frame_entry_1): Use the comp_unit obstack.
8703
a7a3ae5c
TT
87042020-02-12 Tom Tromey <tom@tromey.com>
8705
8706 * dwarf2/frame.c (struct comp_unit): Add initializers and
8707 constructor.
8708 (dwarf2_frame_objfile_data): Store a comp_unit.
8709 (dwarf2_frame_find_fde): Update.
8710 (dwarf2_build_frame_info): Use "new".
8711
a9d65418
TT
87122020-02-12 Tom Tromey <tom@tromey.com>
8713
8714 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
8715 (dwarf2_fde_table): Typedef for std::vector.
8716 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
8717 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
8718 (decode_frame_entry): Update.
8719 (dwarf2_build_frame_info): Use "new".
8720
7559c217
CB
87212020-02-12 Christian Biesinger <cbiesinger@google.com>
8722
8723 * arm-tdep.c (arm_gdbarch_init): Update.
8724 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
8725 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
8726 have_neon, is_m>: Change to bool.
8727
aeefc73c
CB
87282020-02-12 Christian Biesinger <cbiesinger@google.com>
8729
8730 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
8731
d27b8e5f
TT
87322020-02-12 Tom Tromey <tom@tromey.com>
8733
8734 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
8735
cd5900f3
HD
87362020-02-12 Hannes Domani <ssbssa@yahoo.de>
8737
8738 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
8739 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
8740
f056b22b
TT
87412020-02-11 Tom Tromey <tom@tromey.com>
8742
8743 * psymtab.h: Update comment.
8744
f92ff6b5
TT
87452020-02-11 Tom Tromey <tom@tromey.com>
8746
8747 * gdb_obstack.h (struct auto_obstack): Use
8748 DISABLE_COPY_AND_ASSIGN.
8749
3fd6912b
TT
87502020-02-11 Tom Tromey <tom@tromey.com>
8751
8752 * dwarf2/frame.h (struct objfile): Don't forward declare.
8753
69ed9b74
CB
87542020-02-11 Christian Biesinger <cbiesinger@google.com>
8755
8756 * cris-tdep.c (cris_supply_gregset): Change signature to match
8757 what struct regset expects.
8758 (cris_regset): New struct.
8759 (fetch_core_registers): Remove.
8760 (cris_iterate_over_regset_sections): New function.
8761 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
8762 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
8763
bda874f6
CB
87642020-02-11 Christian Biesinger <cbiesinger@google.com>
8765
8766 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
8767 registers.
8768
754e1564
CB
87692020-02-11 Christian Biesinger <cbiesinger@google.com>
8770
8771 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
8772
8ddd8e0e
SM
87732020-02-11 Simon Marchi <simon.marchi@efficios.com>
8774
8775 * configure: Re-generate.
8776
898e7f60
SM
87772020-02-11 Simon Marchi <simon.marchi@efficios.com>
8778
8779 * configure: Re-generate.
8780
58df732b
SM
87812020-02-11 Simon Marchi <simon.marchi@efficios.com>
8782
8783 * acinclude: Update warning.m4 path.
8784 * warning.m4: Move to gdbsupport.
8785
da5bd37e
TT
87862020-02-11 Tom Tromey <tromey@adacore.com>
8787
8788 * remote.c (remote_console_output): Update.
8789 * printcmd.c (printf_command): Update.
8790 * event-loop.c (gdb_wait_for_event): Update.
8791 * linux-nat.c (sigchld_handler): Update.
8792 * remote-sim.c (gdb_os_write_stdout): Update.
8793 (gdb_os_flush_stdout): Update.
8794 (gdb_os_flush_stderr): Update.
8795 (gdb_os_write_stderr): Update.
8796 * exceptions.c (print_exception): Update.
8797 * remote-fileio.c (remote_fileio_func_read): Update.
8798 (remote_fileio_func_write): Update.
8799 * tui/tui.c (tui_enable): Update.
8800 * tui/tui-interp.c (tui_interp::init): Update.
8801 * utils.c (init_page_info): Update.
8802 (putchar_unfiltered, fputc_unfiltered): Update.
8803 (gdb_flush): Update.
8804 (emit_style_escape): Update.
8805 (flush_wrap_buffer, fputs_maybe_filtered): Update.
8806 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
8807 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
8808 (stderr_file::write): Update.
8809 (stderr_file::puts): Update.
8810 * ui-file.h (ui_file_isatty, ui_file_write)
8811 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
8812 (ui_file_puts): Don't declare.
8813
85f0dd3c
TV
88142020-02-10 Tom de Vries <tdevries@suse.de>
8815
8816 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
8817 sentinel to char *.
8818
2e927613
TV
88192020-02-09 Tom de Vries <tdevries@suse.de>
8820
8821 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
8822 filename if it matches "<artificial>".
8823
6bafc845
HD
88242020-02-09 Hannes Domani <ssbssa@yahoo.de>
8825
8826 * windows-tdep.c (struct enum_value_name): New struct.
8827 (create_enum): New function.
8828 (windows_get_siginfo_type): Create and use enum types.
8829
7928d571
HD
88302020-02-09 Hannes Domani <ssbssa@yahoo.de>
8831
8832 * NEWS: Mention $_siginfo support for Windows.
8833 * windows-nat.c (handle_exception): Set siginfo_er.
8834 (windows_nat_target::mourn_inferior): Reset siginfo_er.
8835 (windows_xfer_siginfo): New function.
8836 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
8837 * windows-tdep.c (struct windows_gdbarch_data): New struct.
8838 (init_windows_gdbarch_data): New function.
8839 (get_windows_gdbarch_data): New function.
8840 (windows_get_siginfo_type): New function.
8841 (windows_init_abi): Register windows_get_siginfo_type.
8842 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
8843
6751ebae
TT
88442020-02-08 Tom Tromey <tom@tromey.com>
8845
8846 * dwarf2/read.c (class cutu_reader) <cutu_reader,
8847 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
8848 <keep>: Declare method.
8849 <m_keep>: Remove member.
8850 <~cutu_reader>: Remove.
8851 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8852 (cutu_reader::cutu_reader): Update.
8853 (cutu_reader::keep): Rename from ~cutu_reader.
8854 (process_psymtab_comp_unit, build_type_psymtabs_1)
8855 (process_skeletonless_type_unit, load_partial_comp_unit)
8856 (load_full_comp_unit, dwarf2_read_addr_index)
8857 (read_signatured_type): Update.
8858
135f5437
TT
88592020-02-08 Tom Tromey <tom@tromey.com>
8860
8861 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
8862 "want_partial_unit" parameter.
8863 (process_psymtab_comp_unit): Change want_partial_unit to bool.
8864 Inline check for DW_TAG_partial_unit.
8865 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
8866
9f66ff1c
TT
88672020-02-08 Tom Tromey <tom@tromey.com>
8868
8869 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
8870 read.c.
8871 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
8872 read.c.
8873
c8a7a66f
TT
88742020-02-08 Tom Tromey <tom@tromey.com>
8875
8876 * dwarf2/read.c (read_address): Move to comp-unit.c.
8877 (dwarf2_rnglists_process, dwarf2_ranges_process)
8878 (read_attribute_value, dwarf_decode_lines_1)
8879 (var_decode_location, decode_locdesc): Update.
8880 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
8881 read.c. Remove "cu" parameter.
8882 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
8883 method.
8884
8266302d
TT
88852020-02-08 Tom Tromey <tom@tromey.com>
8886
8887 * dwarf2/read.c (read_attribute_value, read_indirect_string)
8888 (read_indirect_line_string): Update.
8889 * dwarf2/comp-unit.c (read_offset): Remove.
8890 (read_comp_unit_head): Update.
8891 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
8892 method.
8893 (read_offset): Don't declare.
8894
4057dfde
TT
88952020-02-08 Tom Tromey <tom@tromey.com>
8896
8897 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
8898 * dwarf2/read.c (struct comp_unit_head): Move to
8899 dwarf2/comp-unit.h.
8900 (enum class rcuh_kind): Move to comp-unit.h.
8901 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
8902 (read_comp_unit_head, error_check_comp_unit_head)
8903 (read_and_check_comp_unit_head): Move to comp-unit.c.
8904 (read_offset, dwarf_unit_type_name): Likewise.
8905 (create_debug_type_hash_table, read_cutu_die_from_dwo)
8906 (cutu_reader::cutu_reader, read_call_site_scope)
8907 (find_partial_die, follow_die_offset): Update.
8908 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
8909
24aa364d
TT
89102020-02-08 Tom Tromey <tom@tromey.com>
8911
8912 * dwarf2/read.c (read_offset_1): Move to leb.c.
8913 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
8914 (dwarf_decode_macro_bytes): Update.
8915 * dwarf2/leb.c (read_offset): Rename; move from read.c.
8916 * dwarf2/leb.h (read_offset): Declare.
8917
2c7d5afc
TT
89182020-02-08 Tom Tromey <tom@tromey.com>
8919
8920 * dwarf2/read.c (dwarf2_section_size): Remove.
8921 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
8922 Update.
8923 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
8924
4075cb26
TT
89252020-02-08 Tom Tromey <tom@tromey.com>
8926
8927 * dwarf2/read.c (read_initial_length): Move to leb.c.
8928 * dwarf2/leb.h (read_initial_length): Declare.
8929 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
8930 handle_nonstd parameter.
8931 * dwarf2/frame.c (read_initial_length): Remove.
8932 (decode_frame_entry_1): Update.
8933
09ba997f
TT
89342020-02-08 Tom Tromey <tom@tromey.com>
8935
8936 * dwarf2/loc.c (dwarf2_find_location_expression)
8937 (dwarf_evaluate_loc_desc::get_tls_address)
8938 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
8939 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
8940 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
8941 (dwarf2_compile_property_to_c)
8942 (dwarf2_loc_desc_get_symbol_read_needs)
8943 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
8944 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
8945 (loclist_describe_location, loclist_tracepoint_var_ref)
8946 (loclist_generate_c_location): Update.
8947 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
8948 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
8949 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
8950 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
8951 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
8952 (dwarf2_per_cu_data::addr_size)
8953 (dwarf2_per_cu_data::ref_addr_size)
8954 (dwarf2_per_cu_data::text_offset)
8955 (dwarf2_per_cu_data::addr_type): Now methods.
8956 (per_cu_header_read_in): Make per_cu "const".
8957 (dwarf2_version): Remove.
8958 (dwarf2_per_cu_data::int_type): Now a method.
8959 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
8960 (set_die_type, read_array_type, read_subrange_index_type)
8961 (read_tag_string_type, read_subrange_type): Update.
8962 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
8963 offset_size, ref_addr_size, text_offset, addr_type, version,
8964 objfile, int_type, addr_sized_int_type>: Declare methods.
8965
96c738c0
TT
89662020-02-08 Tom Tromey <tom@tromey.com>
8967
8968 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
8969 Move earlier.
8970
8fdd972c
TT
89712020-02-08 Tom Tromey <tom@tromey.com>
8972
8973 * dwarf2/read.h (dwarf_line_debug): Declare.
8974 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
8975 * dwarf2/read.c: Move line_header code to new files.
8976 (dwarf_line_debug): No longer static.
8977 * dwarf2/line-header.c: New file.
8978 * dwarf2/line-header.h: New file.
8979
03075812
TT
89802020-02-08 Tom Tromey <tom@tromey.com>
8981
8982 * dwarf2/read.c (struct line_header) <file_full_name,
8983 file_file_name>: Return unique_xmalloc_ptr.
8984 (line_header::file_file_name): Update.
8985 (line_header::file_full_name): Update.
8986 (dw2_get_file_names_reader): Update.
8987 (macro_start_file): Update.
8988
bb822404
TT
89892020-02-08 Tom Tromey <tom@tromey.com>
8990
8991 * dwarf2/read.c (struct line_header) <file_full_name,
8992 file_file_name>: Declare methods.
8993 (dw2_get_file_names_reader): Update.
8994 (file_file_name): Now a method.
8995 (file_full_name): Likewise.
8996 (macro_start_file): Update.
8997
009b64fc
TT
89982020-02-08 Tom Tromey <tom@tromey.com>
8999
9000 * dwarf2/read.c (dwarf_always_disassemble)
9001 (show_dwarf_always_disassemble): Move to loc.c.
9002 (_initialize_dwarf2_read): Move "always-disassemble" registration
9003 to loc.c.
9004 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
9005 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
9006 static.
9007 (show_dwarf_always_disassemble): Move from read.c.
9008 (_initialize_dwarf2loc): Move always-disassemble from read.c.
9009
5895093f
TT
90102020-02-08 Tom Tromey <tom@tromey.com>
9011
9012 * dwarf2/read.c (~dwarf2_per_objfile): Update.
9013 (create_quick_file_names_table): Return htab_up.
9014 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
9015 Update.
9016 * dwarf2/read.h (struct dwarf2_per_objfile)
9017 <quick_file_names_table>: Now htab_up.
9018
b3b32279
TT
90192020-02-08 Tom Tromey <tom@tromey.com>
9020
9021 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
9022
1d33d811
TT
90232020-02-08 Tom Tromey <tom@tromey.com>
9024
9025 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
9026 Rewrite.
9027 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
9028 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
9029 (abbrev_table::abbrev_table): No longer inline.
9030 (ABBREV_HASH_SIZE): Remove.
9031 (abbrev_table::m_abbrevs): Now an htab_up.
9032
86de1d91
TT
90332020-02-08 Tom Tromey <tom@tromey.com>
9034
9035 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
9036 (cutu_reader): Update.
9037 (build_type_psymtabs_1): Update.
9038 * dwarf2/abbrev.c (abbrev_table::read): Rename.
9039 (abbrev_table::alloc_abbrev): Update.
9040 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
9041 (abbrev_table::read): New static method, renamed from
9042 abbrev_table_read_table.
9043 (abbrev_table::alloc_abbrev)
9044 (abbrev_table::add_abbrev): Now private.
9045 (abbrev_table::abbrev_table): Now private.
9046 (abbrev_table::m_abbrev_obstack): Now private. Rename.
9047
0335378b
TT
90482020-02-08 Tom Tromey <tom@tromey.com>
9049
9050 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
9051 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
9052 htab_up.
9053
48b490f2
TT
90542020-02-08 Tom Tromey <tom@tromey.com>
9055
9056 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
9057 htab_up.
9058 (lookup_dwo_unit_in_dwp): Update.
9059 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
9060 on obstack.
9061
bc68fb19
TT
90622020-02-08 Tom Tromey <tom@tromey.com>
9063
9064 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
9065 obstack.
9066
d15acc42
TT
90672020-02-08 Tom Tromey <tom@tromey.com>
9068
9069 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
9070 line_header_hash.
9071 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
9072 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
9073 Change type to htab_up.
9074
eaa5fa8b
TT
90752020-02-08 Tom Tromey <tom@tromey.com>
9076
9077 * dwarf2/read.c (allocate_type_unit_groups_table): Return
9078 htab_up. Don't allocate on obstack.
9079 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
9080 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
9081 Change type to htab_up.
9082
b0b6a987
TT
90832020-02-08 Tom Tromey <tom@tromey.com>
9084
9085 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
9086 Change type to htab_up.
9087 * dwarf2/read.c (create_signatured_type_table_from_index)
9088 (create_signatured_type_table_from_debug_names)
9089 (create_all_type_units, add_type_unit)
9090 (lookup_dwo_signatured_type, lookup_signatured_type)
9091 (process_skeletonless_type_unit): Update.
9092 (create_debug_type_hash_table, create_debug_types_hash_table):
9093 Change type of types_htab.
9094 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
9095 htab_up. Don't allocate on obstack.
9096 (create_cus_hash_table): Change type of cus_htab parameter.
9097 (struct dwo_file) <cus, tus>: Now htab_up.
9098 (lookup_dwo_signatured_type, lookup_dwo_cutu)
9099 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
9100 (queue_and_load_all_dwo_tus): Update.
9101 * dwarf2/index-write.c (write_gdbindex): Update.
9102 (write_debug_names): Update.
9103
39856def
TT
91042020-02-08 Tom Tromey <tom@tromey.com>
9105
9106 * dwarf2/read.h (struct dwarf2_queue_item): Move from
9107 dwarf2/read.c. Remove "next" member. Add constructor ntad
9108 destructor.
9109 (struct dwarf2_per_objfile) <queue>: New member.
9110 * dwarf2/read.c (struct dwarf2_queue_item): Move to
9111 dwarf2/read.h.
9112 (dwarf2_queue, dwarf2_queue_tail): Remove.
9113 (class dwarf2_queue_guard): Add parameter to constructor. Use
9114 DISABLE_COPY_AND_ASSIGN.
9115 <m_per_objfile>: New member.
9116 <~dwarf2_queue_guard>: Rewrite.
9117 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
9118 Update.
9119 (~dwarf2_queue_item): New.
9120
3e225074
TT
91212020-02-08 Tom Tromey <tom@tromey.com>
9122
9123 * dwarf2/read.c (struct die_info) <has_children>: New member.
9124 (dw2_get_file_names_reader): Remove has_children.
9125 (dw2_get_file_names): Update.
9126 (read_cutu_die_from_dwo): Remove has_children.
9127 (cutu_reader::init_tu_and_read_dwo_dies)
9128 (cutu_reader::cutu_reader): Update.
9129 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
9130 Remove has_children.
9131 (build_type_psymtabs_1, process_skeletonless_type_unit)
9132 (load_partial_comp_unit, load_full_comp_unit): Update.
9133 (create_dwo_cu_reader): Remove has_children.
9134 (create_cus_hash_table, read_die_and_children): Update.
9135 (read_full_die_1,read_full_die): Remove has_children.
9136 (read_signatured_type): Update.
9137 (class cutu_reader) <has_children>: Remove.
9138
82ca8957
TT
91392020-02-08 Tom Tromey <tom@tromey.com>
9140
9141 * dwarf2/expr.c: Rename from dwarf2expr.c.
9142 * dwarf2/expr.h: Rename from dwarf2expr.h.
9143 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
9144 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
9145 * dwarf2/frame.c: Rename from dwarf2-frame.c.
9146 * dwarf2/frame.h: Rename from dwarf2-frame.h.
9147 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
9148 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
9149 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
9150 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
9151 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
9152 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
9153 * dwarf2/loc.c: Rename from dwarf2loc.c.
9154 * dwarf2/loc.h: Rename from dwarf2loc.h.
9155 * dwarf2/read.c: Rename from dwarf2read.c.
9156 * dwarf2/read.h: Rename from dwarf2read.h.
9157 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
9158 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
9159 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
9160 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
9161 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
9162 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
9163 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
9164 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
9165 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
9166 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
9167 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
9168 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
9169 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
9170 Update.
9171 * Makefile.in (COMMON_SFILES): Update.
9172 (HFILES_NO_SRCDIR): Update.
9173
9e35d499
TT
91742020-02-08 Tom Tromey <tom@tromey.com>
9175
9176 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
9177 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
9178
1eba2311
TT
91792020-02-08 Tom Tromey <tom@tromey.com>
9180
9181 * dwarf2read.h (struct die_info): Don't declare.
9182
e41c2da2
TT
91832020-02-08 Tom Tromey <tom@tromey.com>
9184
9185 * dwarf2read.h (die_info_ptr): Remove typedef.
9186
4fc6c0d5
TT
91872020-02-08 Tom Tromey <tom@tromey.com>
9188
9189 * dwarf2read.c (read_call_site_scope)
9190 (handle_data_member_location, dwarf2_add_member_fn)
9191 (mark_common_block_symbol_computed, read_common_block)
9192 (attr_to_dynamic_prop, partial_die_info::read)
9193 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
9194 (dwarf2_symbol_mark_computed, set_die_type): Update.
9195 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
9196 method.
9197 (attr_form_is_block): Don't declare.
9198 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
9199
cd6c91b4
TT
92002020-02-08 Tom Tromey <tom@tromey.com>
9201
9202 * dwarf2read.c (dwarf2_find_base_address, )
9203 (read_call_site_scope, rust_containing_type)
9204 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
9205 (handle_data_member_location, dwarf2_add_member_fn)
9206 (get_alignment, read_structure_type, process_structure_scope)
9207 (mark_common_block_symbol_computed, read_common_block)
9208 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
9209 (partial_die_info::read, read_attribute_value, new_symbol)
9210 (lookup_die_type, dwarf2_get_ref_die_offset)
9211 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
9212 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
9213 (dwarf2_symbol_mark_computed): Update.
9214 * dwarf2/attribute.h (struct attribute) <value_as_address,
9215 form_is_section_offset, form_is_constant, form_is_ref>: Declare
9216 methods.
9217 (value_as_address, attr_form_is_section_offset)
9218 (attr_form_is_constant, attr_form_is_ref): Don't declare.
9219 * dwarf2/attribute.c (attribute::value_as_address)
9220 (attribute::form_is_section_offset, attribute::form_is_constant)
9221 (attribute::form_is_ref): Now methods.
9222
162dce55
TT
92232020-02-08 Tom Tromey <tom@tromey.com>
9224
9225 * dwarf2read.c (struct attribute, DW_STRING)
9226 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
9227 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
9228 (attr_form_is_block, attr_form_is_section_offset)
9229 (attr_form_is_constant, attr_form_is_ref): Move.
9230 * dwarf2/attribute.h: New file.
9231 * dwarf2/attribute.c: New file, from dwarf2read.c.
9232 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
9233
3054dd54
TT
92342020-02-08 Tom Tromey <tom@tromey.com>
9235
9236 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
9237 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
9238 Move.
9239 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
9240 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
9241 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
9242 abbrev.c.
9243 * dwarf2/abbrev.h: New file.
9244 * dwarf2/abbrev.c: New file, from dwarf2read.c.
9245 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
9246
96b79293
TT
92472020-02-08 Tom Tromey <tom@tromey.com>
9248
9249 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
9250 (dwarf2_section_size, dwarf2_get_section_info)
9251 (create_signatured_type_table_from_debug_names)
9252 (create_addrmap_from_aranges, read_debug_names_from_section)
9253 (get_gdb_index_contents_from_section, read_comp_unit_head)
9254 (error_check_comp_unit_head, read_abbrev_offset)
9255 (create_debug_type_hash_table, init_cu_die_reader)
9256 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
9257 (read_comp_units_from_section, create_cus_hash_table)
9258 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
9259 (create_dwp_v2_section, dwarf2_rnglists_process)
9260 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
9261 (abbrev_table_read_table, read_indirect_string_at_offset_from)
9262 (read_indirect_string_from_dwz, read_addr_index_1)
9263 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
9264 (dwarf_decode_macro_bytes, dwarf_decode_macros)
9265 (fill_in_loclist_baton): Update.
9266 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
9267 get_containing_section, get_bfd_owner, get_bfd_section,
9268 get_file_name, get_id, get_flags, empty, read>: Declare methods.
9269 (dwarf2_read_section, get_section_name, get_section_file_name)
9270 (get_containing_section, get_section_bfd_owner)
9271 (get_section_bfd_section, get_section_name, get_section_file_name)
9272 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
9273 declare.
9274 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
9275 (dwarf2_section_info::get_bfd_owner)
9276 (dwarf2_section_info::get_bfd_section)
9277 (dwarf2_section_info::get_name)
9278 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
9279 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
9280 (dwarf2_section_info::read): Now methods.
9281 * dwarf-index-write.c (class debug_names): Update.
9282
2c86cff9
TT
92832020-02-08 Tom Tromey <tom@tromey.com>
9284
9285 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
9286 Move to dwarf2/section.h.
9287 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
9288 (get_section_bfd_section, get_section_name)
9289 (get_section_file_name, get_section_id, get_section_flags)
9290 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
9291 dwarf2/section.c.
9292 * dwarf2/section.h: New file.
9293 * dwarf2/section.c: New file, from dwarf2read.c.
9294 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
9295
f4382c45
TT
92962020-02-08 Tom Tromey <tom@tromey.com>
9297
9298 * dwarf2read.h (read_unsigned_leb128): Don't declare.
9299 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
9300 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
9301 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
9302 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
9303 * dwarf2/leb.h: New file, from dwarf2read.c.
9304 * dwarf2/leb.c: New file, from dwarf2read.c.
9305 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
9306 Remove.
9307 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
9308 (COMMON_SFILES): Add dwarf2/leb.c.
9309
01840b7a
JB
93102020-02-08 Joel Brobecker <brobecker@adacore.com>
9311
9312 GDB 9.1 released.
9313
dfcb27e4
IB
93142020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9315
9316 PR gdb/25190:
aac66a4c
SM
9317 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
9318 * gdb/remote.c (remote_console_output): Update.
9319 * gdb/ui-file.c (fputs_unfiltered): Rename to...
9320 (ui_file_puts): ...this.
9321 * gdb/ui-file.h (ui_file_puts): Add declaration.
9322 * gdb/utils.c (emit_style_escape): Update.
9323 (flush_wrap_buffer): Update.
9324 (fputs_maybe_filtered): Update.
9325 (fputs_unfiltered): Add function.
dfcb27e4 9326
faa17681
IB
93272020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9328
aac66a4c
SM
9329 * gdb/event-loop.c (gdb_wait_for_event): Update.
9330 * gdb/printcmd.c (printf_command): Update.
9331 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
9332 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
9333 (gdb_os_flush_stderr): Update.
9334 * gdb/remote.c (remote_console_output): Update.
9335 * gdb/ui-file.c (gdb_flush): Rename to...
9336 (ui_file_flush): ...this.
9337 (stderr_file::write): Update.
9338 (stderr_file::puts): Update.
9339 * gdb/ui-file.h (gdb_flush): Rename to...
9340 (ui_file_flush): ...this.
9341 * gdb/utils.c (gdb_flush): Add function.
9342 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 9343
5abbbe1d
TT
93442020-02-07 Tom Tromey <tromey@adacore.com>
9345
9346 PR breakpoints/24915:
9347 * source.c (find_and_open_source): Do not check basenames_may_differ.
9348
919adfe8
TT
93492020-02-07 Tom Tromey <tom@tromey.com>
9350
9351 * README: Update gdbserver documentation.
9352 * gdbserver: Move to top level.
9353 * configure.tgt (build_gdbserver): Remove.
9354 * configure.ac: Remove --enable-gdbserver.
9355 * configure: Rebuild.
9356 * Makefile.in (distclean): Don't mention gdbserver.
9357
1d5d29e7
SV
93582020-02-06 Shahab Vahedi <shahab@synopsys.com>
9359
9360 * source-cache.c (source_cache::ensure): Surround
9361 get_plain_source_lines with a try/catch.
9362 (source_cache::get_line_charpos): Get rid of try/catch
9363 and only check for the return value of "ensure".
9364 * tui/tui-source.c (tui_source_window::set_contents):
9365 Simplify "nlines" calculation.
9366
6eb1129c
SV
93672020-02-06 Shahab Vahedi <shahab@synopsys.com>
9368
9369 * MAINTAINERS (Write After Approval): Add myself.
9370
c6a42d11
CB
93712020-02-05 Christian Biesinger <cbiesinger@google.com>
9372
9373 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
9374 function call.
9375
c8ecdda6
CB
93762020-02-05 Christian Biesinger <cbiesinger@google.com>
9377
9378 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
9379
f6480e70
MR
93802020-02-05 Maciej W. Rozycki <macro@wdc.com>
9381
9382 * nat/riscv-linux-tdesc.h: New file.
9383 * nat/riscv-linux-tdesc.c: New file, taking code from...
9384 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9385 ... here.
9386 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
9387 NATDEPFILES.
9388
dcc9fbc6
AB
93892020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
9390
9391 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
9392 we don't set the fake simulator ptid to the null_ptid.
9393
719546c4
SM
93942020-02-03 Simon Marchi <simon.marchi@efficios.com>
9395
9396 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
9397 * gdbthread.h (class thread_info) <resumed>: Likewise.
9398 * infrun.c (resume_1): Likewise.
9399 (proceed): Likewise.
9400 (infrun_thread_stop_requested): Likewise.
9401 (stop_all_threads): Likewise.
9402 (handle_inferior_event): Likewise.
9403 (restart_threads): Likewise.
9404 (finish_step_over): Likewise.
9405 (keep_going_stepped_thread): Likewise.
9406 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
9407 (linux_handle_extended_wait): Likewise.
9408 * record-btrace.c (get_thread_current_frame_id): Likewise.
9409 * record-full.c (record_full_wait_1): Likewise.
9410 * remote.c (remote_target::process_initial_stop_replies): Likewise.
9411 * target.c (target_resume): Likewise.
9412 * thread.c (set_running_thread): Likewise.
9413
e409c542
AKS
94142020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9415
9416 * f-valprint.c (f77_print_array_1): Changed datatype of index
9417 variable to LONGEST from int to enable it to contain bound
9418 values correctly.
9419
ee98c0da
MR
94202020-02-03 Maciej W. Rozycki <macro@wdc.com>
9421
9422 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
9423 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
9424 offsets according to FLEN determined.
9425 (riscv_linux_nat_target::read_description): Determine FLEN
9426 dynamically.
9427 (riscv_linux_nat_target::fetch_registers): Size regset buffer
9428 according to FLEN determined.
9429 (riscv_linux_nat_target::store_registers): Likewise.
9430
aa66aac4
SV
94312020-02-01 Shahab Vahedi <shahab@synopsys.com>
9432
9433 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
9434 when reg->group is empty and reggroup is not.
9435
fd9faca8
TT
94362020-01-31 Tom Tromey <tromey@adacore.com>
9437
9438 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
9439 Call beneath target's mourn_inferior after unpushing.
9440
42330a68
AB
94412020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
9442
9443 PR tui/9765
9444 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
9445 have enough lines to fill the screen, still return the lowest
9446 address we found.
9447
7a27a45b
AB
94482020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
9449
9450 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
9451 '-', '<', and '>' commands.
9452
c47f70e2
PA
94532020-01-29 Pedro Alves <palves@redhat.com>
9454 Sergio Durigan Junior <sergiodj@redhat.com>
9455
9456 * infcmd.c (construct_inferior_arguments): Assert that
9457 'argc' is greater than 0.
9458
5133a315
LM
94592020-01-29 Luis Machado <luis.machado@linaro.org>
9460
9461 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
9462 (BRK_INSN_MASK): Define to 0xd4200000.
9463 (aarch64_program_breakpoint_here_p): New function.
9464 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
9465 * arch-utils.c (default_program_breakpoint_here_p): Moved from
9466 breakpoint.c.
9467 * arch-utils.h (default_program_breakpoint_here_p): Moved from
9468 breakpoint.h
9469 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
9470 call gdbarch_program_breakpoint_here_p.
9471 (program_breakpoint_here): Moved to arch-utils.c, renamed to
9472 default_program_breakpoint_here_p, changed return type to bool and
9473 simplified.
9474 * breakpoint.h (program_breakpoint_here): Moved prototype to
9475 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
9476 return type to bool.
9477 * gdbarch.c: Regenerate.
9478 * gdbarch.h: Regenerate.
9479 * gdbarch.sh (program_breakpoint_here_p): New method.
9480 * infrun.c (handle_signal_stop): Call
9481 gdbarch_program_breakpoint_here_p.
9482
168f8c6b
TT
94832020-01-26 Tom Tromey <tom@tromey.com>
9484
9485 * ctfread.c (struct ctf_fp_info): Reindent.
9486 (_initialize_ctfread): Remove.
9487
128a391f
TT
94882020-01-26 Tom Tromey <tom@tromey.com>
9489
9490 * psymtab.c (partial_map_expand_apply)
9491 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
9492 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
9493 (psym_print_stats, psym_expand_symtabs_for_function)
9494 (psym_map_symbol_filenames, psym_map_matching_symbols)
9495 (psym_expand_symtabs_matching)
9496 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
9497 (maintenance_check_psymtabs): Use new methods.
9498 * psympriv.h (struct partial_symtab) <readin_p,
9499 get_compunit_symtab>: New methods.
9500 <readin, compunit_symtab>: Remove members.
9501 (struct standard_psymtab): New.
9502 (struct legacy_psymtab): Derive from standard_psymtab.
9503 * dwarf2read.h (struct dwarf2_psymtab): Derive from
9504 standard_psymtab.
9505 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
9506
0494dbec
TT
95072020-01-26 Tom Tromey <tom@tromey.com>
9508
9509 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
9510 read_dependencies. Add assert.
9511 * psymtab.c (partial_symtab::read_dependencies): New method.
9512 * psympriv.h (struct partial_symtab) <read_dependencies>: New
9513 method.
9514 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
9515 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
9516 read_dependencies.
9517 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
9518 Add assert.
9519
8566b89b
TT
95202020-01-26 Tom Tromey <tom@tromey.com>
9521
9522 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
9523 Call expand_psymtab.
9524 (xcoff_read_symtab): Call expand_psymtab.
9525 (xcoff_start_psymtab, xcoff_end_psymtab): Set
9526 legacy_expand_psymtab.
9527 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
9528 method.
9529 (struct legacy_psymtab) <expand_psymtab>: Implement.
9530 <legacy_expand_psymtab>: New member.
9531 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
9532 (parse_partial_symbols): Set legacy_expand_psymtab.
9533 (psymtab_to_symtab_1): Change argument order. Call
9534 expand_psymtab.
9535 (new_psymtab): Set legacy_expand_psymtab.
9536 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
9537 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
9538 expand_psymtab.
9539 (dwarf2_psymtab::expand_psymtab): Rename from
9540 psymtab_to_symtab_1. Call expand_psymtab.
9541 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
9542 (dbx_end_psymtab): Likewise.
9543 (dbx_psymtab_to_symtab_1): Change argument order. Call
9544 expand_psymtab.
9545 (dbx_read_symtab): Call expand_psymtab.
9546 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
9547 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
9548 (ctf_psymtab::read_symtab): Call expand_psymtab.
9549
077cbab2
TT
95502020-01-26 Tom Tromey <tom@tromey.com>
9551
9552 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
9553 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
9554 messages.
9555 * mdebugread.c (mdebug_read_symtab): Remove prints.
9556 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
9557 assert.
9558 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
9559
891813be
TT
95602020-01-26 Tom Tromey <tom@tromey.com>
9561
9562 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
9563 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
9564 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
9565 legacy_symtab.
9566 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
9567 * psymtab.c (psymtab_to_symtab): Call method.
9568 (dump_psymtab): Update.
9569 * psympriv.h (struct partial_symtab): Add virtual destructor.
9570 <read_symtab>: New method.
9571 (struct legacy_symtab): New.
9572 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
9573 (struct pst_map) <pst>: Now a legacy_psymtab.
9574 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
9575 (new_psymtab): Use legacy_psymtab.
9576 * dwarf2read.h (struct dwarf2_psymtab): New.
9577 (struct dwarf2_per_cu_data) <psymtab>: Use it.
9578 * dwarf2read.c (dwarf2_create_include_psymtab)
9579 (dwarf2_build_include_psymtabs, create_type_unit_group)
9580 (create_partial_symtab, process_psymtab_comp_unit_reader)
9581 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
9582 (set_partial_user): Use dwarf2_psymtab.
9583 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
9584 (psymtab_to_symtab_1, process_full_comp_unit)
9585 (process_full_type_unit, dwarf2_ranges_read)
9586 (dwarf2_get_pc_bounds, psymtab_include_file_name)
9587 (dwarf_decode_lines): Use dwarf2_psymtab.
9588 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
9589 (add_address_entry_worker, write_one_signatured_type)
9590 (recursively_count_psymbols, recursively_write_psymbols)
9591 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
9592 (write_debug_names): Likewise.
9593 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
9594 <pst>: Now a legacy_psymtab.
9595 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
9596 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
9597 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
9598 * ctfread.c (struct ctf_psymtab): New.
9599 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
9600 ctf_psymtab.
9601 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
9602 (create_partial_symtab): Return a ctf_psymtab.
9603 (scan_partial_symbols): Update.
9604
c3693a1d
TT
96052020-01-26 Tom Tromey <tom@tromey.com>
9606
9607 * xcoffread.c (xcoff_start_psymtab): Use new.
9608 * psymtab.c (partial_symtab::partial_symtab): New constructor,
9609 renamed from start_psymtab_common.
9610 * psympriv.h (struct partial_symtab): Add new constructor.
9611 (start_psymtab_common): Don't declare.
9612 * mdebugread.c (parse_partial_symbols): Use new.
9613 * dwarf2read.c (create_partial_symtab): Use new.
9614 * dbxread.c (start_psymtab): Use new.
9615 * ctfread.c (create_partial_symtab): Use new.
9616
32caafd0
TT
96172020-01-26 Tom Tromey <tom@tromey.com>
9618
9619 * xcoffread.c (xcoff_end_psymtab): Use new.
9620 * psymtab.c (start_psymtab_common): Use new.
9621 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
9622 Update.
9623 * psympriv.h (struct partial_symtab): Add parameters to
9624 constructor. Don't inline.
9625 (allocate_psymtab): Don't declare.
9626 * mdebugread.c (new_psymtab): Use new.
9627 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
9628 * dbxread.c (dbx_end_psymtab): Use new.
9629
abaa2f23
TT
96302020-01-26 Tom Tromey <tom@tromey.com>
9631
9632 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
9633 allocate_psymtab. Update documentation.
9634 * psymtab.c (psymtab_storage::install_psymtab): Rename from
9635 allocate_psymtab. Do not use new.
9636 (allocate_psymtab): Use new. Update.
9637
6d94535f
TT
96382020-01-26 Tom Tromey <tom@tromey.com>
9639
9640 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
9641 * psymtab.c (psym_print_stats): Update.
9642 * psympriv.h (struct partial_symtab) <readin,
9643 psymtabs_addrmap_supported, anonymous>: Now bool.
9644 * mdebugread.c (psymtab_to_symtab_1): Update.
9645 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
9646 (build_type_psymtabs_reader, psymtab_to_symtab_1)
9647 (process_full_comp_unit, process_full_type_unit): Update.
9648 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
9649 * ctfread.c (psymtab_to_symtab): Update.
9650
6f17252b
TT
96512020-01-26 Tom Tromey <tom@tromey.com>
9652
9653 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
9654 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
9655 * psymtab.c (psymtab_storage): Delete psymtabs.
9656 (psymtab_storage::allocate_psymtab): Use new.
9657 (psymtab_storage::discard_psymtab): Use delete.
9658 * psympriv.h (struct partial_symtab): Add constructor and
9659 initializers.
9660
f6f1cebc
TT
96612020-01-26 Tom Tromey <tom@tromey.com>
9662
9663 * machoread.c: Do not include psympriv.h.
9664
e47e48f6
PW
96652020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9666
9667 * NEWS: Mention the new option and the set/show commands.
9668
a2fedca9
PW
96692020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9670
9671 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
9672 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
9673 (validate_exec_file): New variables, enums, functions.
9674 (exec_file_locate_attach, print_section_info): Style the filenames.
9675 (_initialize_exec): Install show_exec_file_mismatch_command and
9676 set_exec_file_mismatch_command.
9677 * gdbcore.h (validate_exec_file): Declare.
9678 * infcmd.c (attach_command): Call validate_exec_file.
9679 * remote.c ( remote_target::remote_add_inferior): Likewise.
9680
7ffa82e1
AB
96812020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9682
9683 * frame.c (find_frame_sal): Move call to get_next_frame into more
9684 inner scope.
9685 * inline-frame.c (inilne_state) <inline_state>: Update argument
9686 types.
9687 (inilne_state) <skipped_symbol>: Rename to...
9688 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
9689 (skip_inline_frames): Build vector of skipped symbols and use this
9690 to reate the inline_state.
9691 (inline_skipped_symbol): Add a comment and some assertions, fetch
9692 skipped symbol from the list.
9693
3d92a3e3
AB
96942020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9695
9696 * buildsym.c (lte_is_less_than): Delete.
9697 (buildsym_compunit::end_symtab_with_blockvector): Create local
9698 lambda function to sort line table entries, and use
9699 std::stable_sort instead of std::sort.
9700 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
9701 markers when looking for a previous line.
9702
94a72be7
AB
97032020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9704
9705 * dwarf2read.c (lnp_state_machine::record_line): Include
9706 end_sequence parameter in debug print out. Record the line if we
9707 are at an end_sequence marker even if it's not the start of a
9708 statement.
9709 * symmisc.c (maintenance_print_one_line_table): Print end of
9710 sequence markers with 'END' not '0'.
9711
53af73bf
PA
97122020-01-24 Pedro Alves <palves@redhat.com>
9713
9714 PR gdb/25410
9715 * thread.c (scoped_restore_current_thread::restore): Use
9716 switch_to_inferior_no_thread.
9717 * exec.c: Include "progspace-and-thread.h".
9718 (add_target_sections, remove_target_sections):
9719 scoped_restore_current_pspace_and_thread instead of
9720 scoped_restore_current_thread.
9721 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
9722 and aspace to the inferior before calling clone_program_space.
9723 Remove stale comment.
9724
3050c6f4
CB
97252020-01-24 Christian Biesinger <cbiesinger@google.com>
9726
9727 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
9728 (arm_netbsd_nat_target::fetch_registers): ...this.
9729 (arm_nbsd_nat_target::store_registers): Rename to...
9730 (arm_netbsd_nat_target::store_registers): ...this.
9731
73685c7e
CB
97322020-01-24 Christian Biesinger <cbiesinger@google.com>
9733
9734 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9735 register_t.
9736
89203d40
CB
97372020-01-24 Christian Biesinger <cbiesinger@google.com>
9738
9739 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
9740 Update comment.
9741 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
9742 Likewise.
9743 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
9744 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
9745 the correct replacement (iterate_over_regset_sections).
9746 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
9747 Update comment.
9748
1ba1ac88
AB
97492020-01-24 Graham Markall <graham.markall@embecosm.com>
9750
9751 PR gdb/23718
9752 * gdb/python/python.c (execute_gdb_command): Call
9753 async_enable_stdin in catch block.
9754
f3364a6d
AB
97552020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9756
9757 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
9758 SWITCH_THRU_ALL_UIS.
9759
733d0a67
AB
97602020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9761
9762 PR tui/9765
9763 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
9764 comment, add extra parameter, and update to store previous symbol
9765 when appropriate.
9766 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
9767 add extra parameter.
9768 * tui/tui-disasm.c (tui_disassemble): Update header comment,
9769 remove unneeded parameter, add try/catch around gdb_print_insn,
9770 rewrite to add items to asm_lines vector.
9771 (tui_find_backward_disassembly_start_address): New function.
9772 (tui_find_disassembly_address): Updated throughout.
9773 (tui_disasm_window::set_contents): Update for changes to
9774 tui_disassemble.
9775 (tui_disasm_window::do_scroll_vertical): No need to adjust the
9776 number of lines to scroll.
9777
b3b3bada
SM
97782020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
9779
9780 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
9781 (SECT_OFF_DATA): Likewise.
9782 (SECT_OFF_RODATA): Likewise.
9783 (SECT_OFF_TEXT): Likewise.
9784 (SECT_OFF_BSS): Likewise.
9785 (struct objfile) <text_section_offset, data_section_offset>: New
9786 methods.
9787 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
9788 objfile::text_section_offset.
9789 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
9790 * coffread.c (coff_symtab_read): Likewise.
9791 (enter_linenos): Likewise.
9792 (process_coff_symbol): Likewise.
9793 * ctfread.c (get_objfile_text_range): Likewise.
9794 * dtrace-probe.c (dtrace_probe::get_relocated_address):
9795 Use objfile::data_section_offset.
9796 * dwarf2-frame.c (execute_cfa_program): Use
9797 objfile::text_section_offset.
9798 (dwarf2_frame_find_fde): Likewise.
9799 * dwarf2read.c (create_addrmap_from_index): Likewise.
9800 (create_addrmap_from_aranges): Likewise.
9801 (dw2_find_pc_sect_compunit_symtab): Likewise.
9802 (process_psymtab_comp_unit_reader): Likewise.
9803 (add_partial_symbol): Likewise.
9804 (add_partial_subprogram): Likewise.
9805 (process_full_comp_unit): Likewise.
9806 (read_file_scope): Likewise.
9807 (read_func_scope): Likewise.
9808 (read_lexical_block_scope): Likewise.
9809 (read_call_site_scope): Likewise.
9810 (dwarf2_rnglists_process): Likewise.
9811 (dwarf2_ranges_process): Likewise.
9812 (dwarf2_ranges_read): Likewise.
9813 (dwarf_decode_lines_1): Likewise.
9814 (new_symbol): Likewise.
9815 (dwarf2_fetch_die_loc_sect_off): Likewise.
9816 (dwarf2_per_cu_text_offset): Likewise.
9817 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
9818 * hppa-tdep.c (read_unwind_info): Likewise.
9819 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
9820 * psympriv.h (struct partial_symtab): Likewise.
9821 * psymtab.c (find_pc_sect_psymtab): Likewise.
9822 * solib-svr4.c (enable_break): Likewise.
9823 * stap-probe.c (relocate_address): Use
9824 objfile::data_section_offset.
9825 * xcoffread.c (enter_line_range): Use
9826 objfile::text_section_offset.
9827 (read_xcoff_symtab): Likewise.
9828
ab53f382
SM
98292020-01-23 Simon Marchi <simon.marchi@efficios.com>
9830
9831 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
9832 declaration to narrower scopes.
9833
e7eee665
SM
98342020-01-23 Simon Marchi <simon.marchi@efficios.com>
9835
9836 * darwin-nat.h (struct darwin_exception_msg, enum
9837 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
9838 Move up.
9839 (class darwin_nat_target) <wait_1, check_new_threads,
9840 decode_exception_message, decode_message, stop_inferior,
9841 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
9842 * darwin-nat.c (darwin_check_new_threads): Rename to...
9843 (darwin_nat_target::check_new_threads): ... this.
9844 (darwin_suspend_inferior_it): Remove.
9845 (darwin_decode_exception_message): Rename to...
9846 (darwin_nat_target::decode_exception_message): ... this.
9847 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
9848 (darwin_decode_message): Rename to...
9849 (darwin_nat_target::decode_message): ... this.
9850 (cancel_breakpoint): Rename to...
9851 (darwin_nat_target::cancel_breakpoint): ... this.
9852 (darwin_wait): Rename to...
9853 (darwin_nat_target::wait_1): ... this. Use range-based for loop
9854 instead of iterate_over_inferiors.
9855 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
9856 (darwin_stop_inferior): Rename to...
9857 (darwin_nat_target::stop_inferior): ... this.
9858 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
9859 (darwin_init_thread_list): Rename to...
9860 (darwin_nat_target::init_thread_list): ... this.
9861 (darwin_ptrace_him): Rename to...
9862 (darwin_nat_target::ptrace_him): ... this.
9863 (darwin_nat_target::create_inferior): Pass lambda function to
9864 fork_inferior.
9865 (darwin_nat_target::detach): Call stop_inferior instead of
9866 darwin_stop_inferior.
9867 * fork-inferior.h (fork_inferior): Change init_trace_fun
9868 parameter to gdb::function_view.
9869 * fork-inferior.c (fork_inferior): Likewise.
9870
c162ed3e
HD
98712020-01-23 Hannes Domani <ssbssa@yahoo.de>
9872
9873 * i386-cygwin-tdep.c (core_process_module_section): Update.
9874 * windows-nat.c (struct lm_info_windows): Add text_offset.
9875 (windows_xfer_shared_libraries): Update.
9876 * windows-tdep.c (windows_xfer_shared_library):
9877 Add text_offset_cached argument.
9878 * windows-tdep.h (windows_xfer_shared_library): Update.
9879
a1237872
SM
98802020-01-21 Simon Marchi <simon.marchi@efficios.com>
9881
9882 * gdbarch.sh: Add declaration for _initialize_gdbarch.
9883
b3ee6dd9
SM
98842020-01-21 Simon Marchi <simon.marchi@efficios.com>
9885
9886 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
9887 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
9888 replace with range-based for.
9889 (gdbsim_interrupt_inferior): Remove.
9890 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
9891 with a range-based for. Inline code from
9892 gdbsim_interrupt_inferior.
9893
f9fac3c8
SM
98942020-01-21 Simon Marchi <simon.marchi@efficios.com>
9895
9896 * infrun.c (proceed): Fix indentation.
9897
f6474de9
TT
98982020-01-21 Tom Tromey <tromey@adacore.com>
9899
9900 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
9901 * python/python.c (python_extension_ops): Update.
9902 (gdbpy_colorize): New function.
9903 * python/lib/gdb/__init__.py (colorize): New function.
9904 * extension.h (ext_lang_colorize): Declare.
9905 * extension.c (ext_lang_colorize): New function.
9906 * extension-priv.h (struct extension_language_ops) <colorize>: New
9907 member.
9908 * cli/cli-style.c (_initialize_cli_style): Update help text.
9909
f0c702d4
LM
99102020-01-21 Luis Machado <luis.machado@linaro.org>
9911
9912 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
9913 <cond>: Change type to bool.
9914 (aarch64_displaced_step_b_cond): Update cond to use bool type.
9915 (aarch64_displaced_step_cb): Likewise.
9916 (aarch64_displaced_step_tb): Likewise.
9917
1ab139e5
LM
99182020-01-21 Luis Machado <luis.machado@linaro.org>
9919
9920 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
9921 output.
9922
0c271889
LM
99232020-01-21 Luis Machado <luis.machado@linaro.org>
9924
9925 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
9926 <pc_adjust>: Adjust the documentation.
9927 (aarch64_displaced_step_fixup): Check if PC really moved before
9928 adjusting it.
9929
4d89c1c7
TT
99302020-01-19 Tom Tromey <tom@tromey.com>
9931
9932 * disasm.c (~gdb_disassembler): New destructor.
9933 (gdb_buffered_insn_length): Call disassemble_free_target.
9934 * disasm.h (class gdb_disassembler): Declare destructor. Use
9935 DISABLE_COPY_AND_ASSIGN.
9936
c0ab21c2
TT
99372020-01-19 Tom Tromey <tom@tromey.com>
9938
9939 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
9940 (die_reader_func_ftype): Remove.
9941 (cutu_reader): New class.
9942 (dw2_get_file_names_reader): Remove "data" parameter.
9943 (dw2_get_file_names): Use cutu_reader.
9944 (create_debug_type_hash_table): Update.
9945 (read_cutu_die_from_dwo): Update comment.
9946 (lookup_dwo_unit): Add dwo_name parameter.
9947 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
9948 die_reader_func_ftype and data parameters.
9949 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
9950 Remove die_reader_func_ftype and data parameters.
9951 (~cutu_reader): New; from init_cutu_and_read_dies.
9952 (cutu_reader::cutu_reader): Rename from
9953 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
9954 and data parameters.
9955 (init_cutu_and_read_dies_simple): Remove.
9956 (struct process_psymtab_comp_unit_data): Remove.
9957 (process_psymtab_comp_unit_reader): Remove data parameter; add
9958 want_partial_unit and pretend_language parameters.
9959 (process_psymtab_comp_unit): Use cutu_reader.
9960 (build_type_psymtabs_reader): Remove data parameter.
9961 (build_type_psymtabs_1): Use cutu_reader.
9962 (process_skeletonless_type_unit): Likewise.
9963 (load_partial_comp_unit_reader): Remove.
9964 (load_partial_comp_unit): Use cutu_reader.
9965 (load_full_comp_unit_reader): Remove.
9966 (load_full_comp_unit): Use cutu_reader.
9967 (struct create_dwo_cu_data): Remove.
9968 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
9969 dwo_unit parameters.
9970 (create_cus_hash_table): Use cutu_reader.
9971 (struct dwarf2_read_addr_index_data): Remove.
9972 (dwarf2_read_addr_index_reader): Remove.
9973 (dwarf2_read_addr_index): Use cutu_reader.
9974 (read_signatured_type_reader): Remove.
9975 (read_signatured_type): Use cutu_reader.
9976
45bbae5c
TT
99772020-01-19 Tom Tromey <tom@tromey.com>
9978
9979 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
9980 * tui/tui-wingeneral.h (class tui_suppress_output): New.
9981 (tui_wrefresh): Declare.
9982 * tui/tui-wingeneral.c (suppress_output): New global.
9983 (tui_suppress_output, ~tui_suppress_output): New constructor and
9984 destructor.
9985 (tui_wrefresh): New function.
9986 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
9987 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
9988 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
9989 method.
9990 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
9991 tui_wrefresh.
9992 (tui_data_window::no_refresh): New method.
9993 (tui_data_item_window::refresh_window): Call tui_wrefresh.
9994 (tui_reg_command): Use tui_suppress_output
9995 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
9996 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
9997 method.
9998 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
9999
4f13c1c0
TT
100002020-01-19 Tom Tromey <tom@tromey.com>
10001
10002 * tui/tui-winsource.c (tui_update_source_windows_with_line):
10003 Handle case where symtab is null.
10004
fa47e446
SM
100052020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
10006
10007 * linux-fork.c (one_fork_p): Simplify.
10008
26f42329
SM
100092020-01-17 Simon Marchi <simon.marchi@efficios.com>
10010
10011 * top.c (struct qt_args): Remove.
10012 (kill_or_detach): Change return type to void, replace `void *`
10013 parameter with a proper one.
10014 (print_inferior_quit_action): Likewise.
10015 (quit_confirm): Use range-based for loop to iterate over inferiors.
10016 (quit_force): Likewise.
10017
a9ac81b1
SM
100182020-01-17 Simon Marchi <simon.marchi@efficios.com>
10019
10020 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
10021 `void *` parameter with proper parameters.
10022 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
10023 (print_one_inferior): Change return type to void, replace `void *`
10024 parameter with proper parameters.
10025 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
10026 inferiors.
10027 (get_other_inferior): Remove.
10028 (mi_cmd_remove_inferior): Use range-based loop to iterate over
10029 inferiors.
10030
788eca49
SM
100312020-01-17 Simon Marchi <simon.marchi@efficios.com>
10032
10033 * mi/mi-interp.c (report_initial_inferior): Remove.
10034 (mi_interp::init): Use range-based for to iterate over inferiors.
10035
d9bc85b6
SM
100362020-01-17 Simon Marchi <simon.marchi@efficios.com>
10037
10038 * python/py-inferior.c (build_inferior_list): Remove.
10039 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
10040
40c94099
CB
100412020-01-16 Christian Biesinger <cbiesinger@google.com>
10042
10043 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
10044 (btrace_stitch_trace): Likewise.
10045 * charset.c (intermediate_encoding): Likewise (vaild).
10046 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
10047 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
10048 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
10049
e0cdfe3c
HD
100502020-01-16 Hannes Domani <ssbssa@yahoo.de>
10051
10052 * windows-tdep.c (windows_get_tlb_type):
10053 Add rtl_user_process_parameters type.
10054
790f1718 100552020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 10056 Norbert Lange <nolange79@gmail.com>
790f1718
PA
10057
10058 PR build/24805
10059 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
10060 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
10061 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
10062 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
10063 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
10064 (ps_plog): Redeclare exported functions with default visibility.
10065
3112ed97
NA
100662020-01-16 Nitika Achra <Nitika.Achra@amd.com>
10067
10068 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
10069 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
10070
8dc3273e
SM
100712020-01-15 Simon Marchi <simon.marchi@efficios.com>
10072
10073 * infcmd.c (post_create_inferior): Use get_thread_regcache
10074 instead of get_current_regcache.
10075
ff47f4f0
TT
100762020-01-14 Tom Tromey <tom@tromey.com>
10077
10078 PR symtab/12535:
10079 * python/python.c (gdbpy_decode_line): Treat empty string the same
10080 as no argument.
10081
975f45b7
TT
100822020-01-14 Tom Tromey <tom@tromey.com>
10083
10084 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
10085
25e57356
TT
100862020-01-14 Tom Tromey <tom@tromey.com>
10087
10088 * nat/linux-btrace.c: Don't include <config.h>.
10089 * nat/linux-ptrace.c: Don't include <config.h>.
10090 * nat/x86-linux-dregs.c: Don't include <config.h>.
10091
05ea2a05
TT
100922020-01-14 Tom Tromey <tom@tromey.com>
10093
10094 * configure: Rebuild.
10095 * configure.ac: Move many checks to ../gdbsupport/common.m4.
10096
01027315
TT
100972020-01-14 Tom Tromey <tom@tromey.com>
10098
10099 * nat/x86-linux-dregs.c: Include configh.h.
10100 * nat/linux-ptrace.c: Include configh.h.
10101 * nat/linux-btrace.c: Include configh.h.
10102 * defs.h: Include config.h, bfd.h.
10103 * configure.ac: Don't source common.host.
10104 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
10105 * configure: Rebuild.
10106 * acinclude.m4: Update path.
10107 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
10108 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
10109 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
10110 (CLIBS): Add LIBSUPPORT.
10111 (CDEPS): Likewise.
10112 (COMMON_SFILES): Remove gdbsupport files.
10113 (HFILES_NO_SRCDIR): Likewise.
10114 (stamp-version): Update path to create-version.sh.
10115 (ALLDEPFILES): Remove gdbsupport files.
10116
b2ceabe8
TT
101172020-01-14 Tom Tromey <tom@tromey.com>
10118
10119 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
10120 USE_WIN32API when needed.
10121 * configure.ac (USE_WIN32API): Don't define.
10122 (WIN32LIBS): Use WIN32APILIBS.
10123 * configure: Rebuild.
10124
25c51f71
TT
101252020-01-14 Tom Tromey <tom@tromey.com>
10126
10127 * configure: Rebuild.
10128 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
10129
717c684d
BE
101302020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
10131
10132 * skip.c (skip_function_command): Make skip w/o arguments use the
10133 name of the inlined function if pc is inside any inlined function.
10134
7da6a5b9
LM
101352020-01-14 Luis Machado <luis.machado@linaro.org>
10136
10137 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
10138 * infrun.c (resume_1): Likewise.
10139 (handle_inferior_event): Remove stale comment.
10140 * linux-nat.c (linux_nat_target::resume): Update comments.
10141 (save_stop_reason): Likewise.
10142 (linux_nat_filter_event): Likewise.
10143 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
10144
44e4c775
AB
101452020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10146
10147 * elfread.c (record_minimal_symbol): Set section index to 0 for
10148 non-allocatable sections.
10149
18a8505e
AT
10150
101512020-01-13 Ali Tamur <tamur@google.com>
10152
10153 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
10154 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
10155 to gdb::optional. Update comments.
10156 (dwo_file): Update comments.
10157 (read_attribute): Update API to take an additional out parameter,
10158 need_reprocess. This is used to mark attributes that need other
10159 attributes (e.g. str_offsets_base) for correct computation which may not
10160 have been read yet.
10161 (read_attribute_reprocess): New function declaration.
10162 (read_addr_index): Likewise.
10163 (read_dwo_str_index): Likewise.
10164 (read_stub_str_index): Likewise.
10165 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
10166 (lookup_addr_base): New function definition.
10167 (lookup_ranges_base): Likewise.
10168 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
10169 lookup_ranges_base.
10170 (init_cutu_and_read_dies): Update comments.
10171 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
10172 unit. This is used to inherit parent's str_offsets_base and addr_base.
10173 Update comments.
10174 (init_cutu_and_read_dies_simple): Reflect API changes.
10175 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
10176 (create_cus_hash_table): Change API to take parent compile unit.
10177 Reflect API changes.
10178 (open_and_init_dwo_file): Reflect API changes.
10179 (dwarf2_get_pc_bounds): Update comments.
10180 (dwarf2_record_block_ranges): Likewise.
10181 (read_full_die_1): Change implementation to reprocess attributes that
10182 need str_offsets_base and addr_base.
10183 (partial_die_info::read): Likewise.
10184 (read_attribute_reprocess): New function definition.
10185 (read_attribute_value): Change API to take an additional out parameter,
10186 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
10187 when a non-dwo compile unit has index based attributes.
10188 (read_attribute): Reflect API changes.
10189 (read_addr_index_1): Reflect API changes. Update comments.
10190 (dwarf2_read_addr_index_data): Reflect API changes.
10191 (dwarf2_read_addr_index): Likewise.
10192 (read_str_index): Change API and implementation. This becomes a helper
10193 to be used by the new string index related methods. Update error
10194 message and comments.
10195 (read_dwo_str_index): New function definition.
10196 (read_stub_str_index): Likewise.
10197 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
10198 * symfile.h (dwarf2_debug_sections): Likewise.
10199 * xcoffread.c (dwarf2_debug_sections): Likewise.
10200
0cac9354
SM
102012020-01-13 Simon Marchi <simon.marchi@efficios.com>
10202
10203 * gdbcore.h (struct core_fns) <core_read_registers>: Change
10204 core_reg_sect type to gdb_byte *.
10205 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
10206 * cris-tdep.c (fetch_core_registers): Likewise.
10207 * corelow.c (core_target::get_core_register_section): Change
10208 type of `contents` to gdb::byte_vector.
10209
9a6d629c
AB
102102020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10211
10212 * tui/tui-wingeneral.c (box_win): Position the title in the center
10213 of the border.
10214
d8b2f9e3
SM
102152020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10216
10217 * corelow.c (core_target::get_core_register_section): Use
10218 std::vector instead of alloca.
10219
bb564c58
SM
102202020-01-13 Simon Marchi <simon.marchi@efficios.com>
10221
10222 * warning.m4: Add -Wmissing-declarations to build_warnings.
10223 * configure: Re-generate.
10224
6b366111
SM
102252020-01-13 Simon Marchi <simon.marchi@efficios.com>
10226
10227 * python/python.c (init__gdb_module): Add declaration.
10228
6c265988
SM
102292020-01-13 Simon Marchi <simon.marchi@efficios.com>
10230
10231 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
10232 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
10233 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
10234 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
10235 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
10236 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
10237 * ada-exp.y (_initialize_ada_exp): Add declaration.
10238 * ada-lang.c (_initialize_ada_language): Add declaration.
10239 * ada-tasks.c (_initialize_tasks): Add declaration.
10240 * agent.c (_initialize_agent): Add declaration.
10241 * aix-thread.c (_initialize_aix_thread): Add declaration.
10242 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
10243 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
10244 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
10245 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
10246 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
10247 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
10248 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
10249 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
10250 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
10251 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
10252 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
10253 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
10254 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
10255 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
10256 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
10257 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
10258 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
10259 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
10260 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
10261 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
10262 * annotate.c (_initialize_annotate): Add declaration.
10263 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
10264 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
10265 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
10266 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
10267 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
10268 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
10269 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
10270 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
10271 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
10272 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
10273 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
10274 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
10275 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
10276 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
10277 * auto-load.c (_initialize_auto_load): Add declaration.
10278 * auxv.c (_initialize_auxv): Add declaration.
10279 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
10280 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
10281 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
10282 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
10283 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
10284 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
10285 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
10286 * breakpoint.c (_initialize_breakpoint): Add declaration.
10287 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
10288 * btrace.c (_initialize_btrace): Add declaration.
10289 * charset.c (_initialize_charset): Add declaration.
10290 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
10291 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
10292 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
10293 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
10294 * cli/cli-script.c (_initialize_cli_script): Add declaration.
10295 * cli/cli-style.c (_initialize_cli_style): Add declaration.
10296 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
10297 * coffread.c (_initialize_coffread): Add declaration.
10298 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
10299 * compile/compile.c (_initialize_compile): Add declaration.
10300 * complaints.c (_initialize_complaints): Add declaration.
10301 * completer.c (_initialize_completer): Add declaration.
10302 * copying.c (_initialize_copying): Add declaration.
10303 * corefile.c (_initialize_core): Add declaration.
10304 * corelow.c (_initialize_corelow): Add declaration.
10305 * cp-abi.c (_initialize_cp_abi): Add declaration.
10306 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
10307 * cp-support.c (_initialize_cp_support): Add declaration.
10308 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
10309 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
10310 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
10311 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
10312 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
10313 * ctfread.c (_initialize_ctfread): Add declaration.
10314 * d-lang.c (_initialize_d_language): Add declaration.
10315 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
10316 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
10317 * dbxread.c (_initialize_dbxread): Add declaration.
10318 * dcache.c (_initialize_dcache): Add declaration.
10319 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
10320 * disasm.c (_initialize_disasm): Add declaration.
10321 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
10322 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
10323 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
10324 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
10325 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
10326 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
10327 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
10328 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
10329 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
10330 * elfread.c (_initialize_elfread): Add declaration.
10331 * exec.c (_initialize_exec): Add declaration.
10332 * extension.c (_initialize_extension): Add declaration.
10333 * f-lang.c (_initialize_f_language): Add declaration.
10334 * f-valprint.c (_initialize_f_valprint): Add declaration.
10335 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
10336 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
10337 * filesystem.c (_initialize_filesystem): Add declaration.
10338 * findcmd.c (_initialize_mem_search): Add declaration.
10339 * findvar.c (_initialize_findvar): Add declaration.
10340 * fork-child.c (_initialize_fork_child): Add declaration.
10341 * frame-base.c (_initialize_frame_base): Add declaration.
10342 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
10343 * frame.c (_initialize_frame): Add declaration.
10344 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
10345 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
10346 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
10347 * gcore.c (_initialize_gcore): Add declaration.
10348 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
10349 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
10350 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
10351 * gdbarch.c (_initialize_gdbarch): Add declaration.
10352 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
10353 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
10354 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
10355 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
10356 * go-lang.c (_initialize_go_language): Add declaration.
10357 * go32-nat.c (_initialize_go32_nat): Add declaration.
10358 * guile/guile.c (_initialize_guile): Add declaration.
10359 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
10360 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
10361 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
10362 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
10363 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
10364 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
10365 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
10366 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
10367 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
10368 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
10369 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
10370 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
10371 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
10372 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
10373 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
10374 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
10375 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
10376 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
10377 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
10378 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
10379 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
10380 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
10381 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
10382 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
10383 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
10384 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
10385 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
10386 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
10387 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
10388 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
10389 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
10390 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
10391 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
10392 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
10393 * infcall.c (_initialize_infcall): Add declaration.
10394 * infcmd.c (_initialize_infcmd): Add declaration.
10395 * inflow.c (_initialize_inflow): Add declaration.
10396 * infrun.c (_initialize_infrun): Add declaration.
10397 * interps.c (_initialize_interpreter): Add declaration.
10398 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
10399 * jit.c (_initialize_jit): Add declaration.
10400 * language.c (_initialize_language): Add declaration.
10401 * linux-fork.c (_initialize_linux_fork): Add declaration.
10402 * linux-nat.c (_initialize_linux_nat): Add declaration.
10403 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
10404 * linux-thread-db.c (_initialize_thread_db): Add declaration.
10405 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
10406 * m2-lang.c (_initialize_m2_language): Add declaration.
10407 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
10408 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
10409 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
10410 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
10411 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
10412 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
10413 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
10414 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
10415 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
10416 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
10417 * machoread.c (_initialize_machoread): Add declaration.
10418 * macrocmd.c (_initialize_macrocmd): Add declaration.
10419 * macroscope.c (_initialize_macroscope): Add declaration.
10420 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
10421 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
10422 * maint.c (_initialize_maint_cmds): Add declaration.
10423 * mdebugread.c (_initialize_mdebugread): Add declaration.
10424 * memattr.c (_initialize_mem): Add declaration.
10425 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
10426 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
10427 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
10428 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
10429 * mi/mi-main.c (_initialize_mi_main): Add declaration.
10430 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
10431 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
10432 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
10433 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
10434 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
10435 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
10436 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
10437 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
10438 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
10439 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
10440 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
10441 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
10442 * mipsread.c (_initialize_mipsread): Add declaration.
10443 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
10444 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
10445 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
10446 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
10447 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
10448 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
10449 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
10450 * nto-procfs.c (_initialize_procfs): Add declaration.
10451 * objc-lang.c (_initialize_objc_language): Add declaration.
10452 * observable.c (_initialize_observer): Add declaration.
10453 * opencl-lang.c (_initialize_opencl_language): Add declaration.
10454 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
10455 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
10456 * osabi.c (_initialize_gdb_osabi): Add declaration.
10457 * osdata.c (_initialize_osdata): Add declaration.
10458 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
10459 * parse.c (_initialize_parse): Add declaration.
10460 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
10461 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
10462 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
10463 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
10464 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
10465 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
10466 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
10467 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
10468 * printcmd.c (_initialize_printcmd): Add declaration.
10469 * probe.c (_initialize_probe): Add declaration.
10470 * proc-api.c (_initialize_proc_api): Add declaration.
10471 * proc-events.c (_initialize_proc_events): Add declaration.
10472 * proc-service.c (_initialize_proc_service): Add declaration.
10473 * procfs.c (_initialize_procfs): Add declaration.
10474 * producer.c (_initialize_producer): Add declaration.
10475 * psymtab.c (_initialize_psymtab): Add declaration.
10476 * python/python.c (_initialize_python): Add declaration.
10477 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
10478 * record-btrace.c (_initialize_record_btrace): Add declaration.
10479 * record-full.c (_initialize_record_full): Add declaration.
10480 * record.c (_initialize_record): Add declaration.
10481 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
10482 * regcache.c (_initialize_regcache): Add declaration.
10483 * reggroups.c (_initialize_reggroup): Add declaration.
10484 * remote-notif.c (_initialize_notif): Add declaration.
10485 * remote-sim.c (_initialize_remote_sim): Add declaration.
10486 * remote.c (_initialize_remote): Add declaration.
10487 * reverse.c (_initialize_reverse): Add declaration.
10488 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
10489 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
10490 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
10491 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
10492 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
10493 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
10494 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
10495 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
10496 Add declaration.
10497 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
10498 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
10499 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
10500 * rust-exp.y (_initialize_rust_exp): Add declaration.
10501 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
10502 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
10503 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
10504 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
10505 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
10506 * score-tdep.c (_initialize_score_tdep): Add declaration.
10507 * ser-go32.c (_initialize_ser_dos): Add declaration.
10508 * ser-mingw.c (_initialize_ser_windows): Add declaration.
10509 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
10510 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
10511 * ser-uds.c (_initialize_ser_socket): Add declaration.
10512 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
10513 * serial.c (_initialize_serial): Add declaration.
10514 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
10515 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
10516 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
10517 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
10518 * skip.c (_initialize_step_skip): Add declaration.
10519 * sol-thread.c (_initialize_sol_thread): Add declaration.
10520 * solib-aix.c (_initialize_solib_aix): Add declaration.
10521 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
10522 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
10523 * solib-frv.c (_initialize_frv_solib): Add declaration.
10524 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
10525 * solib-target.c (_initialize_solib_target): Add declaration.
10526 * solib.c (_initialize_solib): Add declaration.
10527 * source-cache.c (_initialize_source_cache): Add declaration.
10528 * source.c (_initialize_source): Add declaration.
10529 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
10530 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
10531 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
10532 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
10533 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
10534 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
10535 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
10536 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
10537 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
10538 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
10539 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
10540 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
10541 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
10542 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
10543 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
10544 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
10545 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
10546 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
10547 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
10548 * stabsread.c (_initialize_stabsread): Add declaration.
10549 * stack.c (_initialize_stack): Add declaration.
10550 * stap-probe.c (_initialize_stap_probe): Add declaration.
10551 * std-regs.c (_initialize_frame_reg): Add declaration.
10552 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
10553 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
10554 * symfile.c (_initialize_symfile): Add declaration.
10555 * symmisc.c (_initialize_symmisc): Add declaration.
10556 * symtab.c (_initialize_symtab): Add declaration.
10557 * target.c (_initialize_target): Add declaration.
10558 * target-connection.c (_initialize_target_connection): Add
10559 declaration.
10560 * target-dcache.c (_initialize_target_dcache): Add declaration.
10561 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
10562 * thread.c (_initialize_thread): Add declaration.
10563 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
10564 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
10565 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
10566 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
10567 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
10568 * tracectf.c (_initialize_ctf): Add declaration.
10569 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
10570 * tracefile.c (_initialize_tracefile): Add declaration.
10571 * tracepoint.c (_initialize_tracepoint): Add declaration.
10572 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
10573 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
10574 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
10575 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
10576 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
10577 * tui/tui-win.c (_initialize_tui_win): Add declaration.
10578 * tui/tui.c (_initialize_tui): Add declaration.
10579 * typeprint.c (_initialize_typeprint): Add declaration.
10580 * ui-style.c (_initialize_ui_style): Add declaration.
10581 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
10582 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
10583 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
10584 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
10585 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
10586 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
10587 * unittests/filtered_iterator-selftests.c
10588 (_initialize_filtered_iterator_selftests): Add declaration.
10589 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
10590 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
10591 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
10592 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
10593 * unittests/main-thread-selftests.c
10594 (_initialize_main_thread_selftests): Add declaration.
10595 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
10596 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
10597 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
10598 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
10599 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
10600 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
10601 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
10602 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
10603 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
10604 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
10605 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
10606 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
10607 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
10608 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
10609 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
10610 declaration.
10611 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
10612 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
10613 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
10614 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
10615 * user-regs.c (_initialize_user_regs): Add declaration.
10616 * utils.c (_initialize_utils): Add declaration.
10617 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
10618 * valops.c (_initialize_valops): Add declaration.
10619 * valprint.c (_initialize_valprint): Add declaration.
10620 * value.c (_initialize_values): Add declaration.
10621 * varobj.c (_initialize_varobj): Add declaration.
10622 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
10623 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
10624 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
10625 * windows-nat.c (_initialize_windows_nat): Add declaration.
10626 (_initialize_check_for_gdb_ini): Add declaration.
10627 (_initialize_loadable): Add declaration.
10628 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
10629 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
10630 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
10631 * xcoffread.c (_initialize_xcoffread): Add declaration.
10632 * xml-support.c (_initialize_xml_support): Add declaration.
10633 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
10634 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
10635 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
10636 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
10637
e2de1eec
SM
106382020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10639
10640 * regformats/regdat.sh: Generate declaration for init function.
10641
e0037b4c
SM
106422020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10643
10644 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
10645 up.
10646 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
10647 close_one_inferior>: New methods.
10648 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
10649 pass down target to find_inferior_pid.
10650 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
10651 Pass down target to find_inferior_ptid.
10652 (gdbsim_target::create_inferior): Pass down target to
10653 add_thread_silent.
10654 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
10655 target down to find_inferior_ptid and switch_to_thread.
10656 (gdbsim_target::close): Update to call close_one_inferior.
10657 (struct resume_data): Remove.
10658 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
10659 directly, rather than through a void pointer.
10660 (gdbsim_target::resume): Update to call resume_one_inferior.
10661
58920b5b
SM
106622020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
10663
10664 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
10665
4ec89149
PA
106662020-01-12 Pedro Alves <palves@redhat.com>
10667
10668 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
10669 directly for the current inferior instead of
10670 discard_all_inferiors.
10671 (discard_all_inferiors): Delete.
10672
7c392d1d
TT
106732020-01-11 Tom Tromey <tom@tromey.com>
10674
10675 * tui/tui-wingeneral.c (box_win): Check cli_styling.
10676 * tui/tui-winsource.c (tui_source_window_base::refill): Use
10677 deprecated_safe_get_selected_frame.
10678
d9ebdab7
TBA
106792020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10680
10681 * inferior.c (print_inferior): Switch inferior before printing it.
10682
f3c469b9
PA
106832020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
10684 Pedro Alves <palves@redhat.com>
10685
10686 * progspace-and-thread.c (switch_to_program_space_and_thread):
10687 Assert there's an inferior for PSPACE. Use
10688 switch_to_inferior_no_thread to switch the inferior too.
10689 * progspace.c (program_space::~program_space): Call
10690 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
10691 (program_space::free_all_objfiles): Don't call clear_symtab_users
10692 here.
10693 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
10694
65c574f6
PA
106952020-01-10 Pedro Alves <palves@redhat.com>
10696
10697 * NEWS: Mention multi-target debugging, "info connections", and
10698 "add-inferior -no-connection".
10699
2f4fcf00
PA
107002020-01-10 Pedro Alves <palves@redhat.com>
10701
10702 * infrun.c: Include "target-connection.h".
10703 (check_multi_target_resumption): New.
10704 (proceed): Call it.
10705 * target-connection.c (make_target_connection_string): Make
10706 extern.
10707 * target-connection.h (make_target_connection_string): Declare.
10708
121b3efd
PA
107092020-01-10 Pedro Alves <palves@redhat.com>
10710
10711 * Makefile.in (COMMON_SFILES): Add target-connection.c.
10712 * inferior.c (uiout_field_connection): New function.
10713 (print_inferior): Add new "connection-id" column.
10714 (add_inferior_command): Show connection number/string of added
10715 inferior.
10716 * process-stratum-target.h
10717 (process_stratum_target::connection_string): New virtual method.
10718 (process_stratum_target::connection_number): New field.
10719 * remote.c (remote_target::connection_string): New override.
10720 * target-connection.c: New file.
10721 * target-connection.h: New file.
10722 * target.c (decref_target): Remove process_stratum targets from
10723 the connection list.
10724 (target_stack::push): Add process_stratum targets to the
10725 connection list.
10726
4f837581
PA
107272020-01-10 Pedro Alves <palves@redhat.com>
10728
10729 Revert:
10730 2016-04-12 Pedro Alves <palves@redhat.com>
10731 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
10732 Remove references to name.
10733 * serial.h (struct serial) <name>: Delete.
10734
f4ec508e
PA
107352020-01-10 Pedro Alves <palves@redhat.com>
10736
10737 * gdbarch-selftests.c (register_to_value_test): Remove "target
10738 already pushed" check.
10739
5b6d1e4f
PA
107402020-01-10 Pedro Alves <palves@redhat.com>
10741 John Baldwin <jhb@FreeBSD.org>
10742
10743 * aarch64-linux-nat.c
10744 (aarch64_linux_nat_target::thread_architecture): Adjust.
10745 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
10746 (task_command_1): Likewise.
10747 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
10748 (aix_thread_target::wait, aix_thread_target::fetch_registers)
10749 (aix_thread_target::store_registers)
10750 (aix_thread_target::thread_alive): Adjust.
10751 * amd64-fbsd-tdep.c: Include "inferior.h".
10752 (amd64fbsd_get_thread_local_address): Pass down target.
10753 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
10754 thread's gdbarch instead of target_gdbarch.
10755 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
10756 get_last_target_status.
10757 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
10758 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
10759 inferiors.
10760 (update_inserted_breakpoint_locations): Skip if inferiors with no
10761 execution.
10762 (update_global_location_list): When handling moribund locations,
10763 find representative inferior for location's pspace, and use thread
10764 count of its process_stratum target.
10765 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
10766 * bsd-uthread.c (bsd_uthread_target::wait): Use
10767 as_process_stratum_target and adjust thread_change_ptid and
10768 add_thread calls.
10769 (bsd_uthread_target::update_thread_list): Use
10770 as_process_stratum_target and adjust find_thread_ptid,
10771 thread_change_ptid and add_thread calls.
10772 * btrace.c (maint_btrace_packet_history_cmd): Adjust
10773 find_thread_ptid call.
10774 * corelow.c (add_to_thread_list): Adjust add_thread call.
10775 (core_target_open): Adjust add_thread_silent and thread_count
10776 calls.
10777 (core_target::pid_to_str): Adjust find_inferior_ptid call.
10778 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
10779 * event-top.c (async_disconnect): Pop targets from all inferiors.
10780 * exec.c (add_target_sections): Push exec target on all inferiors
10781 sharing the program space.
10782 (remove_target_sections): Remove the exec target from all
10783 inferiors sharing the program space.
10784 (exec_on_vfork): New.
10785 * exec.h (exec_on_vfork): Declare.
10786 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
10787 Pass it down.
10788 (fbsd_nat_target::update_thread_list): Adjust.
10789 (fbsd_nat_target::resume): Adjust.
10790 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
10791 down.
10792 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
10793 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
10794 get_thread_arch_regcache call.
10795 * fork-child.c (gdb_startup_inferior): Pass target down to
10796 startup_inferior and set_executing.
10797 * gdbthread.h (struct process_stratum_target): Forward declare.
10798 (add_thread, add_thread_silent, add_thread_with_info)
10799 (in_thread_list): Add process_stratum_target parameter.
10800 (find_thread_ptid(inferior*, ptid_t)): New overload.
10801 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
10802 parameter.
10803 (all_threads()): Delete overload.
10804 (all_threads, all_non_exited_threads): Add process_stratum_target
10805 parameter.
10806 (all_threads_safe): Use brace initialization.
10807 (thread_count): Add process_stratum_target parameter.
10808 (set_resumed, set_running, set_stop_requested, set_executing)
10809 (threads_are_executing, finish_thread_state): Add
10810 process_stratum_target parameter.
10811 (switch_to_thread): Use is_current_thread.
10812 * i386-fbsd-tdep.c: Include "inferior.h".
10813 (i386fbsd_get_thread_local_address): Pass down target.
10814 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
10815 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
10816 have_inferiors check.
10817 * inf-ptrace.c (inf_ptrace_target::create_inferior)
10818 (inf_ptrace_target::attach): Adjust.
10819 * infcall.c (run_inferior_call): Adjust.
10820 * infcmd.c (run_command_1): Pass target to
10821 scoped_finish_thread_state.
10822 (proceed_thread_callback): Skip inferiors with no execution.
10823 (continue_command): Rename 'all_threads' local to avoid hiding
10824 'all_threads' function. Adjust get_last_target_status call.
10825 (prepare_one_step): Adjust set_running call.
10826 (signal_command): Use user_visible_resume_target. Compare thread
10827 pointers instead of inferior_ptid.
10828 (info_program_command): Adjust to pass down target.
10829 (attach_command): Mark target's 'thread_executing' flag.
10830 (stop_current_target_threads_ns): New, factored out from ...
10831 (interrupt_target_1): ... this. Switch inferior before making
10832 target calls.
10833 * inferior-iter.h
10834 (struct all_inferiors_iterator, struct all_inferiors_range)
10835 (struct all_inferiors_safe_range)
10836 (struct all_non_exited_inferiors_range): Filter on
10837 process_stratum_target too. Remove explicit.
10838 * inferior.c (inferior::inferior): Push dummy target on target
10839 stack.
10840 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
10841 Add process_stratum_target parameter, and pass it down.
10842 (have_live_inferiors): Adjust.
10843 (switch_to_inferior_and_push_target): New.
10844 (add_inferior_command, clone_inferior_command): Handle
10845 "-no-connection" parameter. Use
10846 switch_to_inferior_and_push_target.
10847 (_initialize_inferior): Mention "-no-connection" option in
10848 the help of "add-inferior" and "clone-inferior" commands.
10849 * inferior.h: Include "process-stratum-target.h".
10850 (interrupt_target_1): Use bool.
10851 (struct inferior) <push_target, unpush_target, target_is_pushed,
10852 find_target_beneath, top_target, process_target, target_at,
10853 m_stack>: New.
10854 (discard_all_inferiors): Delete.
10855 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
10856 (all_inferiors, all_non_exited_inferiors): Add
10857 process_stratum_target parameter.
10858 * infrun.c: Include "gdb_select.h" and <unordered_map>.
10859 (target_last_proc_target): New global.
10860 (follow_fork_inferior): Push target on new inferior. Pass target
10861 to add_thread_silent. Call exec_on_vfork. Handle target's
10862 reference count.
10863 (follow_fork): Adjust get_last_target_status call. Also consider
10864 target.
10865 (follow_exec): Push target on new inferior.
10866 (struct execution_control_state) <target>: New field.
10867 (user_visible_resume_target): New.
10868 (do_target_resume): Call target_async.
10869 (resume_1): Set target's threads_executing flag. Consider resume
10870 target.
10871 (commit_resume_all_targets): New.
10872 (proceed): Also consider resume target. Skip threads of inferiors
10873 with no execution. Commit resumtion in all targets.
10874 (start_remote): Pass current inferior to wait_for_inferior.
10875 (infrun_thread_stop_requested): Consider target as well. Pass
10876 thread_info pointer to clear_inline_frame_state instead of ptid.
10877 (infrun_thread_thread_exit): Consider target as well.
10878 (random_pending_event_thread): New inferior parameter. Use it.
10879 (do_target_wait): Rename to ...
10880 (do_target_wait_1): ... this. Add inferior parameter, and pass it
10881 down.
10882 (threads_are_resumed_pending_p, do_target_wait): New.
10883 (prepare_for_detach): Adjust calls.
10884 (wait_for_inferior): New inferior parameter. Handle it. Use
10885 do_target_wait_1 instead of do_target_wait.
10886 (fetch_inferior_event): Adjust. Switch to representative
10887 inferior. Pass target down.
10888 (set_last_target_status): Add process_stratum_target parameter.
10889 Save target in global.
10890 (get_last_target_status): Add process_stratum_target parameter and
10891 handle it.
10892 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
10893 (context_switch): Check inferior_ptid == null_ptid before calling
10894 inferior_thread().
10895 (get_inferior_stop_soon): Pass down target.
10896 (wait_one): Rename to ...
10897 (poll_one_curr_target): ... this.
10898 (struct wait_one_event): New.
10899 (wait_one): New.
10900 (stop_all_threads): Adjust.
10901 (handle_no_resumed, handle_inferior_event): Adjust to consider the
10902 event's target.
10903 (switch_back_to_stepped_thread): Also consider target.
10904 (print_stop_event): Update.
10905 (normal_stop): Update. Also consider the resume target.
10906 * infrun.h (wait_for_inferior): Remove declaration.
10907 (user_visible_resume_target): New declaration.
10908 (get_last_target_status, set_last_target_status): New
10909 process_stratum_target parameter.
10910 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10911 process_stratum_target parameter, and use it.
10912 (clear_inline_frame_state (thread_info*)): New.
10913 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10914 process_stratum_target parameter.
10915 (clear_inline_frame_state (thread_info*)): Declare.
10916 * linux-fork.c (delete_checkpoint_command): Pass target down to
10917 find_thread_ptid.
10918 (checkpoint_command): Adjust.
10919 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
10920 instead of just tweaking inferior_ptid.
10921 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
10922 (exit_lwp): Pass target down to find_thread_ptid.
10923 (attach_proc_task_lwp_callback): Pass target down to
10924 add_thread/set_running/set_executing.
10925 (linux_nat_target::attach): Pass target down to
10926 thread_change_ptid.
10927 (get_detach_signal): Pass target down to find_thread_ptid.
10928 Consider last target status's target.
10929 (linux_resume_one_lwp_throw, resume_lwp)
10930 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
10931 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
10932 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
10933 (linux_nat_target::async_wait_fd): New.
10934 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
10935 target down.
10936 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
10937 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
10938 * linux-thread-db.c (struct thread_db_info::process_target): New
10939 field.
10940 (add_thread_db_info): Save target.
10941 (get_thread_db_info): New process_stratum_target parameter. Also
10942 match target.
10943 (delete_thread_db_info): New process_stratum_target parameter.
10944 Also match target.
10945 (thread_from_lwp): Adjust to pass down target.
10946 (thread_db_notice_clone): Pass down target.
10947 (check_thread_db_callback): Pass down target.
10948 (try_thread_db_load_1): Always push the thread_db target.
10949 (try_thread_db_load, record_thread): Pass target down.
10950 (thread_db_target::detach): Pass target down. Always unpush the
10951 thread_db target.
10952 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
10953 target down. Always unpush the thread_db target.
10954 (find_new_threads_callback, thread_db_find_new_threads_2)
10955 (thread_db_target::update_thread_list): Pass target down.
10956 (thread_db_target::pid_to_str): Pass current inferior down.
10957 (thread_db_target::get_thread_local_address): Pass target down.
10958 (thread_db_target::resume, maintenance_check_libthread_db): Pass
10959 target down.
10960 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
10961 * procfs.c (procfs_target::procfs_init_inferior): Declare.
10962 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
10963 (procfs_init_inferior): Rename to ...
10964 (procfs_target::procfs_init_inferior): ... this and adjust.
10965 (procfs_target::create_inferior, procfs_notice_thread)
10966 (procfs_do_thread_registers): Adjust.
10967 * ppc-fbsd-tdep.c: Include "inferior.h".
10968 (ppcfbsd_get_thread_local_address): Pass down target.
10969 * proc-service.c (ps_xfer_memory): Switch current inferior and
10970 program space as well.
10971 (get_ps_regcache): Pass target down.
10972 * process-stratum-target.c
10973 (process_stratum_target::thread_address_space)
10974 (process_stratum_target::thread_architecture): Pass target down.
10975 * process-stratum-target.h
10976 (process_stratum_target::threads_executing): New field.
10977 (as_process_stratum_target): New.
10978 * ravenscar-thread.c
10979 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
10980 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
10981 down.
10982 * record-btrace.c (record_btrace_target::info_record): Adjust.
10983 (record_btrace_target::record_method)
10984 (record_btrace_target::record_is_replaying)
10985 (record_btrace_target::fetch_registers)
10986 (get_thread_current_frame_id, record_btrace_target::resume)
10987 (record_btrace_target::wait, record_btrace_target::stop): Pass
10988 target down.
10989 * record-full.c (record_full_wait_1): Switch to event thread.
10990 Pass target down.
10991 * regcache.c (regcache::regcache)
10992 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
10993 process_stratum_target parameter and handle it.
10994 (current_thread_target): New global.
10995 (get_thread_regcache): Add process_stratum_target parameter and
10996 handle it. Switch inferior before calling target method.
10997 (get_thread_regcache): Pass target down.
10998 (get_thread_regcache_for_ptid): Pass target down.
10999 (registers_changed_ptid): Add process_stratum_target parameter and
11000 handle it.
11001 (registers_changed_thread, registers_changed): Pass target down.
11002 (test_get_thread_arch_aspace_regcache): New.
11003 (current_regcache_test): Define a couple local test_target_ops
11004 instances and use them for testing.
11005 (readwrite_regcache): Pass process_stratum_target parameter.
11006 (cooked_read_test, cooked_write_test): Pass mock_target down.
11007 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
11008 (get_thread_arch_aspace_regcache): Add process_stratum_target
11009 parameter.
11010 (regcache::target): New method.
11011 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
11012 (regcache::registers_changed_ptid): Add process_stratum_target
11013 parameter.
11014 (regcache::m_target): New field.
11015 (registers_changed_ptid): Add process_stratum_target parameter.
11016 * remote.c (remote_state::supports_vCont_probed): New field.
11017 (remote_target::async_wait_fd): New method.
11018 (remote_unpush_and_throw): Add remote_target parameter.
11019 (get_current_remote_target): Adjust.
11020 (remote_target::remote_add_inferior): Push target.
11021 (remote_target::remote_add_thread)
11022 (remote_target::remote_notice_new_inferior)
11023 (get_remote_thread_info): Pass target down.
11024 (remote_target::update_thread_list): Skip threads of inferiors
11025 bound to other targets. (remote_target::close): Don't discard
11026 inferiors. (remote_target::add_current_inferior_and_thread)
11027 (remote_target::process_initial_stop_replies)
11028 (remote_target::start_remote)
11029 (remote_target::remote_serial_quit_handler): Pass down target.
11030 (remote_target::remote_unpush_target): New remote_target
11031 parameter. Unpush the target from all inferiors.
11032 (remote_target::remote_unpush_and_throw): New remote_target
11033 parameter. Pass it down.
11034 (remote_target::open_1): Check whether the current inferior has
11035 execution instead of checking whether any inferior is live. Pass
11036 target down.
11037 (remote_target::remote_detach_1): Pass down target. Use
11038 remote_unpush_target.
11039 (extended_remote_target::attach): Pass down target.
11040 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
11041 (remote_target::append_resumption): Pass down target.
11042 (remote_target::append_pending_thread_resumptions)
11043 (remote_target::remote_resume_with_hc, remote_target::resume)
11044 (remote_target::commit_resume): Pass down target.
11045 (remote_target::remote_stop_ns): Check supports_vCont_probed.
11046 (remote_target::interrupt_query)
11047 (remote_target::remove_new_fork_children)
11048 (remote_target::check_pending_events_prevent_wildcard_vcont)
11049 (remote_target::remote_parse_stop_reply)
11050 (remote_target::process_stop_reply): Pass down target.
11051 (first_remote_resumed_thread): New remote_target parameter. Pass
11052 it down.
11053 (remote_target::wait_as): Pass down target.
11054 (unpush_and_perror): New remote_target parameter. Pass it down.
11055 (remote_target::readchar, remote_target::remote_serial_write)
11056 (remote_target::getpkt_or_notif_sane_1)
11057 (remote_target::kill_new_fork_children, remote_target::kill): Pass
11058 down target.
11059 (remote_target::mourn_inferior): Pass down target. Use
11060 remote_unpush_target.
11061 (remote_target::core_of_thread)
11062 (remote_target::remote_btrace_maybe_reopen): Pass down target.
11063 (remote_target::pid_to_exec_file)
11064 (remote_target::thread_handle_to_thread_info): Pass down target.
11065 (remote_target::async_wait_fd): New.
11066 * riscv-fbsd-tdep.c: Include "inferior.h".
11067 (riscv_fbsd_get_thread_local_address): Pass down target.
11068 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
11069 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
11070 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
11071 Adjust.
11072 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
11073 * solib-svr4.c (enable_break): Pass down target.
11074 * spu-multiarch.c (parse_spufs_run): Pass down target.
11075 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
11076 * target-delegates.c: Regenerate.
11077 * target.c (g_target_stack): Delete.
11078 (current_top_target): Return the current inferior's top target.
11079 (target_has_execution_1): Refer to the passed-in inferior's top
11080 target.
11081 (target_supports_terminal_ours): Check whether the initial
11082 inferior was already created.
11083 (decref_target): New.
11084 (target_stack::push): Incref/decref the target.
11085 (push_target, push_target, unpush_target): Adjust.
11086 (target_stack::unpush): Defref target.
11087 (target_is_pushed): Return bool. Adjust to refer to the current
11088 inferior's target stack.
11089 (dispose_inferior): Delete, and inline parts ...
11090 (target_preopen): ... here. Only dispose of the current inferior.
11091 (target_detach): Hold strong target reference while detaching.
11092 Pass target down.
11093 (target_thread_name): Add assertion.
11094 (target_resume): Pass down target.
11095 (target_ops::beneath, find_target_at): Adjust to refer to the
11096 current inferior's target stack.
11097 (get_dummy_target): New.
11098 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
11099 has a thread running.
11100 (initialize_targets): Rename to ...
11101 (_initialize_target): ... this.
11102 * target.h: Include "gdbsupport/refcounted-object.h".
11103 (struct target_ops): Inherit refcounted_object.
11104 (target_ops::shortname, target_ops::longname): Make const.
11105 (target_ops::async_wait_fd): New method.
11106 (decref_target): Declare.
11107 (struct target_ops_ref_policy): New.
11108 (target_ops_ref): New typedef.
11109 (get_dummy_target): Declare function.
11110 (target_is_pushed): Return bool.
11111 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
11112 (all_matching_threads_iterator::all_matching_threads_iterator):
11113 Handle filter target.
11114 * thread-iter.h (struct all_matching_threads_iterator, struct
11115 all_matching_threads_range, class all_non_exited_threads_range):
11116 Filter by target too. Remove explicit.
11117 * thread.c (threads_executing): Delete.
11118 (inferior_thread): Pass down current inferior.
11119 (clear_thread_inferior_resources): Pass down thread pointer
11120 instead of ptid_t.
11121 (add_thread_silent, add_thread_with_info, add_thread): Add
11122 process_stratum_target parameter. Use it for thread and inferior
11123 searches.
11124 (is_current_thread): New.
11125 (thread_info::deletable): Use it.
11126 (find_thread_ptid, thread_count, in_thread_list)
11127 (thread_change_ptid, set_resumed, set_running): New
11128 process_stratum_target parameter. Pass it down.
11129 (set_executing): New process_stratum_target parameter. Pass it
11130 down. Adjust reference to 'threads_executing'.
11131 (threads_are_executing): New process_stratum_target parameter.
11132 Adjust reference to 'threads_executing'.
11133 (set_stop_requested, finish_thread_state): New
11134 process_stratum_target parameter. Pass it down.
11135 (switch_to_thread): Also match inferior.
11136 (switch_to_thread): New process_stratum_target parameter. Pass it
11137 down.
11138 (update_threads_executing): Reimplement.
11139 * top.c (quit_force): Pop targets from all inferior.
11140 (gdb_init): Don't call initialize_targets.
11141 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
11142 Declare.
11143 (windows_add_thread, windows_delete_thread): Adjust.
11144 (get_windows_debug_event): Rename to ...
11145 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
11146 * tracefile-tfile.c (tfile_target_open): Pass down target.
11147 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
11148 Forward declare.
11149 (switch_to_thread): Add process_stratum_target parameter.
11150 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
11151 parameter. Use it.
11152 (mi_on_resume): Pass target down.
11153 * nat/fork-inferior.c (startup_inferior): Add
11154 process_stratum_target parameter. Pass it down.
11155 * nat/fork-inferior.h (startup_inferior): Add
11156 process_stratum_target parameter.
11157 * python/py-threadevent.c (py_get_event_thread): Pass target down.
11158
75c6c844
PA
111592020-01-10 Pedro Alves <palves@redhat.com>
11160
11161 * remote.c (remote_target::start_remote): Don't set inferior_ptid
11162 directly. Instead find the first thread in the thread list and
11163 use switch_to_thread.
11164
78f2c40a
PA
111652020-01-10 Pedro Alves <palves@redhat.com>
11166
11167 * remote.c (remote_target::remote_add_inferior): Don't bind a
11168 process to the current inferior if the current inferior is already
11169 bound to a process.
11170
e7af6c70
TBA
111712020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11172 Pedro Alves <palves@redhat.com>
11173
11174 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
11175 If no process is specified, return null_ptid instead of
11176 inferior_ptid.
11177 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
11178 TARGET_WAITKIND_SIGNALLED with no pid.
11179
31ba933e
PA
111802020-01-10 Pedro Alves <palves@redhat.com>
11181
11182 * remote.c (first_remote_resumed_thread): New.
11183 (remote_target::wait_as): Use it as default event_ptid instead of
11184 inferior_ptid.
11185
735fc2ca
PA
111862020-01-10 Pedro Alves <palves@redhat.com>
11187
11188 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
11189
c17e02e1
PA
111902020-01-10 Pedro Alves <palves@redhat.com>
11191
11192 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
11193 not -1.
11194
ab1ddbcf
PA
111952020-01-10 Pedro Alves <palves@redhat.com>
11196
11197 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
11198 ptid to get_last_target_status.
11199 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
11200 ptid to get_last_target_status.
11201 * infcmd.c (continue_command): Don't pass a target_waitstatus to
11202 get_last_target_status.
11203 (info_program_command): Don't pass a target_waitstatus to
11204 get_last_target_status.
11205 * infrun.c (init_wait_for_inferior): Use
11206 nullify_last_target_wait_ptid.
11207 (get_last_target_status): Handle nullptr arguments.
11208 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
11209 (print_stop_event): Don't pass a ptid to get_last_target_status.
11210 (normal_stop): Don't pass a ptid to get_last_target_status.
11211 * infrun.h (get_last_target_status, set_last_target_status): Move
11212 comments here and update.
11213 (nullify_last_target_wait_ptid): Declare.
11214 * linux-fork.c (fork_load_infrun_state): Remove local extern
11215 declaration of nullify_last_target_wait_ptid.
11216 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
11217 to get_last_target_status.
11218
f3f8ece4
PA
112192020-01-10 Pedro Alves <palves@redhat.com>
11220
11221 * gdbthread.h (scoped_restore_current_thread)
11222 <dont_restore, restore, m_dont_restore>: Declare.
11223 * thread.c (thread_alive): Add assertion. Return bool.
11224 (switch_to_thread_if_alive): New.
11225 (prune_threads): Switch inferior/thread.
11226 (print_thread_info_1): Switch thread before calling target methods.
11227 (scoped_restore_current_thread::restore): New, factored out from
11228 ...
11229 (scoped_restore_current_thread::~scoped_restore_current_thread):
11230 ... this.
11231 (scoped_restore_current_thread::scoped_restore_current_thread):
11232 Add assertion.
11233 (thread_apply_all_command, thread_select): Use
11234 switch_to_thread_if_alive.
11235 * infrun.c (proceed, restart_threads, handle_signal_stop)
11236 (switch_back_to_stepped_thread): Switch current thread before
11237 calling target methods.
11238
db2d40f7
PA
112392020-01-10 Pedro Alves <palves@redhat.com>
11240
11241 * inferior.c (switch_to_inferior_no_thread): New function,
11242 factored out from ...
11243 (inferior_command): ... here.
11244 * inferior.h (switch_to_inferior_no_thread): Declare.
11245 * mi/mi-main.c (run_one_inferior): Use
11246 switch_to_inferior_no_thread.
11247
bd420a2d
PA
112482020-01-10 Pedro Alves <palves@redhat.com>
11249
11250 * infcmd.c (kill_command): Remove dead code.
11251
ddf5db90
PA
112522020-01-10 Pedro Alves <palves@redhat.com>
11253
11254 * remote.c (remote_target::mourn_inferior): No longer check
11255 whether the target is running.
11256
5018ce90
PA
112572020-01-10 Pedro Alves <palves@redhat.com>
11258
11259 * corelow.c (core_target::has_execution): Change parameter type to
11260 inferior pointer.
11261 * inferior.c (number_of_live_inferiors): Use
11262 inferior::has_execution instead of target_has_execution_1.
11263 * inferior.h (inferior::has_execution): New.
11264 * linux-thread-db.c (thread_db_target::update_thread_list): Use
11265 inferior::has_execution instead of target_has_execution_1.
11266 * process-stratum-target.c
11267 (process_stratum_target::has_execution): Change parameter type to
11268 inferior pointer. Check the inferior's PID instead of
11269 inferior_ptid.
11270 * process-stratum-target.h
11271 (process_stratum_target::has_execution): Change parameter type to
11272 inferior pointer.
11273 * record-full.c (record_full_core_target::has_execution): Change
11274 parameter type to inferior pointer.
11275 * target.c (target_has_execution_1): Change parameter type to
11276 inferior pointer.
11277 (target_has_execution_current): Adjust.
11278 * target.h (target_ops::has_execution): Change parameter type to
11279 inferior pointer.
11280 (target_has_execution_1): Change parameter type to inferior
11281 pointer. Change return type to bool.
11282 * tracefile.h (tracefile_target::has_execution): Change parameter
11283 type to inferior pointer.
11284
74375d18
PA
112852020-01-10 Pedro Alves <palves@redhat.com>
11286
11287 * exceptions.c (print_flush): Remove current_top_target() check.
11288
acdf84a6
PA
112892020-01-10 Pedro Alves <palves@redhat.com>
11290
11291 * remote.c (show_remote_exec_file): Show the current inferior's
11292 exec-file instead of the command variable's value.
11293
ec506636
PA
112942020-01-10 Pedro Alves <palves@redhat.com>
11295
11296 * record-full.c (record_full_resume_ptid): New global.
11297 (record_full_target::resume): Set it.
11298 (record_full_wait_1): Use record_full_resume_ptid instead of
11299 inferior_ptid.
11300
873657b9
PA
113012020-01-10 Pedro Alves <palves@redhat.com>
11302
11303 * gdbthread.h (scoped_restore_current_thread)
11304 <dont_restore, restore, m_dont_restore>: Declare.
11305 * thread.c (thread_alive): Add assertion. Return bool.
11306 (switch_to_thread_if_alive): New.
11307 (prune_threads): Switch inferior/thread.
11308 (print_thread_info_1): Switch thread before calling target methods.
11309 (scoped_restore_current_thread::restore): New, factored out from
11310 ...
11311 (scoped_restore_current_thread::~scoped_restore_current_thread):
11312 ... this.
11313 (scoped_restore_current_thread::scoped_restore_current_thread):
11314 Add assertion.
11315 (thread_apply_all_command, thread_select): Use
11316 switch_to_thread_if_alive.
11317
7f0ae84c
GB
113182020-01-10 George Barrett <bob@bob131.so>
11319
11320 * stap-probe.c (stap_modify_semaphore): Don't check for null
11321 semaphores.
11322 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
11323 for null semaphores.
11324
f5a7c406
AB
113252020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11326
11327 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
11328 all source windows, and maintain horizontal scroll status while
11329 doing so.
11330
9ae6bf64
TT
113312020-01-09 Tom Tromey <tom@tromey.com>
11332
11333 PR tui/18932:
11334 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
11335 update_source_window, not print_source_lines.
11336
b2efe70c
AB
113372020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11338
11339 * tui/tui.c (tui_enable): Register tui hooks after calling
11340 tui_display_main.
11341
5f23a082
CB
113422020-01-09 Christian Biesinger <cbiesinger@google.com>
11343
11344 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
11345
3061113b
SM
113462020-01-08 Simon Marchi <simon.marchi@efficios.com>
11347
11348 * thread.c (print_thread_info_1): Fix indentation.
11349
57d75002
CB
113502020-01-09 Christian Biesinger <cbiesinger@google.com>
11351
11352 * symtab.c (general_symbol_info::compute_and_set_names): Move the
11353 unique_xmalloc_ptr outside the if to always free the demangled name.
11354
6a053cb1
TT
113552020-01-08 Tom Tromey <tromey@adacore.com>
11356
11357 * xcoffread.c (enter_line_range, read_xcoff_symtab)
11358 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
11359 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
11360 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
11361 Remove.
11362 (section_offsets): New typedef.
11363 * symtab.c (fixup_section, get_msymbol_address): Update.
11364 * symmisc.c (dump_msymbols): Update.
11365 * symfile.h (relative_addr_info_to_section_offsets)
11366 (symfile_map_offsets_to_segments): Update.
11367 * symfile.c (build_section_addr_info_from_objfile)
11368 (init_objfile_sect_indices): Update.
11369 (struct place_section_arg): Change type of "offsets".
11370 (place_section): Update.
11371 (relative_addr_info_to_section_offsets): Change type of
11372 "section_offsets". Remove "num_sections" parameter.
11373 (default_symfile_offsets, syms_from_objfile_1)
11374 (set_objfile_default_section_offset): Update.
11375 (reread_symbols): No need to preserve section offsets by hand.
11376 (symfile_map_offsets_to_segments): Change type of "offsets".
11377 * stap-probe.c (relocate_address): Update.
11378 * stabsread.h (process_one_symbol): Update.
11379 * solib-target.c (struct lm_info_target) <offsets>: Change type.
11380 (solib_target_relocate_section_addresses): Update.
11381 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
11382 Update.
11383 * solib-frv.c (frv_relocate_main_executable): Update.
11384 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
11385 * solib-aix.c (solib_aix_get_section_offsets): Change return
11386 type.
11387 (solib_aix_solib_create_inferior_hook): Update.
11388 * remote.c (remote_target::get_offsets): Update.
11389 * psymtab.c (find_pc_sect_psymtab): Update.
11390 * psympriv.h (struct partial_symbol) <address, text_low,
11391 text_high>: Update.
11392 * objfiles.h (obj_section_offset): Update.
11393 (struct objfile) <section_offsets>: Change type.
11394 <num_sections>: Remove.
11395 (objfile_relocate): Update.
11396 * objfiles.c (entry_point_address_query): Update
11397 (relocate_one_symbol): Change type of "section_offsets".
11398 (objfile_relocate1, objfile_relocate1): Change type of
11399 "new_offsets".
11400 (objfile_rebase1): Update.
11401 * mipsread.c (mipscoff_symfile_read): Update.
11402 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
11403 parameter.
11404 * mdebugread.c (parse_symbol): Change type of "section_offsets".
11405 (parse_external, psymtab_to_symtab_1): Update.
11406 * machoread.c (macho_symfile_offsets): Update.
11407 * ia64-tdep.c (ia64_find_unwind_table): Update.
11408 * hppa-tdep.c (read_unwind_info): Update.
11409 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
11410 * dwarf2read.c (create_addrmap_from_index)
11411 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11412 (process_psymtab_comp_unit_reader, add_partial_symbol)
11413 (add_partial_subprogram, process_full_comp_unit)
11414 (read_file_scope, read_func_scope, read_lexical_block_scope)
11415 (read_call_site_scope, dwarf2_rnglists_process)
11416 (dwarf2_ranges_process, dwarf2_ranges_read)
11417 (dwarf_decode_lines_1, var_decode_location, new_symbol)
11418 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
11419 Update.
11420 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
11421 Update.
11422 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
11423 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
11424 (process_one_symbol): Change type of "section_offsets".
11425 * ctfread.c (get_objfile_text_range): Update.
11426 * coffread.c (coff_symtab_read, enter_linenos)
11427 (process_coff_symbol): Update.
11428 * coff-pe-read.c (add_pe_forwarded_sym): Update.
11429 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
11430
456e800a
TT
114312020-01-08 Tom Tromey <tromey@adacore.com>
11432
11433 * dwarf2read.c (parse_macro_definition): Use std::string.
11434 (parse_macro_definition): Likewise.
11435
6dfa2fc2
TT
114362020-01-08 Tom Tromey <tromey@adacore.com>
11437
11438 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
11439 (ATTR_ALLOC_CHUNK): Remove.
11440
421d1616
TT
114412020-01-08 Tom Tromey <tromey@adacore.com>
11442
11443 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
11444
43816ebc
TT
114452020-01-08 Tom Tromey <tromey@adacore.com>
11446
11447 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
11448 (dwarf2_compute_name, open_dwo_file): Likewise.
11449 (process_enumeration_scope): Use std::vector.
11450 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
11451 (partial_die_info::fixup, dwarf2_start_subfile)
11452 (guess_full_die_structure_name, dwarf2_name): Likewise.
11453 (determine_prefix): Update.
11454 (guess_full_die_structure_name): Make return type const.
11455 (partial_die_full_name): Return unique_xmalloc_ptr.
11456 (DW_FIELD_ALLOC_CHUNK): Remove.
11457
4212d509
TT
114582020-01-07 Tom Tromey <tromey@adacore.com>
11459
11460 PR build/24937:
11461 * stap-probe.c (class stap_static_probe_ops): Add constructor.
11462
06a6207a
JT
114632020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
11464
11465 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
11466
153d79c4
AB
114672020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
11468
11469 * stack.c (print_frame_info): Move disassemble_next_line code
11470 inside source_print block.
11471
66182876
EZ
114722020-01-06 Eli Zaretskii <eliz@gnu.org>
11473
11474 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
11475 gdb/signals.h, as we are now using native signal symbols.
11476
cbfa8581
SV
114772020-01-06 Shahab Vahedi <shahab@synopsys.com>
11478
11479 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
11480 overflow by an early check of content vs threshold.
aac66a4c 11481 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
11482 Likewise.
11483
3f602821
EZ
114842020-01-06 Eli Zaretskii <eliz@gnu.org>
11485
11486 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
11487
a08c904d
JT
114882020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
11489
11490 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
11491 export table if no section contains it's RVA.
11492
89a65580
EZ
114932020-01-06 Eli Zaretskii <eliz@gnu.org>
11494
11495 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
11496
8b7fcda2
HD
114972020-01-06 Hannes Domani <ssbssa@yahoo.de>
11498
11499 * source.c (print_source_lines_base): Set last_line_listed.
11500
a61b4f69
SV
115012020-01-06 Shahab Vahedi <shahab@synopsys.com>
11502
11503 * tui/tui-disasm.c: Remove trailing spaces.
11504
559e7e50
EZ
115052020-01-06 Eli Zaretskii <eliz@gnu.org>
11506 Pedro Alves <palves@redhat.com>
11507
11508 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
11509 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
11510 (windows_gdb_signal_to_target): New function, uses the above
11511 enumeration to convert GDB internal signal codes to equivalent
11512 Windows codes.
11513 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
11514 * windows-nat.c: Include "gdb_wait.h".
11515 (get_windows_debug_event): Extract the fatal exception from the
11516 exit status and convert to the equivalent Posix signal number.
11517 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
11518 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
11519 * gdbsupport/gdb_wait.c: New file, implements
11520 windows_status_to_termsig.
11521 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
11522 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
11523
f2302a34
AB
115242020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
11525
11526 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
11527 show_layout.
11528
6a5206eb
LM
115292020-01-05 Luis Machado <luis.machado@linaro.org>
11530
11531 * aarch64-linux-nat.c
11532 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
11533 and bfd_mach_aarch64.
11534
6ec1d75e
PW
115352020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11536
11537 * ui-file.c (stdio_file::can_emit_style_escape)
11538 (tee_file::can_emit_style_escape): Ensure style is used also on
11539 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
11540 to gdb_stdout.
11541 * main.c (set_gdb_data_directory): Use file style to output the
11542 warning that the given pathname is not a directory.
11543 * top.c (show_history_filename, gdb_safe_append_history)
11544 (show_gdb_datadir): Use file style.
11545
44f81a76
HD
115462020-01-03 Hannes Domani <ssbssa@yahoo.de>
11547
11548 * solib-target.c (struct lm_info_target):
11549 Change offsets to be a unique_xmalloc_ptr.
11550 (solib_target_relocate_section_addresses): Update.
11551
25057eb0
HD
115522020-01-03 Hannes Domani <ssbssa@yahoo.de>
11553
11554 * windows-nat.c (windows_clear_solib): Free so_list linked list.
11555
6e2118f5
BE
115562020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
11557
11558 * MAINTAINERS (Write After Approval): Add myself.
11559
8133c7dc
LM
115602020-01-02 Luis Machado <luis.machado@linaro.org>
11561
11562 * proc-service.c (get_ps_regcache): Remove reference to obsolete
11563 Cell BE architecture.
11564 * target.h (struct target_ops) <thread_architecture>: Likewise.
11565
48189bec
HD
115662020-01-01 Hannes Domani <ssbssa@yahoo.de>
11567
11568 * Makefile.in: Use INSTALL_PROGRAM_ENV.
11569
ead1063b
HD
115702020-01-01 Hannes Domani <ssbssa@yahoo.de>
11571
11572 * MAINTAINERS (Write After Approval): Add myself.
11573
e5d78223
JB
115742020-01-01 Joel Brobecker <brobecker@adacore.com>
11575
11576 * gdbarch.sh: Update copyright year range of generated files.
11577
b811d2c2
JB
115782020-01-01 Joel Brobecker <brobecker@adacore.com>
11579
11580 Update copyright year range in all GDB files.
11581
5f4def5c
JB
115822020-01-01 Joel Brobecker <brobecker@adacore.com>
11583
11584 * copyright.py: Convert to Python 3.
11585
51fd4002
JB
115862020-01-01 Joel Brobecker <brobecker@adacore.com>
11587
11588 * copyright.py: Adapt after move of gnulib directory from gdb
11589 directory to toplevel directory.
11590
5fb651f2
JB
115912020-01-01 Joel Brobecker <brobecker@adacore.com>
11592
11593 * copyright.py (main): Exit if run from the wrong directory.
11594
5dd8bf88
JB
115952020-01-01 Joel Brobecker <brobecker@adacore.com>
11596
11597 * top.c (print_gdb_version): Change copyright year to 2020.
11598
9f71dacb 115992020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 11600
9f71dacb 11601 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 11602
9f71dacb 11603For older changes see ChangeLog-2019.
c906108c
SS
11604\f
11605Local Variables:
11606mode: change-log
11607left-margin: 8
11608fill-column: 74
11609version-control: never
57da7796 11610coding: utf-8
c906108c 11611End: