]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
gdb: change frame_info::prev_func::p type to cached_copy_status
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
fedfee88
SM
12020-08-04 Simon Marchi <simon.marchi@efficios.com>
2
3 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
4 type to cached_copy_status.
5 (fprintf_frame): Adjust.
6 (get_frame_func_if_available): Adjust.
7 (frame_cleanup_after_sniffer): Adjust.
8
6cfa9b59
MW
92020-08-04 Mark Wielaard <mark@klomp.org>
10
11 * MAINTAINERS (Write After Approval): Update email address.
12
66d6346b
SM
132020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
14
15 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
16 dynamic_prop::const_val.
17
8a6d5e35
SM
182020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
19
20 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
21 dynamic_prop::kind.
22
51d6067d
SM
232020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
24
25 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
26
b26e2ae7
JM
272020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
28
29 * configure.tgt: Set gdb_sim for bpf-*-* targets.
30
39791af2
JM
312020-08-04 Weimin Pan <weimin.pan@oracle.com>
32 Jose E. Marchesi <jose.marchesi@oracle.com>
33
34 * configure.tgt: Add entry for bpf-*-*.
35 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
36 (ALLDEPFILES): Add bpf-tdep.c.
37 * bpf-tdep.c: New file.
38 * MAINTAINERS: Add bpf target and maintainer.
39 * NEWS: Mention the support for the new target.
40
521894aa
TV
412020-08-04 Tom de Vries <tdevries@suse.de>
42
43 PR symtab/23270
44 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
45 Error.
46
5d6356e9
JB
472020-08-03 John Baldwin <jhb@FreeBSD.org>
48
49 * syscalls/freebsd.xml: Regenerate.
50
0cf82b81
JB
512020-08-03 John Baldwin <jhb@FreeBSD.org>
52
53 * syscalls/update-freebsd.sh: Fix usage and year range.
54
8f34b746
TV
552020-08-03 Tom de Vries <tdevries@suse.de>
56
57 PR symtab/26333
58 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
59 DW_LNE_lo_user/DW_LNE_hi_user range.
60
5e500d33
SM
612020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
62
63 PR ada/26318
64 * ada-lang.c (ada_modulus): Return 0 if property is not of const
65 kind.
66
78319c15
TBA
672020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
68
69 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
70
4c55e970
TBA
712020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
72
73 * breakpoint.c (set_breakpoint_condition): Update the condition
74 expressions after checking that the input condition string parses
75 successfully and does not contain junk at the end.
76
1e620590
TBA
772020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
78
79 * breakpoint.c (set_breakpoint_condition): Update the
80 condition string after parsing the new condition successfully.
81
c8693053
RO
822020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
83
84 * proc-api.c (_STRUCTURED_PROC): Don't define.
85 * proc-events.c: Likewise.
86 * proc-flags.c: Likewise.
87 * proc-why.c: Likewise.
88 * procfs.c: Likewise.
89
90 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
91 * configure, config.in: Regenerate.
92
5a99adb8
TV
932020-07-30 Tom de Vries <tdevries@suse.de>
94
95 PR build/26320
96 * ui-style.h (struct ui_file_style::color): Wrap m_value and
97 m_red/m_green/m_blue in a union.
98
8ba83e91
TV
992020-07-29 Tom de Vries <tdevries@suse.de>
100
101 PR tdep/26280
102 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
103
f75a0693
AB
1042020-07-28 Tom Tromey <tromey@adacore.com>
105
106 PR symtab/26270:
107 * symtab.h (find_pc_partial_function_sym): Declare.
108 * cli/cli-cmds.c (disassemble_command): Use
109 find_pc_partial_function_sym. Check asm_demangle.
110 * blockframe.c (cache_pc_function_sym): New global.
111 (cache_pc_function_name): Remove.
112 (clear_pc_function_cache): Update.
113 (find_pc_partial_function_sym): New function, from
114 find_pc_partial_function.
115 (find_pc_partial_function): Rewrite using
116 find_pc_partial_function_sym.
117
16f3242c
TT
1182020-07-28 Tom Tromey <tromey@adacore.com>
119
120 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
121 help. Add usage.
122
4888741a
TT
1232020-07-28 Tom Tromey <tromey@adacore.com>
124
125 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
126 <DW_OP_GNU_variable_value>: Cast to address type.
127
4d46f402
KR
1282020-07-28 Kamil Rytarowski <n54@gmx.com>
129
130 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
131 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
132 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
133 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
134 (nbsd_get_siginfo_type): New.
135 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
136 (_initialize_nbsd_tdep): New.
137
d70f978b
L
1382020-07-28 H.J. Lu <hongjiu.lu@intel.com>
139
140 PR binutils/26301
141 * configure: Regenerated.
142
377170fa
L
1432020-07-28 H.J. Lu <hongjiu.lu@intel.com>
144
145 PR binutils/26301
146 * configure: Regenerated.
147
43d5901d
AB
1482020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
149
150 * python/py-frame.c: Remove 'user-regs.h' include.
151 (frapy_read_register): Rewrite to make use of
152 gdbpy_parse_register_id.
153 * python/py-registers.c (gdbpy_parse_register_id): New function,
154 moved here from python/py-unwind.c. Updated the return type, and
155 also accepts register descriptor objects.
156 * python/py-unwind.c: Remove 'user-regs.h' include.
157 (pyuw_parse_register_id): Moved to python/py-registers.c.
158 (unwind_infopy_add_saved_register): Update to use
159 gdbpy_parse_register_id.
160 (pending_framepy_read_register): Likewise.
161 * python/python-internal.h (gdbpy_parse_register_id): Declare.
162
14fa8fb3
AB
1632020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
164
165 * python/py-registers.c: Add 'user-regs.h' include.
166 (register_descriptor_iter_find): New function.
167 (register_descriptor_iterator_object_methods): New static global
168 methods array.
169 (register_descriptor_iterator_object_type): Add pointer to methods
170 array.
171
ddce1758
JB
1722020-07-27 John Baldwin <jhb@FreeBSD.org>
173
174 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
175 for all architectures on FreeBSD 11.3 and later.
176
a4089f52
TT
1772020-07-27 Tom Tromey <tromey@adacore.com>
178
179 * gcore.h (load_corefile): Don't declare.
180
95420d30
TV
1812020-07-27 Tom de Vries <tdevries@suse.de>
182
183 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
184 * config.in: Regenerate.
185 * configure: Regenerate.
186
05a6b8c2
EZ
1872020-07-26 Eli Zaretskii <eliz@gnu.org>
188
189 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
190 ws2tcpip.h. When checking whether socklen_t type is defined, use
191 ws2tcpip.h if it is available and sys/socket.h isn't.
192 * configure: Regenerate.
193 * config.in: Regenerate.
194
e79eb02f
AB
1952020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
196
197 PR fortran/23051
198 PR fortran/26139
199 * valops.c (value_ind): Pass address to
200 readjust_indirect_value_type.
201 * value.c (readjust_indirect_value_type): Make parameter
202 non-const, and add extra address parameter. Resolve original type
203 before using it.
204 * value.h (readjust_indirect_value_type): Update function
205 signature and comment.
206
876518dd
TV
2072020-07-25 Tom de Vries <tdevries@suse.de>
208
209 PR symtab/26243
210 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
211 entries.
212
f6720b1c
AM
2132020-07-24 Aaron Merey <amerey@redhat.com>
214
215 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
216 * configure: Rebuild.
217
513487e1
KB
2182020-07-23 Kevin Buettner <kevinb@redhat.com>
219
220 PR corefiles/26294
221 * corelow.c (_initialize_corelow): Add period to help text
222 for "maintenance print core-file-backed-mappings".
223
e7bc9db8
PA
2242020-07-23 Pedro Alves <pedro@palves.net>
225
226 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
227 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
228 meanwhile.
229 * frame.c (frame_cache_generation, get_frame_cache_generation):
230 New.
231 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
232 (get_prev_frame_if_no_cycle): On exception, don't touch
233 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
234 * frame.h (get_frame_cache_generation): Declare.
235
90fcc466
TV
2362020-07-23 Tom de Vries <tdevries@suse.de>
237
238 PR tui/26282
239 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
240 New default constructor.
241
78344df7
AB
2422020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
243
244 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
245 exclude non-statement entries.
246
b089853a
KB
2472020-07-22 Kevin Buettner <kevinb@redhat.com>
248
249 * NEWS (New commands): Mention new command
250 "maintenance print core-file-backed-mappings".
251
09c2f5d4
KB
2522020-07-22 Kevin Buettner <kevinb@redhat.com>
253
254 * corelow.c (gdbcmd.h): Include.
255 (core_target::info_proc_mappings): New method.
256 (get_current_core_target): New function.
257 (maintenance_print_core_file_backed_mappings): New function.
258 (_initialize_corelow): Add core-file-backed-mappings to
259 "maint print" commands.
260
9c5ec5c2
KB
2612020-07-22 Kevin Buettner <kevinb@redhat.com>
262
263 * linux-tdep.c (dump_note_entry_p): New function.
264 (linux_dump_mapping_p_ftype): New typedef.
265 (linux_find_memory_regions_full): Add new parameter,
266 should_dump_mapping_p.
267 (linux_find_memory_regions): Adjust call to
268 linux_find_memory_regions_full.
269 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
270 call to linux_find_memory_regions_full.
271
db082f59
KB
2722020-07-22 Kevin Buettner <kevinb@redhat.com>
273
274 * corelow.c (solist.h, unordered_map): Include.
275 (class core_target): Add field m_core_file_mappings and
276 method build_file_mappings.
277 (core_target::core_target): Call build_file_mappings.
278 (core_target::~core_target): Free memory associated with
279 m_core_file_mappings.
280 (core_target::build_file_mappings): New method.
281 (core_target::xfer_partial): Use m_core_file_mappings
282 for memory transfers.
283 * linux-tdep.c (linux_read_core_file_mappings): New
284 function.
285 (linux_core_info_proc_mappings): Rewrite to use
286 linux_read_core_file_mappings.
287 (linux_init_abi): Register linux_read_core_file_mappings.
288
7e183d27
KB
2892020-07-22 Kevin Buettner <kevinb@redhat.com>
290
291 * arch-utils.c (default_read_core_file_mappings): New function.
292 * arch-utils.c (default_read_core_file_mappings): Declare.
293 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
294 * gdbarch.h, gdbarch.c: Regenerate.
295
2735d421
KB
2962020-07-22 Kevin Buettner <kevinb@redhat.com>
297
298 PR corefiles/25631
299 * corelow.c (core_target:xfer_partial): Revise
300 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
301 case after first checking the stratum beneath the core
302 target.
303 (has_all_memory): Return true.
304 * target.c (raw_memory_xfer_partial): Revise comment
305 regarding use of has_all_memory.
306
e56cb451
KB
3072020-07-22 Kevin Buettner <kevinb@redhat.com>
308
309 * exec.h (section_table_xfer_memory): Revise declaration,
310 replacing section name parameter with an optional callback
311 predicate.
312 * exec.c (section_table_xfer_memory): Likewise.
313 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
314 of section_table_xfer_memory.
315
32fa152e
TT
3162020-07-22 Tom Tromey <tromey@adacore.com>
317
318 * mi/mi-cmd-stack.c (list_args_or_locals): Use
319 lookup_symbol_search_name.
320
a67a1c41
AB
3212020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
322
323 * python/py-registers.c (gdbpy_register_object_data_init): Remove
324 redundant local variable.
325 (gdbpy_get_register_descriptor): Extract descriptor vector as a
326 reference, not pointer, update code accordingly.
327
a7b4ff4f
SM
3282020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
329 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
330
331 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
332 * jit.c (jit_breakpoint_re_set_internal): Use the
333 `skip_jit_symbol_lookup` field.
334
2340e834
SM
3352020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
336 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
337
338 * jit.c (jit_read_descriptor): Define the descriptor address once,
339 use twice.
340 (jit_breakpoint_deleted): Move the declaration of the loop variable
341 `iter` into the loop header.
342 (jit_breakpoint_re_set_internal): Move the declaration of the local
343 variable `objf_data` to the first point of definition.
344 (jit_event_handler): Move the declaration of local variables
345 `code_entry`, `entry_addr`, and `objf` to their first point of use.
346 Rename `objf` to `jited`.
347
c1072906
SM
3482020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
349
350 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
351 Remove.
352 * jit.c (get_jiter_objfile_data): Update.
353
c8474dc3
TBA
3542020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
355 Simon Marchi <simon.marchi@polymtl.ca>
356
357 * jit.c (struct jit_program_space_data): Remove.
358 (jit_program_space_key): Remove.
359 (jiter_objfile_data::~jiter_objfile_data): Remove program space
360 stuff.
361 (get_jit_program_space_data): Remove.
362 (jit_breakpoint_deleted): Iterate on all of the program space's
363 objfiles.
364 (jit_inferior_init): Likewise.
365 (jit_breakpoint_re_set_internal): Likewise. Also change return
366 type to void.
367 (jit_breakpoint_re_set): Pass current_program_space to
368 jit_breakpoint_re_set_internal.
369
77208eb7
SM
3702020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
371
372 * jit.h (struct jiter_objfile_data) <cached_code_address,
373 jit_breakpoint>: Move to here from ...
374 * jit.c (jit_program_space_data): ... here.
375 (jiter_objfile_data::~jiter_objfile_data): Update.
376 (jit_breakpoint_deleted): Update.
377 (jit_breakpoint_re_set_internal): Update.
378
8c1c720f
SM
3792020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
380
381 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
382 checks.
383 (jit_read_descriptor): Remove NULL check.
384 (jit_event_handler): Add an assertion.
385
0e74a041
SM
3862020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
387
388 * jit.h (struct jit_objfile_data): Split into...
389 (struct jiter_objfile_data): ... this ...
390 (struct jited_objfile_data): ... and this.
391 * objfiles.h (struct objfile) <jit_data>: Remove.
392 <jiter_data, jited_data>: New fields.
393 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
394 (jiter_objfile_data::~jiter_objfile_data): ... this.
395 (get_jit_objfile_data): Rename to ...
396 (get_jiter_objfile_data): ... this.
397 (add_objfile_entry): Update.
398 (jit_read_descriptor): Use get_jiter_objfile_data.
399 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
400 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
401 (jit_inferior_exit_hook): Use objfile's jited_data field.
402
238b5c9f
SM
4032020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
404
405 * jit.h: Forward-declare `struct minimal_symbol`.
406 (struct jit_objfile_data): Migrate to here from jit.c; also add a
407 constructor, destructor, and an objfile* field.
408 * jit.c (jit_objfile_data): Remove.
409 (struct jit_objfile_data): Migrate from here to jit.h.
410 (jit_objfile_data::~jit_objfile_data): New destructor
411 implementation with code moved from free_objfile_data.
412 (free_objfile_data): Delete.
413 (get_jit_objfile_data): Update to use the jit_data field of objfile.
414 (jit_find_objf_with_entry_addr): Ditto.
415 (jit_inferior_exit_hook): Ditto.
416 (_initialize_jit): Remove the call to
417 register_objfile_data_with_cleanup.
418 * objfiles.h (struct objfile) <jit_data>: New field.
419
fe053b9e
TBA
4202020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
421
422 * jit.h: Forward-declare `struct objfile`.
423 (jit_event_handler): Add a second parameter, the JITer objfile.
424 * jit.c (jit_read_descriptor): Change the signature to take the
425 JITer objfile as an argument instead of the jit_program_space_data.
426 (jit_inferior_init): Update the call to jit_read_descriptor.
427 (jit_event_handler): Use the new JITer objfile argument when calling
428 jit_read_descriptor.
429 * breakpoint.c (handle_jit_event): Update the call to
430 jit_event_handler to pass the JITer objfile.
431
4cec0c66
JB
4322020-07-21 John Baldwin <jhb@FreeBSD.org>
433
434 * gdbarch.c: Regenerate.
435 * gdbarch.h: Regenerate.
436 * gdbarch.sh (handle_segmentation_fault): Remove method.
437 * infrun.c (handle_segmentation_fault): Remove.
438 (print_signal_received_reason): Remove call to
439 handle_segmentation_fault.
440
0e42f66a
JB
4412020-07-21 John Baldwin <jhb@FreeBSD.org>
442
443 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
444 Rename to sparc64_linux_report_signal_info and add siggnal
445 argument.
446 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
447 instead of sparc64_linux_handle_segmentation_fault.
448
77bdfeb2
JB
4492020-07-21 John Baldwin <jhb@FreeBSD.org>
450
451 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
452 i386_linux_report_signal_info instead of
453 i386_linux_handle_segmentation_fault.
454 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
455 to i386_linux_report_signal_info and add siggnal argument.
456 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
457 of i386_linux_handle_segmentation_fault.
458 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
459 to i386_linux_report_signal_info and add siggnal argument.
460
ad97bfc5
JB
4612020-07-21 John Baldwin <jhb@FreeBSD.org>
462
463 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
464 hook if present.
465
272bb05c
JB
4662020-07-21 John Baldwin <jhb@FreeBSD.org>
467
468 * gdbarch.c: Regenerate.
469 * gdbarch.h: Regenerate.
470 * gdbarch.sh (report_signal_info): New method.
471 * infrun.c (print_signal_received_reason): Invoke gdbarch
472 report_signal_info hook if present.
473
baf8791e
AB
4742020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
475
476 * python/py-registers.c : Add 'unordered_map' include.
477 (gdbpy_new_reggroup): Renamed to...
478 (gdbpy_get_reggroup): ...this. Update to only create register
479 group descriptors when needed.
480 (gdbpy_reggroup_iter_next): Update.
481
f7306dac
AB
4822020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
483
484 * python/py-registers.c (gdbpy_register_object_data): New static
485 global.
486 (gdbpy_register_object_data_init): New function.
487 (gdbpy_new_register_descriptor): Renamed to...
488 (gdbpy_get_register_descriptor): ...this, and update to reuse
489 existing register descriptors where possible.
490 (gdbpy_register_descriptor_iter_next): Update.
491 (gdbpy_initialize_registers): Register new gdbarch data.
492
05c309a8
SM
4932020-07-21 Simon Marchi <simon.marchi@efficios.com>
494
495 * linux-nat.c (stopped_pids): Make static.
496
d1fd641e
SM
4972020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
498
499 PR ada/26235
500 * gdbtypes.c (ada_discrete_type_low_bound,
501 ada_discrete_type_high_bound): Handle undefined bounds.
502
1de14d77
KR
5032020-07-21 Kamil Rytarowski <n54@gmx.com>
504
505 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
506 declaration.
507 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
508 function.
509
ed810cc7
JB
5102020-07-20 John Baldwin <jhb@FreeBSD.org>
511
512 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
513 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
514 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
515 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
516 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
517 method.
518
ae5369e7
LC
5192020-07-20 Ludovic Courtès <ludo@gnu.org>
520
521 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
522 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
523 which are deprecated in Guile 3.0.
524 * configure.ac (try_guile_versions): Add "guile-3.0".
525 * configure (try_guile_versions): Regenerate.
526 * NEWS: Update entry.
527
68cf161c
LC
5282020-07-20 Ludovic Courtès <ludo@gnu.org>
529 Doug Evans <dje@google.com>
530
531 PR gdb/21104
532 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
533 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
534 USING_GUILE_BEFORE_2_2.
535 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
536 Change type to 'scm_t_port_type *'.
537 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
538 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
539 parameter and honor it. Update callers.
540 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
541 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
542 functions.
543 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
544 USING_GUILE_BEFORE_2_2.
545 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
546 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
547 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
548 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
549 and 'SCM_PORT_TYPE'.
550 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
551 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
552 (gdbscm_memory_port_read, gdbscm_memory_port_write)
553 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
554 [!USING_GUILE_BEFORE_2_2]: New functions.
555 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
556 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
557 'gdbscm_memory_port_read'.
558 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
559 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
560 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
561 function.
562 (ioscm_init_memory_port): Remove.
563 (ioscm_init_memory_port_stream): New function
564 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
565 function.
566 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
567 Return scm_from_uint (0).
568 (gdbscm_set_memory_port_read_buffer_size_x)
569 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
570 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
571 Return scm_from_uint (0).
572 (gdbscm_set_memory_port_write_buffer_size_x)
573 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
574 * configure.ac (try_guile_versions): Add "guile-2.2".
575 * configure: Regenerate.
576 * NEWS: Add entry.
577
aee91db3
TT
5782020-07-18 Tom Tromey <tom@tromey.com>
579
580 * linux-nat.c (linux_multi_process): Remove.
581 (linux_nat_target::supports_multi_process): Return true.
582
0e267416
AB
5832020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
584
585 * arch/riscv.c (riscv_tdesc_cache): Change map type.
586 (riscv_lookup_target_description): Return pointer out of
587 unique_ptr.
588 * target-descriptions.c (allocate_target_description): Add
589 comment.
590 (target_desc_deleter::operator()): Likewise.
591 * target-descriptions.h (struct target_desc_deleter): Moved to
592 gdbsupport/tdesc.h.
593 (target_desc_up): Likewise.
594
f80c8ec4
TT
5952020-07-17 Tom Tromey <tromey@adacore.com>
596
597 * linux-nat.c (linux_nat_target::supports_non_stop)
598 (linux_nat_target::always_non_stop_p): Use "true".
599 (linux_nat_target::supports_disable_randomization): Use "true" and
600 "false".
601
d0ce17d8
CT
6022020-07-16 Caroline Tice <cmtice@google.com>
603
604 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
605 (RNGLIST_HEADER_SIZE64): New constant definition.
606 (struct dwop_section_names): Add rnglists_dwo.
607 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
608 (struct loclist_header): Rename to 'loclists_rnglists_header'.
609 (struct dwo_sections): Add rnglists field.
610 (read_attribut_reprocess): Add tag parameter.
611 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
612 (cu_debug_rnglists_section): New function (decl & definition).
613 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
614 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
615 die whose range is being checked; get rnglist section from
616 cu_debug_rnglists_section, to get from either objfile or dwo file as
617 appropriate. Add cases for DW_RLE_base_addressx,
618 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
619 the base address to DW_RLE_offset_pairs (not to all ranges), moving
620 test inside if-condition and updating complaint message.
621 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
622 dwarf2_rnglists_process.
623 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
624 dwarf2_ranges_process.
625 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
626 need_ranges_base and update comment appropriately. Also pass die tag
627 to dwarf2_ranges_read.
628 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
629 need_ranges_base and update comment appropriately. Also pass die tag
630 to dwarf2_ranges_process.
631 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
632 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
633 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
634 need_ranges_base and update comment appropriately. Also pass die tag
635 to read_attribute_reprocess and dwarf2_ranges_read.
636 (read_loclist_header): Rename function to read_loclists_rnglists_header,
637 and update function comment appropriately.
638 (read_loclist_index): Call read_loclists_rnglists_header instead of
639 read_loclist_header.
640 (read_rnglist_index): New function.
641 (read_attribute_reprocess): Add tag parameter. Add code for
642 DW_FORM_rnglistx, passing tag to read_rnglist_index.
643 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
644
3dcc261c
AB
6452020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
646
647 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
648 being resolved.
649
ccb9eba6
AB
6502020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
651
652 * arch-utils.c (show_architecture): Update formatting of messages.
653
cf88be68
SM
6542020-07-12 Simon Marchi <simon.marchi@efficios.com>
655
656 * gdbtypes.h (struct type) <bounds>: Handle array and string
657 types.
658 * ada-lang.c (assign_aggregate): Use type::bounds on
659 array/string type.
660 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
661 * c-varobj.c (c_number_of_children): Likewise.
662 (c_describe_child): Likewise.
663 * eval.c (evaluate_subexp_for_sizeof): Likewise.
664 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
665 (f_type_print_base): Likewise.
666 * f-valprint.c (f77_array_offset_tbl): Likewise.
667 (f77_get_upperbound): Likewise.
668 (f77_print_array_1): Likewise.
669 * guile/scm-type.c (gdbscm_type_range): Likewise.
670 * m2-typeprint.c (m2_array): Likewise.
671 (m2_is_long_set_of_type): Likewise.
672 * m2-valprint.c (get_long_set_bounds): Likewise.
673 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
674 * python/py-type.c (typy_range): Likewise.
675 * rust-lang.c (rust_internal_print_type): Likewise.
676 * type-stack.c (type_stack::follow_types): Likewise.
677 * valarith.c (value_subscripted_rvalue): Likewise.
678 * valops.c (value_cast): Likewise.
679
509971ae
SM
6802020-07-12 Simon Marchi <simon.marchi@efficios.com>
681
682 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
683 callers to use the equivalent accessor methods.
684
107406b7
SM
6852020-07-12 Simon Marchi <simon.marchi@efficios.com>
686
687 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
688 (struct type) <bit_stride>: New method.
689 (TYPE_BIT_STRIDE): Remove.
690 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
691
bb789949
SM
6922020-07-12 Simon Marchi <simon.marchi@efficios.com>
693
694 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
695 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
696 callers to use the equivalent accessor methods instead.
697
39498edb
SM
6982020-07-12 Simon Marchi <simon.marchi@efficios.com>
699
700 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
701 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
702 callers to use the equivalent accessor methods instead.
703
3b606f38
SM
7042020-07-12 Simon Marchi <simon.marchi@efficios.com>
705
706 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
707 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
708 to use dynamic_prop::kind.
709
064d9cb9
SM
7102020-07-12 Simon Marchi <simon.marchi@efficios.com>
711
712 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
713 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
714 to get the bound property's kind and check against
715 PROP_UNDEFINED.
716
5537ddd0
SM
7172020-07-12 Simon Marchi <simon.marchi@efficios.com>
718
719 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
720 all callers to use type::range_bounds followed by
721 dynamic_prop::{low,high}.
722
8c2e4e06
SM
7232020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
724
725 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
726 const_val, set_const_val, baton, set_locexpr, set_loclist,
727 set_addr_offset, variant_parts, set_variant_parts,
728 original_type, set_original_type>: New methods.
729 <kind>: Rename to...
730 <m_kind>: ... this. Update all users to use the new methods
731 instead.
732 <data>: Rename to...
733 <m_data>: ... this. Update all users to use the new methods
734 instead.
735
7c6f2712
SM
7362020-07-12 Simon Marchi <simon.marchi@efficios.com>
737
738 * gdbtypes.c (get_discrete_bounds): Return failure if
739 the range type's bounds are not both defined and constant
740 values.
741 (get_array_bounds): Update comment. Remove undefined bound check.
742
599088e3
SM
7432020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
744
745 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
746 the type::bounds method directly.
747
c4dfcb36
SM
7482020-07-12 Simon Marchi <simon.marchi@efficios.com>
749
750 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
751 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
752 are used to set the range type's bounds to use set_bounds.
753
0a278aa7
PW
7542020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
755
756 * exec.c (_initialize_exec): Update exec-file-mismatch help.
757
cce20f10
PA
7582020-07-10 Pedro Alves <pedro@palves.net>
759
760 * gdbthread.h (inferior_ref): Define.
761 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
762 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
763 * thread.c
764 (scoped_restore_current_thread::restore):
765 Adjust to gdb::ref_ptr.
766 (scoped_restore_current_thread::~scoped_restore_current_thread):
767 Remove manual decref handling.
768 (scoped_restore_current_thread::scoped_restore_current_thread):
769 Adjust to use
770 inferior_ref::new_reference/thread_info_ref::new_reference.
771 Incref the thread before calling get_frame_id instead of after.
772 Let TARGET_CLOSE_ERROR propagate.
773
6d7aa592
PA
7742020-07-10 Pedro Alves <pedro@palves.net>
775
776 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
777 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
778 NOT_AVAILABLE_ERROR.
779 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
780 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
781
b3e3a4c1
SM
7822020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
783 Pedro Alves <pedro@palves.net>
784
785 PR gdb/26199
786 * infrun.c (threads_are_resumed_pending_p): Delete.
787 (do_target_wait): Remove threads_are_executing and
788 threads_are_resumed_pending_p checks from the inferior_matches
789 lambda. Update comments.
790
d6cc5d98
PA
7912020-07-10 Pedro Alves <pedro@palves.net>
792
793 PR gdb/26199
794 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
795 executing threads.
796
7d3badc6
PA
7972020-07-10 Pedro Alves <pedro@palves.net>
798
799 PR gdb/26199
800 * infrun.c (handle_no_resumed): Handle multiple targets.
801
42bd97a6
PA
8022020-07-10 Pedro Alves <pedro@palves.net>
803
804 PR gdb/26199
805 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
806 target_is_async_p.
807
43667cc6
PA
8082020-07-10 Pedro Alves <pedro@palves.net>
809
810 PR gdb/26199
811 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
812 threads, not all threads.
813
96118d11
PA
8142020-07-10 Pedro Alves <pedro@palves.net>
815
816 PR gdb/26199
817 * remote.c (remote_target::open_1): Pass remote target pointer as
818 data to create_async_event_handler.
819 (remote_async_inferior_event_handler): Mark async event handler
820 before returning if the remote target still has either pending
821 events or unacknowledged notifications.
822
54904d81
JB
8232020-07-10 John Baldwin <jhb@FreeBSD.org>
824
825 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
826 declaration.
827 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
828 function.
829
f37e5866
JB
8302020-07-09 John Baldwin <jhb@FreeBSD.org>
831
832 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
833 inferior_ptid.
834
fc238d4a
JB
8352020-07-09 John Baldwin <jhb@FreeBSD.org>
836
837 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
838 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
839 AT_FREEBSD_PS_STRINGS.
840
6e2469ff
HD
8412020-07-08 Hannes Domani <ssbssa@yahoo.de>
842
843 * auto-load.c (auto_load_objfile_script_1): Convert drive part
844 of debugfile path on Windows.
845
d1076c41
JB
8462020-07-08 John Baldwin <jhb@FreeBSD.org>
847
848 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
849 argument to 'data'.
850
15f3b077
TT
8512020-07-08 Tom Tromey <tromey@adacore.com>
852
853 * ada-lang.c (ada_exception_message_1): Use read_memory.
854
9fc501fd
AB
8552020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
856
857 PR python/22748
858 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
859 special handling for inline frames.
860 * findvar.c (value_of_register_lazy): Skip inline frames when
861 creating lazy register values.
862 * frame.c (frame_id_computed_p): Delete definition.
863 * frame.h (frame_id_computed_p): Delete declaration.
864
64cb3757
AB
8652020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
866
867 * NEWS: Mention additions to Python API.
868 * python/py-arch.c (archpy_register_groups): New function.
869 (arch_object_methods): Add 'register_groups' method.
870 * python/py-registers.c (reggroup_iterator_object): New struct.
871 (reggroup_object): New struct.
872 (gdbpy_new_reggroup): New function.
873 (gdbpy_reggroup_to_string): New function.
874 (gdbpy_reggroup_name): New function.
875 (gdbpy_reggroup_iter): New function.
876 (gdbpy_reggroup_iter_next): New function.
877 (gdbpy_new_reggroup_iterator): New function
878 (gdbpy_initialize_registers): Register new types.
879 (reggroup_iterator_object_type): Define new Python type.
880 (gdbpy_reggroup_getset): New static global.
881 (reggroup_object_type): Define new Python type.
882 * python/python-internal.h
883
0f767f94
AB
8842020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
885
886 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
887 * python/py-arch.c (archpy_registers): New function.
888 (arch_object_methods): Add 'registers' method.
889 * python/py-registers.c: New file.
890 * python/python-internal.h
891 (gdbpy_new_register_descriptor_iterator): Declare.
892 (gdbpy_initialize_registers): Declare.
893 * python/python.c (do_start_initialization): Call
894 gdbpy_initialize_registers.
895 * NEWS: Mention additions to the Python API.
896
87dbc774
AB
8972020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
898
899 * NEWS: Mention new Python API method.
900 * python/py-unwind.c (pending_framepy_architecture): New function.
901 (pending_frame_object_methods): Add architecture method.
902
3bc98c0c
AB
9032020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
904
905 * gdbarch.c: Regenerate.
906 * gdbarch.h: Regenerate.
907 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
908 (gdbarch_data): Use internal_error for the case where
909 deprecated_set_gdbarch_data was originally needed.
910 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
911 and use passed in obstack.
912 (libunwind_frame_set_descr): Should no longer get back NULL from
913 gdbarch_data.
914 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
915 type.
916 * user-regs.c (user_regs_init): Update parameters, and use passed
917 in obstack.
918 (user_reg_add): Should no longer get back NULL from gdbarch_data.
919 (_initialize_user_regs): Register as a pre-init gdbarch data type.
920
d8cc8af6
TV
9212020-07-06 Tom de Vries <tdevries@suse.de>
922
923 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
924 End-Of-Sequence in lte_is_less_than.
925 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
926 "gdb: Don't reorder line table entries too much when sorting".
927
947f7597
TV
9282020-07-06 Tom de Vries <tdevries@suse.de>
929
930 PR tui/26205
931 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
932
1e7c1b22
TV
9332020-07-05 Tom de Vries <tdevries@suse.de>
934
935 PR build/26187
936 * inferior.h (struct infcall_suspend_state_deleter): If available, use
937 std::uncaught_exceptions instead of deprecated
938 std::uncaught_exception.
939
a36158ec
SM
9402020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
941
942 * macroexp.h (macro_stringify): Return
943 gdb::unique_xmalloc_ptr<char>.
944 * macroexp.c (macro_stringify): Likewise.
945 * macrotab.c (fixup_definition): Update.
946
14d960c8
SM
9472020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
948
949 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
950 (lex_one_token): Update.
951 * macroexp.c (struct macro_buffer) <release>: Return
952 gdb::unique_xmalloc_ptr<char>.
953 (macro_stringify): Update.
954 (macro_expand): Update.
955 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
956 * macroexp.h (macro_expand_next): Likewise.
957
211d5b1c
SM
9582020-07-02 Simon Marchi <simon.marchi@efficios.com>
959
960 * macroexp.h (macro_lookup_ftype): Remove.
961 (macro_expand, macro_expand_once, macro_expand_next): Remove
962 lookup function parameters, add scope parameter.
963 * macroexp.c (scan, substitute_args, expand, maybe_expand,
964 macro_expand, macro_expand_once, macro_expand_next): Likewise.
965 * macroscope.h (standard_macro_lookup): Change parameter type
966 to macro_scope.
967 * macroscope.c (standard_macro_lookup): Likewise.
968 * c-exp.y (lex_one_token): Update.
969 * macrocmd.c (macro_expand_command): Likewise.
970 (macro_expand_once_command): Likewise.
971
b1a35af2
SM
9722020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
973
974 * inf-loop.c (inferior_event_handler): Remove client_data param.
975 * inf-loop.h (inferior_event_handler): Likewise.
976 * infcmd.c (step_1): Adjust.
977 * infrun.c (proceed): Adjust.
978 (fetch_inferior_event): Remove client_data param.
979 (infrun_async_inferior_event_handler): Adjust.
980 * infrun.h (fetch_inferior_event): Remove `void *` param.
981 * linux-nat.c (handle_target_event): Adjust.
982 * record-btrace.c (record_btrace_handle_async_inferior_event):
983 Adjust.
984 * record-full.c (record_full_async_inferior_event_handler):
985 Adjust.
986 * remote.c (remote_async_inferior_event_handler): Adjust.
987
1cdf9e33
TT
9882020-07-01 Tom Tromey <tom@tromey.com>
989
990 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
991 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
992
32c1e210
TT
9932020-07-01 Tom Tromey <tom@tromey.com>
994
995 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
996 tui_gen_win_info.
997 (tui_win_info::make_window): Merge with
998 tui_gen_win_info::make_window.
999 (tui_win_info::make_visible): Move from tui_gen_win_info.
1000 * tui/tui-win.c (tui_win_info::max_width): Move from
1001 tui_gen_win_info.
1002 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
1003 type.
1004 <window_factory>: Likewise.
1005 * tui/tui-layout.c (tui_win_info::resize): Move from
1006 tui_gen_win_info.
1007 (make_standard_window): Change return type.
1008 (get_locator_window, tui_get_window_by_name): Likewise.
1009 (tui_layout_window::apply): Remove a cast.
1010 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
1011 (struct tui_win_info): Merge with tui_gen_win_info.
1012 (struct tui_gen_win_info): Remove.
1013
a30cb6da
TT
10142020-07-01 Tom Tromey <tom@tromey.com>
1015
1016 * tui/tui-stack.h (struct tui_locator_window): Derive from
1017 tui_win_info.
1018 <do_scroll_horizontal, do_scroll_vertical>: New methods.
1019 <can_box>: New method.
1020
1eb2161f
TT
10212020-07-01 Tom Tromey <tom@tromey.com>
1022
1023 * tui/tui-stack.h (struct tui_locator_window): Remove body.
1024
7134f2eb
TT
10252020-07-01 Tom Tromey <tom@tromey.com>
1026
1027 * tui/tui-regs.c (tui_data_window::display_registers_from)
1028 (tui_data_window::display_registers_from)
1029 (tui_data_window::first_data_item_displayed)
1030 (tui_data_window::delete_data_content_windows): Update.
1031 (tui_data_window::refresh_window, tui_data_window::no_refresh):
1032 Remove.
1033 (tui_data_window::check_register_values): Update.
1034 (tui_data_item_window::rerender): Add parameters. Update.
1035 (tui_data_item_window::refresh_window): Remove.
1036 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
1037 virtual.
1038 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
1039 tui_gen_win_info.
1040 <refresh_window, max_height, min_height>: Remove.
1041 <rerender>: Add parameters.
1042 <x, y, visible>: New members.
1043 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
1044 <m_item_width>: New member.
1045
22b7b041
TT
10462020-07-01 Tom Tromey <tom@tromey.com>
1047
1048 * tui/tui-regs.c (tui_data_window::show_register_group)
1049 (tui_data_window::check_register_values): Update.
1050 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
1051 from item_no.
1052
c9753adb
TT
10532020-07-01 Tom Tromey <tom@tromey.com>
1054
1055 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
1056 useless "if".
1057
9ab26b4a
TT
10582020-07-01 Tom Tromey <tom@tromey.com>
1059
1060 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
1061 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
1062
e555083f
TT
10632020-07-01 Tom Tromey <tom@tromey.com>
1064
1065 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
1066 * tui/tui-winsource.h (enum tui_line_or_address_kind)
1067 (struct tui_line_or_address): Move from tui-data.h.
1068 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
1069 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
1070 (tui_cmd_window, tui_source_window_base, tui_source_window)
1071 (tui_disasm_window): Don't declare.
1072 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
1073 to tui-winsource.h.
1074 (SINGLE_KEY): Move to tui-stack.c.
1075
7a02bab7
TT
10762020-07-01 Tom Tromey <tom@tromey.com>
1077
1078 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
1079 std::string.
1080 * tui/tui-regs.c (class tab_expansion_file): New.
1081 (tab_expansion_file::write): New method.
1082 (tui_register_format): Change return type. Use
1083 tab_expansion_file.
1084 (tui_get_register, tui_data_window::display_registers_from)
1085 (tui_data_item_window::rerender): Update.
1086 * tui/tui-io.h (tui_expand_tabs): Don't declare.
1087 * tui/tui-io.c (tui_expand_tabs): Remove.
1088
ea68593b
TT
10892020-07-01 Tom Tromey <tom@tromey.com>
1090
1091 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
1092
a8caed5d
FS
10932020-07-01 Fangrui Song <maskray@google.com>
1094
1095 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
1096
9cdf9820
AKS
10972020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1098
1099 * dwarf2/read.c (set_die_type): Removed conditions to restrict
1100 forms for DW_AT_associated and DW_AT_allocated attributes,
1101 which is already checked in function attr_to_dynamic_prop.
1102
a1520ad8
TT
11032020-06-30 Tom Tromey <tromey@adacore.com>
1104
1105 * dwarf2/read.c (quirk_rust_enum): Correctly call
1106 alloc_rust_variant for default-less enum.
1107
5ac58899
TT
11082020-06-30 Tom Tromey <tromey@adacore.com>
1109
1110 PR build/26183:
1111 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
1112 gdb::to_string.
1113
19b187a9
SM
11142020-06-29 Simon Marchi <simon.marchi@efficios.com>
1115
1116 * gdbarch.sh (displaced_step_copy_insn): Update doc.
1117 * gdbarch.h: Re-generate.
1118
cd4c4c07
TT
11192020-06-28 Tom Tromey <tom@tromey.com>
1120
1121 * command.h (cmd_types): Remove.
1122 (cmd_type): Don't declare.
1123 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
1124 typedef.
1125 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
1126 * cli/cli-decode.c (cmd_type): Remove.
1127
05779d57
PA
11282020-06-27 Pedro Alves <palves@redhat.com>
1129
1130 * fork-child.c (prefork_hook): Adjust.
1131 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
1132 Delete.
1133 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
1134 * inferior.c (inferior::set_tty, inferior::tty): New methods.
1135 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
1136 Remove declarations.
1137 (struct inferior) <set_tty, tty>: New methods.
1138 (struct inferior) <terminal>: Rename to ...
1139 (struct inferior) <m_terminal>: ... this and make private.
1140 * main.c (captured_main_1): Adjust.
1141 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
1142 (mi_cmd_inferior_tty_show): Adjust.
1143 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
1144 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
1145
1776e3e5
NA
11462020-06-26 Nick Alcock <nick.alcock@oracle.com>
1147
1148 * configure.ac: Add --enable-libctf: handle --disable-static
1149 properly.
1150 * acinclude.m4: sinclude ../config/enable.m4.
1151 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
1152 (LIBCTF): Substitute in.
1153 (CTF_DEPS): New, likewise.
1154 (CLIBS): libctf needs symbols from libbfd: move earlier.
1155 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
1156 flags.
1157 * ctfread.c: Surround in ENABLE_LIBCTF.
1158 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
1159 * configure: Regenerate.
1160 * config.in: Likewise.
1161
58373b80
SM
11622020-06-25 Simon Marchi <simon.marchi@efficios.com>
1163
1164 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
1165
277474ee
SM
11662020-06-25 Simon Marchi <simon.marchi@efficios.com>
1167
1168 * inferior.h (struct inferior) <terminal>: Change type to
1169 gdb::unique_xmalloc_ptr<char>.
1170 * inferior.c (inferior::~inferior): Don't free inf->terminal.
1171 * infcmd.c (set_inferior_io_terminal): Don't free terminal
1172 field, adjust to unique pointer.
1173 (get_inferior_io_terminal): Adjust to unique pointer.
1174
6d74da72
AB
11752020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1176
1177 * riscv-tdep.c (riscv_print_registers_info): Loop over all
1178 registers, not just the known core set of registers.
1179
2e52d038
AB
11802020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1181
1182 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
1183 fflags, frm, and fcsr registers.
1184 (riscv_register_reggroup_p): Remove unknown CSRs from save and
1185 restore groups.
1186 (riscv_tdesc_unknown_reg): New function.
1187 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
1188 tdesc_use_registers.
1189 * riscv-tdep.h (struct gdbarch_tdep): Add
1190 unknown_csrs_first_regnum, unknown_csrs_count,
1191 duplicate_fflags_regnum, duplicate_frm_regnum, and
1192 duplicate_fcsr_regnum fields.
1193
be64fd07
AB
11942020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1195
1196 * target-descriptions.c (tdesc_use_registers): Add new parameter a
1197 callback, use the callback (when not null) to help number unknown
1198 registers.
1199 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
1200 (tdesc_use_registers): Add extra parameter to declaration.
1201
3b9fce96
AB
12022020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1203
1204 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
1205 in the file.
1206 (class riscv_pending_register_alias): Likewise.
1207 (riscv_register_feature::register_info): Change 'required_p' field
1208 to 'required', and change its type. Add 'check' member function.
1209 (riscv_register_feature::register_info::check): Define new member
1210 function.
1211 (riscv_xreg_feature): Change initialisation of 'required' field.
1212 (riscv_freg_feature): Likewise.
1213 (riscv_virtual_feature): Likewise.
1214 (riscv_csr_feature): Likewise.
1215 (riscv_check_tdesc_feature): Take extra parameter, the csr
1216 tdesc_feature, rewrite the function to use the new
1217 riscv_register_feature::register_info::check function.
1218 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
1219
865bad26
AB
12202020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1221
1222 * features/Makefile: Remove all references to the deleted files
1223 below.
1224 * features/riscv/32bit-csr.c: Deleted.
1225 * features/riscv/32bit-csr.xml: Deleted.
1226 * features/riscv/64bit-csr.c: Deleted.
1227 * features/riscv/64bit-csr.xml: Deleted.
1228 * features/riscv/rebuild-csr-xml.sh: Deleted.
1229
ed69cbc8
AB
12302020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1231
1232 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
1233 whitespace error for declaration of names member variable.
1234 (struct riscv_register_feature): Add new prefer_first_name member
1235 variable, and fix whitespace error in declaration of registers.
1236 (riscv_xreg_feature): Initialize prefer_first_name field.
1237 (riscv_freg_feature): Likewise.
1238 (riscv_virtual_feature): Likewise.
1239 (riscv_csr_feature): Likewise.
1240 (riscv_register_name): Expand on comments. Remove register name
1241 modifications for CSR and virtual registers.
1242
4445e8f5
AB
12432020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1244
1245 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
1246 errors.
1247
767a879e
AB
12482020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1249
1250 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
1251 riscv-opc.h.
1252 (class riscv_pending_register_alias): New class.
1253 (riscv_check_tdesc_feature): Take vector of pending aliases and
1254 populate it as appropriate.
1255 (riscv_setup_register_aliases): Delete.
1256 (riscv_gdbarch_init): Create vector of pending aliases and pass it
1257 to riscv_check_tdesc_feature in all cases. Use the vector to
1258 create the register aliases.
1259
bb6e55f3
RO
12602020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1261
1262 * sol2-tdep.c (sol2_static_transform_name): Remove.
1263 (sol2_init_abi): Don't register it.
1264 * gdbarch.sh (static_transform_name): Remove.
1265 * gdbarch.c, gdbarch.h: Regenerate.
1266
1267 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
1268 gdbarch_static_transform_name.
1269 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
1270 * stabsread.c (define_symbol) <'X'>: Remove.
1271 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
1272 handling.
1273 <'V'>: Likewise.
1274 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
1275 <'S'>: Remove call to gdbarch_static_transform_name.
1276
c6d36836
RO
12772020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1278
1279 * procfs.c (procfs_pre_trace): New function.
1280 (procfs_target::create_inferior): Pass it to fork_inferior.
1281
a7e6196b
RO
12822020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1283
1284 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
1285 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
1286 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
1287 sol2-tdep.o, sparc-sol2-tdep.o.
1288 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
1289 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
1290 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
1291 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
1292
d412e696
RO
12932020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1294
1295 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
1296 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
1297 Call sol2_init_abi.
1298 Remove calls to set_gdbarch_skip_solib_resolver,
1299 set_gdbarch_core_pid_to_str.
1300 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
1301 (i386_sol2_static_transform_name): Remove.
1302 (i386_sol2_init_abi): Call sol2_init_abi.
1303 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1304 set_gdbarch_static_transform_name,
1305 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1306 Use sol2_sigtramp_p.
1307 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
1308 (sol2_sigtramp_p): New function.
1309 (sol2_static_transform_name): New function.
1310 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
1311 (sol2_init_abi): New function.
1312 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
1313 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
1314 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
1315 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
1316 (sparc_sol2_static_transform_name): Remove.
1317 (sparc32_sol2_init_abi): Call sol2_init_abi.
1318 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1319 set_gdbarch_static_transform_name,
1320 set_gdbarch_skip_solib_resolver,
1321 set_gdbarch_core_pid_to_str.
1322 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
1323 (sparc_sol2_static_transform_name): Remove
1324 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
1325 call sol2_sigtramp_p.
1326 (sparc64_sol2_init_abi): Call sol2_init_abi.
1327 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1328 set_gdbarch_static_transform_name,
1329 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1330
a8654e7d
PW
13312020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1332
1333 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
1334 * exec.c (validate_exec_file): If from_tty, set both
1335 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
1336 * symfile.c (symbol_file_add_with_addrs): if always_confirm
1337 and from_tty, unconditionally ask a confirmation.
1338
caa7fd04
AB
13392020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1340
1341 * target-descriptions.c (tdesc_architecture_name): Protect against
1342 NULL pointer dereference.
1343 (maint_print_xml_tdesc_cmd): New function.
1344 (_initialize_target_descriptions): Register new 'maint print
1345 xml-tdesc' command and give it the filename completer.
1346 * NEWS: Mention new 'maint print xml-tdesc' command.
1347
fbf42f4e
AB
13482020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1349
1350 * target-descriptions.c (class tdesc_compatible_info): New class.
1351 (struct target_desc): Change type of compatible vector.
1352 (tdesc_compatible_p): Update for change in type of
1353 target_desc::compatible.
1354 (tdesc_compatible_info_list): New function.
1355 (tdesc_compatible_info_arch_name): New function.
1356 (tdesc_add_compatible): Update for change in type of
1357 target_desc::compatible.
1358 (print_c_tdesc::visit_pre): Likewise.
1359
20821f4e
AB
13602020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1361
1362 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
1363 whitespace to underscore.
1364 (maint_print_c_tdesc_cmd): Use fake filename for target
1365 descriptions that came from the target.
1366 (_initialize_target_descriptions): Add filename command completion
1367 for 'maint print c-tdesc'.
1368
1fb5ee62
SM
13692020-06-23 Simon Marchi <simon.marchi@efficios.com>
1370
1371 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
1372 lines.
1373
fc3ecb3e
SM
13742020-06-23 Simon Marchi <simon.marchi@efficios.com>
1375
1376 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
1377 lines.
1378 (dwarf2_find_location_expression): Likewise.
1379 (call_site_parameter_matches): Likewise.
1380 (dwarf2_compile_expr_to_ax): Likewise.
1381 (disassemble_dwarf_expression): Likewise.
1382 (loclist_describe_location): Likewise.
1383
236ef034
PA
13842020-06-23 Pedro Alves <palves@redhat.com>
1385
1386 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
1387 progspace-and-thread.h. Include scoped-mock-context.h instead.
1388 (register_to_value_test): Use scoped_mock_context.
1389 * regcache.c: Include "scoped-mock-context.h".
1390 (cooked_read_test): Don't error out if a target is already pushed.
1391 Use scoped_mock_context. Adjust.
1392 * scoped-mock-context.h: New file.
1393
39e7ecca
AB
13942020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1395
1396 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
1397 initializer.
1398 (ada_language::is_string_type_p): New member function.
1399 * c-lang.c (c_language_data): Delete la_is_string_type_p
1400 initializer.
1401 (cplus_language_data): Likewise.
1402 (asm_language_data): Likewise.
1403 (minimal_language_data): Likewise.
1404 * d-lang.c (d_language_data): Likewise.
1405 * f-lang.c (f_is_string_type_p): Delete function, implementation
1406 moved to f_language::is_string_type_p.
1407 (f_language_data): Delete la_is_string_type_p initializer.
1408 (f_language::is_string_type_p): New member function,
1409 implementation from f_is_string_type_p.
1410 * go-lang.c (go_is_string_type_p): Delete function, implementation
1411 moved to go_language::is_string_type_p.
1412 (go_language_data): Delete la_is_string_type_p initializer.
1413 (go_language::is_string_type_p): New member function,
1414 implementation from go_is_string_type_p.
1415 * language.c (language_defn::is_string_type_p): Define new member
1416 function.
1417 (default_is_string_type_p): Make static, add comment copied from
1418 header file.
1419 (unknown_language_data): Delete la_is_string_type_p initializer.
1420 (unknown_language::is_string_type_p): New member function.
1421 (auto_language_data): Delete la_is_string_type_p initializer.
1422 (auto_language::is_string_type_p): New member function.
1423 * language.h (language_data): Delete la_is_string_type_p field.
1424 (language_defn::is_string_type_p): Declare new function.
1425 (default_is_string_type_p): Delete desclaration, move comment to
1426 definition.
1427 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
1428 moved to m2_language::is_string_type_p.
1429 (m2_language_data): Delete la_is_string_type_p initializer.
1430 (m2_language::is_string_type_p): New member function,
1431 implementation from m2_is_string_type_p.
1432 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
1433 initializer.
1434 * opencl-lang.c (opencl_language_data): Likewise.
1435 * p-lang.c (pascal_is_string_type_p): Delete function,
1436 implementation moved to pascal_language::is_string_type_p.
1437 (pascal_language_data): Delete la_is_string_type_p initializer.
1438 (pascal_language::is_string_type_p): New member function,
1439 implementation from pascal_is_string_type_p.
1440 * rust-lang.c (rust_is_string_type_p): Delete function,
1441 implementation moved to rust_language::is_string_type_p.
1442 (rust_language_data): Delete la_is_string_type_p initializer.
1443 (rust_language::is_string_type_p): New member function,
1444 implementation from rust_is_string_type_p.
1445 * valprint.c (val_print_scalar_or_string_type_p): Update call to
1446 is_string_type_p.
1447
4ffc13fb
AB
14482020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1449
1450 * ada-lang.c (ada_language_data): Delete la_print_typedef
1451 initializer.
1452 (ada_language::print_typedef): New member function.
1453 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
1454 (cplus_language_data): Likewise.
1455 (asm_language_data): Likewise.
1456 (minimal_language_data): Likewise.
1457 * d-lang.c (d_language_data): Likewise.
1458 * f-lang.c (f_language_data): Likewise.
1459 (f_language::print_typedef): New member function.
1460 * go-lang.c (go_language_data): Delete la_print_typedef
1461 initializer.
1462 * language.c (language_defn::print_typedef): Define member
1463 function.
1464 (unknown_language_data): Delete la_print_typedef initializer.
1465 (unknown_language::print_typedef): New member function.
1466 (auto_language_data): Delete la_print_typedef initializer.
1467 (auto_language::print_typedef): New member function.
1468 * language.h (language_data): Delete la_print_typedef field.
1469 (language_defn::print_typedef): Declare new member function.
1470 (LA_PRINT_TYPEDEF): Update call to print_typedef.
1471 (default_print_typedef): Delete declaration.
1472 * m2-lang.c (m2_language_data): Delete la_print_typedef
1473 initializer.
1474 (m2_language::print_typedef): New member function.
1475 * objc-lang.c (objc_language_data): Delete la_print_typedef
1476 initializer.
1477 * opencl-lang.c (opencl_language_data): Likewise.
1478 * p-lang.c (pascal_language_data): Likewise.
1479 (pascal_language::print_typedef): New member function.
1480 * rust-lang.c (rust_print_typedef): Delete function,
1481 implementation moved to rust_language::print_typedef.
1482 (rust_language): Delete la_print_typedef initializer.
1483 (rust_language::print_typedef): New member function,
1484 implementation from rust_print_typedef.
1485 * typeprint.c (default_print_typedef): Delete.
1486
d711ee67
AB
14872020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1488
1489 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
1490 (ada_language::printstr): New member function.
1491 * c-lang.c (c_language_data): Delete la_printstr initializer.
1492 (cplus_language_data): Likewise.
1493 (asm_language_data): Likewise.
1494 (minimal_language_data): Likewise.
1495 * d-lang.c (d_language_data): Likewise.
1496 * f-lang.c (f_printstr): Rename to f_language::printstr.
1497 (f_language_data): Delete la_printstr initializer.
1498 (f_language::printstr): New member function, implementation from
1499 f_printstr.
1500 * go-lang.c (go_language_data): Delete la_printstr initializer.
1501 * language.c (language_defn::printstr): Define new member
1502 function.
1503 (unk_lang_printstr): Delete.
1504 (unknown_language_data): Delete la_printstr initializer.
1505 (unknown_language::printstr): New member function.
1506 (auto_language_data): Delete la_printstr initializer.
1507 (auto_language::printstr): New member function.
1508 * language.h (language_data): Delete la_printstr field.
1509 (language_defn::printstr): Declare new member function.
1510 (LA_PRINT_STRING): Update call to printstr.
1511 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
1512 (m2_language_data): Delete la_printstr initializer.
1513 (m2_language::printstr): New member function, implementation from
1514 m2_printstr.
1515 * objc-lang.c (objc_language_data): Delete la_printstr
1516 initializer.
1517 * opencl-lang.c (opencl_language_data): Likewise.
1518 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
1519 (pascal_language_data): Delete la_printstr initializer.
1520 (pascal_language::printstr): New member function, implementation
1521 from pascal_printstr.
1522 * p-lang.h (pascal_printstr): Delete declaration.
1523 * rust-lang.c (rust_printstr): Update header comment.
1524 (rust_language_data): Delete la_printstr initializer.
1525 (rust_language::printstr): New member function.
1526
52b50f2c
AB
15272020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1528
1529 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
1530 (ada_language::printchar): New member function.
1531 * c-lang.c (c_language_data): Delete la_printchar initializer.
1532 (cplus_language_data): Likewise.
1533 (asm_language_data): Likewise.
1534 (minimal_language_data): Likewise.
1535 * d-lang.c (d_language_data): Likewise.
1536 * f-lang.c (f_printchar): Rename to f_language::printchar.
1537 (f_language_data): Delete la_printchar initializer.
1538 (f_language::printchar): New member function, implementation from
1539 f_printchar.
1540 * go-lang.c (go_language_data): Delete la_printchar initializer.
1541 * language.c (unk_lang_printchar): Delete.
1542 (language_defn::printchar): Define new member function.
1543 (unknown_language_data): Delete la_printchar initializer.
1544 (unknown_language::printchar): New member function.
1545 (auto_language_data): Delete la_printchar initializer.
1546 (auto_language::printchar): New member function.
1547 * language.h (language_data): Delete la_printchar field.
1548 (language_defn::printchar): Declare new member function.
1549 (LA_PRINT_CHAR): Update call to printchar.
1550 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
1551 (m2_language::printchar): New member function.
1552 * objc-lang.c (objc_language_data): Delete la_printchar
1553 initializer.
1554 * opencl-lang.c (opencl_language_data): Likewise.
1555 * p-lang.c (pascal_language_data): Delete la_printchar
1556 initializer.
1557 (pascal_language::printchar): New member function.
1558 * rust-lang.c (rust_printchar): Rename to
1559 rust_language::printchar.
1560 (rust_language_data): Delete la_printchar initializer.
1561 (rust_language::printchar): New member function, implementation
1562 from rust_printchar.
1563
ec8cec5b
AB
15642020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1565
1566 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
1567 (ada_language_data): Delete la_emitchar initializer.
1568 (ada_language::emitchar): New member function, implementation from
1569 emit_char.
1570 * c-lang.c (c_language_data): Delete la_emitchar initializer.
1571 (cplus_language_data): Likewise.
1572 (asm_language_data): Likewise.
1573 (minimal_language_data): Likewise.
1574 * d-lang.c (d_language_data): Likewise.
1575 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
1576 (f_language_data): Delete la_emitchar initializer.
1577 (f_language::emitchar): New member function, implementation from
1578 f_emit_char.
1579 * go-lang.c (go_language_data): Delete la_emitchar initializer.
1580 * language.c (unk_lang_emit_char): Delete.
1581 (language_defn::emitchar): New member function definition.
1582 (unknown_language_data): Delete la_emitchar initializer.
1583 (unknown_language::emitchar): New member function.
1584 (auto_language_data): Delete la_emitchar initializer.
1585 (auto_language::emitchar): New member function.
1586 * language.h (language_data): Delete la_emitchar field.
1587 (language_defn::emitchar): New member field declaration.
1588 (LA_EMIT_CHAR): Update call to emitchar.
1589 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
1590 (m2_language_data): Delete la_emitchar initializer.
1591 (m2_language::emitchar): New member function, implementation from
1592 m2_emit_char.
1593 * objc-lang.c (objc_language_data): Delete la_emitchar
1594 initializer.
1595 * opencl-lang.c (opencl_language_data): Likewise.
1596 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
1597 (pascal_language_data): Delete la_emitchar initializer.
1598 (pascal_language::emitchar): New member function, implementation
1599 from pascal_emit_char.
1600 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
1601 (rust_language_data): Delete la_emitchar initializer.
1602 (rust_language::emitchar): New member function, implementation
1603 from rust_emitchar.
1604
1bf9c363
AB
16052020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1606
1607 * ada-lang.c (resolve): Rename to ada_language::post_parser.
1608 (ada_language_data): Delete la_post_parser initializer.
1609 (ada_language::post_parser): New member function.
1610 * c-lang.c (c_language_data): Delete la_post_parser initializer.
1611 (cplus_language_data): Likewise.
1612 (asm_language_data): Likewise.
1613 (minimal_language_data): Likewise.
1614 * d-lang.c (d_language_data): Likewise.
1615 * f-lang.c (f_language_data): Likewise.
1616 * go-lang.c (go_language_data): Likewise.
1617 * language.c (unknown_language_data): Likewise.
1618 (auto_language_data): Likewise.
1619 * language.h (language_data): Delete la_post_parser field.
1620 (language_defn::post_parser): New member function.
1621 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
1622 * objc-lang.c (objc_language_data): Likewise.
1623 * opencl-lang.c (opencl_language_data): Likewise.
1624 * p-lang.c (pascal_language_data): Likewise.
1625 * parse.c (parse_exp_in_context): Update call to post_parser.
1626 (null_post_parser): Delete definition.
1627 * parser-defs.h (null_post_parser): Delete declaration.
1628 * rust-lang.c (rust_language_data): Delete la_post_parser
1629 initializer.
1630
87afa652
AB
16312020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1632
1633 * ada-lang.c (parse): Rename to ada_language::parser.
1634 (ada_language_data): Delete la_parser initializer.
1635 (ada_language::parser): New member function, implementation from
1636 parse.
1637 * c-lang.c (c_language_data): Delete la_parser initializer.
1638 (cplus_language_data): Likewise.
1639 (asm_language_data): Likewise.
1640 (minimal_language_data): Likewise.
1641 * d-lang.c (d_language_data): Likewise.
1642 (d_language::parser): New member function.
1643 * f-lang.c (f_language_data): Delete la_parser initializer.
1644 (f_language::parser): New member function.
1645 * go-lang.c (go_language_data): Delete la_parser initializer.
1646 (go_language::parser): New member function.
1647 * language.c (unk_lang_parser): Delete.
1648 (language_defn::parser): Define new member function.
1649 (unknown_language_data): Delete la_parser initializer.
1650 (unknown_language::parser): New member function.
1651 (auto_language_data): Delete la_parser initializer.
1652 (auto_language::parser): New member function.
1653 * language.h (language_data): Delete la_parser field.
1654 (language_defn::parser): Declare new member function.
1655 * m2-lang.c (m2_language_data): Delete la_parser initializer.
1656 (m2_language::parser): New member function.
1657 * objc-lang.c (objc_language_data): Delete la_parser initializer.
1658 * opencl-lang.c (opencl_language_data): Likewise.
1659 * p-lang.c (pascal_language_data): Likewise.
1660 (pascal_language::parser): New member function.
1661 * parse.c (parse_exp_in_context): Update call to parser.
1662 * rust-lang.c (rust_language_data): Delete la_parser initializer.
1663 (rust_language::parser): New member function.
1664
37825800
AB
16652020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1666
1667 * top.c (print_gdb_configuration): Print --with-python-libdir
1668 configuration value.
1669
5b860c93
PW
16702020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1671
1672 * NEWS: Mention change to the alias command.
1673
cf00cd6f
PW
16742020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1675
1676 * cli/cli-cmds.c (lookup_cmd_for_default_args)
1677 (alias_command_completer)
1678 (make_alias_options_def_group): New functions.
1679 (alias_opts, alias_option_defs): New struct and array.
1680 (alias_usage_error): Update usage.
1681 (alias_command): Handles optional DEFAULT-ARGS... arguments.
1682 Use option framework.
1683 (_initialize_cli_cmds): Update alias command help.
1684 Update aliases command help.
1685 (show_user):
1686 Add NULL for new default_args lookup_cmd argument.
1687 (valid_command_p): Rename to validate_aliased_command.
1688 Add NULL for new default_args lookup_cmd argument. Verify that the
1689 aliased_command has no default args.
1690 * cli/cli-decode.c (help_cmd): Show aliases definitions.
1691 (lookup_cmd_1, lookup_cmd): New argument default_args.
1692 (add_alias_cmd):
1693 Add NULL for new default_args lookup_cmd argument.
1694 (print_help_for_command): Show default args under the layout
1695 alias some_alias = some_aliased_cmd some_alias_default_arg.
1696 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
1697 xfree default_args in destructor.
1698 * cli/cli-script.c (process_next_line, do_define_command):
1699 Add NULL for new default_args lookup_cmd argument.
1700 * command.h: Declare new default_args argument in lookup_cmd
1701 and lookup_cmd_1.
1702 * completer.c (complete_line_internal_1):
1703 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1704 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
1705 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
1706 Likewise.
1707 * infcmd.c (_initialize_infcmd): Likewise.
1708 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
1709 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
1710 * python/py-param.c (add_setshow_generic): Likewise.
1711 * remote.c (_initialize_remote): Likewise.
1712 * top.c (execute_command): Prepend default_args if command has some.
1713 (set_verbose):
1714 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1715 * tracepoint.c (validate_actionline, encode_actions_1):
1716 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1717
bd920864
TBA
17182020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1719
1720 * jit.c (jit_read_descriptor): Use bool as the return type.
1721 (jit_breakpoint_re_set_internal): Use bool as the return type.
1722 Invert the return value logic; return true if the jit breakpoint
1723 has been successfully initialized.
1724 (jit_inferior_init): Update the call to
1725 jit_breakpoint_re_set_internal.
1726
f8098322
PA
17272020-06-22 Pedro Alves <palves@redhat.com>
1728
1729 PR gdb/25939
1730 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
1731 Use the current inferior instead. Don't return
1732 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
1733 wait again.
1734 * sol-thread.c (sol_thread_target::wait): Don't reference
1735 inferior_ptid.
1736 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
1737 (sol_update_thread_list_callback): Use the current inferior's pid
1738 instead of inferior_ptid.
1739
196535a6
RO
17402020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1741
1742 * procfs.c: Cleanup many comments.
1743
1744 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
1745 (AFTER_WATCHFLAG): Replace by value.
1746
1747 (MAIN_PROC_NAME_FORMAT): Inline ...
1748 (create_procinfo): ... here.
1749
1750 (procfs_debug_inferior): Remove SYS_exec handling.
1751 (syscall_is_exec): Likewise.
1752 (procfs_set_exec_trap): Likewise.
1753
1754 (syscall_is_lwp_exit): Inline in callers.
1755 (syscall_is_exit): Likewise.
1756 (syscall_is_exec): Likewise.
1757 (syscall_is_lwp_create): Likewise.
1758
1759 (invalidate_cache): Remove #if 0 code.
1760
1761 (make_signal_thread_runnable): Remove.
1762 (procfs_target::resume): Remove #if 0 code.
1763
cf6f3e86
RO
17642020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1765
1766 PR gdb/25939
1767 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
1768 call ...
1769 (procfs_target::create_inferior): ... here.
1770
48e9cc84
PW
17712020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1772
1773 * exec.c (validate_exec_file): Ensure the build-id is up to
1774 date by calling reopen_exec_file (that checks file timestamp
1775 to decide to re-read the file).
1776
3922b302
PA
17772020-06-18 Pedro Alves <palves@redhat.com>
1778
1779 PR gdb/25412
1780 * gdbthread.h (delete_thread, delete_thread_silent)
1781 (find_thread_ptid): Update comments.
1782 * thread.c (current_thread_): New global.
1783 (is_current_thread): Move higher, and reimplement.
1784 (inferior_thread): Reimplement.
1785 (set_thread_exited): Use bool. Add assertions.
1786 (add_thread_silent): Simplify thread-reuse handling by always
1787 calling delete_thread.
1788 (delete_thread): Remove intro comment.
1789 (find_thread_ptid): Skip exited threads.
1790 (switch_to_thread_no_regs): Write to current_thread_.
1791 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
1792 INFERIOR_PTID. Clear current_thread_.
1793
6dbdab44
PA
17942020-06-18 Pedro Alves <palves@redhat.com>
1795
1796 * aix-thread.c (pd_update): Use switch_to_thread.
1797
2da4b788
PA
17982020-06-18 Pedro Alves <palves@redhat.com>
1799
1800 * ravenscar-thread.c (ravenscar_thread_target): Update.
1801 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
1802 (ravenscar_thread_target::add_active_thread): ... this. Don't
1803 set m_base_ptid here. Update to avoid referencing inferior_ptid.
1804 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
1805
50838d1b
PA
18062020-06-18 Pedro Alves <palves@redhat.com>
1807
1808 * nat/windows-nat.c (current_windows_thread): Remove.
1809 * nat/windows-nat.h (current_windows_thread): Remove.
1810 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
1811 Adjust.
1812 (display_selectors): Adjust to fetch the current
1813 windows_thread_info based on inferior_ptid.
1814 (fake_create_process): No longer write to current_windows_thread.
1815 (windows_nat_target::get_windows_debug_event):
1816 Don't set inferior_ptid or current_windows_thread.
1817 (windows_nat_target::wait): Adjust to not rely on
1818 current_windows_thread.
1819 (do_initial_windows_stuff): Now a method of windows_nat_target.
1820 Switch to the last_ptid thread.
1821 (windows_nat_target::attach): Adjust.
1822 (windows_nat_target::detach): Use switch_to_no_thread instead of
1823 writing to inferior_ptid directly.
1824 (windows_nat_target::create_inferior): Adjust.
1825
31ce04e9
PA
18262020-06-18 Pedro Alves <palves@redhat.com>
1827
1828 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
1829
1ee1a363
PA
18302020-06-18 Pedro Alves <palves@redhat.com>
1831
1832 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
1833 after creating it, instead of writing to inferior_ptid. Don't
1834 write to inferior_ptid.
1835
6d350754
PA
18362020-06-18 Pedro Alves <palves@redhat.com>
1837
1838 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
1839
5d971d48
PA
18402020-06-18 Pedro Alves <palves@redhat.com>
1841
1842 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
1843 it, instead of writing to inferior_ptid.
1844
86e57d1b
PA
18452020-06-18 Pedro Alves <palves@redhat.com>
1846
1847 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
1848 to inferior_ptid.
1849
f2e1c129
PA
18502020-06-18 Pedro Alves <palves@redhat.com>
1851
1852 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
1853 instead of writing to inferior_ptid directly.
1854
60db1b85
PA
18552020-06-18 Pedro Alves <palves@redhat.com>
1856
1857 * corelow.c (core_target::close): Use switch_to_no_thread instead
1858 of writing to inferior_ptid directly.
1859 (add_to_thread_list, core_target_open): Use switch_to_thread
1860 instead of writing to inferior_ptid directly.
1861
fe7d6a8d
PA
18622020-06-18 Pedro Alves <palves@redhat.com>
1863
1864 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
1865 inferior_ptid.
1866 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
1867 inferior_ptid.
1868 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
1869 inferior_ptid directly.
1870 (darwin_nat_target::init_thread_list): Switch to thread, instead
1871 of writing to inferior_ptid.
1872 (darwin_nat_target::attach): Don't write to inferior_ptid.
1873 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
1874
975f8708
PA
18752020-06-18 Pedro Alves <palves@redhat.com>
1876
1877 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
1878 thread.
1879 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
1880 Instead use switch_to_thread.
1881 (gnu_nat_target::detach): Use switch_to_no_thread
1882 instead of writing to inferior_ptid directly. Used passed-in
1883 inferior instead of looking up the inferior by pid.
1884
1a204730
PA
18852020-06-18 Pedro Alves <palves@redhat.com>
1886
1887 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
1888 inferior_ptid.
1889
ebe84f23
PA
18902020-06-18 Pedro Alves <palves@redhat.com>
1891
1892 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
1893 inferior_ptid.
1894 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
1895 thread.
1896 (nto_procfs_target::detach): Avoid referencing
1897 inferior_ptid. Use switch_to_no_thread instead of writing to
1898 inferior_ptid directly.
1899 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
1900 instead of writing to inferior_ptid directly.
1901 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
1902 to thread.
1903
191f02e5
PA
19042020-06-18 Pedro Alves <palves@redhat.com>
1905
1906 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
1907 after creating it, instead of writing to inferior_ptid.
1908 (gdbsim_target_open): Use switch_to_no_thread instead of writing
1909 to inferior_ptid directly.
1910 (gdbsim_target::wait): Don't write to inferior_ptid.
1911
0ac55310
PA
19122020-06-18 Pedro Alves <palves@redhat.com>
1913
1914 * remote.c (remote_target::remote_notice_new_inferior): Use
1915 switch_to_thread instead of writing to inferior_ptid directly.
1916 (remote_target::add_current_inferior_and_thread): Use
1917 switch_to_no_thread instead of writing to inferior_ptid directly.
1918 (extended_remote_target::attach): Use switch_to_inferior_no_thread
1919 and switch_to_thread instead of using set_current_inferior or
1920 writing to inferior_ptid directly.
1921
5233f39b
PA
19222020-06-18 Pedro Alves <palves@redhat.com>
1923
1924 * tracectf.c (ctf_target_open): Switch to added thread instead of
1925 writing to inferior_ptid directly.
1926 (ctf_target::close): Use switch_to_no_thread instead of writing to
1927 inferior_ptid directly.
1928
087e161b
PA
19292020-06-18 Pedro Alves <palves@redhat.com>
1930
1931 * tracefile-tfile.c (tfile_target_open): Don't write to
1932 inferior_ptid directly, instead switch to added thread.
1933 (tfile_target::close): Use switch_to_no_thread instead of writing
1934 to inferior_ptid directly.
1935
7fb43e53
PA
19362020-06-18 Pedro Alves <palves@redhat.com>
1937
1938 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
1939 (procfs_target::detach): Use switch_to_no_thread
1940 instead of writing to inferior_ptid directly.
1941 (do_attach): Change return type to void. Switch to the added
1942 thread.
1943 (procfs_target::create_inferior): Switch to the added thread.
1944 (procfs_do_thread_registers): Don't write to inferior_ptid.
1945
18493a00
PA
19462020-06-18 Pedro Alves <palves@redhat.com>
1947
1948 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
1949 of writing to inferior_ptid.
1950 (scoped_restore_exited_inferior): Delete.
1951 (handle_vfork_child_exec_or_exit): Simplify using
1952 scoped_restore_current_pspace_and_thread. Use switch_to_thread
1953 instead of writing to inferior_ptid.
1954 (THREAD_STOPPED_BY): Delete.
1955 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
1956 (thread_stopped_by_hw_breakpoint): Delete.
1957 (save_waitstatus): Use
1958 scoped_restore_current_thread+switch_to_thread, and call
1959 target_stopped_by_watchpoint instead of
1960 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
1961 instead of thread_stopped_by_sw_breakpoint, and
1962 target_stopped_by_hw_breakpoint instead of
1963 thread_stopped_by_hw_breakpoint.
1964 (handle_inferior_event)
1965 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
1966 inferior_ptid directly, nor
1967 set_current_inferior/set_current_program_space. Use
1968 switch_to_thread / switch_to_inferior_no_thread instead.
1969
a0776b13
PA
19702020-06-18 Pedro Alves <palves@redhat.com>
1971
1972 * target.c (generic_mourn_inferior): Use switch_to_no_thread
1973 instead of writing to inferior_ptid.
1974
6155c136
PA
19752020-06-18 Pedro Alves <palves@redhat.com>
1976
1977 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
1978 added thread.
1979 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
1980 to the added thread.
1981 (inf_ptrace_target::detach_success): Use switch_to_no_thread
1982 instead of writing to inferior_ptid.
1983
c5316fc6
PA
19842020-06-18 Pedro Alves <palves@redhat.com>
1985
1986 * gdbarch-selftests.c: Include "progspace-and-thread.h".
1987 (register_to_value_test): Mock a program_space too. Heap-allocate
1988 the address space. Don't write to inferior_ptid. Use
1989 switch_to_thread instead.
1990
8df01799
PA
19912020-06-18 Pedro Alves <palves@redhat.com>
1992
1993 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
1994 Delete.
1995 (find_signalled_thread()): New, factored out from
1996 linux_make_corefile_notes and adjusted to handle exited threads.
1997 (linux_make_corefile_notes): Adjust to use the new
1998 find_signalled_thread.
1999
41792d68
PA
20002020-06-18 Pedro Alves <palves@redhat.com>
2001
2002 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
2003 of saving/restoring inferior_ptid.
2004
612f258a
TT
20052020-06-17 Tom Tromey <tom@tromey.com>
2006
2007 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
2008 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
2009 declare.
2010 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
2011
efb763a5
SM
20122020-06-15 Simon Marchi <simon.marchi@efficios.com>
2013
2014 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
2015 of partial symtabs.
2016
2951f6c0
SM
20172020-06-17 Simon Marchi <simon.marchi@efficios.com>
2018
2019 * regformats/reg-arm.dat: Remove.
2020 * regformats/reg-bfin.dat: Remove.
2021 * regformats/reg-cris.dat: Remove.
2022 * regformats/reg-crisv32.dat: Remove.
2023 * regformats/reg-m32r.dat: Remove.
2024 * regformats/reg-tilegx.dat: Remove.
2025 * regformats/reg-tilegx32.dat: Remove.
2026
7d458ea5
SM
20272020-06-17 Simon Marchi <simon.marchi@efficios.com>
2028
2029 * features/Makefile (WHICH): Remove arm files.
2030 * regformats/arm/arm-with-iwmmxt.dat: Remove.
2031 * regformats/arm/arm-with-neon.dat: Remove.
2032 * regformats/arm/arm-with-vfpv2.dat: Remove.
2033 * regformats/arm/arm-with-vfpv3.dat: Remove.
2034
3af96c0d
SM
20352020-06-17 Simon Marchi <simon.marchi@efficios.com>
2036
2037 * features/Makefile (XMLTOC): Remove rx.xml.
2038
b25e22fd
PA
20392020-06-17 Pedro Alves <palves@redhat.com>
2040
2041 * gdbthread.h (thread_control_state) <trap_expected> Update
2042 comments.
2043
a78a19b1
AB
20442020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2045
2046 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
2047 ada_language::lookup_symbol_nonlocal.
2048 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
2049 (ada_language::lookup_symbol_nonlocal): New member function,
2050 implementation from ada_lookup_symbol_nonlocal.
2051 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
2052 initializer.
2053 (cplus_language_data): Delete la_lookup_symbol_nonlocal
2054 initializer.
2055 (cplus_language::lookup_symbol_nonlocal): New member function.
2056 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
2057 (minimal_language_data) Likewise.
2058 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
2059 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
2060 initializer.
2061 (d_language::lookup_symbol_nonlocal): New member function.
2062 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
2063 initializer.
2064 (f_language::lookup_symbol_nonlocal): New member function.
2065 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
2066 initializer.
2067 * language.c (unknown_language_data): Likewise.
2068 (auto_language_data): Likewise.
2069 * language.h (language_data): Delete la_lookup_symbol_nonlocal
2070 field.
2071 (language_defn::lookup_symbol_nonlocal): New member function.
2072 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
2073 initializer.
2074 * objc-lang.c (objc_language_data): Likewise.
2075 * opencl-lang.c (opencl_language_data): Likewise.
2076 * p-lang.c (pascal_language_data): Likewise.
2077 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
2078 rust_language::lookup_symbol_nonlocal.
2079 (rust_language_data): Delete la_lookup_symbol_nonlocal
2080 initializer.
2081 (rust_language::lookup_symbol_nonlocal): New member function,
2082 implementation from rust_lookup_symbol_nonlocal.
2083 * symtab.c (lookup_symbol_aux): Update call to
2084 lookup_symbol_nonlocal.
2085 (basic_lookup_symbol_nonlocal): Rename to...
2086 (language_defn::lookup_symbol_nonlocal): ...this, and update
2087 header comment. Remove language_defn parameter, and replace with
2088 uses of `this'.
2089 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
2090
ebe2334e
AB
20912020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2092
2093 * ada-lang.c (ada_language_data): Delete la_value_print_inner
2094 initializer.
2095 (ada_language::value_print_inner): New member function.
2096 * c-lang.c (c_language_data): Delete la_value_print_inner
2097 initializer.
2098 (cplus_language_data): Likewise.
2099 (asm_language_data): Likewise.
2100 (minimal_language_data): Likewise.
2101 * d-lang.c (d_language_data): Likewise.
2102 (d_language::value_print_inner): New member function.
2103 * f-lang.c (f_language_data): Delete la_value_print_inner
2104 initializer.
2105 (f_language::value_print_inner): New member function.
2106 * f-lang.h (f_value_print_innner): Rename to...
2107 (f_value_print_inner): ...this (note spelling of 'inner').
2108 * f-valprint.c (f_value_print_innner): Rename to...
2109 (f_value_print_inner): ...this (note spelling of 'inner').
2110 * go-lang.c (go_language_data): Delete la_value_print_inner
2111 initializer.
2112 (go_language::value_print_inner): New member function.
2113 * language.c (language_defn::value_print_inner): Define new member
2114 function.
2115 (unk_lang_value_print_inner): Delete.
2116 (unknown_language_data): Delete la_value_print_inner initializer.
2117 (unknown_language::value_print_inner): New member function.
2118 (auto_language_data): Delete la_value_print_inner initializer.
2119 (auto_language::value_print_inner): New member function.
2120 * language.h (language_data): Delete la_value_print_inner field.
2121 (language_defn::value_print_inner): Delcare new member function.
2122 * m2-lang.c (m2_language_data): Delete la_value_print_inner
2123 initializer.
2124 (m2_language::value_print_inner): New member function.
2125 * objc-lang.c (objc_language_data): Delete la_value_print_inner
2126 initializer.
2127 * opencl-lang.c (opencl_language_data): Likewise.
2128 * p-lang.c (pascal_language_data): Likewise.
2129 (pascal_language::value_print_inner): New member function.
2130 * rust-lang.c (rust_language_data): Delete la_value_print_inner
2131 initializer.
2132 (rust_language::value_print_inner): New member function.
2133 * valprint.c (do_val_print): Update call to value_print_inner.
2134
a1d1fa3e
AB
21352020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2136
2137 * ada-lang.c (ada_language_data): Delete la_value_print
2138 initializer.
2139 (ada_language::value_print): New member function.
2140 * c-lang.c (c_language_data): Delete la_value_print initializer.
2141 (cplus_language_data): Likewise.
2142 (asm_language_data): Likewise.
2143 (minimal_language_data): Likewise.
2144 * d-lang.c (d_language_data): Likewise.
2145 * f-lang.c (f_language_data): Likewise.
2146 * go-lang.c (go_language_data): Likewise.
2147 * language.c (unk_lang_value_print): Delete.
2148 (language_defn::value_print): Define new member function.
2149 (unknown_language_data): Delete la_value_print initializer.
2150 (unknown_language::value_print): New member function.
2151 (auto_language_data): Delete la_value_print initializer.
2152 (auto_language::value_print): New member function.
2153 * language.h (language_data): Delete la_value_print field.
2154 (language_defn::value_print): Declare new member function.
2155 (LA_VALUE_PRINT): Update call to value_print.
2156 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
2157 * objc-lang.c (objc_language_data): Likewise.
2158 * opencl-lang.c (opencl_language_data): Likewise.
2159 * p-lang.c (pascal_language_data): Likewise.
2160 (pascal_language::value_print): New member function.
2161 * rust-lang.c (rust_language_data): Delete la_value_print
2162 initializer.
2163
f16a9f57
AB
21642020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2165
2166 * ada-lang.c (ada_watch_location_expression): Rename to
2167 ada_language::watch_location_expression.
2168 (ada_language_data): Delete la_watch_location_expression
2169 initializer.
2170 (ada_language::watch_location_expression): New member function,
2171 implementation from ada_watch_location_expression.
2172 * breakpoint.c (watch_command_1): Update call to
2173 watch_location_expression.
2174 * c-lang.c (c_watch_location_expression): Rename to
2175 language_defn::watch_location_expression.
2176 (c_language_data): Delete la_watch_location_expression
2177 initializer.
2178 (cplus_language_data): Likewise.
2179 (asm_language_data): Likewise.
2180 (minimal_language_data): Likewise.
2181 * c-lang.h (c_watch_location_expression): Delete declaration.
2182 * d-lang.c (d_language_data): Delete la_watch_location_expression
2183 initializer.
2184 * f-lang.c (f_language_data): Likewise.
2185 * go-lang.c (go_language_data): Likewise.
2186 * language.c (language_defn::watch_location_expression): Member
2187 function implementation from c_watch_location_expression.
2188 (unknown_language_data): Delete la_watch_location_expression
2189 initializer.
2190 (auto_language_data): Likewise.
2191 * language.h (language_data): Delete la_watch_location_expression
2192 field.
2193 (language_defn::watch_location_expression): Declare new member
2194 function.
2195 * m2-lang.c (m2_language_data): Delete
2196 la_watch_location_expression initializer.
2197 * objc-lang.c (objc_language_data): Likewise.
2198 * opencl-lang.c (opencl_language_data): Likewise.
2199 * p-lang.c (pascal_language_data): Likewise.
2200 * rust-lang.c (rust_watch_location_expression): Rename to
2201 rust_language::watch_location_expression.
2202 (rust_language_data): Delete la_watch_location_expression
2203 initializer.
2204 (rust_language::watch_location_expression): New member function,
2205 implementation from rust_watch_location_expression.
2206
7e56227d
AB
22072020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2208
2209 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
2210 ada_language::collect_symbol_completion_matches.
2211 (ada_language_data): Delete la_collect_symbol_completion_matches
2212 initializer.
2213 (ada_language::collect_symbol_completion_matches): New member
2214 function, implementation from
2215 ada_collect_symbol_completion_matches.
2216 * c-lang.c (c_language_data): Delete
2217 la_collect_symbol_completion_matches initializer.
2218 (cplus_language_data): Likewise.
2219 (asm_language_data): Likewise.
2220 (minimal_language_data): Likewise.
2221 * d-lang.c (d_language_data): Likewise.
2222 * f-lang.c (f_collect_symbol_completion_matches): Rename to
2223 f_language::collect_symbol_completion_matches.
2224 (f_language_data): Delete la_collect_symbol_completion_matches
2225 initializer.
2226 (f_language::collect_symbol_completion_matches) New member
2227 function, implementation from f_collect_symbol_completion_matches.
2228 * go-lang.c (go_language_data): Delete
2229 la_collect_symbol_completion_matches initializer.
2230 * language.c (unknown_language_data): Likewise.
2231 (auto_language_data): Likewise.
2232 * language.h (language_data): Delete
2233 la_collect_symbol_completion_matches field.
2234 (language_defn::collect_symbol_completion_matches): New member
2235 function.
2236 * m2-lang.c (m2_language_data): Delete
2237 la_collect_symbol_completion_matches initializer.
2238 * objc-lang.c (objc_language_data): Likewise.
2239 * opencl-lang.c (opencl_language_data): Likewise.
2240 * p-lang.c (pascal_language_data): Likewise.
2241 * rust-lang.c (rust_language_data): Likewise.
2242 * symtab.c (default_collect_symbol_completion_matches): Delete.
2243 (collect_symbol_completion_matches): Update call to
2244 collect_symbol_completion_matches.
2245 (collect_symbol_completion_matches_type): Likewise.
2246 * symtab.h (default_collect_symbol_completion_matches): Delete
2247 declaration.
2248
53fc67f8
AB
22492020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2250
2251 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
2252 (ada_language_data): Delete la_word_break_characters initializer.
2253 (ada_language::word_break_characters): New member function.
2254 * c-lang.c (c_language_data): Delete la_word_break_characters
2255 initializer.
2256 (cplus_language_data): Likewise.
2257 (asm_language_data): Likewise.
2258 (minimal_language_data): Likewise.
2259 * completer.c: Update global comment.
2260 (advance_to_expression_complete_word_point): Update call to
2261 word_break_characters.
2262 (complete_files_symbols): Likewise.
2263 (complete_line_internal_1): Likewise.
2264 (default_completer_handle_brkchars): Likewise.
2265 (skip_quoted_chars): Likewise.
2266 * d-lang.c (d_language_data): Delete la_word_break_characters
2267 initializer.
2268 * f-lang.c (f_word_break_characters): Delete.
2269 (f_language_data): Delete la_word_break_characters initializer.
2270 (f_language::word_break_characters): New member function.
2271 * go-lang.c (go_language_data): Delete la_word_break_characters
2272 initializer.
2273 * language.c (unknown_language_data): Likewise.
2274 (auto_language_data): Likewise.
2275 * language.h (default_word_break_characters): Move declaration to
2276 earlier in the file.
2277 (language_data): Delete la_word_break_characters field.
2278 (language_defn::word_break_characters): New member function.
2279 * m2-lang.c (m2_language_data): Delete la_word_break_characters
2280 initializer.
2281 * objc-lang.c (objc_language_data): Likewise.
2282 * opencl-lang.c (opencl_language_data): Likewise.
2283 * p-lang.c (pascal_language_data): Likewise.
2284 * rust-lang.c (rust_language_data): Likewise.
2285
c9debfb9
AB
22862020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2287
2288 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
2289 (ada_language_data): Delete la_get_symbol_name_matcher
2290 initializer.
2291 (language_defn::get_symbol_name_matcher_inner): New member
2292 function.
2293 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
2294 initializer.
2295 (cplus_language_data): Likewise.
2296 (cplus_language::get_symbol_name_matcher_inner): New member
2297 function.
2298 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
2299 (minimal_language_data): Likewise.
2300 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
2301 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
2302 initializer.
2303 * dictionary.c (iter_match_first_hashed): Update call to
2304 get_symbol_name_matcher.
2305 (iter_match_next_hashed): Likewise.
2306 (iter_match_next_linear): Likewise.
2307 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
2308 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
2309 initializer.
2310 (f_language::get_symbol_name_matcher_inner): New member function.
2311 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
2312 initializer.
2313 * language.c (default_symbol_name_matcher): Update header comment,
2314 make static.
2315 (language_defn::get_symbol_name_matcher): New definition.
2316 (language_defn::get_symbol_name_matcher_inner): Likewise.
2317 (get_symbol_name_matcher): Delete.
2318 (unknown_language_data): Delete la_get_symbol_name_matcher
2319 initializer.
2320 (auto_language_data): Likewise.
2321 * language.h (language_data): Delete la_get_symbol_name_matcher
2322 field.
2323 (language_defn::get_symbol_name_matcher): New member function.
2324 (language_defn::get_symbol_name_matcher_inner): Likewise.
2325 (default_symbol_name_matcher): Delete declaration.
2326 * linespec.c (find_methods): Update call to
2327 get_symbol_name_matcher.
2328 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
2329 initializer.
2330 * minsyms.c (lookup_minimal_symbol): Update call to
2331 get_symbol_name_matcher.
2332 (iterate_over_minimal_symbols): Likewise.
2333 * objc-lang.c (objc_language_data): Delete
2334 la_get_symbol_name_matcher initializer.
2335 * opencl-lang.c (opencl_language_data): Likewise.
2336 * p-lang.c (pascal_language_data): Likewise.
2337 * psymtab.c (psymbol_name_matches): Update call to
2338 get_symbol_name_matcher.
2339 * rust-lang.c (rust_language_data): Delete
2340 la_get_symbol_name_matcher initializer.
2341 * symtab.c (symbol_matches_search_name): Update call to
2342 get_symbol_name_matcher.
2343 (compare_symbol_name): Likewise.
2344
9a49ad8c
AB
23452020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2346
2347 * ada-lang.c (ada_language_data): Delete la_compute_program
2348 initializer.
2349 * c-lang.c (c_language_data): Likewise.
2350 (c_language::compute_program): New member function.
2351 (cplus_language_data): Delete la_compute_program initializer.
2352 (cplus_language::compute_program): New member function.
2353 (asm_language_data): Delete la_compute_program initializer.
2354 (minimal_language_data): Likewise.
2355 * c-lang.h (c_compute_program): Update comment.
2356 (cplus_compute_program): Likewise.
2357 * compile/compile-c-support.c (c_compute_program): Likewise.
2358 (cplus_compute_program): Likewise.
2359 * compile/compile.c (compile_to_object): Update call to
2360 la_compute_program.
2361 * d-lang.c (d_language_data): Delete la_compute_program
2362 initializer.
2363 * f-lang.c (f_language_data): Likewise.
2364 * go-lang.c (go_language_data): Likewise.
2365 * language.c (unknown_language_data): Likewise.
2366 (auto_language_data): Likewise.
2367 * language.h (language_data): Delete la_compute_program field.
2368 (language_defn::compute_program): New member function.
2369 * m2-lang.c (m2_language_data): Delete la_compute_program
2370 initializer.
2371 * objc-lang.c (objc_language_data): Likewise.
2372 * opencl-lang.c (opencl_language_data): Likewise.
2373 * p-lang.c (pascal_language_data): Likewise.
2374 * rust-lang.c (rust_language_data): Likewise.
2375
eff93b4d
AB
23762020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2377
2378 * ada-lang.c (ada_language_data) Delete
2379 la_class_name_from_physname initializer.
2380 * c-lang.c (c_language_data): Likewise.
2381 (cplus_language_data): Likewise.
2382 (cplus_language::class_name_from_physname): New member function.
2383 (asm_language_data): Delete la_class_name_from_physname
2384 initializer.
2385 (minimal_language_data): Likewise.
2386 * d-lang.c (d_language_data): Likewise.
2387 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
2388 method on language_defn class.
2389 (guess_full_die_structure_name): Likewise.
2390 * f-lang.c (f_language_data): Delete la_class_name_from_physname
2391 initializer.
2392 * go-lang.c (go_language_data): Likewise.
2393 * language.c (language_class_name_from_physname): Delete.
2394 (unk_lang_class_name): Delete.
2395 (unknown_language_data): Delete la_class_name_from_physname
2396 initializer.
2397 (auto_language_data): Likewise.
2398 * language.h (language_data): Delete la_class_name_from_physname
2399 field.
2400 (language_defn::class_name_from_physname): New function.
2401 (language_class_name_from_physname): Delete declaration.
2402 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
2403 initializer.
2404 * objc-lang.c (objc_language_data): Likewise.
2405 * opencl-lang.c (opencl_language_data): Likewise.
2406 * p-lang.c (pascal_language_data): Likewise.
2407 * rust-lang.c (rust_language_data): Likewise.
2408
de543742
TT
24092020-06-16 Tom Tromey <tom@tromey.com>
2410
2411 * tui/tui-data.h (STATUS_NAME): New macro.
2412 * tui/tui-layout.c (tui_remove_some_windows)
2413 (initialize_known_windows, tui_register_window)
2414 (tui_layout_split::remove_windows, initialize_layouts)
2415 (tui_new_layout_command): Don't use hard-coded window names.
2416
a350efd4
TT
24172020-06-16 Tom Tromey <tom@tromey.com>
2418
2419 PR tui/25348:
2420 * tui/tui.c (tui_ensure_readline_initialized): Rename from
2421 tui_initialize_readline. Only run once. Call rl_initialize.
2422 * tui/tui.h (tui_ensure_readline_initialized): Rename from
2423 tui_initialize_readline.
2424 * tui/tui-io.c (tui_setup_io): Call
2425 tui_ensure_readline_initialized.
2426 * tui/tui-interp.c (tui_interp::init): Update.
2427
39ec0490
TT
24282020-06-16 Tom Tromey <tom@tromey.com>
2429
2430 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
2431 Also preserve the status window.
2432
d2d1ea20
TT
24332020-06-16 Tom Tromey <tom@tromey.com>
2434
2435 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
2436 where m_window==nullptr.
2437
66920317
TT
24382020-06-15 Tom Tromey <tromey@adacore.com>
2439
2440 * windows-nat.c (windows_nat::handle_output_debug_string):
2441 Update.
2442 (windows_nat::handle_ms_vc_exception): Update.
2443 * target.h (target_read_string): Change API.
2444 * target.c (target_read_string): Change API.
2445 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
2446 Update.
2447 * solib-frv.c (frv_current_sos): Update.
2448 * solib-dsbt.c (dsbt_current_sos): Update.
2449 * solib-darwin.c (darwin_current_sos): Update.
2450 * linux-thread-db.c (inferior_has_bug): Update.
2451 * expprint.c (print_subexp_standard): Update.
2452 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
2453 (ada_exception_message_1): Update.
2454
a5d871dd
TT
24552020-06-15 Tom Tromey <tromey@adacore.com>
2456
2457 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
2458
670e35fa
TT
24592020-06-15 Tom Tromey <tromey@adacore.com>
2460
2461 * valprint.c (read_string): Update comment.
2462 * target.c (MIN): Remove.
2463 (target_read_string): Rewrite.
2464
f5272a3b
TT
24652020-06-15 Tom Tromey <tromey@adacore.com>
2466
2467 * corefile.c (read_memory_string): Remove.
2468 * ada-valprint.c (ada_value_print_ptr): Update.
2469 * ada-lang.h (ada_tag_name): Change return type.
2470 * ada-lang.c (type_from_tag): Update.
2471 (ada_tag_name_from_tsd): Change return type. Use
2472 target_read_string.
2473 (ada_tag_name): Likewise.
2474 * gdbcore.h (read_memory_string): Don't declare.
2475
2c074f49
HD
24762020-06-14 Hannes Domani <ssbssa@yahoo.de>
2477
2478 * symtab.c (rbreak_command): Ignore Windows drive colon.
2479
6a17d503
SM
24802020-06-12 Simon Marchi <simon.marchi@efficios.com>
2481
2482 * NEWS: Mention removed GDBserver host support.
2483
453c733f
NC
24842020-06-12 Nelson Chu <nelson.chu@sifive.com>
2485
2486 * features/riscv/rebuild-csr-xml.sh: Updated.
2487
2b4e6a3f
TT
24882020-06-11 Tom Tromey <tom@tromey.com>
2489
2490 PR gdb/18318:
2491 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
2492
4412332f
JG
24932020-06-09 Jonny Grant <jg@jguk.org>
24942020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
2495
2496 * main.c (captured_main_1): Don't print new line after help.
2497 (print_gdb_help): add mailing list and IRC channel information
2498 to --help. Add new lines between items in the footer. Remove
2499 quotes around bug url.
2500
2f33032a
KS
25012020-06-11 Keith Seitz <keiths@redhat.com>
2502
2503 PR gdb/21356
2504 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
2505 Resolve typedefs for type length calculations.
2506
7ab96794
TV
25072020-06-10 Tom de Vries <tdevries@suse.de>
2508
2509 PR ada/24713
2510 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
2511 (write_psymbols): Enable .gdb_index for ada.
2512 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
2513 ada.
2514
e5f3ece2
TV
25152020-06-10 Tom de Vries <tdevries@suse.de>
2516
2517 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
2518 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
2519 namei" instead of "const char *name" argument.
2520 (dw2_map_matching_symbols): Use "offset_type namei" variant of
2521 dw2_symtab_iter_init.
2522
940da03e
SM
25232020-06-08 Simon Marchi <simon.marchi@efficios.com>
2524
2525 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
2526 to use type::field and field::type instead.
2527
b6cdac4b
SM
25282020-06-08 Simon Marchi <simon.marchi@efficios.com>
2529
2530 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
2531 to use field::type instead.
2532
5d14b6e5
SM
25332020-06-08 Simon Marchi <simon.marchi@efficios.com>
2534
2535 * gdbtypes.h (struct field) <type, set_type>: New methods.
2536 Rename `type` field to...
2537 <m_type>: ... this. Change references throughout to use type or
2538 set_type methods.
2539 (FIELD_TYPE): Use field::type. Change call sites that modify
2540 the field's type to use field::set_type instead.
2541
3d967001
SM
25422020-06-08 Simon Marchi <simon.marchi@efficios.com>
2543
2544 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
2545 to use type::index_type instead.
2546
262abc0d
SM
25472020-06-08 Simon Marchi <simon.marchi@efficios.com>
2548
2549 * gdbtypes.h (struct type) <index_type, set_index_type>: New
2550 methods.
2551 (TYPE_INDEX_TYPE): Use type::index_type.
2552 * gdbtypes.c (create_array_type_with_stride): Likewise.
2553
82836c92
TT
25542020-06-07 Tom Tromey <tom@tromey.com>
2555
2556 * valprint.c (generic_val_print_float): Remove "embedded_offset"
2557 parameter.
2558 (generic_value_print): Update.
2559
940dace9
AB
25602020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2561
2562 Revert commit 982a38f60b0.
2563 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
2564
982a38f6
AB
25652020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2566
2567 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
2568 avoid use after free.
2569
82f06518
TV
25702020-06-05 Tom de Vries <tdevries@suse.de>
2571
2572 * NEWS: Fix typos.
2573
f8c41851
SM
25742020-06-04 Simon Marchi <simon.marchi@efficios.com>
2575
2576 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
2577 the per_bfd object.
2578 (dwarf2_read_debug_names): Likewise.
2579 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
2580 object when re-using a per_bfd object with an index.
2581
f9b5d5ea
TV
25822020-06-03 Tom de Vries <tdevries@suse.de>
2583
2584 PR symtab/26046
2585 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
2586 children for C++.
2587 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
2588 DW_TAG_subprogram.
2589
f6eee2d0
AB
25902020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2591
2592 * ada-lang.c (ada_language_data): Delete skip_trampoline
2593 initializer.
2594 * c-lang.c (c_language_data): Likewise.
2595 (cplus_language_data): Likewise.
2596 (cplus_language::skip_trampoline): New member function.
2597 (asm_language_data): Delete skip_trampoline initializer.
2598 (minimal_language_data): Likewise.
2599 * d-lang.c (d_language_data): Likewise.
2600 * f-lang.c (f_language_data): Likewise.
2601 * go-lang.c (go_language_data): Likewise.
2602 * language.c (unk_lang_trampoline): Delete function.
2603 (skip_language_trampoline): Update.
2604 (unknown_language_data): Delete skip_trampoline initializer.
2605 (auto_language_data): Likewise.
2606 * language.h (language_data): Delete skip_trampoline field.
2607 (language_defn::skip_trampoline): New function.
2608 * m2-lang.c (m2_language_data): Delete skip_trampoline
2609 initializer.
2610 * objc-lang.c (objc_skip_trampoline): Delete function, move
2611 implementation to objc_language::skip_trampoline.
2612 (objc_language_data): Delete skip_trampoline initializer.
2613 (objc_language::skip_trampoline): New member function with
2614 implementation from objc_skip_trampoline.
2615 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
2616 initializer.
2617 * p-lang.c (pascal_language_data): Likewise.
2618 * rust-lang.c (rust_language_data): Likewise.
2619
0a50df5d
AB
26202020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2621
2622 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
2623 (ada_language::demangle): New member function.
2624 * c-lang.c (c_language_data): Delete la_demangle initializer.
2625 (cplus_language_data): Delete la_demangle initializer.
2626 (cplus_language::demangle): New member function.
2627 (asm_language_data): Delete la_demangle initializer.
2628 (minimal_language_data): Delete la_demangle initializer.
2629 * d-lang.c (d_language_data): Delete la_demangle initializer.
2630 (d_language::demangle): New member function.
2631 * f-lang.c (f_language_data): Delete la_demangle initializer.
2632 (f_language::demangle): New member function.
2633 * go-lang.c (go_language_data): Delete la_demangle initializer.
2634 (go_language::demangle): New member function.
2635 * language.c (language_demangle): Update.
2636 (unk_lang_demangle): Delete.
2637 (unknown_language_data): Delete la_demangle initializer.
2638 (unknown_language::demangle): New member function.
2639 (auto_language_data): Delete la_demangle initializer.
2640 (auto_language::demangle): New member function.
2641 * language.h (language_data): Delete la_demangle field.
2642 (language_defn::demangle): New function.
2643 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
2644 * objc-lang.c (objc_language_data): Delete la_demangle
2645 initializer.
2646 (objc_language::demangle): New member function.
2647 * opencl-lang.c (opencl_language_data): Delete la_demangle
2648 initializer.
2649 * p-lang.c (pascal_language_data): Likewise.
2650 * rust-lang.c (rust_language_data): Likewise.
2651 (rust_language::demangle): New member function.
2652
fbfb0a46
AB
26532020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2654
2655 * ada-lang.c (ada_language_data): Delete la_print_type
2656 initializer.
2657 (ada_language::print_type): New member function.
2658 * c-lang.c (c_language_data): Delete la_print_type initializer.
2659 (c_language::print_type): New member function.
2660 (cplus_language_data): Delete la_print_type initializer.
2661 (cplus_language::print_type): New member function.
2662 (asm_language_data): Delete la_print_type initializer.
2663 (asm_language::print_type): New member function.
2664 (minimal_language_data): Delete la_print_type initializer.
2665 (minimal_language::print_type): New member function.
2666 * d-lang.c (d_language_data): Delete la_print_type initializer.
2667 (d_language::print_type): New member function.
2668 * f-lang.c (f_language_data): Delete la_print_type initializer.
2669 (f_language::print_type): New member function.
2670 * go-lang.c (go_language_data): Delete la_print_type initializer.
2671 (go_language::print_type): New member function.
2672 * language.c (unk_lang_print_type): Delete.
2673 (unknown_language_data): Delete la_print_type initializer.
2674 (unknown_language::print_type): New member function.
2675 (auto_language_data): Delete la_print_type initializer.
2676 (auto_language::print_type): New member function.
2677 * language.h (language_data): Delete la_print_type field.
2678 (language_defn::print_type): New function.
2679 (LA_PRINT_TYPE): Update.
2680 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
2681 (m2_language::print_type): New member function.
2682 * objc-lang.c (objc_language_data): Delete la_print_type
2683 initializer.
2684 (objc_language::print_type): New member function.
2685 * opencl-lang.c (opencl_print_type): Delete, implementation moved
2686 to opencl_language::print_type.
2687 (opencl_language_data): Delete la_print_type initializer.
2688 (opencl_language::print_type): New member function, implementation
2689 from opencl_print_type.
2690 * p-lang.c (pascal_language_data): Delete la_print_type
2691 initializer.
2692 (pascal_language::print_type): New member function.
2693 * rust-lang.c (rust_print_type): Delete, implementation moved to
2694 rust_language::print_type.
2695 (rust_language_data): Delete la_print_type initializer.
2696 (rust_language::print_type): New member function, implementation
2697 from rust_print_type.
2698
6f827019
AB
26992020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2700
2701 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
2702 implementation moves to...
2703 (ada_language::sniff_from_mangled_name): ...here. Update return
2704 type.
2705 (ada_language_data): Delete la_sniff_from_mangled_name
2706 initializer.
2707 * c-lang.c (c_language_data): Likewise.
2708 (cplus_language_data): Likewise.
2709 (cplus_language::sniff_from_mangled_name): New member function,
2710 implementation taken from gdb_sniff_from_mangled_name.
2711 (asm_language_data): Delete la_sniff_from_mangled_name
2712 initializer.
2713 (minimal_language_data): Likewise.
2714 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
2715 implementation moves to cplus_language::sniff_from_mangled_name.
2716 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
2717 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
2718 moves to...
2719 (d_language::sniff_from_mangled_name): ...here.
2720 (d_language_data): Delete la_sniff_from_mangled_name initializer.
2721 * f-lang.c (f_language_data): Likewise.
2722 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
2723 moves to...
2724 (go_language::sniff_from_mangled_name): ...here.
2725 (go_language_data): Delete la_sniff_from_mangled_name initializer.
2726 * language.c (language_sniff_from_mangled_name): Delete.
2727 (unknown_language_data): Delete la_sniff_from_mangled_name
2728 initializer.
2729 (auto_language_data): Likewise.
2730 * language.h (language_data): Delete la_sniff_from_mangled_name
2731 field.
2732 (language_defn::sniff_from_mangled_name): New function.
2733 (language_sniff_from_mangled_name): Delete declaration.
2734 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
2735 field.
2736 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
2737 implementation moves to...
2738 (objc_language::sniff_from_mangled_name): ...here.
2739 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
2740 * opencl-lang.c (opencl_language_data): Likewise.
2741 * p-lang.c (pascal_language_data): Likewise.
2742 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
2743 implementation moves to...
2744 (rust_language::sniff_from_mangled_name): ...here.
2745 (rust_language_data): Delete la_sniff_from_mangled_name
2746 initializer.
2747 * symtab.c (symbol_find_demangled_name): Call
2748 sniff_from_mangled_name member function.
2749
fb8006fd
AB
27502020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2751
2752 * ada-lang.c (ada_language_data): Delete la_search_name_hash
2753 initializer.
2754 * c-lang.c (c_language_data): Likewise.
2755 (cplus_language_data): Likewise.
2756 (cplus_language::search_name_hash): New member function.
2757 (asm_language_data): Delete la_search_name_hash initializer.
2758 (minimal_language_data): Likewise.
2759 * d-lang.c (d_language_data): Likewise.
2760 * dictionary.c (default_search_name_hash): Rename to...
2761 (language_defn::search_name_hash): ...this.
2762 * f-lang.c (f_language_data): Likewise.
2763 (f_language::search_name_hash): New member function.
2764 * go-lang.c (go_language_data): Delete la_search_name_hash
2765 initializer.
2766 * language.c (unknown_language_data): Likewise.
2767 (auto_language_data): Likewise.
2768 * language.h (struct language_data): Delete la_search_name_hash
2769 field.
2770 (language_defn::search_name_hash): Declare new member function.
2771 (default_search_name_hash): Delete declaration.
2772 * m2-lang.c (m2_language_data): Delete la_search_name_hash
2773 initializer.
2774 * objc-lang.c (objc_language_data): Likewise.
2775 * opencl-lang.c (opencl_language_data): Likewise.
2776 * p-lang.c (pascal_language_data): Likewise.
2777 * rust-lang.c (rust_language_data): Likewise.
2778 * symtab.c (search_name_hash): Update call.
2779
8e25bafe
AB
27802020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2781
2782 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
2783 initializer.
2784 * c-lang.c (class compile_instance): Declare.
2785 (c_language_data): Delete la_get_compile_instance initializer.
2786 (c_language::get_compile_instance): New member function.
2787 (cplus_language_data): Delete la_get_compile_instance initializer.
2788 (cplus_language::get_compile_instance): New member function.
2789 (asm_language_data): Delete la_get_compile_instance initializer.
2790 (minimal_language_data): Likewise.
2791 * c-lang.h (c_get_compile_context): Update comment.
2792 (cplus_get_compile_context): Update comment.
2793 * compile/compile.c (compile_to_object): Update calls, don't rely
2794 on function pointer being NULL.
2795 * d-lang.c (d_language_data): Delete la_get_compile_instance
2796 initializer.
2797 * f-lang.c (f_language_data): Likewise.
2798 * go-lang.c (go_language_data): Likewise.
2799 * language.c (unknown_language_data): Likewise.
2800 (auto_language_data): Likewise.
2801 * language.h (language_data): Delete la_get_compile_instance field.
2802 (language_defn::get_compile_instance): New member function.
2803 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
2804 initializer.
2805 * objc-lang.c (objc_language_data): Likewise.
2806 * opencl-lang.c (opencl_language_data): Likewise.
2807 * p-lang.c (pascal_language_data): Likewise.
2808 * rust-lang.c (rust_language_data): Likewise.
2809
4009ee92
AB
28102020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2811
2812 * ada-lang.c (ada_add_all_symbols): Update comment.
2813 (ada_iterate_over_symbols): Delete, move implementation to...
2814 (ada_language::iterate_over_symbols): ...here, a new member
2815 function, rewrite to use range based for loop.
2816 (ada_language_data): Delete la_iterate_over_symbols initializer.
2817 * c-lang.c (c_language_data): Likewise.
2818 (cplus_language_data): Likewise.
2819 (asm_language_data): Likewise.
2820 (minimal_language_data): Likewise.
2821 * d-lang.c (d_language_data): Likewise.
2822 * f-lang.c (f_language_data): Likewise.
2823 * go-lang.c (go_language_data): Likewise.
2824 * language.c (unknown_language_data): Likewise.
2825 (auto_language_data): Likewise.
2826 * language.h (language_data): Delete la_iterate_over_symbols field.
2827 (language_defn::iterate_over_symbols): New member function.
2828 (LA_ITERATE_OVER_SYMBOLS): Update.
2829 * linespec.c (iterate_over_all_matching_symtabs): Update.
2830 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
2831 initializer.
2832 * objc-lang.c (objc_language_data): Likewise.
2833 * opencl-lang.c (opencl_language_data): Likewise.
2834 * p-lang.c (pascal_language_data): Likewise.
2835 * rust-lang.c (rust_language_data): Likewise.
2836
54f4ca46
AB
28372020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2838
2839 * ada-lang.c (ada_language_data): Delete
2840 la_lookup_transparent_type initializer.
2841 * c-lang.c (c_language_data): Likewise.
2842 (cplus_language_data): Likewise.
2843 (cplus_language::lookup_transparent_type): New member function.
2844 (asm_language_data): Delete la_lookup_transparent_type
2845 initializer.
2846 (minimal_language_data): Likewise.
2847 * d-lang.c (d_language_data): Likewise.
2848 * f-lang.c (f_language_data): Likewise.
2849 * go-lang.c (go_language_data): Likewise.
2850 * language.c (unknown_language_data): Likewise.
2851 (auto_language_data): Likewise.
2852 * language.h (struct language_data): Delete
2853 la_lookup_transparent_type field.
2854 (language_defn::lookup_transparent_type): New member function.
2855 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
2856 initializer.
2857 * objc-lang.c (objc_language_data): Likewise.
2858 * opencl-lang.c (opencl_language_data): Likewise.
2859 * p-lang.c (pascal_language_data): Likewise.
2860 * rust-lang.c (rust_language_data): Likewise.
2861 * symtab.c (symbol_matches_domain): Update call.
2862
1fb314aa
AB
28632020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2864
2865 * ada-lang.c (ada_language_arch_info): Delete function, move
2866 implementation to...
2867 (ada_language::language_arch_info): ...here, a new member
2868 function.
2869 (ada_language_data): Delete la_language_arch_info.
2870 * c-lang.c (c_language_data): Likewise.
2871 (c_language::language_arch_info): New member function.
2872 (cplus_language_arch_info): Delete function, move
2873 implementation to...
2874 (cplus_language::language_arch_info): ...here, a new member
2875 function.
2876 (cplus_language_data): Delete la_language_arch_info.
2877 (asm_language_data): Likewise.
2878 (asm_language::language_arch_info): New member function.
2879 (minimal_language_data): Delete la_language_arch_info.
2880 (minimal_language::language_arch_info): New member function.
2881 * d-lang.c (d_language_arch_info): Delete function, move
2882 implementation to...
2883 (d_language::language_arch_info): ...here, a new member
2884 function.
2885 (d_language_data): Delete la_language_arch_info.
2886 * f-lang.c (f_language_arch_info): Delete function, move
2887 implementation to...
2888 (f_language::language_arch_info): ...here, a new member
2889 function.
2890 (f_language_data): Delete la_language_arch_info.
2891 * go-lang.c (go_language_arch_info): Delete function, move
2892 implementation to...
2893 (go_language::language_arch_info): ...here, a new member
2894 function.
2895 (go_language_data): Delete la_language_arch_info.
2896 * language.c (unknown_language_data): Likewise.
2897 (unknown_language::language_arch_info): New member function.
2898 (auto_language_data): Delete la_language_arch_info.
2899 (auto_language::language_arch_info): New member function.
2900 (language_gdbarch_post_init): Update call to
2901 la_language_arch_info.
2902 * language.h (language_data): Delete la_language_arch_info
2903 function pointer.
2904 (language_defn::language_arch_info): New function.
2905 * m2-lang.c (m2_language_arch_info): Delete function, move
2906 implementation to...
2907 (m2_language::language_arch_info): ...here, a new member
2908 function.
2909 (m2_language_data): Delete la_language_arch_info.
2910 * objc-lang.c (objc_language_arch_info): Delete function, move
2911 implementation to...
2912 (objc_language::language_arch_info): ...here, a new member
2913 function.
2914 (objc_language_data): Delete la_language_arch_info.
2915 * opencl-lang.c (opencl_language_arch_info): Delete function, move
2916 implementation to...
2917 (opencl_language::language_arch_info): ...here, a new member
2918 function.
2919 (opencl_language_data): Delete la_language_arch_info.
2920 * p-lang.c (pascal_language_arch_info): Delete function, move
2921 implementation to...
2922 (pascal_language::language_arch_info): ...here, a new member
2923 function.
2924 (pascal_language_data): Delete la_language_arch_info.
2925 * rust-lang.c (rust_language_arch_info): Delete function, move
2926 implementation to...
2927 (rust_language::language_arch_info): ...here, a new member
2928 function.
2929 (rust_language_data): Delete la_language_arch_info.
2930
48448202
AB
29312020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2932
2933 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
2934 initializer.
2935 * c-lang.c (c_language_data): Likewise.
2936 (cplus_language_data): Likewise.
2937 (cplus_language::pass_by_reference_info): New method.
2938 (asm_language_data): Delete la_pass_by_reference initializer.
2939 (minimal_language_data): Likewise.
2940 * cp-abi.c (cp_pass_by_reference): Remove use of
2941 default_pass_by_reference.
2942 * d-lang.c (d_language_data): Likewise.
2943 * f-lang.c (f_language_data): Likewise.
2944 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
2945 default_pass_by_reference.
2946 * go-lang.c (go_language_data): Likewise.
2947 * language.c (language_pass_by_reference): Update.
2948 (default_pass_by_reference): Delete.
2949 (unknown_language_data): Delete la_pass_by_reference
2950 initializer.
2951 (auto_language_data): Likewise.
2952 * language.h (struct language_data): Delete la_pass_by_reference
2953 field.
2954 (language_defn::pass_by_reference_info): New member function.
2955 (default_pass_by_reference): Delete declaration.
2956 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
2957 initializer.
2958 * objc-lang.c (objc_language_data): Likewise.
2959 * opencl-lang.c (opencl_language_data): Likewise.
2960 * p-lang.c (pascal_language_data): Likewise.
2961 * rust-lang.c (rust_language_data): Likewise.
2962
15e5fd35
AB
29632020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2964
2965 * ada-lang.c (ada_read_var_value): Delete function, move
2966 implementation to...
2967 (ada_language::read_var_value): ...here.
2968 (ada_language_data): Delete la_read_var_value initializer.
2969 * c-lang.c (c_language_data): Likewise.
2970 (cplus_language_data): Likewise.
2971 (minimal_language_data): Likewise.
2972 * d-lang.c (d_language_data): Likewise.
2973 * f-lang.c (f_language_data): Likewise.
2974 * findvar.c (default_read_var_value): Rename to...
2975 (language_defn::read_var_value): ...this.
2976 * findvar.c (read_var_value): Update header comment, and change to
2977 call member function instead of function pointer.
2978 * go-lang.c (go_language_data): Likewise.
2979 * language.c (unknown_language_data): Delete la_read_var_value
2980 initializer.
2981 (auto_language_data): Likewise.
2982 * language.h (struct language_data): Delete la_read_var_value
2983 field.
2984 (language_defn::read_var_value): New member function.
2985 (default_read_var_value): Delete declaration.
2986 * m2-lang.c (m2_language_data): Delete la_read_var_value
2987 initializer.
2988 * objc-lang.c (objc_language_data): Likewise.
2989 * opencl-lang.c (opencl_language_data): Likewise.
2990 * p-lang.c (pascal_language_data): Likewise.
2991 * rust-lang.c (rust_language_data): Likewise.
2992 * value.h (default_read_var_value): Delete declaration.
2993
5bd40f2a
AB
29942020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2995
2996 * ada-lang.c (ada_print_array_index): Delete function, move
2997 implementation to...
2998 (ada_language::print_array_index): ...here.
2999 (ada_language_data): Delete la_print_array_index initializer.
3000 * c-lang.c (c_language_data): Likewise.
3001 (cplus_language_data): Likewise.
3002 (minimal_language_data): Likewise.
3003 * d-lang.c (d_language_data): Likewise.
3004 * f-lang.c (f_language_data): Likewise.
3005 * go-lang.c (go_language_data): Likewise.
3006 * language.c (default_print_array_index): Delete function, move
3007 implementation to...
3008 (language_defn::print_array_index): ...here.
3009 (unknown_language_data): Delete la_print_array_index initializer.
3010 (auto_language_data): Likewise.
3011 * language.h (struct language_data): Delete la_print_array_index
3012 field.
3013 (language_defn::print_array_index): New member function.
3014 (LA_PRINT_ARRAY_INDEX): Update.
3015 (default_print_array_index): Delete declaration.
3016 * m2-lang.c (m2_language_data): Delete la_print_array_index
3017 initializer.
3018 * objc-lang.c (objc_language_data): Likewise.
3019 * opencl-lang.c (opencl_language_data): Likewise.
3020 * p-lang.c (pascal_language_data): Likewise.
3021 * rust-lang.c (rust_language_data): Likewise.
3022
0874fd07
AB
30232020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3024
3025 * gdb/ada-lang.c (ada_language_defn): Convert to...
3026 (ada_language_data): ...this.
3027 (class ada_language): New class.
3028 (ada_language_defn): New static global.
3029 * gdb/c-lang.c (c_language_defn): Convert to...
3030 (c_language_data): ...this.
3031 (class c_language): New class.
3032 (c_language_defn): New static global.
3033 (cplus_language_defn): Convert to...
3034 (cplus_language_data): ...this.
3035 (class cplus_language): New class.
3036 (cplus_language_defn): New static global.
3037 (asm_language_defn): Convert to...
3038 (asm_language_data): ...this.
3039 (class asm_language): New class.
3040 (asm_language_defn): New static global.
3041 (minimal_language_defn): Convert to...
3042 (minimal_language_data): ...this.
3043 (class minimal_language): New class.
3044 (minimal_language_defn): New static global.
3045 * gdb/d-lang.c (d_language_defn): Convert to...
3046 (d_language_data): ...this.
3047 (class d_language): New class.
3048 (d_language_defn): New static global.
3049 * gdb/f-lang.c (f_language_defn): Convert to...
3050 (f_language_data): ...this.
3051 (class f_language): New class.
3052 (f_language_defn): New static global.
3053 * gdb/go-lang.c (go_language_defn): Convert to...
3054 (go_language_data): ...this.
3055 (class go_language): New class.
3056 (go_language_defn): New static global.
3057 * gdb/language.c (unknown_language_defn): Remove declaration.
3058 (current_language): Initialize to nullptr, real initialization is
3059 moved to _initialize_language.
3060 (languages): Delete global.
3061 (language_defn::languages): Define.
3062 (set_language_command): Use language_defn::languages.
3063 (set_language): Likewise.
3064 (range_error): Likewise.
3065 (language_enum): Likewise.
3066 (language_def): Likewise.
3067 (add_set_language_command): Use language_def::languages for the
3068 language list, and language_def to lookup language pointers.
3069 (skip_language_trampoline): Use language_defn::languages.
3070 (unknown_language_defn): Convert to...
3071 (unknown_language_data): ...this.
3072 (class unknown_language): New class.
3073 (unknown_language_defn): New static global.
3074 (auto_language_defn): Convert to...
3075 (auto_language_data): ...this.
3076 (class auto_language): New class.
3077 (auto_language_defn): New static global.
3078 (language_gdbarch_post_init): Use language_defn::languages.
3079 (_initialize_language): Initialize current_language.
3080 * gdb/language.h (struct language_defn): Rename to...
3081 (struct language_data): ...this.
3082 (struct language_defn): New.
3083 (auto_language_defn): Delete.
3084 (unknown_language_defn): Delete.
3085 (minimal_language_defn): Delete.
3086 (ada_language_defn): Delete.
3087 (asm_language_defn): Delete.
3088 (c_language_defn): Delete.
3089 (cplus_language_defn): Delete.
3090 (d_language_defn): Delete.
3091 (f_language_defn): Delete.
3092 (go_language_defn): Delete.
3093 (m2_language_defn): Delete.
3094 (objc_language_defn): Delete.
3095 (opencl_language_defn): Delete.
3096 (pascal_language_defn): Delete.
3097 (rust_language_defn): Delete.
3098 * gdb/m2-lang.c (m2_language_defn): Convert to...
3099 (m2_language_data): ...this.
3100 (class m2_language): New class.
3101 (m2_language_defn): New static global.
3102 * gdb/objc-lang.c (objc_language_defn): Convert to...
3103 (objc_language_data): ...this.
3104 (class objc_language): New class.
3105 (objc_language_defn): New static global.
3106 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
3107 (opencl_language_data): ...this.
3108 (class opencl_language): New class.
3109 (opencl_language_defn): New static global.
3110 * gdb/p-lang.c (pascal_language_defn): Convert to...
3111 (pascal_language_data): ...this.
3112 (class pascal_language): New class.
3113 (pascal_language_defn): New static global.
3114 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
3115 language pointer, update comment format.
3116 * gdb/rust-lang.c (rust_language_defn): Convert to...
3117 (rust_language_data): ...this.
3118 (class rust_language): New class.
3119 (rust_language_defn): New static global.
3120
1313c56e
AB
31212020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
3122
3123 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
3124 member variable.
3125 <m_stmt_at_address>: New member variable.
3126 (lnp_state_machine::record_line): Don't record some lines, update
3127 tracking of is_stmt at the same address.
3128 (lnp_state_machine::lnp_state_machine): Initialise new member
3129 variables.
3130
b7ed9f3d
ST
31312020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
3132
3133 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
3134 "-include gnu-nat-mig.h".
3135 * gnu-nat-mig.h: New file.
3136 * gnu-nat.c: Include "gnu-nat-mig.h".
3137 (exc_server, msg_reply_server, notify_server,
3138 process_reply_server): Remove declarations.
3139
14a8ad62
ST
31402020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3141
3142 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
3143 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
3144 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
3145 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
3146 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
3147 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
3148 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
3149 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
3150 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
3151 to gnu_nat_target class.
3152 * gnu-nat.c: Likewise.
3153 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
3154 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
3155 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
3156 object.
3157 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
3158 instead of `gnu_target'.
3159
0af5e106
ST
31602020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3161
3162 * i386-gnu-tdep.c: Include "gdbcore.h"
3163 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
3164 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
3165 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
3166 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
3167 i386_gnu_sigcontext_addr): New functions
3168 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
3169 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
3170 tdep.
3171
078f2fc9
ST
31722020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3173
3174 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
3175 before fork_inferior call. Avoid calling it if target_is_pushed returns
3176 true.
3177
53dff92c
ST
31782020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3179
3180 * gnu-nat.h (gnu_target): New variable declaration.
3181 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
3182 gnu_target.
3183 * gnu-nat.c (gnu_target): New variable.
3184 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
3185 add_thread_silent, and add_thread calls.
3186 (gnu_nat_target::create_inferior): Pass gnu_target to
3187 add_thread_silent, thread_change_ptid call.
3188 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
3189 call.
3190
5a8b8627
ST
31912020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3192
3193 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
3194 (gnu_nat_target::find_memory_regions): Remove unused
3195 `old_address' variable.
3196
366f550a
ST
31972020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3198
3199 * gnu-nat.c: Include "gdbarch.h".
3200
f14871bf
ST
32012020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3202
3203 * reply_mig_hack.awk (Error return): Cast function through
3204 void *, to bypass compiler function call check.
3205
c6887cfb
ST
32062020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3207
3208 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
3209 $(srcdir)/reply_mig_hack.awk.
3210
6930bffe
ST
32112020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3212
3213 * gnu-nat.h (gnu_debug_flag): Set type to bool.
3214
112c22ed
JG
32152020-05-30 Jonny Grant <jg@jguk.org>
3216
3217 * configure.ac (ACX_BUGURL): change bug URL to https.
3218
f68f85b5
PA
32192020-05-30 Pedro Alves <palves@redhat.com>
3220
3221 * cp-support.c (replace_typedefs_template): New.
3222 (replace_typedefs_qualified_name): Handle
3223 DEMANGLE_COMPONENT_TEMPLATE.
3224
976ca316
SM
32252020-05-29 Simon Marchi <simon.marchi@efficios.com>
3226
3227 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
3228 dwarf2/index-cache.h, dwarf2/index-write.c,
3229 dwarf2/index-write.h, dwarf2/line-header.c,
3230 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
3231 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
3232 variables and fields from `dwarf2_per_objfile` to just
3233 `per_objfile` throughout.
3234
989ade05
SM
32352020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
3236
3237 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3238 <push_dwarf_reg_entry_value>: Add comment.
3239
c47bae85
KB
32402020-05-28 Kevin Buettner <kevinb@redhat.com>
3241 Keith Seitz <keiths@redhat.com>
3242
3243 * python/python.c (do_start_initialization): Call PyEval_SaveThread
3244 instead of PyEval_ReleaseLock.
3245 (class gdbpy_gil): Move to earlier in file.
3246 (finalize_python): Set gdb_python_initialized.
3247 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
3248 when not initialized.
3249
44486dcf
SM
32502020-05-28 Simon Marchi <simon.marchi@efficios.com>
3251
3252 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3253 <push_dwarf_reg_entry_value>: Remove assert. Override
3254 per_objfile with caller_per_objfile.
3255
f030440d
TV
32562020-05-28 Tom de Vries <tdevries@suse.de>
3257
3258 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
3259 PR gold/15646 workaround to symbol kind "type".
3260
f0fbb768
TT
32612020-05-27 Tom Tromey <tromey@adacore.com>
3262
3263 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
3264
af0b2a3e
TT
32652020-05-27 Tom Tromey <tromey@adacore.com>
3266
3267 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
3268 Use htab_find_with_hash.
3269 <add_abbrev>: Remove "abbrev_number" parameter.
3270 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
3271 "abbrev_number" parameter. Use htab_find_slot_with_hash.
3272 (hash_abbrev): Add comment.
3273 (abbrev_table::lookup_abbrev): Move to header file.
3274 (abbrev_table::read): Update.
3275
7d00ffec
TT
32762020-05-27 Tom Tromey <tromey@adacore.com>
3277
3278 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
3279 method.
3280 <canonical_name>: New member.
3281 <raw_name>: Rename from "name".
3282 (partial_die_info): Initialize canonical_name.
3283 (scan_partial_symbols): Check raw_name.
3284 (partial_die_parent_scope, partial_die_full_name)
3285 (add_partial_symbol, add_partial_subprogram)
3286 (add_partial_enumeration, load_partial_dies): Use "name" method.
3287 (partial_die_info::name): New method.
3288 (partial_die_info::read, guess_partial_die_structure_name)
3289 (partial_die_info::fixup): Update.
3290
697bba18
TT
32912020-05-27 Tom Tromey <tromey@adacore.com>
3292
3293 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
3294 <get_ref_die_offset>: Inline.
3295 <get_ref_die_offset_complaint>: New method.
3296 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
3297 (attribute::get_ref_die_offset_complaint): Rename from
3298 get_ref_die_offset. Just issue complaint.
3299
c17ace43
HD
33002020-05-27 Hannes Domani <ssbssa@yahoo.de>
3301
3302 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
3303
96445f0b
HD
33042020-05-27 Hannes Domani <ssbssa@yahoo.de>
3305
3306 * exec.c (exec_file_attach): Use errno value of first openp failure.
3307
ac637ec3
HD
33082020-05-27 Hannes Domani <ssbssa@yahoo.de>
3309
3310 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
3311 Don't close thread handle.
3312
17ee85fc
TT
33132020-05-27 Tom Tromey <tom@tromey.com>
3314 Simon Marchi <simon.marchi@efficios.com>
3315
3316 * objfiles.h (struct objfile) <partial_symtabs>: Now a
3317 shared_ptr.
3318 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
3319 member.
3320 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
3321 dwarf2_per_bfd_objfile_data_key>: New globals.
3322 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
3323 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
3324 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
3325 shared.
3326 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
3327 short-circuit when sharing.
3328 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
3329 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
3330
39b16f87
SM
33312020-05-27 Simon Marchi <simon.marchi@efficios.com>
3332
3333 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
3334 to...
3335 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
3336 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
3337
fcf23d5b
SM
33382020-05-27 Simon Marchi <simon.marchi@efficios.com>
3339
3340 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
3341 build_name_components, find_name_components_bounds>:
3342 Add per_objfile parameter.
3343 (struct mapped_index) <symbol_name_at>: Likewise.
3344 (struct mapped_debug_names): Remove constructor.
3345 <dwarf2_per_objfile>: Remove field.
3346 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
3347 (mapped_index_base::find_name_components_bounds,
3348 mapped_index_base::build_name_components,
3349 dw2_expand_symtabs_matching_symbol): Likewise.
3350 (class mock_mapped_index) <symbol_name_at>: Likewise.
3351 (check_match): Likewise.
3352 (check_find_bounds_finds): Likewise.
3353 (test_mapped_index_find_name_component_bounds): Update.
3354 (CHECK_MATCH): Update.
3355 (dw2_expand_symtabs_matching): Update.
3356 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
3357 per_objfile parameter.
3358 <find_vec_in_debug_names>: Likewise.
3359 <m_per_objfile>: New field.
3360 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
3361 parameter.
3362 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
3363 (dw2_debug_names_iterator::next): Update.
3364 (dw2_debug_names_lookup_symbol): Update.
3365 (dw2_debug_names_expand_symtabs_for_function): Update.
3366 (dw2_debug_names_map_matching_symbols): Update.
3367 (dw2_debug_names_expand_symtabs_matching): Update.
3368 (dwarf2_read_debug_names): Update.
3369
7188ed02
SM
33702020-05-27 Simon Marchi <simon.marchi@efficios.com>
3371
3372 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
3373 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
3374 move to dwarf2_per_objfile.
3375 <read_in_chain>: Remove.
3376 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
3377 remove_all_cus, age_comp_units>: New methods.
3378 <m_dwarf2_cus>: New member.
3379 (struct dwarf2_per_cu_data) <cu>: Remove.
3380 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
3381 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
3382 moved to methods of dwarf2_per_objfile.
3383 (dwarf2_clear_marks): Remove.
3384 (dwarf2_queue_item::~dwarf2_queue_item): Update.
3385 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
3386 (dwarf2_per_bfd::free_cached_comp_units): Remove.
3387 (dwarf2_per_objfile::remove_all_cus): New.
3388 (class free_cached_comp_units) <~free_cached_comp_units>:
3389 Update.
3390 (load_cu): Update.
3391 (dw2_do_instantiate_symtab): Adjust.
3392 (fill_in_sig_entry_from_dwo_entry): Adjust.
3393 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3394 (cutu_reader::cutu_reader): Likewise.
3395 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
3396 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
3397 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
3398 and dwarf2_per_objfile::age_comp_units.
3399 (load_partial_comp_unit): Update.
3400 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
3401 (process_queue): Likewise.
3402 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
3403 backlink.
3404 (dwarf2_read_addr_index): Likewise.
3405 (follow_die_offset): Likewise.
3406 (dwarf2_fetch_die_loc_sect_off): Likewise.
3407 (dwarf2_fetch_constant_bytes): Likewise.
3408 (dwarf2_fetch_die_type_sect_off): Likewise.
3409 (follow_die_sig_1): Likewise.
3410 (load_full_type_unit): Likewise.
3411 (read_signatured_type): Likewise.
3412 (dwarf2_cu::dwarf2_cu): Don't set cu field.
3413 (dwarf2_cu::~dwarf2_cu): Remove.
3414 (dwarf2_per_objfile::get_cu): New.
3415 (dwarf2_per_objfile::set_cu): New.
3416 (age_cached_comp_units): Rename to...
3417 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
3418 to std::unordered_map.
3419 (free_one_cached_comp_unit): Rename to...
3420 (dwarf2_per_objfile::remove_cu): ... this. Adjust
3421 to std::unordered_map.
3422 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
3423 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
3424 a dwarf2_per_objfile in data.
3425 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
3426 (dwarf2_clear_marks): Remove.
3427
2e671100
SM
34282020-05-27 Simon Marchi <simon.marchi@efficios.com>
3429
3430 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
3431 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
3432 (init_tu_and_read_dwo_dies): Likewise.
3433 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
3434 (cutu_reader::cutu_reader): Likewise.
3435 (load_partial_comp_unit): Likewise.
3436 (process_psymtab_comp_unit): Update.
3437 (build_type_psymtabs_1): Update.
3438 (process_skeletonless_type_unit): Update.
3439 (load_full_comp_unit): Update.
3440 (find_partial_die): Update.
3441 (dwarf2_read_addr_index): Update.
3442 (read_signatured_type): Update.
3443
2e6a9f79
SM
34442020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3445
3446 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
3447 m_header_read_in>: New fields.
3448 <get_header>: New method.
3449 * dwarf2/read.c (per_cu_header_read_in): Remove.
3450 (dwarf2_per_cu_data::get_header): New.
3451 (dwarf2_per_cu_data::addr_size): Update.
3452 (dwarf2_per_cu_data::offset_size): Update.
3453 (dwarf2_per_cu_data::ref_addr_size): Update.
3454
1b555f17
SM
34552020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3456
3457 * dwarf2/read.c (load_cu): Return dwarf2_cu.
3458 (dw2_do_instantiate_symtab): Update.
3459 (queue_and_load_all_dwo_tus): Change parameter from
3460 dwarf2_per_cu_data to dwarf2_cu.
3461 (dwarf2_fetch_die_loc_sect_off): Update.
3462 (dwarf2_fetch_constant_bytes): Update.
3463 (dwarf2_fetch_die_type_sect_off): Update.
3464
8fc0b21d
SM
34652020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3466
3467 * dwarf2/read.c (process_full_comp_unit,
3468 process_full_type_unit): Remove per_cu, per_objfile paramters.
3469 Add dwarf2_cu parameter.
3470 (process_queue): Update.
3471
168c9250
SM
34722020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3473
3474 * dwarf2/read.c (create_cu_from_index_list): Replace
3475 dwarf2_per_objfile parameter with dwarf2_per_bfd.
3476 (create_cus_from_index_list): Likewise.
3477 (create_cus_from_index): Likewise.
3478 (create_signatured_type_table_from_index): Likewise.
3479 (create_cus_from_debug_names_list): Likewise.
3480 (create_cus_from_debug_names): Likewise.
3481 (dwarf2_read_gdb_index): Update.
3482 (dwarf2_read_debug_names): Update.
3483
e286671b
TT
34842020-05-27 Tom Tromey <tom@tromey.com>
3485 Simon Marchi <simon.marchi@efficios.com>
3486
3487 * dwarf2/read.h (struct dwarf2_per_objfile)
3488 <get_type_for_signatured_type, set_type_for_signatured_type>:
3489 New methods.
3490 <m_type_map>: New member.
3491 (struct signatured_type) <type>: Remove.
3492 * dwarf2/read.c
3493 (dwarf2_per_objfile::get_type_for_signatured_type,
3494 dwarf2_per_objfile::set_type_for_signatured_type): New.
3495 (get_signatured_type): Use new methods.
3496
8adb8487
TT
34972020-05-27 Tom Tromey <tom@tromey.com>
3498 Simon Marchi <simon.marchi@efficios.com>
3499
3500 * dwarf2/read.h (struct type_unit_group_unshareable): New.
3501 (struct dwarf2_per_objfile) <type_units>: New member.
3502 <get_type_unit_group_unshareable>: New method.
3503 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
3504 num_symtabs, symtabs>: Remove; move to
3505 type_unit_group_unshareable.
3506 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
3507 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
3508 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
3509
127bbf4b
SM
35102020-05-27 Simon Marchi <simon.marchi@efficios.com>
3511
3512 * dwarf2/read.h (struct dwarf2_per_cu_data):
3513 <dwarf2_per_objfile>: Remove.
3514 * dwarf2/read.c (create_cu_from_index_list): Don't assign
3515 dwarf2_per_objfile.
3516 (create_signatured_type_table_from_index): Likewise.
3517 (create_signatured_type_table_from_debug_names): Likewise.
3518 (create_debug_type_hash_table): Likewise.
3519 (fill_in_sig_entry_from_dwo_entry): Likewise.
3520 (create_type_unit_group): Likewise.
3521 (read_comp_units_from_section): Likewise.
3522 (create_cus_hash_table): Likewise.
3523
f6e649dd
SM
35242020-05-27 Simon Marchi <simon.marchi@efficios.com>
3525
3526 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
3527 dwarf2_per_cu_data::dwarf2_per_objfile.
3528 (compute_compunit_symtab_includes): Likewise.
3529 (dwarf2_cu::start_symtab): Likewise.
3530
aa66c379
SM
35312020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3532
3533 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
3534 parameter.
3535 * dwarf2/read.c (get_die_type_at_offset): Likewise.
3536 (read_namespace_alias): Update.
3537 (lookup_die_type): Update.
3538 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
3539 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
3540 Update.
3541 (disassemble_dwarf_expression): Update.
3542
120ce1b5
SM
35432020-05-27 Simon Marchi <simon.marchi@efficios.com>
3544
3545 * dwarf2/read.h (struct dwarf2_queue_item): Add
3546 dwarf2_per_objfile parameter, assign new parameter.
3547 <per_objfile>: New field.
3548 * dwarf2/read.c (free_one_cached_comp_unit): Add
3549 dwarf2_per_objfile parameter.
3550 (queue_comp_unit): Likewise.
3551 (dw2_do_instantiate_symtab): Update.
3552 (process_psymtab_comp_unit): Update.
3553 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
3554 (process_imported_unit_die): Update.
3555 (queue_and_load_dwo_tu): Update.
3556 (follow_die_offset): Update.
3557 (follow_die_sig_1): Update.
3558
9f47c707
SM
35592020-05-27 Simon Marchi <simon.marchi@efficios.com>
3560
3561 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
3562 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
3563 (read_call_site_scope): Assign per_objfile.
3564 (dwarf2_per_cu_data::objfile): Remove.
3565 * gdbtypes.h (struct call_site) <per_objfile>: New member.
3566 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
3567 dwarf2_per_objfile parameter.
3568 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
3569 dwarf2_per_objfile parameter.
3570 (dwarf_expr_reg_to_entry_parameter): Add output
3571 dwarf2_per_objfile parameter.
3572 (locexpr_get_frame_base): Update.
3573 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
3574 <push_dwarf_reg_entry_value>: Update.
3575 <call_site_to_target_addr>: Update.
3576 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
3577 parameter.
3578 (value_of_dwarf_reg_entry): Update.
3579 (rw_pieced_value): Update.
3580 (indirect_synthetic_pointer): Update.
3581 (dwarf2_evaluate_property): Update.
3582 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
3583 parameter.
3584 (locexpr_read_variable): Update.
3585 (locexpr_get_symbol_read_needs): Update.
3586 (loclist_read_variable): Update.
3587
14095eb3
SM
35882020-05-27 Simon Marchi <simon.marchi@efficios.com>
3589
3590 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
3591 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3592 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
3593 parameter.
3594 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
3595 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3596 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
3597 parameter.
3598 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
3599 sect_variable_value): Add dwarf2_per_objfile parameter.
3600 (class dwarf_evaluate_loc_desc) <dwarf_call,
3601 dwarf_variable_value>: Update.
3602 (fetch_const_value_from_synthetic_pointer): Add
3603 dwarf2_per_objfile parameter.
3604 (fetch_const_value_from_synthetic_pointer): Update.
3605 (coerced_pieced_ref): Update.
3606 (class symbol_needs_eval_context) <dwarf_call,
3607 dwarf_variable_value>: Update.
3608 (dwarf2_compile_expr_to_ax): Update.
3609
3c3cd3d4
SM
36102020-05-27 Simon Marchi <simon.marchi@efficios.com>
3611
3612 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
3613 parameter.
3614 (dwarf2_evaluate_loc_desc_full): Update.
3615
82ca3f51
SM
36162020-05-27 Simon Marchi <simon.marchi@efficios.com>
3617
3618 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
3619 parameter.
3620 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
3621 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
3622 dwarf2_per_objfile parameter.
3623 (decode_debug_loc_dwo_addresses): Likewise.
3624 (dwarf2_find_location_expression): Update.
3625 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
3626 (locexpr_describe_location_piece): Add dwarf2_per_objfile
3627 parameter.
3628 (disassemble_dwarf_expression): Add dwarf2_per_objfile
3629 parameter.
3630 (locexpr_describe_location_1): Likewise.
3631 (locexpr_describe_location): Update.
3632
4b167ea1
SM
36332020-05-27 Simon Marchi <simon.marchi@efficios.com>
3634
3635 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
3636 Remove.
3637 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
3638 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
3639 (dwarf2_compile_property_to_c): Update.
3640 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
3641 use text offset from objfile.
3642 (locexpr_tracepoint_var_ref): Update.
3643 (locexpr_generate_c_location): Update.
3644 (loclist_describe_location): Update.
3645 (loclist_tracepoint_var_ref): Update.
3646 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
3647 dwarf2_per_objfile parameter.
3648 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
3649 use text offset from objfile.
3650 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
3651
89b07335
SM
36522020-05-27 Simon Marchi <simon.marchi@efficios.com>
3653
3654 * dwarf2/expr.h (struct dwarf_expr_context)
3655 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
3656 <offset>: Remove.
3657 <per_objfile>: New member.
3658 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
3659 dwarf2_per_objfile parameter. Don't set offset, set
3660 per_objfile.
3661 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
3662 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
3663 a dwarf2_per_objfile object instead of an offset.
3664 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
3665 constructor.
3666 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
3667 to dwarf2_expr_executor constructor. Don't set offset.
3668 (dwarf2_fetch_cfa_info): Update.
3669 (struct dwarf2_frame_cache) <text_offset>: Remove.
3670 <per_objfile>: New field.
3671 (dwarf2_frame_cache): Update.
3672 (dwarf2_frame_prev_register): Update.
3673 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3674 <dwarf_evaluate_loc_desc>: Add constructor.
3675 (dwarf2_evaluate_loc_desc_full): Update.
3676 (dwarf2_locexpr_baton_eval): Update.
3677 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
3678 Add constructor.
3679 (dwarf2_loc_desc_get_symbol_read_needs): Update.
3680
293e7e51
SM
36812020-05-27 Simon Marchi <simon.marchi@efficios.com>
3682
3683 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
3684 addr_sized_int_type>: Move to dwarf2_cu.
3685 <int_type>: Move to dwarf2_per_objfile.
3686 (struct dwarf2_per_objfile) <int_type>: Move here.
3687 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
3688 addr_sized_int_type>: Move here.
3689 (read_func_scope): Update.
3690 (read_array_type): Update.
3691 (read_tag_string_type): Update.
3692 (attr_to_dynamic_prop): Update.
3693 (dwarf2_per_cu_data::int_type): Rename to...
3694 (dwarf2_per_objfile::int_type): ... this.
3695 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
3696 (dwarf2_cu::addr_sized_int_type): ... this.
3697 (read_subrange_type): Update.
3698 (dwarf2_per_cu_data::addr_type): Rename to...
3699 (dwarf2_cu::addr_type): ... this.
3700 (set_die_type): Update.
3701
64874a40
SM
37022020-05-27 Simon Marchi <simon.marchi@efficios.com>
3703
3704 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
3705 data through per_cu->cu.
3706
4ab09049
SM
37072020-05-27 Simon Marchi <simon.marchi@efficios.com>
3708
3709 * dwarf2/read.c (lookup_dwo_comp_unit): Change
3710 dwarf2_per_cu_data parameter fo dwarf2_cu.
3711 (lookup_dwo_type_unit): Likewise.
3712 (read_cutu_die_from_dwo): Likewise.
3713 (lookup_dwo_unit): Likewise.
3714 (open_and_init_dwo_file): Likewise.
3715 (lookup_dwo_cutu): Likewise.
3716 (lookup_dwo_comp_unit): Likewise.
3717 (lookup_dwo_type_unit): Likewise.
3718 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3719 (cutu_reader::cutu_reader): Update.
3720
47b14e86
SM
37212020-05-27 Simon Marchi <simon.marchi@efficios.com>
3722
3723 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
3724 parameter.
3725 (process_full_type_unit): Likewise.
3726 (process_queue): Update.
3727
43182c09
SM
37282020-05-27 Simon Marchi <simon.marchi@efficios.com>
3729
3730 * dwarf2/read.c (recursively_compute_inclusions): Add
3731 dwarf2_per_objfile parameter.
3732 (compute_compunit_symtab_includes): Likewise.
3733 (process_cu_includes): Update.
3734
7aa104c4
SM
37352020-05-27 Simon Marchi <simon.marchi@efficios.com>
3736
3737 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
3738 parameter.
3739 (create_type_unit_group): Update.
3740 (process_psymtab_comp_unit_reader): Update.
3741 (build_type_psymtabs_reader): Update.
3742
e3beb21d
SM
37432020-05-27 Simon Marchi <simon.marchi@efficios.com>
3744
3745 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
3746 object through m_this_cu->cu.
3747
d460f660
SM
37482020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3749
3750 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
3751 the info parameter.
3752 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
3753
ab432490
SM
37542020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3755
3756 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
3757 per_objfile parameter.
3758 (load_full_type_unit): Add per_objfile parameter.
3759 (read_signatured_type): Likewise.
3760 (load_full_comp_unit): Likewise.
3761 (load_cu): Likewise.
3762 (dw2_do_instantiate_symtab): Likewise.
3763 (dw2_get_file_names): Likewise.
3764 (dw2_map_symtabs_matching_filename): Update.
3765 (dw_expand_symtabs_matching_file_matcher): Update.
3766 (dw2_map_symbol_filenames): Update.
3767 (process_psymtab_comp_unit): Add per_objfile parameter.
3768 (build_type_psymtabs_1): Update.
3769 (process_skeletonless_type_unit): Update.
3770 (dwarf2_build_psymtabs_hard): Update.
3771 (load_partial_comp_unit): Add per_objfile parameter.
3772 (scan_partial_symbols): Update.
3773 (load_full_comp_unit): Add per_objfile parameter.
3774 (process_imported_unit_die): Update.
3775 (create_cus_hash_table): Update.
3776 (find_partial_die): Update.
3777 (dwarf2_read_addr_index): Update.
3778 (follow_die_offset): Update.
3779 (dwarf2_fetch_die_loc_sect_off): Update.
3780 (dwarf2_fetch_constant_bytes): Update.
3781 (dwarf2_fetch_die_type_sect_off): Update.
3782 (follow_die_sig_1): Update.
3783 (load_full_type_unit): Add per_objfile parameter.
3784 (read_signatured_type): Likewise.
3785
313bad1b
SM
37862020-05-27 Simon Marchi <simon.marchi@efficios.com>
3787
3788 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
3789 of objfile_name.
3790
c3699833
SM
37912020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3792
3793 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
3794 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
3795 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
3796 field.
3797 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
3798 (create_cus_from_index): Update.
3799 (dwarf2_read_gdb_index): Update.
3800 (create_cus_from_debug_names): Update.
3801 (dwarf2_read_debug_names): Update.
3802 (get_abbrev_section_for_cu): Update.
3803 (create_all_comp_units): Update.
3804 (read_attribute_value): Update.
3805 (get_debug_line_section): Update.
3806 * dwarf2/index-cache.c (index_cache::store): Update.
3807 * dwarf2/index-write.c (save_gdb_index_command): Update.
3808 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
3809
1859c670
SM
38102020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3811
3812 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
3813 member.
3814 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
3815 dwarf2_per_cu_data::per_bfd.
3816 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
3817 (create_type_unit_group): Likewise.
3818 (queue_comp_unit): Remove reference to
3819 per_cu->dwarf2_per_objfile.
3820 (maybe_queue_comp_unit): Likewise.
3821 (fill_in_sig_entry_from_dwo_entry): Assign new field.
3822 (create_cus_hash_table): Assign new field.
3823
5e22e966
SM
38242020-05-27 Simon Marchi <simon.marchi@efficios.com>
3825
3826 * dwarf2/read.c: Replace
3827 dwarf2_cu->per_cu->dwarf2_per_objfile references with
3828 dwarf2_cu->per_objfile throughout.
3829
97a1449a
SM
38302020-05-27 Simon Marchi <simon.marchi@efficios.com>
3831
3832 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
3833 parameter, don't use per_cu->dwarf2_per_objfile.
3834 (dw2_instantiate_symtab): Likewise.
3835 (dw2_find_last_source_symtab): Update.
3836 (dw2_map_expand_apply): Update.
3837 (dw2_lookup_symbol): Update.
3838 (dw2_expand_symtabs_for_function): Update.
3839 (dw2_expand_all_symtabs): Update.
3840 (dw2_expand_symtabs_with_fullname): Update.
3841 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
3842 don't use per_cu->dwarf2_per_objfile.
3843 (dw2_expand_marked_cus): Update.
3844 (dw2_find_pc_sect_compunit_symtab): Update.
3845 (dw2_debug_names_lookup_symbol): Update.
3846 (dw2_debug_names_expand_symtabs_for_function): Update.
3847 (dw2_debug_names_map_matching_symbols): Update.
3848 (dwarf2_psymtab::expand_psymtab): Update.
3849
9e021579
SM
38502020-05-27 Simon Marchi <simon.marchi@efficios.com>
3851
3852 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
3853 <per_objfile>: New member.
3854 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
3855 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
3856 call to dwarf2_cu.
3857 (cutu_reader::cutu_reader): Update.
3858 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
3859
ae090bdb
SM
38602020-05-27 Simon Marchi <simon.marchi@efficios.com>
3861
3862 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
3863 struct dwarf2_per_objfile.
3864 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
3865 dwarf2_per_bfd.
3866 * dwarf2/read.c (set_die_type): Update.
3867 (get_die_type_at_offset): Update.
3868
af758d11
SM
38692020-05-27 Tom Tromey <tom@tromey.com>
3870 Simon Marchi <simon.marchi@efficios.com>
3871
3872 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
3873 method.
3874 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
3875 get_symtab, set_symtab>: New methods.
3876 <m_symtabs>: New field.
3877 (struct dwarf2_psymtab): Derive from partial_symtab.
3878 <readin_p, get_compunit_symtab>: Declare methods.
3879 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
3880 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
3881 New methods.
3882 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
3883 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
3884 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
3885 (dw2_symtab_iter_next, dw2_print_stats)
3886 (dw2_expand_symtabs_with_fullname)
3887 (dw2_expand_symtabs_matching_one)
3888 (dw_expand_symtabs_matching_file_matcher)
3889 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
3890 (dw2_debug_names_iterator::next)
3891 (dw2_debug_names_map_matching_symbols)
3892 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
3893 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
3894 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
3895 New methods.
3896 (get_compunit_symtab, process_full_comp_unit)
3897 (process_full_type_unit): Update.
3898 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
3899
5989a64e
SM
39002020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3901
3902 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
3903 then introduce a new dwarf2_per_objfile type.
3904 <read_line_string>: Move to the new dwarf2_per_objfile type.
3905 <objfile>: Likewise.
3906 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
3907 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
3908 dwarf2_per_objfile->per_bfd.
3909 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
3910 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
3911 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
3912 (dwarf2_per_bfd::free_cached_comp_units): ... this.
3913 (dwarf2_has_info): Allocate dwarf2_per_bfd.
3914 (dwarf2_per_objfile::locate_sections): Rename to...
3915 (dwarf2_per_bfd::locate_sections): ... this.
3916 (dwarf2_per_objfile::get_cutu): Rename to...
3917 (dwarf2_per_bfd::get_cutu): ... this.
3918 (dwarf2_per_objfile::get_cu): Rename to...
3919 (dwarf2_per_bfd::get_cu): ... this.
3920 (dwarf2_per_objfile::get_tu): Rename to...
3921 (dwarf2_per_bfd::get_tu): ... this.
3922 (dwarf2_per_objfile::allocate_per_cu): Rename to...
3923 (dwarf2_per_bfd::allocate_per_cu): ... this.
3924 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
3925 (dwarf2_per_bfd::allocate_signatured_type): ... this.
3926 (get_gdb_index_contents_ftype): Change parameter from
3927 dwarf2_per_objfile to dwarf2_per_bfd.
3928 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
3929 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
3930
a50264ba
TT
39312020-05-27 Tom Tromey <tom@tromey.com>
3932 Simon Marchi <simon.marchi@efficios.com>
3933
3934 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
3935 (allocate_piece_closure): Set "per_objfile" member.
3936 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
3937 (locexpr_describe_location, loclist_describe_location): Use new
3938 member.
3939 * dwarf2/read.c (read_call_site_scope)
3940 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
3941 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
3942 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
3943 handle_data_member_location): Set per_objfile member.
3944 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
3945 member.
3946 (struct dwarf2_loclist_baton) <per_objfile>: New member.
3947
d3473f0c
TT
39482020-05-27 Tom Tromey <tom@tromey.com>
3949
3950 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
3951 allocate_signatured_type>: Declare new methods.
3952 <m_num_psymtabs>: New member.
3953 (struct dwarf2_per_cu_data) <index>: New member.
3954 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
3955 (dwarf2_per_objfile::allocate_signatured_type): New methods.
3956 (create_cu_from_index_list): Use allocate_per_cu.
3957 (create_signatured_type_table_from_index)
3958 (create_signatured_type_table_from_debug_names)
3959 (create_debug_type_hash_table, add_type_unit)
3960 (read_comp_units_from_section): Use allocate_signatured_type.
3961
5717c425
TT
39622020-05-27 Tom Tromey <tom@tromey.com>
3963
3964 * psymtab.c (partial_map_expand_apply)
3965 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
3966 (psym_lookup_global_symbol_language)
3967 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
3968 (psym_print_stats, psym_expand_symtabs_for_function)
3969 (psym_map_symbol_filenames, psym_map_matching_symbols)
3970 (psym_expand_symtabs_matching)
3971 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
3972 (maintenance_check_psymtabs): Update.
3973 * psympriv.h (struct partial_symtab) <readin_p,
3974 get_compunit_symtab>: Add objfile parameter.
3975 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
3976 Likewise.
3977 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
3978 get_compunit_symtab>: Likewise.
3979 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
3980
45940949
TT
39812020-05-27 Tom Tromey <tom@tromey.com>
3982
3983 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
3984 member.
3985 * dwarf2/read.c (delete_file_name_entry): Fix comment.
3986 (create_cu_from_index_list)
3987 (create_signatured_type_table_from_index)
3988 (create_signatured_type_table_from_debug_names)
3989 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
3990 (dwarf2_create_include_psymtab)
3991 (create_debug_type_hash_table, add_type_unit)
3992 (create_type_unit_group, read_comp_units_from_section)
3993 (dwarf2_compute_name, create_cus_hash_table)
3994 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
3995 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
3996 obstack.
3997 (dw2_get_real_path): Likewise. Change argument to
3998 dwarf2_per_objfile.
3999
f8c6d152
LM
40002020-05-27 Luis Machado <luis.machado@linaro.org>
4001
4002 PR tdep/26000
4003 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
4004 for ldrd (immediate).
4005
e98d2e6d
PW
40062020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4007
4008 * command.h: Add comment giving the name of class_tui.
4009 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
4010 create the fake command for the help for class_tui.
4011
53a47a3e
TT
40122020-05-26 Tom Tromey <tromey@adacore.com>
4013
4014 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
4015 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
4016 (val_atr): New function.
4017 (value_val_atr): Use it.
4018 * ada-valprint.c (print_optional_low_bound): Change low bound
4019 handling for enums.
4020 (val_print_packed_array_elements): Don't call discrete_position.
4021 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
4022 discrete_position for enum types.
4023 * language.c (default_print_array_index): Change type.
4024 * language.h (struct language_defn) <la_print_array_index>: Add
4025 index_type parameter, change type of index_value.
4026 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
4027 (default_print_array_index): Update.
4028 * valprint.c (maybe_print_array_index): Don't call
4029 value_from_longest. Update.
4030 (value_print_array_elements): Don't call discrete_position.
4031
0bc2354b
TT
40322020-05-26 Tom Tromey <tromey@adacore.com>
4033
4034 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
4035 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
4036
1218a4bf
CDA
40372020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
4038
4039 PR gdb/13519
4040 * avr-tdep.c (avr_integer_to_address): Return data or code
4041 address accordingly to the second 'type' argument of the
4042 function.
4043
92651b1d
MW
40442020-05-25 Michael Weghorn <m.weghorn@posteo.de>
4045
4046 * infcmd.c, inferior.h: (construct_inferior_arguments):
4047 Moved function from here to gdbsupport/common-inferior.{h,cc}
4048
0a4f5f8c
TT
40492020-05-23 Tom Tromey <tom@tromey.com>
4050
4051 Revert commit eca1f90c:
4052 * NEWS: Remove entry for completion styling.
4053 * completer.c (_rl_completion_prefix_display_length): Move
4054 declaration later.
4055 (gdb_fnprint): Revert.
4056 (gdb_display_match_list_1): Likewise.
4057 * cli/cli-style.c (completion_prefix_style)
4058 (completion_difference_style, completion_suffix_style): Remove.
4059 (_initialize_cli_style): Revert.
4060 * cli/cli-style.h (completion_prefix_style)
4061 (completion_difference_style, completion_suffix_style): Don't
4062 declare.
4063
e08bd6c5
PA
40642020-05-24 Pedro Alves <palves@redhat.com>
4065
4066 * symtab.c (completion_list_add_name): Return boolean indication
4067 of whether the symbol matched.
4068 (completion_list_add_symbol): Don't try to remove C++ aliases if
4069 the symbol didn't match in the first place.
4070 * symtab.h (completion_list_add_name): Return bool.
4071
ceacbf6e
SM
40722020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
4073
4074 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
4075 type::field.
4076
26f16254
JB
40772020-05-23 Joel Brobecker <brobecker@adacore.com>
4078
4079 GDB 9.2 released.
4080
eca1f90c
TT
40812020-05-23 Tom Tromey <tom@tromey.com>
4082
4083 * NEWS: Add entry for completion styling.
4084 * completer.c (_rl_completion_prefix_display_length): Move
4085 declaration earlier.
4086 (gdb_fnprint): Use completion_style.
4087 (gdb_display_match_list_1): Likewise.
4088 * cli/cli-style.c (completion_prefix_style)
4089 (completion_difference_style, completion_suffix_style): New
4090 globals.
4091 (_initialize_cli_style): Register new globals.
4092 * cli/cli-style.h (completion_prefix_style)
4093 (completion_difference_style, completion_suffix_style): Declare.
4094
51e2cfa2
PA
40952020-05-23 Pedro Alves <palves@redhat.com>
4096
4097 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
4098 (parse_escape): Use ISDIGIT instead of isdigit.
4099 (puts_debug): Use gdb_isprint instead of isprint.
4100 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
4101 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
4102 ISSPACE instead of isspace.
4103 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
4104 instead of isspace.
4105 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
4106 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
4107 instead of isxdigit and ISDIGIT instead of isdigit.
4108
80fc5e77
SM
41092020-05-22 Simon Marchi <simon.marchi@efficios.com>
4110
4111 * gdbtypes.h (struct type) <field>: New method.
4112 (TYPE_FIELDS): Remove, replace all uses with either type::fields
4113 or type::field.
4114
3cabb6b0
SM
41152020-05-22 Simon Marchi <simon.marchi@efficios.com>
4116
4117 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
4118 (TYPE_FIELDS): Use type::fields. Change all call sites that
4119 modify the propery to use type::set_fields instead.
4120
1f704f76
SM
41212020-05-22 Simon Marchi <simon.marchi@efficios.com>
4122
4123 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
4124 type::num_fields instead.
4125
5e33d5f4
SM
41262020-05-22 Simon Marchi <simon.marchi@efficios.com>
4127
4128 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
4129 methods.
4130 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
4131 that modify the number of fields to use type::set_num_fields
4132 instead.
4133
9392ebb3
TT
41342020-05-22 Tom Tromey <tromey@adacore.com>
4135
4136 * compile/compile-object-load.h (munmap_list_free): Don't
4137 declare.
4138
7c13f4e8
AB
41392020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
4140
4141 * annotate.c (annotate_source_line): Update return type, add call
4142 to update current symtab and line.
4143 * annotate.h (annotate_source_line): Update return type, and
4144 extend header comment.
4145 * source.c (info_line_command): Check annotation_level before
4146 calling annotate_source_line.
4147 * stack.c (print_frame_info): If calling annotate_source_line
4148 returns true, then don't print any other source line information.
4149
aa370940
SM
41502020-05-21 Simon Marchi <simon.marchi@efficios.com>
4151
4152 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
4153
84d53fa9
SM
41542020-05-21 Simon Marchi <simon.marchi@efficios.com>
4155
4156 * coffread.c (patch_type): Remove NULL check before xfree.
4157 * corefile.c (set_gnutarget): Likewise.
4158 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
4159 * exec.c (build_section_table): Likewise.
4160 * remote.c (remote_target::pass_signals): Likewise.
4161 * utils.c (n_spaces): Likewise.
4162 * cli/cli-script.c (document_command): Likewise.
4163 * i386-windows-tdep.c (core_process_module_section): Likewise.
4164 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
4165
9d428aae
SM
41662020-05-20 Simon Marchi <simon.marchi@efficios.com>
4167
4168 * symfile.c (reread_symbols): Clear objfile's section_offsets
4169 vector and section indices, re-compute them by calling
4170 sym_offsets.
4171
250106a7
TT
41722020-05-20 Tom Tromey <tromey@adacore.com>
4173
4174 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 4175 (desc_one_bound, desc_index_type): Compute field name.
250106a7 4176
9a0bacfb
TV
41772020-05-20 Tom de Vries <tdevries@suse.de>
4178
4179 PR symtab/25833
4180 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
4181
7b958a48
AM
41822020-05-20 Alan Modra <amodra@gmail.com>
4183
4184 PR 25993
4185 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
4186 bfd_set_filename.
4187 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
4188 passed to bfd_set_filename.
4189 * symfile-mem.c (add_vsyscall_page): Likewise for string
4190 passed to symbol_file_add_from_memory.
4191 (symbol_file_add_from_memory): Make name param a const char* and
4192 don't strdup.
4193
c7e97679
AM
41942020-05-20 Alan Modra <amodra@gmail.com>
4195
4196 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
4197 rather than accessing bfd->filename directly.
4198 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
4199 and use bfd_section_name.
4200 * dwarf2/frame.c (decode_frame_entry): Likewise.
4201 * exec.c (exec_set_section_address): Likewise.
4202 * solib-aix.c (solib_aix_bfd_open): Likewise.
4203 * stap-probe.c (get_stap_base_address): Likewise.
4204 * symfile.c (reread_symbols): Likewise.
4205
563c591b
TT
42062020-05-19 Tom Tromey <tromey@adacore.com>
4207
4208 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
4209
f408d82c
SM
42102020-05-19 Simon Marchi <simon.marchi@efficios.com>
4211
4212 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
4213
98c59b52
PA
42142020-05-19 Pedro Alves <palves@redhat.com>
4215
4216 * NEWS (set exec-file-mismatch): Adjust entry.
4217 * exec.c: Include "build-id.h".
4218 (validate_exec_file): Try to match build IDs instead of filenames.
4219 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
4220 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
4221 and pass down 'warn_if_slow'.
4222 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
4223 gdb_bfd_open_closure to pass it down.
4224 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
4225
4111f652
PA
42262020-05-19 Pedro Alves <palves@redhat.com>
4227
4228 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
4229 * target.c (target_fileio_open_1): Rename to target_fileio_open
4230 and make extern. Use bool.
4231 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
4232 (target_fileio_read_alloc_1): Adjust.
4233 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
4234 (target_fileio_open_warn_if_slow): Delete declaration.
4235
ad80db5b
PA
42362020-05-19 Pedro Alves <palves@redhat.com>
4237
4238 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
4239 Adjust all callers.
4240
1d6ce4d3
YS
42412020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
4242
4243 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
4244 whether disp is negative.
4245
9005fbbb
SM
42462020-05-19 Simon Marchi <simon.marchi@efficios.com>
4247
4248 * symfile.h (struct symfile_segment_data)
4249 <~symfile_segment_data>: Remove.
4250 <segment_info>: Change to std::vector.
4251 * symfile.c (default_symfile_segments): Update.
4252 * elfread.c (elf_symfile_segments): Update.
4253
68b888ff
SM
42542020-05-19 Simon Marchi <simon.marchi@efficios.com>
4255
4256 * symfile.h (struct symfile_segment_data) <struct segment>: New.
4257 <segments>: New.
4258 <segment_bases, segment_sizes>: Remove.
4259 * symfile.c (default_symfile_segments): Update.
4260 * elfread.c (elf_symfile_segments): Update.
4261 * remote.c (remote_target::get_offsets): Update.
4262 * solib-target.c (solib_target_relocate_section_addresses):
4263 Update.
4264
62982abd
SM
42652020-05-19 Simon Marchi <simon.marchi@efficios.com>
4266
4267 * symfile.h (struct symfile_segment_data): Initialize fields.
4268 <~symfile_segment_data>: Add.
4269 (symfile_segment_data_up): New.
4270 (struct sym_fns) <sym_segments>: Return a
4271 symfile_segment_data_up.
4272 (default_symfile_segments): Return a symfile_segment_data_up.
4273 (free_symfile_segment_data): Remove.
4274 (get_symfile_segment_data): Return a symfile_segment_data_up.
4275 * symfile.c (default_symfile_segments): Likewise.
4276 (get_symfile_segment_data): Likewise.
4277 (free_symfile_segment_data): Remove.
4278 (symfile_find_segment_sections): Update.
4279 * elfread.c (elf_symfile_segments): Return a
4280 symfile_segment_data_up.
4281 * remote.c (remote_target::get_offsets): Update.
4282 * solib-target.c (solib_target_relocate_section_addresses):
4283 Update.
4284 * symfile-debug.c (debug_sym_segments): Return a
4285 symfile_segment_data_up.
4286
7f204339
RO
42872020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4288
e52a0f1b
RO
4289 PR build/25981
4290 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
4291 Hardcode register numbers.
4292
7f204339
RO
4293 PR build/25981
4294 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
4295 procfs_find_LDT_entry): Remove.
4296 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
4297 procfs_find_LDT_entry): Remove.
4298 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
4299 Remove.
4300
7f32a4d5
PA
43012020-05-17 Pedro Alves <palves@redhat.com>
4302 Andrew Burgess <andrew.burgess@embecosm.com>
4303 Keno Fischer <keno@juliacomputing.com>
4304
4305 PR gdb/25741
4306 * breakpoint.c (build_target_condition_list): Update comments.
4307 (build_target_command_list): Update comments and skip matching
4308 locations.
4309 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
4310 a separate function. Simplify "set breakpoint auto-hw off"
4311 handling.
4312 (insert_breakpoints): Update comment.
4313 (tracepoint_locations_match): New parameter. For breakpoints,
4314 compare location types too, if the caller wants to.
4315 (handle_automatic_hardware_breakpoints): New functions.
4316 (bp_location_is_less_than): Also sort by location type and
4317 hardware breakpoint length.
4318 (update_global_location_list): Handle "set breakpoint auto-hw on"
4319 here.
4320 (update_breakpoint_locations): Ask breakpoint_locations_match to
4321 ignore location types.
4322
7d93a1e0
SM
43232020-05-16 Simon Marchi <simon.marchi@efficios.com>
4324
4325 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
4326 type::name instead.
4327
d0e39ea2
SM
43282020-05-16 Simon Marchi <simon.marchi@efficios.com>
4329
4330 * gdbtypes.h (struct type) <name, set_name>: New methods.
4331 (TYPE_CODE): Use type::name. Change all call sites used to set
4332 the name to use type::set_name instead.
4333
2dab0c7b
TT
43342020-05-16 Tom Tromey <tom@tromey.com>
4335
4336 * top.c (quit_force): Update.
4337 * infrun.c (handle_no_resumed): Update.
4338 * top.h (all_uis): New function.
4339 (ALL_UIS): Remove.
4340
59f7bd8d
SM
43412020-05-16 Simon Marchi <simon.marchi@efficios.com>
4342
4343 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
4344
9bf058f0
PA
43452020-05-16 Pedro Alves <palves@redhat.com>
4346
4347 * ia64-linux-nat.c
4348 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
4349 Declare method.
4350 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
4351
8f86ae1a
SM
43522020-05-15 Simon Marchi <simon.marchi@efficios.com>
4353
4354 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
4355 (sparc64_adi_info): Likewise.
4356
d6bc0792
TT
43572020-05-15 Tom Tromey <tom@tromey.com>
4358
4359 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
4360 block_objfile.
4361 (lookup_objfile_from_block): Remove.
4362 (lookup_symbol_in_block, lookup_symbol_in_static_block)
4363 (lookup_global_symbol): Use block_objfile.
4364 * symtab.h (lookup_objfile_from_block): Don't declare.
4365 * printcmd.c (clear_dangling_display_expressions): Use
4366 block_objfile.
4367 * parse.c (operator_check_standard): Use block_objfile.
4368
8c14c3a3
TT
43692020-05-15 Tom Tromey <tom@tromey.com>
4370
4371 * language.c (language_alloc_type_symbol): Set
4372 SYMBOL_SECTION.
4373 * symtab.c (initialize_objfile_symbol): Remove.
4374 (allocate_symbol): Remove.
4375 (allocate_template_symbol): Remove.
4376 * dwarf2/read.c (fixup_go_packaging): Use "new".
4377 (new_symbol): Use "new".
4378 (read_variable): Don't call initialize_objfile_symbol. Use
4379 "new".
4380 (read_func_scope): Use "new".
4381 * xcoffread.c (process_xcoff_symbol): Don't call
4382 initialize_objfile_symbol.
4383 (SYMBOL_DUP): Remove.
4384 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
4385 "new".
4386 * symtab.h (allocate_symbol, initialize_objfile_symbol)
4387 (allocate_template_symbol): Don't declare.
4388 (struct symbol): Add copy constructor. Change defaults.
4389 * jit.c (finalize_symtab): Use "new".
4390 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
4391 Use "new".
4392 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
4393 (common_block_end): Use "new".
4394 * mdebugread.c (parse_symbol): Use "new".
4395 (new_symbol): Likewise.
4396
5b4a1a8d
PW
43972020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4398
4399 * NEWS: Mention changes to help and apropos.
4400
57b4f16e
PW
44012020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4402
4403 * command.h (enum command_class): Improve comments, document
4404 that class_alias is for user-defined aliases, give the class
4405 name for each class, remove unused class_xdb.
4406 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
4407 * breakpoint.c (_initialize_breakpoint): Replace class_alias
4408 by a precise class.
4409 * infcmd.c (_initialize_infcmd): Likewise.
4410 * reverse.c (_initialize_reverse): Likewise.
4411 * stack.c (_initialize_stack): Likewise.
4412 * symfile.c (_initialize_symfile): Likewise.
4413 * tracepoint.c (_initialize_tracepoint): Likewise.
4414
7c05caf7
PW
44152020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4416
4417 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
4418 when their aliased command is traversed.
4419 (help_cmd): Add fput_command_names_styled call to
4420 output command name and aliases when command has an alias.
4421
3b3aaacb
PW
44222020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4423
4424 * cli/cli-decode.h (help_cmd_list): Remove declaration.
4425 * cli/cli-decode.c (help_cmd_list): Declare as static,
4426 remove prefix argument, use bool for recurse arg, rework to show the aliases of
4427 a command together with the command.
4428 (fput_command_name_styled, fput_command_names_styled): New functions.
4429 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
4430 fput_command_name_styled.
4431 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
4432 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
4433
7aa1b46f
PW
44342020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4435
4436 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
4437 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
4438 * command.h (cmd_show_list): Likewise.
4439 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
4440 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
4441
89bcba74
PW
44422020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4443
4444 * unittests/command-def-selftests.c (traverse_command_structure):
4445 Verify all commands of a list have the same prefix command and
4446 that only the top cmdlist commands have a null prefix.
4447
3f4d92eb
PW
44482020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4449
4450 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
4451 as prefix, not one of its aliases.
4452 (set_cmd_prefix): Remove.
4453 (do_add_cmd): Centralize the setting of the prefix of a command, when
4454 command is defined after its full chain of prefix commands.
4455 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
4456 (add_setshow_cmd_full): Likewise.
4457 (update_prefix_field_of_prefixed_commands): New function.
4458 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
4459 update_prefix_field_of_prefixed_commands.
4460 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
4461 addresses of remote_set_cmdlist and remote_show_cmdlist given
4462 as argument, not the address of an argument.
4463 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
4464 * gdb/remote.c (_initialize_remote): Likewise.
4465
0605465f
PW
44662020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4467
4468 * cli/cli-cmds.c (alias_command): Check for an existing alias
4469 using lookup_cmd_composition, as valid_command_p is too strict
4470 and forbids aliases that are the prefix of an existing alias
4471 or command.
4472 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
4473 command is properly recognised as a valid command.
4474
58e6ac70
PW
44752020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4476
4477 * unittests/help-doc-selftests.c: Rename to
4478 unittests/command-def-selftests.c
4479 * unittests/command-def-selftests.c (help_doc_tests): Update some
4480 comments.
4481 (command_structure_tests, traverse_command_structure): New namespace
4482 and function.
4483 (command_structure_invariants_tests): New function.
4484 (_initialize_command_def_selftests) Renamed from
4485 _initialize_help_doc_selftests, register command_structure_invariants
4486 selftest.
4487
a7b9ceb8
PW
44882020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4489
4490 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
4491 an alias of 'show'.
4492
b2188a06
JB
44932020-05-15 Joel Brobecker <brobecker@adacore.com>
4494
4495 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
4496 ada_is_fixed_point_type. Update all callers.
4497 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
4498 all callers.
4499 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
4500 Update all callers.
4501 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
4502 print_fixed_point_type. Update all callers.
4503 * ada-valprint.c (ada_value_print_num): Replace call to
4504 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
4505
a51951c2
KB
45062020-05-14 Kevin Buettner <kevinb@redhat.com>
4507
4508 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
4509 processors.
4510 (cpu_supports_bts): Add CV_AMD case.
4511
29d6859f
LM
45122020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
4513 Simon Marchi <simon.marchi@efficios.com>
4514
4515 * infrun.c (stop_all_threads): Collect multiple wait events at
4516 each pass.
4517
78134374
SM
45182020-05-14 Simon Marchi <simon.marchi@efficios.com>
4519
4520 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
4521 type::code instead.
4522
67607e24
SM
45232020-05-14 Simon Marchi <simon.marchi@efficios.com>
4524
4525 * gdbtypes.h (struct type) <code, set_code>: New methods.
4526 (TYPE_CODE): Use type::code. Change all call sites used to set
4527 the code to use type::set_code instead.
4528
a05575d3
TBA
45292020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4530 Tom de Vries <tdevries@suse.de>
4531 Pedro Alves <palves@redhat.com>
4532
4533 PR threads/25478
4534 * infrun.c (stop_all_threads): Do NOT ignore
4535 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
4536 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
4537 received.
4538 (handle_no_resumed): Remove code handling a live inferior with no
4539 threads.
4540 * remote.c (has_single_non_exited_thread): New.
4541 (remote_target::update_thread_list): Do not delete a thread if is
4542 the last thread of the process.
4543 * thread.c (thread_select): Call delete_exited_threads instead of
4544 prune_threads.
4545
6ad82919
TBA
45462020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4547
4548 * infrun.c (stop_all_threads): Enable/disable thread events of all
4549 targets. Move a debug message denoting the end of the function
4550 into the SCOPED_EXIT block.
4551
d890404b
TBA
45522020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4553
4554 * process-stratum-target.h: Include <set>.
4555 (all_non_exited_process_targets, switch_to_target_no_thread): New
4556 function declarations.
4557 * process-stratum-target.c (all_non_exited_process_targets)
4558 (switch_to_target_no_thread): New function implementations.
4559
293b3ebc
TBA
45602020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4561
4562 * infrun.c (handle_inferior_event): Extract out a piece of code
4563 into...
4564 (mark_non_executing_threads): ...this new function.
4565
7ca9b62a
TBA
45662020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4567
4568 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
4569 use.
4570
fc75c28b
TBA
45712020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4572
4573 * regcache.c (regcache_read_pc_protected): New function
4574 implementation that returns 0 if the PC cannot read via
4575 'regcache_read_pc'.
4576 * infrun.c (proceed): Call 'regcache_read_pc_protected'
4577 instead of 'regcache_read_pc'.
4578 (keep_going_pass_signal): Ditto.
4579
a89febbd
TT
45802020-05-13 Tom Tromey <tromey@adacore.com>
4581
4582 * ada-lang.c (align_value): Remove.
4583 (ada_template_to_fixed_record_type_1): Use align_up.
4584
f7e23710
TBA
45852020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4586
4587 * async-event.c: Update the copyright year.
4588 * async-event.h: Update the copyright year.
4589
02ff80c2
SM
45902020-05-12 Simon Marchi <simon.marchi@efficios.com>
4591
4592 * objfiles.h (is_addr_in_objfile,
4593 shared_objfile_contains_address_p): Return bool.
4594 * objfile.c (is_addr_in_objfile,
4595 shared_objfile_contains_address_p): Return bool.
4596
4fd6c7e8
TT
45972020-05-11 Tom Tromey <tromey@adacore.com>
4598
4599 * cli/cli-cmds.c (info_command): Restore.
4600 (_initialize_cli_cmds): Use add_prefix_command for "info".
4601 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
4602
5eb68a39
TT
46032020-05-11 Tom Tromey <tromey@adacore.com>
4604
4605 * ada-lang.c (ada_value_primitive_field): Now public.
4606 * ada-lang.h (ada_value_primitive_field): Declare.
4607 * ada-valprint.c (print_field_values): Use
4608 ada_value_primitive_field for wrapper fields.
4609
7666722f
TV
46102020-05-11 Tom de Vries <tdevries@suse.de>
4611
4612 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
4613 MODULE_DOMAIN.
4614
3ee6bb11
TV
46152020-05-11 Tom de Vries <tdevries@suse.de>
4616
4617 PR symtab/25941
4618 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
4619 with length 0, if not gdb-produced.
4620 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
4621
43434996
TV
46222020-05-09 Tom de Vries <tdevries@suse.de>
4623
4624 PR gdb/25955
4625 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
4626 calculation.
4627
2f78cffc
TT
46282020-05-09 Tom Tromey <tom@tromey.com>
4629
4630 * top.c (server_command): Now bool.
4631 * top.h (server_command): Now bool.
4632
4f7bc5ed
TT
46332020-05-08 Tom Tromey <tromey@adacore.com>
4634
4635 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
4636 already being processed.
4637
8be4b118
TT
46382020-05-08 Tom Tromey <tom@tromey.com>
4639
4640 * printcmd.c (struct display) <next>: Remove.
4641 <display>: New constructor.
4642 <exp_string>: Now a std::string.
4643 <enabled_p>: Now a bool.
4644 (display_number): Move definition earlier.
4645 (displays): Rename from display_chain. Now a std::vector.
4646 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
4647 (display_command): Update.
4648 (do_one_display, disable_display)
4649 (enable_disable_display_command, do_enable_disable_display):
4650 Update.
4651 (free_display): Remove.
4652 (clear_displays): Rewrite.
4653 (delete_display): Update.
4654 (map_display_numbers): Use function_view. Remove "data"
4655 parameter. Update.
4656 (do_delete_display): Remove.
4657 (undisplay_command): Update.
4658 (do_one_display, do_displays, disable_display)
4659 (info_display_command): Update.
4660 (do_enable_disable_display): Remove.
4661 (enable_disable_display_command)
4662 (clear_dangling_display_expressions): Update.
4663
94c93c35
TT
46642020-05-08 Tom Tromey <tom@tromey.com>
4665
4666 * symtab.c (set_symbol_cache_size)
4667 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
4668 (maintenance_print_symbol_cache_statistics): Update.
4669 * symmisc.c (print_symbol_bcache_statistics)
4670 (print_objfile_statistics, maintenance_print_objfiles)
4671 (maintenance_info_symtabs, maintenance_check_symtabs)
4672 (maintenance_expand_symtabs, maintenance_info_line_tables):
4673 Update.
4674 * symfile-debug.c (set_debug_symfile): Update.
4675 * source.c (forget_cached_source_info): Update.
4676 * python/python.c (gdbpy_progspaces): Update.
4677 * psymtab.c (maintenance_info_psymtabs): Update.
4678 * probe.c (parse_probes): Update.
4679 * linespec.c (iterate_over_all_matching_symtabs)
4680 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
4681 * guile/scm-progspace.c (gdbscm_progspaces): Update.
4682 * exec.c (exec_target::close): Update.
4683 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
4684 * breakpoint.c (print_one_breakpoint_location)
4685 (create_longjmp_master_breakpoint)
4686 (create_std_terminate_master_breakpoint): Update.
4687 * progspace.c (program_spaces): Now a std::vector.
4688 (maybe_new_address_space): Update.
4689 (add_program_space): Remove.
4690 (program_space::program_space): Update.
4691 (remove_program_space): Update.
4692 (number_of_program_spaces): Remove.
4693 (print_program_space, update_address_spaces): Update.
4694 * progspace.h (program_spaces): Change type.
4695 (ALL_PSPACES): Remove.
4696 (number_of_program_spaces): Don't declare.
4697 (struct program_space) <next>: Remove.
4698
a1fd1ac9
TT
46992020-05-08 Tom Tromey <tom@tromey.com>
4700
4701 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
4702 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
4703 (enable_break): Update.
4704 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
4705 (frv_fdpic_find_canonical_descriptor): Update.
4706 (frv_fetch_objfile_link_map): Update.
4707 * progspace.c (program_space::free_all_objfiles): Update.
4708 (program_space::solibs): New method.
4709 * progspace.h (struct program_space) <solibs>: New method.
4710 * solist.h (master_so_list): Don't declare.
4711 (ALL_SO_LIBS): Remove.
4712 * solib.h (so_list_head): Remove.
4713 (update_solib_list): Update comment.
4714 * solib.c (master_so_list): Remove.
4715 (solib_used, update_solib_list, solib_add)
4716 (info_sharedlibrary_command, clear_solib)
4717 (reload_shared_libraries_1, remove_user_added_objfile): Update.
4718
38eae084
TT
47192020-05-08 Tom Tromey <tom@tromey.com>
4720
4721 * extension.c (extension_languages): Now a std::array.
4722 (ALL_EXTENSION_LANGUAGES): Remove.
4723 (get_ext_lang_defn, get_ext_lang_of_file)
4724 (eval_ext_lang_from_control_command): Update.
4725 (finish_ext_lang_initialization)
4726 (auto_load_ext_lang_scripts_for_objfile)
4727 (ext_lang_type_printers::ext_lang_type_printers)
4728 (apply_ext_lang_type_printers)
4729 (ext_lang_type_printers::~ext_lang_type_printers)
4730 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
4731 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
4732 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
4733 (get_matching_xmethod_workers, ext_lang_colorize)
4734 (ext_lang_before_prompt): Update.
4735 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
4736
596dc4ad
TT
47372020-05-08 Tom Tromey <tom@tromey.com>
4738
4739 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
4740 overload.
4741 <swap_string, m_string>: Remove.
4742 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
4743 Update.
4744 * stabsread.c (define_symbol, read_type): Update.
4745 * linespec.c (find_linespec_symbols): Update.
4746 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
4747 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
4748 * dbxread.c (read_dbx_symtab): Update.
4749 * cp-support.h (cp_canonicalize_string_full)
4750 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
4751 Return unique_xmalloc_ptr.
4752 * cp-support.c (inspect_type): Update.
4753 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
4754 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
4755 Likewise.
4756 * c-typeprint.c (print_name_maybe_canonical): Update.
4757 * break-catch-throw.c (check_status_exception_catchpoint):
4758 Update.
4759
bf4cb9be
TV
47602020-05-08 Tom de Vries <tdevries@suse.de>
4761
4762 * infrun.c (follow_fork): Copy current_line and current_symtab to
4763 child thread.
4764
a1b68f28
SM
47652020-05-07 Simon Marchi <simon.marchi@efficios.com>
4766
4767 * async-event.c (struct async_signal_handler, struct
4768 async_event_handler): Reformat, remove typedef.
4769
98d48915
SM
47702020-05-07 Simon Marchi <simon.marchi@efficios.com>
4771
4772 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
4773 access thistype->main_type->dyn_prop_list directly.
4774
7aa91313
SM
47752020-05-07 Simon Marchi <simon.marchi@efficios.com>
4776
4777 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
4778 (remove_dyn_prop): Remove. Update all users to use
4779 type::remove_dyn_prop.
4780 * gdbtypes.c (remove_dyn_prop): Rename to...
4781 (type::remove_dyn_prop): ... this.
4782
5c54719c
SM
47832020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
4784
4785 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
4786 (add_dyn_prop): Remove. Update all users to use
4787 type::add_dyn_prop.
4788 * gdbtypes.c (add_dyn_prop): Rename to...
4789 (type::add_dyn_prop): ... this.
4790
24e99c6c
SM
47912020-05-07 Simon Marchi <simon.marchi@efficios.com>
4792
4793 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
4794 (get_dyn_prop): Remove. Update all users to use
4795 type::dyn_prop.
4796 * gdbtypes.c (get_dyn_prop): Rename to...
4797 (type::dyn_prop): ... this.
4798
0d4bf016
SM
47992020-05-06 Simon Marchi <simon.marchi@efficios.com>
4800
4801 * gdbtypes.h (struct main_type) <flag_static>: Remove.
4802
ac4a4f1c
SM
48032020-05-06 Simon Marchi <simon.marchi@efficios.com>
4804
4805 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
4806 instruction, skip it if it's there.
4807
a3bbacc1
SM
48082020-05-05 Simon Marchi <simon.marchi@efficios.com>
4809
4810 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
4811
c3236f84
SM
48122020-05-04 Simon Marchi <simon.marchi@efficios.com>
4813
4814 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
4815 * gdbtypes.c (recursive_dump_type): Remove use of
4816 TYPE_INCOMPLETE.
4817
3b6acaee
TT
48182020-05-03 Tom Tromey <tom@tromey.com>
4819
4820 * breakpoint.c (catch_command, tcatch_command): Remove.
4821 (_initialize_breakpoint): Use add_basic_prefix_cmd,
4822 add_show_prefix_cmd.
4823 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
4824 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
4825 Remove.
4826 (add_internal_problem_command): Use add_basic_prefix_cmd,
4827 add_show_prefix_cmd.
4828 * mips-tdep.c (set_mipsfpu_command): Remove.
4829 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
4830 * dwarf2/index-cache.c (set_index_cache_command): Remove.
4831 (_initialize_index_cache): Use add_basic_prefix_cmd.
4832 * memattr.c (dummy_cmd): Remove.
4833 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
4834 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
4835 (_initialize_tui_win): Use add_basic_prefix_cmd,
4836 add_show_prefix_cmd.
4837 * cli/cli-logging.c (set_logging_command): Remove.
4838 (_initialize_cli_logging): Use add_basic_prefix_cmd,
4839 add_show_prefix_cmd.
4840 (show_logging_command): Remove.
4841 * target.c (target_command): Remove.
4842 (add_target): Use add_basic_prefix_cmd.
4843
a51119cd
HD
48442020-05-02 Hannes Domani <ssbssa@yahoo.de>
4845
4846 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
4847
652fc23a 48482020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 4849
652fc23a
PW
4850 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
4851 info_command.
4852
117539e6
KR
48532020-04-30 Kamil Rytarowski <n54@gmx.com>
4854
4855 * nbsd-nat.c (nbsd_enable_proc_events)
4856 (nbsd_nat_target::post_startup_inferior): Add.
4857 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
4858 (nbsd_nat_target::update_thread_list): Rewrite.
4859 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
4860 "PTRACE_LWP_CREATE".
4861 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
4862
102e38eb 48632020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 4864
102e38eb
PW
4865 * stack.c (_initialize_stack): Remove duplicated creation
4866 of "frame" command and "f" alias.
4867
ee9d1e5f
HD
48682020-04-30 Hannes Domani <ssbssa@yahoo.de>
4869
4870 PR gdb/18706
4871 * gdbtypes.c (check_typedef): Calculate size of array of
4872 stubbed type.
4873
627c7fb8
HD
48742020-04-30 Hannes Domani <ssbssa@yahoo.de>
4875
4876 PR gdb/15559
4877 * i386-tdep.c (i386_push_dummy_call): Call
4878 i386_thiscall_push_dummy_call.
4879 (i386_thiscall_push_dummy_call): New function.
4880 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
4881 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
4882 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
4883
ffc2844e
SM
48842020-04-29 Simon Marchi <simon.marchi@efficios.com>
4885
4886 * gdbarch.sh (do_read): Add shellcheck disable directive for
4887 warning SC2162.
4888
1207375d
SM
48892020-04-29 Simon Marchi <simon.marchi@efficios.com>
4890
4891 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
4892 "referenced but not assigned" warning.
4893
9fdb2916
SM
48942020-04-29 Simon Marchi <simon.marchi@efficios.com>
4895
4896 * gdbarch.sh: Remove code that sets fallbackdefault.
4897
759cea5e
SM
48982020-04-29 Simon Marchi <simon.marchi@efficios.com>
4899
4900 * gdbarch.sh: Use shell operators && and || instead of
4901 -a and -o.
4902
cb02ab24
SM
49032020-04-29 Simon Marchi <simon.marchi@efficios.com>
4904
4905 * gdbarch.sh: Use $(...) instead of `...`.
4906
a6fc5ffc
SM
49072020-04-29 Simon Marchi <simon.marchi@efficios.com>
4908
4909 * gdbarch.sh: Use double quotes around variables.
4910
8d113d13
SM
49112020-04-29 Simon Marchi <simon.marchi@efficios.com>
4912
4913 * gdbarch.sh: Use %s with printf, instead of variables in the
4914 format string.
4915
ed6acedd
TT
49162020-04-29 Tom Tromey <tromey@adacore.com>
4917
4918 PR ada/25875:
4919 * dwarf2/read.c (update_enumeration_type_from_children): Compute
4920 type fields here.
4921 (read_enumeration_type): Call
4922 update_enumeration_type_from_children later. Update comments.
4923 (process_enumeration_scope): Don't create type fields.
4924
b68b1b58
KR
49252020-04-29 Kamil Rytarowski <n54@gmx.com>
4926
4927 * nbsd-tdep.c: Include "xml-syscall.h".
4928 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
4929
f94b2e03
KR
49302020-04-29 Kamil Rytarowski <n54@gmx.com>
4931
4932 * nbsd-nat.c: Include "sys/wait.h".
4933 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
4934 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
4935 (nbsd_nat_target::remove_exec_catchpoint)
4936 (nbsd_nat_target::set_syscall_catchpoint): Add.
4937 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
4938 (nbsd_nat_target::insert_exec_catchpoint)
4939 (nbsd_nat_target::remove_exec_catchpoint)
4940 (nbsd_nat_target::set_syscall_catchpoint): Add.
4941 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
4942 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
4943 `nbsd_get_syscall_number'.
4944
fc49bc72
TT
49452020-04-29 Tom Tromey <tom@tromey.com>
4946
4947 * stack.c (print_block_frame_labels): Remove.
4948
d642b692
HD
49492020-04-29 Hannes Domani <ssbssa@yahoo.de>
4950
4951 PR gdb/17320
4952 * ada-valprint.c (val_print_packed_array_elements): Move array
4953 end bracket to new line.
4954 (ada_val_print_string): Remove extra spaces before first array
4955 element.
4956 * c-valprint.c (c_value_print_array): Likewise.
4957 * m2-valprint.c (m2_print_array_contents): Likewise.
4958 (m2_value_print_inner): Likewise.
4959 * p-valprint.c (pascal_value_print_inner): Likewise.
4960 * valprint.c (generic_val_print_array): Likewise.
4961 (value_print_array_elements): Move first array element and array
4962 end bracket to new line.
4963
ea90f227
TV
49642020-04-29 Tom de Vries <tdevries@suse.de>
4965
4966 PR symtab/25889
4967 * linespec.c (find_method): Fix ix calculation.
4968
4498ef4f
KR
49692020-04-28 Kamil Rytarowski <n54@gmx.com>
4970
4971 * syscalls/update-netbsd.sh: New file.
4972 * syscalls/netbsd.xml: Regenerate.
4973 * data-directory/Makefile.in: Register `netbsd.xml' in
4974 `SYSCALLS_FILES'.
4975
a55e30b5
SM
49762020-04-28 Simon Marchi <simon.marchi@efficios.com>
4977
4978 * syscalls/update-freebsd.sh: Add double quotes.
4979
2b2fbab8
TT
49802020-04-28 Tom Tromey <tom@tromey.com>
4981
4982 * NEWS: Update.
4983 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
4984 (cmdpy_init): Allow class_tui.
4985
a65189c9
TV
49862020-04-28 Mark Williams <mark@myosotissp.com>
4987
4988 PR gdb/24480
4989 * dwarf2read.c: Add missing assingments to list_in_scope when
4990 start_symtab was already called.
4991
1b95cdb7
SM
49922020-04-28 Simon Marchi <simon.marchi@efficios.com>
4993
4994 PR gdb/25881
4995 * dwarf2/read.c (offset_map_type): Use
4996 gdb:hash_enum<sect_offset> as hash function.
4997
15cd93d0
TV
49982020-04-28 Tom de Vries <tdevries@suse.de>
4999
5000 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
5001 with DW_AT_signature.
5002
1eb39914
SM
50032020-04-27 Simon Marchi <simon.marchi@efficios.com>
5004
5005 * configure.ac: Remove check for fs_base/gs_base in
5006 user_regs_struct.
5007 * configure: Re-generate.
5008 * config.in: Re-generate.
5009 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
5010 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
5011 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
5012
991a3e2e
LM
50132020-04-27 Luis Machado <luis.machado@linaro.org>
5014
5015 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
5016 problematic inline frame unwinding situation.
5017 * frame.c (frame_id_computed_p): New function.
5018 * frame.h (frame_id_computed_p): New prototype.
5019
361ba0e8
TT
50202020-04-26 Tom Tromey <tom@tromey.com>
5021
5022 * command.h (enum command_class) <class_pseudo>: Remove.
5023
bc3609fd
PW
50242020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5025
5026 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
5027 and whitespace.
5028
b9771db7
KR
50292020-04-25 Kamil Rytarowski <n54@gmx.com>
5030
ec16513e
SM
5031 * inf-ptrace.c (inf_ptrace_target::wait): Remove
5032 `PT_GET_PROCESS_STATE' block.
b9771db7 5033
7151c1af
TT
50342020-04-24 Tom Tromey <tom@tromey.com>
5035
5036 * symtab.h (symbol_get_demangled_name): Don't declare.
5037 * symtab.c (symbol_get_demangled_name): Remove.
5038 (general_symbol_info::natural_name)
5039 (general_symbol_info::demangled_name): Update.
5040
906bb4c5
TT
50412020-04-24 Tom Tromey <tom@tromey.com>
5042
5043 PR rust/25025:
5044 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
5045
bcfe6157
TT
50462020-04-24 Tom Tromey <tom@tromey.com>
5047
5048 PR symtab/12707:
5049 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
5050 exists.
5051 (new_symbol): Likewise.
5052 * compile/compile-object-load.c (get_out_value_type): Use
5053 symbol_matches_search_name.
5054
f049a313
TT
50552020-04-24 Tom Tromey <tom@tromey.com>
5056
5057 * dwarf2/read.c (add_partial_symbol): Do not call
5058 compute_and_set_names.
5059
76e288d1
TT
50602020-04-24 Tom Tromey <tom@tromey.com>
5061
5062 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
5063 overload.
5064
2467f4f6
TT
50652020-04-24 Tom Tromey <tom@tromey.com>
5066
5067 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
5068 (add_psymbol_to_list): New overload. Make old overload call new
5069 one.
5070 * psympriv.h (add_psymbol_to_list): New overload.
5071
e61108c9
TT
50722020-04-24 Tom Tromey <tom@tromey.com>
5073
5074 * dwarf2/read.c (partial_die_info::read) <case
5075 DW_AT_linkage_name>: Use value_as_string.
5076 (dwarf2_string_attr): Use value_as_string.
5077 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
5078 method.
5079 * dwarf2/attribute.c (attribute::value_as_string): New method.
5080
8c87a452
TT
50812020-04-24 Tom Tromey <tom@tromey.com>
5082
5083 * symtab.c (general_symbol_info::natural_name)
5084 (general_symbol_info::demangled_name): Check for language_rust.
5085
787de330
TT
50862020-04-24 Tom Tromey <tom@tromey.com>
5087
5088 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
5089 (dwarf2_physname): ... from here.
5090 (partial_die_info::read): Add Rust "{" hack.
5091
ff985671
TT
50922020-04-24 Tom Tromey <tom@tromey.com>
5093
5094 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
5095 method.
5096 (symbol_set_demangled_name): Don't declare.
5097 * symtab.c (general_symbol_info::set_demangled_name): Rename from
5098 symbol_set_demangled_name.
5099 (general_symbol_info::set_language)
5100 (general_symbol_info::compute_and_set_names): Update.
5101 * minsyms.c (minimal_symbol_reader::install): Update.
5102 * dwarf2/read.c (new_symbol): Update.
5103
1acda803
TT
51042020-04-24 Tom Tromey <tromey@adacore.com>
5105
5106 PR python/23662:
5107 * python/py-type.c (convert_field): Handle
5108 FIELD_LOC_KIND_DWARF_BLOCK.
5109 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
5110 (typy_get_dynamic): Nw function.
5111 (type_object_getset): Add "dynamic".
5112 * NEWS: Add entry.
5113
d656f129
TT
51142020-04-24 Tom Tromey <tromey@adacore.com>
5115
5116 * ada-typeprint.c (print_choices, print_variant_part)
5117 (print_record_field_types_dynamic): New functions.
5118 (print_record_field_types): Use print_record_field_types_dynamic.
5119
7d79de9a
TT
51202020-04-24 Tom Tromey <tromey@adacore.com>
5121
5122 * dwarf2/read.c (handle_data_member_location): New overload.
5123 (dwarf2_add_field): Use it.
5124 (decode_locdesc): Add "computed" parameter. Update comment.
5125 * gdbtypes.c (is_dynamic_type_internal): Also look for
5126 FIELD_LOC_KIND_DWARF_BLOCK.
5127 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
5128 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
5129 virtual base classes.
5130 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
5131 FIELD_LOC_KIND_DWARF_BLOCK.
5132
f8e89861
TT
51332020-04-24 Tom Tromey <tromey@adacore.com>
5134
5135 * dwarf2/read.c (read_structure_type): Handle dynamic length.
5136 * gdbtypes.c (is_dynamic_type_internal): Check
5137 TYPE_HAS_DYNAMIC_LENGTH.
5138 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
5139 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
5140 New macros.
5141 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
5142 constant.
5143
9c6a1327
TT
51442020-04-24 Tom Tromey <tromey@adacore.com>
5145
5146 * dwarf2/read.c (struct variant_field): Rewrite.
5147 (struct variant_part_builder): New.
5148 (struct nextfield): Remove "variant" field. Add "offset".
5149 (struct field_info): Add "current_variant_part" and
5150 "variant_parts".
5151 (alloc_discriminant_info): Remove.
5152 (alloc_rust_variant): New function.
5153 (quirk_rust_enum): Update.
5154 (dwarf2_add_field): Set "offset" member. Don't handle
5155 DW_TAG_variant_part.
5156 (offset_map_type): New typedef.
5157 (convert_variant_range, create_one_variant)
5158 (create_one_variant_part, create_variant_parts)
5159 (add_variant_property): New functions.
5160 (dwarf2_attach_fields_to_type): Call add_variant_property.
5161 (read_structure_type): Don't handle DW_TAG_variant_part.
5162 (handle_variant_part, handle_variant): New functions.
5163 (handle_struct_member_die): Use them.
5164 (process_structure_scope): Don't handle variant parts.
5165 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
5166 (struct discriminant_info): Remove.
5167 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
5168 (struct main_type) <flag_discriminated_union>: Remove.
5169 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
5170 (rust_enum_variant): Return int. Remove "contents". Rewrite.
5171 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
5172 Update.
5173 * valops.c (value_union_variant): Remove.
5174 * value.h (value_union_variant): Don't declare.
5175
b249d2c2
TT
51762020-04-24 Tom Tromey <tromey@adacore.com>
5177
5178 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
5179 (ada_value_primitive_packed_val): Update.
5180 * ada-valprint.c (ada_value_print_1): Update.
5181 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
5182 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
5183 just an address. Use evaluate_for_locexpr_baton.
5184 (dwarf2_evaluate_property): Update.
5185 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
5186 array_view.
5187 * findvar.c (default_read_var_value): Update.
5188 * gdbtypes.c (compute_variant_fields_inner)
5189 (resolve_dynamic_type_internal): Update.
5190 (resolve_dynamic_type): Change type of valaddr parameter.
5191 * gdbtypes.h (resolve_dynamic_type): Update.
5192 * valarith.c (value_subscripted_rvalue): Update.
5193 * value.c (value_from_contents_and_address): Update.
5194
61122aa9
TT
51952020-04-24 Tom Tromey <tromey@adacore.com>
5196
5197 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
5198 "push_initial_value" parameter.
5199 (dwarf2_evaluate_property): Likewise.
5200 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
5201
ef83a141
TT
52022020-04-24 Tom Tromey <tromey@adacore.com>
5203
5204 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
5205 (variant::matches, compute_variant_fields_recurse)
5206 (compute_variant_fields_inner, compute_variant_fields): New
5207 functions.
5208 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
5209 Use resolved_type after type is made.
5210 (operator==): Add new cases.
5211 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
5212 (struct discriminant_range, struct variant, struct variant_part):
5213 New.
5214 (union dynamic_prop_data) <variant_parts, original_type>: New
5215 members.
5216 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
5217 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
5218 constants.
5219 * value.c (unpack_bits_as_long): Now public.
5220 * value.h (unpack_bits_as_long): Declare.
5221
675127ec
TT
52222020-04-24 Tom Tromey <tromey@adacore.com>
5223
5224 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
5225 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
5226
9852ceef
HD
52272020-04-24 Hannes Domani <ssbssa@yahoo.de>
5228
5229 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
5230
7632c6ce
KR
52312020-04-24 Kamil Rytarowski <n54@gmx.com>
5232
5233 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
5234 (remove_fork_catchpoint, post_startup_inferior)
5235 (post_attach): Move...
5236 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
5237 (remove_fork_catchpoint, post_startup_inferior)
5238 (post_attach): ...here.
5239 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
5240 (remove_fork_catchpoint, post_startup_inferior)
5241 (post_attach): Move...
5242 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
5243 (remove_fork_catchpoint, post_startup_inferior)
5244 (post_attach): ...here.
5245
7be2bb4f
TT
52462020-04-24 Tom Tromey <tromey@adacore.com>
5247
5248 * nat/windows-nat.h (struct windows_thread_info)
5249 <pc_adjusted>: New member.
5250 * windows-nat.c (windows_fetch_one_register): Check
5251 pc_adjusted.
5252 (windows_nat_target::get_windows_debug_event)
5253 (windows_nat_target::wait): Set pc_adjusted.
5254
f80cb3b4
TV
52552020-04-24 Tom de Vries <tdevries@suse.de>
5256
5257 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
5258 Run gdb-add-index inside temp dir.
5259
29514b87
TT
52602020-04-23 Tom Tromey <tromey@adacore.com>
5261
5262 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
5263 in loop.
5264
5939967b
LM
52652020-04-23 Luis Machado <luis.machado@linaro.org>
5266
5267 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
5268 get_frame_register instead of gdbarch_unwind_pc.
5269
70bc38f5
TV
52702020-04-23 Tom de Vries <tdevries@suse.de>
5271
5272 * symtab.c (lookup_global_symbol): Prefer def over decl.
5273
de82891c
TV
52742020-04-23 Tom de Vries <tdevries@suse.de>
5275
5276 PR symtab/25807
5277 * block.c (best_symbol, better_symbol): Promote to external.
5278 * block.h (best_symbol, better_symbol): Declare.
5279 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
5280 decl.
5281
ecc6c606
TT
52822020-04-23 Tom Tromey <tromey@adacore.com>
5283
5284 PR ada/25837:
5285 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
5286 "const char *", not a "const std::string &".
5287 <name_and_matcher::operator==>: Update.
5288 * unittests/lookup_name_info-selftests.c: Change type of
5289 "result".
5290
740480b8
TT
52912020-04-23 Tom Tromey <tom@tromey.com>
5292
5293 * inferior.h (iterate_over_inferiors): Don't declare.
5294 * inferior.c (iterate_over_inferiors): Remove.
5295 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
5296 Remove.
5297 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
5298 use iterate_over_inferiors.
5299 (darwin_resume_inferior_it)
5300 (struct resume_inferior_threads_param)
5301 (darwin_resume_inferior_threads_it): Remove.
5302 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
5303
ae3ab1f0
TV
53042020-04-23 Tom de Vries <tdevries@suse.de>
5305
5306 * blockframe.c (find_pc_partial_function): Use
5307 find_pc_sect_compunit_symtab rather than
5308 objfile->sf->qf->find_pc_sect_compunit_symtab.
5309
317d2668
TV
53102020-04-22 Tom de Vries <tdevries@suse.de>
5311
5312 PR symtab/25764
5313 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
5314 in psymtabs.
5315
eea9e357
TV
53162020-04-22 Tom de Vries <tdevries@suse.de>
5317
5318 PR symtab/25801
5319 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
5320 symtabs.
5321
3d5afab3
TV
53222020-04-22 Tom de Vries <tdevries@suse.de>
5323
5324 PR symtab/25700
5325 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
5326 CU if already created.
5327
d43b7a2d
TBA
53282020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5329
5330 * infrun.c (displaced_step_fixup): Switch to the event_thread
5331 before calling displaced_step_restore, not after.
5332
d89edf9b
MM
53332020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5334
5335 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
5336 its inferior is not recorded by us.
5337 (record_btrace_target_open): Replace call to
5338 all_non_exited_threads () with call to current_inferior
5339 ()->non_exited_threads ().
5340 (record_btrace_target::stop_recording): Likewise.
5341 (record_btrace_target::close): Likewise.
5342 (record_btrace_target::wait): Likewise.
5343 (record_btrace_target::record_stop_replaying): Likewise.
5344
5897fd49
MM
53452020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5346
5347 * btrace.c (btrace_enable): Throw an error on double enables and
5348 when enabling recording fails.
5349 (btrace_disable): Throw an error if the thread is not recorded.
5350
1a476b6d
MM
53512020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5352
5353 * record-btrace.c (record_btrace_target::fetch_registers): Forward
5354 request if we do not have a thread_info.
5355
4778a5f8
TV
53562020-04-21 Tom de Vries <tdevries@suse.de>
5357
5358 PR gdb/25471
5359 * thread.c
5360 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
5361 exception in get_frame_id.
5362
0fa7617d
TT
53632020-04-20 Tom Tromey <tromey@adacore.com>
5364
5365 * python/python.c (struct gdbpy_event): Mark move constructor as
5366 noexcept.
5367 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
5368 constructor as noexcept.
5369 * completer.h (struct completion_result): Mark move constructor as
5370 noexcept.
5371 * completer.c (completion_result::completion_result): Use
5372 initialization style. Don't call reset_match_list.
5373
ad23bda0
MS
53742020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
5375
5376 * MAINTAINERS (Write After Approval): Add myself.
5377
45e1f031
TT
53782020-04-18 Tom Tromey <tom@tromey.com>
5379
5380 * windows-tdep.c (init_w32_command_list)
5381 (w32_prefix_command_valid): Restore.
5382 (_initialize_windows_tdep): Call init_w32_command_list.
5383
08feed99
TT
53842020-04-18 Tom Tromey <tom@tromey.com>
5385
5386 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
5387 * value.c (value_fn_field): Update.
5388 * valops.c (find_function_in_inferior)
5389 (value_allocate_space_in_inferior): Update.
5390 * tui/tui-winsource.c (tui_update_source_windows_with_line):
5391 Update.
5392 * tui/tui-source.c (tui_source_window::set_contents): Update.
5393 * symtab.c (lookup_global_or_static_symbol)
5394 (find_function_start_sal_1, skip_prologue_sal)
5395 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
5396 * symmisc.c (dump_msymbols, dump_symtab_1)
5397 (maintenance_print_one_line_table): Update.
5398 * symfile.c (init_entry_point_info, section_is_mapped)
5399 (list_overlays_command, simple_read_overlay_table)
5400 (simple_overlay_update_1): Update.
5401 * stap-probe.c (handle_stap_probe): Update.
5402 * stabsread.c (dbx_init_float_type, define_symbol)
5403 (read_one_struct_field, read_enum_type, read_range_type): Update.
5404 * source.c (info_line_command): Update.
5405 * python/python.c (gdbpy_source_objfile_script)
5406 (gdbpy_execute_objfile_script): Update.
5407 * python/py-type.c (save_objfile_types): Update.
5408 * python/py-objfile.c (py_free_objfile): Update.
5409 * python/py-inferior.c (python_new_objfile): Update.
5410 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
5411 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
5412 (maintenance_check_psymtabs): Update.
5413 * printcmd.c (info_address_command): Update.
5414 * objfiles.h (struct objfile) <arch>: New method, from
5415 get_objfile_arch.
5416 (get_objfile_arch): Don't declare.
5417 * objfiles.c (get_objfile_arch): Remove.
5418 (filter_overlapping_sections): Update.
5419 * minsyms.c (msymbol_is_function): Update.
5420 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
5421 (output_nondebug_symbol): Update.
5422 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
5423 (mdebug_expand_psymtab): Update.
5424 * machoread.c (macho_add_oso_symfile): Update.
5425 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
5426 Update.
5427 * linux-fork.c (checkpoint_command): Update.
5428 * linespec.c (convert_linespec_to_sals): Update.
5429 * jit.c (finalize_symtab): Update.
5430 * infrun.c (insert_exception_resume_from_probe): Update.
5431 * ia64-tdep.c (ia64_find_unwind_table): Update.
5432 * hppa-tdep.c (internalize_unwinds): Update.
5433 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
5434 Update.
5435 * gcore.c (call_target_sbrk): Update.
5436 * elfread.c (record_minimal_symbol, elf_symtab_read)
5437 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
5438 (elf_gnu_ifunc_resolve_by_got): Update.
5439 * dwarf2/read.c (create_addrmap_from_index)
5440 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
5441 (read_debug_names_from_section)
5442 (process_psymtab_comp_unit_reader, add_partial_symbol)
5443 (add_partial_subprogram, process_full_comp_unit)
5444 (read_file_scope, read_func_scope, read_lexical_block_scope)
5445 (read_call_site_scope, dwarf2_ranges_read)
5446 (dwarf2_record_block_ranges, dwarf2_add_field)
5447 (mark_common_block_symbol_computed, read_tag_pointer_type)
5448 (read_tag_string_type, dwarf2_init_float_type)
5449 (dwarf2_init_complex_target_type, read_base_type)
5450 (partial_die_info::read, partial_die_info::read)
5451 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
5452 (dwarf2_fetch_die_loc_sect_off): Update.
5453 * dwarf2/loc.c (dwarf2_find_location_expression)
5454 (class dwarf_evaluate_loc_desc, rw_pieced_value)
5455 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
5456 (dwarf2_loc_desc_get_symbol_read_needs)
5457 (locexpr_describe_location_piece, locexpr_describe_location_1)
5458 (loclist_describe_location): Update.
5459 * dwarf2/index-write.c (write_debug_names): Update.
5460 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
5461 * dtrace-probe.c (dtrace_process_dof): Update.
5462 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
5463 (process_one_symbol): Update.
5464 * ctfread.c (ctf_init_float_type, read_base_type): Update.
5465 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
5466 (coff_read_enum_type): Update.
5467 * cli/cli-cmds.c (edit_command, list_command): Update.
5468 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
5469 * breakpoint.c (create_overlay_event_breakpoint)
5470 (create_longjmp_master_breakpoint)
5471 (create_std_terminate_master_breakpoint)
5472 (create_exception_master_breakpoint, get_sal_arch): Update.
5473 * block.c (block_gdbarch): Update.
5474 * annotate.c (annotate_source_line): Update.
5475
0743fc83
TT
54762020-04-17 Tom Tromey <tromey@adacore.com>
5477
5478 * auto-load.c (show_auto_load_cmd): Remove.
5479 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
5480 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
5481 (maintenance_print_arc_command): Remove.
5482 * tui/tui-win.c (tui_command): Remove.
5483 (tui_get_cmd_list): Use add_basic_prefix_cmd.
5484 * tui/tui-layout.c (tui_layout_command): Remove.
5485 (_initialize_tui_layout): Use add_basic_prefix_cmd.
5486 * python/python.c (user_set_python, user_show_python): Remove.
5487 (_initialize_python): Use add_basic_prefix_cmd,
5488 add_show_prefix_cmd.
5489 * guile/guile.c (set_guile_command, show_guile_command): Remove.
5490 (install_gdb_commands): Use add_basic_prefix_cmd,
5491 add_show_prefix_cmd.
5492 (info_guile_command): Remove.
5493 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
5494 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
5495 add_show_prefix_cmd.
5496 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
5497 Remove do_set and do_show parameters.
5498 * cli/cli-style.c (set_style, show_style): Remove.
5499 (_initialize_cli_style): Use add_basic_prefix_cmd,
5500 add_show_prefix_cmd.
5501 (cli_style_option::add_setshow_commands): Remove do_set and
5502 do_show parameters.
5503 (cli_style_option::add_setshow_commands): Use
5504 add_basic_prefix_cmd, add_show_prefix_cmd.
5505 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
5506 (set_style_name): Remove.
5507 * cli/cli-dump.c (dump_command, append_command): Remove.
5508 (srec_dump_command, ihex_dump_command, verilog_dump_command)
5509 (tekhex_dump_command, binary_dump_command)
5510 (binary_append_command): Remove.
5511 (_initialize_cli_dump): Use add_basic_prefix_cmd.
5512 * windows-tdep.c (w32_prefix_command_valid): Remove global.
5513 (init_w32_command_list): Remove; move into ...
5514 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
5515 * valprint.c (set_print, show_print, set_print_raw)
5516 (show_print_raw): Remove.
5517 (_initialize_valprint): Use add_basic_prefix_cmd,
5518 add_show_prefix_cmd.
5519 * typeprint.c (set_print_type, show_print_type): Remove.
5520 (_initialize_typeprint): Use add_basic_prefix_cmd,
5521 add_show_prefix_cmd.
5522 * record.c (set_record_command, show_record_command): Remove.
5523 (_initialize_record): Use add_basic_prefix_cmd,
5524 add_show_prefix_cmd.
5525 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
5526 add_show_prefix_cmd.
5527 (info_command, show_command, set_debug, show_debug): Remove.
5528 * top.h (set_history, show_history): Don't declare.
5529 * top.c (set_history, show_history): Remove.
5530 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
5531 (unset_tdesc_cmd): Remove.
5532 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
5533 add_show_prefix_cmd.
5534 * symtab.c (info_module_command): Remove.
5535 (_initialize_symtab): Use add_basic_prefix_cmd.
5536 * symfile.c (overlay_command): Remove.
5537 (_initialize_symfile): Use add_basic_prefix_cmd.
5538 * sparc64-tdep.c (info_adi_command): Remove.
5539 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
5540 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
5541 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
5542 add_show_prefix_cmd.
5543 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
5544 (_initialize_serial): Use add_basic_prefix_cmd,
5545 add_show_prefix_cmd.
5546 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
5547 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
5548 add_show_prefix_cmd.
5549 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
5550 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
5551 add_show_prefix_cmd.
5552 * riscv-tdep.c (show_riscv_command, set_riscv_command)
5553 (show_debug_riscv_command, set_debug_riscv_command): Remove.
5554 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
5555 add_show_prefix_cmd.
5556 * remote.c (remote_command, set_remote_cmd): Remove.
5557 (_initialize_remote): Use add_basic_prefix_cmd.
5558 * record-full.c (set_record_full_command)
5559 (show_record_full_command): Remove.
5560 (_initialize_record_full): Use add_basic_prefix_cmd,
5561 add_show_prefix_cmd.
5562 * record-btrace.c (cmd_set_record_btrace)
5563 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
5564 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
5565 (cmd_show_record_btrace_pt): Remove.
5566 (_initialize_record_btrace): Use add_basic_prefix_cmd,
5567 add_show_prefix_cmd.
5568 * ravenscar-thread.c (set_ravenscar_command)
5569 (show_ravenscar_command): Remove.
5570 (_initialize_ravenscar): Use add_basic_prefix_cmd,
5571 add_show_prefix_cmd.
5572 * mips-tdep.c (show_mips_command, set_mips_command)
5573 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
5574 add_show_prefix_cmd.
5575 * maint.c (maintenance_command, maintenance_info_command)
5576 (maintenance_check_command, maintenance_print_command)
5577 (maintenance_set_cmd, maintenance_show_cmd): Remove.
5578 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
5579 add_show_prefix_cmd.
5580 (show_per_command_cmd): Remove.
5581 * maint-test-settings.c (maintenance_set_test_settings_cmd):
5582 Remove.
5583 (maintenance_show_test_settings_cmd): Remove.
5584 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
5585 add_show_prefix_cmd.
5586 * maint-test-options.c (maintenance_test_options_command):
5587 Remove.
5588 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
5589 * macrocmd.c (macro_command): Remove
5590 (_initialize_macrocmd): Use add_basic_prefix_cmd.
5591 * language.c (set_check, show_check): Remove.
5592 (_initialize_language): Use add_basic_prefix_cmd,
5593 add_show_prefix_cmd.
5594 * infcmd.c (unset_command): Remove.
5595 (_initialize_infcmd): Use add_basic_prefix_cmd.
5596 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
5597 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
5598 add_show_prefix_cmd.
5599 * go32-nat.c (go32_info_dos_command): Remove.
5600 (_initialize_go32_nat): Use add_basic_prefix_cmd.
5601 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
5602 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
5603 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
5604 (_initialize_frame): Use add_basic_prefix_cmd,
5605 add_show_prefix_cmd.
5606 * dcache.c (set_dcache_command, show_dcache_command): Remove.
5607 (_initialize_dcache): Use add_basic_prefix_cmd,
5608 add_show_prefix_cmd.
5609 * cp-support.c (maint_cplus_command): Remove.
5610 (_initialize_cp_support): Use add_basic_prefix_cmd.
5611 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
5612 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
5613 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
5614 add_basic_prefix_cmd, add_show_prefix_cmd.
5615 * breakpoint.c (save_command): Remove.
5616 (_initialize_breakpoint): Use add_basic_prefix_cmd.
5617 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
5618 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
5619 add_show_prefix_cmd.
5620 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
5621 (set_ada_command, show_ada_command): Remove.
5622 (_initialize_ada_language): Use add_basic_prefix_cmd,
5623 add_show_prefix_cmd.
5624 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
5625
3557f442
KR
56262020-04-16 Kamil Rytarowski <n54@gmx.com>
5627
5628 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
5629 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
5630
16197208
SM
56312020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
5632
5633 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
5634 warning messages.
5635
00ac85d3
SM
56362020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
5637
5638 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
5639 import table is not at beginning of .idata section.
5640
381ce63f
PA
56412020-04-16 Pedro Alves <palves@redhat.com>
5642
5643 * inferior.c (delete_inferior): Use delete operator directly
5644 instead of delete_program_space.
5645 * progspace.c (add_program_space): New, factored out from
5646 program_space::program_space.
5647 (remove_program_space): New, factored out from
5648 delete_program_space.
5649 (program_space::program_space): Remove intro comment. Rewrite.
5650 (program_space::~program_space): Remove intro comment. Call
5651 remove_program_space.
5652 (delete_program_space): Delete.
5653 * progspace.h (program_space::program_space): Make explicit. Move
5654 intro comment here, adjusted.
5655 (program_space::~program_space): Move intro comment here,
5656 adjusted.
5657 (delete_program_space): Remove.
5658
a010605f
TT
56592020-04-16 Tom Tromey <tromey@adacore.com>
5660
5661 * windows-nat.c (windows_nat::handle_access_violation): New
5662 function.
5663 * nat/windows-nat.h (handle_access_violation): Declare.
5664 * nat/windows-nat.c (handle_exception): Move Cygwin code to
5665 windows-nat.c. Call handle_access_violation.
5666
efba5c23
TV
56672020-04-16 Tom de Vries <tdevries@suse.de>
5668
5669 PR symtab/25791
5670 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
5671 CUs without psymtab.
5672
97ed802d
KB
56732020-04-16 Kevin Buettner <kevinb@redhat.com>
5674
5675 * python/python.c (do_start_initialization): Don't call
5676 PyEval_InitThreads for Python 3.9 and beyond.
5677
c7d64809
KR
56782020-04-15 Kamil Rytarowski <n54@gmx.com>
5679
5680 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
5681 thread functions.
5682 (obsd_nat_target::wait): Likewise.
5683
ce127a96
TT
56842020-04-15 Tom Tromey <tromey@adacore.com>
5685
5686 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
5687 (DEBUG_EXCEPT): Use debug_printf.
5688
99f1bc6a
AB
56892020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
5690
5691 * completer.c (class completion_tracker::completion_hash_entry)
5692 <hash_name>: New member function.
5693 (completion_tracker::discard_completions): New callback to hash a
5694 completion_hash_entry, pass this to htab_create_alloc.
5695
a0e9b532
JT
56962016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
5697
5698 * windows-nat.c (windows_make_so): Warn rather than stopping with
5699 an error if realpath() fails.
5700
06ca5dd4
KR
57012020-04-14 Kamil Rytarowski <n54@gmx.com>
5702
5703 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
5704 (nbsd_nat_target::info_proc): Add do_status.
5705
194d088f
TV
57062020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
5707 Tom de Vries <tdevries@suse.de>
5708
5709 PR symtab/25718
5710 * psympriv.h (struct partial_symtab::read_symtab)
5711 (struct partial_symtab::expand_psymtab)
5712 (struct partial_symtab::read_dependencies): Update comments.
5713 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
5714 read_symtab for includer.
5715 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
5716 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
5717 (struct dwarf2_include_psymtab::m_readin): Remove.
5718 (struct dwarf2_include_psymtab::includer): New member function.
5719 (dwarf2_psymtab::expand_psymtab): Assert !readin.
5720
c1a66c06
TV
57212020-04-14 Tom de Vries <tdevries@suse.de>
5722
5723 PR symtab/25720
5724 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
5725 with NULL symbol_matcher and lookup_name.
5726 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
5727 and lookup_name.
5728 * dwarf2/read.c (dw2_expand_symtabs_matching)
5729 (dw2_debug_names_expand_symtabs_matching): Same.
5730 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
5731 Make lookup_name a pointer. Update comment.
5732 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
5733 lookup_name being a pointer.
5734 * symfile.c (expand_symtabs_matching): Same.
5735 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
5736 * linespec.c (iterate_over_all_matching_symtabs): Same.
5737
400b5eca
TT
57382020-04-13 Tom Tromey <tom@tromey.com>
5739
5740 * run-on-main-thread.c: Update include.
5741 * unittests/main-thread-selftests.c: Update include.
5742 * tui/tui-win.c: Update include.
5743 * tui/tui-io.c: Update include.
5744 * tui/tui-interp.c: Update include.
5745 * tui/tui-hooks.c: Update include.
5746 * top.h: Update include.
5747 * top.c: Update include.
5748 * ser-base.c: Update include.
5749 * remote.c: Update include.
5750 * remote-notif.c: Update include.
5751 * remote-fileio.c: Update include.
5752 * record-full.c: Update include.
5753 * record-btrace.c: Update include.
5754 * python/python.c: Update include.
5755 * posix-hdep.c: Update include.
5756 * mingw-hdep.c: Update include.
5757 * mi/mi-main.c: Update include.
5758 * mi/mi-interp.c: Update include.
5759 * main.c: Update include.
5760 * linux-nat.c: Update include.
5761 * interps.c: Update include.
5762 * infrun.c: Update include.
5763 * inf-loop.c: Update include.
5764 * event-top.c: Update include.
5765 * event-loop.c: Move to ../gdbsupport/.
5766 * event-loop.h: Move to ../gdbsupport/.
5767 * async-event.h: Update include.
5768 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
5769
93b54c8e
TT
57702020-04-13 Tom Tromey <tom@tromey.com>
5771
5772 * tui/tui-win.c: Include async-event.h.
5773 * remote.c: Include async-event.h.
5774 * remote-notif.c: Include async-event.h.
5775 * record-full.c: Include async-event.h.
5776 * record-btrace.c: Include async-event.h.
5777 * infrun.c: Include async-event.h.
5778 * event-top.c: Include async-event.h.
5779 * event-loop.h: Move some declarations to async-event.h.
5780 * event-loop.c: Don't include ser-event.h or top.h. Move some
5781 code to async-event.c.
5782 * async-event.h: New file.
5783 * async-event.c: New file.
5784 * Makefile.in (COMMON_SFILES): Add async-event.c.
5785 (HFILES_NO_SRCDIR): Add async-event.h.
5786
c1cd3163
TT
57872020-04-13 Tom Tromey <tom@tromey.com>
5788
5789 * utils.c (flush_streams): New function.
5790 * event-loop.c (gdb_wait_for_event): Call flush_streams.
5791
29f2bf4f
TT
57922020-04-13 Tom Tromey <tom@tromey.com>
5793
5794 * event-loop.c (handle_file_event): Use warning, not
5795 printf_unfiltered.
5796
98029d02
TT
57972020-04-13 Tom Tromey <tom@tromey.com>
5798
5799 * event-loop.c: Include <chrono>.
5800
06cc9596
TT
58012020-04-13 Tom Tromey <tom@tromey.com>
5802
5803 * gdb_select.h: Move to ../gdbsupport/.
5804 * event-loop.c: Update include path.
5805 * top.c: Update include path.
5806 * ser-base.c: Update include path.
5807 * ui-file.c: Update include path.
5808 * ser-tcp.c: Update include path.
5809 * guile/scm-ports.c: Update include path.
5810 * posix-hdep.c: Update include path.
5811 * ser-unix.c: Update include path.
5812 * gdb_usleep.c: Update include path.
5813 * mingw-hdep.c: Update include path.
5814 * inflow.c: Update include path.
5815 * infrun.c: Update include path.
5816 * event-top.c: Update include path.
5817
8ae8e197
TT
58182020-04-13 Tom Tromey <tom@tromey.com>
5819
5820 * configure: Rebuild.
5821 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
5822
58cf28e8
TT
58232020-04-13 Tom Tromey <tom@tromey.com>
5824
5825 * event-loop.h (start_event_loop): Don't declare.
5826 * event-loop.c (start_event_loop): Move...
5827 * main.c (start_event_loop): ...here. Now static.
5828
b7f999ae
SDJ
58292020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
5830
5831 * MAINTAINERS: Update my email address.
5832
1085dfd4
KR
58332020-04-12 Kamil Rytarowski <n54@gmx.com>
5834
5835 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
5836 IP_ALL.
5837
49d1d1f5
KR
58382020-04-12 Kamil Rytarowski <n54@gmx.com>
5839
5840 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 5841 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 5842
b4848d2a
KR
58432020-04-12 Kamil Rytarowski <n54@gmx.com>
5844
5845 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 5846 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 5847
51c133d5
KR
58482020-04-12 Kamil Rytarowski <n54@gmx.com>
5849
5850 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
5851
54b8cbd0
KR
58522020-04-11 Kamil Rytarowski <n54@gmx.com>
5853
5854 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
5855 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
5856 (nbsd_nat_target::info_proc): New functions.
5857 * nbsd-nat.c (kinfo_get_vmmap): New function.
5858 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
5859 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
5860 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
5861 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
5862 functions.
5863 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
5864 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
5865 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
5866 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
5867 (KINFO_VME_FLAG_GROWS_DOWN): New.
5868
cf83625d
AS
58692020-04-10 Artur Shepilko <nomadbyte@gmail.com>
5870
5871 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
5872 bit shift.
5873
0c4311ab
TT
58742020-04-10 Tom Tromey <tromey@adacore.com>
5875
5876 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
5877
3e65b3e9
TT
58782020-04-10 Tom Tromey <tromey@adacore.com>
5879
5880 * symtab.c (get_symbol_address, get_msymbol_address): Skip
5881 separate debug files.
5882
13302e95
HD
58832020-04-10 Hannes Domani <ssbssa@yahoo.de>
5884
5885 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5886 Move to...
5887 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5888 ... here.
5889 * windows-nat.c (windows_nat_target::get_windows_debug_event):
5890 Check for STATUS_WX86_BREAKPOINT.
5891 (windows_nat_target::wait): Same.
5892
bdfc1e8a
TV
58932020-04-10 Tom de Vries <tdevries@suse.de>
5894
5895 PR cli/25808
5896 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
5897
f4460aec
SM
58982020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
5899
5900 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
5901 (Write After Approval): Remove Tom de Vries.
5902
a25198bb
BE
59032020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
5904
5905 revert partially:
5906 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5907
aac66a4c
SM
5908 * buildsym.c (record_line): Fix undefined behavior and preserve
5909 lines at eof.
a25198bb 5910
206c98a6
KR
59112020-04-09 Kamil Rytarowski <n54@gmx.com>
5912
5913 * auxv.h (svr4_auxv_parse): New.
5914 * auxv.c (default_auxv_parse): Split into default_auxv_parse
5915 and generic_auxv_parse.
5916 (svr4_auxv_parse): Add.
5917 * obsd-tdep.c: Include "auxv.h".
5918 (obsd_auxv_parse): Remove.
5919 (obsd_init_abi): Remove comment.
5920 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
5921 from `obsd_auxv_parse' to `svr4_auxv_parse'.
5922 * nbsd-tdep.c: Include "auxv.h".
5923 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
5924
71fbdbaf
TT
59252020-04-08 Tom Tromey <tromey@adacore.com>
5926
5927 * nat/windows-nat.h (last_wait_event): Don't declare.
5928 (wait_for_debug_event): Update comment.
5929 * nat/windows-nat.c (last_wait_event): Now static.
5930
2c1d95e8
TT
59312020-04-08 Tom Tromey <tromey@adacore.com>
5932
5933 * windows-nat.c (wait_for_debug_event): Move to
5934 nat/windows-nat.c.
5935 * nat/windows-nat.h (wait_for_debug_event): Declare.
5936 * nat/windows-nat.c (wait_for_debug_event): Move from
5937 windows-nat.c. No longer static.
5938
d2977bc4
TT
59392020-04-08 Tom Tromey <tromey@adacore.com>
5940
5941 * windows-nat.c (get_windows_debug_event): Use
5942 fetch_pending_stop.
5943 * nat/windows-nat.h (fetch_pending_stop): Declare.
5944 * nat/windows-nat.c (fetch_pending_stop): New function.
5945
e758e19c
TT
59462020-04-08 Tom Tromey <tromey@adacore.com>
5947
5948 * windows-nat.c (windows_continue): Use matching_pending_stop and
5949 continue_last_debug_event.
5950 * nat/windows-nat.h (matching_pending_stop)
5951 (continue_last_debug_event): Declare.
5952 * nat/windows-nat.c (DEBUG_EVENTS): New define.
5953 (matching_pending_stop, continue_last_debug_event): New
5954 functions.
5955
8d30e395
TT
59562020-04-08 Tom Tromey <tromey@adacore.com>
5957
5958 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
5959 (handle_exception_result): Move to nat/windows-nat.h.
5960 (DEBUG_EXCEPTION_SIMPLE): Remove.
5961 (windows_nat::handle_ms_vc_exception): New function.
5962 (handle_exception): Move to nat/windows-nat.c.
5963 (get_windows_debug_event): Update.
5964 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
5965 nat/windows-nat.c.
5966 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
5967 (handle_exception_result): Move from windows-nat.c.
5968 (handle_exception): Declare.
5969 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
5970 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
5971 windows-nat.c.
5972
29de418d
TT
59732020-04-08 Tom Tromey <tromey@adacore.com>
5974
5975 * windows-nat.c (exception_count, event_count): Remove.
5976 (handle_exception, get_windows_debug_event)
5977 (do_initial_windows_stuff): Update.
5978
a816ba18
TT
59792020-04-08 Tom Tromey <tromey@adacore.com>
5980
5981 * windows-nat.c (windows_nat::handle_load_dll)
5982 (windows_nat::handle_unload_dll): Rename. No longer static.
5983 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
5984 Declare.
5985
a00caa12
TT
59862020-04-08 Tom Tromey <tromey@adacore.com>
5987
5988 * complaints.h (stop_whining): Declare at top-level.
5989 (complaint): Don't declare stop_whining.
5990
d41b524f
TT
59912020-04-08 Tom Tromey <tromey@adacore.com>
5992
5993 * windows-nat.c (windows_nat::handle_output_debug_string):
5994 Rename. No longer static.
5995 * nat/windows-nat.h (handle_output_debug_string): Declare.
5996
3c76026d
TT
59972020-04-08 Tom Tromey <tromey@adacore.com>
5998
5999 * windows-nat.c (current_process_handle, current_process_id)
6000 (main_thread_id, last_sig, current_event, last_wait_event)
6001 (current_windows_thread, desired_stop_thread_id, pending_stops)
6002 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
6003 (display_selectors, fake_create_process)
6004 (get_windows_debug_event): Update.
6005 * nat/windows-nat.h (current_process_handle, current_process_id)
6006 (main_thread_id, last_sig, current_event, last_wait_event)
6007 (current_windows_thread, desired_stop_thread_id, pending_stops)
6008 (struct pending_stop, siginfo_er): Move from windows-nat.c.
6009 * nat/windows-nat.c (current_process_handle, current_process_id)
6010 (main_thread_id, last_sig, current_event, last_wait_event)
6011 (current_windows_thread, desired_stop_thread_id, pending_stops)
6012 (siginfo_er): New globals. Move from windows-nat.c.
6013
9d8679cc
TT
60142020-04-08 Tom Tromey <tromey@adacore.com>
6015
6016 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
6017 (handle_load_dll): Update.
6018 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
6019
28688adf
TT
60202020-04-08 Tom Tromey <tromey@adacore.com>
6021
6022 * windows-nat.c (enum thread_disposition_type): Move to
6023 nat/windows-nat.h.
6024 (windows_nat::thread_rec): Rename from thread_rec. No longer
6025 static.
6026 (windows_add_thread, windows_nat_target::fetch_registers)
6027 (windows_nat_target::store_registers, handle_exception)
6028 (windows_nat_target::resume, get_windows_debug_event)
6029 (windows_nat_target::get_tib_address)
6030 (windows_nat_target::thread_name)
6031 (windows_nat_target::thread_alive): Update.
6032 * nat/windows-nat.h (enum thread_disposition_type): Move from
6033 windows-nat.c.
6034 (thread_rec): Declare.
6035
4834dad0
TT
60362020-04-08 Tom Tromey <tromey@adacore.com>
6037
6038 * windows-nat.c: Add "using namespace".
6039 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
6040 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
6041
65bafd5b
TT
60422020-04-08 Tom Tromey <tromey@adacore.com>
6043
6044 * nat/windows-nat.h (struct windows_thread_info): Declare
6045 destructor.
6046 * nat/windows-nat.c (~windows_thread_info): New.
6047
0a4afda3
TT
60482020-04-08 Tom Tromey <tromey@adacore.com>
6049
6050 PR gdb/22992
6051 * windows-nat.c (current_event): Update comment.
6052 (last_wait_event, desired_stop_thread_id): New globals.
6053 (struct pending_stop): New.
6054 (pending_stops): New global.
6055 (windows_nat_target) <stopped_by_sw_breakpoint>
6056 <supports_stopped_by_sw_breakpoint>: New methods.
6057 (windows_fetch_one_register): Add assertions. Adjust PC.
6058 (windows_continue): Handle pending stops. Suspend other threads
6059 when stepping. Use last_wait_event
6060 (wait_for_debug_event): New function.
6061 (get_windows_debug_event): Use wait_for_debug_event. Handle
6062 pending stops. Queue spurious stops.
6063 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
6064 (windows_nat_target::kill): Use wait_for_debug_event.
6065 * nat/windows-nat.h (struct windows_thread_info)
6066 <stopped_at_software_breakpoint>: New field.
6067 * nat/windows-nat.c (windows_thread_info::resume): Clear
6068 stopped_at_software_breakpoint.
6069
8e61ebec
TT
60702020-04-08 Tom Tromey <tromey@adacore.com>
6071
6072 * windows-nat.c (enum thread_disposition_type): New.
6073 (thread_rec): Replace "get_context" parameter with "disposition";
6074 change type.
6075 (windows_add_thread, windows_nat_target::fetch_registers)
6076 (windows_nat_target::store_registers, handle_exception)
6077 (windows_nat_target::resume, get_windows_debug_event)
6078 (windows_nat_target::get_tib_address)
6079 (windows_nat_target::thread_name)
6080 (windows_nat_target::thread_alive): Update.
6081
98a03287
TT
60822020-04-08 Tom Tromey <tromey@adacore.com>
6083
6084 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
6085 (windows_continue): Use windows_continue::resume.
6086 * nat/windows-nat.h (struct windows_thread_info) <suspend,
6087 resume>: Declare new methods.
6088 * nat/windows-nat.c: New file.
6089 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
6090
7c7411bc
TT
60912020-04-08 Tom Tromey <tromey@adacore.com>
6092
6093 * windows-nat.c (windows_add_thread, windows_delete_thread)
6094 (windows_nat_target::fetch_registers)
6095 (windows_nat_target::store_registers, fake_create_process)
6096 (windows_nat_target::resume, windows_nat_target::resume)
6097 (get_windows_debug_event, windows_nat_target::wait)
6098 (windows_nat_target::pid_to_str)
6099 (windows_nat_target::get_tib_address)
6100 (windows_nat_target::get_ada_task_ptid)
6101 (windows_nat_target::thread_name)
6102 (windows_nat_target::thread_alive): Use lwp, not tid.
6103
2950fdf7
TT
61042020-04-08 Tom Tromey <tromey@adacore.com>
6105
6106 * windows-nat.c (handle_exception)
6107 (windows_nat_target::thread_name): Update.
6108 * nat/windows-nat.h (windows_thread_info): Remove destructor.
6109 <name>: Now unique_xmalloc_ptr.
6110
62fe396b
TT
61112020-04-08 Tom Tromey <tromey@adacore.com>
6112
6113 * windows-nat.c (thread_rec)
6114 (windows_nat_target::fetch_registers): Update.
6115 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
6116 Update comment.
6117 <debug_registers_changed, reload_context>: Now bool.
6118
e9534bd2
TT
61192020-04-08 Tom Tromey <tromey@adacore.com>
6120
6121 * windows-nat.c (windows_add_thread): Use new.
6122 (windows_init_thread_list, windows_delete_thread): Use delete.
6123 (get_windows_debug_event): Update.
6124 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
6125 destructor, and initializers.
6126
ae1f8880
TT
61272020-04-08 Tom Tromey <tromey@adacore.com>
6128
6129 * windows-nat.c (struct windows_thread_info): Remove.
6130 * nat/windows-nat.h: New file.
6131
55a1e039
TT
61322020-04-08 Tom Tromey <tromey@adacore.com>
6133
6134 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
6135 (thread_rec, windows_add_thread, windows_delete_thread)
6136 (windows_continue): Update.
6137
93366324
TT
61382020-04-08 Tom Tromey <tromey@adacore.com>
6139
6140 * windows-nat.c (struct windows_thread_info): Remove typedef.
6141 (thread_head): Remove.
6142 (thread_list): New global.
6143 (thread_rec, windows_add_thread, windows_init_thread_list)
6144 (windows_delete_thread, windows_continue): Update.
6145
0f2265e2
SM
61462020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6147
6148 * windows-tdep.h (windows_init_abi): Add comment.
6149 (cygwin_init_abi): New declaration.
6150 * windows-tdep.c: Split signal enumeration in two, one for
6151 Windows and one for Cygwin.
6152 (windows_gdb_signal_to_target): Only deal with signal of the
6153 Windows OS ABI.
6154 (cygwin_gdb_signal_to_target): New function.
6155 (windows_init_abi): Rename to windows_init_abi_common, don't set
6156 gdb_signal_to_target gdbarch method. Add new new function with
6157 this name.
6158 (cygwin_init_abi): New function.
6159 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
6160 comment. Don't call windows_init_abi.
6161 (amd64_windows_init_abi): Add comment, call windows_init_abi.
6162 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
6163 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
6164 i386_windows_init_abi_common, don't call windows_init_abi. Add
6165 a new function of this name.
6166 (i386_cygwin_init_abi): New function.
6167 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
6168 OS ABI Cygwin.
6169
3810f182
SM
61702020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6171
6172 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
6173 parameter.c.
6174 (dwarf2_read_gdb_index): Update.
6175
063f8e80
KR
61762020-04-07 Kamil Rytarowski <n54@gmx.com>
6177
6178 * nbsd-tdep.c: Include "objfiles.h".
6179 (nbsd_skip_solib_resolver): New.
6180 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
6181
85a9510c 61822020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6183
6184 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
6185 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
6186 with DW_LLE_base_addressx are being emitted in DWARFv5.
6187 Add the newly added kind DW_LOC_OFFSET_PAIR also.
6188 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
6189 unsigned integer.
6190
9fc3eaae 61912020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6192
6193 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
6194 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
6195 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
6196 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
6197 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
6198 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
6199 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
6200
6201
41144253 62022020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6203
6204 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
6205 (read_loclist_index): New function definition.
6206 (lookup_loclist_base): New function definition.
6207 (read_loclist_header): New function definition.
6208 (dwarf2_cu): Add loclist_base and loclist_header field.
6209 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
6210 (read_full_die_1): Read the value of DW_AT_loclists_base.
6211 (read_attribute_reprocess): Handle DW_FORM_loclistx.
6212 (read_attribute_value): Handle DW_FORM_loclistx.
6213 (skip_one_die): Handle DW_FORM_loclistx.
6214 (loclist_header): New structure declaration.
6215 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
6216
9f4e76a4
SM
62172020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
6218
6219 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
6220 constructor. Remove `addr` parameter from other constructor and
6221 add `per_cu` parameter.
6222 * dwarf2/read.c (create_partial_symtab): Update.
6223
25c11aca
TV
62242020-04-07 Tom de Vries <tdevries@suse.de>
6225
6226 PR symtab/25796
6227 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
6228 (partial_die_info::fixup): Inherit has_const_value.
6229
5707e24b
TV
62302020-04-07 Tom de Vries <tdevries@suse.de>
6231
6232 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
6233 symbols without address.
6234
05f00e22
KR
62352020-04-06 Kamil Rytarowski <n54@gmx.com>
6236
6237 * nbsd-nat.h (struct thread_info): Add forward declaration.
6238 (nbsd_nat_target::thread_alive): Add.
6239 (nbsd_nat_target::thread_name): Likewise.
6240 (nbsd_nat_target::update_thread_list): Likewise.
6241 (update_thread_list::post_attach): Likewise.
6242 (post_attach::pid_to_str): Likewise.
6243 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
6244 (nbsd_thread_lister): Add.
6245 (nbsd_nat_target::thread_alive): Likewise.
6246 (nbsd_nat_target::thread_name): Likewise.
6247 (nbsd_add_threads): Likewise.
6248 (update_thread_list::post_attach): Likewise.
6249 (nbsd_nat_target::update_thread_list): Likewise.
6250 (post_attach::pid_to_str): Likewise.
6251
6ee448cc
TT
62522020-04-06 Tom Tromey <tromey@adacore.com>
6253
6254 * ada-valprint.c (print_variant_part): Extract the variant field.
6255 (print_field_values): Use the field as the outer value when
6256 recursing.
6257
dea34e8c
TT
62582020-04-06 Tom Tromey <tromey@adacore.com>
6259
6260 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
6261 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
6262 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
6263 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
6264 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
6265
93689ce9
TT
62662020-04-06 Tom Tromey <tromey@adacore.com>
6267
6268 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
6269 TYPE_CODE_ERROR.
6270
79743962
KR
62712020-04-06 Kamil Rytarowski <n54@gmx.com>
6272
6273 * nbsd-tdep.c: Include "gdbarch.h".
6274 Define enum with NetBSD signal numbers.
6275 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
6276 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
6277 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
6278 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
6279 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
6280 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
6281 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
6282 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
6283 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
6284 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
6285 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
6286 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
6287
9e7c9a03
HD
62882020-04-03 Hannes Domani <ssbssa@yahoo.de>
6289
6290 PR gdb/25325
6291 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
6292
d9e49b61
TT
62932020-04-03 Tom Tromey <tromey@adacore.com>
6294
6295 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
6296 Read constant block.
6297
e0fc5c3f
SM
62982020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6299
6300 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
6301 (gdb_bfd_get_full_section_contents): New declaration.
6302 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
6303 * windows-tdep.c (is_linked_with_cygwin_dll): Use
6304 gdb_bfd_get_full_section_contents.
6305
e2ff18a0
SM
63062020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6307
6308 * exec.c (build_section_table): Replace internal_error with
6309 gdb_assert.
6310 (section_table_xfer_memory_partial): Likewise.
6311 * mdebugread.c (parse_partial_symbols): Likewise.
6312 * psymtab.c (lookup_partial_symbol): Likewise.
6313 * utils.c (wrap_here): Likewise.
6314
0830d301
TT
63152020-04-02 Tom Tromey <tromey@adacore.com>
6316
6317 * f-lang.c (build_fortran_types): Use arch_type to initialize
6318 builtin_complex_s32 in the TYPE_CODE_ERROR case.
6319
e7da7f8f
TT
63202020-04-02 Tom Tromey <tromey@adacore.com>
6321
6322 * dwarf2/read.c (partial_die_info::read): Do not create a vector
6323 of attributes.
6324
c90d28ac
AB
63252020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
6326 Bernd Edlinger <bernd.edlinger@hotmail.de>
6327 Tom Tromey <tromey@adacore.com>
6328
6329 * buildsym.c (buildsym_compunit::record_line): Remove
6330 deduplication code.
6331
1aa98955
TV
63322020-04-02 Tom de Vries <tdevries@suse.de>
6333
6334 PR ada/24671
6335 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
6336
d3214198
TV
63372020-04-02 Tom de Vries <tdevries@suse.de>
6338
6339 * dwarf2/read.c (dwarf2_gdb_index_functions,
6340 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
6341 NULL.
6342 * psymtab.c (psym_lookup_global_symbol_language): New function.
6343 (psym_functions): Init psym_lookup_global_symbol_language with
6344 psym_lookup_global_symbol_language.
6345 * symfile-debug.c (debug_sym_quick_functions): Init
6346 lookup_global_symbol_language with NULL.
6347 * symfile.c (set_initial_language): Remove fixme comment.
6348 * symfile.h (struct quick_symbol_functions): Add
6349 lookup_global_symbol_language.
6350 * symtab.c (find_quick_global_symbol_language): New function.
6351 (find_main_name): Use find_quick_global_symbol_language.
6352
2836752f
SM
63532020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
6354
6355 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
6356
64dc2d4b
BE
63572020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6358
6359 * buildsym.c (record_line): Fix undefined behavior and preserve
6360 lines at eof.
6361
bbe3dc41
BE
63622020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6363
6364 * buildsym.c (record_line): Fix the resizing condition.
6365
6b4a335b
TT
63662020-04-01 Tom Tromey <tom@tromey.com>
6367
6368 * value.h (value_literal_complex): Add comment.
6369 * valops.c (value_literal_complex): Refer to value.h.
6370
3638a098
TT
63712020-04-01 Tom Tromey <tom@tromey.com>
6372
6373 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
6374 (scalar_type): New rule, from typebase.
6375 (typebase): Use scalar_type. Recognize complex types.
6376 (field_name): Handle FLOAT_KEYWORD.
6377 (ident_tokens): Add _Complex and __complex__.
6378
c34e8714
TT
63792020-04-01 Tom Tromey <tom@tromey.com>
6380
6381 PR exp/25299:
6382 * valarith.c (promotion_type, complex_binop): New functions.
6383 (scalar_binop): Handle complex numbers. Use promotion_type.
6384 (value_pos, value_neg, value_complement): Handle complex numbers.
6385
fa649bb7
TT
63862020-04-01 Tom Tromey <tom@tromey.com>
6387
6388 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
6389 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
6390 (parse_number): Handle complex numbers.
6391
981c08ce
TT
63922020-04-01 Tom Tromey <tom@tromey.com>
6393
6394 * c-valprint.c (c_decorations): Change complex suffix to "i".
6395
4c99290d
TT
63962020-04-01 Tom Tromey <tom@tromey.com>
6397
6398 * valprint.c (generic_value_print_complex): Use accessors.
6399 * value.h (value_real_part, value_imaginary_part): Declare.
6400 * valops.c (value_real_part, value_imaginary_part): New
6401 functions.
6402 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
6403
5b930b45
TT
64042020-04-01 Tom Tromey <tom@tromey.com>
6405
6406 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
6407 (read_range_type): Update.
6408 * mdebugread.c (basic_type): Update.
6409 * go-lang.c (build_go_types): Use init_complex_type.
6410 * gdbtypes.h (struct main_type) <complex_type>: New member.
6411 (init_complex_type): Update.
6412 (arch_complex_type): Don't declare.
6413 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
6414 Make name if none given. Use alloc_type_copy. Look for cached
6415 complex type.
6416 (arch_complex_type): Remove.
6417 (gdbtypes_post_init): Use init_complex_type.
6418 * f-lang.c (build_fortran_types): Use init_complex_type.
6419 * dwarf2/read.c (read_base_type): Update.
6420 * d-lang.c (build_d_types): Use init_complex_type.
6421 * ctfread.c (read_base_type): Update.
6422
53cccef1
TBA
64232020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6424
6425 * infrun.c (stop_all_threads): Update assertion, plus when
6426 stopping threads, take into account that we might be trying
6427 to stop an all-stop target.
6428 (stop_waiting): Call 'stop_all_threads' if there exists a
6429 non-stop target.
6430
a0714d30
TBA
64312020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6432
6433 * target.h (exists_non_stop_target): New function declaration.
6434 * target.c (exists_non_stop_target): New function.
6435
60e22c1e
HD
64362020-04-01 Hannes Domani <ssbssa@yahoo.de>
6437
6438 PR gdb/24789
6439 * eval.c (is_integral_or_integral_reference): New function.
6440 (evaluate_subexp_standard): Allow integer references in
6441 pointer arithmetic.
6442
e139a727
TBA
64432020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6444
6445 * remote.c (remote_target::remote_parse_stop_reply): Remove the
6446 check for no ptid in the stop reply when the target is non-stop.
6447
e0802d59
TT
64482020-04-01 Tom Tromey <tromey@adacore.com>
6449
6450 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
6451 "name" parameter to rvalue reference. Initialize m_name_holder.
6452 <lookup_name_info>: New overloads.
6453 <name>: Return gdb::string_view.
6454 <c_str>: New method.
6455 <make_ignore_params>: Update.
6456 <search_name_hash>: Update.
6457 <language_lookup_name>: Return const char *.
6458 <m_name>: Change type.
6459 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
6460 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
6461 (lookup_name_info::match_any): Update.
6462 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
6463 Update.
6464 * minsyms.c (linkage_name_str): Update.
6465 * language.c (default_symbol_name_matcher): Update.
6466 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
6467 Update.
6468 * ada-lang.c (ada_fold_name): Change parameter to string_view.
6469 (ada_lookup_name_info::ada_lookup_name_info): Update.
6470 (literal_symbol_name_matcher): Update.
6471
8c072cb6
TT
64722020-04-01 Tom Tromey <tromey@adacore.com>
6473
6474 * psymtab.c (psymtab_search_name): Remove function.
6475 (psym_lookup_symbol): Create search name and lookup name here.
6476 (lookup_partial_symbol): Remove "name" parameter; add
6477 lookup_name.
6478 (psym_expand_symtabs_for_function): Update.
6479
6f29a534
TT
64802020-03-31 Joel Jones <joelkevinjones@gmail.com>
6481
6482 PR tui/25597:
6483 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
6484
af62665e
TT
64852020-03-31 Tom Tromey <tromey@adacore.com>
6486
6487 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
6488 memcpy.
6489
d1a89da5
NC
64902020-03-30 Nelson Chu <nelson.chu@sifive.com>
6491
6492 * features/riscv/32bit-csr.xml: Regenerated.
6493 * features/riscv/64bit-csr.xml: Regenerated.
6494
d8af9068
TT
64952020-03-30 Tom Tromey <tromey@adacore.com>
6496
6497 * ada-valprint.c (print_variant_part): Update.
6498 * ada-lang.h (ada_which_variant_applies): Update.
6499 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
6500 outer_valaddr parameters; replace with "outer" value parameter.
6501 (to_fixed_variant_branch_type): Update.
6502
227c0bf4
PFC
65032020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6504
6505 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
6506 <list>. Remove inclusion of observable.h.
6507 (PPC_DEBUG_CURRENT_VERSION): Move up define.
6508 (struct arch_lwp_info): New struct.
6509 (class ppc_linux_dreg_interface): New class.
6510 (struct ppc_linux_process_info): New struct.
6511 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
6512 <low_new_clone, low_forget_process, low_prepare_to_resume>
6513 <copy_thread_dreg_state, mark_thread_stale>
6514 <mark_debug_registers_changed, register_hw_breakpoint>
6515 <clear_hw_breakpoint, register_wp, clear_wp>
6516 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
6517 <num_memory_accesses, get_trigger_type>
6518 <create_watchpoint_request, hwdebug_point_cmp>
6519 <init_arch_lwp_info, get_arch_lwp_info>
6520 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
6521 methods.
6522 <struct ptid_hash>: New inner struct.
6523 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
6524 members.
6525 (saved_dabr_value, hwdebug_info, max_slots_number)
6526 (struct hw_break_tuple, struct thread_points, ppc_threads)
6527 (have_ptrace_hwdebug_interface)
6528 (hwdebug_find_thread_points_by_tid)
6529 (hwdebug_insert_point, hwdebug_remove_point): Remove.
6530 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
6531 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
6532 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
6533 use m_dreg_interface.
6534 (hwdebug_point_cmp): Change to...
6535 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
6536 reference arguments instead of pointers.
6537 (ppc_linux_nat_target::ranged_break_num_registers): Use
6538 m_dreg_interface.
6539 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
6540 m_dreg_interface. Call register_hw_breakpoint.
6541 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
6542 m_dreg_interface. Call clear_hw_breakpoint.
6543 (get_trigger_type): Change to...
6544 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
6545 comment.
6546 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
6547 use m_dreg_interface. Call register_hw_breakpoint.
6548 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
6549 use m_dreg_interface. Call clear_hw_breakpoint.
6550 (can_use_watchpoint_cond_accel): Change to...
6551 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
6552 method. Update comment, use m_dreg_interface and
6553 m_process_info.
6554 (calculate_dvc): Change to...
6555 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
6556 m_dreg_interface.
6557 (num_memory_accesses): Change to...
6558 (ppc_linux_nat_target::num_memory_accesses): ...this method.
6559 (check_condition): Change to...
6560 (ppc_linux_nat_target::check_condition): ...this method.
6561 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
6562 comment, use m_dreg_interface.
6563 (create_watchpoint_request): Change to...
6564 (ppc_linux_nat_target::create_watchpoint_request): ...this
6565 method. Use m_dreg_interface.
6566 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
6567 m_dreg_interface. Call register_hw_breakpoint or register_wp.
6568 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
6569 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
6570 (ppc_linux_nat_target::low_forget_process)
6571 (ppc_linux_nat_target::low_new_fork)
6572 (ppc_linux_nat_target::low_new_clone)
6573 (ppc_linux_nat_target::low_delete_thread)
6574 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
6575 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
6576 only call mark_thread_stale.
6577 (ppc_linux_thread_exit): Remove.
6578 (ppc_linux_nat_target::stopped_data_address): Change to...
6579 (ppc_linux_nat_target::low_stopped_data_address): This. Add
6580 comment, use m_dreg_interface and m_thread_hw_breakpoints.
6581 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
6582 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
6583 comment. Call low_stopped_data_address.
6584 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
6585 m_dreg_interface.
6586 (ppc_linux_nat_target::masked_watch_num_registers): Use
6587 m_dreg_interface.
6588 (ppc_linux_nat_target::copy_thread_dreg_state)
6589 (ppc_linux_nat_target::mark_thread_stale)
6590 (ppc_linux_nat_target::mark_debug_registers_changed)
6591 (ppc_linux_nat_target::register_hw_breakpoint)
6592 (ppc_linux_nat_target::clear_hw_breakpoint)
6593 (ppc_linux_nat_target::register_wp)
6594 (ppc_linux_nat_target::clear_wp)
6595 (ppc_linux_nat_target::init_arch_lwp_info)
6596 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
6597 (_initialize_ppc_linux_nat): Remove observer callback.
6598
4db10d8f
PFC
65992020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6600
6601 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
6602 (ppc_linux_nat_target::auxv_parse)
6603 (ppc_linux_nat_target::read_description)
6604 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
6605 Move up.
6606
1310c1b0
PFC
66072020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6608
6609 * linux-nat.h (low_new_clone): New method.
6610 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
6611
69b037c3
SM
66122020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6613
6614 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
6615 (dbx_expand_psymtab): ... this.
6616 (start_psymtab): Update.
6617 * mdebugread.c (psymtab_to_symtab_1): Rename to...
6618 (mdebug_expand_psymtab): ... this.
6619 (parse_partial_symbols): Update.
6620 (new_psymtab): Update.
6621 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
6622 (xcoff_expand_psymtab): ... this.
6623 (xcoff_start_psymtab): Update.
6624
48993951
SM
66252020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6626
6627 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
6628 <expand_dependencies>: ... this.
6629 * psymtab.c (partial_symtab::read_dependencies): Rename to...
6630 (partial_symtab::expand_dependencies): ... this.
6631 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
6632 Update.
6633 (dwarf2_psymtab::expand_psymtab): Update.
6634 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
6635 * mdebugread.c (psymtab_to_symtab_1): Update.
6636 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
6637
3ad83046
SM
66382020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6639
6640 * psympriv.h (discard_psymtab): Remove.
6641 * dbxread.c (dbx_end_psymtab): Update.
6642 * xcoffread.c (xcoff_end_psymtab): Update.
6643
4d1b9ab6
TT
66442020-03-28 Tom Tromey <tom@tromey.com>
6645
6646 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
6647 comment.
6648
f1749218
TT
66492020-03-28 Tom Tromey <tom@tromey.com>
6650
6651 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
6652
ebea7626
HD
66532020-03-27 Hannes Domani <ssbssa@yahoo.de>
6654
6655 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
6656
a879b4d5
JB
66572020-03-26 John Baldwin <jhb@FreeBSD.org>
6658
6659 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
6660
0826b30a
TT
66612020-03-26 Tom Tromey <tom@tromey.com>
6662
6663 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
6664 (mark_common_block_symbol_computed, read_tag_string_type)
6665 (attr_to_dynamic_prop, read_subrange_type): Update.
6666 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
6667 to be methods on struct attribute.
6668 (skip_one_die, process_imported_unit_die, read_namespace_alias)
6669 (read_call_site_scope, partial_die_info::read)
6670 (partial_die_info::read, lookup_die_type, follow_die_ref):
6671 Update.
6672 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
6673 from dwarf2_get_ref_die_offset.
6674 (attribute::constant_value): New method, from
6675 dwarf2_get_attr_constant_value.
6676 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
6677 Declare method.
6678 <constant_value>: New method.
6679
2b2558bf
TT
66802020-03-26 Tom Tromey <tom@tromey.com>
6681
6682 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
6683 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
6684 (dwarf_type_encoding_name): Move to stringify.c.
6685 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
6686 * dwarf2/stringify.c: New file.
6687 * dwarf2/stringify.h: New file.
6688
eeb64781
TT
66892020-03-26 Tom Tromey <tom@tromey.com>
6690
6691 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
6692 Rewrite.
6693
a39fdb41
TT
66942020-03-26 Tom Tromey <tom@tromey.com>
6695
6696 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
6697 methods.
6698 * dwarf2/read.c (lookup_addr_base): Move to die.h.
6699 (lookup_ranges_base): Likewise.
6700 (read_cutu_die_from_dwo, read_full_die_1): Update.
6701
436c571c
TT
67022020-03-26 Tom Tromey <tom@tromey.com>
6703
6704 * dwarf2/read.c (read_import_statement, read_file_scope)
6705 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
6706 (read_lexical_block_scope, read_call_site_scope)
6707 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
6708 (handle_struct_member_die, process_structure_scope)
6709 (update_enumeration_type_from_children)
6710 (process_enumeration_scope, read_array_type, read_common_block)
6711 (read_namespace, read_module, read_subroutine_type): Update.
6712 (sibling_die): Remove.
6713
052c8bb8
TT
67142020-03-26 Tom Tromey <tom@tromey.com>
6715
6716 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
6717 (build_type_psymtabs_reader, read_structure_type)
6718 (read_enumeration_type, read_full_die_1): Update.
6719 (dwarf2_attr_no_follow): Move to die.h.
6720 * dwarf2/die.h (struct die_info) <attr>: New method.
6721
2b24b6e4
TT
67222020-03-26 Tom Tromey <tom@tromey.com>
6723
6724 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
6725 <base_address>: Now an optional.
6726 (dwarf2_find_base_address, dwarf2_rnglists_process)
6727 (dwarf2_ranges_process, fill_in_loclist_baton)
6728 (dwarf2_symbol_mark_computed): Update.
6729
c2d50fd0
TT
67302020-03-26 Tom Tromey <tom@tromey.com>
6731
6732 * dwarf2/read.c (struct die_info): Move to die.h.
6733 * dwarf2/die.h: New file.
6734
0df7ad3a
TT
67352020-03-26 Tom Tromey <tom@tromey.com>
6736
6737 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
6738 * dwarf2/read.c
6739 (dwarf2_statement_list_fits_in_line_number_section_complaint):
6740 Move to line-header.c.
6741 (read_checked_initial_length_and_offset, read_formatted_entries):
6742 Likewise.
6743 (dwarf_decode_line_header): Split into two.
6744 * dwarf2/line-header.c
6745 (dwarf2_statement_list_fits_in_line_number_section_complaint):
6746 Move from read.c.
6747 (read_checked_initial_length_and_offset, read_formatted_entries):
6748 Likewise.
6749 (dwarf_decode_line_header): New function, split from read.c.
6750
86c0bb4c
TT
67512020-03-26 Tom Tromey <tom@tromey.com>
6752
6753 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
6754 Declare method.
6755 * dwarf2/read.c (read_attribute_value): Update.
6756 (dwarf2_per_objfile::read_line_string): Rename from
6757 read_indirect_line_string.
6758 (read_formatted_entries): Update.
6759
2ef46c2f
TT
67602020-03-26 Tom Tromey <tom@tromey.com>
6761
6762 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
6763 variable.
6764
4f9c1eda
TT
67652020-03-26 Tom Tromey <tom@tromey.com>
6766
6767 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
6768 const.
6769 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
6770 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
6771 parameter const.
6772
5a0e026f
TT
67732020-03-26 Tom Tromey <tom@tromey.com>
6774
6775 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
6776 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
6777 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
6778 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
6779
8844c11b
TT
67802020-03-26 Tom Tromey <tom@tromey.com>
6781
6782 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
6783 file_names_size, file_full_name, file_file_name>: Use const.
6784 <file_name_at, file_names>: Add const overload.
6785 * dwarf2/line-header.c (line_header::file_file_name)
6786 (line_header::file_full_name): Update.
6787
c90ec28a
TT
67882020-03-26 Tom Tromey <tom@tromey.com>
6789
6790 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
6791 (macro_start_file, consume_improper_spaces)
6792 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
6793 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
6794 (dwarf_decode_macros): Move to macro.c.
6795 * dwarf2/macro.c: New file.
6796 * dwarf2/macro.h: New file.
6797 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
6798
4f44ae6c
TT
67992020-03-26 Tom Tromey <tom@tromey.com>
6800
6801 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
6802 method.
6803 * dwarf2/section.c: New method. From
6804 read_indirect_string_at_offset_from.
6805 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
6806 (read_indirect_string_at_offset_from): Move to section.c.
6807 (read_indirect_string_at_offset): Rewrite.
6808 (read_indirect_line_string_at_offset): Remove.
6809 (read_indirect_string, read_indirect_line_string)
6810 (dwarf_decode_macro_bytes): Update.
6811
a0194fa8
TT
68122020-03-26 Tom Tromey <tom@tromey.com>
6813
6814 * dwarf2/section.h (struct dwarf2_section_info)
6815 <overload_complaint>: Declare.
6816 (dwarf2_section_buffer_overflow_complaint): Don't declare.
6817 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
6818 Rename from dwarf2_section_buffer_overflow_complaint.
6819 * dwarf2/read.c (skip_one_die, partial_die_info::read)
6820 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
6821
3d27bbdb
TT
68222020-03-26 Tom Tromey <tom@tromey.com>
6823
6824 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
6825 Declare.
6826 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
6827 Move from read.c.
6828 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
6829 to section.c.
6830
9eac9650
TT
68312020-03-26 Tom Tromey <tom@tromey.com>
6832
6833 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
6834
bf80d710
TT
68352020-03-26 Tom Tromey <tom@tromey.com>
6836
6837 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
6838 "builder".
6839 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
6840 parameter.
6841 (dwarf_decode_macros): Update.
6842
0314b390
TT
68432020-03-26 Tom Tromey <tom@tromey.com>
6844
6845 * dwarf2/read.c (read_attribute_value): Update.
6846 (read_indirect_string_from_dwz): Move to dwz.c; change into
6847 method.
6848 (dwarf_decode_macro_bytes): Update.
6849 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
6850 * dwarf2/dwz.c: New file.
6851 * Makefile.in (COMMON_SFILES): Add dwz.c.
6852
9fda78b6
TT
68532020-03-26 Tom Tromey <tom@tromey.com>
6854
6855 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
6856 * dwarf2/read.c: Add include.
6857 * dwarf2/index-write.c: Add include.
6858 * dwarf2/index-cache.c: Add include.
6859 * dwarf2/dwz.h: New file.
6860
33aa3c10
TT
68612020-03-25 Tom Tromey <tom@tromey.com>
6862
6863 * compile/compile-object-load.c (get_out_value_type): Mention
6864 correct symbol name in error message.
6865
d503b685
HD
68662020-03-25 Hannes Domani <ssbssa@yahoo.de>
6867
6868 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
6869
7b1eff95
TV
68702020-03-25 Tom de Vries <tdevries@suse.de>
6871
6872 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
6873 * symmisc.c (dump_symtab_1): Print user and includes fields.
6874 (maintenance_info_symtabs): Same.
6875
dd895392
AB
68762020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
6877
6878 PR gdb/25534
6879 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
6880 (riscv_regcache_cooked_write): New function.
6881 (riscv_push_dummy_call): Use new function.
6882 (riscv_return_value): Likewise.
6883
5ab2fbf1
SM
68842020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
6885
6886 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
6887 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
6888 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
6889 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
6890 * infrun.c (follow_fork): Likewise.
6891 (follow_fork_inferior): Likewise.
6892 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
6893 * linux-nat.h (class linux_nat_target): Likewise.
6894 * remote.c (class remote_target) <follow_fork>: Likewise.
6895 (remote_target::follow_fork): Likewise.
6896 * target-delegates.c: Re-generate.
6897 * target.c (default_follow_fork): Likewise.
6898 (target_follow_fork): Likewise.
6899 * target.h (struct target_ops) <follow_fork>: Likewise.
6900 (target_follow_fork): Likewise.
6901
a64fafb5
TV
69022020-03-24 Tom de Vries <tdevries@suse.de>
6903
6904 * psymtab.c (maintenance_info_psymtabs): Print user field.
6905
fe26d3a3
TT
69062020-03-20 Tom Tromey <tromey@adacore.com>
6907
6908 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
6909 const.
6910 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
6911 const.
6912
c884cc46
SM
69132020-03-20 Simon Marchi <simon.marchi@efficios.com>
6914
6915 * ptrace.m4: Don't check for ptrace declaration.
6916 * config.in: Re-generate.
6917 * configure: Re-generate.
6918 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
6919 not defined.
6920
1ff700c2
KR
69212020-03-20 Kamil Rytarowski <n54@gmx.com>
6922
6923 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
6924 `PTRACE_TYPE_RET'.
6925 * i386-bsd-nat.c (gdb_ptrace): Likewise.
6926 * sparc-nat.c (gdb_ptrace): Likewise.
6927 * x86-bsd-nat.c (gdb_ptrace): Likewise.
6928
f7d4f0b1
TT
69292020-03-20 Tom Tromey <tromey@adacore.com>
6930
6931 * c-exp.y (lex_one_token): Fix assert.
6932
f67210ff
TT
69332020-03-20 Tom Tromey <tromey@adacore.com>
6934
6935 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
6936 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
6937 strncpy call.
6938
1773be9e
TT
69392020-03-20 Tom Tromey <tromey@adacore.com>
6940
6941 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
6942
70304be9
TT
69432020-03-20 Tom Tromey <tromey@adacore.com>
6944
6945 * ada-valprint.c (print_variant_part): Remove parameters; switch
6946 to value-based API.
6947 (print_field_values): Likewise.
6948 (ada_val_print_struct_union): Likewise.
6949 (ada_value_print_1): Update.
6950
9faa006d
KR
69512020-03-20 Kamil Rytarowski <n54@gmx.com>
6952
6953 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
6954 nbsd_nat_target instead of inf_ptrace_target.
6955 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6956 nbsd_nat_target.
6957
4a90f062
KR
69582020-03-20 Kamil Rytarowski <n54@gmx.com>
6959
6960 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
6961 it to the ptrace call.
6962 * (store_registers): Likewise.
6963
69642020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
6965
6966 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
6967 it to the ptrace call.
6968 * (store_registers): Likewise.
6969
2d07da27
LM
69702020-03-19 Luis Machado <luis.machado@linaro.org>
6971
6972 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
6973 valid, fetch vg value from ptrace.
6974
f09db380
KR
69752020-03-19 Kamil Rytarowski <n54@gmx.com>
6976 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
6977 * inf-ptrace.c: Likewise.
6978 * (gdb_ptrace): Add.
6979 * (inf_ptrace_target::resume): Update.
6980 * (inf_ptrace_target::xfer_partial): Likewise.
6981 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
6982 * (inf_ptrace_peek_poke): Update.
6983
fcc7376e
KR
69842020-03-19 Kamil Rytarowski <n54@gmx.com>
6985
6986 * x86-bsd-nat.c (gdb_ptrace): New.
6987 * (x86bsd_dr_set): Add new argument `ptid'.
6988 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
6989 x86bsd_dr_set_addr): Update.
6990
cada5fc9
AB
69912020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6992
6993 * remote.c (remote_target::process_stop_reply): Handle events for
6994 all threads differently.
6995
19a2740f
AB
69962020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6997
6998 * completer.c (completion_tracker::remove_completion): Define new
6999 function.
7000 * completer.h (completion_tracker::remove_completion): Declare new
7001 function.
7002 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
7003 when adding a C++ function symbol.
7004
724fd9ba
AB
70052020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7006
7007 * completer.c (completion_tracker::completion_hash_entry): Define
7008 new class.
7009 (advance_to_filename_complete_word_point): Call
7010 recompute_lowest_common_denominator.
7011 (completion_tracker::completion_tracker): Call discard_completions
7012 to setup the hash table.
7013 (completion_tracker::discard_completions): Allow for being called
7014 from the constructor, pass new equal function, and element deleter
7015 when constructing the hash table. Initialise new class member
7016 variables.
7017 (completion_tracker::maybe_add_completion): Remove use of
7018 m_entries_vec, and store more information into m_entries_hash.
7019 (completion_tracker::recompute_lcd_visitor): New function, most
7020 content taken from...
7021 (completion_tracker::recompute_lowest_common_denominator):
7022 ...here, this now just visits each item in the hash calling the
7023 above visitor.
7024 (completion_tracker::build_completion_result): Remove use of
7025 m_entries_vec, call recompute_lowest_common_denominator.
7026 * completer.h (completion_tracker::have_completions): Remove use
7027 of m_entries_vec.
7028 (completion_tracker::completion_hash_entry): Declare new class.
7029 (completion_tracker::recompute_lowest_common_denominator): Change
7030 function signature.
7031 (completion_tracker::recompute_lcd_visitor): Declare new function.
7032 (completion_tracker::m_entries_vec): Delete.
7033 (completion_tracker::m_entries_hash): Initialize to NULL.
7034 (completion_tracker::m_lowest_common_denominator_valid): New
7035 member variable.
7036 (completion_tracker::m_lowest_common_denominator_max_length): New
7037 member variable.
7038
5a82b8a1
KR
70392020-03-17 Kamil Rytarowski <n54@gmx.com>
7040
7041 * regformats/regdef.h: Put reg in gdb namespace.
7042
fb516a69
KR
70432020-03-17 Kamil Rytarowski <n54@gmx.com>
7044
7045 * i386-bsd-nat.c (gdb_ptrace): New.
7046 * (i386bsd_fetch_inferior_registers,
7047 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7048 * (i386bsd_fetch_inferior_registers,
7049 i386bsd_store_inferior_registers) Use gdb_ptrace.
7050
1c0aa1fb
KR
70512020-03-17 Kamil Rytarowski <n54@gmx.com>
7052
7053 * amd64-bsd-nat.c (gdb_ptrace): New.
7054 * (amd64bsd_fetch_inferior_registers,
7055 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7056 * (amd64bsd_fetch_inferior_registers,
7057 amd64bsd_store_inferior_registers) Use gdb_ptrace.
7058
5ccd2fb7
KR
70592020-03-17 Kamil Rytarowski <n54@gmx.com>
7060
7061 * user-regs.c (user_reg::read): Rename to...
7062 (user_reg::xread): ...this.
7063 * (append_user_reg): Rename argument `read' to `xread'.
7064 * (user_reg_add_builtin): Likewise.
7065 * (user_reg_add): Likewise.
7066 * (value_of_user_reg): Likewise.
7067
2108a63a
KR
70682020-03-17 Kamil Rytarowski <n54@gmx.com>
7069
7070 * sparc-nat.c (gdb_ptrace): New.
7071 * sparc-nat.c (sparc_fetch_inferior_registers)
7072 (sparc_store_inferior_registers) Remove obsolete comment.
7073 * sparc-nat.c (sparc_fetch_inferior_registers)
7074 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
7075 * sparc-nat.c (sparc_fetch_inferior_registers)
7076 (sparc_store_inferior_registers) Use gdb_ptrace.
7077
a225c9a8
KR
70782020-03-17 Kamil Rytarowski <n54@gmx.com>
7079
7080 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
7081 it to the ptrace call.
7082 * sh-nbsd-nat.c (store_registers): Likewise.
7083
98097623
KR
70842020-03-17 Kamil Rytarowski <n54@gmx.com>
7085
7086 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
7087 nbsd_nat_target instead of inf_ptrace_target.
7088 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7089 nbsd_nat_target.
7090
9e38d619
KR
70912020-03-17 Kamil Rytarowski <n54@gmx.com>
7092
7093 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
7094
a2ecbe9f
KR
70952020-03-17 Kamil Rytarowski <n54@gmx.com>
7096
7097 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
7098 <sys/sysctl.h>.
7099 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
7100
58990295
TV
71012020-03-17 Tom de Vries <tdevries@suse.de>
7102
7103 PR gdb/23710
7104 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
7105 fields.
7106 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
7107 fields.
7108 (process_imported_unit_die): Skip import of c++ CUs.
7109
771dd3a8
TT
71102020-03-16 Tom Tromey <tom@tromey.com>
7111
7112 * p-valprint.c (pascal_object_print_value): Initialize
7113 base_value.
7114
817a7585
AK
71152020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
7116 Shahab Vahedi <shahab@synopsys.com>
7117
7118 * Makefile.in: Add arch/arc.o
7119 * configure.tgt: Likewise.
7120 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
7121 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 7122 (arc_read_description): New function to cache target descriptions.
817a7585
AK
7123 * arc-tdep.h (arc_read_description): Add proto type.
7124 * arch/arc.c: New file.
7125 * arch/arc.h: Likewise.
7126 * features/Makefile: Replace old target descriptions with new.
7127 * features/arc-arcompact.c: Remove.
7128 * features/arc-arcompact.xml: Likewise.
7129 * features/arc-v2.c: Likewise
7130 * features/arc-v2.xml: Likewise
7131 * features/arc/aux-arcompact.xml: New file.
7132 * features/arc/aux-v2.xml: Likewise.
7133 * features/arc/core-arcompact.xml: Likewise.
7134 * features/arc/core-v2.xml: Likewise.
7135 * features/arc/aux-arcompact.c: Generate.
7136 * features/arc/aux-v2.c: Likewise.
7137 * features/arc/core-arcompact.c: Likewise.
7138 * features/arc/core-v2.c: Likewise.
7139 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
7140
67430cd0
TT
71412020-03-16 Tom Tromey <tromey@adacore.com>
7142
7143 PR gdb/25663:
7144 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
7145 putting value into bcache.
7146
30efb6c7
SM
71472020-03-16 Simon Marchi <simon.marchi@efficios.com>
7148
7149 PR gdb/21500
7150 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
7151 to...
7152 (amd64_windows_init_abi_common): ... this. Don't set size of
7153 long type.
7154 (amd64_windows_init_abi): New function.
7155 (amd64_cygwin_init_abi): New function.
7156 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
7157 the Cygwin OS ABI.
7158 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
7159 comment.
7160
8db52437
SM
71612020-03-16 Simon Marchi <simon.marchi@efficios.com>
7162
7163 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
7164 * windows-tdep.c (CYGWIN_DLL_NAME): New.
7165 (pe_import_directory_entry): New struct type.
7166 (is_linked_with_cygwin_dll): New function.
7167 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
7168 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
7169 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
7170
5982a56a
SM
71712020-03-16 Simon Marchi <simon.marchi@efficios.com>
7172
7173 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
7174 i386_cygwin_core_osabi_sniffer.
7175
7a1998df
SM
71762020-03-16 Simon Marchi <simon.marchi@efficios.com>
7177
7178 * i386-cygwin-tdep.c: Rename to...
7179 * i386-windows-tdep.c: ... this.
7180 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
7181 i386-windows-tdep.c.
7182 * configure.tgt: Likewise.
7183
053205cc
SM
71842020-03-16 Simon Marchi <simon.marchi@efficios.com>
7185
7186 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
7187 * osabi.c (gdb_osabi_names): Add "Windows".
7188 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
7189 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
7190 (i386_cygwin_core_osabi_sniffer): New function, extracted from
7191 i386_cygwin_osabi_sniffer.
7192 (_initialize_i386_cygwin_tdep): Register OS ABI
7193 GDB_OSABI_WINDOWS for i386.
7194 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
7195 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
7196 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
7197 for x86-64.
7198 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
7199 when the target matches '*-*-mingw*'.
7200
fe4b2ee6
SM
72012020-03-16 Simon Marchi <simon.marchi@efficios.com>
7202
7203 * defs.h (enum gdb_osabi): Move to...
7204 * osabi.h (enum gdb_osabi): ... here.
7205 * gdbarch.sh: Include osabi.h in gdbarch.h.
7206 * gdbarch.h: Re-generate.
7207
cb9b645d
SM
72082020-03-16 Simon Marchi <simon.marchi@efficios.com>
7209
7210 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
7211 function.
7212 (_initialize_amd64_windows_tdep): Register osabi sniffer.
7213
3293bbaf
TT
72142020-03-14 Tom Tromey <tom@tromey.com>
7215
7216 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
7217 for C++.
7218 (c_type_print_modifier): Likewise. Add "language" parameter.
7219 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
7220 (c_type_print_base_1): Update.
7221 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
7222 constants.
7223 * type-stack.c (type_stack::insert): Handle tp_atomic and
7224 tp_restrict.
7225 (type_stack::follow_type_instance_flags): Likewise.
7226 (type_stack::follow_types): Likewise. Merge type-following code.
7227 * c-exp.y (RESTRICT, ATOMIC): New tokens.
7228 (space_identifier, cv_with_space_id)
7229 (const_or_volatile_or_space_identifier_noopt)
7230 (const_or_volatile_or_space_identifier): Remove.
7231 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
7232 rules.
7233 (ptr_operator, typebase): Update.
7234 (enum token_flag) <FLAG_C>: New constant.
7235 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
7236 "_Atomic".
7237 (lex_one_token): Handle FLAG_C.
7238
154151a6
KR
72392020-03-14 Kamil Rytarowski <n54@gmx.com>
7240
7241 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
7242 it to the ptrace call.
7243 * m68k-bsd-nat.c (store_registers): Likewise.
7244
bc107784
KR
72452020-03-14 Kamil Rytarowski <n54@gmx.com>
7246
7247 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
7248 gdb_byte *.
7249 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
7250 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
7251 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
7252
01a80117
KR
72532020-03-14 Kamil Rytarowski <n54@gmx.com>
7254
7255 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
7256 nbsd_nat_target instead of inf_ptrace_target.
7257 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7258 nbsd_nat_target.
7259
f90280ca
KR
72602020-03-14 Kamil Rytarowski <n54@gmx.com>
7261
7262 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
7263 register_t.
7264
6def66f1
KR
72652020-03-14 Kamil Rytarowski <n54@gmx.com>
7266
7267 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
7268 it to the ptrace call.
7269 * alpha-bsd-nat.c (store_registers): Likewise.
7270
66eaca97
KR
72712020-03-14 Kamil Rytarowski <n54@gmx.com>
7272
7273 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
7274 includes.
7275 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
7276 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
7277 fill_fpregset): Likewise.
7278
4fed520b
KR
72792020-03-14 Kamil Rytarowski <n54@gmx.com>
7280
7281 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
7282 nbsd_nat_target instead of inf_ptrace_target.
7283 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7284 nbsd_nat_target.
7285
2190cf06
KR
72862020-03-14 Kamil Rytarowski <n54@gmx.com>
7287
7288 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
7289 register_t.
7290
75c56d3d
KR
72912020-03-14 Kamil Rytarowski <n54@gmx.com>
7292
7293 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
7294 it to the ptrace call.
7295 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
7296 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
7297 * arm-nbsd-nat.c (store_register): Likewise.
7298 * arm-nbsd-nat.c (store_regs): Likewise.
7299 * arm-nbsd-nat.c (store_fp_register): Likewise.
7300 * arm-nbsd-nat.c (store_fp_regs): Likewise.
7301
6018d381
KR
73022020-03-14 Kamil Rytarowski <n54@gmx.com>
7303
7304 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
7305 nbsd_nat_target instead of inf_ptrace_target.
7306 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7307 nbsd_nat_target.
7308
013f99f0
KR
73092020-03-14 Kamil Rytarowski <n54@gmx.com>
7310
7311 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
7312 it to the ptrace call.
7313 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
7314
12753073
KR
73152020-03-14 Kamil Rytarowski <n54@gmx.com>
7316
6227b330
KR
7317 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
7318 it to the ptrace call.
7319 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
7320
73212020-03-14 Kamil Rytarowski <n54@gmx.com>
7322
7323 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
7324 gdb_byte *.
12753073
KR
7325 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
7326
d5be5fa4
KR
73272020-03-14 Kamil Rytarowski <n54@gmx.com>
7328
7329 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
7330 instead of inf_ptrace_target.
7331 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7332 nbsd_nat_target.
7333
8110f842
KR
73342020-03-14 Kamil Rytarowski <n54@gmx.com>
7335
7336 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7337 register_t.
7338
52feded7
KR
73392020-03-14 Kamil Rytarowski <n54@gmx.com>
7340
7341 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7342 register_t.
7343
25567eee
KR
73442020-03-14 Kamil Rytarowski <n54@gmx.com>
7345
7346 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
7347 register_t.
7348
426a9c18
TT
73492020-03-13 Tom Tromey <tom@tromey.com>
7350
7351 * value.h (val_print): Don't declare.
7352 * valprint.h (val_print_array_elements)
7353 (val_print_scalar_formatted, generic_val_print): Don't declare.
7354 * valprint.c (generic_val_print_array): Take a struct value.
7355 (generic_val_print_ptr, generic_val_print_memberptr)
7356 (generic_val_print_bool, generic_val_print_int)
7357 (generic_val_print_char, generic_val_print_complex)
7358 (generic_val_print): Remove.
7359 (generic_value_print): Update.
7360 (do_val_print): Remove unused parameters. Don't call
7361 la_val_print.
7362 (val_print): Remove.
7363 (common_val_print): Update. Don't call value_check_printable.
7364 (val_print_scalar_formatted, val_print_array_elements): Remove.
7365 * rust-lang.c (rust_val_print): Remove.
7366 (rust_language_defn): Update.
7367 * p-valprint.c (pascal_val_print): Remove.
7368 (pascal_value_print_inner): Update.
7369 (pascal_object_print_val_fields, pascal_object_print_val):
7370 Remove.
7371 (pascal_object_print_static_field): Update.
7372 * p-lang.h (pascal_val_print): Don't declare.
7373 * p-lang.c (pascal_language_defn): Update.
7374 * opencl-lang.c (opencl_language_defn): Update.
7375 * objc-lang.c (objc_language_defn): Update.
7376 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
7377 * m2-lang.h (m2_val_print): Don't declare.
7378 * m2-lang.c (m2_language_defn): Update.
7379 * language.h (struct language_defn) <la_val_print>: Remove.
7380 * language.c (unk_lang_value_print_inner): Rename. Change
7381 argument types.
7382 (unknown_language_defn, auto_language_defn): Update.
7383 * go-valprint.c (go_val_print): Remove.
7384 * go-lang.h (go_val_print): Don't declare.
7385 * go-lang.c (go_language_defn): Update.
7386 * f-valprint.c (f_val_print): Remove.
7387 * f-lang.h (f_value_print): Don't declare.
7388 * f-lang.c (f_language_defn): Update.
7389 * d-valprint.c (d_val_print): Remove.
7390 * d-lang.h (d_value_print): Don't declare.
7391 * d-lang.c (d_language_defn): Update.
7392 * cp-valprint.c (cp_print_value_fields)
7393 (cp_print_value_fields_rtti, cp_print_value): Remove.
7394 (cp_print_static_field): Update.
7395 * c-valprint.c (c_val_print_array, c_val_print_ptr)
7396 (c_val_print_struct, c_val_print_union, c_val_print_int)
7397 (c_val_print_memberptr, c_val_print): Remove.
7398 * c-lang.h (c_val_print_array, cp_print_value_fields)
7399 (cp_print_value_fields_rtti): Don't declare.
7400 * c-lang.c (c_language_defn, cplus_language_defn)
7401 (asm_language_defn, minimal_language_defn): Update.
7402 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
7403 (ada_val_print_enum): Take a struct value.
7404 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
7405 (ada_val_print): Remove.
7406 (ada_value_print_1): Update.
7407 (printable_val_type): Remove.
7408 * ada-lang.h (ada_val_print): Don't declare.
7409 * ada-lang.c (ada_language_defn): Update.
7410
42331a1e
TT
74112020-03-13 Tom Tromey <tom@tromey.com>
7412
7413 * valprint.c (do_val_print): Update.
7414 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
7415 a struct value.
7416 (value_to_value_object_no_release): Declare.
7417 * python/py-value.c (value_to_value_object_no_release): New
7418 function.
7419 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
7420 struct value.
7421 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
7422 function.
7423 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
7424 a struct value.
7425 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
7426 Declare.
7427 (gdbscm_apply_val_pretty_printer): Take a struct value.
7428 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
7429 value.
7430 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
7431 value.
7432 * extension-priv.h (struct extension_language_ops)
7433 <apply_val_pretty_printer>: Take a struct value.
7434 * cp-valprint.c (cp_print_value): Create a struct value.
7435 (cp_print_value): Update.
7436
3a916a97
TT
74372020-03-13 Tom Tromey <tom@tromey.com>
7438
7439 * ada-valprint.c (print_field_values): Call common_val_print.
7440
b59eac37
TT
74412020-03-13 Tom Tromey <tom@tromey.com>
7442
7443 * ada-valprint.c (val_print_packed_array_elements): Remove
7444 bitoffset and val parameters. Call common_val_print.
7445 (ada_val_print_string): Remove offset, address, and original_value
7446 parameters.
7447 (ada_val_print_array): Update.
7448 (ada_value_print_array): New function.
7449 (ada_value_print_1): Call it.
7450
03371129
TT
74512020-03-13 Tom Tromey <tom@tromey.com>
7452
7453 * ada-valprint.c (ada_value_print): Use common_val_print.
7454
2e088f8b
TT
74552020-03-13 Tom Tromey <tom@tromey.com>
7456
7457 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
7458
39ef85a8
TT
74592020-03-13 Tom Tromey <tom@tromey.com>
7460
7461 * ada-valprint.c (ada_value_print_num): New function.
7462 (ada_value_print_1): Use it.
7463
b9fa6e07
TT
74642020-03-13 Tom Tromey <tom@tromey.com>
7465
7466 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
7467
416595d6
TT
74682020-03-13 Tom Tromey <tom@tromey.com>
7469
7470 * ada-valprint.c (ada_value_print_ptr): New function.
7471 (ada_value_print_1): Use it.
7472
5b5e15ec
TT
74732020-03-13 Tom Tromey <tom@tromey.com>
7474
7475 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
7476 call common_val_print.
7477 (ada_val_print_1): Update.
7478 (ada_value_print_1): New function.
7479 (ada_value_print_inner): Rewrite.
7480
fbf54e75
TT
74812020-03-13 Tom Tromey <tom@tromey.com>
7482
7483 * cp-valprint.c (cp_print_value_fields): Update.
7484 (cp_print_value): New function.
7485
64b653ca
TT
74862020-03-13 Tom Tromey <tom@tromey.com>
7487
7488 * m2-valprint.c (m2_value_print_inner): Use
7489 cp_print_value_fields.
7490 * cp-valprint.c (cp_print_value_fields): New function.
7491 * c-valprint.c (c_value_print_struct): New function.
7492 (c_value_print_inner): Use c_value_print_struct.
7493 * c-lang.h (cp_print_value_fields): Declare.
7494
6999f067
TT
74952020-03-13 Tom Tromey <tom@tromey.com>
7496
7497 * c-valprint.c (c_value_print_array): New function.
7498 (c_value_print_inner): Use it.
7499
ce80b8bd
TT
75002020-03-13 Tom Tromey <tom@tromey.com>
7501
7502 * c-valprint.c (c_value_print_memberptr): New function.
7503 (c_value_print_inner): Use it.
7504
2faac269
TT
75052020-03-13 Tom Tromey <tom@tromey.com>
7506
7507 * c-valprint.c (c_value_print_int): New function.
7508 (c_value_print_inner): Use it.
7509
da3e2c29
TT
75102020-03-13 Tom Tromey <tom@tromey.com>
7511
7512 * c-valprint.c (c_value_print_ptr): New function.
7513 (c_value_print_inner): Use it.
7514
50836231
TT
75152020-03-13 Tom Tromey <tom@tromey.com>
7516
7517 * c-valprint.c (c_value_print_inner): Rewrite.
7518
4f412b6e
TT
75192020-03-13 Tom Tromey <tom@tromey.com>
7520
7521 * valprint.c (generic_value_print_complex): New function.
7522 (generic_value_print): Use it.
7523
f5354008
TT
75242020-03-13 Tom Tromey <tom@tromey.com>
7525
7526 * valprint.c (generic_val_print_float): Don't call
7527 val_print_scalar_formatted.
7528 (generic_val_print, generic_value_print): Update.
7529
3eec3b05
TT
75302020-03-13 Tom Tromey <tom@tromey.com>
7531
7532 * valprint.c (generic_value_print_char): New function
7533 (generic_value_print): Use it.
7534
fdddfccb
TT
75352020-03-13 Tom Tromey <tom@tromey.com>
7536
7537 * valprint.c (generic_value_print_int): New function.
7538 (generic_value_print): Use it.
7539
6dde7521
TT
75402020-03-13 Tom Tromey <tom@tromey.com>
7541
7542 * valprint.c (generic_value_print_bool): New function.
7543 (generic_value_print): Use it.
7544
4112d2e6
TT
75452020-03-13 Tom Tromey <tom@tromey.com>
7546
7547 * valprint.c (generic_val_print_func): Simplify.
7548 (generic_val_print, generic_value_print): Update.
7549
65786af6
TT
75502020-03-13 Tom Tromey <tom@tromey.com>
7551
7552 * valprint.c (generic_val_print_flags): Remove.
7553 (generic_val_print, generic_value_print): Update.
7554 (val_print_type_code_flags): Add original_value parameter.
7555
40f3ce18
TT
75562020-03-13 Tom Tromey <tom@tromey.com>
7557
7558 * valprint.c (generic_val_print): Update.
7559 (generic_value_print): Update.
7560 * valprint.c (generic_val_print_enum): Don't call
7561 val_print_scalar_formatted.
7562
2a5b130b
TT
75632020-03-13 Tom Tromey <tom@tromey.com>
7564
7565 * valprint.c (generic_value_print): Call generic_value_print_ptr.
7566 * valprint.c (generic_value_print_ptr): New function.
7567
abc66ce9
TT
75682020-03-13 Tom Tromey <tom@tromey.com>
7569
7570 * valprint.c (generic_value_print): Rewrite.
7571
07a32858
TT
75722020-03-13 Tom Tromey <tom@tromey.com>
7573
7574 * p-valprint.c (pascal_object_print_value_fields)
7575 (pascal_object_print_value): New functions.
7576
64d64d3a
TT
75772020-03-13 Tom Tromey <tom@tromey.com>
7578
7579 * p-valprint.c (pascal_value_print_inner): Rewrite.
7580
6a95a1f5
TT
75812020-03-13 Tom Tromey <tom@tromey.com>
7582
7583 * f-valprint.c (f_value_print_innner): Rewrite.
7584
59fcdac6
TT
75852020-03-13 Tom Tromey <tom@tromey.com>
7586
7587 * m2-valprint.c (m2_print_unbounded_array): New overload.
7588 (m2_print_unbounded_array): Update.
7589 (m2_print_array_contents): Take a struct value.
7590 (m2_value_print_inner): Rewrite.
7591
d133c3e1
TT
75922020-03-13 Tom Tromey <tom@tromey.com>
7593
7594 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
7595 (d_value_print_inner): New function.
7596 * d-lang.h (d_value_print_inner): Declare.
7597 * d-lang.c (d_language_defn): Use d_value_print_inner.
7598
23b0f06b
TT
75992020-03-13 Tom Tromey <tom@tromey.com>
7600
7601 * go-valprint.c (go_value_print_inner): New function.
7602 * go-lang.h (go_value_print_inner): Declare.
7603 * go-lang.c (go_language_defn): Use go_value_print_inner.
7604
5f56f7cb
TT
76052020-03-13 Tom Tromey <tom@tromey.com>
7606
7607 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
7608 API.
7609 (rust_val_print): Rewrite.
7610 (rust_value_print_inner): New function, from rust_val_print.
7611 (rust_language_defn): Use rust_value_print_inner.
7612
26792ee0
TT
76132020-03-13 Tom Tromey <tom@tromey.com>
7614
7615 * ada-valprint.c (ada_value_print_inner): New function.
7616 * ada-lang.h (ada_value_print_inner): Declare.
7617 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
7618
24051bbe
TT
76192020-03-13 Tom Tromey <tom@tromey.com>
7620
7621 * f-valprint.c (f_value_print_innner): New function.
7622 * f-lang.h (f_value_print_innner): Declare.
7623 * f-lang.c (f_language_defn): Use f_value_print_innner.
7624
c0941be6
TT
76252020-03-13 Tom Tromey <tom@tromey.com>
7626
7627 * p-valprint.c (pascal_value_print_inner): New function.
7628 * p-lang.h (pascal_value_print_inner): Declare.
7629 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
7630
62c4663d
TT
76312020-03-13 Tom Tromey <tom@tromey.com>
7632
7633 * m2-valprint.c (m2_value_print_inner): New function.
7634 * m2-lang.h (m2_value_print_inner): Declare.
7635 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
7636
62182190
TT
76372020-03-13 Tom Tromey <tom@tromey.com>
7638
7639 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
7640 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
7641 * c-valprint.c (c_value_print_inner): New function.
7642 * c-lang.h (c_value_print_inner): Declare.
7643 * c-lang.c (c_language_defn, cplus_language_defn)
7644 (asm_language_defn, minimal_language_defn): Use
7645 c_value_print_inner.
7646
1e592a8a
TT
76472020-03-13 Tom Tromey <tom@tromey.com>
7648
7649 * p-valprint.c (pascal_object_print_value_fields): Now static.
7650 * p-lang.h (pascal_object_print_value_fields): Don't declare.
7651
7fe471e9
TT
76522020-03-13 Tom Tromey <tom@tromey.com>
7653
7654 * c-valprint.c (c_val_print_array): Simplify.
7655
d121c6ce
TT
76562020-03-13 Tom Tromey <tom@tromey.com>
7657
7658 * valprint.c (value_print_array_elements): New function.
7659 * valprint.h (value_print_array_elements): Declare.
7660
4dba70ee
TT
76612020-03-13 Tom Tromey <tom@tromey.com>
7662
7663 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
7664 * mips-tdep.c (mips_print_register): Use
7665 value_print_scalar_formatted.
7666
4f9ae810
TT
76672020-03-13 Tom Tromey <tom@tromey.com>
7668
7669 * valprint.h (value_print_scalar_formatted): Declare.
7670 * valprint.c (value_print_scalar_formatted): New function.
7671
156bfec9
TT
76722020-03-13 Tom Tromey <tom@tromey.com>
7673
7674 * valprint.h (generic_value_print): Declare.
7675 * valprint.c (generic_value_print): New function.
7676
2b4e573d
TT
76772020-03-13 Tom Tromey <tom@tromey.com>
7678
7679 * valprint.c (do_val_print): Call la_value_print_inner, if
7680 available.
7681 * rust-lang.c (rust_language_defn): Update.
7682 * p-lang.c (pascal_language_defn): Update.
7683 * opencl-lang.c (opencl_language_defn): Update.
7684 * objc-lang.c (objc_language_defn): Update.
7685 * m2-lang.c (m2_language_defn): Update.
7686 * language.h (struct language_defn) <la_value_print_inner>: New
7687 member.
7688 * language.c (unknown_language_defn, auto_language_defn): Update.
7689 * go-lang.c (go_language_defn): Update.
7690 * f-lang.c (f_language_defn): Update.
7691 * d-lang.c (d_language_defn): Update.
7692 * c-lang.c (c_language_defn, cplus_language_defn)
7693 (asm_language_defn, minimal_language_defn): Update.
7694 * ada-lang.c (ada_language_defn): Update.
7695
a1f6a07c
TT
76962020-03-13 Tom Tromey <tom@tromey.com>
7697
7698 * c-valprint.c (c_value_print): Use common_val_print.
7699
410cf315
TT
77002020-03-13 Tom Tromey <tom@tromey.com>
7701
7702 * cp-valprint.c (cp_print_static_field): Use common_val_print.
7703
72a45c93
TT
77042020-03-13 Tom Tromey <tom@tromey.com>
7705
7706 * f-valprint.c (f77_print_array_1, f_val_print): Use
7707 common_val_print.
7708
040f66bd
TT
77092020-03-13 Tom Tromey <tom@tromey.com>
7710
7711 * riscv-tdep.c (riscv_print_one_register_info): Use
7712 common_val_print.
7713
a6e05a6c
TT
77142020-03-13 Tom Tromey <tom@tromey.com>
7715
7716 * mi/mi-main.c (output_register): Use common_val_print.
7717
3444c526
TT
77182020-03-13 Tom Tromey <tom@tromey.com>
7719
7720 * infcmd.c (default_print_one_register_info): Use
7721 common_val_print.
7722
c2a44efe
TT
77232020-03-13 Tom Tromey <tom@tromey.com>
7724
7725 * valprint.h (common_val_print_checked): Declare.
7726 * valprint.c (common_val_print_checked): New function.
7727 * stack.c (print_frame_arg): Use common_val_print_checked.
7728
b0c26e99
TT
77292020-03-13 Tom Tromey <tom@tromey.com>
7730
7731 * valprint.c (do_val_print): New function, from val_print.
7732 (val_print): Use do_val_print.
7733 (common_val_print): Use do_val_print.
7734
ce3acbe9
TT
77352020-03-13 Tom Tromey <tom@tromey.com>
7736
7737 * valprint.c (value_print): Use scoped_value_mark.
7738
96c7f873
TV
77392020-03-13 Tom de Vries <tdevries@suse.de>
7740
7741 PR symtab/25646
7742 * psymtab.c (partial_symtab::partial_symtab): Don't set
7743 globals_offset and statics_offset. Push element onto
7744 current_global_psymbols and current_static_psymbols stacks.
7745 (concat): New function.
7746 (end_psymtab_common): Set globals_offset and statics_offset. Pop
7747 element from current_global_psymbols and current_static_psymbols
7748 stacks. Concat popped elements to global_psymbols and
7749 static_symbols.
7750 (add_psymbol_to_list): Use current_global_psymbols and
7751 current_static_psymbols stacks.
7752 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
7753 current_static_psymbols fields.
7754
6ba0a321
CB
77552020-03-12 Christian Biesinger <cbiesinger@google.com>
7756
7757 * corelow.c (sniff_core_bfd): Remove.
7758 (class core_target) <m_core_vec>: Remove.
7759 (core_target::core_target): Update.
7760 (core_file_fns): Remove.
7761 (deprecated_add_core_fns): Remove.
7762 (default_core_sniffer): Remove.
7763 (sniff_core_bfd): Remove.
7764 (default_check_format): Remove.
7765 (gdb_check_format): Remove.
7766 (core_target_open): Update.
7767 (core_target::get_core_register_section): Update.
7768 (get_core_registers_cb): Update.
7769 (core_target::fetch_registers): Update.
7770 * gdbcore.h (struct core_fns): Remove.
7771 (deprecated_add_core_fns): Remove.
7772 (default_core_sniffer): Remove.
7773 (default_check_format): Remove.
7774
227031b2
TT
77752020-03-12 Tom Tromey <tom@tromey.com>
7776
7777 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
7778 CORE_ADDR.
7779 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
7780
53807e9f
TT
77812020-03-12 Tom Tromey <tom@tromey.com>
7782
7783 * remote.c (remote_target::download_tracepoint)
7784 (remote_target::enable_tracepoint)
7785 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
7786 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
7787 sprintf_vma.
7788
64f25102
TT
77892020-03-12 Tom Tromey <tom@tromey.com>
7790
7791 * symfile-mem.c: Update CORE_ADDR size assert.
7792
272cd5a3
SM
77932020-03-12 Simon Marchi <simon.marchi@efficios.com>
7794
7795 * selftest.m4: Move to gdbsupport/.
7796 * acinclude.m4: Update path to selftest.m4.
7797
74cd3f9d
SM
77982020-03-12 Simon Marchi <simon.marchi@efficios.com>
7799
7800 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
7801 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
7802 gdbarch-selfselftests.c and selftest-arch.c.
7803 (SUBDIR_UNITTESTS_OBS): Rename to...
7804 (SELFTESTS_OBS): ... this.
7805 (COMMON_SFILES): Remove disasm-selftests.c and
7806 gdbarch-selftests.c.
7807 * configure.ac: Don't add selftest-arch.{c,o} to
7808 CONFIG_{SRCS,OBS}.
7809 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
7810 preprocessor conditions.
7811
db6878ac
SM
78122020-03-12 Simon Marchi <simon.marchi@efficios.com>
7813
7814 * configure.ac: Don't source bfd/development.sh.
7815 * selftest.m4: Modify comment.
7816 * configure: Re-generate.
7817
4d696a5c
SM
78182020-03-12 Simon Marchi <simon.marchi@efficios.com>
7819
7820 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
7821 not "true" or "false".
7822 * configure: Re-generate.
7823
8dd8e1c7
CB
78242020-03-12 Christian Biesinger <cbiesinger@google.com>
7825
7826 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
7827 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
7828 renamed to arm_nbsd_supply_gregset.
7829 (fetch_register): Update to call arm_nbsd_supply_gregset.
7830 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
7831 (arm_netbsd_nat_target::fetch_registers): Update.
7832 (fetch_elfcore_registers): Removed.
7833 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
7834 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
7835 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
7836 not require NetBSD system headers.
7837 (arm_nbsd_regset): New struct.
7838 (arm_nbsd_iterate_over_regset_sections): New function.
7839 (arm_netbsd_init_abi_common): Updated to call
7840 set_gdbarch_iterate_over_regset_sections.
7841 * arm-nbsd-tdep.h: New file.
7842
dd69bf7a
KB
78432020-03-11 Kevin Buettner <kevinb@redhat.com>
7844
7845 * symtab.c (find_pc_sect_line): Add check which prevents infinite
7846 recursion.
7847
a0761e34
SM
78482020-03-11 Simon Marchi <simon.marchi@efficios.com>
7849
7850 * configure: Re-generate.
7851
e7a82140
TT
78522020-03-11 Tom Tromey <tromey@adacore.com>
7853
7854 * ada-typeprint.c (print_choices): Fix comment.
7855
dcc050c8
AB
78562020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
7857
7858 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
7859 previous item in the list, when the list has no items.
7860
1c33af77
TV
78612020-03-11 Tom de Vries <tdevries@suse.de>
7862
7863 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
7864 PROP_LOCLIST handling code.
7865
8c95582d
AB
78662020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
7867
7868 * buildsym-legacy.c (record_line): Pass extra parameter to
7869 record_line.
7870 * buildsym.c (buildsym_compunit::record_line): Take an extra
7871 parameter, reduce duplication in the line table, and record the
7872 is_stmt flag in the line table.
7873 * buildsym.h (buildsym_compunit::record_line): Add extra
7874 parameter.
7875 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
7876 non-statement lines.
7877 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
7878 this to the symtab builder.
7879 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
7880 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
7881 through to dwarf_record_line_1.
7882 * infrun.c (process_event_stop_test): When stepping, don't stop at
7883 a non-statement instruction, and only refresh the step info when
7884 we land in the middle of a line's range. Also add an extra
7885 comment.
7886 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
7887 field.
7888 * record-btrace.c (btrace_find_line_range): Only record lines
7889 marked as is-statement.
7890 * stack.c (frame_show_address): Show the frame address if we are
7891 in a non-statement sal.
7892 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
7893 (maintenance_print_one_line_table): Print a header for the is_stmt
7894 column, and include is_stmt information in the output.
7895 * symtab.c (find_pc_sect_line): Find lines marked as statements in
7896 preference to non-statements.
7897 (find_pcs_for_symtab_line): Prefer is-statement entries.
7898 (find_line_common): Likewise.
7899 * symtab.h (struct linetable_entry): Add is_stmt field.
7900 (struct symtab_and_line): Likewise.
7901 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
7902 arranging the line table.
7903
e4003a34
TV
79042020-03-07 Tom de Vries <tdevries@suse.de>
7905
7906 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
7907 DIE.
7908
e8932576
TT
79092020-03-07 Tom Tromey <tom@tromey.com>
7910
7911 * valops.c (value_literal_complex): Remove obsolete comment.
7912 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
7913 comment.
7914
29734269
SM
79152020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
7916
7917 * infrun.h: Forward-declare thread_info.
7918 (set_step_info): Add thread_info parameter, add doc.
7919 * infrun.c (set_step_info): Add thread_info parameter, move doc
7920 to header.
7921 * infrun.c (process_event_stop_test): Pass thread to
7922 set_step_info call.
7923 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
7924 set_step_info.
7925 (prepare_one_step): Add thread_info parameter, pass it to
7926 set_step_frame and prepare_one_step (recursive) call.
7927 (step_1): Pass thread to prepare_one_step call.
7928 (step_command_fsm::should_stop): Pass thread to
7929 prepare_one_step.
7930 (until_next_fsm): Pass thread to set_step_frame call.
7931 (finish_command): Pass thread to set_step_info call.
7932
b7d64b29
HD
79332020-03-06 Hannes Domani <ssbssa@yahoo.de>
7934
7935 * windows-tdep.c (windows_solib_create_inferior_hook):
7936 Check if inferior is running.
7937
09f2921c
TV
79382020-03-06 Tom de Vries <tdevries@suse.de>
7939
7940 * NEWS: Fix "the the".
7941 * ctfread.c: Same.
7942
fd760e79
TV
79432020-03-06 Tom de Vries <tdevries@suse.de>
7944
7945 * psymtab.c (psymtab_to_symtab): Don't print "done.".
7946
20ea4a60
AB
79472020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
7948
7949 * .dir-locals.el: Add a comment referencing the other copies of
7950 this file.
7951
0afbabf0
JB
79522020-03-05 John Baldwin <jhb@FreeBSD.org>
7953
7954 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
7955 psargs.
7956
842806cb
TBA
79572020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7958
7959 * .gitattributes: New file.
7960
be1e3d3e
TT
79612020-03-04 Tom Tromey <tom@tromey.com>
7962
7963 * symmisc.c (print_symbol_bcache_statistics)
7964 (print_objfile_statistics): Update.
7965 * symfile.c (allocate_symtab): Use intern.
7966 * psymtab.c (partial_symtab::partial_symtab): Use intern.
7967 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
7968 macro_cache>: Remove.
7969 <string_cache>: New member.
7970 (struct objfile) <intern>: New methods.
7971 * elfread.c (elf_symtab_read): Use intern.
7972 * dwarf2/read.c (fixup_go_packaging): Intern package name.
7973 (dwarf2_compute_name, dwarf2_physname)
7974 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
7975 names.
7976 (guess_partial_die_structure_name): Update.
7977 (partial_die_info::fixup): Intern name.
7978 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
7979 name.
7980 (dwarf2_name): Intern name. Update.
7981 * buildsym.c (buildsym_compunit::get_macro_table): Use
7982 string_cache.
7983
4e7625fd
TT
79842020-03-04 Tom Tromey <tom@tromey.com>
7985
7986 * jit.c (bfd_open_from_target_memory): Make "target" const.
7987 * corefile.c (gnutarget): Now const.
7988 * gdbcore.h (gnutarget): Now const.
7989
46f9f931
HD
79902020-03-04 Hannes Domani <ssbssa@yahoo.de>
7991
7992 * NEWS: Mention support for WOW64 processes.
7993 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
7994 (amd64_windows_segment_register_p): Remove static.
7995 (_initialize_amd64_windows_nat): Update.
7996 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
7997 * i386-windows-nat.c (context_offset): Update.
7998 (i386_mappings): Rename and remove static.
7999 (i386_windows_segment_register_p): Remove static.
8000 (_initialize_i386_windows_nat): Update.
8001 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
8002 (STATUS_WX86_SINGLE_STEP): New macro.
8003 (EnumProcessModulesEx): New macro.
8004 (Wow64SuspendThread): New macro.
8005 (Wow64GetThreadContext): New macro.
8006 (Wow64SetThreadContext): New macro.
8007 (Wow64GetThreadSelectorEntry): New macro.
8008 (windows_set_context_register_offsets): Add static.
8009 (windows_set_segment_register_p): Likewise.
8010 (windows_add_thread): Adapt for WOW64 processes.
8011 (windows_fetch_one_register): Likewise.
8012 (windows_nat_target::fetch_registers): Likewise.
8013 (windows_store_one_register): Likewise.
8014 (display_selector): Likewise.
8015 (display_selectors): Likewise.
8016 (handle_exception): Likewise.
8017 (windows_continue): Likewise.
8018 (windows_nat_target::resume): Likewise.
8019 (windows_add_all_dlls): Likewise.
8020 (do_initial_windows_stuff): Likewise.
8021 (windows_nat_target::attach): Likewise.
8022 (windows_get_exec_module_filename): Likewise.
8023 (windows_nat_target::create_inferior): Likewise.
8024 (windows_xfer_siginfo): Likewise.
8025 (_initialize_loadable): Initialize Wow64SuspendThread,
8026 Wow64GetThreadContext, Wow64SetThreadContext,
8027 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
8028 * windows-nat.h (windows_set_context_register_offsets):
8029 Remove declaration.
8030 (windows_set_segment_register_p): Likewise.
8031 (i386_windows_segment_register_p): Add declaration.
8032 (amd64_windows_segment_register_p): Likewise.
8033
440cf44e
LM
80342020-03-04 Luis Machado <luis.machado@linaro.org>
8035
8036 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
8037 in "info registers" for AArch64/ARM.
8038
8039 The change caused "info registers" to not print GPR's.
8040
8041 gdb/ChangeLog:
8042
8043 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
8044
8045 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
8046 when reg->group is empty and reggroup is not.
8047
1009d92f
TT
80482020-03-03 Tom Tromey <tromey@adacore.com>
8049
8050 * dwarf2/frame.c (struct dwarf2_frame_cache)
8051 <checked_tailcall_bottom, entry_cfa_sp_offset,
8052 entry_cfa_sp_offset_p>: Remove members.
8053 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
8054 (dwarf2_frame_prev_register): Don't call
8055 dwarf2_tailcall_sniffer_first.
8056 (dwarf2_append_unwinders): Don't append tailcall unwinder.
8057 * frame-unwind.c (add_unwinder): New fuction.
8058 (frame_unwind_init): Use it. Add tailcall unwinder.
8059
5e5d66b6
AB
80602020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
8061 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8062
8063 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
8064 value should be printed as true.
8065
584cf46d
HD
80662020-03-03 Hannes Domani <ssbssa@yahoo.de>
8067
8068 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
8069 (windows_init_abi): Set and use windows_so_ops.
8070
7b973adc
SDJ
80712020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
8072
8073 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
8074 when verifying if dealing with a convenience variable.
8075
bb7b70ab
LM
80762020-03-03 Luis Machado <luis.machado@linaro.org>
8077
8078 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
8079
9822cb57
SM
80802020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
8081
8082 * infrun.c (gdbarch_supports_displaced_stepping): New.
8083 (use_displaced_stepping): Break up conditions in smaller pieces.
8084 Use gdbarch_supports_displaced_stepping.
8085 (displaced_step_prepare_throw): Use
8086 gdbarch_supports_displaced_stepping.
8087
63e163f2
AB
80882020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8089
8090 * NEWS: Mention new behaviour of the history filename.
8091 * top.c (write_history_p): Add comment.
8092 (show_write_history_p): Add header comment, give a different
8093 message when history writing is on, but the history filename is
8094 empty.
8095 (history_filename): Add comment.
8096 (history_filename_empty): New function.
8097 (show_history_filename): Add header comment, give a different
8098 message when the filename is empty.
8099 (init_history): Compare history_filename against nullptr, and only
8100 read history if the filename is not empty.
8101 (set_history_filename): Add header comment, and only make
8102 non-empty filenames absolute.
8103 (init_main): Make the filename argument to 'set history filename'
8104 optional.
8105
81b86b97
CB
81062020-03-02 Christian Biesinger <cbiesinger@google.com>
8107
8108 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
8109 (arm_supply_vfpregset): ...this, and update to use VFP registers.
8110 (fetch_fp_register): Update.
8111 (fetch_fp_regs): Update.
8112 (store_fp_register): Update.
8113 (store_fp_regs): Update.
8114 (arm_netbsd_nat_target::read_description): New function.
8115 (fetch_elfcore_registers): Update.
8116
24ed6739
AB
81172020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8118
8119 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
8120 general_thread if the stop reply is missing a thread-id.
8121 (remote_target::process_stop_reply): Use the first non-exited
8122 thread if the target didn't pass a thread-id.
8123 * infrun.c (do_target_wait): Move call to
8124 switch_to_inferior_no_thread to ....
8125 (do_target_wait_1): ... here.
8126
a84bb2a0
JT
81272020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
8128
8129 * debuginfod-support.c: Include defs.h first.
8130
658dadf0
TV
81312020-02-28 Tom de Vries <tdevries@suse.de>
8132
8133 * symfile.c (set_initial_language): Use default language for lookup.
8134
4ebe4877
SM
81352020-02-28 Simon Marchi <simon.marchi@efficios.com>
8136
8137 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
8138 reader variable, pass `this` to read_cutu_die_from_dwo.
8139
e5da1139
AM
81402020-02-27 Aaron Merey <amerey@redhat.com>
8141
8142 * source.c (open_source_file): Check for nullptr when computing
8143 srcpath.
8144
317f7127
TT
81452020-02-27 Tom Tromey <tromey@adacore.com>
8146
8147 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
8148 member.
8149 (dwarf2_add_field): Don't update nfields.
8150 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
8151
3104d9ee
AB
81522020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8153
8154 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
8155 abs.
8156
b83470bf
TT
81572020-02-26 Tom Tromey <tom@tromey.com>
8158
8159 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
8160 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
8161 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
8162 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
8163 per_cu_data.
8164
edfe0a0c
TT
81652020-02-26 Tom Tromey <tom@tromey.com>
8166
8167 * dwarf2/index-write.c (psym_index_map): Change type.
8168 (add_address_entry_worker, write_one_signatured_type)
8169 (recursively_count_psymbols, recursively_write_psymbols)
8170 (class debug_names, psyms_seen_size, write_gdbindex)
8171 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
8172
0d79cdc4
AM
81732020-02-26 Aaron Merey <amerey@redhat.com>
8174
8175 * Makefile.in: Handle optional debuginfod support.
8176 * NEWS: Update.
8177 * README: Add --with-debuginfod summary.
8178 * config.in: Regenerate.
8179 * configure: Regenerate.
8180 * configure.ac: Handle optional debuginfod support.
8181 * debuginfod-support.c: debuginfod helper functions.
8182 * debuginfod-support.h: Ditto.
8183 * doc/gdb.texinfo: Add --with-debuginfod to configure options
8184 summary.
8185 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
8186 when a dwz file cannot be found.
8187 * elfread.c (elf_symfile_read): Query debuginfod servers when a
8188 debuginfo file cannot be found.
8189 * source.c (open_source_file): Query debuginfod servers when a
8190 source file cannot be found.
8191 * top.c (print_gdb_configuration): Include
8192 --{with,without}-debuginfod in the output.
8193
b65ce565
JG
81942020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
8195
8196 * thread.c (thr_try_catch_cmd): Print thread name.
8197
d4c9a4f8
SM
81982020-02-26 Simon Marchi <simon.marchi@efficios.com>
8199
8200 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
8201 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8202 dwarf2_fetch_die_type_sect_off): Move to...
8203 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
8204 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8205 dwarf2_fetch_die_type_sect_off): ... here.
8206 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
8207 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8208 dwarf2_fetch_die_type_sect_off): Move doc to header file.
8209
0dce4280
TV
82102020-02-26 Tom de Vries <tdevries@suse.de>
8211
8212 PR gdb/25603
8213 * symfile.c (set_initial_language): Exit-early if
8214 language_mode == language_mode_manual.
8215
450a1bfc
SM
82162020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8217
8218 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
8219 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
8220 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
8221
9e80cfa1
AB
82222020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
8223
8224 * gdbtypes.c (create_array_type_with_stride): Handle negative
8225 array strides.
8226 * valarith.c (value_subscripted_rvalue): Likewise.
8227
09624f1f
LM
82282020-02-25 Luis Machado <luis.machado@linaro.org>
8229
8230 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
8231
8cb5117c
SM
82322020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8233
8234 * loc.h (dwarf2_get_die_type): Move to...
8235 * read.h (dwarf2_get_die_type): ... here.
8236 * read.c (dwarf2_get_die_type): Move doc to header.
8237
c325c44e
JB
82382020-02-25 Joel Brobecker <brobecker@adacore.com>
8239
8240 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
8241 'gnulib/Makefile.in' to the list.
8242
4ac93832
TT
82432020-02-24 Tom Tromey <tom@tromey.com>
8244
8245 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
8246 Remove.
8247 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
8248 XOBNEWVEC.
8249
197400e8
TT
82502020-02-24 Tom Tromey <tom@tromey.com>
8251
8252 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
8253 New method.
8254 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
8255 (dw2_do_instantiate_symtab, dw2_get_file_names)
8256 (build_type_psymtab_dependencies, load_full_type_unit): Update.
8257
76935768
TT
82582020-02-24 Tom Tromey <tom@tromey.com>
8259
8260 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
8261 make_scoped_restore.
8262 (dwarf2_psymtab::read_symtab): Don't clear
8263 reading_partial_symbols.
8264
a88ef40d
TV
82652020-02-24 Tom de Vries <tdevries@suse.de>
8266
8267 PR gdb/25592
8268 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
8269
c9af6521
TV
82702020-02-24 Tom de Vries <tdevries@suse.de>
8271
8272 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
8273 commands layout next/prev/regs.
8274
5707a07a
TT
82752020-02-22 Tom Tromey <tom@tromey.com>
8276
8277 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
8278 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
8279
3b0fb49e
TT
82802020-02-22 Tom Tromey <tom@tromey.com>
8281
8282 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
8283
283be8bf
TT
82842020-02-22 Tom Tromey <tom@tromey.com>
8285
8286 * tui/tui-win.c (_initialize_tui_win): Add usage text.
8287 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
8288 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
8289 * tui/tui.c (_initialize_tui): Add usage text.
8290
ca793b96
TT
82912020-02-22 Tom Tromey <tom@tromey.com>
8292
8293 * tui/tui-win.c (tui_set_focus_command)
8294 (tui_set_win_height_command): Use error_no_arg.
8295 (_initialize_tui_win): Update help text.
8296 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
8297
432b5c40
TT
82982020-02-22 Tom Tromey <tom@tromey.com>
8299
8300 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
8301 * tui/tui-disasm.h (struct tui_disasm_window)
8302 <display_start_addr>: Declare.
8303 * tui/tui-source.h (struct tui_source_window)
8304 <display_start_addr>: Declare.
8305 * tui/tui-winsource.h (struct tui_source_window_base)
8306 <show_source_line, display_start_addr>: New methods.
8307 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
8308 Rename and move to protected section.
8309 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
8310 (tui_source_window_base::do_erase_source_content): Update.
8311 (tui_source_window_base::show_source_line): Now a method.
8312 (tui_source_window_base::show_source_content)
8313 (tui_source_window_base::tui_source_window_base)
8314 (tui_source_window_base::rerender)
8315 (tui_source_window_base::refill)
8316 (tui_source_window_base::do_scroll_horizontal)
8317 (tui_source_window_base::set_is_exec_point_at)
8318 (tui_source_window_base::update_breakpoint_info)
8319 (tui_source_window_base::update_exec_info): Update.
8320 * tui/tui-source.c (tui_source_window::set_contents)
8321 (tui_source_window::showing_source_p)
8322 (tui_source_window::do_scroll_vertical)
8323 (tui_source_window::location_matches_p)
8324 (tui_source_window::line_is_displayed): Update.
8325 (tui_source_window::display_start_addr): New method.
8326 * tui/tui-disasm.c (tui_disasm_window::set_contents)
8327 (tui_disasm_window::do_scroll_vertical)
8328 (tui_disasm_window::location_matches_p): Update.
8329 (tui_disasm_window::display_start_addr): New method.
8330
01b1af32
TT
83312020-02-22 Tom Tromey <tom@tromey.com>
8332
8333 * NEWS: Add entry for gdb.register_window_type.
8334 * tui/tui-layout.h (window_factory): New typedef.
8335 (tui_register_window): Declare.
8336 * tui/tui-layout.c (saved_tui_windows): New global.
8337 (tui_apply_current_layout): Use it.
8338 (tui_register_window): New function.
8339 * python/python.c (do_start_initialization): Call
8340 gdbpy_initialize_tui.
8341 (python_GdbMethods): Add "register_window_type" function.
8342 * python/python-internal.h (gdbpy_register_tui_window)
8343 (gdbpy_initialize_tui): Declare.
8344 * python/py-tui.c: New file.
8345 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
8346
fc96d20b
TT
83472020-02-22 Tom Tromey <tom@tromey.com>
8348
8349 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
8350
935c78c0
TT
83512020-02-22 Tom Tromey <tom@tromey.com>
8352
8353 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
8354 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
8355 * tui/tui-data.c (tui_set_win_with_focus): Remove.
8356 (tui_set_win_focus_to): Move from tui-win.c.
8357
0240c8f1
TT
83582020-02-22 Tom Tromey <tom@tromey.com>
8359
8360 * tui/tui-layout.c (make_standard_window, get_locator_window): New
8361 functions.
8362 (known_window_types): New global.
8363 (tui_get_window_by_name): Reimplement.
8364 (initialize_known_windows): New function.
8365 (validate_window_name): Rewrite.
8366 (_initialize_tui_layout): Call initialize_known_windows.
8367
fdb01f0c
TT
83682020-02-22 Tom Tromey <tom@tromey.com>
8369
8370 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
8371 Remove constants.
8372 * tui/tui-winsource.h (struct tui_source_window_base)
8373 <tui_source_window_base>: Remove parameter.
8374 * tui/tui-winsource.c
8375 (tui_source_window_base::tui_source_window_base): Remove
8376 parameter.
8377 (tui_source_window_base::refill): Update.
8378 * tui/tui-stack.h (struct tui_locator_window)
8379 <tui_locator_window>: Update.
8380 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
8381 Default the constructor.
8382 * tui/tui-regs.h (struct tui_data_item_window)
8383 <tui_data_item_window>: Default the constructor.
8384 (struct tui_data_window) <tui_data_window>: Likewise.
8385 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
8386 Default the constructor.
8387 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
8388 Default the constructor.
8389 <type>: Remove.
8390 (struct tui_win_info) <tui_win_info>: Default the constructor.
8391 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
8392 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
8393 Default the constructor.
8394
865a5aec
TT
83952020-02-22 Tom Tromey <tom@tromey.com>
8396
8397 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
8398 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
8399 * tui/tui-win.c (tui_resize_all): Don't call
8400 tui_delete_invisible_windows.
8401 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
8402 done.
8403 (tui_set_layout): Update.
8404 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
8405 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
8406 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
8407
e098d18c
TT
84082020-02-22 Tom Tromey <tom@tromey.com>
8409
8410 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
8411 correctly.
8412
eb9c8874
TT
84132020-02-22 Tom Tromey <tom@tromey.com>
8414
8415 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
8416
7eed1a8e
TT
84172020-02-22 Tom Tromey <tom@tromey.com>
8418
8419 * tui/tui-winsource.h (struct tui_source_window_iterator)
8420 <inner_iterator>: New etytypedef.
8421 <tui_source_window_iterator>: Take "end" parameter.
8422 <tui_source_window_iterator>: Take iterator.
8423 <operator*, advance>: Update.
8424 <m_iter>: Change type.
8425 <m_end>: New field.
8426 (struct tui_source_windows) <begin, end>: Update.
8427 * tui/tui-layout.c (tui_windows): New global.
8428 (tui_apply_current_layout): Clear tui_windows.
8429 (tui_layout_window::apply): Update tui_windows.
8430 * tui/tui-data.h (tui_windows): Declare.
8431 (all_tui_windows): Now inline function.
8432 (class tui_window_iterator, struct all_tui_windows): Remove.
8433
7c043ba6
TT
84342020-02-22 Tom Tromey <tom@tromey.com>
8435
8436 PR tui/17850:
8437 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
8438 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
8439 "height" argument.
8440 (class tui_layout_window) <get_sizes>: Likewise.
8441 (class tui_layout_split) <tui_layout_split>: Add "vertical"
8442 argument.
8443 <get_sizes>: Add "height" argument.
8444 <m_vertical>: New field.
8445 * tui/tui-layout.c (tui_layout_split::clone): Update.
8446 (tui_layout_split::get_sizes): Add "height" argument.
8447 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
8448 (tui_new_layout_command): Parse "-horizontal".
8449 (_initialize_tui_layout): Update help string.
8450 (tui_layout_split::specification): Add "-horizontal" when needed.
8451 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
8452 argument.
8453 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
8454 New methods.
8455
6bc56648
TT
84562020-02-22 Tom Tromey <tom@tromey.com>
8457
8458 * tui/tui-layout.h (enum tui_adjust_result): New.
8459 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
8460 (class tui_layout_window) <adjust_size>: Return
8461 tui_adjust_result. Rewrite.
8462 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
8463 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
8464
c22fef7e
TT
84652020-02-22 Tom Tromey <tom@tromey.com>
8466
8467 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
8468 parameter and return types.
8469 (class tui_layout_base) <specification>: Add "depth".
8470 (class tui_layout_window) <specification>: Add "depth".
8471 (class tui_layout_split) <specification>: Add "depth".
8472 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
8473 and return types.
8474 (tui_new_layout_command): Parse sub-layouts.
8475 (_initialize_tui_layout): Update help string.
8476 (tui_layout_window::specification): Add "depth".
8477 (add_layout_command): Update.
8478
ee325b61
TT
84792020-02-22 Tom Tromey <tom@tromey.com>
8480
8481 * NEWS: Add "tui new-layout" item.
8482 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
8483 Add new-layout command to help text.
8484 (validate_window_name): New function.
8485 (tui_new_layout_command): New function.
8486 (_initialize_tui_layout): Register "new-layout".
8487 (tui_layout_window::specification): New method.
8488 (tui_layout_window::specification): New method.
8489 * tui/tui-layout.h (class tui_layout_base) <specification>: New
8490 method.
8491 (class tui_layout_window) <specification>: New method.
8492 (class tui_layout_split) <specification>: New method.
8493
416eb92d
TT
84942020-02-22 Tom Tromey <tom@tromey.com>
8495
8496 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
8497 * tui/tui-win.c (window_name_completer): Update comment.
8498 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
8499 Declare method.
8500 (class tui_layout_window) <replace_window>: Likewise.
8501 (class tui_layout_split) <replace_window>: Likewise.
8502 (tui_set_layout): Don't declare.
8503 (tui_set_initial_layout): Declare function.
8504 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
8505 (asm_regs_layout): New globals.
8506 (tui_current_layout, show_layout): Remove.
8507 (tui_set_layout, tui_add_win_to_layout): Rewrite.
8508 (find_layout, tui_apply_layout): New function.
8509 (layout_completer): Remove.
8510 (tui_next_layout): Reimplement.
8511 (tui_next_layout_command): New function.
8512 (tui_set_initial_layout, tui_prev_layout_command): New functions.
8513 (tui_regs_layout): Reimplement.
8514 (tui_regs_layout_command): New function.
8515 (extract_display_start_addr): Rewrite.
8516 (next_layout, prev_layout): Remove.
8517 (tui_layout_window::replace_window): New method.
8518 (tui_layout_split::replace_window): New method.
8519 (destroy_layout): New function.
8520 (layout_list): New global.
8521 (add_layout_command): New function.
8522 (initialize_layouts): Update.
8523 (tui_layout_command): New function.
8524 (_initialize_tui_layout): Install "layout" commands.
8525 * tui/tui-data.h (enum tui_layout_type): Remove.
8526 (tui_current_layout): Don't declare.
8527
0dbc2fc7
TT
85282020-02-22 Tom Tromey <tom@tromey.com>
8529
8530 * tui/tui-regs.c (tui_reg_layout): Remove.
8531 (tui_reg_command): Use tui_regs_layout.
8532 * tui/tui-layout.h (tui_reg_command): Declare.
8533 * tui/tui-layout.c (tui_reg_command): New function.
8534
5afe342e
TT
85352020-02-22 Tom Tromey <tom@tromey.com>
8536
8537 * tui/tui.c (tui_rl_delete_other_windows): Call
8538 tui_remove_some_windows.
8539 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
8540 Declare method.
8541 (class tui_layout_window) <remove_windows>: New method.
8542 (class tui_layout_split) <remove_windows>: Declare.
8543 (tui_remove_some_windows): Declare.
8544 * tui/tui-layout.c (tui_remove_some_windows): New function.
8545 (tui_layout_split::remove_windows): New method.
8546
427326a8
TT
85472020-02-22 Tom Tromey <tom@tromey.com>
8548
8549 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
8550 * tui/tui-layout.h (tui_next_layout): Declare.
8551 * tui/tui-layout.c (tui_next_layout): New function.
8552
3fe12b6d
TT
85532020-02-22 Tom Tromey <tom@tromey.com>
8554
8555 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
8556 correct coordinates.
8557
59b8b5d2
TT
85582020-02-22 Tom Tromey <tom@tromey.com>
8559
8560 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
8561 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
8562 DATA_WIN case.
8563
2a3d458b
TT
85642020-02-22 Tom Tromey <tom@tromey.com>
8565
8566 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
8567 TUI_DISASM_WIN, not tui_win_list.
8568
3f0cbb04
TT
85692020-02-22 Tom Tromey <tom@tromey.com>
8570
8571 * valprint.c (generic_val_print_enum_1)
8572 (val_print_type_code_flags): Style member names.
8573 * rust-lang.c (val_print_struct, rust_print_enum)
8574 (rust_print_struct_def, rust_internal_print_type): Style member
8575 names.
8576 * p-valprint.c (pascal_object_print_value_fields): Style member
8577 names. Only call fprintf_symbol_filtered for static members.
8578 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
8579 * f-valprint.c (f_val_print): Style member names.
8580 * f-typeprint.c (f_type_print_base): Style member names.
8581 * cp-valprint.c (cp_print_value_fields): Style member names. Only
8582 call fprintf_symbol_filtered for static members.
8583 (cp_print_class_member): Style member names.
8584 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
8585 member names.
8586 * ada-valprint.c (ada_print_scalar): Style enum names.
8587 (ada_val_print_enum): Likewise.
8588 * ada-typeprint.c (print_enum_type): Style enum names.
8589
d4d947ae
TT
85902020-02-21 Tom Tromey <tom@tromey.com>
8591
8592 * psympriv.h (struct partial_symtab): Update comment.
8593
e94e944b
TT
85942020-02-21 Tom Tromey <tromey@adacore.com>
8595
8596 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
8597 type is CORE_ADDR.
8598
1eb73179
TV
85992020-02-21 Tom de Vries <tdevries@suse.de>
8600
8601 PR gdb/25534
8602 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
8603 if dependencies[i]->user != NULL.
8604
4f180d53
AT
86052020-02-21 Ali Tamur <tamur@google.com>
8606
8607 * dwarf2/read.c (dwarf2_name): Add null check.
8608
22b6cd70
TT
86092020-02-20 Tom Tromey <tom@tromey.com>
8610
8611 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
8612 ">=", in binary search.
8613 (dwarf2_find_containing_comp_unit): New overload.
8614 (run_test): New self-test.
8615 (_initialize_dwarf2_read): Register new test.
8616
bd0cf5a6
NC
86172020-02-20 Nelson Chu <nelson.chu@sifive.com>
8618
8619 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
8620 * riscv-tdep.h: Likewise.
8621 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
8622 rv32-only CSR.
8623 * features/riscv/64bit-csr.xml: Regenerated.
8624
3f702acd
SDJ
86252020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
8626 Tom Tromey <tom@tromey.com>
8627
8628 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
8629 of 'fputc_unfiltered'.
8630 (putchar_unfiltered): Call 'fputc_unfiltered'.
8631 (fputc_unfiltered): Call 'fputs_unfiltered'.
8632
d13c7322
AB
86332020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
8634
8635 * config.in: Regenerate.
8636 * configure: Regenerate.
8637 * configure.ac: Add --with-python-libdir option.
8638 * main.c: Use WITH_PYTHON_LIBDIR.
8639
869d8950
TT
86402020-02-19 Tom Tromey <tom@tromey.com>
8641
8642 * symtab.c (general_symbol_info::compute_and_set_names): Use
8643 obstack_strndup. Simplify call to symbol_set_demangled_name.
8644
298e9637
SM
86452020-02-19 Simon Marchi <simon.marchi@efficios.com>
8646
8647 * dwarf2/read.c (allocate_signatured_type_table,
8648 allocate_dwo_unit_table, allocate_type_unit_groups_table,
8649 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
8650 Remove objfile parameter, update all callers.
8651
08410482
DE
86522020-02-19 Doug Evans <dje@google.com>
8653
8654 PR rust/25535
8655 * rust-lang.c (rust_print_enum): Apply embedded_offset to
8656 rust_enum_variant calculation.
8657
dfdeeca1
TT
86582020-02-19 Tom Tromey <tromey@adacore.com>
8659
8660 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
8661
2ef5453b
TT
86622020-02-19 Tom Tromey <tromey@adacore.com>
8663
8664 * ada-lang.c (cache_symbol): Use obstack_strdup.
8665
9f1528a1
AB
86662020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
8667
8668 * configure: Regenerate.
8669
d3c22fa8
TT
86702020-02-19 Tom Tromey <tromey@adacore.com>
8671
8672 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
8673 NULL check.
8674
bf84f706
MR
86752020-02-19 Maciej W. Rozycki <macro@wdc.com>
8676
8677 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
8678
d1c9b20f
AB
86792020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
8680
8681 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
8682 if GDBSERVER is not defined.
8683 (riscv_tdesc_cache): Likewise, also store const target_desc.
8684 (STATIC_IN_GDB): Define.
8685 (riscv_create_target_description): Update declaration with
8686 STATIC_IN_GDB.
8687 (riscv_lookup_target_description): New function, only define if
8688 GDBSERVER is not defined.
8689 * arch/riscv.h (riscv_create_target_description): Declare only
8690 when GDBSERVER is defined.
8691 (riscv_lookup_target_description): New declaration when GDBSERVER
8692 is not defined.
8693 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
8694 (riscv_linux_read_features): ...this, and return
8695 riscv_gdbarch_features instead of target_desc.
8696 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
8697 (riscv_linux_read_description): Rename to...
8698 (riscv_linux_read_features): ...this.
8699 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
8700 Update to use riscv_gdbarch_features and
8701 riscv_lookup_target_description.
8702 * riscv-tdep.c (riscv_find_default_target_description): Use
8703 riscv_lookup_target_description instead of
8704 riscv_create_target_description.
8705
373d7ac0
SM
87062020-02-18 Simon Marchi <simon.marchi@efficios.com>
8707
8708 * valprint.c (generic_val_print_enum_1): When printing a flag
8709 enum with value 0 and there is no enumerator with value 0, print
8710 just "0" instead of "(unknown: 0x0)".
8711
b29a2df0
SM
87122020-02-18 Simon Marchi <simon.marchi@efficios.com>
8713
8714 * valprint.c (generic_val_print_enum_1): Print unknown part of
8715 flag enum in hex.
8716
6740f0cc
SM
87172020-02-18 Simon Marchi <simon.marchi@efficios.com>
8718
8719 * dwarf2/read.c (update_enumeration_type_from_children): Allow
8720 flag enums to contain duplicate enumerators.
8721 * valprint.c (generic_val_print_enum_1): Update comment.
8722
edd45eb0
SM
87232020-02-18 Simon Marchi <simon.marchi@efficios.com>
8724
8725 * dwarf2/read.c: Include "count-one-bits.h".
8726 (update_enumeration_type_from_children): If an enumerator has
8727 multiple bits set, don't treat the enumeration as a "flag enum".
8728 * valprint.c (generic_val_print_enum_1): Assert that enumerators
8729 of flag enums have 0 or 1 bit set.
8730
6d0cf446
BE
87312020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
8732
8733 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
8734 conversion.
8735 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8736 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
8737 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8738 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
8739 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8740
7001c1b7
SM
87412020-02-18 Simon Marchi <simon.marchi@efficios.com>
8742
8743 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
8744
fdb61c6c
SM
87452020-02-14 Simon Marchi <simon.marchi@efficios.com>
8746
8747 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
8748 displaced_step_closure_up.
8749 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
8750 (struct displaced_step_closure_up):
8751 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8752 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
8753 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
8754 Likewise.
8755 * gdbarch.sh (displaced_step_copy_insn): Likewise.
8756 * gdbarch.c, gdbarch.h: Re-generate.
8757 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
8758 displaced_step_closure_up.
8759 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8760 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
8761 * infrun.h (displaced_step_closure_up): New type alias.
8762 (struct displaced_step_inferior_state) <step_closure>: Change
8763 type to displaced_step_closure_up.
8764 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
8765 displaced_step_closure_up.
8766 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8767
a4a38eb4
TT
87682020-02-14 Tom Tromey <tom@tromey.com>
8769
8770 * minidebug.c (gnu_debug_key): New global.
8771 (find_separate_debug_file_in_section): Use it.
8772
e8217e61
SM
87732020-02-14 Simon Marchi <simon.marchi@efficios.com>
8774
8775 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
8776 std::unique_ptr.
8777 * gdbarch.c: Re-generate.
8778 * gdbarch.h: Re-generate.
8779 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
8780 change.
8781 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
8782 type to std::unique_ptr.
8783 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
8784 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8785 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
8786 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
8787 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
8788 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8789 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
8790 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
8791 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8792
d8d83535
SM
87932020-02-14 Simon Marchi <simon.marchi@efficios.com>
8794
8795 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
8796 std::unique_ptr.
8797 (displaced_step_clear): Rename to...
8798 (displaced_step_reset): ... this. Just call displaced->reset ().
8799 (displaced_step_clear_cleanup): Rename to...
8800 (displaced_step_reset_cleanup): ... this.
8801 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
8802 (displaced_step_fixup): Likewise.
8803 (resume_1): Likewise.
8804 (handle_inferior_event): Restore child's memory before calling
8805 displaced_step_fixup on the parent.
8806 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
8807 to std::unique_ptr.
8808 <step_closure>: Change type to std::unique_ptr.
8809
5f661e03
SM
88102020-02-14 Simon Marchi <simon.marchi@efficios.com>
8811
8812 * arm-tdep.c: Include count-one-bits.h.
8813 (cleanup_block_store_pc): Use count_one_bits.
8814 (cleanup_block_load_pc): Use count_one_bits.
8815 (arm_copy_block_xfer): Use count_one_bits.
8816 (thumb2_copy_block_xfer): Use count_one_bits.
8817 (thumb_copy_pop_pc_16bit): Use count_one_bits.
8818 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
8819 (thumb_get_next_pcs_raw): Use count_one_bits.
8820 (arm_get_next_pcs_raw): Use count_one_bits_l.
8821 * arch/arm.c (bitcount): Remove.
8822 * arch/arm.h (bitcount): Remove.
8823
8084e579
TT
88242020-02-14 Tom Tromey <tromey@adacore.com>
8825
8826 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
8827 Update.
8828 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
8829 * dwarf2/loc.c (call_site_find_chain_1): Return
8830 unique_xmalloc_ptr.
8831 (call_site_find_chain): Likewise.
8832
258bf0ee
RB
88332020-02-14 Richard Biener <rguenther@suse.de>
8834
8835 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
8836 on expression with division operators.
8837
f98a8458
AKS
88382020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8839
8840 * MAINTAINERS (Write After Approval): Adding myself.
8841
d1437c0e
TT
88422020-02-12 Tom Tromey <tom@tromey.com>
8843
8844 * event-loop.c (event_data, gdb_event, event_handler_func):
8845 Remove.
8846
3d4560f7
TT
88472020-02-12 Tom Tromey <tom@tromey.com>
8848
8849 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
8850 (dwarf2_frame_objfile_data): Add comment.
8851 (find_comp_unit, set_comp_unit): New functions.
8852 (dwarf2_frame_find_fde): Use find_comp_unit.
8853 (dwarf2_build_frame_info): Use set_comp_unit.
8854
21982304
TT
88552020-02-12 Tom Tromey <tom@tromey.com>
8856
8857 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
8858 (comp_unit): Don't initialize objfile.
8859 (execute_cfa_program): Add text_offset parameter.
8860 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
8861 (dwarf2_frame_cache): Update.
8862 (dwarf2_build_frame_info): Don't set "objfile" member.
8863
4debb237
TT
88642020-02-12 Tom Tromey <tom@tromey.com>
8865
8866 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
8867 (decode_frame_entry): Likewise.
8868 (dwarf2_build_frame_info): Update.
8869
0d404d44
TT
88702020-02-12 Tom Tromey <tom@tromey.com>
8871
8872 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
8873 (decode_frame_entry_1): Use the comp_unit obstack.
8874
a7a3ae5c
TT
88752020-02-12 Tom Tromey <tom@tromey.com>
8876
8877 * dwarf2/frame.c (struct comp_unit): Add initializers and
8878 constructor.
8879 (dwarf2_frame_objfile_data): Store a comp_unit.
8880 (dwarf2_frame_find_fde): Update.
8881 (dwarf2_build_frame_info): Use "new".
8882
a9d65418
TT
88832020-02-12 Tom Tromey <tom@tromey.com>
8884
8885 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
8886 (dwarf2_fde_table): Typedef for std::vector.
8887 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
8888 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
8889 (decode_frame_entry): Update.
8890 (dwarf2_build_frame_info): Use "new".
8891
7559c217
CB
88922020-02-12 Christian Biesinger <cbiesinger@google.com>
8893
8894 * arm-tdep.c (arm_gdbarch_init): Update.
8895 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
8896 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
8897 have_neon, is_m>: Change to bool.
8898
aeefc73c
CB
88992020-02-12 Christian Biesinger <cbiesinger@google.com>
8900
8901 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
8902
d27b8e5f
TT
89032020-02-12 Tom Tromey <tom@tromey.com>
8904
8905 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
8906
cd5900f3
HD
89072020-02-12 Hannes Domani <ssbssa@yahoo.de>
8908
8909 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
8910 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
8911
f056b22b
TT
89122020-02-11 Tom Tromey <tom@tromey.com>
8913
8914 * psymtab.h: Update comment.
8915
f92ff6b5
TT
89162020-02-11 Tom Tromey <tom@tromey.com>
8917
8918 * gdb_obstack.h (struct auto_obstack): Use
8919 DISABLE_COPY_AND_ASSIGN.
8920
3fd6912b
TT
89212020-02-11 Tom Tromey <tom@tromey.com>
8922
8923 * dwarf2/frame.h (struct objfile): Don't forward declare.
8924
69ed9b74
CB
89252020-02-11 Christian Biesinger <cbiesinger@google.com>
8926
8927 * cris-tdep.c (cris_supply_gregset): Change signature to match
8928 what struct regset expects.
8929 (cris_regset): New struct.
8930 (fetch_core_registers): Remove.
8931 (cris_iterate_over_regset_sections): New function.
8932 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
8933 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
8934
bda874f6
CB
89352020-02-11 Christian Biesinger <cbiesinger@google.com>
8936
8937 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
8938 registers.
8939
754e1564
CB
89402020-02-11 Christian Biesinger <cbiesinger@google.com>
8941
8942 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
8943
8ddd8e0e
SM
89442020-02-11 Simon Marchi <simon.marchi@efficios.com>
8945
8946 * configure: Re-generate.
8947
898e7f60
SM
89482020-02-11 Simon Marchi <simon.marchi@efficios.com>
8949
8950 * configure: Re-generate.
8951
58df732b
SM
89522020-02-11 Simon Marchi <simon.marchi@efficios.com>
8953
8954 * acinclude: Update warning.m4 path.
8955 * warning.m4: Move to gdbsupport.
8956
da5bd37e
TT
89572020-02-11 Tom Tromey <tromey@adacore.com>
8958
8959 * remote.c (remote_console_output): Update.
8960 * printcmd.c (printf_command): Update.
8961 * event-loop.c (gdb_wait_for_event): Update.
8962 * linux-nat.c (sigchld_handler): Update.
8963 * remote-sim.c (gdb_os_write_stdout): Update.
8964 (gdb_os_flush_stdout): Update.
8965 (gdb_os_flush_stderr): Update.
8966 (gdb_os_write_stderr): Update.
8967 * exceptions.c (print_exception): Update.
8968 * remote-fileio.c (remote_fileio_func_read): Update.
8969 (remote_fileio_func_write): Update.
8970 * tui/tui.c (tui_enable): Update.
8971 * tui/tui-interp.c (tui_interp::init): Update.
8972 * utils.c (init_page_info): Update.
8973 (putchar_unfiltered, fputc_unfiltered): Update.
8974 (gdb_flush): Update.
8975 (emit_style_escape): Update.
8976 (flush_wrap_buffer, fputs_maybe_filtered): Update.
8977 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
8978 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
8979 (stderr_file::write): Update.
8980 (stderr_file::puts): Update.
8981 * ui-file.h (ui_file_isatty, ui_file_write)
8982 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
8983 (ui_file_puts): Don't declare.
8984
85f0dd3c
TV
89852020-02-10 Tom de Vries <tdevries@suse.de>
8986
8987 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
8988 sentinel to char *.
8989
2e927613
TV
89902020-02-09 Tom de Vries <tdevries@suse.de>
8991
8992 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
8993 filename if it matches "<artificial>".
8994
6bafc845
HD
89952020-02-09 Hannes Domani <ssbssa@yahoo.de>
8996
8997 * windows-tdep.c (struct enum_value_name): New struct.
8998 (create_enum): New function.
8999 (windows_get_siginfo_type): Create and use enum types.
9000
7928d571
HD
90012020-02-09 Hannes Domani <ssbssa@yahoo.de>
9002
9003 * NEWS: Mention $_siginfo support for Windows.
9004 * windows-nat.c (handle_exception): Set siginfo_er.
9005 (windows_nat_target::mourn_inferior): Reset siginfo_er.
9006 (windows_xfer_siginfo): New function.
9007 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
9008 * windows-tdep.c (struct windows_gdbarch_data): New struct.
9009 (init_windows_gdbarch_data): New function.
9010 (get_windows_gdbarch_data): New function.
9011 (windows_get_siginfo_type): New function.
9012 (windows_init_abi): Register windows_get_siginfo_type.
9013 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
9014
6751ebae
TT
90152020-02-08 Tom Tromey <tom@tromey.com>
9016
9017 * dwarf2/read.c (class cutu_reader) <cutu_reader,
9018 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
9019 <keep>: Declare method.
9020 <m_keep>: Remove member.
9021 <~cutu_reader>: Remove.
9022 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9023 (cutu_reader::cutu_reader): Update.
9024 (cutu_reader::keep): Rename from ~cutu_reader.
9025 (process_psymtab_comp_unit, build_type_psymtabs_1)
9026 (process_skeletonless_type_unit, load_partial_comp_unit)
9027 (load_full_comp_unit, dwarf2_read_addr_index)
9028 (read_signatured_type): Update.
9029
135f5437
TT
90302020-02-08 Tom Tromey <tom@tromey.com>
9031
9032 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
9033 "want_partial_unit" parameter.
9034 (process_psymtab_comp_unit): Change want_partial_unit to bool.
9035 Inline check for DW_TAG_partial_unit.
9036 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
9037
9f66ff1c
TT
90382020-02-08 Tom Tromey <tom@tromey.com>
9039
9040 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
9041 read.c.
9042 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
9043 read.c.
9044
c8a7a66f
TT
90452020-02-08 Tom Tromey <tom@tromey.com>
9046
9047 * dwarf2/read.c (read_address): Move to comp-unit.c.
9048 (dwarf2_rnglists_process, dwarf2_ranges_process)
9049 (read_attribute_value, dwarf_decode_lines_1)
9050 (var_decode_location, decode_locdesc): Update.
9051 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
9052 read.c. Remove "cu" parameter.
9053 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
9054 method.
9055
8266302d
TT
90562020-02-08 Tom Tromey <tom@tromey.com>
9057
9058 * dwarf2/read.c (read_attribute_value, read_indirect_string)
9059 (read_indirect_line_string): Update.
9060 * dwarf2/comp-unit.c (read_offset): Remove.
9061 (read_comp_unit_head): Update.
9062 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
9063 method.
9064 (read_offset): Don't declare.
9065
4057dfde
TT
90662020-02-08 Tom Tromey <tom@tromey.com>
9067
9068 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
9069 * dwarf2/read.c (struct comp_unit_head): Move to
9070 dwarf2/comp-unit.h.
9071 (enum class rcuh_kind): Move to comp-unit.h.
9072 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
9073 (read_comp_unit_head, error_check_comp_unit_head)
9074 (read_and_check_comp_unit_head): Move to comp-unit.c.
9075 (read_offset, dwarf_unit_type_name): Likewise.
9076 (create_debug_type_hash_table, read_cutu_die_from_dwo)
9077 (cutu_reader::cutu_reader, read_call_site_scope)
9078 (find_partial_die, follow_die_offset): Update.
9079 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
9080
24aa364d
TT
90812020-02-08 Tom Tromey <tom@tromey.com>
9082
9083 * dwarf2/read.c (read_offset_1): Move to leb.c.
9084 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
9085 (dwarf_decode_macro_bytes): Update.
9086 * dwarf2/leb.c (read_offset): Rename; move from read.c.
9087 * dwarf2/leb.h (read_offset): Declare.
9088
2c7d5afc
TT
90892020-02-08 Tom Tromey <tom@tromey.com>
9090
9091 * dwarf2/read.c (dwarf2_section_size): Remove.
9092 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
9093 Update.
9094 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
9095
4075cb26
TT
90962020-02-08 Tom Tromey <tom@tromey.com>
9097
9098 * dwarf2/read.c (read_initial_length): Move to leb.c.
9099 * dwarf2/leb.h (read_initial_length): Declare.
9100 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
9101 handle_nonstd parameter.
9102 * dwarf2/frame.c (read_initial_length): Remove.
9103 (decode_frame_entry_1): Update.
9104
09ba997f
TT
91052020-02-08 Tom Tromey <tom@tromey.com>
9106
9107 * dwarf2/loc.c (dwarf2_find_location_expression)
9108 (dwarf_evaluate_loc_desc::get_tls_address)
9109 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
9110 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
9111 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
9112 (dwarf2_compile_property_to_c)
9113 (dwarf2_loc_desc_get_symbol_read_needs)
9114 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
9115 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
9116 (loclist_describe_location, loclist_tracepoint_var_ref)
9117 (loclist_generate_c_location): Update.
9118 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
9119 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
9120 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
9121 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
9122 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
9123 (dwarf2_per_cu_data::addr_size)
9124 (dwarf2_per_cu_data::ref_addr_size)
9125 (dwarf2_per_cu_data::text_offset)
9126 (dwarf2_per_cu_data::addr_type): Now methods.
9127 (per_cu_header_read_in): Make per_cu "const".
9128 (dwarf2_version): Remove.
9129 (dwarf2_per_cu_data::int_type): Now a method.
9130 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
9131 (set_die_type, read_array_type, read_subrange_index_type)
9132 (read_tag_string_type, read_subrange_type): Update.
9133 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
9134 offset_size, ref_addr_size, text_offset, addr_type, version,
9135 objfile, int_type, addr_sized_int_type>: Declare methods.
9136
96c738c0
TT
91372020-02-08 Tom Tromey <tom@tromey.com>
9138
9139 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
9140 Move earlier.
9141
8fdd972c
TT
91422020-02-08 Tom Tromey <tom@tromey.com>
9143
9144 * dwarf2/read.h (dwarf_line_debug): Declare.
9145 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
9146 * dwarf2/read.c: Move line_header code to new files.
9147 (dwarf_line_debug): No longer static.
9148 * dwarf2/line-header.c: New file.
9149 * dwarf2/line-header.h: New file.
9150
03075812
TT
91512020-02-08 Tom Tromey <tom@tromey.com>
9152
9153 * dwarf2/read.c (struct line_header) <file_full_name,
9154 file_file_name>: Return unique_xmalloc_ptr.
9155 (line_header::file_file_name): Update.
9156 (line_header::file_full_name): Update.
9157 (dw2_get_file_names_reader): Update.
9158 (macro_start_file): Update.
9159
bb822404
TT
91602020-02-08 Tom Tromey <tom@tromey.com>
9161
9162 * dwarf2/read.c (struct line_header) <file_full_name,
9163 file_file_name>: Declare methods.
9164 (dw2_get_file_names_reader): Update.
9165 (file_file_name): Now a method.
9166 (file_full_name): Likewise.
9167 (macro_start_file): Update.
9168
009b64fc
TT
91692020-02-08 Tom Tromey <tom@tromey.com>
9170
9171 * dwarf2/read.c (dwarf_always_disassemble)
9172 (show_dwarf_always_disassemble): Move to loc.c.
9173 (_initialize_dwarf2_read): Move "always-disassemble" registration
9174 to loc.c.
9175 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
9176 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
9177 static.
9178 (show_dwarf_always_disassemble): Move from read.c.
9179 (_initialize_dwarf2loc): Move always-disassemble from read.c.
9180
5895093f
TT
91812020-02-08 Tom Tromey <tom@tromey.com>
9182
9183 * dwarf2/read.c (~dwarf2_per_objfile): Update.
9184 (create_quick_file_names_table): Return htab_up.
9185 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
9186 Update.
9187 * dwarf2/read.h (struct dwarf2_per_objfile)
9188 <quick_file_names_table>: Now htab_up.
9189
b3b32279
TT
91902020-02-08 Tom Tromey <tom@tromey.com>
9191
9192 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
9193
1d33d811
TT
91942020-02-08 Tom Tromey <tom@tromey.com>
9195
9196 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
9197 Rewrite.
9198 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
9199 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
9200 (abbrev_table::abbrev_table): No longer inline.
9201 (ABBREV_HASH_SIZE): Remove.
9202 (abbrev_table::m_abbrevs): Now an htab_up.
9203
86de1d91
TT
92042020-02-08 Tom Tromey <tom@tromey.com>
9205
9206 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
9207 (cutu_reader): Update.
9208 (build_type_psymtabs_1): Update.
9209 * dwarf2/abbrev.c (abbrev_table::read): Rename.
9210 (abbrev_table::alloc_abbrev): Update.
9211 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
9212 (abbrev_table::read): New static method, renamed from
9213 abbrev_table_read_table.
9214 (abbrev_table::alloc_abbrev)
9215 (abbrev_table::add_abbrev): Now private.
9216 (abbrev_table::abbrev_table): Now private.
9217 (abbrev_table::m_abbrev_obstack): Now private. Rename.
9218
0335378b
TT
92192020-02-08 Tom Tromey <tom@tromey.com>
9220
9221 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
9222 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
9223 htab_up.
9224
48b490f2
TT
92252020-02-08 Tom Tromey <tom@tromey.com>
9226
9227 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
9228 htab_up.
9229 (lookup_dwo_unit_in_dwp): Update.
9230 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
9231 on obstack.
9232
bc68fb19
TT
92332020-02-08 Tom Tromey <tom@tromey.com>
9234
9235 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
9236 obstack.
9237
d15acc42
TT
92382020-02-08 Tom Tromey <tom@tromey.com>
9239
9240 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
9241 line_header_hash.
9242 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
9243 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
9244 Change type to htab_up.
9245
eaa5fa8b
TT
92462020-02-08 Tom Tromey <tom@tromey.com>
9247
9248 * dwarf2/read.c (allocate_type_unit_groups_table): Return
9249 htab_up. Don't allocate on obstack.
9250 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
9251 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
9252 Change type to htab_up.
9253
b0b6a987
TT
92542020-02-08 Tom Tromey <tom@tromey.com>
9255
9256 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
9257 Change type to htab_up.
9258 * dwarf2/read.c (create_signatured_type_table_from_index)
9259 (create_signatured_type_table_from_debug_names)
9260 (create_all_type_units, add_type_unit)
9261 (lookup_dwo_signatured_type, lookup_signatured_type)
9262 (process_skeletonless_type_unit): Update.
9263 (create_debug_type_hash_table, create_debug_types_hash_table):
9264 Change type of types_htab.
9265 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
9266 htab_up. Don't allocate on obstack.
9267 (create_cus_hash_table): Change type of cus_htab parameter.
9268 (struct dwo_file) <cus, tus>: Now htab_up.
9269 (lookup_dwo_signatured_type, lookup_dwo_cutu)
9270 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
9271 (queue_and_load_all_dwo_tus): Update.
9272 * dwarf2/index-write.c (write_gdbindex): Update.
9273 (write_debug_names): Update.
9274
39856def
TT
92752020-02-08 Tom Tromey <tom@tromey.com>
9276
9277 * dwarf2/read.h (struct dwarf2_queue_item): Move from
9278 dwarf2/read.c. Remove "next" member. Add constructor ntad
9279 destructor.
9280 (struct dwarf2_per_objfile) <queue>: New member.
9281 * dwarf2/read.c (struct dwarf2_queue_item): Move to
9282 dwarf2/read.h.
9283 (dwarf2_queue, dwarf2_queue_tail): Remove.
9284 (class dwarf2_queue_guard): Add parameter to constructor. Use
9285 DISABLE_COPY_AND_ASSIGN.
9286 <m_per_objfile>: New member.
9287 <~dwarf2_queue_guard>: Rewrite.
9288 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
9289 Update.
9290 (~dwarf2_queue_item): New.
9291
3e225074
TT
92922020-02-08 Tom Tromey <tom@tromey.com>
9293
9294 * dwarf2/read.c (struct die_info) <has_children>: New member.
9295 (dw2_get_file_names_reader): Remove has_children.
9296 (dw2_get_file_names): Update.
9297 (read_cutu_die_from_dwo): Remove has_children.
9298 (cutu_reader::init_tu_and_read_dwo_dies)
9299 (cutu_reader::cutu_reader): Update.
9300 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
9301 Remove has_children.
9302 (build_type_psymtabs_1, process_skeletonless_type_unit)
9303 (load_partial_comp_unit, load_full_comp_unit): Update.
9304 (create_dwo_cu_reader): Remove has_children.
9305 (create_cus_hash_table, read_die_and_children): Update.
9306 (read_full_die_1,read_full_die): Remove has_children.
9307 (read_signatured_type): Update.
9308 (class cutu_reader) <has_children>: Remove.
9309
82ca8957
TT
93102020-02-08 Tom Tromey <tom@tromey.com>
9311
9312 * dwarf2/expr.c: Rename from dwarf2expr.c.
9313 * dwarf2/expr.h: Rename from dwarf2expr.h.
9314 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
9315 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
9316 * dwarf2/frame.c: Rename from dwarf2-frame.c.
9317 * dwarf2/frame.h: Rename from dwarf2-frame.h.
9318 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
9319 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
9320 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
9321 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
9322 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
9323 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
9324 * dwarf2/loc.c: Rename from dwarf2loc.c.
9325 * dwarf2/loc.h: Rename from dwarf2loc.h.
9326 * dwarf2/read.c: Rename from dwarf2read.c.
9327 * dwarf2/read.h: Rename from dwarf2read.h.
9328 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
9329 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
9330 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
9331 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
9332 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
9333 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
9334 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
9335 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
9336 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
9337 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
9338 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
9339 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
9340 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
9341 Update.
9342 * Makefile.in (COMMON_SFILES): Update.
9343 (HFILES_NO_SRCDIR): Update.
9344
9e35d499
TT
93452020-02-08 Tom Tromey <tom@tromey.com>
9346
9347 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
9348 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
9349
1eba2311
TT
93502020-02-08 Tom Tromey <tom@tromey.com>
9351
9352 * dwarf2read.h (struct die_info): Don't declare.
9353
e41c2da2
TT
93542020-02-08 Tom Tromey <tom@tromey.com>
9355
9356 * dwarf2read.h (die_info_ptr): Remove typedef.
9357
4fc6c0d5
TT
93582020-02-08 Tom Tromey <tom@tromey.com>
9359
9360 * dwarf2read.c (read_call_site_scope)
9361 (handle_data_member_location, dwarf2_add_member_fn)
9362 (mark_common_block_symbol_computed, read_common_block)
9363 (attr_to_dynamic_prop, partial_die_info::read)
9364 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
9365 (dwarf2_symbol_mark_computed, set_die_type): Update.
9366 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
9367 method.
9368 (attr_form_is_block): Don't declare.
9369 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
9370
cd6c91b4
TT
93712020-02-08 Tom Tromey <tom@tromey.com>
9372
9373 * dwarf2read.c (dwarf2_find_base_address, )
9374 (read_call_site_scope, rust_containing_type)
9375 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
9376 (handle_data_member_location, dwarf2_add_member_fn)
9377 (get_alignment, read_structure_type, process_structure_scope)
9378 (mark_common_block_symbol_computed, read_common_block)
9379 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
9380 (partial_die_info::read, read_attribute_value, new_symbol)
9381 (lookup_die_type, dwarf2_get_ref_die_offset)
9382 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
9383 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
9384 (dwarf2_symbol_mark_computed): Update.
9385 * dwarf2/attribute.h (struct attribute) <value_as_address,
9386 form_is_section_offset, form_is_constant, form_is_ref>: Declare
9387 methods.
9388 (value_as_address, attr_form_is_section_offset)
9389 (attr_form_is_constant, attr_form_is_ref): Don't declare.
9390 * dwarf2/attribute.c (attribute::value_as_address)
9391 (attribute::form_is_section_offset, attribute::form_is_constant)
9392 (attribute::form_is_ref): Now methods.
9393
162dce55
TT
93942020-02-08 Tom Tromey <tom@tromey.com>
9395
9396 * dwarf2read.c (struct attribute, DW_STRING)
9397 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
9398 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
9399 (attr_form_is_block, attr_form_is_section_offset)
9400 (attr_form_is_constant, attr_form_is_ref): Move.
9401 * dwarf2/attribute.h: New file.
9402 * dwarf2/attribute.c: New file, from dwarf2read.c.
9403 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
9404
3054dd54
TT
94052020-02-08 Tom Tromey <tom@tromey.com>
9406
9407 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
9408 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
9409 Move.
9410 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
9411 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
9412 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
9413 abbrev.c.
9414 * dwarf2/abbrev.h: New file.
9415 * dwarf2/abbrev.c: New file, from dwarf2read.c.
9416 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
9417
96b79293
TT
94182020-02-08 Tom Tromey <tom@tromey.com>
9419
9420 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
9421 (dwarf2_section_size, dwarf2_get_section_info)
9422 (create_signatured_type_table_from_debug_names)
9423 (create_addrmap_from_aranges, read_debug_names_from_section)
9424 (get_gdb_index_contents_from_section, read_comp_unit_head)
9425 (error_check_comp_unit_head, read_abbrev_offset)
9426 (create_debug_type_hash_table, init_cu_die_reader)
9427 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
9428 (read_comp_units_from_section, create_cus_hash_table)
9429 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
9430 (create_dwp_v2_section, dwarf2_rnglists_process)
9431 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
9432 (abbrev_table_read_table, read_indirect_string_at_offset_from)
9433 (read_indirect_string_from_dwz, read_addr_index_1)
9434 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
9435 (dwarf_decode_macro_bytes, dwarf_decode_macros)
9436 (fill_in_loclist_baton): Update.
9437 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
9438 get_containing_section, get_bfd_owner, get_bfd_section,
9439 get_file_name, get_id, get_flags, empty, read>: Declare methods.
9440 (dwarf2_read_section, get_section_name, get_section_file_name)
9441 (get_containing_section, get_section_bfd_owner)
9442 (get_section_bfd_section, get_section_name, get_section_file_name)
9443 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
9444 declare.
9445 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
9446 (dwarf2_section_info::get_bfd_owner)
9447 (dwarf2_section_info::get_bfd_section)
9448 (dwarf2_section_info::get_name)
9449 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
9450 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
9451 (dwarf2_section_info::read): Now methods.
9452 * dwarf-index-write.c (class debug_names): Update.
9453
2c86cff9
TT
94542020-02-08 Tom Tromey <tom@tromey.com>
9455
9456 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
9457 Move to dwarf2/section.h.
9458 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
9459 (get_section_bfd_section, get_section_name)
9460 (get_section_file_name, get_section_id, get_section_flags)
9461 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
9462 dwarf2/section.c.
9463 * dwarf2/section.h: New file.
9464 * dwarf2/section.c: New file, from dwarf2read.c.
9465 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
9466
f4382c45
TT
94672020-02-08 Tom Tromey <tom@tromey.com>
9468
9469 * dwarf2read.h (read_unsigned_leb128): Don't declare.
9470 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
9471 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
9472 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
9473 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
9474 * dwarf2/leb.h: New file, from dwarf2read.c.
9475 * dwarf2/leb.c: New file, from dwarf2read.c.
9476 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
9477 Remove.
9478 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
9479 (COMMON_SFILES): Add dwarf2/leb.c.
9480
01840b7a
JB
94812020-02-08 Joel Brobecker <brobecker@adacore.com>
9482
9483 GDB 9.1 released.
9484
dfcb27e4
IB
94852020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9486
9487 PR gdb/25190:
aac66a4c
SM
9488 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
9489 * gdb/remote.c (remote_console_output): Update.
9490 * gdb/ui-file.c (fputs_unfiltered): Rename to...
9491 (ui_file_puts): ...this.
9492 * gdb/ui-file.h (ui_file_puts): Add declaration.
9493 * gdb/utils.c (emit_style_escape): Update.
9494 (flush_wrap_buffer): Update.
9495 (fputs_maybe_filtered): Update.
9496 (fputs_unfiltered): Add function.
dfcb27e4 9497
faa17681
IB
94982020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9499
aac66a4c
SM
9500 * gdb/event-loop.c (gdb_wait_for_event): Update.
9501 * gdb/printcmd.c (printf_command): Update.
9502 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
9503 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
9504 (gdb_os_flush_stderr): Update.
9505 * gdb/remote.c (remote_console_output): Update.
9506 * gdb/ui-file.c (gdb_flush): Rename to...
9507 (ui_file_flush): ...this.
9508 (stderr_file::write): Update.
9509 (stderr_file::puts): Update.
9510 * gdb/ui-file.h (gdb_flush): Rename to...
9511 (ui_file_flush): ...this.
9512 * gdb/utils.c (gdb_flush): Add function.
9513 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 9514
5abbbe1d
TT
95152020-02-07 Tom Tromey <tromey@adacore.com>
9516
9517 PR breakpoints/24915:
9518 * source.c (find_and_open_source): Do not check basenames_may_differ.
9519
919adfe8
TT
95202020-02-07 Tom Tromey <tom@tromey.com>
9521
9522 * README: Update gdbserver documentation.
9523 * gdbserver: Move to top level.
9524 * configure.tgt (build_gdbserver): Remove.
9525 * configure.ac: Remove --enable-gdbserver.
9526 * configure: Rebuild.
9527 * Makefile.in (distclean): Don't mention gdbserver.
9528
1d5d29e7
SV
95292020-02-06 Shahab Vahedi <shahab@synopsys.com>
9530
9531 * source-cache.c (source_cache::ensure): Surround
9532 get_plain_source_lines with a try/catch.
9533 (source_cache::get_line_charpos): Get rid of try/catch
9534 and only check for the return value of "ensure".
9535 * tui/tui-source.c (tui_source_window::set_contents):
9536 Simplify "nlines" calculation.
9537
6eb1129c
SV
95382020-02-06 Shahab Vahedi <shahab@synopsys.com>
9539
9540 * MAINTAINERS (Write After Approval): Add myself.
9541
c6a42d11
CB
95422020-02-05 Christian Biesinger <cbiesinger@google.com>
9543
9544 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
9545 function call.
9546
c8ecdda6
CB
95472020-02-05 Christian Biesinger <cbiesinger@google.com>
9548
9549 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
9550
f6480e70
MR
95512020-02-05 Maciej W. Rozycki <macro@wdc.com>
9552
9553 * nat/riscv-linux-tdesc.h: New file.
9554 * nat/riscv-linux-tdesc.c: New file, taking code from...
9555 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9556 ... here.
9557 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
9558 NATDEPFILES.
9559
dcc9fbc6
AB
95602020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
9561
9562 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
9563 we don't set the fake simulator ptid to the null_ptid.
9564
719546c4
SM
95652020-02-03 Simon Marchi <simon.marchi@efficios.com>
9566
9567 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
9568 * gdbthread.h (class thread_info) <resumed>: Likewise.
9569 * infrun.c (resume_1): Likewise.
9570 (proceed): Likewise.
9571 (infrun_thread_stop_requested): Likewise.
9572 (stop_all_threads): Likewise.
9573 (handle_inferior_event): Likewise.
9574 (restart_threads): Likewise.
9575 (finish_step_over): Likewise.
9576 (keep_going_stepped_thread): Likewise.
9577 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
9578 (linux_handle_extended_wait): Likewise.
9579 * record-btrace.c (get_thread_current_frame_id): Likewise.
9580 * record-full.c (record_full_wait_1): Likewise.
9581 * remote.c (remote_target::process_initial_stop_replies): Likewise.
9582 * target.c (target_resume): Likewise.
9583 * thread.c (set_running_thread): Likewise.
9584
e409c542
AKS
95852020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9586
9587 * f-valprint.c (f77_print_array_1): Changed datatype of index
9588 variable to LONGEST from int to enable it to contain bound
9589 values correctly.
9590
ee98c0da
MR
95912020-02-03 Maciej W. Rozycki <macro@wdc.com>
9592
9593 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
9594 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
9595 offsets according to FLEN determined.
9596 (riscv_linux_nat_target::read_description): Determine FLEN
9597 dynamically.
9598 (riscv_linux_nat_target::fetch_registers): Size regset buffer
9599 according to FLEN determined.
9600 (riscv_linux_nat_target::store_registers): Likewise.
9601
aa66aac4
SV
96022020-02-01 Shahab Vahedi <shahab@synopsys.com>
9603
9604 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
9605 when reg->group is empty and reggroup is not.
9606
fd9faca8
TT
96072020-01-31 Tom Tromey <tromey@adacore.com>
9608
9609 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
9610 Call beneath target's mourn_inferior after unpushing.
9611
42330a68
AB
96122020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
9613
9614 PR tui/9765
9615 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
9616 have enough lines to fill the screen, still return the lowest
9617 address we found.
9618
7a27a45b
AB
96192020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
9620
9621 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
9622 '-', '<', and '>' commands.
9623
c47f70e2
PA
96242020-01-29 Pedro Alves <palves@redhat.com>
9625 Sergio Durigan Junior <sergiodj@redhat.com>
9626
9627 * infcmd.c (construct_inferior_arguments): Assert that
9628 'argc' is greater than 0.
9629
5133a315
LM
96302020-01-29 Luis Machado <luis.machado@linaro.org>
9631
9632 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
9633 (BRK_INSN_MASK): Define to 0xd4200000.
9634 (aarch64_program_breakpoint_here_p): New function.
9635 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
9636 * arch-utils.c (default_program_breakpoint_here_p): Moved from
9637 breakpoint.c.
9638 * arch-utils.h (default_program_breakpoint_here_p): Moved from
9639 breakpoint.h
9640 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
9641 call gdbarch_program_breakpoint_here_p.
9642 (program_breakpoint_here): Moved to arch-utils.c, renamed to
9643 default_program_breakpoint_here_p, changed return type to bool and
9644 simplified.
9645 * breakpoint.h (program_breakpoint_here): Moved prototype to
9646 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
9647 return type to bool.
9648 * gdbarch.c: Regenerate.
9649 * gdbarch.h: Regenerate.
9650 * gdbarch.sh (program_breakpoint_here_p): New method.
9651 * infrun.c (handle_signal_stop): Call
9652 gdbarch_program_breakpoint_here_p.
9653
168f8c6b
TT
96542020-01-26 Tom Tromey <tom@tromey.com>
9655
9656 * ctfread.c (struct ctf_fp_info): Reindent.
9657 (_initialize_ctfread): Remove.
9658
128a391f
TT
96592020-01-26 Tom Tromey <tom@tromey.com>
9660
9661 * psymtab.c (partial_map_expand_apply)
9662 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
9663 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
9664 (psym_print_stats, psym_expand_symtabs_for_function)
9665 (psym_map_symbol_filenames, psym_map_matching_symbols)
9666 (psym_expand_symtabs_matching)
9667 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
9668 (maintenance_check_psymtabs): Use new methods.
9669 * psympriv.h (struct partial_symtab) <readin_p,
9670 get_compunit_symtab>: New methods.
9671 <readin, compunit_symtab>: Remove members.
9672 (struct standard_psymtab): New.
9673 (struct legacy_psymtab): Derive from standard_psymtab.
9674 * dwarf2read.h (struct dwarf2_psymtab): Derive from
9675 standard_psymtab.
9676 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
9677
0494dbec
TT
96782020-01-26 Tom Tromey <tom@tromey.com>
9679
9680 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
9681 read_dependencies. Add assert.
9682 * psymtab.c (partial_symtab::read_dependencies): New method.
9683 * psympriv.h (struct partial_symtab) <read_dependencies>: New
9684 method.
9685 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
9686 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
9687 read_dependencies.
9688 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
9689 Add assert.
9690
8566b89b
TT
96912020-01-26 Tom Tromey <tom@tromey.com>
9692
9693 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
9694 Call expand_psymtab.
9695 (xcoff_read_symtab): Call expand_psymtab.
9696 (xcoff_start_psymtab, xcoff_end_psymtab): Set
9697 legacy_expand_psymtab.
9698 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
9699 method.
9700 (struct legacy_psymtab) <expand_psymtab>: Implement.
9701 <legacy_expand_psymtab>: New member.
9702 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
9703 (parse_partial_symbols): Set legacy_expand_psymtab.
9704 (psymtab_to_symtab_1): Change argument order. Call
9705 expand_psymtab.
9706 (new_psymtab): Set legacy_expand_psymtab.
9707 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
9708 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
9709 expand_psymtab.
9710 (dwarf2_psymtab::expand_psymtab): Rename from
9711 psymtab_to_symtab_1. Call expand_psymtab.
9712 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
9713 (dbx_end_psymtab): Likewise.
9714 (dbx_psymtab_to_symtab_1): Change argument order. Call
9715 expand_psymtab.
9716 (dbx_read_symtab): Call expand_psymtab.
9717 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
9718 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
9719 (ctf_psymtab::read_symtab): Call expand_psymtab.
9720
077cbab2
TT
97212020-01-26 Tom Tromey <tom@tromey.com>
9722
9723 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
9724 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
9725 messages.
9726 * mdebugread.c (mdebug_read_symtab): Remove prints.
9727 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
9728 assert.
9729 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
9730
891813be
TT
97312020-01-26 Tom Tromey <tom@tromey.com>
9732
9733 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
9734 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
9735 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
9736 legacy_symtab.
9737 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
9738 * psymtab.c (psymtab_to_symtab): Call method.
9739 (dump_psymtab): Update.
9740 * psympriv.h (struct partial_symtab): Add virtual destructor.
9741 <read_symtab>: New method.
9742 (struct legacy_symtab): New.
9743 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
9744 (struct pst_map) <pst>: Now a legacy_psymtab.
9745 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
9746 (new_psymtab): Use legacy_psymtab.
9747 * dwarf2read.h (struct dwarf2_psymtab): New.
9748 (struct dwarf2_per_cu_data) <psymtab>: Use it.
9749 * dwarf2read.c (dwarf2_create_include_psymtab)
9750 (dwarf2_build_include_psymtabs, create_type_unit_group)
9751 (create_partial_symtab, process_psymtab_comp_unit_reader)
9752 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
9753 (set_partial_user): Use dwarf2_psymtab.
9754 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
9755 (psymtab_to_symtab_1, process_full_comp_unit)
9756 (process_full_type_unit, dwarf2_ranges_read)
9757 (dwarf2_get_pc_bounds, psymtab_include_file_name)
9758 (dwarf_decode_lines): Use dwarf2_psymtab.
9759 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
9760 (add_address_entry_worker, write_one_signatured_type)
9761 (recursively_count_psymbols, recursively_write_psymbols)
9762 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
9763 (write_debug_names): Likewise.
9764 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
9765 <pst>: Now a legacy_psymtab.
9766 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
9767 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
9768 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
9769 * ctfread.c (struct ctf_psymtab): New.
9770 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
9771 ctf_psymtab.
9772 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
9773 (create_partial_symtab): Return a ctf_psymtab.
9774 (scan_partial_symbols): Update.
9775
c3693a1d
TT
97762020-01-26 Tom Tromey <tom@tromey.com>
9777
9778 * xcoffread.c (xcoff_start_psymtab): Use new.
9779 * psymtab.c (partial_symtab::partial_symtab): New constructor,
9780 renamed from start_psymtab_common.
9781 * psympriv.h (struct partial_symtab): Add new constructor.
9782 (start_psymtab_common): Don't declare.
9783 * mdebugread.c (parse_partial_symbols): Use new.
9784 * dwarf2read.c (create_partial_symtab): Use new.
9785 * dbxread.c (start_psymtab): Use new.
9786 * ctfread.c (create_partial_symtab): Use new.
9787
32caafd0
TT
97882020-01-26 Tom Tromey <tom@tromey.com>
9789
9790 * xcoffread.c (xcoff_end_psymtab): Use new.
9791 * psymtab.c (start_psymtab_common): Use new.
9792 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
9793 Update.
9794 * psympriv.h (struct partial_symtab): Add parameters to
9795 constructor. Don't inline.
9796 (allocate_psymtab): Don't declare.
9797 * mdebugread.c (new_psymtab): Use new.
9798 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
9799 * dbxread.c (dbx_end_psymtab): Use new.
9800
abaa2f23
TT
98012020-01-26 Tom Tromey <tom@tromey.com>
9802
9803 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
9804 allocate_psymtab. Update documentation.
9805 * psymtab.c (psymtab_storage::install_psymtab): Rename from
9806 allocate_psymtab. Do not use new.
9807 (allocate_psymtab): Use new. Update.
9808
6d94535f
TT
98092020-01-26 Tom Tromey <tom@tromey.com>
9810
9811 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
9812 * psymtab.c (psym_print_stats): Update.
9813 * psympriv.h (struct partial_symtab) <readin,
9814 psymtabs_addrmap_supported, anonymous>: Now bool.
9815 * mdebugread.c (psymtab_to_symtab_1): Update.
9816 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
9817 (build_type_psymtabs_reader, psymtab_to_symtab_1)
9818 (process_full_comp_unit, process_full_type_unit): Update.
9819 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
9820 * ctfread.c (psymtab_to_symtab): Update.
9821
6f17252b
TT
98222020-01-26 Tom Tromey <tom@tromey.com>
9823
9824 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
9825 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
9826 * psymtab.c (psymtab_storage): Delete psymtabs.
9827 (psymtab_storage::allocate_psymtab): Use new.
9828 (psymtab_storage::discard_psymtab): Use delete.
9829 * psympriv.h (struct partial_symtab): Add constructor and
9830 initializers.
9831
f6f1cebc
TT
98322020-01-26 Tom Tromey <tom@tromey.com>
9833
9834 * machoread.c: Do not include psympriv.h.
9835
e47e48f6
PW
98362020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9837
9838 * NEWS: Mention the new option and the set/show commands.
9839
a2fedca9
PW
98402020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9841
9842 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
9843 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
9844 (validate_exec_file): New variables, enums, functions.
9845 (exec_file_locate_attach, print_section_info): Style the filenames.
9846 (_initialize_exec): Install show_exec_file_mismatch_command and
9847 set_exec_file_mismatch_command.
9848 * gdbcore.h (validate_exec_file): Declare.
9849 * infcmd.c (attach_command): Call validate_exec_file.
9850 * remote.c ( remote_target::remote_add_inferior): Likewise.
9851
7ffa82e1
AB
98522020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9853
9854 * frame.c (find_frame_sal): Move call to get_next_frame into more
9855 inner scope.
9856 * inline-frame.c (inilne_state) <inline_state>: Update argument
9857 types.
9858 (inilne_state) <skipped_symbol>: Rename to...
9859 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
9860 (skip_inline_frames): Build vector of skipped symbols and use this
9861 to reate the inline_state.
9862 (inline_skipped_symbol): Add a comment and some assertions, fetch
9863 skipped symbol from the list.
9864
3d92a3e3
AB
98652020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9866
9867 * buildsym.c (lte_is_less_than): Delete.
9868 (buildsym_compunit::end_symtab_with_blockvector): Create local
9869 lambda function to sort line table entries, and use
9870 std::stable_sort instead of std::sort.
9871 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
9872 markers when looking for a previous line.
9873
94a72be7
AB
98742020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9875
9876 * dwarf2read.c (lnp_state_machine::record_line): Include
9877 end_sequence parameter in debug print out. Record the line if we
9878 are at an end_sequence marker even if it's not the start of a
9879 statement.
9880 * symmisc.c (maintenance_print_one_line_table): Print end of
9881 sequence markers with 'END' not '0'.
9882
53af73bf
PA
98832020-01-24 Pedro Alves <palves@redhat.com>
9884
9885 PR gdb/25410
9886 * thread.c (scoped_restore_current_thread::restore): Use
9887 switch_to_inferior_no_thread.
9888 * exec.c: Include "progspace-and-thread.h".
9889 (add_target_sections, remove_target_sections):
9890 scoped_restore_current_pspace_and_thread instead of
9891 scoped_restore_current_thread.
9892 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
9893 and aspace to the inferior before calling clone_program_space.
9894 Remove stale comment.
9895
3050c6f4
CB
98962020-01-24 Christian Biesinger <cbiesinger@google.com>
9897
9898 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
9899 (arm_netbsd_nat_target::fetch_registers): ...this.
9900 (arm_nbsd_nat_target::store_registers): Rename to...
9901 (arm_netbsd_nat_target::store_registers): ...this.
9902
73685c7e
CB
99032020-01-24 Christian Biesinger <cbiesinger@google.com>
9904
9905 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9906 register_t.
9907
89203d40
CB
99082020-01-24 Christian Biesinger <cbiesinger@google.com>
9909
9910 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
9911 Update comment.
9912 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
9913 Likewise.
9914 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
9915 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
9916 the correct replacement (iterate_over_regset_sections).
9917 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
9918 Update comment.
9919
1ba1ac88
AB
99202020-01-24 Graham Markall <graham.markall@embecosm.com>
9921
9922 PR gdb/23718
9923 * gdb/python/python.c (execute_gdb_command): Call
9924 async_enable_stdin in catch block.
9925
f3364a6d
AB
99262020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9927
9928 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
9929 SWITCH_THRU_ALL_UIS.
9930
733d0a67
AB
99312020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9932
9933 PR tui/9765
9934 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
9935 comment, add extra parameter, and update to store previous symbol
9936 when appropriate.
9937 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
9938 add extra parameter.
9939 * tui/tui-disasm.c (tui_disassemble): Update header comment,
9940 remove unneeded parameter, add try/catch around gdb_print_insn,
9941 rewrite to add items to asm_lines vector.
9942 (tui_find_backward_disassembly_start_address): New function.
9943 (tui_find_disassembly_address): Updated throughout.
9944 (tui_disasm_window::set_contents): Update for changes to
9945 tui_disassemble.
9946 (tui_disasm_window::do_scroll_vertical): No need to adjust the
9947 number of lines to scroll.
9948
b3b3bada
SM
99492020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
9950
9951 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
9952 (SECT_OFF_DATA): Likewise.
9953 (SECT_OFF_RODATA): Likewise.
9954 (SECT_OFF_TEXT): Likewise.
9955 (SECT_OFF_BSS): Likewise.
9956 (struct objfile) <text_section_offset, data_section_offset>: New
9957 methods.
9958 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
9959 objfile::text_section_offset.
9960 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
9961 * coffread.c (coff_symtab_read): Likewise.
9962 (enter_linenos): Likewise.
9963 (process_coff_symbol): Likewise.
9964 * ctfread.c (get_objfile_text_range): Likewise.
9965 * dtrace-probe.c (dtrace_probe::get_relocated_address):
9966 Use objfile::data_section_offset.
9967 * dwarf2-frame.c (execute_cfa_program): Use
9968 objfile::text_section_offset.
9969 (dwarf2_frame_find_fde): Likewise.
9970 * dwarf2read.c (create_addrmap_from_index): Likewise.
9971 (create_addrmap_from_aranges): Likewise.
9972 (dw2_find_pc_sect_compunit_symtab): Likewise.
9973 (process_psymtab_comp_unit_reader): Likewise.
9974 (add_partial_symbol): Likewise.
9975 (add_partial_subprogram): Likewise.
9976 (process_full_comp_unit): Likewise.
9977 (read_file_scope): Likewise.
9978 (read_func_scope): Likewise.
9979 (read_lexical_block_scope): Likewise.
9980 (read_call_site_scope): Likewise.
9981 (dwarf2_rnglists_process): Likewise.
9982 (dwarf2_ranges_process): Likewise.
9983 (dwarf2_ranges_read): Likewise.
9984 (dwarf_decode_lines_1): Likewise.
9985 (new_symbol): Likewise.
9986 (dwarf2_fetch_die_loc_sect_off): Likewise.
9987 (dwarf2_per_cu_text_offset): Likewise.
9988 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
9989 * hppa-tdep.c (read_unwind_info): Likewise.
9990 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
9991 * psympriv.h (struct partial_symtab): Likewise.
9992 * psymtab.c (find_pc_sect_psymtab): Likewise.
9993 * solib-svr4.c (enable_break): Likewise.
9994 * stap-probe.c (relocate_address): Use
9995 objfile::data_section_offset.
9996 * xcoffread.c (enter_line_range): Use
9997 objfile::text_section_offset.
9998 (read_xcoff_symtab): Likewise.
9999
ab53f382
SM
100002020-01-23 Simon Marchi <simon.marchi@efficios.com>
10001
10002 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
10003 declaration to narrower scopes.
10004
e7eee665
SM
100052020-01-23 Simon Marchi <simon.marchi@efficios.com>
10006
10007 * darwin-nat.h (struct darwin_exception_msg, enum
10008 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
10009 Move up.
10010 (class darwin_nat_target) <wait_1, check_new_threads,
10011 decode_exception_message, decode_message, stop_inferior,
10012 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
10013 * darwin-nat.c (darwin_check_new_threads): Rename to...
10014 (darwin_nat_target::check_new_threads): ... this.
10015 (darwin_suspend_inferior_it): Remove.
10016 (darwin_decode_exception_message): Rename to...
10017 (darwin_nat_target::decode_exception_message): ... this.
10018 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
10019 (darwin_decode_message): Rename to...
10020 (darwin_nat_target::decode_message): ... this.
10021 (cancel_breakpoint): Rename to...
10022 (darwin_nat_target::cancel_breakpoint): ... this.
10023 (darwin_wait): Rename to...
10024 (darwin_nat_target::wait_1): ... this. Use range-based for loop
10025 instead of iterate_over_inferiors.
10026 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
10027 (darwin_stop_inferior): Rename to...
10028 (darwin_nat_target::stop_inferior): ... this.
10029 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
10030 (darwin_init_thread_list): Rename to...
10031 (darwin_nat_target::init_thread_list): ... this.
10032 (darwin_ptrace_him): Rename to...
10033 (darwin_nat_target::ptrace_him): ... this.
10034 (darwin_nat_target::create_inferior): Pass lambda function to
10035 fork_inferior.
10036 (darwin_nat_target::detach): Call stop_inferior instead of
10037 darwin_stop_inferior.
10038 * fork-inferior.h (fork_inferior): Change init_trace_fun
10039 parameter to gdb::function_view.
10040 * fork-inferior.c (fork_inferior): Likewise.
10041
c162ed3e
HD
100422020-01-23 Hannes Domani <ssbssa@yahoo.de>
10043
10044 * i386-cygwin-tdep.c (core_process_module_section): Update.
10045 * windows-nat.c (struct lm_info_windows): Add text_offset.
10046 (windows_xfer_shared_libraries): Update.
10047 * windows-tdep.c (windows_xfer_shared_library):
10048 Add text_offset_cached argument.
10049 * windows-tdep.h (windows_xfer_shared_library): Update.
10050
a1237872
SM
100512020-01-21 Simon Marchi <simon.marchi@efficios.com>
10052
10053 * gdbarch.sh: Add declaration for _initialize_gdbarch.
10054
b3ee6dd9
SM
100552020-01-21 Simon Marchi <simon.marchi@efficios.com>
10056
10057 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
10058 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
10059 replace with range-based for.
10060 (gdbsim_interrupt_inferior): Remove.
10061 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
10062 with a range-based for. Inline code from
10063 gdbsim_interrupt_inferior.
10064
f9fac3c8
SM
100652020-01-21 Simon Marchi <simon.marchi@efficios.com>
10066
10067 * infrun.c (proceed): Fix indentation.
10068
f6474de9
TT
100692020-01-21 Tom Tromey <tromey@adacore.com>
10070
10071 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
10072 * python/python.c (python_extension_ops): Update.
10073 (gdbpy_colorize): New function.
10074 * python/lib/gdb/__init__.py (colorize): New function.
10075 * extension.h (ext_lang_colorize): Declare.
10076 * extension.c (ext_lang_colorize): New function.
10077 * extension-priv.h (struct extension_language_ops) <colorize>: New
10078 member.
10079 * cli/cli-style.c (_initialize_cli_style): Update help text.
10080
f0c702d4
LM
100812020-01-21 Luis Machado <luis.machado@linaro.org>
10082
10083 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
10084 <cond>: Change type to bool.
10085 (aarch64_displaced_step_b_cond): Update cond to use bool type.
10086 (aarch64_displaced_step_cb): Likewise.
10087 (aarch64_displaced_step_tb): Likewise.
10088
1ab139e5
LM
100892020-01-21 Luis Machado <luis.machado@linaro.org>
10090
10091 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
10092 output.
10093
0c271889
LM
100942020-01-21 Luis Machado <luis.machado@linaro.org>
10095
10096 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
10097 <pc_adjust>: Adjust the documentation.
10098 (aarch64_displaced_step_fixup): Check if PC really moved before
10099 adjusting it.
10100
4d89c1c7
TT
101012020-01-19 Tom Tromey <tom@tromey.com>
10102
10103 * disasm.c (~gdb_disassembler): New destructor.
10104 (gdb_buffered_insn_length): Call disassemble_free_target.
10105 * disasm.h (class gdb_disassembler): Declare destructor. Use
10106 DISABLE_COPY_AND_ASSIGN.
10107
c0ab21c2
TT
101082020-01-19 Tom Tromey <tom@tromey.com>
10109
10110 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
10111 (die_reader_func_ftype): Remove.
10112 (cutu_reader): New class.
10113 (dw2_get_file_names_reader): Remove "data" parameter.
10114 (dw2_get_file_names): Use cutu_reader.
10115 (create_debug_type_hash_table): Update.
10116 (read_cutu_die_from_dwo): Update comment.
10117 (lookup_dwo_unit): Add dwo_name parameter.
10118 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
10119 die_reader_func_ftype and data parameters.
10120 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
10121 Remove die_reader_func_ftype and data parameters.
10122 (~cutu_reader): New; from init_cutu_and_read_dies.
10123 (cutu_reader::cutu_reader): Rename from
10124 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
10125 and data parameters.
10126 (init_cutu_and_read_dies_simple): Remove.
10127 (struct process_psymtab_comp_unit_data): Remove.
10128 (process_psymtab_comp_unit_reader): Remove data parameter; add
10129 want_partial_unit and pretend_language parameters.
10130 (process_psymtab_comp_unit): Use cutu_reader.
10131 (build_type_psymtabs_reader): Remove data parameter.
10132 (build_type_psymtabs_1): Use cutu_reader.
10133 (process_skeletonless_type_unit): Likewise.
10134 (load_partial_comp_unit_reader): Remove.
10135 (load_partial_comp_unit): Use cutu_reader.
10136 (load_full_comp_unit_reader): Remove.
10137 (load_full_comp_unit): Use cutu_reader.
10138 (struct create_dwo_cu_data): Remove.
10139 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
10140 dwo_unit parameters.
10141 (create_cus_hash_table): Use cutu_reader.
10142 (struct dwarf2_read_addr_index_data): Remove.
10143 (dwarf2_read_addr_index_reader): Remove.
10144 (dwarf2_read_addr_index): Use cutu_reader.
10145 (read_signatured_type_reader): Remove.
10146 (read_signatured_type): Use cutu_reader.
10147
45bbae5c
TT
101482020-01-19 Tom Tromey <tom@tromey.com>
10149
10150 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
10151 * tui/tui-wingeneral.h (class tui_suppress_output): New.
10152 (tui_wrefresh): Declare.
10153 * tui/tui-wingeneral.c (suppress_output): New global.
10154 (tui_suppress_output, ~tui_suppress_output): New constructor and
10155 destructor.
10156 (tui_wrefresh): New function.
10157 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
10158 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
10159 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
10160 method.
10161 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
10162 tui_wrefresh.
10163 (tui_data_window::no_refresh): New method.
10164 (tui_data_item_window::refresh_window): Call tui_wrefresh.
10165 (tui_reg_command): Use tui_suppress_output
10166 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
10167 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
10168 method.
10169 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
10170
4f13c1c0
TT
101712020-01-19 Tom Tromey <tom@tromey.com>
10172
10173 * tui/tui-winsource.c (tui_update_source_windows_with_line):
10174 Handle case where symtab is null.
10175
fa47e446
SM
101762020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
10177
10178 * linux-fork.c (one_fork_p): Simplify.
10179
26f42329
SM
101802020-01-17 Simon Marchi <simon.marchi@efficios.com>
10181
10182 * top.c (struct qt_args): Remove.
10183 (kill_or_detach): Change return type to void, replace `void *`
10184 parameter with a proper one.
10185 (print_inferior_quit_action): Likewise.
10186 (quit_confirm): Use range-based for loop to iterate over inferiors.
10187 (quit_force): Likewise.
10188
a9ac81b1
SM
101892020-01-17 Simon Marchi <simon.marchi@efficios.com>
10190
10191 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
10192 `void *` parameter with proper parameters.
10193 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
10194 (print_one_inferior): Change return type to void, replace `void *`
10195 parameter with proper parameters.
10196 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
10197 inferiors.
10198 (get_other_inferior): Remove.
10199 (mi_cmd_remove_inferior): Use range-based loop to iterate over
10200 inferiors.
10201
788eca49
SM
102022020-01-17 Simon Marchi <simon.marchi@efficios.com>
10203
10204 * mi/mi-interp.c (report_initial_inferior): Remove.
10205 (mi_interp::init): Use range-based for to iterate over inferiors.
10206
d9bc85b6
SM
102072020-01-17 Simon Marchi <simon.marchi@efficios.com>
10208
10209 * python/py-inferior.c (build_inferior_list): Remove.
10210 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
10211
40c94099
CB
102122020-01-16 Christian Biesinger <cbiesinger@google.com>
10213
10214 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
10215 (btrace_stitch_trace): Likewise.
10216 * charset.c (intermediate_encoding): Likewise (vaild).
10217 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
10218 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
10219 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
10220
e0cdfe3c
HD
102212020-01-16 Hannes Domani <ssbssa@yahoo.de>
10222
10223 * windows-tdep.c (windows_get_tlb_type):
10224 Add rtl_user_process_parameters type.
10225
790f1718 102262020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 10227 Norbert Lange <nolange79@gmail.com>
790f1718
PA
10228
10229 PR build/24805
10230 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
10231 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
10232 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
10233 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
10234 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
10235 (ps_plog): Redeclare exported functions with default visibility.
10236
3112ed97
NA
102372020-01-16 Nitika Achra <Nitika.Achra@amd.com>
10238
10239 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
10240 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
10241
8dc3273e
SM
102422020-01-15 Simon Marchi <simon.marchi@efficios.com>
10243
10244 * infcmd.c (post_create_inferior): Use get_thread_regcache
10245 instead of get_current_regcache.
10246
ff47f4f0
TT
102472020-01-14 Tom Tromey <tom@tromey.com>
10248
10249 PR symtab/12535:
10250 * python/python.c (gdbpy_decode_line): Treat empty string the same
10251 as no argument.
10252
975f45b7
TT
102532020-01-14 Tom Tromey <tom@tromey.com>
10254
10255 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
10256
25e57356
TT
102572020-01-14 Tom Tromey <tom@tromey.com>
10258
10259 * nat/linux-btrace.c: Don't include <config.h>.
10260 * nat/linux-ptrace.c: Don't include <config.h>.
10261 * nat/x86-linux-dregs.c: Don't include <config.h>.
10262
05ea2a05
TT
102632020-01-14 Tom Tromey <tom@tromey.com>
10264
10265 * configure: Rebuild.
10266 * configure.ac: Move many checks to ../gdbsupport/common.m4.
10267
01027315
TT
102682020-01-14 Tom Tromey <tom@tromey.com>
10269
10270 * nat/x86-linux-dregs.c: Include configh.h.
10271 * nat/linux-ptrace.c: Include configh.h.
10272 * nat/linux-btrace.c: Include configh.h.
10273 * defs.h: Include config.h, bfd.h.
10274 * configure.ac: Don't source common.host.
10275 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
10276 * configure: Rebuild.
10277 * acinclude.m4: Update path.
10278 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
10279 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
10280 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
10281 (CLIBS): Add LIBSUPPORT.
10282 (CDEPS): Likewise.
10283 (COMMON_SFILES): Remove gdbsupport files.
10284 (HFILES_NO_SRCDIR): Likewise.
10285 (stamp-version): Update path to create-version.sh.
10286 (ALLDEPFILES): Remove gdbsupport files.
10287
b2ceabe8
TT
102882020-01-14 Tom Tromey <tom@tromey.com>
10289
10290 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
10291 USE_WIN32API when needed.
10292 * configure.ac (USE_WIN32API): Don't define.
10293 (WIN32LIBS): Use WIN32APILIBS.
10294 * configure: Rebuild.
10295
25c51f71
TT
102962020-01-14 Tom Tromey <tom@tromey.com>
10297
10298 * configure: Rebuild.
10299 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
10300
717c684d
BE
103012020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
10302
10303 * skip.c (skip_function_command): Make skip w/o arguments use the
10304 name of the inlined function if pc is inside any inlined function.
10305
7da6a5b9
LM
103062020-01-14 Luis Machado <luis.machado@linaro.org>
10307
10308 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
10309 * infrun.c (resume_1): Likewise.
10310 (handle_inferior_event): Remove stale comment.
10311 * linux-nat.c (linux_nat_target::resume): Update comments.
10312 (save_stop_reason): Likewise.
10313 (linux_nat_filter_event): Likewise.
10314 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
10315
44e4c775
AB
103162020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10317
10318 * elfread.c (record_minimal_symbol): Set section index to 0 for
10319 non-allocatable sections.
10320
18a8505e
AT
10321
103222020-01-13 Ali Tamur <tamur@google.com>
10323
10324 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
10325 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
10326 to gdb::optional. Update comments.
10327 (dwo_file): Update comments.
10328 (read_attribute): Update API to take an additional out parameter,
10329 need_reprocess. This is used to mark attributes that need other
10330 attributes (e.g. str_offsets_base) for correct computation which may not
10331 have been read yet.
10332 (read_attribute_reprocess): New function declaration.
10333 (read_addr_index): Likewise.
10334 (read_dwo_str_index): Likewise.
10335 (read_stub_str_index): Likewise.
10336 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
10337 (lookup_addr_base): New function definition.
10338 (lookup_ranges_base): Likewise.
10339 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
10340 lookup_ranges_base.
10341 (init_cutu_and_read_dies): Update comments.
10342 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
10343 unit. This is used to inherit parent's str_offsets_base and addr_base.
10344 Update comments.
10345 (init_cutu_and_read_dies_simple): Reflect API changes.
10346 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
10347 (create_cus_hash_table): Change API to take parent compile unit.
10348 Reflect API changes.
10349 (open_and_init_dwo_file): Reflect API changes.
10350 (dwarf2_get_pc_bounds): Update comments.
10351 (dwarf2_record_block_ranges): Likewise.
10352 (read_full_die_1): Change implementation to reprocess attributes that
10353 need str_offsets_base and addr_base.
10354 (partial_die_info::read): Likewise.
10355 (read_attribute_reprocess): New function definition.
10356 (read_attribute_value): Change API to take an additional out parameter,
10357 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
10358 when a non-dwo compile unit has index based attributes.
10359 (read_attribute): Reflect API changes.
10360 (read_addr_index_1): Reflect API changes. Update comments.
10361 (dwarf2_read_addr_index_data): Reflect API changes.
10362 (dwarf2_read_addr_index): Likewise.
10363 (read_str_index): Change API and implementation. This becomes a helper
10364 to be used by the new string index related methods. Update error
10365 message and comments.
10366 (read_dwo_str_index): New function definition.
10367 (read_stub_str_index): Likewise.
10368 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
10369 * symfile.h (dwarf2_debug_sections): Likewise.
10370 * xcoffread.c (dwarf2_debug_sections): Likewise.
10371
0cac9354
SM
103722020-01-13 Simon Marchi <simon.marchi@efficios.com>
10373
10374 * gdbcore.h (struct core_fns) <core_read_registers>: Change
10375 core_reg_sect type to gdb_byte *.
10376 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
10377 * cris-tdep.c (fetch_core_registers): Likewise.
10378 * corelow.c (core_target::get_core_register_section): Change
10379 type of `contents` to gdb::byte_vector.
10380
9a6d629c
AB
103812020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10382
10383 * tui/tui-wingeneral.c (box_win): Position the title in the center
10384 of the border.
10385
d8b2f9e3
SM
103862020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10387
10388 * corelow.c (core_target::get_core_register_section): Use
10389 std::vector instead of alloca.
10390
bb564c58
SM
103912020-01-13 Simon Marchi <simon.marchi@efficios.com>
10392
10393 * warning.m4: Add -Wmissing-declarations to build_warnings.
10394 * configure: Re-generate.
10395
6b366111
SM
103962020-01-13 Simon Marchi <simon.marchi@efficios.com>
10397
10398 * python/python.c (init__gdb_module): Add declaration.
10399
6c265988
SM
104002020-01-13 Simon Marchi <simon.marchi@efficios.com>
10401
10402 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
10403 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
10404 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
10405 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
10406 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
10407 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
10408 * ada-exp.y (_initialize_ada_exp): Add declaration.
10409 * ada-lang.c (_initialize_ada_language): Add declaration.
10410 * ada-tasks.c (_initialize_tasks): Add declaration.
10411 * agent.c (_initialize_agent): Add declaration.
10412 * aix-thread.c (_initialize_aix_thread): Add declaration.
10413 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
10414 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
10415 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
10416 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
10417 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
10418 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
10419 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
10420 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
10421 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
10422 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
10423 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
10424 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
10425 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
10426 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
10427 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
10428 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
10429 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
10430 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
10431 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
10432 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
10433 * annotate.c (_initialize_annotate): Add declaration.
10434 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
10435 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
10436 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
10437 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
10438 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
10439 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
10440 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
10441 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
10442 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
10443 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
10444 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
10445 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
10446 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
10447 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
10448 * auto-load.c (_initialize_auto_load): Add declaration.
10449 * auxv.c (_initialize_auxv): Add declaration.
10450 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
10451 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
10452 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
10453 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
10454 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
10455 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
10456 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
10457 * breakpoint.c (_initialize_breakpoint): Add declaration.
10458 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
10459 * btrace.c (_initialize_btrace): Add declaration.
10460 * charset.c (_initialize_charset): Add declaration.
10461 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
10462 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
10463 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
10464 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
10465 * cli/cli-script.c (_initialize_cli_script): Add declaration.
10466 * cli/cli-style.c (_initialize_cli_style): Add declaration.
10467 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
10468 * coffread.c (_initialize_coffread): Add declaration.
10469 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
10470 * compile/compile.c (_initialize_compile): Add declaration.
10471 * complaints.c (_initialize_complaints): Add declaration.
10472 * completer.c (_initialize_completer): Add declaration.
10473 * copying.c (_initialize_copying): Add declaration.
10474 * corefile.c (_initialize_core): Add declaration.
10475 * corelow.c (_initialize_corelow): Add declaration.
10476 * cp-abi.c (_initialize_cp_abi): Add declaration.
10477 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
10478 * cp-support.c (_initialize_cp_support): Add declaration.
10479 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
10480 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
10481 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
10482 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
10483 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
10484 * ctfread.c (_initialize_ctfread): Add declaration.
10485 * d-lang.c (_initialize_d_language): Add declaration.
10486 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
10487 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
10488 * dbxread.c (_initialize_dbxread): Add declaration.
10489 * dcache.c (_initialize_dcache): Add declaration.
10490 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
10491 * disasm.c (_initialize_disasm): Add declaration.
10492 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
10493 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
10494 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
10495 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
10496 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
10497 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
10498 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
10499 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
10500 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
10501 * elfread.c (_initialize_elfread): Add declaration.
10502 * exec.c (_initialize_exec): Add declaration.
10503 * extension.c (_initialize_extension): Add declaration.
10504 * f-lang.c (_initialize_f_language): Add declaration.
10505 * f-valprint.c (_initialize_f_valprint): Add declaration.
10506 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
10507 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
10508 * filesystem.c (_initialize_filesystem): Add declaration.
10509 * findcmd.c (_initialize_mem_search): Add declaration.
10510 * findvar.c (_initialize_findvar): Add declaration.
10511 * fork-child.c (_initialize_fork_child): Add declaration.
10512 * frame-base.c (_initialize_frame_base): Add declaration.
10513 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
10514 * frame.c (_initialize_frame): Add declaration.
10515 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
10516 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
10517 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
10518 * gcore.c (_initialize_gcore): Add declaration.
10519 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
10520 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
10521 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
10522 * gdbarch.c (_initialize_gdbarch): Add declaration.
10523 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
10524 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
10525 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
10526 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
10527 * go-lang.c (_initialize_go_language): Add declaration.
10528 * go32-nat.c (_initialize_go32_nat): Add declaration.
10529 * guile/guile.c (_initialize_guile): Add declaration.
10530 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
10531 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
10532 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
10533 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
10534 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
10535 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
10536 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
10537 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
10538 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
10539 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
10540 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
10541 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
10542 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
10543 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
10544 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
10545 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
10546 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
10547 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
10548 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
10549 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
10550 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
10551 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
10552 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
10553 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
10554 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
10555 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
10556 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
10557 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
10558 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
10559 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
10560 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
10561 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
10562 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
10563 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
10564 * infcall.c (_initialize_infcall): Add declaration.
10565 * infcmd.c (_initialize_infcmd): Add declaration.
10566 * inflow.c (_initialize_inflow): Add declaration.
10567 * infrun.c (_initialize_infrun): Add declaration.
10568 * interps.c (_initialize_interpreter): Add declaration.
10569 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
10570 * jit.c (_initialize_jit): Add declaration.
10571 * language.c (_initialize_language): Add declaration.
10572 * linux-fork.c (_initialize_linux_fork): Add declaration.
10573 * linux-nat.c (_initialize_linux_nat): Add declaration.
10574 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
10575 * linux-thread-db.c (_initialize_thread_db): Add declaration.
10576 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
10577 * m2-lang.c (_initialize_m2_language): Add declaration.
10578 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
10579 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
10580 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
10581 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
10582 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
10583 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
10584 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
10585 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
10586 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
10587 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
10588 * machoread.c (_initialize_machoread): Add declaration.
10589 * macrocmd.c (_initialize_macrocmd): Add declaration.
10590 * macroscope.c (_initialize_macroscope): Add declaration.
10591 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
10592 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
10593 * maint.c (_initialize_maint_cmds): Add declaration.
10594 * mdebugread.c (_initialize_mdebugread): Add declaration.
10595 * memattr.c (_initialize_mem): Add declaration.
10596 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
10597 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
10598 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
10599 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
10600 * mi/mi-main.c (_initialize_mi_main): Add declaration.
10601 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
10602 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
10603 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
10604 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
10605 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
10606 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
10607 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
10608 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
10609 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
10610 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
10611 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
10612 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
10613 * mipsread.c (_initialize_mipsread): Add declaration.
10614 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
10615 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
10616 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
10617 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
10618 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
10619 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
10620 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
10621 * nto-procfs.c (_initialize_procfs): Add declaration.
10622 * objc-lang.c (_initialize_objc_language): Add declaration.
10623 * observable.c (_initialize_observer): Add declaration.
10624 * opencl-lang.c (_initialize_opencl_language): Add declaration.
10625 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
10626 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
10627 * osabi.c (_initialize_gdb_osabi): Add declaration.
10628 * osdata.c (_initialize_osdata): Add declaration.
10629 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
10630 * parse.c (_initialize_parse): Add declaration.
10631 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
10632 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
10633 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
10634 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
10635 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
10636 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
10637 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
10638 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
10639 * printcmd.c (_initialize_printcmd): Add declaration.
10640 * probe.c (_initialize_probe): Add declaration.
10641 * proc-api.c (_initialize_proc_api): Add declaration.
10642 * proc-events.c (_initialize_proc_events): Add declaration.
10643 * proc-service.c (_initialize_proc_service): Add declaration.
10644 * procfs.c (_initialize_procfs): Add declaration.
10645 * producer.c (_initialize_producer): Add declaration.
10646 * psymtab.c (_initialize_psymtab): Add declaration.
10647 * python/python.c (_initialize_python): Add declaration.
10648 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
10649 * record-btrace.c (_initialize_record_btrace): Add declaration.
10650 * record-full.c (_initialize_record_full): Add declaration.
10651 * record.c (_initialize_record): Add declaration.
10652 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
10653 * regcache.c (_initialize_regcache): Add declaration.
10654 * reggroups.c (_initialize_reggroup): Add declaration.
10655 * remote-notif.c (_initialize_notif): Add declaration.
10656 * remote-sim.c (_initialize_remote_sim): Add declaration.
10657 * remote.c (_initialize_remote): Add declaration.
10658 * reverse.c (_initialize_reverse): Add declaration.
10659 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
10660 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
10661 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
10662 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
10663 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
10664 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
10665 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
10666 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
10667 Add declaration.
10668 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
10669 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
10670 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
10671 * rust-exp.y (_initialize_rust_exp): Add declaration.
10672 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
10673 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
10674 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
10675 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
10676 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
10677 * score-tdep.c (_initialize_score_tdep): Add declaration.
10678 * ser-go32.c (_initialize_ser_dos): Add declaration.
10679 * ser-mingw.c (_initialize_ser_windows): Add declaration.
10680 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
10681 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
10682 * ser-uds.c (_initialize_ser_socket): Add declaration.
10683 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
10684 * serial.c (_initialize_serial): Add declaration.
10685 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
10686 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
10687 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
10688 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
10689 * skip.c (_initialize_step_skip): Add declaration.
10690 * sol-thread.c (_initialize_sol_thread): Add declaration.
10691 * solib-aix.c (_initialize_solib_aix): Add declaration.
10692 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
10693 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
10694 * solib-frv.c (_initialize_frv_solib): Add declaration.
10695 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
10696 * solib-target.c (_initialize_solib_target): Add declaration.
10697 * solib.c (_initialize_solib): Add declaration.
10698 * source-cache.c (_initialize_source_cache): Add declaration.
10699 * source.c (_initialize_source): Add declaration.
10700 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
10701 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
10702 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
10703 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
10704 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
10705 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
10706 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
10707 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
10708 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
10709 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
10710 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
10711 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
10712 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
10713 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
10714 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
10715 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
10716 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
10717 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
10718 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
10719 * stabsread.c (_initialize_stabsread): Add declaration.
10720 * stack.c (_initialize_stack): Add declaration.
10721 * stap-probe.c (_initialize_stap_probe): Add declaration.
10722 * std-regs.c (_initialize_frame_reg): Add declaration.
10723 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
10724 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
10725 * symfile.c (_initialize_symfile): Add declaration.
10726 * symmisc.c (_initialize_symmisc): Add declaration.
10727 * symtab.c (_initialize_symtab): Add declaration.
10728 * target.c (_initialize_target): Add declaration.
10729 * target-connection.c (_initialize_target_connection): Add
10730 declaration.
10731 * target-dcache.c (_initialize_target_dcache): Add declaration.
10732 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
10733 * thread.c (_initialize_thread): Add declaration.
10734 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
10735 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
10736 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
10737 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
10738 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
10739 * tracectf.c (_initialize_ctf): Add declaration.
10740 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
10741 * tracefile.c (_initialize_tracefile): Add declaration.
10742 * tracepoint.c (_initialize_tracepoint): Add declaration.
10743 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
10744 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
10745 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
10746 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
10747 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
10748 * tui/tui-win.c (_initialize_tui_win): Add declaration.
10749 * tui/tui.c (_initialize_tui): Add declaration.
10750 * typeprint.c (_initialize_typeprint): Add declaration.
10751 * ui-style.c (_initialize_ui_style): Add declaration.
10752 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
10753 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
10754 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
10755 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
10756 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
10757 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
10758 * unittests/filtered_iterator-selftests.c
10759 (_initialize_filtered_iterator_selftests): Add declaration.
10760 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
10761 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
10762 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
10763 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
10764 * unittests/main-thread-selftests.c
10765 (_initialize_main_thread_selftests): Add declaration.
10766 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
10767 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
10768 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
10769 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
10770 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
10771 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
10772 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
10773 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
10774 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
10775 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
10776 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
10777 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
10778 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
10779 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
10780 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
10781 declaration.
10782 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
10783 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
10784 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
10785 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
10786 * user-regs.c (_initialize_user_regs): Add declaration.
10787 * utils.c (_initialize_utils): Add declaration.
10788 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
10789 * valops.c (_initialize_valops): Add declaration.
10790 * valprint.c (_initialize_valprint): Add declaration.
10791 * value.c (_initialize_values): Add declaration.
10792 * varobj.c (_initialize_varobj): Add declaration.
10793 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
10794 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
10795 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
10796 * windows-nat.c (_initialize_windows_nat): Add declaration.
10797 (_initialize_check_for_gdb_ini): Add declaration.
10798 (_initialize_loadable): Add declaration.
10799 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
10800 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
10801 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
10802 * xcoffread.c (_initialize_xcoffread): Add declaration.
10803 * xml-support.c (_initialize_xml_support): Add declaration.
10804 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
10805 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
10806 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
10807 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
10808
e2de1eec
SM
108092020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10810
10811 * regformats/regdat.sh: Generate declaration for init function.
10812
e0037b4c
SM
108132020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10814
10815 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
10816 up.
10817 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
10818 close_one_inferior>: New methods.
10819 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
10820 pass down target to find_inferior_pid.
10821 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
10822 Pass down target to find_inferior_ptid.
10823 (gdbsim_target::create_inferior): Pass down target to
10824 add_thread_silent.
10825 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
10826 target down to find_inferior_ptid and switch_to_thread.
10827 (gdbsim_target::close): Update to call close_one_inferior.
10828 (struct resume_data): Remove.
10829 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
10830 directly, rather than through a void pointer.
10831 (gdbsim_target::resume): Update to call resume_one_inferior.
10832
58920b5b
SM
108332020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
10834
10835 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
10836
4ec89149
PA
108372020-01-12 Pedro Alves <palves@redhat.com>
10838
10839 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
10840 directly for the current inferior instead of
10841 discard_all_inferiors.
10842 (discard_all_inferiors): Delete.
10843
7c392d1d
TT
108442020-01-11 Tom Tromey <tom@tromey.com>
10845
10846 * tui/tui-wingeneral.c (box_win): Check cli_styling.
10847 * tui/tui-winsource.c (tui_source_window_base::refill): Use
10848 deprecated_safe_get_selected_frame.
10849
d9ebdab7
TBA
108502020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10851
10852 * inferior.c (print_inferior): Switch inferior before printing it.
10853
f3c469b9
PA
108542020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
10855 Pedro Alves <palves@redhat.com>
10856
10857 * progspace-and-thread.c (switch_to_program_space_and_thread):
10858 Assert there's an inferior for PSPACE. Use
10859 switch_to_inferior_no_thread to switch the inferior too.
10860 * progspace.c (program_space::~program_space): Call
10861 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
10862 (program_space::free_all_objfiles): Don't call clear_symtab_users
10863 here.
10864 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
10865
65c574f6
PA
108662020-01-10 Pedro Alves <palves@redhat.com>
10867
10868 * NEWS: Mention multi-target debugging, "info connections", and
10869 "add-inferior -no-connection".
10870
2f4fcf00
PA
108712020-01-10 Pedro Alves <palves@redhat.com>
10872
10873 * infrun.c: Include "target-connection.h".
10874 (check_multi_target_resumption): New.
10875 (proceed): Call it.
10876 * target-connection.c (make_target_connection_string): Make
10877 extern.
10878 * target-connection.h (make_target_connection_string): Declare.
10879
121b3efd
PA
108802020-01-10 Pedro Alves <palves@redhat.com>
10881
10882 * Makefile.in (COMMON_SFILES): Add target-connection.c.
10883 * inferior.c (uiout_field_connection): New function.
10884 (print_inferior): Add new "connection-id" column.
10885 (add_inferior_command): Show connection number/string of added
10886 inferior.
10887 * process-stratum-target.h
10888 (process_stratum_target::connection_string): New virtual method.
10889 (process_stratum_target::connection_number): New field.
10890 * remote.c (remote_target::connection_string): New override.
10891 * target-connection.c: New file.
10892 * target-connection.h: New file.
10893 * target.c (decref_target): Remove process_stratum targets from
10894 the connection list.
10895 (target_stack::push): Add process_stratum targets to the
10896 connection list.
10897
4f837581
PA
108982020-01-10 Pedro Alves <palves@redhat.com>
10899
10900 Revert:
10901 2016-04-12 Pedro Alves <palves@redhat.com>
10902 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
10903 Remove references to name.
10904 * serial.h (struct serial) <name>: Delete.
10905
f4ec508e
PA
109062020-01-10 Pedro Alves <palves@redhat.com>
10907
10908 * gdbarch-selftests.c (register_to_value_test): Remove "target
10909 already pushed" check.
10910
5b6d1e4f
PA
109112020-01-10 Pedro Alves <palves@redhat.com>
10912 John Baldwin <jhb@FreeBSD.org>
10913
10914 * aarch64-linux-nat.c
10915 (aarch64_linux_nat_target::thread_architecture): Adjust.
10916 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
10917 (task_command_1): Likewise.
10918 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
10919 (aix_thread_target::wait, aix_thread_target::fetch_registers)
10920 (aix_thread_target::store_registers)
10921 (aix_thread_target::thread_alive): Adjust.
10922 * amd64-fbsd-tdep.c: Include "inferior.h".
10923 (amd64fbsd_get_thread_local_address): Pass down target.
10924 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
10925 thread's gdbarch instead of target_gdbarch.
10926 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
10927 get_last_target_status.
10928 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
10929 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
10930 inferiors.
10931 (update_inserted_breakpoint_locations): Skip if inferiors with no
10932 execution.
10933 (update_global_location_list): When handling moribund locations,
10934 find representative inferior for location's pspace, and use thread
10935 count of its process_stratum target.
10936 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
10937 * bsd-uthread.c (bsd_uthread_target::wait): Use
10938 as_process_stratum_target and adjust thread_change_ptid and
10939 add_thread calls.
10940 (bsd_uthread_target::update_thread_list): Use
10941 as_process_stratum_target and adjust find_thread_ptid,
10942 thread_change_ptid and add_thread calls.
10943 * btrace.c (maint_btrace_packet_history_cmd): Adjust
10944 find_thread_ptid call.
10945 * corelow.c (add_to_thread_list): Adjust add_thread call.
10946 (core_target_open): Adjust add_thread_silent and thread_count
10947 calls.
10948 (core_target::pid_to_str): Adjust find_inferior_ptid call.
10949 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
10950 * event-top.c (async_disconnect): Pop targets from all inferiors.
10951 * exec.c (add_target_sections): Push exec target on all inferiors
10952 sharing the program space.
10953 (remove_target_sections): Remove the exec target from all
10954 inferiors sharing the program space.
10955 (exec_on_vfork): New.
10956 * exec.h (exec_on_vfork): Declare.
10957 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
10958 Pass it down.
10959 (fbsd_nat_target::update_thread_list): Adjust.
10960 (fbsd_nat_target::resume): Adjust.
10961 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
10962 down.
10963 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
10964 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
10965 get_thread_arch_regcache call.
10966 * fork-child.c (gdb_startup_inferior): Pass target down to
10967 startup_inferior and set_executing.
10968 * gdbthread.h (struct process_stratum_target): Forward declare.
10969 (add_thread, add_thread_silent, add_thread_with_info)
10970 (in_thread_list): Add process_stratum_target parameter.
10971 (find_thread_ptid(inferior*, ptid_t)): New overload.
10972 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
10973 parameter.
10974 (all_threads()): Delete overload.
10975 (all_threads, all_non_exited_threads): Add process_stratum_target
10976 parameter.
10977 (all_threads_safe): Use brace initialization.
10978 (thread_count): Add process_stratum_target parameter.
10979 (set_resumed, set_running, set_stop_requested, set_executing)
10980 (threads_are_executing, finish_thread_state): Add
10981 process_stratum_target parameter.
10982 (switch_to_thread): Use is_current_thread.
10983 * i386-fbsd-tdep.c: Include "inferior.h".
10984 (i386fbsd_get_thread_local_address): Pass down target.
10985 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
10986 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
10987 have_inferiors check.
10988 * inf-ptrace.c (inf_ptrace_target::create_inferior)
10989 (inf_ptrace_target::attach): Adjust.
10990 * infcall.c (run_inferior_call): Adjust.
10991 * infcmd.c (run_command_1): Pass target to
10992 scoped_finish_thread_state.
10993 (proceed_thread_callback): Skip inferiors with no execution.
10994 (continue_command): Rename 'all_threads' local to avoid hiding
10995 'all_threads' function. Adjust get_last_target_status call.
10996 (prepare_one_step): Adjust set_running call.
10997 (signal_command): Use user_visible_resume_target. Compare thread
10998 pointers instead of inferior_ptid.
10999 (info_program_command): Adjust to pass down target.
11000 (attach_command): Mark target's 'thread_executing' flag.
11001 (stop_current_target_threads_ns): New, factored out from ...
11002 (interrupt_target_1): ... this. Switch inferior before making
11003 target calls.
11004 * inferior-iter.h
11005 (struct all_inferiors_iterator, struct all_inferiors_range)
11006 (struct all_inferiors_safe_range)
11007 (struct all_non_exited_inferiors_range): Filter on
11008 process_stratum_target too. Remove explicit.
11009 * inferior.c (inferior::inferior): Push dummy target on target
11010 stack.
11011 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
11012 Add process_stratum_target parameter, and pass it down.
11013 (have_live_inferiors): Adjust.
11014 (switch_to_inferior_and_push_target): New.
11015 (add_inferior_command, clone_inferior_command): Handle
11016 "-no-connection" parameter. Use
11017 switch_to_inferior_and_push_target.
11018 (_initialize_inferior): Mention "-no-connection" option in
11019 the help of "add-inferior" and "clone-inferior" commands.
11020 * inferior.h: Include "process-stratum-target.h".
11021 (interrupt_target_1): Use bool.
11022 (struct inferior) <push_target, unpush_target, target_is_pushed,
11023 find_target_beneath, top_target, process_target, target_at,
11024 m_stack>: New.
11025 (discard_all_inferiors): Delete.
11026 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
11027 (all_inferiors, all_non_exited_inferiors): Add
11028 process_stratum_target parameter.
11029 * infrun.c: Include "gdb_select.h" and <unordered_map>.
11030 (target_last_proc_target): New global.
11031 (follow_fork_inferior): Push target on new inferior. Pass target
11032 to add_thread_silent. Call exec_on_vfork. Handle target's
11033 reference count.
11034 (follow_fork): Adjust get_last_target_status call. Also consider
11035 target.
11036 (follow_exec): Push target on new inferior.
11037 (struct execution_control_state) <target>: New field.
11038 (user_visible_resume_target): New.
11039 (do_target_resume): Call target_async.
11040 (resume_1): Set target's threads_executing flag. Consider resume
11041 target.
11042 (commit_resume_all_targets): New.
11043 (proceed): Also consider resume target. Skip threads of inferiors
11044 with no execution. Commit resumtion in all targets.
11045 (start_remote): Pass current inferior to wait_for_inferior.
11046 (infrun_thread_stop_requested): Consider target as well. Pass
11047 thread_info pointer to clear_inline_frame_state instead of ptid.
11048 (infrun_thread_thread_exit): Consider target as well.
11049 (random_pending_event_thread): New inferior parameter. Use it.
11050 (do_target_wait): Rename to ...
11051 (do_target_wait_1): ... this. Add inferior parameter, and pass it
11052 down.
11053 (threads_are_resumed_pending_p, do_target_wait): New.
11054 (prepare_for_detach): Adjust calls.
11055 (wait_for_inferior): New inferior parameter. Handle it. Use
11056 do_target_wait_1 instead of do_target_wait.
11057 (fetch_inferior_event): Adjust. Switch to representative
11058 inferior. Pass target down.
11059 (set_last_target_status): Add process_stratum_target parameter.
11060 Save target in global.
11061 (get_last_target_status): Add process_stratum_target parameter and
11062 handle it.
11063 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
11064 (context_switch): Check inferior_ptid == null_ptid before calling
11065 inferior_thread().
11066 (get_inferior_stop_soon): Pass down target.
11067 (wait_one): Rename to ...
11068 (poll_one_curr_target): ... this.
11069 (struct wait_one_event): New.
11070 (wait_one): New.
11071 (stop_all_threads): Adjust.
11072 (handle_no_resumed, handle_inferior_event): Adjust to consider the
11073 event's target.
11074 (switch_back_to_stepped_thread): Also consider target.
11075 (print_stop_event): Update.
11076 (normal_stop): Update. Also consider the resume target.
11077 * infrun.h (wait_for_inferior): Remove declaration.
11078 (user_visible_resume_target): New declaration.
11079 (get_last_target_status, set_last_target_status): New
11080 process_stratum_target parameter.
11081 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11082 process_stratum_target parameter, and use it.
11083 (clear_inline_frame_state (thread_info*)): New.
11084 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11085 process_stratum_target parameter.
11086 (clear_inline_frame_state (thread_info*)): Declare.
11087 * linux-fork.c (delete_checkpoint_command): Pass target down to
11088 find_thread_ptid.
11089 (checkpoint_command): Adjust.
11090 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
11091 instead of just tweaking inferior_ptid.
11092 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
11093 (exit_lwp): Pass target down to find_thread_ptid.
11094 (attach_proc_task_lwp_callback): Pass target down to
11095 add_thread/set_running/set_executing.
11096 (linux_nat_target::attach): Pass target down to
11097 thread_change_ptid.
11098 (get_detach_signal): Pass target down to find_thread_ptid.
11099 Consider last target status's target.
11100 (linux_resume_one_lwp_throw, resume_lwp)
11101 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
11102 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
11103 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
11104 (linux_nat_target::async_wait_fd): New.
11105 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
11106 target down.
11107 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
11108 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
11109 * linux-thread-db.c (struct thread_db_info::process_target): New
11110 field.
11111 (add_thread_db_info): Save target.
11112 (get_thread_db_info): New process_stratum_target parameter. Also
11113 match target.
11114 (delete_thread_db_info): New process_stratum_target parameter.
11115 Also match target.
11116 (thread_from_lwp): Adjust to pass down target.
11117 (thread_db_notice_clone): Pass down target.
11118 (check_thread_db_callback): Pass down target.
11119 (try_thread_db_load_1): Always push the thread_db target.
11120 (try_thread_db_load, record_thread): Pass target down.
11121 (thread_db_target::detach): Pass target down. Always unpush the
11122 thread_db target.
11123 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
11124 target down. Always unpush the thread_db target.
11125 (find_new_threads_callback, thread_db_find_new_threads_2)
11126 (thread_db_target::update_thread_list): Pass target down.
11127 (thread_db_target::pid_to_str): Pass current inferior down.
11128 (thread_db_target::get_thread_local_address): Pass target down.
11129 (thread_db_target::resume, maintenance_check_libthread_db): Pass
11130 target down.
11131 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
11132 * procfs.c (procfs_target::procfs_init_inferior): Declare.
11133 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
11134 (procfs_init_inferior): Rename to ...
11135 (procfs_target::procfs_init_inferior): ... this and adjust.
11136 (procfs_target::create_inferior, procfs_notice_thread)
11137 (procfs_do_thread_registers): Adjust.
11138 * ppc-fbsd-tdep.c: Include "inferior.h".
11139 (ppcfbsd_get_thread_local_address): Pass down target.
11140 * proc-service.c (ps_xfer_memory): Switch current inferior and
11141 program space as well.
11142 (get_ps_regcache): Pass target down.
11143 * process-stratum-target.c
11144 (process_stratum_target::thread_address_space)
11145 (process_stratum_target::thread_architecture): Pass target down.
11146 * process-stratum-target.h
11147 (process_stratum_target::threads_executing): New field.
11148 (as_process_stratum_target): New.
11149 * ravenscar-thread.c
11150 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
11151 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
11152 down.
11153 * record-btrace.c (record_btrace_target::info_record): Adjust.
11154 (record_btrace_target::record_method)
11155 (record_btrace_target::record_is_replaying)
11156 (record_btrace_target::fetch_registers)
11157 (get_thread_current_frame_id, record_btrace_target::resume)
11158 (record_btrace_target::wait, record_btrace_target::stop): Pass
11159 target down.
11160 * record-full.c (record_full_wait_1): Switch to event thread.
11161 Pass target down.
11162 * regcache.c (regcache::regcache)
11163 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
11164 process_stratum_target parameter and handle it.
11165 (current_thread_target): New global.
11166 (get_thread_regcache): Add process_stratum_target parameter and
11167 handle it. Switch inferior before calling target method.
11168 (get_thread_regcache): Pass target down.
11169 (get_thread_regcache_for_ptid): Pass target down.
11170 (registers_changed_ptid): Add process_stratum_target parameter and
11171 handle it.
11172 (registers_changed_thread, registers_changed): Pass target down.
11173 (test_get_thread_arch_aspace_regcache): New.
11174 (current_regcache_test): Define a couple local test_target_ops
11175 instances and use them for testing.
11176 (readwrite_regcache): Pass process_stratum_target parameter.
11177 (cooked_read_test, cooked_write_test): Pass mock_target down.
11178 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
11179 (get_thread_arch_aspace_regcache): Add process_stratum_target
11180 parameter.
11181 (regcache::target): New method.
11182 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
11183 (regcache::registers_changed_ptid): Add process_stratum_target
11184 parameter.
11185 (regcache::m_target): New field.
11186 (registers_changed_ptid): Add process_stratum_target parameter.
11187 * remote.c (remote_state::supports_vCont_probed): New field.
11188 (remote_target::async_wait_fd): New method.
11189 (remote_unpush_and_throw): Add remote_target parameter.
11190 (get_current_remote_target): Adjust.
11191 (remote_target::remote_add_inferior): Push target.
11192 (remote_target::remote_add_thread)
11193 (remote_target::remote_notice_new_inferior)
11194 (get_remote_thread_info): Pass target down.
11195 (remote_target::update_thread_list): Skip threads of inferiors
11196 bound to other targets. (remote_target::close): Don't discard
11197 inferiors. (remote_target::add_current_inferior_and_thread)
11198 (remote_target::process_initial_stop_replies)
11199 (remote_target::start_remote)
11200 (remote_target::remote_serial_quit_handler): Pass down target.
11201 (remote_target::remote_unpush_target): New remote_target
11202 parameter. Unpush the target from all inferiors.
11203 (remote_target::remote_unpush_and_throw): New remote_target
11204 parameter. Pass it down.
11205 (remote_target::open_1): Check whether the current inferior has
11206 execution instead of checking whether any inferior is live. Pass
11207 target down.
11208 (remote_target::remote_detach_1): Pass down target. Use
11209 remote_unpush_target.
11210 (extended_remote_target::attach): Pass down target.
11211 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
11212 (remote_target::append_resumption): Pass down target.
11213 (remote_target::append_pending_thread_resumptions)
11214 (remote_target::remote_resume_with_hc, remote_target::resume)
11215 (remote_target::commit_resume): Pass down target.
11216 (remote_target::remote_stop_ns): Check supports_vCont_probed.
11217 (remote_target::interrupt_query)
11218 (remote_target::remove_new_fork_children)
11219 (remote_target::check_pending_events_prevent_wildcard_vcont)
11220 (remote_target::remote_parse_stop_reply)
11221 (remote_target::process_stop_reply): Pass down target.
11222 (first_remote_resumed_thread): New remote_target parameter. Pass
11223 it down.
11224 (remote_target::wait_as): Pass down target.
11225 (unpush_and_perror): New remote_target parameter. Pass it down.
11226 (remote_target::readchar, remote_target::remote_serial_write)
11227 (remote_target::getpkt_or_notif_sane_1)
11228 (remote_target::kill_new_fork_children, remote_target::kill): Pass
11229 down target.
11230 (remote_target::mourn_inferior): Pass down target. Use
11231 remote_unpush_target.
11232 (remote_target::core_of_thread)
11233 (remote_target::remote_btrace_maybe_reopen): Pass down target.
11234 (remote_target::pid_to_exec_file)
11235 (remote_target::thread_handle_to_thread_info): Pass down target.
11236 (remote_target::async_wait_fd): New.
11237 * riscv-fbsd-tdep.c: Include "inferior.h".
11238 (riscv_fbsd_get_thread_local_address): Pass down target.
11239 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
11240 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
11241 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
11242 Adjust.
11243 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
11244 * solib-svr4.c (enable_break): Pass down target.
11245 * spu-multiarch.c (parse_spufs_run): Pass down target.
11246 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
11247 * target-delegates.c: Regenerate.
11248 * target.c (g_target_stack): Delete.
11249 (current_top_target): Return the current inferior's top target.
11250 (target_has_execution_1): Refer to the passed-in inferior's top
11251 target.
11252 (target_supports_terminal_ours): Check whether the initial
11253 inferior was already created.
11254 (decref_target): New.
11255 (target_stack::push): Incref/decref the target.
11256 (push_target, push_target, unpush_target): Adjust.
11257 (target_stack::unpush): Defref target.
11258 (target_is_pushed): Return bool. Adjust to refer to the current
11259 inferior's target stack.
11260 (dispose_inferior): Delete, and inline parts ...
11261 (target_preopen): ... here. Only dispose of the current inferior.
11262 (target_detach): Hold strong target reference while detaching.
11263 Pass target down.
11264 (target_thread_name): Add assertion.
11265 (target_resume): Pass down target.
11266 (target_ops::beneath, find_target_at): Adjust to refer to the
11267 current inferior's target stack.
11268 (get_dummy_target): New.
11269 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
11270 has a thread running.
11271 (initialize_targets): Rename to ...
11272 (_initialize_target): ... this.
11273 * target.h: Include "gdbsupport/refcounted-object.h".
11274 (struct target_ops): Inherit refcounted_object.
11275 (target_ops::shortname, target_ops::longname): Make const.
11276 (target_ops::async_wait_fd): New method.
11277 (decref_target): Declare.
11278 (struct target_ops_ref_policy): New.
11279 (target_ops_ref): New typedef.
11280 (get_dummy_target): Declare function.
11281 (target_is_pushed): Return bool.
11282 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
11283 (all_matching_threads_iterator::all_matching_threads_iterator):
11284 Handle filter target.
11285 * thread-iter.h (struct all_matching_threads_iterator, struct
11286 all_matching_threads_range, class all_non_exited_threads_range):
11287 Filter by target too. Remove explicit.
11288 * thread.c (threads_executing): Delete.
11289 (inferior_thread): Pass down current inferior.
11290 (clear_thread_inferior_resources): Pass down thread pointer
11291 instead of ptid_t.
11292 (add_thread_silent, add_thread_with_info, add_thread): Add
11293 process_stratum_target parameter. Use it for thread and inferior
11294 searches.
11295 (is_current_thread): New.
11296 (thread_info::deletable): Use it.
11297 (find_thread_ptid, thread_count, in_thread_list)
11298 (thread_change_ptid, set_resumed, set_running): New
11299 process_stratum_target parameter. Pass it down.
11300 (set_executing): New process_stratum_target parameter. Pass it
11301 down. Adjust reference to 'threads_executing'.
11302 (threads_are_executing): New process_stratum_target parameter.
11303 Adjust reference to 'threads_executing'.
11304 (set_stop_requested, finish_thread_state): New
11305 process_stratum_target parameter. Pass it down.
11306 (switch_to_thread): Also match inferior.
11307 (switch_to_thread): New process_stratum_target parameter. Pass it
11308 down.
11309 (update_threads_executing): Reimplement.
11310 * top.c (quit_force): Pop targets from all inferior.
11311 (gdb_init): Don't call initialize_targets.
11312 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
11313 Declare.
11314 (windows_add_thread, windows_delete_thread): Adjust.
11315 (get_windows_debug_event): Rename to ...
11316 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
11317 * tracefile-tfile.c (tfile_target_open): Pass down target.
11318 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
11319 Forward declare.
11320 (switch_to_thread): Add process_stratum_target parameter.
11321 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
11322 parameter. Use it.
11323 (mi_on_resume): Pass target down.
11324 * nat/fork-inferior.c (startup_inferior): Add
11325 process_stratum_target parameter. Pass it down.
11326 * nat/fork-inferior.h (startup_inferior): Add
11327 process_stratum_target parameter.
11328 * python/py-threadevent.c (py_get_event_thread): Pass target down.
11329
75c6c844
PA
113302020-01-10 Pedro Alves <palves@redhat.com>
11331
11332 * remote.c (remote_target::start_remote): Don't set inferior_ptid
11333 directly. Instead find the first thread in the thread list and
11334 use switch_to_thread.
11335
78f2c40a
PA
113362020-01-10 Pedro Alves <palves@redhat.com>
11337
11338 * remote.c (remote_target::remote_add_inferior): Don't bind a
11339 process to the current inferior if the current inferior is already
11340 bound to a process.
11341
e7af6c70
TBA
113422020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11343 Pedro Alves <palves@redhat.com>
11344
11345 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
11346 If no process is specified, return null_ptid instead of
11347 inferior_ptid.
11348 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
11349 TARGET_WAITKIND_SIGNALLED with no pid.
11350
31ba933e
PA
113512020-01-10 Pedro Alves <palves@redhat.com>
11352
11353 * remote.c (first_remote_resumed_thread): New.
11354 (remote_target::wait_as): Use it as default event_ptid instead of
11355 inferior_ptid.
11356
735fc2ca
PA
113572020-01-10 Pedro Alves <palves@redhat.com>
11358
11359 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
11360
c17e02e1
PA
113612020-01-10 Pedro Alves <palves@redhat.com>
11362
11363 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
11364 not -1.
11365
ab1ddbcf
PA
113662020-01-10 Pedro Alves <palves@redhat.com>
11367
11368 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
11369 ptid to get_last_target_status.
11370 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
11371 ptid to get_last_target_status.
11372 * infcmd.c (continue_command): Don't pass a target_waitstatus to
11373 get_last_target_status.
11374 (info_program_command): Don't pass a target_waitstatus to
11375 get_last_target_status.
11376 * infrun.c (init_wait_for_inferior): Use
11377 nullify_last_target_wait_ptid.
11378 (get_last_target_status): Handle nullptr arguments.
11379 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
11380 (print_stop_event): Don't pass a ptid to get_last_target_status.
11381 (normal_stop): Don't pass a ptid to get_last_target_status.
11382 * infrun.h (get_last_target_status, set_last_target_status): Move
11383 comments here and update.
11384 (nullify_last_target_wait_ptid): Declare.
11385 * linux-fork.c (fork_load_infrun_state): Remove local extern
11386 declaration of nullify_last_target_wait_ptid.
11387 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
11388 to get_last_target_status.
11389
f3f8ece4
PA
113902020-01-10 Pedro Alves <palves@redhat.com>
11391
11392 * gdbthread.h (scoped_restore_current_thread)
11393 <dont_restore, restore, m_dont_restore>: Declare.
11394 * thread.c (thread_alive): Add assertion. Return bool.
11395 (switch_to_thread_if_alive): New.
11396 (prune_threads): Switch inferior/thread.
11397 (print_thread_info_1): Switch thread before calling target methods.
11398 (scoped_restore_current_thread::restore): New, factored out from
11399 ...
11400 (scoped_restore_current_thread::~scoped_restore_current_thread):
11401 ... this.
11402 (scoped_restore_current_thread::scoped_restore_current_thread):
11403 Add assertion.
11404 (thread_apply_all_command, thread_select): Use
11405 switch_to_thread_if_alive.
11406 * infrun.c (proceed, restart_threads, handle_signal_stop)
11407 (switch_back_to_stepped_thread): Switch current thread before
11408 calling target methods.
11409
db2d40f7
PA
114102020-01-10 Pedro Alves <palves@redhat.com>
11411
11412 * inferior.c (switch_to_inferior_no_thread): New function,
11413 factored out from ...
11414 (inferior_command): ... here.
11415 * inferior.h (switch_to_inferior_no_thread): Declare.
11416 * mi/mi-main.c (run_one_inferior): Use
11417 switch_to_inferior_no_thread.
11418
bd420a2d
PA
114192020-01-10 Pedro Alves <palves@redhat.com>
11420
11421 * infcmd.c (kill_command): Remove dead code.
11422
ddf5db90
PA
114232020-01-10 Pedro Alves <palves@redhat.com>
11424
11425 * remote.c (remote_target::mourn_inferior): No longer check
11426 whether the target is running.
11427
5018ce90
PA
114282020-01-10 Pedro Alves <palves@redhat.com>
11429
11430 * corelow.c (core_target::has_execution): Change parameter type to
11431 inferior pointer.
11432 * inferior.c (number_of_live_inferiors): Use
11433 inferior::has_execution instead of target_has_execution_1.
11434 * inferior.h (inferior::has_execution): New.
11435 * linux-thread-db.c (thread_db_target::update_thread_list): Use
11436 inferior::has_execution instead of target_has_execution_1.
11437 * process-stratum-target.c
11438 (process_stratum_target::has_execution): Change parameter type to
11439 inferior pointer. Check the inferior's PID instead of
11440 inferior_ptid.
11441 * process-stratum-target.h
11442 (process_stratum_target::has_execution): Change parameter type to
11443 inferior pointer.
11444 * record-full.c (record_full_core_target::has_execution): Change
11445 parameter type to inferior pointer.
11446 * target.c (target_has_execution_1): Change parameter type to
11447 inferior pointer.
11448 (target_has_execution_current): Adjust.
11449 * target.h (target_ops::has_execution): Change parameter type to
11450 inferior pointer.
11451 (target_has_execution_1): Change parameter type to inferior
11452 pointer. Change return type to bool.
11453 * tracefile.h (tracefile_target::has_execution): Change parameter
11454 type to inferior pointer.
11455
74375d18
PA
114562020-01-10 Pedro Alves <palves@redhat.com>
11457
11458 * exceptions.c (print_flush): Remove current_top_target() check.
11459
acdf84a6
PA
114602020-01-10 Pedro Alves <palves@redhat.com>
11461
11462 * remote.c (show_remote_exec_file): Show the current inferior's
11463 exec-file instead of the command variable's value.
11464
ec506636
PA
114652020-01-10 Pedro Alves <palves@redhat.com>
11466
11467 * record-full.c (record_full_resume_ptid): New global.
11468 (record_full_target::resume): Set it.
11469 (record_full_wait_1): Use record_full_resume_ptid instead of
11470 inferior_ptid.
11471
873657b9
PA
114722020-01-10 Pedro Alves <palves@redhat.com>
11473
11474 * gdbthread.h (scoped_restore_current_thread)
11475 <dont_restore, restore, m_dont_restore>: Declare.
11476 * thread.c (thread_alive): Add assertion. Return bool.
11477 (switch_to_thread_if_alive): New.
11478 (prune_threads): Switch inferior/thread.
11479 (print_thread_info_1): Switch thread before calling target methods.
11480 (scoped_restore_current_thread::restore): New, factored out from
11481 ...
11482 (scoped_restore_current_thread::~scoped_restore_current_thread):
11483 ... this.
11484 (scoped_restore_current_thread::scoped_restore_current_thread):
11485 Add assertion.
11486 (thread_apply_all_command, thread_select): Use
11487 switch_to_thread_if_alive.
11488
7f0ae84c
GB
114892020-01-10 George Barrett <bob@bob131.so>
11490
11491 * stap-probe.c (stap_modify_semaphore): Don't check for null
11492 semaphores.
11493 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
11494 for null semaphores.
11495
f5a7c406
AB
114962020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11497
11498 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
11499 all source windows, and maintain horizontal scroll status while
11500 doing so.
11501
9ae6bf64
TT
115022020-01-09 Tom Tromey <tom@tromey.com>
11503
11504 PR tui/18932:
11505 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
11506 update_source_window, not print_source_lines.
11507
b2efe70c
AB
115082020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11509
11510 * tui/tui.c (tui_enable): Register tui hooks after calling
11511 tui_display_main.
11512
5f23a082
CB
115132020-01-09 Christian Biesinger <cbiesinger@google.com>
11514
11515 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
11516
3061113b
SM
115172020-01-08 Simon Marchi <simon.marchi@efficios.com>
11518
11519 * thread.c (print_thread_info_1): Fix indentation.
11520
57d75002
CB
115212020-01-09 Christian Biesinger <cbiesinger@google.com>
11522
11523 * symtab.c (general_symbol_info::compute_and_set_names): Move the
11524 unique_xmalloc_ptr outside the if to always free the demangled name.
11525
6a053cb1
TT
115262020-01-08 Tom Tromey <tromey@adacore.com>
11527
11528 * xcoffread.c (enter_line_range, read_xcoff_symtab)
11529 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
11530 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
11531 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
11532 Remove.
11533 (section_offsets): New typedef.
11534 * symtab.c (fixup_section, get_msymbol_address): Update.
11535 * symmisc.c (dump_msymbols): Update.
11536 * symfile.h (relative_addr_info_to_section_offsets)
11537 (symfile_map_offsets_to_segments): Update.
11538 * symfile.c (build_section_addr_info_from_objfile)
11539 (init_objfile_sect_indices): Update.
11540 (struct place_section_arg): Change type of "offsets".
11541 (place_section): Update.
11542 (relative_addr_info_to_section_offsets): Change type of
11543 "section_offsets". Remove "num_sections" parameter.
11544 (default_symfile_offsets, syms_from_objfile_1)
11545 (set_objfile_default_section_offset): Update.
11546 (reread_symbols): No need to preserve section offsets by hand.
11547 (symfile_map_offsets_to_segments): Change type of "offsets".
11548 * stap-probe.c (relocate_address): Update.
11549 * stabsread.h (process_one_symbol): Update.
11550 * solib-target.c (struct lm_info_target) <offsets>: Change type.
11551 (solib_target_relocate_section_addresses): Update.
11552 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
11553 Update.
11554 * solib-frv.c (frv_relocate_main_executable): Update.
11555 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
11556 * solib-aix.c (solib_aix_get_section_offsets): Change return
11557 type.
11558 (solib_aix_solib_create_inferior_hook): Update.
11559 * remote.c (remote_target::get_offsets): Update.
11560 * psymtab.c (find_pc_sect_psymtab): Update.
11561 * psympriv.h (struct partial_symbol) <address, text_low,
11562 text_high>: Update.
11563 * objfiles.h (obj_section_offset): Update.
11564 (struct objfile) <section_offsets>: Change type.
11565 <num_sections>: Remove.
11566 (objfile_relocate): Update.
11567 * objfiles.c (entry_point_address_query): Update
11568 (relocate_one_symbol): Change type of "section_offsets".
11569 (objfile_relocate1, objfile_relocate1): Change type of
11570 "new_offsets".
11571 (objfile_rebase1): Update.
11572 * mipsread.c (mipscoff_symfile_read): Update.
11573 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
11574 parameter.
11575 * mdebugread.c (parse_symbol): Change type of "section_offsets".
11576 (parse_external, psymtab_to_symtab_1): Update.
11577 * machoread.c (macho_symfile_offsets): Update.
11578 * ia64-tdep.c (ia64_find_unwind_table): Update.
11579 * hppa-tdep.c (read_unwind_info): Update.
11580 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
11581 * dwarf2read.c (create_addrmap_from_index)
11582 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11583 (process_psymtab_comp_unit_reader, add_partial_symbol)
11584 (add_partial_subprogram, process_full_comp_unit)
11585 (read_file_scope, read_func_scope, read_lexical_block_scope)
11586 (read_call_site_scope, dwarf2_rnglists_process)
11587 (dwarf2_ranges_process, dwarf2_ranges_read)
11588 (dwarf_decode_lines_1, var_decode_location, new_symbol)
11589 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
11590 Update.
11591 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
11592 Update.
11593 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
11594 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
11595 (process_one_symbol): Change type of "section_offsets".
11596 * ctfread.c (get_objfile_text_range): Update.
11597 * coffread.c (coff_symtab_read, enter_linenos)
11598 (process_coff_symbol): Update.
11599 * coff-pe-read.c (add_pe_forwarded_sym): Update.
11600 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
11601
456e800a
TT
116022020-01-08 Tom Tromey <tromey@adacore.com>
11603
11604 * dwarf2read.c (parse_macro_definition): Use std::string.
11605 (parse_macro_definition): Likewise.
11606
6dfa2fc2
TT
116072020-01-08 Tom Tromey <tromey@adacore.com>
11608
11609 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
11610 (ATTR_ALLOC_CHUNK): Remove.
11611
421d1616
TT
116122020-01-08 Tom Tromey <tromey@adacore.com>
11613
11614 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
11615
43816ebc
TT
116162020-01-08 Tom Tromey <tromey@adacore.com>
11617
11618 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
11619 (dwarf2_compute_name, open_dwo_file): Likewise.
11620 (process_enumeration_scope): Use std::vector.
11621 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
11622 (partial_die_info::fixup, dwarf2_start_subfile)
11623 (guess_full_die_structure_name, dwarf2_name): Likewise.
11624 (determine_prefix): Update.
11625 (guess_full_die_structure_name): Make return type const.
11626 (partial_die_full_name): Return unique_xmalloc_ptr.
11627 (DW_FIELD_ALLOC_CHUNK): Remove.
11628
4212d509
TT
116292020-01-07 Tom Tromey <tromey@adacore.com>
11630
11631 PR build/24937:
11632 * stap-probe.c (class stap_static_probe_ops): Add constructor.
11633
06a6207a
JT
116342020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
11635
11636 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
11637
153d79c4
AB
116382020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
11639
11640 * stack.c (print_frame_info): Move disassemble_next_line code
11641 inside source_print block.
11642
66182876
EZ
116432020-01-06 Eli Zaretskii <eliz@gnu.org>
11644
11645 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
11646 gdb/signals.h, as we are now using native signal symbols.
11647
cbfa8581
SV
116482020-01-06 Shahab Vahedi <shahab@synopsys.com>
11649
11650 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
11651 overflow by an early check of content vs threshold.
aac66a4c 11652 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
11653 Likewise.
11654
3f602821
EZ
116552020-01-06 Eli Zaretskii <eliz@gnu.org>
11656
11657 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
11658
a08c904d
JT
116592020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
11660
11661 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
11662 export table if no section contains it's RVA.
11663
89a65580
EZ
116642020-01-06 Eli Zaretskii <eliz@gnu.org>
11665
11666 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
11667
8b7fcda2
HD
116682020-01-06 Hannes Domani <ssbssa@yahoo.de>
11669
11670 * source.c (print_source_lines_base): Set last_line_listed.
11671
a61b4f69
SV
116722020-01-06 Shahab Vahedi <shahab@synopsys.com>
11673
11674 * tui/tui-disasm.c: Remove trailing spaces.
11675
559e7e50
EZ
116762020-01-06 Eli Zaretskii <eliz@gnu.org>
11677 Pedro Alves <palves@redhat.com>
11678
11679 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
11680 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
11681 (windows_gdb_signal_to_target): New function, uses the above
11682 enumeration to convert GDB internal signal codes to equivalent
11683 Windows codes.
11684 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
11685 * windows-nat.c: Include "gdb_wait.h".
11686 (get_windows_debug_event): Extract the fatal exception from the
11687 exit status and convert to the equivalent Posix signal number.
11688 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
11689 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
11690 * gdbsupport/gdb_wait.c: New file, implements
11691 windows_status_to_termsig.
11692 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
11693 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
11694
f2302a34
AB
116952020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
11696
11697 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
11698 show_layout.
11699
6a5206eb
LM
117002020-01-05 Luis Machado <luis.machado@linaro.org>
11701
11702 * aarch64-linux-nat.c
11703 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
11704 and bfd_mach_aarch64.
11705
6ec1d75e
PW
117062020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11707
11708 * ui-file.c (stdio_file::can_emit_style_escape)
11709 (tee_file::can_emit_style_escape): Ensure style is used also on
11710 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
11711 to gdb_stdout.
11712 * main.c (set_gdb_data_directory): Use file style to output the
11713 warning that the given pathname is not a directory.
11714 * top.c (show_history_filename, gdb_safe_append_history)
11715 (show_gdb_datadir): Use file style.
11716
44f81a76
HD
117172020-01-03 Hannes Domani <ssbssa@yahoo.de>
11718
11719 * solib-target.c (struct lm_info_target):
11720 Change offsets to be a unique_xmalloc_ptr.
11721 (solib_target_relocate_section_addresses): Update.
11722
25057eb0
HD
117232020-01-03 Hannes Domani <ssbssa@yahoo.de>
11724
11725 * windows-nat.c (windows_clear_solib): Free so_list linked list.
11726
6e2118f5
BE
117272020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
11728
11729 * MAINTAINERS (Write After Approval): Add myself.
11730
8133c7dc
LM
117312020-01-02 Luis Machado <luis.machado@linaro.org>
11732
11733 * proc-service.c (get_ps_regcache): Remove reference to obsolete
11734 Cell BE architecture.
11735 * target.h (struct target_ops) <thread_architecture>: Likewise.
11736
48189bec
HD
117372020-01-01 Hannes Domani <ssbssa@yahoo.de>
11738
11739 * Makefile.in: Use INSTALL_PROGRAM_ENV.
11740
ead1063b
HD
117412020-01-01 Hannes Domani <ssbssa@yahoo.de>
11742
11743 * MAINTAINERS (Write After Approval): Add myself.
11744
e5d78223
JB
117452020-01-01 Joel Brobecker <brobecker@adacore.com>
11746
11747 * gdbarch.sh: Update copyright year range of generated files.
11748
b811d2c2
JB
117492020-01-01 Joel Brobecker <brobecker@adacore.com>
11750
11751 Update copyright year range in all GDB files.
11752
5f4def5c
JB
117532020-01-01 Joel Brobecker <brobecker@adacore.com>
11754
11755 * copyright.py: Convert to Python 3.
11756
51fd4002
JB
117572020-01-01 Joel Brobecker <brobecker@adacore.com>
11758
11759 * copyright.py: Adapt after move of gnulib directory from gdb
11760 directory to toplevel directory.
11761
5fb651f2
JB
117622020-01-01 Joel Brobecker <brobecker@adacore.com>
11763
11764 * copyright.py (main): Exit if run from the wrong directory.
11765
5dd8bf88
JB
117662020-01-01 Joel Brobecker <brobecker@adacore.com>
11767
11768 * top.c (print_gdb_version): Change copyright year to 2020.
11769
9f71dacb 117702020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 11771
9f71dacb 11772 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 11773
9f71dacb 11774For older changes see ChangeLog-2019.
c906108c
SS
11775\f
11776Local Variables:
11777mode: change-log
11778left-margin: 8
11779fill-column: 74
11780version-control: never
57da7796 11781coding: utf-8
c906108c 11782End: