]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Revert "PR26337, Malloc size error in objdump"
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
97916bfe
SM
12020-08-04 Simon Marchi <simon.marchi@efficios.com>
2
3 * frame.h (frame_id_p): Return bool.
4 (frame_id_artificial_p): Return bool.
5 (frame_id_eq): Return bool.
6 (has_stack_frames): Return bool.
7 (get_selected_frame): Fix typo in comment.
8 (get_frame_pc_if_available): Return bool.
9 (get_frame_address_in_block_if_available): Return bool.
10 (get_frame_func_if_available): Return bool.
11 (read_frame_register_unsigned): Return bool.
12 (get_frame_register_bytes): Return bool.
13 (safe_frame_unwind_memory): Return bool.
14 (deprecated_frame_register_read): Return bool.
15 (frame_unwinder_is): Return bool.
16 * frame.c (struct frame_info) <prev_arch::p>: Change type to
17 bool.
18 <this_id::p>: Likewise.
19 <prev_p>: Likewise.
20 (frame_stash_add): Return bool.
21 (get_frame_id): Use bool.
22 (frame_id_build_special) Use bool.
23 (frame_id_build_unavailable_stack): Use bool.
24 (frame_id_build): Use bool.
25 (frame_id_p): Return bool, use true/false instead of 1/0.
26 (frame_id_artificial_p): Likewise.
27 (frame_id_eq): Likewise.
28 (frame_id_inner): Likewise.
29 (get_frame_func_if_available): Likewise.
30 (read_frame_register_unsigned): Likewise.
31 (deprecated_frame_register_read): Likewise.
32 (get_frame_register_bytes): Likewise.
33 (has_stack_frames): Likewise.
34 (inside_main_func): Likewise.
35 (inside_entry_func): Likewise.
36 (get_frame_pc_if_available): Likewise.
37 (get_frame_address_in_block_if_available): Likewise.
38 (frame_unwinder_is): Likewise.
39 (safe_frame_unwind_memory): Likewise.
40 (frame_unwind_arch): Likewise.
41
fedfee88
SM
422020-08-04 Simon Marchi <simon.marchi@efficios.com>
43
44 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
45 type to cached_copy_status.
46 (fprintf_frame): Adjust.
47 (get_frame_func_if_available): Adjust.
48 (frame_cleanup_after_sniffer): Adjust.
49
6cfa9b59
MW
502020-08-04 Mark Wielaard <mark@klomp.org>
51
52 * MAINTAINERS (Write After Approval): Update email address.
53
66d6346b
SM
542020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
55
56 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
57 dynamic_prop::const_val.
58
8a6d5e35
SM
592020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
60
61 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
62 dynamic_prop::kind.
63
51d6067d
SM
642020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
65
66 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
67
b26e2ae7
JM
682020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
69
70 * configure.tgt: Set gdb_sim for bpf-*-* targets.
71
39791af2
JM
722020-08-04 Weimin Pan <weimin.pan@oracle.com>
73 Jose E. Marchesi <jose.marchesi@oracle.com>
74
75 * configure.tgt: Add entry for bpf-*-*.
76 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
77 (ALLDEPFILES): Add bpf-tdep.c.
78 * bpf-tdep.c: New file.
79 * MAINTAINERS: Add bpf target and maintainer.
80 * NEWS: Mention the support for the new target.
81
521894aa
TV
822020-08-04 Tom de Vries <tdevries@suse.de>
83
84 PR symtab/23270
85 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
86 Error.
87
5d6356e9
JB
882020-08-03 John Baldwin <jhb@FreeBSD.org>
89
90 * syscalls/freebsd.xml: Regenerate.
91
0cf82b81
JB
922020-08-03 John Baldwin <jhb@FreeBSD.org>
93
94 * syscalls/update-freebsd.sh: Fix usage and year range.
95
8f34b746
TV
962020-08-03 Tom de Vries <tdevries@suse.de>
97
98 PR symtab/26333
99 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
100 DW_LNE_lo_user/DW_LNE_hi_user range.
101
5e500d33
SM
1022020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
103
104 PR ada/26318
105 * ada-lang.c (ada_modulus): Return 0 if property is not of const
106 kind.
107
78319c15
TBA
1082020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
109
110 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
111
4c55e970
TBA
1122020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
113
114 * breakpoint.c (set_breakpoint_condition): Update the condition
115 expressions after checking that the input condition string parses
116 successfully and does not contain junk at the end.
117
1e620590
TBA
1182020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
119
120 * breakpoint.c (set_breakpoint_condition): Update the
121 condition string after parsing the new condition successfully.
122
c8693053
RO
1232020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
124
125 * proc-api.c (_STRUCTURED_PROC): Don't define.
126 * proc-events.c: Likewise.
127 * proc-flags.c: Likewise.
128 * proc-why.c: Likewise.
129 * procfs.c: Likewise.
130
131 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
132 * configure, config.in: Regenerate.
133
5a99adb8
TV
1342020-07-30 Tom de Vries <tdevries@suse.de>
135
136 PR build/26320
137 * ui-style.h (struct ui_file_style::color): Wrap m_value and
138 m_red/m_green/m_blue in a union.
139
8ba83e91
TV
1402020-07-29 Tom de Vries <tdevries@suse.de>
141
142 PR tdep/26280
143 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
144
f75a0693
AB
1452020-07-28 Tom Tromey <tromey@adacore.com>
146
147 PR symtab/26270:
148 * symtab.h (find_pc_partial_function_sym): Declare.
149 * cli/cli-cmds.c (disassemble_command): Use
150 find_pc_partial_function_sym. Check asm_demangle.
151 * blockframe.c (cache_pc_function_sym): New global.
152 (cache_pc_function_name): Remove.
153 (clear_pc_function_cache): Update.
154 (find_pc_partial_function_sym): New function, from
155 find_pc_partial_function.
156 (find_pc_partial_function): Rewrite using
157 find_pc_partial_function_sym.
158
16f3242c
TT
1592020-07-28 Tom Tromey <tromey@adacore.com>
160
161 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
162 help. Add usage.
163
4888741a
TT
1642020-07-28 Tom Tromey <tromey@adacore.com>
165
166 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
167 <DW_OP_GNU_variable_value>: Cast to address type.
168
4d46f402
KR
1692020-07-28 Kamil Rytarowski <n54@gmx.com>
170
171 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
172 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
173 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
174 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
175 (nbsd_get_siginfo_type): New.
176 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
177 (_initialize_nbsd_tdep): New.
178
d70f978b
L
1792020-07-28 H.J. Lu <hongjiu.lu@intel.com>
180
181 PR binutils/26301
182 * configure: Regenerated.
183
377170fa
L
1842020-07-28 H.J. Lu <hongjiu.lu@intel.com>
185
186 PR binutils/26301
187 * configure: Regenerated.
188
43d5901d
AB
1892020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
190
191 * python/py-frame.c: Remove 'user-regs.h' include.
192 (frapy_read_register): Rewrite to make use of
193 gdbpy_parse_register_id.
194 * python/py-registers.c (gdbpy_parse_register_id): New function,
195 moved here from python/py-unwind.c. Updated the return type, and
196 also accepts register descriptor objects.
197 * python/py-unwind.c: Remove 'user-regs.h' include.
198 (pyuw_parse_register_id): Moved to python/py-registers.c.
199 (unwind_infopy_add_saved_register): Update to use
200 gdbpy_parse_register_id.
201 (pending_framepy_read_register): Likewise.
202 * python/python-internal.h (gdbpy_parse_register_id): Declare.
203
14fa8fb3
AB
2042020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
205
206 * python/py-registers.c: Add 'user-regs.h' include.
207 (register_descriptor_iter_find): New function.
208 (register_descriptor_iterator_object_methods): New static global
209 methods array.
210 (register_descriptor_iterator_object_type): Add pointer to methods
211 array.
212
ddce1758
JB
2132020-07-27 John Baldwin <jhb@FreeBSD.org>
214
215 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
216 for all architectures on FreeBSD 11.3 and later.
217
a4089f52
TT
2182020-07-27 Tom Tromey <tromey@adacore.com>
219
220 * gcore.h (load_corefile): Don't declare.
221
95420d30
TV
2222020-07-27 Tom de Vries <tdevries@suse.de>
223
224 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
225 * config.in: Regenerate.
226 * configure: Regenerate.
227
05a6b8c2
EZ
2282020-07-26 Eli Zaretskii <eliz@gnu.org>
229
230 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
231 ws2tcpip.h. When checking whether socklen_t type is defined, use
232 ws2tcpip.h if it is available and sys/socket.h isn't.
233 * configure: Regenerate.
234 * config.in: Regenerate.
235
e79eb02f
AB
2362020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
237
238 PR fortran/23051
239 PR fortran/26139
240 * valops.c (value_ind): Pass address to
241 readjust_indirect_value_type.
242 * value.c (readjust_indirect_value_type): Make parameter
243 non-const, and add extra address parameter. Resolve original type
244 before using it.
245 * value.h (readjust_indirect_value_type): Update function
246 signature and comment.
247
876518dd
TV
2482020-07-25 Tom de Vries <tdevries@suse.de>
249
250 PR symtab/26243
251 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
252 entries.
253
f6720b1c
AM
2542020-07-24 Aaron Merey <amerey@redhat.com>
255
256 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
257 * configure: Rebuild.
258
513487e1
KB
2592020-07-23 Kevin Buettner <kevinb@redhat.com>
260
261 PR corefiles/26294
262 * corelow.c (_initialize_corelow): Add period to help text
263 for "maintenance print core-file-backed-mappings".
264
e7bc9db8
PA
2652020-07-23 Pedro Alves <pedro@palves.net>
266
267 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
268 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
269 meanwhile.
270 * frame.c (frame_cache_generation, get_frame_cache_generation):
271 New.
272 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
273 (get_prev_frame_if_no_cycle): On exception, don't touch
274 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
275 * frame.h (get_frame_cache_generation): Declare.
276
90fcc466
TV
2772020-07-23 Tom de Vries <tdevries@suse.de>
278
279 PR tui/26282
280 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
281 New default constructor.
282
78344df7
AB
2832020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
284
285 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
286 exclude non-statement entries.
287
b089853a
KB
2882020-07-22 Kevin Buettner <kevinb@redhat.com>
289
290 * NEWS (New commands): Mention new command
291 "maintenance print core-file-backed-mappings".
292
09c2f5d4
KB
2932020-07-22 Kevin Buettner <kevinb@redhat.com>
294
295 * corelow.c (gdbcmd.h): Include.
296 (core_target::info_proc_mappings): New method.
297 (get_current_core_target): New function.
298 (maintenance_print_core_file_backed_mappings): New function.
299 (_initialize_corelow): Add core-file-backed-mappings to
300 "maint print" commands.
301
9c5ec5c2
KB
3022020-07-22 Kevin Buettner <kevinb@redhat.com>
303
304 * linux-tdep.c (dump_note_entry_p): New function.
305 (linux_dump_mapping_p_ftype): New typedef.
306 (linux_find_memory_regions_full): Add new parameter,
307 should_dump_mapping_p.
308 (linux_find_memory_regions): Adjust call to
309 linux_find_memory_regions_full.
310 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
311 call to linux_find_memory_regions_full.
312
db082f59
KB
3132020-07-22 Kevin Buettner <kevinb@redhat.com>
314
315 * corelow.c (solist.h, unordered_map): Include.
316 (class core_target): Add field m_core_file_mappings and
317 method build_file_mappings.
318 (core_target::core_target): Call build_file_mappings.
319 (core_target::~core_target): Free memory associated with
320 m_core_file_mappings.
321 (core_target::build_file_mappings): New method.
322 (core_target::xfer_partial): Use m_core_file_mappings
323 for memory transfers.
324 * linux-tdep.c (linux_read_core_file_mappings): New
325 function.
326 (linux_core_info_proc_mappings): Rewrite to use
327 linux_read_core_file_mappings.
328 (linux_init_abi): Register linux_read_core_file_mappings.
329
7e183d27
KB
3302020-07-22 Kevin Buettner <kevinb@redhat.com>
331
332 * arch-utils.c (default_read_core_file_mappings): New function.
333 * arch-utils.c (default_read_core_file_mappings): Declare.
334 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
335 * gdbarch.h, gdbarch.c: Regenerate.
336
2735d421
KB
3372020-07-22 Kevin Buettner <kevinb@redhat.com>
338
339 PR corefiles/25631
340 * corelow.c (core_target:xfer_partial): Revise
341 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
342 case after first checking the stratum beneath the core
343 target.
344 (has_all_memory): Return true.
345 * target.c (raw_memory_xfer_partial): Revise comment
346 regarding use of has_all_memory.
347
e56cb451
KB
3482020-07-22 Kevin Buettner <kevinb@redhat.com>
349
350 * exec.h (section_table_xfer_memory): Revise declaration,
351 replacing section name parameter with an optional callback
352 predicate.
353 * exec.c (section_table_xfer_memory): Likewise.
354 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
355 of section_table_xfer_memory.
356
32fa152e
TT
3572020-07-22 Tom Tromey <tromey@adacore.com>
358
359 * mi/mi-cmd-stack.c (list_args_or_locals): Use
360 lookup_symbol_search_name.
361
a67a1c41
AB
3622020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
363
364 * python/py-registers.c (gdbpy_register_object_data_init): Remove
365 redundant local variable.
366 (gdbpy_get_register_descriptor): Extract descriptor vector as a
367 reference, not pointer, update code accordingly.
368
a7b4ff4f
SM
3692020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
370 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
371
372 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
373 * jit.c (jit_breakpoint_re_set_internal): Use the
374 `skip_jit_symbol_lookup` field.
375
2340e834
SM
3762020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
377 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
378
379 * jit.c (jit_read_descriptor): Define the descriptor address once,
380 use twice.
381 (jit_breakpoint_deleted): Move the declaration of the loop variable
382 `iter` into the loop header.
383 (jit_breakpoint_re_set_internal): Move the declaration of the local
384 variable `objf_data` to the first point of definition.
385 (jit_event_handler): Move the declaration of local variables
386 `code_entry`, `entry_addr`, and `objf` to their first point of use.
387 Rename `objf` to `jited`.
388
c1072906
SM
3892020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
390
391 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
392 Remove.
393 * jit.c (get_jiter_objfile_data): Update.
394
c8474dc3
TBA
3952020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
396 Simon Marchi <simon.marchi@polymtl.ca>
397
398 * jit.c (struct jit_program_space_data): Remove.
399 (jit_program_space_key): Remove.
400 (jiter_objfile_data::~jiter_objfile_data): Remove program space
401 stuff.
402 (get_jit_program_space_data): Remove.
403 (jit_breakpoint_deleted): Iterate on all of the program space's
404 objfiles.
405 (jit_inferior_init): Likewise.
406 (jit_breakpoint_re_set_internal): Likewise. Also change return
407 type to void.
408 (jit_breakpoint_re_set): Pass current_program_space to
409 jit_breakpoint_re_set_internal.
410
77208eb7
SM
4112020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
412
413 * jit.h (struct jiter_objfile_data) <cached_code_address,
414 jit_breakpoint>: Move to here from ...
415 * jit.c (jit_program_space_data): ... here.
416 (jiter_objfile_data::~jiter_objfile_data): Update.
417 (jit_breakpoint_deleted): Update.
418 (jit_breakpoint_re_set_internal): Update.
419
8c1c720f
SM
4202020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
421
422 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
423 checks.
424 (jit_read_descriptor): Remove NULL check.
425 (jit_event_handler): Add an assertion.
426
0e74a041
SM
4272020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
428
429 * jit.h (struct jit_objfile_data): Split into...
430 (struct jiter_objfile_data): ... this ...
431 (struct jited_objfile_data): ... and this.
432 * objfiles.h (struct objfile) <jit_data>: Remove.
433 <jiter_data, jited_data>: New fields.
434 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
435 (jiter_objfile_data::~jiter_objfile_data): ... this.
436 (get_jit_objfile_data): Rename to ...
437 (get_jiter_objfile_data): ... this.
438 (add_objfile_entry): Update.
439 (jit_read_descriptor): Use get_jiter_objfile_data.
440 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
441 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
442 (jit_inferior_exit_hook): Use objfile's jited_data field.
443
238b5c9f
SM
4442020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
445
446 * jit.h: Forward-declare `struct minimal_symbol`.
447 (struct jit_objfile_data): Migrate to here from jit.c; also add a
448 constructor, destructor, and an objfile* field.
449 * jit.c (jit_objfile_data): Remove.
450 (struct jit_objfile_data): Migrate from here to jit.h.
451 (jit_objfile_data::~jit_objfile_data): New destructor
452 implementation with code moved from free_objfile_data.
453 (free_objfile_data): Delete.
454 (get_jit_objfile_data): Update to use the jit_data field of objfile.
455 (jit_find_objf_with_entry_addr): Ditto.
456 (jit_inferior_exit_hook): Ditto.
457 (_initialize_jit): Remove the call to
458 register_objfile_data_with_cleanup.
459 * objfiles.h (struct objfile) <jit_data>: New field.
460
fe053b9e
TBA
4612020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
462
463 * jit.h: Forward-declare `struct objfile`.
464 (jit_event_handler): Add a second parameter, the JITer objfile.
465 * jit.c (jit_read_descriptor): Change the signature to take the
466 JITer objfile as an argument instead of the jit_program_space_data.
467 (jit_inferior_init): Update the call to jit_read_descriptor.
468 (jit_event_handler): Use the new JITer objfile argument when calling
469 jit_read_descriptor.
470 * breakpoint.c (handle_jit_event): Update the call to
471 jit_event_handler to pass the JITer objfile.
472
4cec0c66
JB
4732020-07-21 John Baldwin <jhb@FreeBSD.org>
474
475 * gdbarch.c: Regenerate.
476 * gdbarch.h: Regenerate.
477 * gdbarch.sh (handle_segmentation_fault): Remove method.
478 * infrun.c (handle_segmentation_fault): Remove.
479 (print_signal_received_reason): Remove call to
480 handle_segmentation_fault.
481
0e42f66a
JB
4822020-07-21 John Baldwin <jhb@FreeBSD.org>
483
484 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
485 Rename to sparc64_linux_report_signal_info and add siggnal
486 argument.
487 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
488 instead of sparc64_linux_handle_segmentation_fault.
489
77bdfeb2
JB
4902020-07-21 John Baldwin <jhb@FreeBSD.org>
491
492 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
493 i386_linux_report_signal_info instead of
494 i386_linux_handle_segmentation_fault.
495 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
496 to i386_linux_report_signal_info and add siggnal argument.
497 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
498 of i386_linux_handle_segmentation_fault.
499 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
500 to i386_linux_report_signal_info and add siggnal argument.
501
ad97bfc5
JB
5022020-07-21 John Baldwin <jhb@FreeBSD.org>
503
504 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
505 hook if present.
506
272bb05c
JB
5072020-07-21 John Baldwin <jhb@FreeBSD.org>
508
509 * gdbarch.c: Regenerate.
510 * gdbarch.h: Regenerate.
511 * gdbarch.sh (report_signal_info): New method.
512 * infrun.c (print_signal_received_reason): Invoke gdbarch
513 report_signal_info hook if present.
514
baf8791e
AB
5152020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
516
517 * python/py-registers.c : Add 'unordered_map' include.
518 (gdbpy_new_reggroup): Renamed to...
519 (gdbpy_get_reggroup): ...this. Update to only create register
520 group descriptors when needed.
521 (gdbpy_reggroup_iter_next): Update.
522
f7306dac
AB
5232020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
524
525 * python/py-registers.c (gdbpy_register_object_data): New static
526 global.
527 (gdbpy_register_object_data_init): New function.
528 (gdbpy_new_register_descriptor): Renamed to...
529 (gdbpy_get_register_descriptor): ...this, and update to reuse
530 existing register descriptors where possible.
531 (gdbpy_register_descriptor_iter_next): Update.
532 (gdbpy_initialize_registers): Register new gdbarch data.
533
05c309a8
SM
5342020-07-21 Simon Marchi <simon.marchi@efficios.com>
535
536 * linux-nat.c (stopped_pids): Make static.
537
d1fd641e
SM
5382020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
539
540 PR ada/26235
541 * gdbtypes.c (ada_discrete_type_low_bound,
542 ada_discrete_type_high_bound): Handle undefined bounds.
543
1de14d77
KR
5442020-07-21 Kamil Rytarowski <n54@gmx.com>
545
546 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
547 declaration.
548 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
549 function.
550
ed810cc7
JB
5512020-07-20 John Baldwin <jhb@FreeBSD.org>
552
553 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
554 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
555 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
556 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
557 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
558 method.
559
ae5369e7
LC
5602020-07-20 Ludovic Courtès <ludo@gnu.org>
561
562 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
563 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
564 which are deprecated in Guile 3.0.
565 * configure.ac (try_guile_versions): Add "guile-3.0".
566 * configure (try_guile_versions): Regenerate.
567 * NEWS: Update entry.
568
68cf161c
LC
5692020-07-20 Ludovic Courtès <ludo@gnu.org>
570 Doug Evans <dje@google.com>
571
572 PR gdb/21104
573 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
574 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
575 USING_GUILE_BEFORE_2_2.
576 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
577 Change type to 'scm_t_port_type *'.
578 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
579 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
580 parameter and honor it. Update callers.
581 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
582 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
583 functions.
584 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
585 USING_GUILE_BEFORE_2_2.
586 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
587 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
588 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
589 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
590 and 'SCM_PORT_TYPE'.
591 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
592 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
593 (gdbscm_memory_port_read, gdbscm_memory_port_write)
594 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
595 [!USING_GUILE_BEFORE_2_2]: New functions.
596 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
597 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
598 'gdbscm_memory_port_read'.
599 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
600 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
601 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
602 function.
603 (ioscm_init_memory_port): Remove.
604 (ioscm_init_memory_port_stream): New function
605 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
606 function.
607 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
608 Return scm_from_uint (0).
609 (gdbscm_set_memory_port_read_buffer_size_x)
610 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
611 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
612 Return scm_from_uint (0).
613 (gdbscm_set_memory_port_write_buffer_size_x)
614 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
615 * configure.ac (try_guile_versions): Add "guile-2.2".
616 * configure: Regenerate.
617 * NEWS: Add entry.
618
aee91db3
TT
6192020-07-18 Tom Tromey <tom@tromey.com>
620
621 * linux-nat.c (linux_multi_process): Remove.
622 (linux_nat_target::supports_multi_process): Return true.
623
0e267416
AB
6242020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
625
626 * arch/riscv.c (riscv_tdesc_cache): Change map type.
627 (riscv_lookup_target_description): Return pointer out of
628 unique_ptr.
629 * target-descriptions.c (allocate_target_description): Add
630 comment.
631 (target_desc_deleter::operator()): Likewise.
632 * target-descriptions.h (struct target_desc_deleter): Moved to
633 gdbsupport/tdesc.h.
634 (target_desc_up): Likewise.
635
f80c8ec4
TT
6362020-07-17 Tom Tromey <tromey@adacore.com>
637
638 * linux-nat.c (linux_nat_target::supports_non_stop)
639 (linux_nat_target::always_non_stop_p): Use "true".
640 (linux_nat_target::supports_disable_randomization): Use "true" and
641 "false".
642
d0ce17d8
CT
6432020-07-16 Caroline Tice <cmtice@google.com>
644
645 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
646 (RNGLIST_HEADER_SIZE64): New constant definition.
647 (struct dwop_section_names): Add rnglists_dwo.
648 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
649 (struct loclist_header): Rename to 'loclists_rnglists_header'.
650 (struct dwo_sections): Add rnglists field.
651 (read_attribut_reprocess): Add tag parameter.
652 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
653 (cu_debug_rnglists_section): New function (decl & definition).
654 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
655 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
656 die whose range is being checked; get rnglist section from
657 cu_debug_rnglists_section, to get from either objfile or dwo file as
658 appropriate. Add cases for DW_RLE_base_addressx,
659 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
660 the base address to DW_RLE_offset_pairs (not to all ranges), moving
661 test inside if-condition and updating complaint message.
662 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
663 dwarf2_rnglists_process.
664 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
665 dwarf2_ranges_process.
666 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
667 need_ranges_base and update comment appropriately. Also pass die tag
668 to dwarf2_ranges_read.
669 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
670 need_ranges_base and update comment appropriately. Also pass die tag
671 to dwarf2_ranges_process.
672 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
673 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
674 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
675 need_ranges_base and update comment appropriately. Also pass die tag
676 to read_attribute_reprocess and dwarf2_ranges_read.
677 (read_loclist_header): Rename function to read_loclists_rnglists_header,
678 and update function comment appropriately.
679 (read_loclist_index): Call read_loclists_rnglists_header instead of
680 read_loclist_header.
681 (read_rnglist_index): New function.
682 (read_attribute_reprocess): Add tag parameter. Add code for
683 DW_FORM_rnglistx, passing tag to read_rnglist_index.
684 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
685
3dcc261c
AB
6862020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
687
688 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
689 being resolved.
690
ccb9eba6
AB
6912020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
692
693 * arch-utils.c (show_architecture): Update formatting of messages.
694
cf88be68
SM
6952020-07-12 Simon Marchi <simon.marchi@efficios.com>
696
697 * gdbtypes.h (struct type) <bounds>: Handle array and string
698 types.
699 * ada-lang.c (assign_aggregate): Use type::bounds on
700 array/string type.
701 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
702 * c-varobj.c (c_number_of_children): Likewise.
703 (c_describe_child): Likewise.
704 * eval.c (evaluate_subexp_for_sizeof): Likewise.
705 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
706 (f_type_print_base): Likewise.
707 * f-valprint.c (f77_array_offset_tbl): Likewise.
708 (f77_get_upperbound): Likewise.
709 (f77_print_array_1): Likewise.
710 * guile/scm-type.c (gdbscm_type_range): Likewise.
711 * m2-typeprint.c (m2_array): Likewise.
712 (m2_is_long_set_of_type): Likewise.
713 * m2-valprint.c (get_long_set_bounds): Likewise.
714 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
715 * python/py-type.c (typy_range): Likewise.
716 * rust-lang.c (rust_internal_print_type): Likewise.
717 * type-stack.c (type_stack::follow_types): Likewise.
718 * valarith.c (value_subscripted_rvalue): Likewise.
719 * valops.c (value_cast): Likewise.
720
509971ae
SM
7212020-07-12 Simon Marchi <simon.marchi@efficios.com>
722
723 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
724 callers to use the equivalent accessor methods.
725
107406b7
SM
7262020-07-12 Simon Marchi <simon.marchi@efficios.com>
727
728 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
729 (struct type) <bit_stride>: New method.
730 (TYPE_BIT_STRIDE): Remove.
731 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
732
bb789949
SM
7332020-07-12 Simon Marchi <simon.marchi@efficios.com>
734
735 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
736 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
737 callers to use the equivalent accessor methods instead.
738
39498edb
SM
7392020-07-12 Simon Marchi <simon.marchi@efficios.com>
740
741 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
742 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
743 callers to use the equivalent accessor methods instead.
744
3b606f38
SM
7452020-07-12 Simon Marchi <simon.marchi@efficios.com>
746
747 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
748 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
749 to use dynamic_prop::kind.
750
064d9cb9
SM
7512020-07-12 Simon Marchi <simon.marchi@efficios.com>
752
753 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
754 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
755 to get the bound property's kind and check against
756 PROP_UNDEFINED.
757
5537ddd0
SM
7582020-07-12 Simon Marchi <simon.marchi@efficios.com>
759
760 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
761 all callers to use type::range_bounds followed by
762 dynamic_prop::{low,high}.
763
8c2e4e06
SM
7642020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
765
766 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
767 const_val, set_const_val, baton, set_locexpr, set_loclist,
768 set_addr_offset, variant_parts, set_variant_parts,
769 original_type, set_original_type>: New methods.
770 <kind>: Rename to...
771 <m_kind>: ... this. Update all users to use the new methods
772 instead.
773 <data>: Rename to...
774 <m_data>: ... this. Update all users to use the new methods
775 instead.
776
7c6f2712
SM
7772020-07-12 Simon Marchi <simon.marchi@efficios.com>
778
779 * gdbtypes.c (get_discrete_bounds): Return failure if
780 the range type's bounds are not both defined and constant
781 values.
782 (get_array_bounds): Update comment. Remove undefined bound check.
783
599088e3
SM
7842020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
785
786 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
787 the type::bounds method directly.
788
c4dfcb36
SM
7892020-07-12 Simon Marchi <simon.marchi@efficios.com>
790
791 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
792 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
793 are used to set the range type's bounds to use set_bounds.
794
0a278aa7
PW
7952020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
796
797 * exec.c (_initialize_exec): Update exec-file-mismatch help.
798
cce20f10
PA
7992020-07-10 Pedro Alves <pedro@palves.net>
800
801 * gdbthread.h (inferior_ref): Define.
802 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
803 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
804 * thread.c
805 (scoped_restore_current_thread::restore):
806 Adjust to gdb::ref_ptr.
807 (scoped_restore_current_thread::~scoped_restore_current_thread):
808 Remove manual decref handling.
809 (scoped_restore_current_thread::scoped_restore_current_thread):
810 Adjust to use
811 inferior_ref::new_reference/thread_info_ref::new_reference.
812 Incref the thread before calling get_frame_id instead of after.
813 Let TARGET_CLOSE_ERROR propagate.
814
6d7aa592
PA
8152020-07-10 Pedro Alves <pedro@palves.net>
816
817 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
818 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
819 NOT_AVAILABLE_ERROR.
820 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
821 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
822
b3e3a4c1
SM
8232020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
824 Pedro Alves <pedro@palves.net>
825
826 PR gdb/26199
827 * infrun.c (threads_are_resumed_pending_p): Delete.
828 (do_target_wait): Remove threads_are_executing and
829 threads_are_resumed_pending_p checks from the inferior_matches
830 lambda. Update comments.
831
d6cc5d98
PA
8322020-07-10 Pedro Alves <pedro@palves.net>
833
834 PR gdb/26199
835 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
836 executing threads.
837
7d3badc6
PA
8382020-07-10 Pedro Alves <pedro@palves.net>
839
840 PR gdb/26199
841 * infrun.c (handle_no_resumed): Handle multiple targets.
842
42bd97a6
PA
8432020-07-10 Pedro Alves <pedro@palves.net>
844
845 PR gdb/26199
846 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
847 target_is_async_p.
848
43667cc6
PA
8492020-07-10 Pedro Alves <pedro@palves.net>
850
851 PR gdb/26199
852 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
853 threads, not all threads.
854
96118d11
PA
8552020-07-10 Pedro Alves <pedro@palves.net>
856
857 PR gdb/26199
858 * remote.c (remote_target::open_1): Pass remote target pointer as
859 data to create_async_event_handler.
860 (remote_async_inferior_event_handler): Mark async event handler
861 before returning if the remote target still has either pending
862 events or unacknowledged notifications.
863
54904d81
JB
8642020-07-10 John Baldwin <jhb@FreeBSD.org>
865
866 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
867 declaration.
868 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
869 function.
870
f37e5866
JB
8712020-07-09 John Baldwin <jhb@FreeBSD.org>
872
873 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
874 inferior_ptid.
875
fc238d4a
JB
8762020-07-09 John Baldwin <jhb@FreeBSD.org>
877
878 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
879 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
880 AT_FREEBSD_PS_STRINGS.
881
6e2469ff
HD
8822020-07-08 Hannes Domani <ssbssa@yahoo.de>
883
884 * auto-load.c (auto_load_objfile_script_1): Convert drive part
885 of debugfile path on Windows.
886
d1076c41
JB
8872020-07-08 John Baldwin <jhb@FreeBSD.org>
888
889 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
890 argument to 'data'.
891
15f3b077
TT
8922020-07-08 Tom Tromey <tromey@adacore.com>
893
894 * ada-lang.c (ada_exception_message_1): Use read_memory.
895
9fc501fd
AB
8962020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
897
898 PR python/22748
899 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
900 special handling for inline frames.
901 * findvar.c (value_of_register_lazy): Skip inline frames when
902 creating lazy register values.
903 * frame.c (frame_id_computed_p): Delete definition.
904 * frame.h (frame_id_computed_p): Delete declaration.
905
64cb3757
AB
9062020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
907
908 * NEWS: Mention additions to Python API.
909 * python/py-arch.c (archpy_register_groups): New function.
910 (arch_object_methods): Add 'register_groups' method.
911 * python/py-registers.c (reggroup_iterator_object): New struct.
912 (reggroup_object): New struct.
913 (gdbpy_new_reggroup): New function.
914 (gdbpy_reggroup_to_string): New function.
915 (gdbpy_reggroup_name): New function.
916 (gdbpy_reggroup_iter): New function.
917 (gdbpy_reggroup_iter_next): New function.
918 (gdbpy_new_reggroup_iterator): New function
919 (gdbpy_initialize_registers): Register new types.
920 (reggroup_iterator_object_type): Define new Python type.
921 (gdbpy_reggroup_getset): New static global.
922 (reggroup_object_type): Define new Python type.
923 * python/python-internal.h
924
0f767f94
AB
9252020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
926
927 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
928 * python/py-arch.c (archpy_registers): New function.
929 (arch_object_methods): Add 'registers' method.
930 * python/py-registers.c: New file.
931 * python/python-internal.h
932 (gdbpy_new_register_descriptor_iterator): Declare.
933 (gdbpy_initialize_registers): Declare.
934 * python/python.c (do_start_initialization): Call
935 gdbpy_initialize_registers.
936 * NEWS: Mention additions to the Python API.
937
87dbc774
AB
9382020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
939
940 * NEWS: Mention new Python API method.
941 * python/py-unwind.c (pending_framepy_architecture): New function.
942 (pending_frame_object_methods): Add architecture method.
943
3bc98c0c
AB
9442020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
945
946 * gdbarch.c: Regenerate.
947 * gdbarch.h: Regenerate.
948 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
949 (gdbarch_data): Use internal_error for the case where
950 deprecated_set_gdbarch_data was originally needed.
951 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
952 and use passed in obstack.
953 (libunwind_frame_set_descr): Should no longer get back NULL from
954 gdbarch_data.
955 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
956 type.
957 * user-regs.c (user_regs_init): Update parameters, and use passed
958 in obstack.
959 (user_reg_add): Should no longer get back NULL from gdbarch_data.
960 (_initialize_user_regs): Register as a pre-init gdbarch data type.
961
d8cc8af6
TV
9622020-07-06 Tom de Vries <tdevries@suse.de>
963
964 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
965 End-Of-Sequence in lte_is_less_than.
966 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
967 "gdb: Don't reorder line table entries too much when sorting".
968
947f7597
TV
9692020-07-06 Tom de Vries <tdevries@suse.de>
970
971 PR tui/26205
972 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
973
1e7c1b22
TV
9742020-07-05 Tom de Vries <tdevries@suse.de>
975
976 PR build/26187
977 * inferior.h (struct infcall_suspend_state_deleter): If available, use
978 std::uncaught_exceptions instead of deprecated
979 std::uncaught_exception.
980
a36158ec
SM
9812020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
982
983 * macroexp.h (macro_stringify): Return
984 gdb::unique_xmalloc_ptr<char>.
985 * macroexp.c (macro_stringify): Likewise.
986 * macrotab.c (fixup_definition): Update.
987
14d960c8
SM
9882020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
989
990 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
991 (lex_one_token): Update.
992 * macroexp.c (struct macro_buffer) <release>: Return
993 gdb::unique_xmalloc_ptr<char>.
994 (macro_stringify): Update.
995 (macro_expand): Update.
996 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
997 * macroexp.h (macro_expand_next): Likewise.
998
211d5b1c
SM
9992020-07-02 Simon Marchi <simon.marchi@efficios.com>
1000
1001 * macroexp.h (macro_lookup_ftype): Remove.
1002 (macro_expand, macro_expand_once, macro_expand_next): Remove
1003 lookup function parameters, add scope parameter.
1004 * macroexp.c (scan, substitute_args, expand, maybe_expand,
1005 macro_expand, macro_expand_once, macro_expand_next): Likewise.
1006 * macroscope.h (standard_macro_lookup): Change parameter type
1007 to macro_scope.
1008 * macroscope.c (standard_macro_lookup): Likewise.
1009 * c-exp.y (lex_one_token): Update.
1010 * macrocmd.c (macro_expand_command): Likewise.
1011 (macro_expand_once_command): Likewise.
1012
b1a35af2
SM
10132020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1014
1015 * inf-loop.c (inferior_event_handler): Remove client_data param.
1016 * inf-loop.h (inferior_event_handler): Likewise.
1017 * infcmd.c (step_1): Adjust.
1018 * infrun.c (proceed): Adjust.
1019 (fetch_inferior_event): Remove client_data param.
1020 (infrun_async_inferior_event_handler): Adjust.
1021 * infrun.h (fetch_inferior_event): Remove `void *` param.
1022 * linux-nat.c (handle_target_event): Adjust.
1023 * record-btrace.c (record_btrace_handle_async_inferior_event):
1024 Adjust.
1025 * record-full.c (record_full_async_inferior_event_handler):
1026 Adjust.
1027 * remote.c (remote_async_inferior_event_handler): Adjust.
1028
1cdf9e33
TT
10292020-07-01 Tom Tromey <tom@tromey.com>
1030
1031 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
1032 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
1033
32c1e210
TT
10342020-07-01 Tom Tromey <tom@tromey.com>
1035
1036 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
1037 tui_gen_win_info.
1038 (tui_win_info::make_window): Merge with
1039 tui_gen_win_info::make_window.
1040 (tui_win_info::make_visible): Move from tui_gen_win_info.
1041 * tui/tui-win.c (tui_win_info::max_width): Move from
1042 tui_gen_win_info.
1043 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
1044 type.
1045 <window_factory>: Likewise.
1046 * tui/tui-layout.c (tui_win_info::resize): Move from
1047 tui_gen_win_info.
1048 (make_standard_window): Change return type.
1049 (get_locator_window, tui_get_window_by_name): Likewise.
1050 (tui_layout_window::apply): Remove a cast.
1051 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
1052 (struct tui_win_info): Merge with tui_gen_win_info.
1053 (struct tui_gen_win_info): Remove.
1054
a30cb6da
TT
10552020-07-01 Tom Tromey <tom@tromey.com>
1056
1057 * tui/tui-stack.h (struct tui_locator_window): Derive from
1058 tui_win_info.
1059 <do_scroll_horizontal, do_scroll_vertical>: New methods.
1060 <can_box>: New method.
1061
1eb2161f
TT
10622020-07-01 Tom Tromey <tom@tromey.com>
1063
1064 * tui/tui-stack.h (struct tui_locator_window): Remove body.
1065
7134f2eb
TT
10662020-07-01 Tom Tromey <tom@tromey.com>
1067
1068 * tui/tui-regs.c (tui_data_window::display_registers_from)
1069 (tui_data_window::display_registers_from)
1070 (tui_data_window::first_data_item_displayed)
1071 (tui_data_window::delete_data_content_windows): Update.
1072 (tui_data_window::refresh_window, tui_data_window::no_refresh):
1073 Remove.
1074 (tui_data_window::check_register_values): Update.
1075 (tui_data_item_window::rerender): Add parameters. Update.
1076 (tui_data_item_window::refresh_window): Remove.
1077 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
1078 virtual.
1079 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
1080 tui_gen_win_info.
1081 <refresh_window, max_height, min_height>: Remove.
1082 <rerender>: Add parameters.
1083 <x, y, visible>: New members.
1084 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
1085 <m_item_width>: New member.
1086
22b7b041
TT
10872020-07-01 Tom Tromey <tom@tromey.com>
1088
1089 * tui/tui-regs.c (tui_data_window::show_register_group)
1090 (tui_data_window::check_register_values): Update.
1091 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
1092 from item_no.
1093
c9753adb
TT
10942020-07-01 Tom Tromey <tom@tromey.com>
1095
1096 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
1097 useless "if".
1098
9ab26b4a
TT
10992020-07-01 Tom Tromey <tom@tromey.com>
1100
1101 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
1102 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
1103
e555083f
TT
11042020-07-01 Tom Tromey <tom@tromey.com>
1105
1106 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
1107 * tui/tui-winsource.h (enum tui_line_or_address_kind)
1108 (struct tui_line_or_address): Move from tui-data.h.
1109 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
1110 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
1111 (tui_cmd_window, tui_source_window_base, tui_source_window)
1112 (tui_disasm_window): Don't declare.
1113 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
1114 to tui-winsource.h.
1115 (SINGLE_KEY): Move to tui-stack.c.
1116
7a02bab7
TT
11172020-07-01 Tom Tromey <tom@tromey.com>
1118
1119 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
1120 std::string.
1121 * tui/tui-regs.c (class tab_expansion_file): New.
1122 (tab_expansion_file::write): New method.
1123 (tui_register_format): Change return type. Use
1124 tab_expansion_file.
1125 (tui_get_register, tui_data_window::display_registers_from)
1126 (tui_data_item_window::rerender): Update.
1127 * tui/tui-io.h (tui_expand_tabs): Don't declare.
1128 * tui/tui-io.c (tui_expand_tabs): Remove.
1129
ea68593b
TT
11302020-07-01 Tom Tromey <tom@tromey.com>
1131
1132 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
1133
a8caed5d
FS
11342020-07-01 Fangrui Song <maskray@google.com>
1135
1136 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
1137
9cdf9820
AKS
11382020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1139
1140 * dwarf2/read.c (set_die_type): Removed conditions to restrict
1141 forms for DW_AT_associated and DW_AT_allocated attributes,
1142 which is already checked in function attr_to_dynamic_prop.
1143
a1520ad8
TT
11442020-06-30 Tom Tromey <tromey@adacore.com>
1145
1146 * dwarf2/read.c (quirk_rust_enum): Correctly call
1147 alloc_rust_variant for default-less enum.
1148
5ac58899
TT
11492020-06-30 Tom Tromey <tromey@adacore.com>
1150
1151 PR build/26183:
1152 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
1153 gdb::to_string.
1154
19b187a9
SM
11552020-06-29 Simon Marchi <simon.marchi@efficios.com>
1156
1157 * gdbarch.sh (displaced_step_copy_insn): Update doc.
1158 * gdbarch.h: Re-generate.
1159
cd4c4c07
TT
11602020-06-28 Tom Tromey <tom@tromey.com>
1161
1162 * command.h (cmd_types): Remove.
1163 (cmd_type): Don't declare.
1164 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
1165 typedef.
1166 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
1167 * cli/cli-decode.c (cmd_type): Remove.
1168
05779d57
PA
11692020-06-27 Pedro Alves <palves@redhat.com>
1170
1171 * fork-child.c (prefork_hook): Adjust.
1172 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
1173 Delete.
1174 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
1175 * inferior.c (inferior::set_tty, inferior::tty): New methods.
1176 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
1177 Remove declarations.
1178 (struct inferior) <set_tty, tty>: New methods.
1179 (struct inferior) <terminal>: Rename to ...
1180 (struct inferior) <m_terminal>: ... this and make private.
1181 * main.c (captured_main_1): Adjust.
1182 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
1183 (mi_cmd_inferior_tty_show): Adjust.
1184 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
1185 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
1186
1776e3e5
NA
11872020-06-26 Nick Alcock <nick.alcock@oracle.com>
1188
1189 * configure.ac: Add --enable-libctf: handle --disable-static
1190 properly.
1191 * acinclude.m4: sinclude ../config/enable.m4.
1192 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
1193 (LIBCTF): Substitute in.
1194 (CTF_DEPS): New, likewise.
1195 (CLIBS): libctf needs symbols from libbfd: move earlier.
1196 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
1197 flags.
1198 * ctfread.c: Surround in ENABLE_LIBCTF.
1199 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
1200 * configure: Regenerate.
1201 * config.in: Likewise.
1202
58373b80
SM
12032020-06-25 Simon Marchi <simon.marchi@efficios.com>
1204
1205 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
1206
277474ee
SM
12072020-06-25 Simon Marchi <simon.marchi@efficios.com>
1208
1209 * inferior.h (struct inferior) <terminal>: Change type to
1210 gdb::unique_xmalloc_ptr<char>.
1211 * inferior.c (inferior::~inferior): Don't free inf->terminal.
1212 * infcmd.c (set_inferior_io_terminal): Don't free terminal
1213 field, adjust to unique pointer.
1214 (get_inferior_io_terminal): Adjust to unique pointer.
1215
6d74da72
AB
12162020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1217
1218 * riscv-tdep.c (riscv_print_registers_info): Loop over all
1219 registers, not just the known core set of registers.
1220
2e52d038
AB
12212020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1222
1223 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
1224 fflags, frm, and fcsr registers.
1225 (riscv_register_reggroup_p): Remove unknown CSRs from save and
1226 restore groups.
1227 (riscv_tdesc_unknown_reg): New function.
1228 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
1229 tdesc_use_registers.
1230 * riscv-tdep.h (struct gdbarch_tdep): Add
1231 unknown_csrs_first_regnum, unknown_csrs_count,
1232 duplicate_fflags_regnum, duplicate_frm_regnum, and
1233 duplicate_fcsr_regnum fields.
1234
be64fd07
AB
12352020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1236
1237 * target-descriptions.c (tdesc_use_registers): Add new parameter a
1238 callback, use the callback (when not null) to help number unknown
1239 registers.
1240 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
1241 (tdesc_use_registers): Add extra parameter to declaration.
1242
3b9fce96
AB
12432020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1244
1245 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
1246 in the file.
1247 (class riscv_pending_register_alias): Likewise.
1248 (riscv_register_feature::register_info): Change 'required_p' field
1249 to 'required', and change its type. Add 'check' member function.
1250 (riscv_register_feature::register_info::check): Define new member
1251 function.
1252 (riscv_xreg_feature): Change initialisation of 'required' field.
1253 (riscv_freg_feature): Likewise.
1254 (riscv_virtual_feature): Likewise.
1255 (riscv_csr_feature): Likewise.
1256 (riscv_check_tdesc_feature): Take extra parameter, the csr
1257 tdesc_feature, rewrite the function to use the new
1258 riscv_register_feature::register_info::check function.
1259 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
1260
865bad26
AB
12612020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1262
1263 * features/Makefile: Remove all references to the deleted files
1264 below.
1265 * features/riscv/32bit-csr.c: Deleted.
1266 * features/riscv/32bit-csr.xml: Deleted.
1267 * features/riscv/64bit-csr.c: Deleted.
1268 * features/riscv/64bit-csr.xml: Deleted.
1269 * features/riscv/rebuild-csr-xml.sh: Deleted.
1270
ed69cbc8
AB
12712020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1272
1273 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
1274 whitespace error for declaration of names member variable.
1275 (struct riscv_register_feature): Add new prefer_first_name member
1276 variable, and fix whitespace error in declaration of registers.
1277 (riscv_xreg_feature): Initialize prefer_first_name field.
1278 (riscv_freg_feature): Likewise.
1279 (riscv_virtual_feature): Likewise.
1280 (riscv_csr_feature): Likewise.
1281 (riscv_register_name): Expand on comments. Remove register name
1282 modifications for CSR and virtual registers.
1283
4445e8f5
AB
12842020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1285
1286 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
1287 errors.
1288
767a879e
AB
12892020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1290
1291 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
1292 riscv-opc.h.
1293 (class riscv_pending_register_alias): New class.
1294 (riscv_check_tdesc_feature): Take vector of pending aliases and
1295 populate it as appropriate.
1296 (riscv_setup_register_aliases): Delete.
1297 (riscv_gdbarch_init): Create vector of pending aliases and pass it
1298 to riscv_check_tdesc_feature in all cases. Use the vector to
1299 create the register aliases.
1300
bb6e55f3
RO
13012020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1302
1303 * sol2-tdep.c (sol2_static_transform_name): Remove.
1304 (sol2_init_abi): Don't register it.
1305 * gdbarch.sh (static_transform_name): Remove.
1306 * gdbarch.c, gdbarch.h: Regenerate.
1307
1308 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
1309 gdbarch_static_transform_name.
1310 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
1311 * stabsread.c (define_symbol) <'X'>: Remove.
1312 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
1313 handling.
1314 <'V'>: Likewise.
1315 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
1316 <'S'>: Remove call to gdbarch_static_transform_name.
1317
c6d36836
RO
13182020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1319
1320 * procfs.c (procfs_pre_trace): New function.
1321 (procfs_target::create_inferior): Pass it to fork_inferior.
1322
a7e6196b
RO
13232020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1324
1325 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
1326 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
1327 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
1328 sol2-tdep.o, sparc-sol2-tdep.o.
1329 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
1330 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
1331 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
1332 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
1333
d412e696
RO
13342020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1335
1336 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
1337 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
1338 Call sol2_init_abi.
1339 Remove calls to set_gdbarch_skip_solib_resolver,
1340 set_gdbarch_core_pid_to_str.
1341 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
1342 (i386_sol2_static_transform_name): Remove.
1343 (i386_sol2_init_abi): Call sol2_init_abi.
1344 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1345 set_gdbarch_static_transform_name,
1346 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1347 Use sol2_sigtramp_p.
1348 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
1349 (sol2_sigtramp_p): New function.
1350 (sol2_static_transform_name): New function.
1351 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
1352 (sol2_init_abi): New function.
1353 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
1354 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
1355 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
1356 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
1357 (sparc_sol2_static_transform_name): Remove.
1358 (sparc32_sol2_init_abi): Call sol2_init_abi.
1359 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1360 set_gdbarch_static_transform_name,
1361 set_gdbarch_skip_solib_resolver,
1362 set_gdbarch_core_pid_to_str.
1363 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
1364 (sparc_sol2_static_transform_name): Remove
1365 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
1366 call sol2_sigtramp_p.
1367 (sparc64_sol2_init_abi): Call sol2_init_abi.
1368 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1369 set_gdbarch_static_transform_name,
1370 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1371
a8654e7d
PW
13722020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1373
1374 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
1375 * exec.c (validate_exec_file): If from_tty, set both
1376 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
1377 * symfile.c (symbol_file_add_with_addrs): if always_confirm
1378 and from_tty, unconditionally ask a confirmation.
1379
caa7fd04
AB
13802020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1381
1382 * target-descriptions.c (tdesc_architecture_name): Protect against
1383 NULL pointer dereference.
1384 (maint_print_xml_tdesc_cmd): New function.
1385 (_initialize_target_descriptions): Register new 'maint print
1386 xml-tdesc' command and give it the filename completer.
1387 * NEWS: Mention new 'maint print xml-tdesc' command.
1388
fbf42f4e
AB
13892020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1390
1391 * target-descriptions.c (class tdesc_compatible_info): New class.
1392 (struct target_desc): Change type of compatible vector.
1393 (tdesc_compatible_p): Update for change in type of
1394 target_desc::compatible.
1395 (tdesc_compatible_info_list): New function.
1396 (tdesc_compatible_info_arch_name): New function.
1397 (tdesc_add_compatible): Update for change in type of
1398 target_desc::compatible.
1399 (print_c_tdesc::visit_pre): Likewise.
1400
20821f4e
AB
14012020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1402
1403 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
1404 whitespace to underscore.
1405 (maint_print_c_tdesc_cmd): Use fake filename for target
1406 descriptions that came from the target.
1407 (_initialize_target_descriptions): Add filename command completion
1408 for 'maint print c-tdesc'.
1409
1fb5ee62
SM
14102020-06-23 Simon Marchi <simon.marchi@efficios.com>
1411
1412 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
1413 lines.
1414
fc3ecb3e
SM
14152020-06-23 Simon Marchi <simon.marchi@efficios.com>
1416
1417 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
1418 lines.
1419 (dwarf2_find_location_expression): Likewise.
1420 (call_site_parameter_matches): Likewise.
1421 (dwarf2_compile_expr_to_ax): Likewise.
1422 (disassemble_dwarf_expression): Likewise.
1423 (loclist_describe_location): Likewise.
1424
236ef034
PA
14252020-06-23 Pedro Alves <palves@redhat.com>
1426
1427 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
1428 progspace-and-thread.h. Include scoped-mock-context.h instead.
1429 (register_to_value_test): Use scoped_mock_context.
1430 * regcache.c: Include "scoped-mock-context.h".
1431 (cooked_read_test): Don't error out if a target is already pushed.
1432 Use scoped_mock_context. Adjust.
1433 * scoped-mock-context.h: New file.
1434
39e7ecca
AB
14352020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1436
1437 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
1438 initializer.
1439 (ada_language::is_string_type_p): New member function.
1440 * c-lang.c (c_language_data): Delete la_is_string_type_p
1441 initializer.
1442 (cplus_language_data): Likewise.
1443 (asm_language_data): Likewise.
1444 (minimal_language_data): Likewise.
1445 * d-lang.c (d_language_data): Likewise.
1446 * f-lang.c (f_is_string_type_p): Delete function, implementation
1447 moved to f_language::is_string_type_p.
1448 (f_language_data): Delete la_is_string_type_p initializer.
1449 (f_language::is_string_type_p): New member function,
1450 implementation from f_is_string_type_p.
1451 * go-lang.c (go_is_string_type_p): Delete function, implementation
1452 moved to go_language::is_string_type_p.
1453 (go_language_data): Delete la_is_string_type_p initializer.
1454 (go_language::is_string_type_p): New member function,
1455 implementation from go_is_string_type_p.
1456 * language.c (language_defn::is_string_type_p): Define new member
1457 function.
1458 (default_is_string_type_p): Make static, add comment copied from
1459 header file.
1460 (unknown_language_data): Delete la_is_string_type_p initializer.
1461 (unknown_language::is_string_type_p): New member function.
1462 (auto_language_data): Delete la_is_string_type_p initializer.
1463 (auto_language::is_string_type_p): New member function.
1464 * language.h (language_data): Delete la_is_string_type_p field.
1465 (language_defn::is_string_type_p): Declare new function.
1466 (default_is_string_type_p): Delete desclaration, move comment to
1467 definition.
1468 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
1469 moved to m2_language::is_string_type_p.
1470 (m2_language_data): Delete la_is_string_type_p initializer.
1471 (m2_language::is_string_type_p): New member function,
1472 implementation from m2_is_string_type_p.
1473 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
1474 initializer.
1475 * opencl-lang.c (opencl_language_data): Likewise.
1476 * p-lang.c (pascal_is_string_type_p): Delete function,
1477 implementation moved to pascal_language::is_string_type_p.
1478 (pascal_language_data): Delete la_is_string_type_p initializer.
1479 (pascal_language::is_string_type_p): New member function,
1480 implementation from pascal_is_string_type_p.
1481 * rust-lang.c (rust_is_string_type_p): Delete function,
1482 implementation moved to rust_language::is_string_type_p.
1483 (rust_language_data): Delete la_is_string_type_p initializer.
1484 (rust_language::is_string_type_p): New member function,
1485 implementation from rust_is_string_type_p.
1486 * valprint.c (val_print_scalar_or_string_type_p): Update call to
1487 is_string_type_p.
1488
4ffc13fb
AB
14892020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1490
1491 * ada-lang.c (ada_language_data): Delete la_print_typedef
1492 initializer.
1493 (ada_language::print_typedef): New member function.
1494 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
1495 (cplus_language_data): Likewise.
1496 (asm_language_data): Likewise.
1497 (minimal_language_data): Likewise.
1498 * d-lang.c (d_language_data): Likewise.
1499 * f-lang.c (f_language_data): Likewise.
1500 (f_language::print_typedef): New member function.
1501 * go-lang.c (go_language_data): Delete la_print_typedef
1502 initializer.
1503 * language.c (language_defn::print_typedef): Define member
1504 function.
1505 (unknown_language_data): Delete la_print_typedef initializer.
1506 (unknown_language::print_typedef): New member function.
1507 (auto_language_data): Delete la_print_typedef initializer.
1508 (auto_language::print_typedef): New member function.
1509 * language.h (language_data): Delete la_print_typedef field.
1510 (language_defn::print_typedef): Declare new member function.
1511 (LA_PRINT_TYPEDEF): Update call to print_typedef.
1512 (default_print_typedef): Delete declaration.
1513 * m2-lang.c (m2_language_data): Delete la_print_typedef
1514 initializer.
1515 (m2_language::print_typedef): New member function.
1516 * objc-lang.c (objc_language_data): Delete la_print_typedef
1517 initializer.
1518 * opencl-lang.c (opencl_language_data): Likewise.
1519 * p-lang.c (pascal_language_data): Likewise.
1520 (pascal_language::print_typedef): New member function.
1521 * rust-lang.c (rust_print_typedef): Delete function,
1522 implementation moved to rust_language::print_typedef.
1523 (rust_language): Delete la_print_typedef initializer.
1524 (rust_language::print_typedef): New member function,
1525 implementation from rust_print_typedef.
1526 * typeprint.c (default_print_typedef): Delete.
1527
d711ee67
AB
15282020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1529
1530 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
1531 (ada_language::printstr): New member function.
1532 * c-lang.c (c_language_data): Delete la_printstr initializer.
1533 (cplus_language_data): Likewise.
1534 (asm_language_data): Likewise.
1535 (minimal_language_data): Likewise.
1536 * d-lang.c (d_language_data): Likewise.
1537 * f-lang.c (f_printstr): Rename to f_language::printstr.
1538 (f_language_data): Delete la_printstr initializer.
1539 (f_language::printstr): New member function, implementation from
1540 f_printstr.
1541 * go-lang.c (go_language_data): Delete la_printstr initializer.
1542 * language.c (language_defn::printstr): Define new member
1543 function.
1544 (unk_lang_printstr): Delete.
1545 (unknown_language_data): Delete la_printstr initializer.
1546 (unknown_language::printstr): New member function.
1547 (auto_language_data): Delete la_printstr initializer.
1548 (auto_language::printstr): New member function.
1549 * language.h (language_data): Delete la_printstr field.
1550 (language_defn::printstr): Declare new member function.
1551 (LA_PRINT_STRING): Update call to printstr.
1552 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
1553 (m2_language_data): Delete la_printstr initializer.
1554 (m2_language::printstr): New member function, implementation from
1555 m2_printstr.
1556 * objc-lang.c (objc_language_data): Delete la_printstr
1557 initializer.
1558 * opencl-lang.c (opencl_language_data): Likewise.
1559 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
1560 (pascal_language_data): Delete la_printstr initializer.
1561 (pascal_language::printstr): New member function, implementation
1562 from pascal_printstr.
1563 * p-lang.h (pascal_printstr): Delete declaration.
1564 * rust-lang.c (rust_printstr): Update header comment.
1565 (rust_language_data): Delete la_printstr initializer.
1566 (rust_language::printstr): New member function.
1567
52b50f2c
AB
15682020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1569
1570 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
1571 (ada_language::printchar): New member function.
1572 * c-lang.c (c_language_data): Delete la_printchar initializer.
1573 (cplus_language_data): Likewise.
1574 (asm_language_data): Likewise.
1575 (minimal_language_data): Likewise.
1576 * d-lang.c (d_language_data): Likewise.
1577 * f-lang.c (f_printchar): Rename to f_language::printchar.
1578 (f_language_data): Delete la_printchar initializer.
1579 (f_language::printchar): New member function, implementation from
1580 f_printchar.
1581 * go-lang.c (go_language_data): Delete la_printchar initializer.
1582 * language.c (unk_lang_printchar): Delete.
1583 (language_defn::printchar): Define new member function.
1584 (unknown_language_data): Delete la_printchar initializer.
1585 (unknown_language::printchar): New member function.
1586 (auto_language_data): Delete la_printchar initializer.
1587 (auto_language::printchar): New member function.
1588 * language.h (language_data): Delete la_printchar field.
1589 (language_defn::printchar): Declare new member function.
1590 (LA_PRINT_CHAR): Update call to printchar.
1591 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
1592 (m2_language::printchar): New member function.
1593 * objc-lang.c (objc_language_data): Delete la_printchar
1594 initializer.
1595 * opencl-lang.c (opencl_language_data): Likewise.
1596 * p-lang.c (pascal_language_data): Delete la_printchar
1597 initializer.
1598 (pascal_language::printchar): New member function.
1599 * rust-lang.c (rust_printchar): Rename to
1600 rust_language::printchar.
1601 (rust_language_data): Delete la_printchar initializer.
1602 (rust_language::printchar): New member function, implementation
1603 from rust_printchar.
1604
ec8cec5b
AB
16052020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1606
1607 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
1608 (ada_language_data): Delete la_emitchar initializer.
1609 (ada_language::emitchar): New member function, implementation from
1610 emit_char.
1611 * c-lang.c (c_language_data): Delete la_emitchar initializer.
1612 (cplus_language_data): Likewise.
1613 (asm_language_data): Likewise.
1614 (minimal_language_data): Likewise.
1615 * d-lang.c (d_language_data): Likewise.
1616 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
1617 (f_language_data): Delete la_emitchar initializer.
1618 (f_language::emitchar): New member function, implementation from
1619 f_emit_char.
1620 * go-lang.c (go_language_data): Delete la_emitchar initializer.
1621 * language.c (unk_lang_emit_char): Delete.
1622 (language_defn::emitchar): New member function definition.
1623 (unknown_language_data): Delete la_emitchar initializer.
1624 (unknown_language::emitchar): New member function.
1625 (auto_language_data): Delete la_emitchar initializer.
1626 (auto_language::emitchar): New member function.
1627 * language.h (language_data): Delete la_emitchar field.
1628 (language_defn::emitchar): New member field declaration.
1629 (LA_EMIT_CHAR): Update call to emitchar.
1630 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
1631 (m2_language_data): Delete la_emitchar initializer.
1632 (m2_language::emitchar): New member function, implementation from
1633 m2_emit_char.
1634 * objc-lang.c (objc_language_data): Delete la_emitchar
1635 initializer.
1636 * opencl-lang.c (opencl_language_data): Likewise.
1637 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
1638 (pascal_language_data): Delete la_emitchar initializer.
1639 (pascal_language::emitchar): New member function, implementation
1640 from pascal_emit_char.
1641 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
1642 (rust_language_data): Delete la_emitchar initializer.
1643 (rust_language::emitchar): New member function, implementation
1644 from rust_emitchar.
1645
1bf9c363
AB
16462020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1647
1648 * ada-lang.c (resolve): Rename to ada_language::post_parser.
1649 (ada_language_data): Delete la_post_parser initializer.
1650 (ada_language::post_parser): New member function.
1651 * c-lang.c (c_language_data): Delete la_post_parser initializer.
1652 (cplus_language_data): Likewise.
1653 (asm_language_data): Likewise.
1654 (minimal_language_data): Likewise.
1655 * d-lang.c (d_language_data): Likewise.
1656 * f-lang.c (f_language_data): Likewise.
1657 * go-lang.c (go_language_data): Likewise.
1658 * language.c (unknown_language_data): Likewise.
1659 (auto_language_data): Likewise.
1660 * language.h (language_data): Delete la_post_parser field.
1661 (language_defn::post_parser): New member function.
1662 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
1663 * objc-lang.c (objc_language_data): Likewise.
1664 * opencl-lang.c (opencl_language_data): Likewise.
1665 * p-lang.c (pascal_language_data): Likewise.
1666 * parse.c (parse_exp_in_context): Update call to post_parser.
1667 (null_post_parser): Delete definition.
1668 * parser-defs.h (null_post_parser): Delete declaration.
1669 * rust-lang.c (rust_language_data): Delete la_post_parser
1670 initializer.
1671
87afa652
AB
16722020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1673
1674 * ada-lang.c (parse): Rename to ada_language::parser.
1675 (ada_language_data): Delete la_parser initializer.
1676 (ada_language::parser): New member function, implementation from
1677 parse.
1678 * c-lang.c (c_language_data): Delete la_parser initializer.
1679 (cplus_language_data): Likewise.
1680 (asm_language_data): Likewise.
1681 (minimal_language_data): Likewise.
1682 * d-lang.c (d_language_data): Likewise.
1683 (d_language::parser): New member function.
1684 * f-lang.c (f_language_data): Delete la_parser initializer.
1685 (f_language::parser): New member function.
1686 * go-lang.c (go_language_data): Delete la_parser initializer.
1687 (go_language::parser): New member function.
1688 * language.c (unk_lang_parser): Delete.
1689 (language_defn::parser): Define new member function.
1690 (unknown_language_data): Delete la_parser initializer.
1691 (unknown_language::parser): New member function.
1692 (auto_language_data): Delete la_parser initializer.
1693 (auto_language::parser): New member function.
1694 * language.h (language_data): Delete la_parser field.
1695 (language_defn::parser): Declare new member function.
1696 * m2-lang.c (m2_language_data): Delete la_parser initializer.
1697 (m2_language::parser): New member function.
1698 * objc-lang.c (objc_language_data): Delete la_parser initializer.
1699 * opencl-lang.c (opencl_language_data): Likewise.
1700 * p-lang.c (pascal_language_data): Likewise.
1701 (pascal_language::parser): New member function.
1702 * parse.c (parse_exp_in_context): Update call to parser.
1703 * rust-lang.c (rust_language_data): Delete la_parser initializer.
1704 (rust_language::parser): New member function.
1705
37825800
AB
17062020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1707
1708 * top.c (print_gdb_configuration): Print --with-python-libdir
1709 configuration value.
1710
5b860c93
PW
17112020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1712
1713 * NEWS: Mention change to the alias command.
1714
cf00cd6f
PW
17152020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1716
1717 * cli/cli-cmds.c (lookup_cmd_for_default_args)
1718 (alias_command_completer)
1719 (make_alias_options_def_group): New functions.
1720 (alias_opts, alias_option_defs): New struct and array.
1721 (alias_usage_error): Update usage.
1722 (alias_command): Handles optional DEFAULT-ARGS... arguments.
1723 Use option framework.
1724 (_initialize_cli_cmds): Update alias command help.
1725 Update aliases command help.
1726 (show_user):
1727 Add NULL for new default_args lookup_cmd argument.
1728 (valid_command_p): Rename to validate_aliased_command.
1729 Add NULL for new default_args lookup_cmd argument. Verify that the
1730 aliased_command has no default args.
1731 * cli/cli-decode.c (help_cmd): Show aliases definitions.
1732 (lookup_cmd_1, lookup_cmd): New argument default_args.
1733 (add_alias_cmd):
1734 Add NULL for new default_args lookup_cmd argument.
1735 (print_help_for_command): Show default args under the layout
1736 alias some_alias = some_aliased_cmd some_alias_default_arg.
1737 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
1738 xfree default_args in destructor.
1739 * cli/cli-script.c (process_next_line, do_define_command):
1740 Add NULL for new default_args lookup_cmd argument.
1741 * command.h: Declare new default_args argument in lookup_cmd
1742 and lookup_cmd_1.
1743 * completer.c (complete_line_internal_1):
1744 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1745 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
1746 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
1747 Likewise.
1748 * infcmd.c (_initialize_infcmd): Likewise.
1749 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
1750 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
1751 * python/py-param.c (add_setshow_generic): Likewise.
1752 * remote.c (_initialize_remote): Likewise.
1753 * top.c (execute_command): Prepend default_args if command has some.
1754 (set_verbose):
1755 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1756 * tracepoint.c (validate_actionline, encode_actions_1):
1757 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1758
bd920864
TBA
17592020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1760
1761 * jit.c (jit_read_descriptor): Use bool as the return type.
1762 (jit_breakpoint_re_set_internal): Use bool as the return type.
1763 Invert the return value logic; return true if the jit breakpoint
1764 has been successfully initialized.
1765 (jit_inferior_init): Update the call to
1766 jit_breakpoint_re_set_internal.
1767
f8098322
PA
17682020-06-22 Pedro Alves <palves@redhat.com>
1769
1770 PR gdb/25939
1771 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
1772 Use the current inferior instead. Don't return
1773 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
1774 wait again.
1775 * sol-thread.c (sol_thread_target::wait): Don't reference
1776 inferior_ptid.
1777 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
1778 (sol_update_thread_list_callback): Use the current inferior's pid
1779 instead of inferior_ptid.
1780
196535a6
RO
17812020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1782
1783 * procfs.c: Cleanup many comments.
1784
1785 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
1786 (AFTER_WATCHFLAG): Replace by value.
1787
1788 (MAIN_PROC_NAME_FORMAT): Inline ...
1789 (create_procinfo): ... here.
1790
1791 (procfs_debug_inferior): Remove SYS_exec handling.
1792 (syscall_is_exec): Likewise.
1793 (procfs_set_exec_trap): Likewise.
1794
1795 (syscall_is_lwp_exit): Inline in callers.
1796 (syscall_is_exit): Likewise.
1797 (syscall_is_exec): Likewise.
1798 (syscall_is_lwp_create): Likewise.
1799
1800 (invalidate_cache): Remove #if 0 code.
1801
1802 (make_signal_thread_runnable): Remove.
1803 (procfs_target::resume): Remove #if 0 code.
1804
cf6f3e86
RO
18052020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1806
1807 PR gdb/25939
1808 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
1809 call ...
1810 (procfs_target::create_inferior): ... here.
1811
48e9cc84
PW
18122020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1813
1814 * exec.c (validate_exec_file): Ensure the build-id is up to
1815 date by calling reopen_exec_file (that checks file timestamp
1816 to decide to re-read the file).
1817
3922b302
PA
18182020-06-18 Pedro Alves <palves@redhat.com>
1819
1820 PR gdb/25412
1821 * gdbthread.h (delete_thread, delete_thread_silent)
1822 (find_thread_ptid): Update comments.
1823 * thread.c (current_thread_): New global.
1824 (is_current_thread): Move higher, and reimplement.
1825 (inferior_thread): Reimplement.
1826 (set_thread_exited): Use bool. Add assertions.
1827 (add_thread_silent): Simplify thread-reuse handling by always
1828 calling delete_thread.
1829 (delete_thread): Remove intro comment.
1830 (find_thread_ptid): Skip exited threads.
1831 (switch_to_thread_no_regs): Write to current_thread_.
1832 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
1833 INFERIOR_PTID. Clear current_thread_.
1834
6dbdab44
PA
18352020-06-18 Pedro Alves <palves@redhat.com>
1836
1837 * aix-thread.c (pd_update): Use switch_to_thread.
1838
2da4b788
PA
18392020-06-18 Pedro Alves <palves@redhat.com>
1840
1841 * ravenscar-thread.c (ravenscar_thread_target): Update.
1842 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
1843 (ravenscar_thread_target::add_active_thread): ... this. Don't
1844 set m_base_ptid here. Update to avoid referencing inferior_ptid.
1845 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
1846
50838d1b
PA
18472020-06-18 Pedro Alves <palves@redhat.com>
1848
1849 * nat/windows-nat.c (current_windows_thread): Remove.
1850 * nat/windows-nat.h (current_windows_thread): Remove.
1851 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
1852 Adjust.
1853 (display_selectors): Adjust to fetch the current
1854 windows_thread_info based on inferior_ptid.
1855 (fake_create_process): No longer write to current_windows_thread.
1856 (windows_nat_target::get_windows_debug_event):
1857 Don't set inferior_ptid or current_windows_thread.
1858 (windows_nat_target::wait): Adjust to not rely on
1859 current_windows_thread.
1860 (do_initial_windows_stuff): Now a method of windows_nat_target.
1861 Switch to the last_ptid thread.
1862 (windows_nat_target::attach): Adjust.
1863 (windows_nat_target::detach): Use switch_to_no_thread instead of
1864 writing to inferior_ptid directly.
1865 (windows_nat_target::create_inferior): Adjust.
1866
31ce04e9
PA
18672020-06-18 Pedro Alves <palves@redhat.com>
1868
1869 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
1870
1ee1a363
PA
18712020-06-18 Pedro Alves <palves@redhat.com>
1872
1873 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
1874 after creating it, instead of writing to inferior_ptid. Don't
1875 write to inferior_ptid.
1876
6d350754
PA
18772020-06-18 Pedro Alves <palves@redhat.com>
1878
1879 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
1880
5d971d48
PA
18812020-06-18 Pedro Alves <palves@redhat.com>
1882
1883 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
1884 it, instead of writing to inferior_ptid.
1885
86e57d1b
PA
18862020-06-18 Pedro Alves <palves@redhat.com>
1887
1888 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
1889 to inferior_ptid.
1890
f2e1c129
PA
18912020-06-18 Pedro Alves <palves@redhat.com>
1892
1893 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
1894 instead of writing to inferior_ptid directly.
1895
60db1b85
PA
18962020-06-18 Pedro Alves <palves@redhat.com>
1897
1898 * corelow.c (core_target::close): Use switch_to_no_thread instead
1899 of writing to inferior_ptid directly.
1900 (add_to_thread_list, core_target_open): Use switch_to_thread
1901 instead of writing to inferior_ptid directly.
1902
fe7d6a8d
PA
19032020-06-18 Pedro Alves <palves@redhat.com>
1904
1905 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
1906 inferior_ptid.
1907 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
1908 inferior_ptid.
1909 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
1910 inferior_ptid directly.
1911 (darwin_nat_target::init_thread_list): Switch to thread, instead
1912 of writing to inferior_ptid.
1913 (darwin_nat_target::attach): Don't write to inferior_ptid.
1914 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
1915
975f8708
PA
19162020-06-18 Pedro Alves <palves@redhat.com>
1917
1918 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
1919 thread.
1920 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
1921 Instead use switch_to_thread.
1922 (gnu_nat_target::detach): Use switch_to_no_thread
1923 instead of writing to inferior_ptid directly. Used passed-in
1924 inferior instead of looking up the inferior by pid.
1925
1a204730
PA
19262020-06-18 Pedro Alves <palves@redhat.com>
1927
1928 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
1929 inferior_ptid.
1930
ebe84f23
PA
19312020-06-18 Pedro Alves <palves@redhat.com>
1932
1933 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
1934 inferior_ptid.
1935 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
1936 thread.
1937 (nto_procfs_target::detach): Avoid referencing
1938 inferior_ptid. Use switch_to_no_thread instead of writing to
1939 inferior_ptid directly.
1940 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
1941 instead of writing to inferior_ptid directly.
1942 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
1943 to thread.
1944
191f02e5
PA
19452020-06-18 Pedro Alves <palves@redhat.com>
1946
1947 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
1948 after creating it, instead of writing to inferior_ptid.
1949 (gdbsim_target_open): Use switch_to_no_thread instead of writing
1950 to inferior_ptid directly.
1951 (gdbsim_target::wait): Don't write to inferior_ptid.
1952
0ac55310
PA
19532020-06-18 Pedro Alves <palves@redhat.com>
1954
1955 * remote.c (remote_target::remote_notice_new_inferior): Use
1956 switch_to_thread instead of writing to inferior_ptid directly.
1957 (remote_target::add_current_inferior_and_thread): Use
1958 switch_to_no_thread instead of writing to inferior_ptid directly.
1959 (extended_remote_target::attach): Use switch_to_inferior_no_thread
1960 and switch_to_thread instead of using set_current_inferior or
1961 writing to inferior_ptid directly.
1962
5233f39b
PA
19632020-06-18 Pedro Alves <palves@redhat.com>
1964
1965 * tracectf.c (ctf_target_open): Switch to added thread instead of
1966 writing to inferior_ptid directly.
1967 (ctf_target::close): Use switch_to_no_thread instead of writing to
1968 inferior_ptid directly.
1969
087e161b
PA
19702020-06-18 Pedro Alves <palves@redhat.com>
1971
1972 * tracefile-tfile.c (tfile_target_open): Don't write to
1973 inferior_ptid directly, instead switch to added thread.
1974 (tfile_target::close): Use switch_to_no_thread instead of writing
1975 to inferior_ptid directly.
1976
7fb43e53
PA
19772020-06-18 Pedro Alves <palves@redhat.com>
1978
1979 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
1980 (procfs_target::detach): Use switch_to_no_thread
1981 instead of writing to inferior_ptid directly.
1982 (do_attach): Change return type to void. Switch to the added
1983 thread.
1984 (procfs_target::create_inferior): Switch to the added thread.
1985 (procfs_do_thread_registers): Don't write to inferior_ptid.
1986
18493a00
PA
19872020-06-18 Pedro Alves <palves@redhat.com>
1988
1989 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
1990 of writing to inferior_ptid.
1991 (scoped_restore_exited_inferior): Delete.
1992 (handle_vfork_child_exec_or_exit): Simplify using
1993 scoped_restore_current_pspace_and_thread. Use switch_to_thread
1994 instead of writing to inferior_ptid.
1995 (THREAD_STOPPED_BY): Delete.
1996 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
1997 (thread_stopped_by_hw_breakpoint): Delete.
1998 (save_waitstatus): Use
1999 scoped_restore_current_thread+switch_to_thread, and call
2000 target_stopped_by_watchpoint instead of
2001 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
2002 instead of thread_stopped_by_sw_breakpoint, and
2003 target_stopped_by_hw_breakpoint instead of
2004 thread_stopped_by_hw_breakpoint.
2005 (handle_inferior_event)
2006 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
2007 inferior_ptid directly, nor
2008 set_current_inferior/set_current_program_space. Use
2009 switch_to_thread / switch_to_inferior_no_thread instead.
2010
a0776b13
PA
20112020-06-18 Pedro Alves <palves@redhat.com>
2012
2013 * target.c (generic_mourn_inferior): Use switch_to_no_thread
2014 instead of writing to inferior_ptid.
2015
6155c136
PA
20162020-06-18 Pedro Alves <palves@redhat.com>
2017
2018 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
2019 added thread.
2020 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
2021 to the added thread.
2022 (inf_ptrace_target::detach_success): Use switch_to_no_thread
2023 instead of writing to inferior_ptid.
2024
c5316fc6
PA
20252020-06-18 Pedro Alves <palves@redhat.com>
2026
2027 * gdbarch-selftests.c: Include "progspace-and-thread.h".
2028 (register_to_value_test): Mock a program_space too. Heap-allocate
2029 the address space. Don't write to inferior_ptid. Use
2030 switch_to_thread instead.
2031
8df01799
PA
20322020-06-18 Pedro Alves <palves@redhat.com>
2033
2034 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
2035 Delete.
2036 (find_signalled_thread()): New, factored out from
2037 linux_make_corefile_notes and adjusted to handle exited threads.
2038 (linux_make_corefile_notes): Adjust to use the new
2039 find_signalled_thread.
2040
41792d68
PA
20412020-06-18 Pedro Alves <palves@redhat.com>
2042
2043 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
2044 of saving/restoring inferior_ptid.
2045
612f258a
TT
20462020-06-17 Tom Tromey <tom@tromey.com>
2047
2048 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
2049 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
2050 declare.
2051 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
2052
efb763a5
SM
20532020-06-15 Simon Marchi <simon.marchi@efficios.com>
2054
2055 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
2056 of partial symtabs.
2057
2951f6c0
SM
20582020-06-17 Simon Marchi <simon.marchi@efficios.com>
2059
2060 * regformats/reg-arm.dat: Remove.
2061 * regformats/reg-bfin.dat: Remove.
2062 * regformats/reg-cris.dat: Remove.
2063 * regformats/reg-crisv32.dat: Remove.
2064 * regformats/reg-m32r.dat: Remove.
2065 * regformats/reg-tilegx.dat: Remove.
2066 * regformats/reg-tilegx32.dat: Remove.
2067
7d458ea5
SM
20682020-06-17 Simon Marchi <simon.marchi@efficios.com>
2069
2070 * features/Makefile (WHICH): Remove arm files.
2071 * regformats/arm/arm-with-iwmmxt.dat: Remove.
2072 * regformats/arm/arm-with-neon.dat: Remove.
2073 * regformats/arm/arm-with-vfpv2.dat: Remove.
2074 * regformats/arm/arm-with-vfpv3.dat: Remove.
2075
3af96c0d
SM
20762020-06-17 Simon Marchi <simon.marchi@efficios.com>
2077
2078 * features/Makefile (XMLTOC): Remove rx.xml.
2079
b25e22fd
PA
20802020-06-17 Pedro Alves <palves@redhat.com>
2081
2082 * gdbthread.h (thread_control_state) <trap_expected> Update
2083 comments.
2084
a78a19b1
AB
20852020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2086
2087 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
2088 ada_language::lookup_symbol_nonlocal.
2089 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
2090 (ada_language::lookup_symbol_nonlocal): New member function,
2091 implementation from ada_lookup_symbol_nonlocal.
2092 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
2093 initializer.
2094 (cplus_language_data): Delete la_lookup_symbol_nonlocal
2095 initializer.
2096 (cplus_language::lookup_symbol_nonlocal): New member function.
2097 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
2098 (minimal_language_data) Likewise.
2099 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
2100 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
2101 initializer.
2102 (d_language::lookup_symbol_nonlocal): New member function.
2103 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
2104 initializer.
2105 (f_language::lookup_symbol_nonlocal): New member function.
2106 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
2107 initializer.
2108 * language.c (unknown_language_data): Likewise.
2109 (auto_language_data): Likewise.
2110 * language.h (language_data): Delete la_lookup_symbol_nonlocal
2111 field.
2112 (language_defn::lookup_symbol_nonlocal): New member function.
2113 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
2114 initializer.
2115 * objc-lang.c (objc_language_data): Likewise.
2116 * opencl-lang.c (opencl_language_data): Likewise.
2117 * p-lang.c (pascal_language_data): Likewise.
2118 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
2119 rust_language::lookup_symbol_nonlocal.
2120 (rust_language_data): Delete la_lookup_symbol_nonlocal
2121 initializer.
2122 (rust_language::lookup_symbol_nonlocal): New member function,
2123 implementation from rust_lookup_symbol_nonlocal.
2124 * symtab.c (lookup_symbol_aux): Update call to
2125 lookup_symbol_nonlocal.
2126 (basic_lookup_symbol_nonlocal): Rename to...
2127 (language_defn::lookup_symbol_nonlocal): ...this, and update
2128 header comment. Remove language_defn parameter, and replace with
2129 uses of `this'.
2130 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
2131
ebe2334e
AB
21322020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2133
2134 * ada-lang.c (ada_language_data): Delete la_value_print_inner
2135 initializer.
2136 (ada_language::value_print_inner): New member function.
2137 * c-lang.c (c_language_data): Delete la_value_print_inner
2138 initializer.
2139 (cplus_language_data): Likewise.
2140 (asm_language_data): Likewise.
2141 (minimal_language_data): Likewise.
2142 * d-lang.c (d_language_data): Likewise.
2143 (d_language::value_print_inner): New member function.
2144 * f-lang.c (f_language_data): Delete la_value_print_inner
2145 initializer.
2146 (f_language::value_print_inner): New member function.
2147 * f-lang.h (f_value_print_innner): Rename to...
2148 (f_value_print_inner): ...this (note spelling of 'inner').
2149 * f-valprint.c (f_value_print_innner): Rename to...
2150 (f_value_print_inner): ...this (note spelling of 'inner').
2151 * go-lang.c (go_language_data): Delete la_value_print_inner
2152 initializer.
2153 (go_language::value_print_inner): New member function.
2154 * language.c (language_defn::value_print_inner): Define new member
2155 function.
2156 (unk_lang_value_print_inner): Delete.
2157 (unknown_language_data): Delete la_value_print_inner initializer.
2158 (unknown_language::value_print_inner): New member function.
2159 (auto_language_data): Delete la_value_print_inner initializer.
2160 (auto_language::value_print_inner): New member function.
2161 * language.h (language_data): Delete la_value_print_inner field.
2162 (language_defn::value_print_inner): Delcare new member function.
2163 * m2-lang.c (m2_language_data): Delete la_value_print_inner
2164 initializer.
2165 (m2_language::value_print_inner): New member function.
2166 * objc-lang.c (objc_language_data): Delete la_value_print_inner
2167 initializer.
2168 * opencl-lang.c (opencl_language_data): Likewise.
2169 * p-lang.c (pascal_language_data): Likewise.
2170 (pascal_language::value_print_inner): New member function.
2171 * rust-lang.c (rust_language_data): Delete la_value_print_inner
2172 initializer.
2173 (rust_language::value_print_inner): New member function.
2174 * valprint.c (do_val_print): Update call to value_print_inner.
2175
a1d1fa3e
AB
21762020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2177
2178 * ada-lang.c (ada_language_data): Delete la_value_print
2179 initializer.
2180 (ada_language::value_print): New member function.
2181 * c-lang.c (c_language_data): Delete la_value_print initializer.
2182 (cplus_language_data): Likewise.
2183 (asm_language_data): Likewise.
2184 (minimal_language_data): Likewise.
2185 * d-lang.c (d_language_data): Likewise.
2186 * f-lang.c (f_language_data): Likewise.
2187 * go-lang.c (go_language_data): Likewise.
2188 * language.c (unk_lang_value_print): Delete.
2189 (language_defn::value_print): Define new member function.
2190 (unknown_language_data): Delete la_value_print initializer.
2191 (unknown_language::value_print): New member function.
2192 (auto_language_data): Delete la_value_print initializer.
2193 (auto_language::value_print): New member function.
2194 * language.h (language_data): Delete la_value_print field.
2195 (language_defn::value_print): Declare new member function.
2196 (LA_VALUE_PRINT): Update call to value_print.
2197 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
2198 * objc-lang.c (objc_language_data): Likewise.
2199 * opencl-lang.c (opencl_language_data): Likewise.
2200 * p-lang.c (pascal_language_data): Likewise.
2201 (pascal_language::value_print): New member function.
2202 * rust-lang.c (rust_language_data): Delete la_value_print
2203 initializer.
2204
f16a9f57
AB
22052020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2206
2207 * ada-lang.c (ada_watch_location_expression): Rename to
2208 ada_language::watch_location_expression.
2209 (ada_language_data): Delete la_watch_location_expression
2210 initializer.
2211 (ada_language::watch_location_expression): New member function,
2212 implementation from ada_watch_location_expression.
2213 * breakpoint.c (watch_command_1): Update call to
2214 watch_location_expression.
2215 * c-lang.c (c_watch_location_expression): Rename to
2216 language_defn::watch_location_expression.
2217 (c_language_data): Delete la_watch_location_expression
2218 initializer.
2219 (cplus_language_data): Likewise.
2220 (asm_language_data): Likewise.
2221 (minimal_language_data): Likewise.
2222 * c-lang.h (c_watch_location_expression): Delete declaration.
2223 * d-lang.c (d_language_data): Delete la_watch_location_expression
2224 initializer.
2225 * f-lang.c (f_language_data): Likewise.
2226 * go-lang.c (go_language_data): Likewise.
2227 * language.c (language_defn::watch_location_expression): Member
2228 function implementation from c_watch_location_expression.
2229 (unknown_language_data): Delete la_watch_location_expression
2230 initializer.
2231 (auto_language_data): Likewise.
2232 * language.h (language_data): Delete la_watch_location_expression
2233 field.
2234 (language_defn::watch_location_expression): Declare new member
2235 function.
2236 * m2-lang.c (m2_language_data): Delete
2237 la_watch_location_expression 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_watch_location_expression): Rename to
2242 rust_language::watch_location_expression.
2243 (rust_language_data): Delete la_watch_location_expression
2244 initializer.
2245 (rust_language::watch_location_expression): New member function,
2246 implementation from rust_watch_location_expression.
2247
7e56227d
AB
22482020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2249
2250 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
2251 ada_language::collect_symbol_completion_matches.
2252 (ada_language_data): Delete la_collect_symbol_completion_matches
2253 initializer.
2254 (ada_language::collect_symbol_completion_matches): New member
2255 function, implementation from
2256 ada_collect_symbol_completion_matches.
2257 * c-lang.c (c_language_data): Delete
2258 la_collect_symbol_completion_matches initializer.
2259 (cplus_language_data): Likewise.
2260 (asm_language_data): Likewise.
2261 (minimal_language_data): Likewise.
2262 * d-lang.c (d_language_data): Likewise.
2263 * f-lang.c (f_collect_symbol_completion_matches): Rename to
2264 f_language::collect_symbol_completion_matches.
2265 (f_language_data): Delete la_collect_symbol_completion_matches
2266 initializer.
2267 (f_language::collect_symbol_completion_matches) New member
2268 function, implementation from f_collect_symbol_completion_matches.
2269 * go-lang.c (go_language_data): Delete
2270 la_collect_symbol_completion_matches initializer.
2271 * language.c (unknown_language_data): Likewise.
2272 (auto_language_data): Likewise.
2273 * language.h (language_data): Delete
2274 la_collect_symbol_completion_matches field.
2275 (language_defn::collect_symbol_completion_matches): New member
2276 function.
2277 * m2-lang.c (m2_language_data): Delete
2278 la_collect_symbol_completion_matches initializer.
2279 * objc-lang.c (objc_language_data): Likewise.
2280 * opencl-lang.c (opencl_language_data): Likewise.
2281 * p-lang.c (pascal_language_data): Likewise.
2282 * rust-lang.c (rust_language_data): Likewise.
2283 * symtab.c (default_collect_symbol_completion_matches): Delete.
2284 (collect_symbol_completion_matches): Update call to
2285 collect_symbol_completion_matches.
2286 (collect_symbol_completion_matches_type): Likewise.
2287 * symtab.h (default_collect_symbol_completion_matches): Delete
2288 declaration.
2289
53fc67f8
AB
22902020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2291
2292 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
2293 (ada_language_data): Delete la_word_break_characters initializer.
2294 (ada_language::word_break_characters): New member function.
2295 * c-lang.c (c_language_data): Delete la_word_break_characters
2296 initializer.
2297 (cplus_language_data): Likewise.
2298 (asm_language_data): Likewise.
2299 (minimal_language_data): Likewise.
2300 * completer.c: Update global comment.
2301 (advance_to_expression_complete_word_point): Update call to
2302 word_break_characters.
2303 (complete_files_symbols): Likewise.
2304 (complete_line_internal_1): Likewise.
2305 (default_completer_handle_brkchars): Likewise.
2306 (skip_quoted_chars): Likewise.
2307 * d-lang.c (d_language_data): Delete la_word_break_characters
2308 initializer.
2309 * f-lang.c (f_word_break_characters): Delete.
2310 (f_language_data): Delete la_word_break_characters initializer.
2311 (f_language::word_break_characters): New member function.
2312 * go-lang.c (go_language_data): Delete la_word_break_characters
2313 initializer.
2314 * language.c (unknown_language_data): Likewise.
2315 (auto_language_data): Likewise.
2316 * language.h (default_word_break_characters): Move declaration to
2317 earlier in the file.
2318 (language_data): Delete la_word_break_characters field.
2319 (language_defn::word_break_characters): New member function.
2320 * m2-lang.c (m2_language_data): Delete la_word_break_characters
2321 initializer.
2322 * objc-lang.c (objc_language_data): Likewise.
2323 * opencl-lang.c (opencl_language_data): Likewise.
2324 * p-lang.c (pascal_language_data): Likewise.
2325 * rust-lang.c (rust_language_data): Likewise.
2326
c9debfb9
AB
23272020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2328
2329 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
2330 (ada_language_data): Delete la_get_symbol_name_matcher
2331 initializer.
2332 (language_defn::get_symbol_name_matcher_inner): New member
2333 function.
2334 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
2335 initializer.
2336 (cplus_language_data): Likewise.
2337 (cplus_language::get_symbol_name_matcher_inner): New member
2338 function.
2339 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
2340 (minimal_language_data): Likewise.
2341 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
2342 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
2343 initializer.
2344 * dictionary.c (iter_match_first_hashed): Update call to
2345 get_symbol_name_matcher.
2346 (iter_match_next_hashed): Likewise.
2347 (iter_match_next_linear): Likewise.
2348 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
2349 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
2350 initializer.
2351 (f_language::get_symbol_name_matcher_inner): New member function.
2352 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
2353 initializer.
2354 * language.c (default_symbol_name_matcher): Update header comment,
2355 make static.
2356 (language_defn::get_symbol_name_matcher): New definition.
2357 (language_defn::get_symbol_name_matcher_inner): Likewise.
2358 (get_symbol_name_matcher): Delete.
2359 (unknown_language_data): Delete la_get_symbol_name_matcher
2360 initializer.
2361 (auto_language_data): Likewise.
2362 * language.h (language_data): Delete la_get_symbol_name_matcher
2363 field.
2364 (language_defn::get_symbol_name_matcher): New member function.
2365 (language_defn::get_symbol_name_matcher_inner): Likewise.
2366 (default_symbol_name_matcher): Delete declaration.
2367 * linespec.c (find_methods): Update call to
2368 get_symbol_name_matcher.
2369 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
2370 initializer.
2371 * minsyms.c (lookup_minimal_symbol): Update call to
2372 get_symbol_name_matcher.
2373 (iterate_over_minimal_symbols): Likewise.
2374 * objc-lang.c (objc_language_data): Delete
2375 la_get_symbol_name_matcher initializer.
2376 * opencl-lang.c (opencl_language_data): Likewise.
2377 * p-lang.c (pascal_language_data): Likewise.
2378 * psymtab.c (psymbol_name_matches): Update call to
2379 get_symbol_name_matcher.
2380 * rust-lang.c (rust_language_data): Delete
2381 la_get_symbol_name_matcher initializer.
2382 * symtab.c (symbol_matches_search_name): Update call to
2383 get_symbol_name_matcher.
2384 (compare_symbol_name): Likewise.
2385
9a49ad8c
AB
23862020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2387
2388 * ada-lang.c (ada_language_data): Delete la_compute_program
2389 initializer.
2390 * c-lang.c (c_language_data): Likewise.
2391 (c_language::compute_program): New member function.
2392 (cplus_language_data): Delete la_compute_program initializer.
2393 (cplus_language::compute_program): New member function.
2394 (asm_language_data): Delete la_compute_program initializer.
2395 (minimal_language_data): Likewise.
2396 * c-lang.h (c_compute_program): Update comment.
2397 (cplus_compute_program): Likewise.
2398 * compile/compile-c-support.c (c_compute_program): Likewise.
2399 (cplus_compute_program): Likewise.
2400 * compile/compile.c (compile_to_object): Update call to
2401 la_compute_program.
2402 * d-lang.c (d_language_data): Delete la_compute_program
2403 initializer.
2404 * f-lang.c (f_language_data): Likewise.
2405 * go-lang.c (go_language_data): Likewise.
2406 * language.c (unknown_language_data): Likewise.
2407 (auto_language_data): Likewise.
2408 * language.h (language_data): Delete la_compute_program field.
2409 (language_defn::compute_program): New member function.
2410 * m2-lang.c (m2_language_data): Delete la_compute_program
2411 initializer.
2412 * objc-lang.c (objc_language_data): Likewise.
2413 * opencl-lang.c (opencl_language_data): Likewise.
2414 * p-lang.c (pascal_language_data): Likewise.
2415 * rust-lang.c (rust_language_data): Likewise.
2416
eff93b4d
AB
24172020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2418
2419 * ada-lang.c (ada_language_data) Delete
2420 la_class_name_from_physname initializer.
2421 * c-lang.c (c_language_data): Likewise.
2422 (cplus_language_data): Likewise.
2423 (cplus_language::class_name_from_physname): New member function.
2424 (asm_language_data): Delete la_class_name_from_physname
2425 initializer.
2426 (minimal_language_data): Likewise.
2427 * d-lang.c (d_language_data): Likewise.
2428 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
2429 method on language_defn class.
2430 (guess_full_die_structure_name): Likewise.
2431 * f-lang.c (f_language_data): Delete la_class_name_from_physname
2432 initializer.
2433 * go-lang.c (go_language_data): Likewise.
2434 * language.c (language_class_name_from_physname): Delete.
2435 (unk_lang_class_name): Delete.
2436 (unknown_language_data): Delete la_class_name_from_physname
2437 initializer.
2438 (auto_language_data): Likewise.
2439 * language.h (language_data): Delete la_class_name_from_physname
2440 field.
2441 (language_defn::class_name_from_physname): New function.
2442 (language_class_name_from_physname): Delete declaration.
2443 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
2444 initializer.
2445 * objc-lang.c (objc_language_data): Likewise.
2446 * opencl-lang.c (opencl_language_data): Likewise.
2447 * p-lang.c (pascal_language_data): Likewise.
2448 * rust-lang.c (rust_language_data): Likewise.
2449
de543742
TT
24502020-06-16 Tom Tromey <tom@tromey.com>
2451
2452 * tui/tui-data.h (STATUS_NAME): New macro.
2453 * tui/tui-layout.c (tui_remove_some_windows)
2454 (initialize_known_windows, tui_register_window)
2455 (tui_layout_split::remove_windows, initialize_layouts)
2456 (tui_new_layout_command): Don't use hard-coded window names.
2457
a350efd4
TT
24582020-06-16 Tom Tromey <tom@tromey.com>
2459
2460 PR tui/25348:
2461 * tui/tui.c (tui_ensure_readline_initialized): Rename from
2462 tui_initialize_readline. Only run once. Call rl_initialize.
2463 * tui/tui.h (tui_ensure_readline_initialized): Rename from
2464 tui_initialize_readline.
2465 * tui/tui-io.c (tui_setup_io): Call
2466 tui_ensure_readline_initialized.
2467 * tui/tui-interp.c (tui_interp::init): Update.
2468
39ec0490
TT
24692020-06-16 Tom Tromey <tom@tromey.com>
2470
2471 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
2472 Also preserve the status window.
2473
d2d1ea20
TT
24742020-06-16 Tom Tromey <tom@tromey.com>
2475
2476 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
2477 where m_window==nullptr.
2478
66920317
TT
24792020-06-15 Tom Tromey <tromey@adacore.com>
2480
2481 * windows-nat.c (windows_nat::handle_output_debug_string):
2482 Update.
2483 (windows_nat::handle_ms_vc_exception): Update.
2484 * target.h (target_read_string): Change API.
2485 * target.c (target_read_string): Change API.
2486 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
2487 Update.
2488 * solib-frv.c (frv_current_sos): Update.
2489 * solib-dsbt.c (dsbt_current_sos): Update.
2490 * solib-darwin.c (darwin_current_sos): Update.
2491 * linux-thread-db.c (inferior_has_bug): Update.
2492 * expprint.c (print_subexp_standard): Update.
2493 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
2494 (ada_exception_message_1): Update.
2495
a5d871dd
TT
24962020-06-15 Tom Tromey <tromey@adacore.com>
2497
2498 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
2499
670e35fa
TT
25002020-06-15 Tom Tromey <tromey@adacore.com>
2501
2502 * valprint.c (read_string): Update comment.
2503 * target.c (MIN): Remove.
2504 (target_read_string): Rewrite.
2505
f5272a3b
TT
25062020-06-15 Tom Tromey <tromey@adacore.com>
2507
2508 * corefile.c (read_memory_string): Remove.
2509 * ada-valprint.c (ada_value_print_ptr): Update.
2510 * ada-lang.h (ada_tag_name): Change return type.
2511 * ada-lang.c (type_from_tag): Update.
2512 (ada_tag_name_from_tsd): Change return type. Use
2513 target_read_string.
2514 (ada_tag_name): Likewise.
2515 * gdbcore.h (read_memory_string): Don't declare.
2516
2c074f49
HD
25172020-06-14 Hannes Domani <ssbssa@yahoo.de>
2518
2519 * symtab.c (rbreak_command): Ignore Windows drive colon.
2520
6a17d503
SM
25212020-06-12 Simon Marchi <simon.marchi@efficios.com>
2522
2523 * NEWS: Mention removed GDBserver host support.
2524
453c733f
NC
25252020-06-12 Nelson Chu <nelson.chu@sifive.com>
2526
2527 * features/riscv/rebuild-csr-xml.sh: Updated.
2528
2b4e6a3f
TT
25292020-06-11 Tom Tromey <tom@tromey.com>
2530
2531 PR gdb/18318:
2532 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
2533
4412332f
JG
25342020-06-09 Jonny Grant <jg@jguk.org>
25352020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
2536
2537 * main.c (captured_main_1): Don't print new line after help.
2538 (print_gdb_help): add mailing list and IRC channel information
2539 to --help. Add new lines between items in the footer. Remove
2540 quotes around bug url.
2541
2f33032a
KS
25422020-06-11 Keith Seitz <keiths@redhat.com>
2543
2544 PR gdb/21356
2545 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
2546 Resolve typedefs for type length calculations.
2547
7ab96794
TV
25482020-06-10 Tom de Vries <tdevries@suse.de>
2549
2550 PR ada/24713
2551 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
2552 (write_psymbols): Enable .gdb_index for ada.
2553 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
2554 ada.
2555
e5f3ece2
TV
25562020-06-10 Tom de Vries <tdevries@suse.de>
2557
2558 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
2559 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
2560 namei" instead of "const char *name" argument.
2561 (dw2_map_matching_symbols): Use "offset_type namei" variant of
2562 dw2_symtab_iter_init.
2563
940da03e
SM
25642020-06-08 Simon Marchi <simon.marchi@efficios.com>
2565
2566 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
2567 to use type::field and field::type instead.
2568
b6cdac4b
SM
25692020-06-08 Simon Marchi <simon.marchi@efficios.com>
2570
2571 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
2572 to use field::type instead.
2573
5d14b6e5
SM
25742020-06-08 Simon Marchi <simon.marchi@efficios.com>
2575
2576 * gdbtypes.h (struct field) <type, set_type>: New methods.
2577 Rename `type` field to...
2578 <m_type>: ... this. Change references throughout to use type or
2579 set_type methods.
2580 (FIELD_TYPE): Use field::type. Change call sites that modify
2581 the field's type to use field::set_type instead.
2582
3d967001
SM
25832020-06-08 Simon Marchi <simon.marchi@efficios.com>
2584
2585 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
2586 to use type::index_type instead.
2587
262abc0d
SM
25882020-06-08 Simon Marchi <simon.marchi@efficios.com>
2589
2590 * gdbtypes.h (struct type) <index_type, set_index_type>: New
2591 methods.
2592 (TYPE_INDEX_TYPE): Use type::index_type.
2593 * gdbtypes.c (create_array_type_with_stride): Likewise.
2594
82836c92
TT
25952020-06-07 Tom Tromey <tom@tromey.com>
2596
2597 * valprint.c (generic_val_print_float): Remove "embedded_offset"
2598 parameter.
2599 (generic_value_print): Update.
2600
940dace9
AB
26012020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2602
2603 Revert commit 982a38f60b0.
2604 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
2605
982a38f6
AB
26062020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2607
2608 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
2609 avoid use after free.
2610
82f06518
TV
26112020-06-05 Tom de Vries <tdevries@suse.de>
2612
2613 * NEWS: Fix typos.
2614
f8c41851
SM
26152020-06-04 Simon Marchi <simon.marchi@efficios.com>
2616
2617 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
2618 the per_bfd object.
2619 (dwarf2_read_debug_names): Likewise.
2620 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
2621 object when re-using a per_bfd object with an index.
2622
f9b5d5ea
TV
26232020-06-03 Tom de Vries <tdevries@suse.de>
2624
2625 PR symtab/26046
2626 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
2627 children for C++.
2628 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
2629 DW_TAG_subprogram.
2630
f6eee2d0
AB
26312020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2632
2633 * ada-lang.c (ada_language_data): Delete skip_trampoline
2634 initializer.
2635 * c-lang.c (c_language_data): Likewise.
2636 (cplus_language_data): Likewise.
2637 (cplus_language::skip_trampoline): New member function.
2638 (asm_language_data): Delete skip_trampoline initializer.
2639 (minimal_language_data): Likewise.
2640 * d-lang.c (d_language_data): Likewise.
2641 * f-lang.c (f_language_data): Likewise.
2642 * go-lang.c (go_language_data): Likewise.
2643 * language.c (unk_lang_trampoline): Delete function.
2644 (skip_language_trampoline): Update.
2645 (unknown_language_data): Delete skip_trampoline initializer.
2646 (auto_language_data): Likewise.
2647 * language.h (language_data): Delete skip_trampoline field.
2648 (language_defn::skip_trampoline): New function.
2649 * m2-lang.c (m2_language_data): Delete skip_trampoline
2650 initializer.
2651 * objc-lang.c (objc_skip_trampoline): Delete function, move
2652 implementation to objc_language::skip_trampoline.
2653 (objc_language_data): Delete skip_trampoline initializer.
2654 (objc_language::skip_trampoline): New member function with
2655 implementation from objc_skip_trampoline.
2656 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
2657 initializer.
2658 * p-lang.c (pascal_language_data): Likewise.
2659 * rust-lang.c (rust_language_data): Likewise.
2660
0a50df5d
AB
26612020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2662
2663 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
2664 (ada_language::demangle): New member function.
2665 * c-lang.c (c_language_data): Delete la_demangle initializer.
2666 (cplus_language_data): Delete la_demangle initializer.
2667 (cplus_language::demangle): New member function.
2668 (asm_language_data): Delete la_demangle initializer.
2669 (minimal_language_data): Delete la_demangle initializer.
2670 * d-lang.c (d_language_data): Delete la_demangle initializer.
2671 (d_language::demangle): New member function.
2672 * f-lang.c (f_language_data): Delete la_demangle initializer.
2673 (f_language::demangle): New member function.
2674 * go-lang.c (go_language_data): Delete la_demangle initializer.
2675 (go_language::demangle): New member function.
2676 * language.c (language_demangle): Update.
2677 (unk_lang_demangle): Delete.
2678 (unknown_language_data): Delete la_demangle initializer.
2679 (unknown_language::demangle): New member function.
2680 (auto_language_data): Delete la_demangle initializer.
2681 (auto_language::demangle): New member function.
2682 * language.h (language_data): Delete la_demangle field.
2683 (language_defn::demangle): New function.
2684 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
2685 * objc-lang.c (objc_language_data): Delete la_demangle
2686 initializer.
2687 (objc_language::demangle): New member function.
2688 * opencl-lang.c (opencl_language_data): Delete la_demangle
2689 initializer.
2690 * p-lang.c (pascal_language_data): Likewise.
2691 * rust-lang.c (rust_language_data): Likewise.
2692 (rust_language::demangle): New member function.
2693
fbfb0a46
AB
26942020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2695
2696 * ada-lang.c (ada_language_data): Delete la_print_type
2697 initializer.
2698 (ada_language::print_type): New member function.
2699 * c-lang.c (c_language_data): Delete la_print_type initializer.
2700 (c_language::print_type): New member function.
2701 (cplus_language_data): Delete la_print_type initializer.
2702 (cplus_language::print_type): New member function.
2703 (asm_language_data): Delete la_print_type initializer.
2704 (asm_language::print_type): New member function.
2705 (minimal_language_data): Delete la_print_type initializer.
2706 (minimal_language::print_type): New member function.
2707 * d-lang.c (d_language_data): Delete la_print_type initializer.
2708 (d_language::print_type): New member function.
2709 * f-lang.c (f_language_data): Delete la_print_type initializer.
2710 (f_language::print_type): New member function.
2711 * go-lang.c (go_language_data): Delete la_print_type initializer.
2712 (go_language::print_type): New member function.
2713 * language.c (unk_lang_print_type): Delete.
2714 (unknown_language_data): Delete la_print_type initializer.
2715 (unknown_language::print_type): New member function.
2716 (auto_language_data): Delete la_print_type initializer.
2717 (auto_language::print_type): New member function.
2718 * language.h (language_data): Delete la_print_type field.
2719 (language_defn::print_type): New function.
2720 (LA_PRINT_TYPE): Update.
2721 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
2722 (m2_language::print_type): New member function.
2723 * objc-lang.c (objc_language_data): Delete la_print_type
2724 initializer.
2725 (objc_language::print_type): New member function.
2726 * opencl-lang.c (opencl_print_type): Delete, implementation moved
2727 to opencl_language::print_type.
2728 (opencl_language_data): Delete la_print_type initializer.
2729 (opencl_language::print_type): New member function, implementation
2730 from opencl_print_type.
2731 * p-lang.c (pascal_language_data): Delete la_print_type
2732 initializer.
2733 (pascal_language::print_type): New member function.
2734 * rust-lang.c (rust_print_type): Delete, implementation moved to
2735 rust_language::print_type.
2736 (rust_language_data): Delete la_print_type initializer.
2737 (rust_language::print_type): New member function, implementation
2738 from rust_print_type.
2739
6f827019
AB
27402020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2741
2742 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
2743 implementation moves to...
2744 (ada_language::sniff_from_mangled_name): ...here. Update return
2745 type.
2746 (ada_language_data): Delete la_sniff_from_mangled_name
2747 initializer.
2748 * c-lang.c (c_language_data): Likewise.
2749 (cplus_language_data): Likewise.
2750 (cplus_language::sniff_from_mangled_name): New member function,
2751 implementation taken from gdb_sniff_from_mangled_name.
2752 (asm_language_data): Delete la_sniff_from_mangled_name
2753 initializer.
2754 (minimal_language_data): Likewise.
2755 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
2756 implementation moves to cplus_language::sniff_from_mangled_name.
2757 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
2758 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
2759 moves to...
2760 (d_language::sniff_from_mangled_name): ...here.
2761 (d_language_data): Delete la_sniff_from_mangled_name initializer.
2762 * f-lang.c (f_language_data): Likewise.
2763 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
2764 moves to...
2765 (go_language::sniff_from_mangled_name): ...here.
2766 (go_language_data): Delete la_sniff_from_mangled_name initializer.
2767 * language.c (language_sniff_from_mangled_name): Delete.
2768 (unknown_language_data): Delete la_sniff_from_mangled_name
2769 initializer.
2770 (auto_language_data): Likewise.
2771 * language.h (language_data): Delete la_sniff_from_mangled_name
2772 field.
2773 (language_defn::sniff_from_mangled_name): New function.
2774 (language_sniff_from_mangled_name): Delete declaration.
2775 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
2776 field.
2777 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
2778 implementation moves to...
2779 (objc_language::sniff_from_mangled_name): ...here.
2780 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
2781 * opencl-lang.c (opencl_language_data): Likewise.
2782 * p-lang.c (pascal_language_data): Likewise.
2783 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
2784 implementation moves to...
2785 (rust_language::sniff_from_mangled_name): ...here.
2786 (rust_language_data): Delete la_sniff_from_mangled_name
2787 initializer.
2788 * symtab.c (symbol_find_demangled_name): Call
2789 sniff_from_mangled_name member function.
2790
fb8006fd
AB
27912020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2792
2793 * ada-lang.c (ada_language_data): Delete la_search_name_hash
2794 initializer.
2795 * c-lang.c (c_language_data): Likewise.
2796 (cplus_language_data): Likewise.
2797 (cplus_language::search_name_hash): New member function.
2798 (asm_language_data): Delete la_search_name_hash initializer.
2799 (minimal_language_data): Likewise.
2800 * d-lang.c (d_language_data): Likewise.
2801 * dictionary.c (default_search_name_hash): Rename to...
2802 (language_defn::search_name_hash): ...this.
2803 * f-lang.c (f_language_data): Likewise.
2804 (f_language::search_name_hash): New member function.
2805 * go-lang.c (go_language_data): Delete la_search_name_hash
2806 initializer.
2807 * language.c (unknown_language_data): Likewise.
2808 (auto_language_data): Likewise.
2809 * language.h (struct language_data): Delete la_search_name_hash
2810 field.
2811 (language_defn::search_name_hash): Declare new member function.
2812 (default_search_name_hash): Delete declaration.
2813 * m2-lang.c (m2_language_data): Delete la_search_name_hash
2814 initializer.
2815 * objc-lang.c (objc_language_data): Likewise.
2816 * opencl-lang.c (opencl_language_data): Likewise.
2817 * p-lang.c (pascal_language_data): Likewise.
2818 * rust-lang.c (rust_language_data): Likewise.
2819 * symtab.c (search_name_hash): Update call.
2820
8e25bafe
AB
28212020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2822
2823 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
2824 initializer.
2825 * c-lang.c (class compile_instance): Declare.
2826 (c_language_data): Delete la_get_compile_instance initializer.
2827 (c_language::get_compile_instance): New member function.
2828 (cplus_language_data): Delete la_get_compile_instance initializer.
2829 (cplus_language::get_compile_instance): New member function.
2830 (asm_language_data): Delete la_get_compile_instance initializer.
2831 (minimal_language_data): Likewise.
2832 * c-lang.h (c_get_compile_context): Update comment.
2833 (cplus_get_compile_context): Update comment.
2834 * compile/compile.c (compile_to_object): Update calls, don't rely
2835 on function pointer being NULL.
2836 * d-lang.c (d_language_data): Delete la_get_compile_instance
2837 initializer.
2838 * f-lang.c (f_language_data): Likewise.
2839 * go-lang.c (go_language_data): Likewise.
2840 * language.c (unknown_language_data): Likewise.
2841 (auto_language_data): Likewise.
2842 * language.h (language_data): Delete la_get_compile_instance field.
2843 (language_defn::get_compile_instance): New member function.
2844 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
2845 initializer.
2846 * objc-lang.c (objc_language_data): Likewise.
2847 * opencl-lang.c (opencl_language_data): Likewise.
2848 * p-lang.c (pascal_language_data): Likewise.
2849 * rust-lang.c (rust_language_data): Likewise.
2850
4009ee92
AB
28512020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2852
2853 * ada-lang.c (ada_add_all_symbols): Update comment.
2854 (ada_iterate_over_symbols): Delete, move implementation to...
2855 (ada_language::iterate_over_symbols): ...here, a new member
2856 function, rewrite to use range based for loop.
2857 (ada_language_data): Delete la_iterate_over_symbols initializer.
2858 * c-lang.c (c_language_data): Likewise.
2859 (cplus_language_data): Likewise.
2860 (asm_language_data): Likewise.
2861 (minimal_language_data): Likewise.
2862 * d-lang.c (d_language_data): Likewise.
2863 * f-lang.c (f_language_data): Likewise.
2864 * go-lang.c (go_language_data): Likewise.
2865 * language.c (unknown_language_data): Likewise.
2866 (auto_language_data): Likewise.
2867 * language.h (language_data): Delete la_iterate_over_symbols field.
2868 (language_defn::iterate_over_symbols): New member function.
2869 (LA_ITERATE_OVER_SYMBOLS): Update.
2870 * linespec.c (iterate_over_all_matching_symtabs): Update.
2871 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
2872 initializer.
2873 * objc-lang.c (objc_language_data): Likewise.
2874 * opencl-lang.c (opencl_language_data): Likewise.
2875 * p-lang.c (pascal_language_data): Likewise.
2876 * rust-lang.c (rust_language_data): Likewise.
2877
54f4ca46
AB
28782020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2879
2880 * ada-lang.c (ada_language_data): Delete
2881 la_lookup_transparent_type initializer.
2882 * c-lang.c (c_language_data): Likewise.
2883 (cplus_language_data): Likewise.
2884 (cplus_language::lookup_transparent_type): New member function.
2885 (asm_language_data): Delete la_lookup_transparent_type
2886 initializer.
2887 (minimal_language_data): Likewise.
2888 * d-lang.c (d_language_data): Likewise.
2889 * f-lang.c (f_language_data): Likewise.
2890 * go-lang.c (go_language_data): Likewise.
2891 * language.c (unknown_language_data): Likewise.
2892 (auto_language_data): Likewise.
2893 * language.h (struct language_data): Delete
2894 la_lookup_transparent_type field.
2895 (language_defn::lookup_transparent_type): New member function.
2896 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
2897 initializer.
2898 * objc-lang.c (objc_language_data): Likewise.
2899 * opencl-lang.c (opencl_language_data): Likewise.
2900 * p-lang.c (pascal_language_data): Likewise.
2901 * rust-lang.c (rust_language_data): Likewise.
2902 * symtab.c (symbol_matches_domain): Update call.
2903
1fb314aa
AB
29042020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2905
2906 * ada-lang.c (ada_language_arch_info): Delete function, move
2907 implementation to...
2908 (ada_language::language_arch_info): ...here, a new member
2909 function.
2910 (ada_language_data): Delete la_language_arch_info.
2911 * c-lang.c (c_language_data): Likewise.
2912 (c_language::language_arch_info): New member function.
2913 (cplus_language_arch_info): Delete function, move
2914 implementation to...
2915 (cplus_language::language_arch_info): ...here, a new member
2916 function.
2917 (cplus_language_data): Delete la_language_arch_info.
2918 (asm_language_data): Likewise.
2919 (asm_language::language_arch_info): New member function.
2920 (minimal_language_data): Delete la_language_arch_info.
2921 (minimal_language::language_arch_info): New member function.
2922 * d-lang.c (d_language_arch_info): Delete function, move
2923 implementation to...
2924 (d_language::language_arch_info): ...here, a new member
2925 function.
2926 (d_language_data): Delete la_language_arch_info.
2927 * f-lang.c (f_language_arch_info): Delete function, move
2928 implementation to...
2929 (f_language::language_arch_info): ...here, a new member
2930 function.
2931 (f_language_data): Delete la_language_arch_info.
2932 * go-lang.c (go_language_arch_info): Delete function, move
2933 implementation to...
2934 (go_language::language_arch_info): ...here, a new member
2935 function.
2936 (go_language_data): Delete la_language_arch_info.
2937 * language.c (unknown_language_data): Likewise.
2938 (unknown_language::language_arch_info): New member function.
2939 (auto_language_data): Delete la_language_arch_info.
2940 (auto_language::language_arch_info): New member function.
2941 (language_gdbarch_post_init): Update call to
2942 la_language_arch_info.
2943 * language.h (language_data): Delete la_language_arch_info
2944 function pointer.
2945 (language_defn::language_arch_info): New function.
2946 * m2-lang.c (m2_language_arch_info): Delete function, move
2947 implementation to...
2948 (m2_language::language_arch_info): ...here, a new member
2949 function.
2950 (m2_language_data): Delete la_language_arch_info.
2951 * objc-lang.c (objc_language_arch_info): Delete function, move
2952 implementation to...
2953 (objc_language::language_arch_info): ...here, a new member
2954 function.
2955 (objc_language_data): Delete la_language_arch_info.
2956 * opencl-lang.c (opencl_language_arch_info): Delete function, move
2957 implementation to...
2958 (opencl_language::language_arch_info): ...here, a new member
2959 function.
2960 (opencl_language_data): Delete la_language_arch_info.
2961 * p-lang.c (pascal_language_arch_info): Delete function, move
2962 implementation to...
2963 (pascal_language::language_arch_info): ...here, a new member
2964 function.
2965 (pascal_language_data): Delete la_language_arch_info.
2966 * rust-lang.c (rust_language_arch_info): Delete function, move
2967 implementation to...
2968 (rust_language::language_arch_info): ...here, a new member
2969 function.
2970 (rust_language_data): Delete la_language_arch_info.
2971
48448202
AB
29722020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2973
2974 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
2975 initializer.
2976 * c-lang.c (c_language_data): Likewise.
2977 (cplus_language_data): Likewise.
2978 (cplus_language::pass_by_reference_info): New method.
2979 (asm_language_data): Delete la_pass_by_reference initializer.
2980 (minimal_language_data): Likewise.
2981 * cp-abi.c (cp_pass_by_reference): Remove use of
2982 default_pass_by_reference.
2983 * d-lang.c (d_language_data): Likewise.
2984 * f-lang.c (f_language_data): Likewise.
2985 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
2986 default_pass_by_reference.
2987 * go-lang.c (go_language_data): Likewise.
2988 * language.c (language_pass_by_reference): Update.
2989 (default_pass_by_reference): Delete.
2990 (unknown_language_data): Delete la_pass_by_reference
2991 initializer.
2992 (auto_language_data): Likewise.
2993 * language.h (struct language_data): Delete la_pass_by_reference
2994 field.
2995 (language_defn::pass_by_reference_info): New member function.
2996 (default_pass_by_reference): Delete declaration.
2997 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
2998 initializer.
2999 * objc-lang.c (objc_language_data): Likewise.
3000 * opencl-lang.c (opencl_language_data): Likewise.
3001 * p-lang.c (pascal_language_data): Likewise.
3002 * rust-lang.c (rust_language_data): Likewise.
3003
15e5fd35
AB
30042020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3005
3006 * ada-lang.c (ada_read_var_value): Delete function, move
3007 implementation to...
3008 (ada_language::read_var_value): ...here.
3009 (ada_language_data): Delete la_read_var_value initializer.
3010 * c-lang.c (c_language_data): Likewise.
3011 (cplus_language_data): Likewise.
3012 (minimal_language_data): Likewise.
3013 * d-lang.c (d_language_data): Likewise.
3014 * f-lang.c (f_language_data): Likewise.
3015 * findvar.c (default_read_var_value): Rename to...
3016 (language_defn::read_var_value): ...this.
3017 * findvar.c (read_var_value): Update header comment, and change to
3018 call member function instead of function pointer.
3019 * go-lang.c (go_language_data): Likewise.
3020 * language.c (unknown_language_data): Delete la_read_var_value
3021 initializer.
3022 (auto_language_data): Likewise.
3023 * language.h (struct language_data): Delete la_read_var_value
3024 field.
3025 (language_defn::read_var_value): New member function.
3026 (default_read_var_value): Delete declaration.
3027 * m2-lang.c (m2_language_data): Delete la_read_var_value
3028 initializer.
3029 * objc-lang.c (objc_language_data): Likewise.
3030 * opencl-lang.c (opencl_language_data): Likewise.
3031 * p-lang.c (pascal_language_data): Likewise.
3032 * rust-lang.c (rust_language_data): Likewise.
3033 * value.h (default_read_var_value): Delete declaration.
3034
5bd40f2a
AB
30352020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3036
3037 * ada-lang.c (ada_print_array_index): Delete function, move
3038 implementation to...
3039 (ada_language::print_array_index): ...here.
3040 (ada_language_data): Delete la_print_array_index initializer.
3041 * c-lang.c (c_language_data): Likewise.
3042 (cplus_language_data): Likewise.
3043 (minimal_language_data): Likewise.
3044 * d-lang.c (d_language_data): Likewise.
3045 * f-lang.c (f_language_data): Likewise.
3046 * go-lang.c (go_language_data): Likewise.
3047 * language.c (default_print_array_index): Delete function, move
3048 implementation to...
3049 (language_defn::print_array_index): ...here.
3050 (unknown_language_data): Delete la_print_array_index initializer.
3051 (auto_language_data): Likewise.
3052 * language.h (struct language_data): Delete la_print_array_index
3053 field.
3054 (language_defn::print_array_index): New member function.
3055 (LA_PRINT_ARRAY_INDEX): Update.
3056 (default_print_array_index): Delete declaration.
3057 * m2-lang.c (m2_language_data): Delete la_print_array_index
3058 initializer.
3059 * objc-lang.c (objc_language_data): Likewise.
3060 * opencl-lang.c (opencl_language_data): Likewise.
3061 * p-lang.c (pascal_language_data): Likewise.
3062 * rust-lang.c (rust_language_data): Likewise.
3063
0874fd07
AB
30642020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3065
3066 * gdb/ada-lang.c (ada_language_defn): Convert to...
3067 (ada_language_data): ...this.
3068 (class ada_language): New class.
3069 (ada_language_defn): New static global.
3070 * gdb/c-lang.c (c_language_defn): Convert to...
3071 (c_language_data): ...this.
3072 (class c_language): New class.
3073 (c_language_defn): New static global.
3074 (cplus_language_defn): Convert to...
3075 (cplus_language_data): ...this.
3076 (class cplus_language): New class.
3077 (cplus_language_defn): New static global.
3078 (asm_language_defn): Convert to...
3079 (asm_language_data): ...this.
3080 (class asm_language): New class.
3081 (asm_language_defn): New static global.
3082 (minimal_language_defn): Convert to...
3083 (minimal_language_data): ...this.
3084 (class minimal_language): New class.
3085 (minimal_language_defn): New static global.
3086 * gdb/d-lang.c (d_language_defn): Convert to...
3087 (d_language_data): ...this.
3088 (class d_language): New class.
3089 (d_language_defn): New static global.
3090 * gdb/f-lang.c (f_language_defn): Convert to...
3091 (f_language_data): ...this.
3092 (class f_language): New class.
3093 (f_language_defn): New static global.
3094 * gdb/go-lang.c (go_language_defn): Convert to...
3095 (go_language_data): ...this.
3096 (class go_language): New class.
3097 (go_language_defn): New static global.
3098 * gdb/language.c (unknown_language_defn): Remove declaration.
3099 (current_language): Initialize to nullptr, real initialization is
3100 moved to _initialize_language.
3101 (languages): Delete global.
3102 (language_defn::languages): Define.
3103 (set_language_command): Use language_defn::languages.
3104 (set_language): Likewise.
3105 (range_error): Likewise.
3106 (language_enum): Likewise.
3107 (language_def): Likewise.
3108 (add_set_language_command): Use language_def::languages for the
3109 language list, and language_def to lookup language pointers.
3110 (skip_language_trampoline): Use language_defn::languages.
3111 (unknown_language_defn): Convert to...
3112 (unknown_language_data): ...this.
3113 (class unknown_language): New class.
3114 (unknown_language_defn): New static global.
3115 (auto_language_defn): Convert to...
3116 (auto_language_data): ...this.
3117 (class auto_language): New class.
3118 (auto_language_defn): New static global.
3119 (language_gdbarch_post_init): Use language_defn::languages.
3120 (_initialize_language): Initialize current_language.
3121 * gdb/language.h (struct language_defn): Rename to...
3122 (struct language_data): ...this.
3123 (struct language_defn): New.
3124 (auto_language_defn): Delete.
3125 (unknown_language_defn): Delete.
3126 (minimal_language_defn): Delete.
3127 (ada_language_defn): Delete.
3128 (asm_language_defn): Delete.
3129 (c_language_defn): Delete.
3130 (cplus_language_defn): Delete.
3131 (d_language_defn): Delete.
3132 (f_language_defn): Delete.
3133 (go_language_defn): Delete.
3134 (m2_language_defn): Delete.
3135 (objc_language_defn): Delete.
3136 (opencl_language_defn): Delete.
3137 (pascal_language_defn): Delete.
3138 (rust_language_defn): Delete.
3139 * gdb/m2-lang.c (m2_language_defn): Convert to...
3140 (m2_language_data): ...this.
3141 (class m2_language): New class.
3142 (m2_language_defn): New static global.
3143 * gdb/objc-lang.c (objc_language_defn): Convert to...
3144 (objc_language_data): ...this.
3145 (class objc_language): New class.
3146 (objc_language_defn): New static global.
3147 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
3148 (opencl_language_data): ...this.
3149 (class opencl_language): New class.
3150 (opencl_language_defn): New static global.
3151 * gdb/p-lang.c (pascal_language_defn): Convert to...
3152 (pascal_language_data): ...this.
3153 (class pascal_language): New class.
3154 (pascal_language_defn): New static global.
3155 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
3156 language pointer, update comment format.
3157 * gdb/rust-lang.c (rust_language_defn): Convert to...
3158 (rust_language_data): ...this.
3159 (class rust_language): New class.
3160 (rust_language_defn): New static global.
3161
1313c56e
AB
31622020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
3163
3164 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
3165 member variable.
3166 <m_stmt_at_address>: New member variable.
3167 (lnp_state_machine::record_line): Don't record some lines, update
3168 tracking of is_stmt at the same address.
3169 (lnp_state_machine::lnp_state_machine): Initialise new member
3170 variables.
3171
b7ed9f3d
ST
31722020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
3173
3174 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
3175 "-include gnu-nat-mig.h".
3176 * gnu-nat-mig.h: New file.
3177 * gnu-nat.c: Include "gnu-nat-mig.h".
3178 (exc_server, msg_reply_server, notify_server,
3179 process_reply_server): Remove declarations.
3180
14a8ad62
ST
31812020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3182
3183 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
3184 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
3185 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
3186 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
3187 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
3188 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
3189 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
3190 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
3191 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
3192 to gnu_nat_target class.
3193 * gnu-nat.c: Likewise.
3194 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
3195 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
3196 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
3197 object.
3198 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
3199 instead of `gnu_target'.
3200
0af5e106
ST
32012020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3202
3203 * i386-gnu-tdep.c: Include "gdbcore.h"
3204 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
3205 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
3206 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
3207 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
3208 i386_gnu_sigcontext_addr): New functions
3209 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
3210 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
3211 tdep.
3212
078f2fc9
ST
32132020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3214
3215 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
3216 before fork_inferior call. Avoid calling it if target_is_pushed returns
3217 true.
3218
53dff92c
ST
32192020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3220
3221 * gnu-nat.h (gnu_target): New variable declaration.
3222 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
3223 gnu_target.
3224 * gnu-nat.c (gnu_target): New variable.
3225 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
3226 add_thread_silent, and add_thread calls.
3227 (gnu_nat_target::create_inferior): Pass gnu_target to
3228 add_thread_silent, thread_change_ptid call.
3229 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
3230 call.
3231
5a8b8627
ST
32322020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3233
3234 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
3235 (gnu_nat_target::find_memory_regions): Remove unused
3236 `old_address' variable.
3237
366f550a
ST
32382020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3239
3240 * gnu-nat.c: Include "gdbarch.h".
3241
f14871bf
ST
32422020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3243
3244 * reply_mig_hack.awk (Error return): Cast function through
3245 void *, to bypass compiler function call check.
3246
c6887cfb
ST
32472020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3248
3249 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
3250 $(srcdir)/reply_mig_hack.awk.
3251
6930bffe
ST
32522020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3253
3254 * gnu-nat.h (gnu_debug_flag): Set type to bool.
3255
112c22ed
JG
32562020-05-30 Jonny Grant <jg@jguk.org>
3257
3258 * configure.ac (ACX_BUGURL): change bug URL to https.
3259
f68f85b5
PA
32602020-05-30 Pedro Alves <palves@redhat.com>
3261
3262 * cp-support.c (replace_typedefs_template): New.
3263 (replace_typedefs_qualified_name): Handle
3264 DEMANGLE_COMPONENT_TEMPLATE.
3265
976ca316
SM
32662020-05-29 Simon Marchi <simon.marchi@efficios.com>
3267
3268 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
3269 dwarf2/index-cache.h, dwarf2/index-write.c,
3270 dwarf2/index-write.h, dwarf2/line-header.c,
3271 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
3272 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
3273 variables and fields from `dwarf2_per_objfile` to just
3274 `per_objfile` throughout.
3275
989ade05
SM
32762020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
3277
3278 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3279 <push_dwarf_reg_entry_value>: Add comment.
3280
c47bae85
KB
32812020-05-28 Kevin Buettner <kevinb@redhat.com>
3282 Keith Seitz <keiths@redhat.com>
3283
3284 * python/python.c (do_start_initialization): Call PyEval_SaveThread
3285 instead of PyEval_ReleaseLock.
3286 (class gdbpy_gil): Move to earlier in file.
3287 (finalize_python): Set gdb_python_initialized.
3288 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
3289 when not initialized.
3290
44486dcf
SM
32912020-05-28 Simon Marchi <simon.marchi@efficios.com>
3292
3293 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3294 <push_dwarf_reg_entry_value>: Remove assert. Override
3295 per_objfile with caller_per_objfile.
3296
f030440d
TV
32972020-05-28 Tom de Vries <tdevries@suse.de>
3298
3299 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
3300 PR gold/15646 workaround to symbol kind "type".
3301
f0fbb768
TT
33022020-05-27 Tom Tromey <tromey@adacore.com>
3303
3304 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
3305
af0b2a3e
TT
33062020-05-27 Tom Tromey <tromey@adacore.com>
3307
3308 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
3309 Use htab_find_with_hash.
3310 <add_abbrev>: Remove "abbrev_number" parameter.
3311 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
3312 "abbrev_number" parameter. Use htab_find_slot_with_hash.
3313 (hash_abbrev): Add comment.
3314 (abbrev_table::lookup_abbrev): Move to header file.
3315 (abbrev_table::read): Update.
3316
7d00ffec
TT
33172020-05-27 Tom Tromey <tromey@adacore.com>
3318
3319 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
3320 method.
3321 <canonical_name>: New member.
3322 <raw_name>: Rename from "name".
3323 (partial_die_info): Initialize canonical_name.
3324 (scan_partial_symbols): Check raw_name.
3325 (partial_die_parent_scope, partial_die_full_name)
3326 (add_partial_symbol, add_partial_subprogram)
3327 (add_partial_enumeration, load_partial_dies): Use "name" method.
3328 (partial_die_info::name): New method.
3329 (partial_die_info::read, guess_partial_die_structure_name)
3330 (partial_die_info::fixup): Update.
3331
697bba18
TT
33322020-05-27 Tom Tromey <tromey@adacore.com>
3333
3334 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
3335 <get_ref_die_offset>: Inline.
3336 <get_ref_die_offset_complaint>: New method.
3337 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
3338 (attribute::get_ref_die_offset_complaint): Rename from
3339 get_ref_die_offset. Just issue complaint.
3340
c17ace43
HD
33412020-05-27 Hannes Domani <ssbssa@yahoo.de>
3342
3343 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
3344
96445f0b
HD
33452020-05-27 Hannes Domani <ssbssa@yahoo.de>
3346
3347 * exec.c (exec_file_attach): Use errno value of first openp failure.
3348
ac637ec3
HD
33492020-05-27 Hannes Domani <ssbssa@yahoo.de>
3350
3351 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
3352 Don't close thread handle.
3353
17ee85fc
TT
33542020-05-27 Tom Tromey <tom@tromey.com>
3355 Simon Marchi <simon.marchi@efficios.com>
3356
3357 * objfiles.h (struct objfile) <partial_symtabs>: Now a
3358 shared_ptr.
3359 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
3360 member.
3361 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
3362 dwarf2_per_bfd_objfile_data_key>: New globals.
3363 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
3364 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
3365 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
3366 shared.
3367 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
3368 short-circuit when sharing.
3369 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
3370 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
3371
39b16f87
SM
33722020-05-27 Simon Marchi <simon.marchi@efficios.com>
3373
3374 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
3375 to...
3376 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
3377 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
3378
fcf23d5b
SM
33792020-05-27 Simon Marchi <simon.marchi@efficios.com>
3380
3381 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
3382 build_name_components, find_name_components_bounds>:
3383 Add per_objfile parameter.
3384 (struct mapped_index) <symbol_name_at>: Likewise.
3385 (struct mapped_debug_names): Remove constructor.
3386 <dwarf2_per_objfile>: Remove field.
3387 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
3388 (mapped_index_base::find_name_components_bounds,
3389 mapped_index_base::build_name_components,
3390 dw2_expand_symtabs_matching_symbol): Likewise.
3391 (class mock_mapped_index) <symbol_name_at>: Likewise.
3392 (check_match): Likewise.
3393 (check_find_bounds_finds): Likewise.
3394 (test_mapped_index_find_name_component_bounds): Update.
3395 (CHECK_MATCH): Update.
3396 (dw2_expand_symtabs_matching): Update.
3397 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
3398 per_objfile parameter.
3399 <find_vec_in_debug_names>: Likewise.
3400 <m_per_objfile>: New field.
3401 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
3402 parameter.
3403 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
3404 (dw2_debug_names_iterator::next): Update.
3405 (dw2_debug_names_lookup_symbol): Update.
3406 (dw2_debug_names_expand_symtabs_for_function): Update.
3407 (dw2_debug_names_map_matching_symbols): Update.
3408 (dw2_debug_names_expand_symtabs_matching): Update.
3409 (dwarf2_read_debug_names): Update.
3410
7188ed02
SM
34112020-05-27 Simon Marchi <simon.marchi@efficios.com>
3412
3413 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
3414 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
3415 move to dwarf2_per_objfile.
3416 <read_in_chain>: Remove.
3417 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
3418 remove_all_cus, age_comp_units>: New methods.
3419 <m_dwarf2_cus>: New member.
3420 (struct dwarf2_per_cu_data) <cu>: Remove.
3421 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
3422 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
3423 moved to methods of dwarf2_per_objfile.
3424 (dwarf2_clear_marks): Remove.
3425 (dwarf2_queue_item::~dwarf2_queue_item): Update.
3426 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
3427 (dwarf2_per_bfd::free_cached_comp_units): Remove.
3428 (dwarf2_per_objfile::remove_all_cus): New.
3429 (class free_cached_comp_units) <~free_cached_comp_units>:
3430 Update.
3431 (load_cu): Update.
3432 (dw2_do_instantiate_symtab): Adjust.
3433 (fill_in_sig_entry_from_dwo_entry): Adjust.
3434 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3435 (cutu_reader::cutu_reader): Likewise.
3436 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
3437 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
3438 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
3439 and dwarf2_per_objfile::age_comp_units.
3440 (load_partial_comp_unit): Update.
3441 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
3442 (process_queue): Likewise.
3443 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
3444 backlink.
3445 (dwarf2_read_addr_index): Likewise.
3446 (follow_die_offset): Likewise.
3447 (dwarf2_fetch_die_loc_sect_off): Likewise.
3448 (dwarf2_fetch_constant_bytes): Likewise.
3449 (dwarf2_fetch_die_type_sect_off): Likewise.
3450 (follow_die_sig_1): Likewise.
3451 (load_full_type_unit): Likewise.
3452 (read_signatured_type): Likewise.
3453 (dwarf2_cu::dwarf2_cu): Don't set cu field.
3454 (dwarf2_cu::~dwarf2_cu): Remove.
3455 (dwarf2_per_objfile::get_cu): New.
3456 (dwarf2_per_objfile::set_cu): New.
3457 (age_cached_comp_units): Rename to...
3458 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
3459 to std::unordered_map.
3460 (free_one_cached_comp_unit): Rename to...
3461 (dwarf2_per_objfile::remove_cu): ... this. Adjust
3462 to std::unordered_map.
3463 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
3464 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
3465 a dwarf2_per_objfile in data.
3466 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
3467 (dwarf2_clear_marks): Remove.
3468
2e671100
SM
34692020-05-27 Simon Marchi <simon.marchi@efficios.com>
3470
3471 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
3472 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
3473 (init_tu_and_read_dwo_dies): Likewise.
3474 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
3475 (cutu_reader::cutu_reader): Likewise.
3476 (load_partial_comp_unit): Likewise.
3477 (process_psymtab_comp_unit): Update.
3478 (build_type_psymtabs_1): Update.
3479 (process_skeletonless_type_unit): Update.
3480 (load_full_comp_unit): Update.
3481 (find_partial_die): Update.
3482 (dwarf2_read_addr_index): Update.
3483 (read_signatured_type): Update.
3484
2e6a9f79
SM
34852020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3486
3487 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
3488 m_header_read_in>: New fields.
3489 <get_header>: New method.
3490 * dwarf2/read.c (per_cu_header_read_in): Remove.
3491 (dwarf2_per_cu_data::get_header): New.
3492 (dwarf2_per_cu_data::addr_size): Update.
3493 (dwarf2_per_cu_data::offset_size): Update.
3494 (dwarf2_per_cu_data::ref_addr_size): Update.
3495
1b555f17
SM
34962020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3497
3498 * dwarf2/read.c (load_cu): Return dwarf2_cu.
3499 (dw2_do_instantiate_symtab): Update.
3500 (queue_and_load_all_dwo_tus): Change parameter from
3501 dwarf2_per_cu_data to dwarf2_cu.
3502 (dwarf2_fetch_die_loc_sect_off): Update.
3503 (dwarf2_fetch_constant_bytes): Update.
3504 (dwarf2_fetch_die_type_sect_off): Update.
3505
8fc0b21d
SM
35062020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3507
3508 * dwarf2/read.c (process_full_comp_unit,
3509 process_full_type_unit): Remove per_cu, per_objfile paramters.
3510 Add dwarf2_cu parameter.
3511 (process_queue): Update.
3512
168c9250
SM
35132020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3514
3515 * dwarf2/read.c (create_cu_from_index_list): Replace
3516 dwarf2_per_objfile parameter with dwarf2_per_bfd.
3517 (create_cus_from_index_list): Likewise.
3518 (create_cus_from_index): Likewise.
3519 (create_signatured_type_table_from_index): Likewise.
3520 (create_cus_from_debug_names_list): Likewise.
3521 (create_cus_from_debug_names): Likewise.
3522 (dwarf2_read_gdb_index): Update.
3523 (dwarf2_read_debug_names): Update.
3524
e286671b
TT
35252020-05-27 Tom Tromey <tom@tromey.com>
3526 Simon Marchi <simon.marchi@efficios.com>
3527
3528 * dwarf2/read.h (struct dwarf2_per_objfile)
3529 <get_type_for_signatured_type, set_type_for_signatured_type>:
3530 New methods.
3531 <m_type_map>: New member.
3532 (struct signatured_type) <type>: Remove.
3533 * dwarf2/read.c
3534 (dwarf2_per_objfile::get_type_for_signatured_type,
3535 dwarf2_per_objfile::set_type_for_signatured_type): New.
3536 (get_signatured_type): Use new methods.
3537
8adb8487
TT
35382020-05-27 Tom Tromey <tom@tromey.com>
3539 Simon Marchi <simon.marchi@efficios.com>
3540
3541 * dwarf2/read.h (struct type_unit_group_unshareable): New.
3542 (struct dwarf2_per_objfile) <type_units>: New member.
3543 <get_type_unit_group_unshareable>: New method.
3544 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
3545 num_symtabs, symtabs>: Remove; move to
3546 type_unit_group_unshareable.
3547 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
3548 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
3549 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
3550
127bbf4b
SM
35512020-05-27 Simon Marchi <simon.marchi@efficios.com>
3552
3553 * dwarf2/read.h (struct dwarf2_per_cu_data):
3554 <dwarf2_per_objfile>: Remove.
3555 * dwarf2/read.c (create_cu_from_index_list): Don't assign
3556 dwarf2_per_objfile.
3557 (create_signatured_type_table_from_index): Likewise.
3558 (create_signatured_type_table_from_debug_names): Likewise.
3559 (create_debug_type_hash_table): Likewise.
3560 (fill_in_sig_entry_from_dwo_entry): Likewise.
3561 (create_type_unit_group): Likewise.
3562 (read_comp_units_from_section): Likewise.
3563 (create_cus_hash_table): Likewise.
3564
f6e649dd
SM
35652020-05-27 Simon Marchi <simon.marchi@efficios.com>
3566
3567 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
3568 dwarf2_per_cu_data::dwarf2_per_objfile.
3569 (compute_compunit_symtab_includes): Likewise.
3570 (dwarf2_cu::start_symtab): Likewise.
3571
aa66c379
SM
35722020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3573
3574 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
3575 parameter.
3576 * dwarf2/read.c (get_die_type_at_offset): Likewise.
3577 (read_namespace_alias): Update.
3578 (lookup_die_type): Update.
3579 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
3580 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
3581 Update.
3582 (disassemble_dwarf_expression): Update.
3583
120ce1b5
SM
35842020-05-27 Simon Marchi <simon.marchi@efficios.com>
3585
3586 * dwarf2/read.h (struct dwarf2_queue_item): Add
3587 dwarf2_per_objfile parameter, assign new parameter.
3588 <per_objfile>: New field.
3589 * dwarf2/read.c (free_one_cached_comp_unit): Add
3590 dwarf2_per_objfile parameter.
3591 (queue_comp_unit): Likewise.
3592 (dw2_do_instantiate_symtab): Update.
3593 (process_psymtab_comp_unit): Update.
3594 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
3595 (process_imported_unit_die): Update.
3596 (queue_and_load_dwo_tu): Update.
3597 (follow_die_offset): Update.
3598 (follow_die_sig_1): Update.
3599
9f47c707
SM
36002020-05-27 Simon Marchi <simon.marchi@efficios.com>
3601
3602 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
3603 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
3604 (read_call_site_scope): Assign per_objfile.
3605 (dwarf2_per_cu_data::objfile): Remove.
3606 * gdbtypes.h (struct call_site) <per_objfile>: New member.
3607 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
3608 dwarf2_per_objfile parameter.
3609 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
3610 dwarf2_per_objfile parameter.
3611 (dwarf_expr_reg_to_entry_parameter): Add output
3612 dwarf2_per_objfile parameter.
3613 (locexpr_get_frame_base): Update.
3614 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
3615 <push_dwarf_reg_entry_value>: Update.
3616 <call_site_to_target_addr>: Update.
3617 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
3618 parameter.
3619 (value_of_dwarf_reg_entry): Update.
3620 (rw_pieced_value): Update.
3621 (indirect_synthetic_pointer): Update.
3622 (dwarf2_evaluate_property): Update.
3623 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
3624 parameter.
3625 (locexpr_read_variable): Update.
3626 (locexpr_get_symbol_read_needs): Update.
3627 (loclist_read_variable): Update.
3628
14095eb3
SM
36292020-05-27 Simon Marchi <simon.marchi@efficios.com>
3630
3631 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
3632 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3633 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
3634 parameter.
3635 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
3636 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3637 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
3638 parameter.
3639 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
3640 sect_variable_value): Add dwarf2_per_objfile parameter.
3641 (class dwarf_evaluate_loc_desc) <dwarf_call,
3642 dwarf_variable_value>: Update.
3643 (fetch_const_value_from_synthetic_pointer): Add
3644 dwarf2_per_objfile parameter.
3645 (fetch_const_value_from_synthetic_pointer): Update.
3646 (coerced_pieced_ref): Update.
3647 (class symbol_needs_eval_context) <dwarf_call,
3648 dwarf_variable_value>: Update.
3649 (dwarf2_compile_expr_to_ax): Update.
3650
3c3cd3d4
SM
36512020-05-27 Simon Marchi <simon.marchi@efficios.com>
3652
3653 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
3654 parameter.
3655 (dwarf2_evaluate_loc_desc_full): Update.
3656
82ca3f51
SM
36572020-05-27 Simon Marchi <simon.marchi@efficios.com>
3658
3659 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
3660 parameter.
3661 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
3662 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
3663 dwarf2_per_objfile parameter.
3664 (decode_debug_loc_dwo_addresses): Likewise.
3665 (dwarf2_find_location_expression): Update.
3666 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
3667 (locexpr_describe_location_piece): Add dwarf2_per_objfile
3668 parameter.
3669 (disassemble_dwarf_expression): Add dwarf2_per_objfile
3670 parameter.
3671 (locexpr_describe_location_1): Likewise.
3672 (locexpr_describe_location): Update.
3673
4b167ea1
SM
36742020-05-27 Simon Marchi <simon.marchi@efficios.com>
3675
3676 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
3677 Remove.
3678 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
3679 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
3680 (dwarf2_compile_property_to_c): Update.
3681 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
3682 use text offset from objfile.
3683 (locexpr_tracepoint_var_ref): Update.
3684 (locexpr_generate_c_location): Update.
3685 (loclist_describe_location): Update.
3686 (loclist_tracepoint_var_ref): Update.
3687 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
3688 dwarf2_per_objfile parameter.
3689 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
3690 use text offset from objfile.
3691 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
3692
89b07335
SM
36932020-05-27 Simon Marchi <simon.marchi@efficios.com>
3694
3695 * dwarf2/expr.h (struct dwarf_expr_context)
3696 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
3697 <offset>: Remove.
3698 <per_objfile>: New member.
3699 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
3700 dwarf2_per_objfile parameter. Don't set offset, set
3701 per_objfile.
3702 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
3703 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
3704 a dwarf2_per_objfile object instead of an offset.
3705 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
3706 constructor.
3707 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
3708 to dwarf2_expr_executor constructor. Don't set offset.
3709 (dwarf2_fetch_cfa_info): Update.
3710 (struct dwarf2_frame_cache) <text_offset>: Remove.
3711 <per_objfile>: New field.
3712 (dwarf2_frame_cache): Update.
3713 (dwarf2_frame_prev_register): Update.
3714 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3715 <dwarf_evaluate_loc_desc>: Add constructor.
3716 (dwarf2_evaluate_loc_desc_full): Update.
3717 (dwarf2_locexpr_baton_eval): Update.
3718 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
3719 Add constructor.
3720 (dwarf2_loc_desc_get_symbol_read_needs): Update.
3721
293e7e51
SM
37222020-05-27 Simon Marchi <simon.marchi@efficios.com>
3723
3724 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
3725 addr_sized_int_type>: Move to dwarf2_cu.
3726 <int_type>: Move to dwarf2_per_objfile.
3727 (struct dwarf2_per_objfile) <int_type>: Move here.
3728 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
3729 addr_sized_int_type>: Move here.
3730 (read_func_scope): Update.
3731 (read_array_type): Update.
3732 (read_tag_string_type): Update.
3733 (attr_to_dynamic_prop): Update.
3734 (dwarf2_per_cu_data::int_type): Rename to...
3735 (dwarf2_per_objfile::int_type): ... this.
3736 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
3737 (dwarf2_cu::addr_sized_int_type): ... this.
3738 (read_subrange_type): Update.
3739 (dwarf2_per_cu_data::addr_type): Rename to...
3740 (dwarf2_cu::addr_type): ... this.
3741 (set_die_type): Update.
3742
64874a40
SM
37432020-05-27 Simon Marchi <simon.marchi@efficios.com>
3744
3745 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
3746 data through per_cu->cu.
3747
4ab09049
SM
37482020-05-27 Simon Marchi <simon.marchi@efficios.com>
3749
3750 * dwarf2/read.c (lookup_dwo_comp_unit): Change
3751 dwarf2_per_cu_data parameter fo dwarf2_cu.
3752 (lookup_dwo_type_unit): Likewise.
3753 (read_cutu_die_from_dwo): Likewise.
3754 (lookup_dwo_unit): Likewise.
3755 (open_and_init_dwo_file): Likewise.
3756 (lookup_dwo_cutu): Likewise.
3757 (lookup_dwo_comp_unit): Likewise.
3758 (lookup_dwo_type_unit): Likewise.
3759 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3760 (cutu_reader::cutu_reader): Update.
3761
47b14e86
SM
37622020-05-27 Simon Marchi <simon.marchi@efficios.com>
3763
3764 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
3765 parameter.
3766 (process_full_type_unit): Likewise.
3767 (process_queue): Update.
3768
43182c09
SM
37692020-05-27 Simon Marchi <simon.marchi@efficios.com>
3770
3771 * dwarf2/read.c (recursively_compute_inclusions): Add
3772 dwarf2_per_objfile parameter.
3773 (compute_compunit_symtab_includes): Likewise.
3774 (process_cu_includes): Update.
3775
7aa104c4
SM
37762020-05-27 Simon Marchi <simon.marchi@efficios.com>
3777
3778 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
3779 parameter.
3780 (create_type_unit_group): Update.
3781 (process_psymtab_comp_unit_reader): Update.
3782 (build_type_psymtabs_reader): Update.
3783
e3beb21d
SM
37842020-05-27 Simon Marchi <simon.marchi@efficios.com>
3785
3786 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
3787 object through m_this_cu->cu.
3788
d460f660
SM
37892020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3790
3791 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
3792 the info parameter.
3793 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
3794
ab432490
SM
37952020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3796
3797 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
3798 per_objfile parameter.
3799 (load_full_type_unit): Add per_objfile parameter.
3800 (read_signatured_type): Likewise.
3801 (load_full_comp_unit): Likewise.
3802 (load_cu): Likewise.
3803 (dw2_do_instantiate_symtab): Likewise.
3804 (dw2_get_file_names): Likewise.
3805 (dw2_map_symtabs_matching_filename): Update.
3806 (dw_expand_symtabs_matching_file_matcher): Update.
3807 (dw2_map_symbol_filenames): Update.
3808 (process_psymtab_comp_unit): Add per_objfile parameter.
3809 (build_type_psymtabs_1): Update.
3810 (process_skeletonless_type_unit): Update.
3811 (dwarf2_build_psymtabs_hard): Update.
3812 (load_partial_comp_unit): Add per_objfile parameter.
3813 (scan_partial_symbols): Update.
3814 (load_full_comp_unit): Add per_objfile parameter.
3815 (process_imported_unit_die): Update.
3816 (create_cus_hash_table): Update.
3817 (find_partial_die): Update.
3818 (dwarf2_read_addr_index): Update.
3819 (follow_die_offset): Update.
3820 (dwarf2_fetch_die_loc_sect_off): Update.
3821 (dwarf2_fetch_constant_bytes): Update.
3822 (dwarf2_fetch_die_type_sect_off): Update.
3823 (follow_die_sig_1): Update.
3824 (load_full_type_unit): Add per_objfile parameter.
3825 (read_signatured_type): Likewise.
3826
313bad1b
SM
38272020-05-27 Simon Marchi <simon.marchi@efficios.com>
3828
3829 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
3830 of objfile_name.
3831
c3699833
SM
38322020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3833
3834 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
3835 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
3836 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
3837 field.
3838 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
3839 (create_cus_from_index): Update.
3840 (dwarf2_read_gdb_index): Update.
3841 (create_cus_from_debug_names): Update.
3842 (dwarf2_read_debug_names): Update.
3843 (get_abbrev_section_for_cu): Update.
3844 (create_all_comp_units): Update.
3845 (read_attribute_value): Update.
3846 (get_debug_line_section): Update.
3847 * dwarf2/index-cache.c (index_cache::store): Update.
3848 * dwarf2/index-write.c (save_gdb_index_command): Update.
3849 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
3850
1859c670
SM
38512020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3852
3853 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
3854 member.
3855 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
3856 dwarf2_per_cu_data::per_bfd.
3857 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
3858 (create_type_unit_group): Likewise.
3859 (queue_comp_unit): Remove reference to
3860 per_cu->dwarf2_per_objfile.
3861 (maybe_queue_comp_unit): Likewise.
3862 (fill_in_sig_entry_from_dwo_entry): Assign new field.
3863 (create_cus_hash_table): Assign new field.
3864
5e22e966
SM
38652020-05-27 Simon Marchi <simon.marchi@efficios.com>
3866
3867 * dwarf2/read.c: Replace
3868 dwarf2_cu->per_cu->dwarf2_per_objfile references with
3869 dwarf2_cu->per_objfile throughout.
3870
97a1449a
SM
38712020-05-27 Simon Marchi <simon.marchi@efficios.com>
3872
3873 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
3874 parameter, don't use per_cu->dwarf2_per_objfile.
3875 (dw2_instantiate_symtab): Likewise.
3876 (dw2_find_last_source_symtab): Update.
3877 (dw2_map_expand_apply): Update.
3878 (dw2_lookup_symbol): Update.
3879 (dw2_expand_symtabs_for_function): Update.
3880 (dw2_expand_all_symtabs): Update.
3881 (dw2_expand_symtabs_with_fullname): Update.
3882 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
3883 don't use per_cu->dwarf2_per_objfile.
3884 (dw2_expand_marked_cus): Update.
3885 (dw2_find_pc_sect_compunit_symtab): Update.
3886 (dw2_debug_names_lookup_symbol): Update.
3887 (dw2_debug_names_expand_symtabs_for_function): Update.
3888 (dw2_debug_names_map_matching_symbols): Update.
3889 (dwarf2_psymtab::expand_psymtab): Update.
3890
9e021579
SM
38912020-05-27 Simon Marchi <simon.marchi@efficios.com>
3892
3893 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
3894 <per_objfile>: New member.
3895 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
3896 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
3897 call to dwarf2_cu.
3898 (cutu_reader::cutu_reader): Update.
3899 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
3900
ae090bdb
SM
39012020-05-27 Simon Marchi <simon.marchi@efficios.com>
3902
3903 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
3904 struct dwarf2_per_objfile.
3905 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
3906 dwarf2_per_bfd.
3907 * dwarf2/read.c (set_die_type): Update.
3908 (get_die_type_at_offset): Update.
3909
af758d11
SM
39102020-05-27 Tom Tromey <tom@tromey.com>
3911 Simon Marchi <simon.marchi@efficios.com>
3912
3913 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
3914 method.
3915 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
3916 get_symtab, set_symtab>: New methods.
3917 <m_symtabs>: New field.
3918 (struct dwarf2_psymtab): Derive from partial_symtab.
3919 <readin_p, get_compunit_symtab>: Declare methods.
3920 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
3921 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
3922 New methods.
3923 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
3924 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
3925 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
3926 (dw2_symtab_iter_next, dw2_print_stats)
3927 (dw2_expand_symtabs_with_fullname)
3928 (dw2_expand_symtabs_matching_one)
3929 (dw_expand_symtabs_matching_file_matcher)
3930 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
3931 (dw2_debug_names_iterator::next)
3932 (dw2_debug_names_map_matching_symbols)
3933 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
3934 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
3935 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
3936 New methods.
3937 (get_compunit_symtab, process_full_comp_unit)
3938 (process_full_type_unit): Update.
3939 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
3940
5989a64e
SM
39412020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3942
3943 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
3944 then introduce a new dwarf2_per_objfile type.
3945 <read_line_string>: Move to the new dwarf2_per_objfile type.
3946 <objfile>: Likewise.
3947 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
3948 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
3949 dwarf2_per_objfile->per_bfd.
3950 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
3951 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
3952 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
3953 (dwarf2_per_bfd::free_cached_comp_units): ... this.
3954 (dwarf2_has_info): Allocate dwarf2_per_bfd.
3955 (dwarf2_per_objfile::locate_sections): Rename to...
3956 (dwarf2_per_bfd::locate_sections): ... this.
3957 (dwarf2_per_objfile::get_cutu): Rename to...
3958 (dwarf2_per_bfd::get_cutu): ... this.
3959 (dwarf2_per_objfile::get_cu): Rename to...
3960 (dwarf2_per_bfd::get_cu): ... this.
3961 (dwarf2_per_objfile::get_tu): Rename to...
3962 (dwarf2_per_bfd::get_tu): ... this.
3963 (dwarf2_per_objfile::allocate_per_cu): Rename to...
3964 (dwarf2_per_bfd::allocate_per_cu): ... this.
3965 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
3966 (dwarf2_per_bfd::allocate_signatured_type): ... this.
3967 (get_gdb_index_contents_ftype): Change parameter from
3968 dwarf2_per_objfile to dwarf2_per_bfd.
3969 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
3970 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
3971
a50264ba
TT
39722020-05-27 Tom Tromey <tom@tromey.com>
3973 Simon Marchi <simon.marchi@efficios.com>
3974
3975 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
3976 (allocate_piece_closure): Set "per_objfile" member.
3977 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
3978 (locexpr_describe_location, loclist_describe_location): Use new
3979 member.
3980 * dwarf2/read.c (read_call_site_scope)
3981 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
3982 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
3983 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
3984 handle_data_member_location): Set per_objfile member.
3985 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
3986 member.
3987 (struct dwarf2_loclist_baton) <per_objfile>: New member.
3988
d3473f0c
TT
39892020-05-27 Tom Tromey <tom@tromey.com>
3990
3991 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
3992 allocate_signatured_type>: Declare new methods.
3993 <m_num_psymtabs>: New member.
3994 (struct dwarf2_per_cu_data) <index>: New member.
3995 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
3996 (dwarf2_per_objfile::allocate_signatured_type): New methods.
3997 (create_cu_from_index_list): Use allocate_per_cu.
3998 (create_signatured_type_table_from_index)
3999 (create_signatured_type_table_from_debug_names)
4000 (create_debug_type_hash_table, add_type_unit)
4001 (read_comp_units_from_section): Use allocate_signatured_type.
4002
5717c425
TT
40032020-05-27 Tom Tromey <tom@tromey.com>
4004
4005 * psymtab.c (partial_map_expand_apply)
4006 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
4007 (psym_lookup_global_symbol_language)
4008 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
4009 (psym_print_stats, psym_expand_symtabs_for_function)
4010 (psym_map_symbol_filenames, psym_map_matching_symbols)
4011 (psym_expand_symtabs_matching)
4012 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
4013 (maintenance_check_psymtabs): Update.
4014 * psympriv.h (struct partial_symtab) <readin_p,
4015 get_compunit_symtab>: Add objfile parameter.
4016 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
4017 Likewise.
4018 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
4019 get_compunit_symtab>: Likewise.
4020 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
4021
45940949
TT
40222020-05-27 Tom Tromey <tom@tromey.com>
4023
4024 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
4025 member.
4026 * dwarf2/read.c (delete_file_name_entry): Fix comment.
4027 (create_cu_from_index_list)
4028 (create_signatured_type_table_from_index)
4029 (create_signatured_type_table_from_debug_names)
4030 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
4031 (dwarf2_create_include_psymtab)
4032 (create_debug_type_hash_table, add_type_unit)
4033 (create_type_unit_group, read_comp_units_from_section)
4034 (dwarf2_compute_name, create_cus_hash_table)
4035 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
4036 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
4037 obstack.
4038 (dw2_get_real_path): Likewise. Change argument to
4039 dwarf2_per_objfile.
4040
f8c6d152
LM
40412020-05-27 Luis Machado <luis.machado@linaro.org>
4042
4043 PR tdep/26000
4044 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
4045 for ldrd (immediate).
4046
e98d2e6d
PW
40472020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4048
4049 * command.h: Add comment giving the name of class_tui.
4050 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
4051 create the fake command for the help for class_tui.
4052
53a47a3e
TT
40532020-05-26 Tom Tromey <tromey@adacore.com>
4054
4055 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
4056 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
4057 (val_atr): New function.
4058 (value_val_atr): Use it.
4059 * ada-valprint.c (print_optional_low_bound): Change low bound
4060 handling for enums.
4061 (val_print_packed_array_elements): Don't call discrete_position.
4062 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
4063 discrete_position for enum types.
4064 * language.c (default_print_array_index): Change type.
4065 * language.h (struct language_defn) <la_print_array_index>: Add
4066 index_type parameter, change type of index_value.
4067 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
4068 (default_print_array_index): Update.
4069 * valprint.c (maybe_print_array_index): Don't call
4070 value_from_longest. Update.
4071 (value_print_array_elements): Don't call discrete_position.
4072
0bc2354b
TT
40732020-05-26 Tom Tromey <tromey@adacore.com>
4074
4075 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
4076 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
4077
1218a4bf
CDA
40782020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
4079
4080 PR gdb/13519
4081 * avr-tdep.c (avr_integer_to_address): Return data or code
4082 address accordingly to the second 'type' argument of the
4083 function.
4084
92651b1d
MW
40852020-05-25 Michael Weghorn <m.weghorn@posteo.de>
4086
4087 * infcmd.c, inferior.h: (construct_inferior_arguments):
4088 Moved function from here to gdbsupport/common-inferior.{h,cc}
4089
0a4f5f8c
TT
40902020-05-23 Tom Tromey <tom@tromey.com>
4091
4092 Revert commit eca1f90c:
4093 * NEWS: Remove entry for completion styling.
4094 * completer.c (_rl_completion_prefix_display_length): Move
4095 declaration later.
4096 (gdb_fnprint): Revert.
4097 (gdb_display_match_list_1): Likewise.
4098 * cli/cli-style.c (completion_prefix_style)
4099 (completion_difference_style, completion_suffix_style): Remove.
4100 (_initialize_cli_style): Revert.
4101 * cli/cli-style.h (completion_prefix_style)
4102 (completion_difference_style, completion_suffix_style): Don't
4103 declare.
4104
e08bd6c5
PA
41052020-05-24 Pedro Alves <palves@redhat.com>
4106
4107 * symtab.c (completion_list_add_name): Return boolean indication
4108 of whether the symbol matched.
4109 (completion_list_add_symbol): Don't try to remove C++ aliases if
4110 the symbol didn't match in the first place.
4111 * symtab.h (completion_list_add_name): Return bool.
4112
ceacbf6e
SM
41132020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
4114
4115 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
4116 type::field.
4117
26f16254
JB
41182020-05-23 Joel Brobecker <brobecker@adacore.com>
4119
4120 GDB 9.2 released.
4121
eca1f90c
TT
41222020-05-23 Tom Tromey <tom@tromey.com>
4123
4124 * NEWS: Add entry for completion styling.
4125 * completer.c (_rl_completion_prefix_display_length): Move
4126 declaration earlier.
4127 (gdb_fnprint): Use completion_style.
4128 (gdb_display_match_list_1): Likewise.
4129 * cli/cli-style.c (completion_prefix_style)
4130 (completion_difference_style, completion_suffix_style): New
4131 globals.
4132 (_initialize_cli_style): Register new globals.
4133 * cli/cli-style.h (completion_prefix_style)
4134 (completion_difference_style, completion_suffix_style): Declare.
4135
51e2cfa2
PA
41362020-05-23 Pedro Alves <palves@redhat.com>
4137
4138 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
4139 (parse_escape): Use ISDIGIT instead of isdigit.
4140 (puts_debug): Use gdb_isprint instead of isprint.
4141 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
4142 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
4143 ISSPACE instead of isspace.
4144 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
4145 instead of isspace.
4146 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
4147 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
4148 instead of isxdigit and ISDIGIT instead of isdigit.
4149
80fc5e77
SM
41502020-05-22 Simon Marchi <simon.marchi@efficios.com>
4151
4152 * gdbtypes.h (struct type) <field>: New method.
4153 (TYPE_FIELDS): Remove, replace all uses with either type::fields
4154 or type::field.
4155
3cabb6b0
SM
41562020-05-22 Simon Marchi <simon.marchi@efficios.com>
4157
4158 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
4159 (TYPE_FIELDS): Use type::fields. Change all call sites that
4160 modify the propery to use type::set_fields instead.
4161
1f704f76
SM
41622020-05-22 Simon Marchi <simon.marchi@efficios.com>
4163
4164 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
4165 type::num_fields instead.
4166
5e33d5f4
SM
41672020-05-22 Simon Marchi <simon.marchi@efficios.com>
4168
4169 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
4170 methods.
4171 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
4172 that modify the number of fields to use type::set_num_fields
4173 instead.
4174
9392ebb3
TT
41752020-05-22 Tom Tromey <tromey@adacore.com>
4176
4177 * compile/compile-object-load.h (munmap_list_free): Don't
4178 declare.
4179
7c13f4e8
AB
41802020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
4181
4182 * annotate.c (annotate_source_line): Update return type, add call
4183 to update current symtab and line.
4184 * annotate.h (annotate_source_line): Update return type, and
4185 extend header comment.
4186 * source.c (info_line_command): Check annotation_level before
4187 calling annotate_source_line.
4188 * stack.c (print_frame_info): If calling annotate_source_line
4189 returns true, then don't print any other source line information.
4190
aa370940
SM
41912020-05-21 Simon Marchi <simon.marchi@efficios.com>
4192
4193 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
4194
84d53fa9
SM
41952020-05-21 Simon Marchi <simon.marchi@efficios.com>
4196
4197 * coffread.c (patch_type): Remove NULL check before xfree.
4198 * corefile.c (set_gnutarget): Likewise.
4199 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
4200 * exec.c (build_section_table): Likewise.
4201 * remote.c (remote_target::pass_signals): Likewise.
4202 * utils.c (n_spaces): Likewise.
4203 * cli/cli-script.c (document_command): Likewise.
4204 * i386-windows-tdep.c (core_process_module_section): Likewise.
4205 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
4206
9d428aae
SM
42072020-05-20 Simon Marchi <simon.marchi@efficios.com>
4208
4209 * symfile.c (reread_symbols): Clear objfile's section_offsets
4210 vector and section indices, re-compute them by calling
4211 sym_offsets.
4212
250106a7
TT
42132020-05-20 Tom Tromey <tromey@adacore.com>
4214
4215 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 4216 (desc_one_bound, desc_index_type): Compute field name.
250106a7 4217
9a0bacfb
TV
42182020-05-20 Tom de Vries <tdevries@suse.de>
4219
4220 PR symtab/25833
4221 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
4222
7b958a48
AM
42232020-05-20 Alan Modra <amodra@gmail.com>
4224
4225 PR 25993
4226 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
4227 bfd_set_filename.
4228 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
4229 passed to bfd_set_filename.
4230 * symfile-mem.c (add_vsyscall_page): Likewise for string
4231 passed to symbol_file_add_from_memory.
4232 (symbol_file_add_from_memory): Make name param a const char* and
4233 don't strdup.
4234
c7e97679
AM
42352020-05-20 Alan Modra <amodra@gmail.com>
4236
4237 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
4238 rather than accessing bfd->filename directly.
4239 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
4240 and use bfd_section_name.
4241 * dwarf2/frame.c (decode_frame_entry): Likewise.
4242 * exec.c (exec_set_section_address): Likewise.
4243 * solib-aix.c (solib_aix_bfd_open): Likewise.
4244 * stap-probe.c (get_stap_base_address): Likewise.
4245 * symfile.c (reread_symbols): Likewise.
4246
563c591b
TT
42472020-05-19 Tom Tromey <tromey@adacore.com>
4248
4249 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
4250
f408d82c
SM
42512020-05-19 Simon Marchi <simon.marchi@efficios.com>
4252
4253 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
4254
98c59b52
PA
42552020-05-19 Pedro Alves <palves@redhat.com>
4256
4257 * NEWS (set exec-file-mismatch): Adjust entry.
4258 * exec.c: Include "build-id.h".
4259 (validate_exec_file): Try to match build IDs instead of filenames.
4260 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
4261 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
4262 and pass down 'warn_if_slow'.
4263 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
4264 gdb_bfd_open_closure to pass it down.
4265 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
4266
4111f652
PA
42672020-05-19 Pedro Alves <palves@redhat.com>
4268
4269 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
4270 * target.c (target_fileio_open_1): Rename to target_fileio_open
4271 and make extern. Use bool.
4272 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
4273 (target_fileio_read_alloc_1): Adjust.
4274 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
4275 (target_fileio_open_warn_if_slow): Delete declaration.
4276
ad80db5b
PA
42772020-05-19 Pedro Alves <palves@redhat.com>
4278
4279 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
4280 Adjust all callers.
4281
1d6ce4d3
YS
42822020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
4283
4284 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
4285 whether disp is negative.
4286
9005fbbb
SM
42872020-05-19 Simon Marchi <simon.marchi@efficios.com>
4288
4289 * symfile.h (struct symfile_segment_data)
4290 <~symfile_segment_data>: Remove.
4291 <segment_info>: Change to std::vector.
4292 * symfile.c (default_symfile_segments): Update.
4293 * elfread.c (elf_symfile_segments): Update.
4294
68b888ff
SM
42952020-05-19 Simon Marchi <simon.marchi@efficios.com>
4296
4297 * symfile.h (struct symfile_segment_data) <struct segment>: New.
4298 <segments>: New.
4299 <segment_bases, segment_sizes>: Remove.
4300 * symfile.c (default_symfile_segments): Update.
4301 * elfread.c (elf_symfile_segments): Update.
4302 * remote.c (remote_target::get_offsets): Update.
4303 * solib-target.c (solib_target_relocate_section_addresses):
4304 Update.
4305
62982abd
SM
43062020-05-19 Simon Marchi <simon.marchi@efficios.com>
4307
4308 * symfile.h (struct symfile_segment_data): Initialize fields.
4309 <~symfile_segment_data>: Add.
4310 (symfile_segment_data_up): New.
4311 (struct sym_fns) <sym_segments>: Return a
4312 symfile_segment_data_up.
4313 (default_symfile_segments): Return a symfile_segment_data_up.
4314 (free_symfile_segment_data): Remove.
4315 (get_symfile_segment_data): Return a symfile_segment_data_up.
4316 * symfile.c (default_symfile_segments): Likewise.
4317 (get_symfile_segment_data): Likewise.
4318 (free_symfile_segment_data): Remove.
4319 (symfile_find_segment_sections): Update.
4320 * elfread.c (elf_symfile_segments): Return a
4321 symfile_segment_data_up.
4322 * remote.c (remote_target::get_offsets): Update.
4323 * solib-target.c (solib_target_relocate_section_addresses):
4324 Update.
4325 * symfile-debug.c (debug_sym_segments): Return a
4326 symfile_segment_data_up.
4327
7f204339
RO
43282020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4329
e52a0f1b
RO
4330 PR build/25981
4331 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
4332 Hardcode register numbers.
4333
7f204339
RO
4334 PR build/25981
4335 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
4336 procfs_find_LDT_entry): Remove.
4337 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
4338 procfs_find_LDT_entry): Remove.
4339 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
4340 Remove.
4341
7f32a4d5
PA
43422020-05-17 Pedro Alves <palves@redhat.com>
4343 Andrew Burgess <andrew.burgess@embecosm.com>
4344 Keno Fischer <keno@juliacomputing.com>
4345
4346 PR gdb/25741
4347 * breakpoint.c (build_target_condition_list): Update comments.
4348 (build_target_command_list): Update comments and skip matching
4349 locations.
4350 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
4351 a separate function. Simplify "set breakpoint auto-hw off"
4352 handling.
4353 (insert_breakpoints): Update comment.
4354 (tracepoint_locations_match): New parameter. For breakpoints,
4355 compare location types too, if the caller wants to.
4356 (handle_automatic_hardware_breakpoints): New functions.
4357 (bp_location_is_less_than): Also sort by location type and
4358 hardware breakpoint length.
4359 (update_global_location_list): Handle "set breakpoint auto-hw on"
4360 here.
4361 (update_breakpoint_locations): Ask breakpoint_locations_match to
4362 ignore location types.
4363
7d93a1e0
SM
43642020-05-16 Simon Marchi <simon.marchi@efficios.com>
4365
4366 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
4367 type::name instead.
4368
d0e39ea2
SM
43692020-05-16 Simon Marchi <simon.marchi@efficios.com>
4370
4371 * gdbtypes.h (struct type) <name, set_name>: New methods.
4372 (TYPE_CODE): Use type::name. Change all call sites used to set
4373 the name to use type::set_name instead.
4374
2dab0c7b
TT
43752020-05-16 Tom Tromey <tom@tromey.com>
4376
4377 * top.c (quit_force): Update.
4378 * infrun.c (handle_no_resumed): Update.
4379 * top.h (all_uis): New function.
4380 (ALL_UIS): Remove.
4381
59f7bd8d
SM
43822020-05-16 Simon Marchi <simon.marchi@efficios.com>
4383
4384 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
4385
9bf058f0
PA
43862020-05-16 Pedro Alves <palves@redhat.com>
4387
4388 * ia64-linux-nat.c
4389 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
4390 Declare method.
4391 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
4392
8f86ae1a
SM
43932020-05-15 Simon Marchi <simon.marchi@efficios.com>
4394
4395 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
4396 (sparc64_adi_info): Likewise.
4397
d6bc0792
TT
43982020-05-15 Tom Tromey <tom@tromey.com>
4399
4400 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
4401 block_objfile.
4402 (lookup_objfile_from_block): Remove.
4403 (lookup_symbol_in_block, lookup_symbol_in_static_block)
4404 (lookup_global_symbol): Use block_objfile.
4405 * symtab.h (lookup_objfile_from_block): Don't declare.
4406 * printcmd.c (clear_dangling_display_expressions): Use
4407 block_objfile.
4408 * parse.c (operator_check_standard): Use block_objfile.
4409
8c14c3a3
TT
44102020-05-15 Tom Tromey <tom@tromey.com>
4411
4412 * language.c (language_alloc_type_symbol): Set
4413 SYMBOL_SECTION.
4414 * symtab.c (initialize_objfile_symbol): Remove.
4415 (allocate_symbol): Remove.
4416 (allocate_template_symbol): Remove.
4417 * dwarf2/read.c (fixup_go_packaging): Use "new".
4418 (new_symbol): Use "new".
4419 (read_variable): Don't call initialize_objfile_symbol. Use
4420 "new".
4421 (read_func_scope): Use "new".
4422 * xcoffread.c (process_xcoff_symbol): Don't call
4423 initialize_objfile_symbol.
4424 (SYMBOL_DUP): Remove.
4425 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
4426 "new".
4427 * symtab.h (allocate_symbol, initialize_objfile_symbol)
4428 (allocate_template_symbol): Don't declare.
4429 (struct symbol): Add copy constructor. Change defaults.
4430 * jit.c (finalize_symtab): Use "new".
4431 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
4432 Use "new".
4433 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
4434 (common_block_end): Use "new".
4435 * mdebugread.c (parse_symbol): Use "new".
4436 (new_symbol): Likewise.
4437
5b4a1a8d
PW
44382020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4439
4440 * NEWS: Mention changes to help and apropos.
4441
57b4f16e
PW
44422020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4443
4444 * command.h (enum command_class): Improve comments, document
4445 that class_alias is for user-defined aliases, give the class
4446 name for each class, remove unused class_xdb.
4447 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
4448 * breakpoint.c (_initialize_breakpoint): Replace class_alias
4449 by a precise class.
4450 * infcmd.c (_initialize_infcmd): Likewise.
4451 * reverse.c (_initialize_reverse): Likewise.
4452 * stack.c (_initialize_stack): Likewise.
4453 * symfile.c (_initialize_symfile): Likewise.
4454 * tracepoint.c (_initialize_tracepoint): Likewise.
4455
7c05caf7
PW
44562020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4457
4458 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
4459 when their aliased command is traversed.
4460 (help_cmd): Add fput_command_names_styled call to
4461 output command name and aliases when command has an alias.
4462
3b3aaacb
PW
44632020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4464
4465 * cli/cli-decode.h (help_cmd_list): Remove declaration.
4466 * cli/cli-decode.c (help_cmd_list): Declare as static,
4467 remove prefix argument, use bool for recurse arg, rework to show the aliases of
4468 a command together with the command.
4469 (fput_command_name_styled, fput_command_names_styled): New functions.
4470 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
4471 fput_command_name_styled.
4472 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
4473 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
4474
7aa1b46f
PW
44752020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4476
4477 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
4478 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
4479 * command.h (cmd_show_list): Likewise.
4480 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
4481 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
4482
89bcba74
PW
44832020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4484
4485 * unittests/command-def-selftests.c (traverse_command_structure):
4486 Verify all commands of a list have the same prefix command and
4487 that only the top cmdlist commands have a null prefix.
4488
3f4d92eb
PW
44892020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4490
4491 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
4492 as prefix, not one of its aliases.
4493 (set_cmd_prefix): Remove.
4494 (do_add_cmd): Centralize the setting of the prefix of a command, when
4495 command is defined after its full chain of prefix commands.
4496 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
4497 (add_setshow_cmd_full): Likewise.
4498 (update_prefix_field_of_prefixed_commands): New function.
4499 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
4500 update_prefix_field_of_prefixed_commands.
4501 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
4502 addresses of remote_set_cmdlist and remote_show_cmdlist given
4503 as argument, not the address of an argument.
4504 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
4505 * gdb/remote.c (_initialize_remote): Likewise.
4506
0605465f
PW
45072020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4508
4509 * cli/cli-cmds.c (alias_command): Check for an existing alias
4510 using lookup_cmd_composition, as valid_command_p is too strict
4511 and forbids aliases that are the prefix of an existing alias
4512 or command.
4513 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
4514 command is properly recognised as a valid command.
4515
58e6ac70
PW
45162020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4517
4518 * unittests/help-doc-selftests.c: Rename to
4519 unittests/command-def-selftests.c
4520 * unittests/command-def-selftests.c (help_doc_tests): Update some
4521 comments.
4522 (command_structure_tests, traverse_command_structure): New namespace
4523 and function.
4524 (command_structure_invariants_tests): New function.
4525 (_initialize_command_def_selftests) Renamed from
4526 _initialize_help_doc_selftests, register command_structure_invariants
4527 selftest.
4528
a7b9ceb8
PW
45292020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4530
4531 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
4532 an alias of 'show'.
4533
b2188a06
JB
45342020-05-15 Joel Brobecker <brobecker@adacore.com>
4535
4536 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
4537 ada_is_fixed_point_type. Update all callers.
4538 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
4539 all callers.
4540 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
4541 Update all callers.
4542 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
4543 print_fixed_point_type. Update all callers.
4544 * ada-valprint.c (ada_value_print_num): Replace call to
4545 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
4546
a51951c2
KB
45472020-05-14 Kevin Buettner <kevinb@redhat.com>
4548
4549 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
4550 processors.
4551 (cpu_supports_bts): Add CV_AMD case.
4552
29d6859f
LM
45532020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
4554 Simon Marchi <simon.marchi@efficios.com>
4555
4556 * infrun.c (stop_all_threads): Collect multiple wait events at
4557 each pass.
4558
78134374
SM
45592020-05-14 Simon Marchi <simon.marchi@efficios.com>
4560
4561 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
4562 type::code instead.
4563
67607e24
SM
45642020-05-14 Simon Marchi <simon.marchi@efficios.com>
4565
4566 * gdbtypes.h (struct type) <code, set_code>: New methods.
4567 (TYPE_CODE): Use type::code. Change all call sites used to set
4568 the code to use type::set_code instead.
4569
a05575d3
TBA
45702020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4571 Tom de Vries <tdevries@suse.de>
4572 Pedro Alves <palves@redhat.com>
4573
4574 PR threads/25478
4575 * infrun.c (stop_all_threads): Do NOT ignore
4576 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
4577 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
4578 received.
4579 (handle_no_resumed): Remove code handling a live inferior with no
4580 threads.
4581 * remote.c (has_single_non_exited_thread): New.
4582 (remote_target::update_thread_list): Do not delete a thread if is
4583 the last thread of the process.
4584 * thread.c (thread_select): Call delete_exited_threads instead of
4585 prune_threads.
4586
6ad82919
TBA
45872020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4588
4589 * infrun.c (stop_all_threads): Enable/disable thread events of all
4590 targets. Move a debug message denoting the end of the function
4591 into the SCOPED_EXIT block.
4592
d890404b
TBA
45932020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4594
4595 * process-stratum-target.h: Include <set>.
4596 (all_non_exited_process_targets, switch_to_target_no_thread): New
4597 function declarations.
4598 * process-stratum-target.c (all_non_exited_process_targets)
4599 (switch_to_target_no_thread): New function implementations.
4600
293b3ebc
TBA
46012020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4602
4603 * infrun.c (handle_inferior_event): Extract out a piece of code
4604 into...
4605 (mark_non_executing_threads): ...this new function.
4606
7ca9b62a
TBA
46072020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4608
4609 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
4610 use.
4611
fc75c28b
TBA
46122020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4613
4614 * regcache.c (regcache_read_pc_protected): New function
4615 implementation that returns 0 if the PC cannot read via
4616 'regcache_read_pc'.
4617 * infrun.c (proceed): Call 'regcache_read_pc_protected'
4618 instead of 'regcache_read_pc'.
4619 (keep_going_pass_signal): Ditto.
4620
a89febbd
TT
46212020-05-13 Tom Tromey <tromey@adacore.com>
4622
4623 * ada-lang.c (align_value): Remove.
4624 (ada_template_to_fixed_record_type_1): Use align_up.
4625
f7e23710
TBA
46262020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4627
4628 * async-event.c: Update the copyright year.
4629 * async-event.h: Update the copyright year.
4630
02ff80c2
SM
46312020-05-12 Simon Marchi <simon.marchi@efficios.com>
4632
4633 * objfiles.h (is_addr_in_objfile,
4634 shared_objfile_contains_address_p): Return bool.
4635 * objfile.c (is_addr_in_objfile,
4636 shared_objfile_contains_address_p): Return bool.
4637
4fd6c7e8
TT
46382020-05-11 Tom Tromey <tromey@adacore.com>
4639
4640 * cli/cli-cmds.c (info_command): Restore.
4641 (_initialize_cli_cmds): Use add_prefix_command for "info".
4642 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
4643
5eb68a39
TT
46442020-05-11 Tom Tromey <tromey@adacore.com>
4645
4646 * ada-lang.c (ada_value_primitive_field): Now public.
4647 * ada-lang.h (ada_value_primitive_field): Declare.
4648 * ada-valprint.c (print_field_values): Use
4649 ada_value_primitive_field for wrapper fields.
4650
7666722f
TV
46512020-05-11 Tom de Vries <tdevries@suse.de>
4652
4653 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
4654 MODULE_DOMAIN.
4655
3ee6bb11
TV
46562020-05-11 Tom de Vries <tdevries@suse.de>
4657
4658 PR symtab/25941
4659 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
4660 with length 0, if not gdb-produced.
4661 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
4662
43434996
TV
46632020-05-09 Tom de Vries <tdevries@suse.de>
4664
4665 PR gdb/25955
4666 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
4667 calculation.
4668
2f78cffc
TT
46692020-05-09 Tom Tromey <tom@tromey.com>
4670
4671 * top.c (server_command): Now bool.
4672 * top.h (server_command): Now bool.
4673
4f7bc5ed
TT
46742020-05-08 Tom Tromey <tromey@adacore.com>
4675
4676 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
4677 already being processed.
4678
8be4b118
TT
46792020-05-08 Tom Tromey <tom@tromey.com>
4680
4681 * printcmd.c (struct display) <next>: Remove.
4682 <display>: New constructor.
4683 <exp_string>: Now a std::string.
4684 <enabled_p>: Now a bool.
4685 (display_number): Move definition earlier.
4686 (displays): Rename from display_chain. Now a std::vector.
4687 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
4688 (display_command): Update.
4689 (do_one_display, disable_display)
4690 (enable_disable_display_command, do_enable_disable_display):
4691 Update.
4692 (free_display): Remove.
4693 (clear_displays): Rewrite.
4694 (delete_display): Update.
4695 (map_display_numbers): Use function_view. Remove "data"
4696 parameter. Update.
4697 (do_delete_display): Remove.
4698 (undisplay_command): Update.
4699 (do_one_display, do_displays, disable_display)
4700 (info_display_command): Update.
4701 (do_enable_disable_display): Remove.
4702 (enable_disable_display_command)
4703 (clear_dangling_display_expressions): Update.
4704
94c93c35
TT
47052020-05-08 Tom Tromey <tom@tromey.com>
4706
4707 * symtab.c (set_symbol_cache_size)
4708 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
4709 (maintenance_print_symbol_cache_statistics): Update.
4710 * symmisc.c (print_symbol_bcache_statistics)
4711 (print_objfile_statistics, maintenance_print_objfiles)
4712 (maintenance_info_symtabs, maintenance_check_symtabs)
4713 (maintenance_expand_symtabs, maintenance_info_line_tables):
4714 Update.
4715 * symfile-debug.c (set_debug_symfile): Update.
4716 * source.c (forget_cached_source_info): Update.
4717 * python/python.c (gdbpy_progspaces): Update.
4718 * psymtab.c (maintenance_info_psymtabs): Update.
4719 * probe.c (parse_probes): Update.
4720 * linespec.c (iterate_over_all_matching_symtabs)
4721 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
4722 * guile/scm-progspace.c (gdbscm_progspaces): Update.
4723 * exec.c (exec_target::close): Update.
4724 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
4725 * breakpoint.c (print_one_breakpoint_location)
4726 (create_longjmp_master_breakpoint)
4727 (create_std_terminate_master_breakpoint): Update.
4728 * progspace.c (program_spaces): Now a std::vector.
4729 (maybe_new_address_space): Update.
4730 (add_program_space): Remove.
4731 (program_space::program_space): Update.
4732 (remove_program_space): Update.
4733 (number_of_program_spaces): Remove.
4734 (print_program_space, update_address_spaces): Update.
4735 * progspace.h (program_spaces): Change type.
4736 (ALL_PSPACES): Remove.
4737 (number_of_program_spaces): Don't declare.
4738 (struct program_space) <next>: Remove.
4739
a1fd1ac9
TT
47402020-05-08 Tom Tromey <tom@tromey.com>
4741
4742 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
4743 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
4744 (enable_break): Update.
4745 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
4746 (frv_fdpic_find_canonical_descriptor): Update.
4747 (frv_fetch_objfile_link_map): Update.
4748 * progspace.c (program_space::free_all_objfiles): Update.
4749 (program_space::solibs): New method.
4750 * progspace.h (struct program_space) <solibs>: New method.
4751 * solist.h (master_so_list): Don't declare.
4752 (ALL_SO_LIBS): Remove.
4753 * solib.h (so_list_head): Remove.
4754 (update_solib_list): Update comment.
4755 * solib.c (master_so_list): Remove.
4756 (solib_used, update_solib_list, solib_add)
4757 (info_sharedlibrary_command, clear_solib)
4758 (reload_shared_libraries_1, remove_user_added_objfile): Update.
4759
38eae084
TT
47602020-05-08 Tom Tromey <tom@tromey.com>
4761
4762 * extension.c (extension_languages): Now a std::array.
4763 (ALL_EXTENSION_LANGUAGES): Remove.
4764 (get_ext_lang_defn, get_ext_lang_of_file)
4765 (eval_ext_lang_from_control_command): Update.
4766 (finish_ext_lang_initialization)
4767 (auto_load_ext_lang_scripts_for_objfile)
4768 (ext_lang_type_printers::ext_lang_type_printers)
4769 (apply_ext_lang_type_printers)
4770 (ext_lang_type_printers::~ext_lang_type_printers)
4771 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
4772 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
4773 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
4774 (get_matching_xmethod_workers, ext_lang_colorize)
4775 (ext_lang_before_prompt): Update.
4776 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
4777
596dc4ad
TT
47782020-05-08 Tom Tromey <tom@tromey.com>
4779
4780 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
4781 overload.
4782 <swap_string, m_string>: Remove.
4783 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
4784 Update.
4785 * stabsread.c (define_symbol, read_type): Update.
4786 * linespec.c (find_linespec_symbols): Update.
4787 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
4788 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
4789 * dbxread.c (read_dbx_symtab): Update.
4790 * cp-support.h (cp_canonicalize_string_full)
4791 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
4792 Return unique_xmalloc_ptr.
4793 * cp-support.c (inspect_type): Update.
4794 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
4795 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
4796 Likewise.
4797 * c-typeprint.c (print_name_maybe_canonical): Update.
4798 * break-catch-throw.c (check_status_exception_catchpoint):
4799 Update.
4800
bf4cb9be
TV
48012020-05-08 Tom de Vries <tdevries@suse.de>
4802
4803 * infrun.c (follow_fork): Copy current_line and current_symtab to
4804 child thread.
4805
a1b68f28
SM
48062020-05-07 Simon Marchi <simon.marchi@efficios.com>
4807
4808 * async-event.c (struct async_signal_handler, struct
4809 async_event_handler): Reformat, remove typedef.
4810
98d48915
SM
48112020-05-07 Simon Marchi <simon.marchi@efficios.com>
4812
4813 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
4814 access thistype->main_type->dyn_prop_list directly.
4815
7aa91313
SM
48162020-05-07 Simon Marchi <simon.marchi@efficios.com>
4817
4818 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
4819 (remove_dyn_prop): Remove. Update all users to use
4820 type::remove_dyn_prop.
4821 * gdbtypes.c (remove_dyn_prop): Rename to...
4822 (type::remove_dyn_prop): ... this.
4823
5c54719c
SM
48242020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
4825
4826 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
4827 (add_dyn_prop): Remove. Update all users to use
4828 type::add_dyn_prop.
4829 * gdbtypes.c (add_dyn_prop): Rename to...
4830 (type::add_dyn_prop): ... this.
4831
24e99c6c
SM
48322020-05-07 Simon Marchi <simon.marchi@efficios.com>
4833
4834 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
4835 (get_dyn_prop): Remove. Update all users to use
4836 type::dyn_prop.
4837 * gdbtypes.c (get_dyn_prop): Rename to...
4838 (type::dyn_prop): ... this.
4839
0d4bf016
SM
48402020-05-06 Simon Marchi <simon.marchi@efficios.com>
4841
4842 * gdbtypes.h (struct main_type) <flag_static>: Remove.
4843
ac4a4f1c
SM
48442020-05-06 Simon Marchi <simon.marchi@efficios.com>
4845
4846 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
4847 instruction, skip it if it's there.
4848
a3bbacc1
SM
48492020-05-05 Simon Marchi <simon.marchi@efficios.com>
4850
4851 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
4852
c3236f84
SM
48532020-05-04 Simon Marchi <simon.marchi@efficios.com>
4854
4855 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
4856 * gdbtypes.c (recursive_dump_type): Remove use of
4857 TYPE_INCOMPLETE.
4858
3b6acaee
TT
48592020-05-03 Tom Tromey <tom@tromey.com>
4860
4861 * breakpoint.c (catch_command, tcatch_command): Remove.
4862 (_initialize_breakpoint): Use add_basic_prefix_cmd,
4863 add_show_prefix_cmd.
4864 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
4865 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
4866 Remove.
4867 (add_internal_problem_command): Use add_basic_prefix_cmd,
4868 add_show_prefix_cmd.
4869 * mips-tdep.c (set_mipsfpu_command): Remove.
4870 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
4871 * dwarf2/index-cache.c (set_index_cache_command): Remove.
4872 (_initialize_index_cache): Use add_basic_prefix_cmd.
4873 * memattr.c (dummy_cmd): Remove.
4874 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
4875 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
4876 (_initialize_tui_win): Use add_basic_prefix_cmd,
4877 add_show_prefix_cmd.
4878 * cli/cli-logging.c (set_logging_command): Remove.
4879 (_initialize_cli_logging): Use add_basic_prefix_cmd,
4880 add_show_prefix_cmd.
4881 (show_logging_command): Remove.
4882 * target.c (target_command): Remove.
4883 (add_target): Use add_basic_prefix_cmd.
4884
a51119cd
HD
48852020-05-02 Hannes Domani <ssbssa@yahoo.de>
4886
4887 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
4888
652fc23a 48892020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 4890
652fc23a
PW
4891 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
4892 info_command.
4893
117539e6
KR
48942020-04-30 Kamil Rytarowski <n54@gmx.com>
4895
4896 * nbsd-nat.c (nbsd_enable_proc_events)
4897 (nbsd_nat_target::post_startup_inferior): Add.
4898 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
4899 (nbsd_nat_target::update_thread_list): Rewrite.
4900 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
4901 "PTRACE_LWP_CREATE".
4902 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
4903
102e38eb 49042020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 4905
102e38eb
PW
4906 * stack.c (_initialize_stack): Remove duplicated creation
4907 of "frame" command and "f" alias.
4908
ee9d1e5f
HD
49092020-04-30 Hannes Domani <ssbssa@yahoo.de>
4910
4911 PR gdb/18706
4912 * gdbtypes.c (check_typedef): Calculate size of array of
4913 stubbed type.
4914
627c7fb8
HD
49152020-04-30 Hannes Domani <ssbssa@yahoo.de>
4916
4917 PR gdb/15559
4918 * i386-tdep.c (i386_push_dummy_call): Call
4919 i386_thiscall_push_dummy_call.
4920 (i386_thiscall_push_dummy_call): New function.
4921 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
4922 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
4923 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
4924
ffc2844e
SM
49252020-04-29 Simon Marchi <simon.marchi@efficios.com>
4926
4927 * gdbarch.sh (do_read): Add shellcheck disable directive for
4928 warning SC2162.
4929
1207375d
SM
49302020-04-29 Simon Marchi <simon.marchi@efficios.com>
4931
4932 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
4933 "referenced but not assigned" warning.
4934
9fdb2916
SM
49352020-04-29 Simon Marchi <simon.marchi@efficios.com>
4936
4937 * gdbarch.sh: Remove code that sets fallbackdefault.
4938
759cea5e
SM
49392020-04-29 Simon Marchi <simon.marchi@efficios.com>
4940
4941 * gdbarch.sh: Use shell operators && and || instead of
4942 -a and -o.
4943
cb02ab24
SM
49442020-04-29 Simon Marchi <simon.marchi@efficios.com>
4945
4946 * gdbarch.sh: Use $(...) instead of `...`.
4947
a6fc5ffc
SM
49482020-04-29 Simon Marchi <simon.marchi@efficios.com>
4949
4950 * gdbarch.sh: Use double quotes around variables.
4951
8d113d13
SM
49522020-04-29 Simon Marchi <simon.marchi@efficios.com>
4953
4954 * gdbarch.sh: Use %s with printf, instead of variables in the
4955 format string.
4956
ed6acedd
TT
49572020-04-29 Tom Tromey <tromey@adacore.com>
4958
4959 PR ada/25875:
4960 * dwarf2/read.c (update_enumeration_type_from_children): Compute
4961 type fields here.
4962 (read_enumeration_type): Call
4963 update_enumeration_type_from_children later. Update comments.
4964 (process_enumeration_scope): Don't create type fields.
4965
b68b1b58
KR
49662020-04-29 Kamil Rytarowski <n54@gmx.com>
4967
4968 * nbsd-tdep.c: Include "xml-syscall.h".
4969 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
4970
f94b2e03
KR
49712020-04-29 Kamil Rytarowski <n54@gmx.com>
4972
4973 * nbsd-nat.c: Include "sys/wait.h".
4974 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
4975 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
4976 (nbsd_nat_target::remove_exec_catchpoint)
4977 (nbsd_nat_target::set_syscall_catchpoint): Add.
4978 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
4979 (nbsd_nat_target::insert_exec_catchpoint)
4980 (nbsd_nat_target::remove_exec_catchpoint)
4981 (nbsd_nat_target::set_syscall_catchpoint): Add.
4982 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
4983 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
4984 `nbsd_get_syscall_number'.
4985
fc49bc72
TT
49862020-04-29 Tom Tromey <tom@tromey.com>
4987
4988 * stack.c (print_block_frame_labels): Remove.
4989
d642b692
HD
49902020-04-29 Hannes Domani <ssbssa@yahoo.de>
4991
4992 PR gdb/17320
4993 * ada-valprint.c (val_print_packed_array_elements): Move array
4994 end bracket to new line.
4995 (ada_val_print_string): Remove extra spaces before first array
4996 element.
4997 * c-valprint.c (c_value_print_array): Likewise.
4998 * m2-valprint.c (m2_print_array_contents): Likewise.
4999 (m2_value_print_inner): Likewise.
5000 * p-valprint.c (pascal_value_print_inner): Likewise.
5001 * valprint.c (generic_val_print_array): Likewise.
5002 (value_print_array_elements): Move first array element and array
5003 end bracket to new line.
5004
ea90f227
TV
50052020-04-29 Tom de Vries <tdevries@suse.de>
5006
5007 PR symtab/25889
5008 * linespec.c (find_method): Fix ix calculation.
5009
4498ef4f
KR
50102020-04-28 Kamil Rytarowski <n54@gmx.com>
5011
5012 * syscalls/update-netbsd.sh: New file.
5013 * syscalls/netbsd.xml: Regenerate.
5014 * data-directory/Makefile.in: Register `netbsd.xml' in
5015 `SYSCALLS_FILES'.
5016
a55e30b5
SM
50172020-04-28 Simon Marchi <simon.marchi@efficios.com>
5018
5019 * syscalls/update-freebsd.sh: Add double quotes.
5020
2b2fbab8
TT
50212020-04-28 Tom Tromey <tom@tromey.com>
5022
5023 * NEWS: Update.
5024 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
5025 (cmdpy_init): Allow class_tui.
5026
a65189c9
TV
50272020-04-28 Mark Williams <mark@myosotissp.com>
5028
5029 PR gdb/24480
5030 * dwarf2read.c: Add missing assingments to list_in_scope when
5031 start_symtab was already called.
5032
1b95cdb7
SM
50332020-04-28 Simon Marchi <simon.marchi@efficios.com>
5034
5035 PR gdb/25881
5036 * dwarf2/read.c (offset_map_type): Use
5037 gdb:hash_enum<sect_offset> as hash function.
5038
15cd93d0
TV
50392020-04-28 Tom de Vries <tdevries@suse.de>
5040
5041 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
5042 with DW_AT_signature.
5043
1eb39914
SM
50442020-04-27 Simon Marchi <simon.marchi@efficios.com>
5045
5046 * configure.ac: Remove check for fs_base/gs_base in
5047 user_regs_struct.
5048 * configure: Re-generate.
5049 * config.in: Re-generate.
5050 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
5051 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
5052 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
5053
991a3e2e
LM
50542020-04-27 Luis Machado <luis.machado@linaro.org>
5055
5056 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
5057 problematic inline frame unwinding situation.
5058 * frame.c (frame_id_computed_p): New function.
5059 * frame.h (frame_id_computed_p): New prototype.
5060
361ba0e8
TT
50612020-04-26 Tom Tromey <tom@tromey.com>
5062
5063 * command.h (enum command_class) <class_pseudo>: Remove.
5064
bc3609fd
PW
50652020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5066
5067 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
5068 and whitespace.
5069
b9771db7
KR
50702020-04-25 Kamil Rytarowski <n54@gmx.com>
5071
ec16513e
SM
5072 * inf-ptrace.c (inf_ptrace_target::wait): Remove
5073 `PT_GET_PROCESS_STATE' block.
b9771db7 5074
7151c1af
TT
50752020-04-24 Tom Tromey <tom@tromey.com>
5076
5077 * symtab.h (symbol_get_demangled_name): Don't declare.
5078 * symtab.c (symbol_get_demangled_name): Remove.
5079 (general_symbol_info::natural_name)
5080 (general_symbol_info::demangled_name): Update.
5081
906bb4c5
TT
50822020-04-24 Tom Tromey <tom@tromey.com>
5083
5084 PR rust/25025:
5085 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
5086
bcfe6157
TT
50872020-04-24 Tom Tromey <tom@tromey.com>
5088
5089 PR symtab/12707:
5090 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
5091 exists.
5092 (new_symbol): Likewise.
5093 * compile/compile-object-load.c (get_out_value_type): Use
5094 symbol_matches_search_name.
5095
f049a313
TT
50962020-04-24 Tom Tromey <tom@tromey.com>
5097
5098 * dwarf2/read.c (add_partial_symbol): Do not call
5099 compute_and_set_names.
5100
76e288d1
TT
51012020-04-24 Tom Tromey <tom@tromey.com>
5102
5103 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
5104 overload.
5105
2467f4f6
TT
51062020-04-24 Tom Tromey <tom@tromey.com>
5107
5108 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
5109 (add_psymbol_to_list): New overload. Make old overload call new
5110 one.
5111 * psympriv.h (add_psymbol_to_list): New overload.
5112
e61108c9
TT
51132020-04-24 Tom Tromey <tom@tromey.com>
5114
5115 * dwarf2/read.c (partial_die_info::read) <case
5116 DW_AT_linkage_name>: Use value_as_string.
5117 (dwarf2_string_attr): Use value_as_string.
5118 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
5119 method.
5120 * dwarf2/attribute.c (attribute::value_as_string): New method.
5121
8c87a452
TT
51222020-04-24 Tom Tromey <tom@tromey.com>
5123
5124 * symtab.c (general_symbol_info::natural_name)
5125 (general_symbol_info::demangled_name): Check for language_rust.
5126
787de330
TT
51272020-04-24 Tom Tromey <tom@tromey.com>
5128
5129 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
5130 (dwarf2_physname): ... from here.
5131 (partial_die_info::read): Add Rust "{" hack.
5132
ff985671
TT
51332020-04-24 Tom Tromey <tom@tromey.com>
5134
5135 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
5136 method.
5137 (symbol_set_demangled_name): Don't declare.
5138 * symtab.c (general_symbol_info::set_demangled_name): Rename from
5139 symbol_set_demangled_name.
5140 (general_symbol_info::set_language)
5141 (general_symbol_info::compute_and_set_names): Update.
5142 * minsyms.c (minimal_symbol_reader::install): Update.
5143 * dwarf2/read.c (new_symbol): Update.
5144
1acda803
TT
51452020-04-24 Tom Tromey <tromey@adacore.com>
5146
5147 PR python/23662:
5148 * python/py-type.c (convert_field): Handle
5149 FIELD_LOC_KIND_DWARF_BLOCK.
5150 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
5151 (typy_get_dynamic): Nw function.
5152 (type_object_getset): Add "dynamic".
5153 * NEWS: Add entry.
5154
d656f129
TT
51552020-04-24 Tom Tromey <tromey@adacore.com>
5156
5157 * ada-typeprint.c (print_choices, print_variant_part)
5158 (print_record_field_types_dynamic): New functions.
5159 (print_record_field_types): Use print_record_field_types_dynamic.
5160
7d79de9a
TT
51612020-04-24 Tom Tromey <tromey@adacore.com>
5162
5163 * dwarf2/read.c (handle_data_member_location): New overload.
5164 (dwarf2_add_field): Use it.
5165 (decode_locdesc): Add "computed" parameter. Update comment.
5166 * gdbtypes.c (is_dynamic_type_internal): Also look for
5167 FIELD_LOC_KIND_DWARF_BLOCK.
5168 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
5169 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
5170 virtual base classes.
5171 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
5172 FIELD_LOC_KIND_DWARF_BLOCK.
5173
f8e89861
TT
51742020-04-24 Tom Tromey <tromey@adacore.com>
5175
5176 * dwarf2/read.c (read_structure_type): Handle dynamic length.
5177 * gdbtypes.c (is_dynamic_type_internal): Check
5178 TYPE_HAS_DYNAMIC_LENGTH.
5179 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
5180 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
5181 New macros.
5182 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
5183 constant.
5184
9c6a1327
TT
51852020-04-24 Tom Tromey <tromey@adacore.com>
5186
5187 * dwarf2/read.c (struct variant_field): Rewrite.
5188 (struct variant_part_builder): New.
5189 (struct nextfield): Remove "variant" field. Add "offset".
5190 (struct field_info): Add "current_variant_part" and
5191 "variant_parts".
5192 (alloc_discriminant_info): Remove.
5193 (alloc_rust_variant): New function.
5194 (quirk_rust_enum): Update.
5195 (dwarf2_add_field): Set "offset" member. Don't handle
5196 DW_TAG_variant_part.
5197 (offset_map_type): New typedef.
5198 (convert_variant_range, create_one_variant)
5199 (create_one_variant_part, create_variant_parts)
5200 (add_variant_property): New functions.
5201 (dwarf2_attach_fields_to_type): Call add_variant_property.
5202 (read_structure_type): Don't handle DW_TAG_variant_part.
5203 (handle_variant_part, handle_variant): New functions.
5204 (handle_struct_member_die): Use them.
5205 (process_structure_scope): Don't handle variant parts.
5206 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
5207 (struct discriminant_info): Remove.
5208 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
5209 (struct main_type) <flag_discriminated_union>: Remove.
5210 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
5211 (rust_enum_variant): Return int. Remove "contents". Rewrite.
5212 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
5213 Update.
5214 * valops.c (value_union_variant): Remove.
5215 * value.h (value_union_variant): Don't declare.
5216
b249d2c2
TT
52172020-04-24 Tom Tromey <tromey@adacore.com>
5218
5219 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
5220 (ada_value_primitive_packed_val): Update.
5221 * ada-valprint.c (ada_value_print_1): Update.
5222 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
5223 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
5224 just an address. Use evaluate_for_locexpr_baton.
5225 (dwarf2_evaluate_property): Update.
5226 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
5227 array_view.
5228 * findvar.c (default_read_var_value): Update.
5229 * gdbtypes.c (compute_variant_fields_inner)
5230 (resolve_dynamic_type_internal): Update.
5231 (resolve_dynamic_type): Change type of valaddr parameter.
5232 * gdbtypes.h (resolve_dynamic_type): Update.
5233 * valarith.c (value_subscripted_rvalue): Update.
5234 * value.c (value_from_contents_and_address): Update.
5235
61122aa9
TT
52362020-04-24 Tom Tromey <tromey@adacore.com>
5237
5238 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
5239 "push_initial_value" parameter.
5240 (dwarf2_evaluate_property): Likewise.
5241 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
5242
ef83a141
TT
52432020-04-24 Tom Tromey <tromey@adacore.com>
5244
5245 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
5246 (variant::matches, compute_variant_fields_recurse)
5247 (compute_variant_fields_inner, compute_variant_fields): New
5248 functions.
5249 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
5250 Use resolved_type after type is made.
5251 (operator==): Add new cases.
5252 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
5253 (struct discriminant_range, struct variant, struct variant_part):
5254 New.
5255 (union dynamic_prop_data) <variant_parts, original_type>: New
5256 members.
5257 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
5258 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
5259 constants.
5260 * value.c (unpack_bits_as_long): Now public.
5261 * value.h (unpack_bits_as_long): Declare.
5262
675127ec
TT
52632020-04-24 Tom Tromey <tromey@adacore.com>
5264
5265 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
5266 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
5267
9852ceef
HD
52682020-04-24 Hannes Domani <ssbssa@yahoo.de>
5269
5270 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
5271
7632c6ce
KR
52722020-04-24 Kamil Rytarowski <n54@gmx.com>
5273
5274 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
5275 (remove_fork_catchpoint, post_startup_inferior)
5276 (post_attach): Move...
5277 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
5278 (remove_fork_catchpoint, post_startup_inferior)
5279 (post_attach): ...here.
5280 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
5281 (remove_fork_catchpoint, post_startup_inferior)
5282 (post_attach): Move...
5283 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
5284 (remove_fork_catchpoint, post_startup_inferior)
5285 (post_attach): ...here.
5286
7be2bb4f
TT
52872020-04-24 Tom Tromey <tromey@adacore.com>
5288
5289 * nat/windows-nat.h (struct windows_thread_info)
5290 <pc_adjusted>: New member.
5291 * windows-nat.c (windows_fetch_one_register): Check
5292 pc_adjusted.
5293 (windows_nat_target::get_windows_debug_event)
5294 (windows_nat_target::wait): Set pc_adjusted.
5295
f80cb3b4
TV
52962020-04-24 Tom de Vries <tdevries@suse.de>
5297
5298 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
5299 Run gdb-add-index inside temp dir.
5300
29514b87
TT
53012020-04-23 Tom Tromey <tromey@adacore.com>
5302
5303 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
5304 in loop.
5305
5939967b
LM
53062020-04-23 Luis Machado <luis.machado@linaro.org>
5307
5308 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
5309 get_frame_register instead of gdbarch_unwind_pc.
5310
70bc38f5
TV
53112020-04-23 Tom de Vries <tdevries@suse.de>
5312
5313 * symtab.c (lookup_global_symbol): Prefer def over decl.
5314
de82891c
TV
53152020-04-23 Tom de Vries <tdevries@suse.de>
5316
5317 PR symtab/25807
5318 * block.c (best_symbol, better_symbol): Promote to external.
5319 * block.h (best_symbol, better_symbol): Declare.
5320 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
5321 decl.
5322
ecc6c606
TT
53232020-04-23 Tom Tromey <tromey@adacore.com>
5324
5325 PR ada/25837:
5326 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
5327 "const char *", not a "const std::string &".
5328 <name_and_matcher::operator==>: Update.
5329 * unittests/lookup_name_info-selftests.c: Change type of
5330 "result".
5331
740480b8
TT
53322020-04-23 Tom Tromey <tom@tromey.com>
5333
5334 * inferior.h (iterate_over_inferiors): Don't declare.
5335 * inferior.c (iterate_over_inferiors): Remove.
5336 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
5337 Remove.
5338 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
5339 use iterate_over_inferiors.
5340 (darwin_resume_inferior_it)
5341 (struct resume_inferior_threads_param)
5342 (darwin_resume_inferior_threads_it): Remove.
5343 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
5344
ae3ab1f0
TV
53452020-04-23 Tom de Vries <tdevries@suse.de>
5346
5347 * blockframe.c (find_pc_partial_function): Use
5348 find_pc_sect_compunit_symtab rather than
5349 objfile->sf->qf->find_pc_sect_compunit_symtab.
5350
317d2668
TV
53512020-04-22 Tom de Vries <tdevries@suse.de>
5352
5353 PR symtab/25764
5354 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
5355 in psymtabs.
5356
eea9e357
TV
53572020-04-22 Tom de Vries <tdevries@suse.de>
5358
5359 PR symtab/25801
5360 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
5361 symtabs.
5362
3d5afab3
TV
53632020-04-22 Tom de Vries <tdevries@suse.de>
5364
5365 PR symtab/25700
5366 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
5367 CU if already created.
5368
d43b7a2d
TBA
53692020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5370
5371 * infrun.c (displaced_step_fixup): Switch to the event_thread
5372 before calling displaced_step_restore, not after.
5373
d89edf9b
MM
53742020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5375
5376 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
5377 its inferior is not recorded by us.
5378 (record_btrace_target_open): Replace call to
5379 all_non_exited_threads () with call to current_inferior
5380 ()->non_exited_threads ().
5381 (record_btrace_target::stop_recording): Likewise.
5382 (record_btrace_target::close): Likewise.
5383 (record_btrace_target::wait): Likewise.
5384 (record_btrace_target::record_stop_replaying): Likewise.
5385
5897fd49
MM
53862020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5387
5388 * btrace.c (btrace_enable): Throw an error on double enables and
5389 when enabling recording fails.
5390 (btrace_disable): Throw an error if the thread is not recorded.
5391
1a476b6d
MM
53922020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5393
5394 * record-btrace.c (record_btrace_target::fetch_registers): Forward
5395 request if we do not have a thread_info.
5396
4778a5f8
TV
53972020-04-21 Tom de Vries <tdevries@suse.de>
5398
5399 PR gdb/25471
5400 * thread.c
5401 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
5402 exception in get_frame_id.
5403
0fa7617d
TT
54042020-04-20 Tom Tromey <tromey@adacore.com>
5405
5406 * python/python.c (struct gdbpy_event): Mark move constructor as
5407 noexcept.
5408 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
5409 constructor as noexcept.
5410 * completer.h (struct completion_result): Mark move constructor as
5411 noexcept.
5412 * completer.c (completion_result::completion_result): Use
5413 initialization style. Don't call reset_match_list.
5414
ad23bda0
MS
54152020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
5416
5417 * MAINTAINERS (Write After Approval): Add myself.
5418
45e1f031
TT
54192020-04-18 Tom Tromey <tom@tromey.com>
5420
5421 * windows-tdep.c (init_w32_command_list)
5422 (w32_prefix_command_valid): Restore.
5423 (_initialize_windows_tdep): Call init_w32_command_list.
5424
08feed99
TT
54252020-04-18 Tom Tromey <tom@tromey.com>
5426
5427 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
5428 * value.c (value_fn_field): Update.
5429 * valops.c (find_function_in_inferior)
5430 (value_allocate_space_in_inferior): Update.
5431 * tui/tui-winsource.c (tui_update_source_windows_with_line):
5432 Update.
5433 * tui/tui-source.c (tui_source_window::set_contents): Update.
5434 * symtab.c (lookup_global_or_static_symbol)
5435 (find_function_start_sal_1, skip_prologue_sal)
5436 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
5437 * symmisc.c (dump_msymbols, dump_symtab_1)
5438 (maintenance_print_one_line_table): Update.
5439 * symfile.c (init_entry_point_info, section_is_mapped)
5440 (list_overlays_command, simple_read_overlay_table)
5441 (simple_overlay_update_1): Update.
5442 * stap-probe.c (handle_stap_probe): Update.
5443 * stabsread.c (dbx_init_float_type, define_symbol)
5444 (read_one_struct_field, read_enum_type, read_range_type): Update.
5445 * source.c (info_line_command): Update.
5446 * python/python.c (gdbpy_source_objfile_script)
5447 (gdbpy_execute_objfile_script): Update.
5448 * python/py-type.c (save_objfile_types): Update.
5449 * python/py-objfile.c (py_free_objfile): Update.
5450 * python/py-inferior.c (python_new_objfile): Update.
5451 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
5452 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
5453 (maintenance_check_psymtabs): Update.
5454 * printcmd.c (info_address_command): Update.
5455 * objfiles.h (struct objfile) <arch>: New method, from
5456 get_objfile_arch.
5457 (get_objfile_arch): Don't declare.
5458 * objfiles.c (get_objfile_arch): Remove.
5459 (filter_overlapping_sections): Update.
5460 * minsyms.c (msymbol_is_function): Update.
5461 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
5462 (output_nondebug_symbol): Update.
5463 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
5464 (mdebug_expand_psymtab): Update.
5465 * machoread.c (macho_add_oso_symfile): Update.
5466 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
5467 Update.
5468 * linux-fork.c (checkpoint_command): Update.
5469 * linespec.c (convert_linespec_to_sals): Update.
5470 * jit.c (finalize_symtab): Update.
5471 * infrun.c (insert_exception_resume_from_probe): Update.
5472 * ia64-tdep.c (ia64_find_unwind_table): Update.
5473 * hppa-tdep.c (internalize_unwinds): Update.
5474 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
5475 Update.
5476 * gcore.c (call_target_sbrk): Update.
5477 * elfread.c (record_minimal_symbol, elf_symtab_read)
5478 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
5479 (elf_gnu_ifunc_resolve_by_got): Update.
5480 * dwarf2/read.c (create_addrmap_from_index)
5481 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
5482 (read_debug_names_from_section)
5483 (process_psymtab_comp_unit_reader, add_partial_symbol)
5484 (add_partial_subprogram, process_full_comp_unit)
5485 (read_file_scope, read_func_scope, read_lexical_block_scope)
5486 (read_call_site_scope, dwarf2_ranges_read)
5487 (dwarf2_record_block_ranges, dwarf2_add_field)
5488 (mark_common_block_symbol_computed, read_tag_pointer_type)
5489 (read_tag_string_type, dwarf2_init_float_type)
5490 (dwarf2_init_complex_target_type, read_base_type)
5491 (partial_die_info::read, partial_die_info::read)
5492 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
5493 (dwarf2_fetch_die_loc_sect_off): Update.
5494 * dwarf2/loc.c (dwarf2_find_location_expression)
5495 (class dwarf_evaluate_loc_desc, rw_pieced_value)
5496 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
5497 (dwarf2_loc_desc_get_symbol_read_needs)
5498 (locexpr_describe_location_piece, locexpr_describe_location_1)
5499 (loclist_describe_location): Update.
5500 * dwarf2/index-write.c (write_debug_names): Update.
5501 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
5502 * dtrace-probe.c (dtrace_process_dof): Update.
5503 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
5504 (process_one_symbol): Update.
5505 * ctfread.c (ctf_init_float_type, read_base_type): Update.
5506 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
5507 (coff_read_enum_type): Update.
5508 * cli/cli-cmds.c (edit_command, list_command): Update.
5509 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
5510 * breakpoint.c (create_overlay_event_breakpoint)
5511 (create_longjmp_master_breakpoint)
5512 (create_std_terminate_master_breakpoint)
5513 (create_exception_master_breakpoint, get_sal_arch): Update.
5514 * block.c (block_gdbarch): Update.
5515 * annotate.c (annotate_source_line): Update.
5516
0743fc83
TT
55172020-04-17 Tom Tromey <tromey@adacore.com>
5518
5519 * auto-load.c (show_auto_load_cmd): Remove.
5520 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
5521 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
5522 (maintenance_print_arc_command): Remove.
5523 * tui/tui-win.c (tui_command): Remove.
5524 (tui_get_cmd_list): Use add_basic_prefix_cmd.
5525 * tui/tui-layout.c (tui_layout_command): Remove.
5526 (_initialize_tui_layout): Use add_basic_prefix_cmd.
5527 * python/python.c (user_set_python, user_show_python): Remove.
5528 (_initialize_python): Use add_basic_prefix_cmd,
5529 add_show_prefix_cmd.
5530 * guile/guile.c (set_guile_command, show_guile_command): Remove.
5531 (install_gdb_commands): Use add_basic_prefix_cmd,
5532 add_show_prefix_cmd.
5533 (info_guile_command): Remove.
5534 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
5535 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
5536 add_show_prefix_cmd.
5537 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
5538 Remove do_set and do_show parameters.
5539 * cli/cli-style.c (set_style, show_style): Remove.
5540 (_initialize_cli_style): Use add_basic_prefix_cmd,
5541 add_show_prefix_cmd.
5542 (cli_style_option::add_setshow_commands): Remove do_set and
5543 do_show parameters.
5544 (cli_style_option::add_setshow_commands): Use
5545 add_basic_prefix_cmd, add_show_prefix_cmd.
5546 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
5547 (set_style_name): Remove.
5548 * cli/cli-dump.c (dump_command, append_command): Remove.
5549 (srec_dump_command, ihex_dump_command, verilog_dump_command)
5550 (tekhex_dump_command, binary_dump_command)
5551 (binary_append_command): Remove.
5552 (_initialize_cli_dump): Use add_basic_prefix_cmd.
5553 * windows-tdep.c (w32_prefix_command_valid): Remove global.
5554 (init_w32_command_list): Remove; move into ...
5555 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
5556 * valprint.c (set_print, show_print, set_print_raw)
5557 (show_print_raw): Remove.
5558 (_initialize_valprint): Use add_basic_prefix_cmd,
5559 add_show_prefix_cmd.
5560 * typeprint.c (set_print_type, show_print_type): Remove.
5561 (_initialize_typeprint): Use add_basic_prefix_cmd,
5562 add_show_prefix_cmd.
5563 * record.c (set_record_command, show_record_command): Remove.
5564 (_initialize_record): Use add_basic_prefix_cmd,
5565 add_show_prefix_cmd.
5566 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
5567 add_show_prefix_cmd.
5568 (info_command, show_command, set_debug, show_debug): Remove.
5569 * top.h (set_history, show_history): Don't declare.
5570 * top.c (set_history, show_history): Remove.
5571 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
5572 (unset_tdesc_cmd): Remove.
5573 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
5574 add_show_prefix_cmd.
5575 * symtab.c (info_module_command): Remove.
5576 (_initialize_symtab): Use add_basic_prefix_cmd.
5577 * symfile.c (overlay_command): Remove.
5578 (_initialize_symfile): Use add_basic_prefix_cmd.
5579 * sparc64-tdep.c (info_adi_command): Remove.
5580 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
5581 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
5582 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
5583 add_show_prefix_cmd.
5584 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
5585 (_initialize_serial): Use add_basic_prefix_cmd,
5586 add_show_prefix_cmd.
5587 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
5588 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
5589 add_show_prefix_cmd.
5590 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
5591 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
5592 add_show_prefix_cmd.
5593 * riscv-tdep.c (show_riscv_command, set_riscv_command)
5594 (show_debug_riscv_command, set_debug_riscv_command): Remove.
5595 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
5596 add_show_prefix_cmd.
5597 * remote.c (remote_command, set_remote_cmd): Remove.
5598 (_initialize_remote): Use add_basic_prefix_cmd.
5599 * record-full.c (set_record_full_command)
5600 (show_record_full_command): Remove.
5601 (_initialize_record_full): Use add_basic_prefix_cmd,
5602 add_show_prefix_cmd.
5603 * record-btrace.c (cmd_set_record_btrace)
5604 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
5605 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
5606 (cmd_show_record_btrace_pt): Remove.
5607 (_initialize_record_btrace): Use add_basic_prefix_cmd,
5608 add_show_prefix_cmd.
5609 * ravenscar-thread.c (set_ravenscar_command)
5610 (show_ravenscar_command): Remove.
5611 (_initialize_ravenscar): Use add_basic_prefix_cmd,
5612 add_show_prefix_cmd.
5613 * mips-tdep.c (show_mips_command, set_mips_command)
5614 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
5615 add_show_prefix_cmd.
5616 * maint.c (maintenance_command, maintenance_info_command)
5617 (maintenance_check_command, maintenance_print_command)
5618 (maintenance_set_cmd, maintenance_show_cmd): Remove.
5619 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
5620 add_show_prefix_cmd.
5621 (show_per_command_cmd): Remove.
5622 * maint-test-settings.c (maintenance_set_test_settings_cmd):
5623 Remove.
5624 (maintenance_show_test_settings_cmd): Remove.
5625 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
5626 add_show_prefix_cmd.
5627 * maint-test-options.c (maintenance_test_options_command):
5628 Remove.
5629 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
5630 * macrocmd.c (macro_command): Remove
5631 (_initialize_macrocmd): Use add_basic_prefix_cmd.
5632 * language.c (set_check, show_check): Remove.
5633 (_initialize_language): Use add_basic_prefix_cmd,
5634 add_show_prefix_cmd.
5635 * infcmd.c (unset_command): Remove.
5636 (_initialize_infcmd): Use add_basic_prefix_cmd.
5637 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
5638 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
5639 add_show_prefix_cmd.
5640 * go32-nat.c (go32_info_dos_command): Remove.
5641 (_initialize_go32_nat): Use add_basic_prefix_cmd.
5642 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
5643 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
5644 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
5645 (_initialize_frame): Use add_basic_prefix_cmd,
5646 add_show_prefix_cmd.
5647 * dcache.c (set_dcache_command, show_dcache_command): Remove.
5648 (_initialize_dcache): Use add_basic_prefix_cmd,
5649 add_show_prefix_cmd.
5650 * cp-support.c (maint_cplus_command): Remove.
5651 (_initialize_cp_support): Use add_basic_prefix_cmd.
5652 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
5653 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
5654 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
5655 add_basic_prefix_cmd, add_show_prefix_cmd.
5656 * breakpoint.c (save_command): Remove.
5657 (_initialize_breakpoint): Use add_basic_prefix_cmd.
5658 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
5659 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
5660 add_show_prefix_cmd.
5661 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
5662 (set_ada_command, show_ada_command): Remove.
5663 (_initialize_ada_language): Use add_basic_prefix_cmd,
5664 add_show_prefix_cmd.
5665 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
5666
3557f442
KR
56672020-04-16 Kamil Rytarowski <n54@gmx.com>
5668
5669 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
5670 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
5671
16197208
SM
56722020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
5673
5674 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
5675 warning messages.
5676
00ac85d3
SM
56772020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
5678
5679 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
5680 import table is not at beginning of .idata section.
5681
381ce63f
PA
56822020-04-16 Pedro Alves <palves@redhat.com>
5683
5684 * inferior.c (delete_inferior): Use delete operator directly
5685 instead of delete_program_space.
5686 * progspace.c (add_program_space): New, factored out from
5687 program_space::program_space.
5688 (remove_program_space): New, factored out from
5689 delete_program_space.
5690 (program_space::program_space): Remove intro comment. Rewrite.
5691 (program_space::~program_space): Remove intro comment. Call
5692 remove_program_space.
5693 (delete_program_space): Delete.
5694 * progspace.h (program_space::program_space): Make explicit. Move
5695 intro comment here, adjusted.
5696 (program_space::~program_space): Move intro comment here,
5697 adjusted.
5698 (delete_program_space): Remove.
5699
a010605f
TT
57002020-04-16 Tom Tromey <tromey@adacore.com>
5701
5702 * windows-nat.c (windows_nat::handle_access_violation): New
5703 function.
5704 * nat/windows-nat.h (handle_access_violation): Declare.
5705 * nat/windows-nat.c (handle_exception): Move Cygwin code to
5706 windows-nat.c. Call handle_access_violation.
5707
efba5c23
TV
57082020-04-16 Tom de Vries <tdevries@suse.de>
5709
5710 PR symtab/25791
5711 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
5712 CUs without psymtab.
5713
97ed802d
KB
57142020-04-16 Kevin Buettner <kevinb@redhat.com>
5715
5716 * python/python.c (do_start_initialization): Don't call
5717 PyEval_InitThreads for Python 3.9 and beyond.
5718
c7d64809
KR
57192020-04-15 Kamil Rytarowski <n54@gmx.com>
5720
5721 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
5722 thread functions.
5723 (obsd_nat_target::wait): Likewise.
5724
ce127a96
TT
57252020-04-15 Tom Tromey <tromey@adacore.com>
5726
5727 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
5728 (DEBUG_EXCEPT): Use debug_printf.
5729
99f1bc6a
AB
57302020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
5731
5732 * completer.c (class completion_tracker::completion_hash_entry)
5733 <hash_name>: New member function.
5734 (completion_tracker::discard_completions): New callback to hash a
5735 completion_hash_entry, pass this to htab_create_alloc.
5736
a0e9b532
JT
57372016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
5738
5739 * windows-nat.c (windows_make_so): Warn rather than stopping with
5740 an error if realpath() fails.
5741
06ca5dd4
KR
57422020-04-14 Kamil Rytarowski <n54@gmx.com>
5743
5744 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
5745 (nbsd_nat_target::info_proc): Add do_status.
5746
194d088f
TV
57472020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
5748 Tom de Vries <tdevries@suse.de>
5749
5750 PR symtab/25718
5751 * psympriv.h (struct partial_symtab::read_symtab)
5752 (struct partial_symtab::expand_psymtab)
5753 (struct partial_symtab::read_dependencies): Update comments.
5754 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
5755 read_symtab for includer.
5756 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
5757 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
5758 (struct dwarf2_include_psymtab::m_readin): Remove.
5759 (struct dwarf2_include_psymtab::includer): New member function.
5760 (dwarf2_psymtab::expand_psymtab): Assert !readin.
5761
c1a66c06
TV
57622020-04-14 Tom de Vries <tdevries@suse.de>
5763
5764 PR symtab/25720
5765 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
5766 with NULL symbol_matcher and lookup_name.
5767 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
5768 and lookup_name.
5769 * dwarf2/read.c (dw2_expand_symtabs_matching)
5770 (dw2_debug_names_expand_symtabs_matching): Same.
5771 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
5772 Make lookup_name a pointer. Update comment.
5773 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
5774 lookup_name being a pointer.
5775 * symfile.c (expand_symtabs_matching): Same.
5776 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
5777 * linespec.c (iterate_over_all_matching_symtabs): Same.
5778
400b5eca
TT
57792020-04-13 Tom Tromey <tom@tromey.com>
5780
5781 * run-on-main-thread.c: Update include.
5782 * unittests/main-thread-selftests.c: Update include.
5783 * tui/tui-win.c: Update include.
5784 * tui/tui-io.c: Update include.
5785 * tui/tui-interp.c: Update include.
5786 * tui/tui-hooks.c: Update include.
5787 * top.h: Update include.
5788 * top.c: Update include.
5789 * ser-base.c: Update include.
5790 * remote.c: Update include.
5791 * remote-notif.c: Update include.
5792 * remote-fileio.c: Update include.
5793 * record-full.c: Update include.
5794 * record-btrace.c: Update include.
5795 * python/python.c: Update include.
5796 * posix-hdep.c: Update include.
5797 * mingw-hdep.c: Update include.
5798 * mi/mi-main.c: Update include.
5799 * mi/mi-interp.c: Update include.
5800 * main.c: Update include.
5801 * linux-nat.c: Update include.
5802 * interps.c: Update include.
5803 * infrun.c: Update include.
5804 * inf-loop.c: Update include.
5805 * event-top.c: Update include.
5806 * event-loop.c: Move to ../gdbsupport/.
5807 * event-loop.h: Move to ../gdbsupport/.
5808 * async-event.h: Update include.
5809 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
5810
93b54c8e
TT
58112020-04-13 Tom Tromey <tom@tromey.com>
5812
5813 * tui/tui-win.c: Include async-event.h.
5814 * remote.c: Include async-event.h.
5815 * remote-notif.c: Include async-event.h.
5816 * record-full.c: Include async-event.h.
5817 * record-btrace.c: Include async-event.h.
5818 * infrun.c: Include async-event.h.
5819 * event-top.c: Include async-event.h.
5820 * event-loop.h: Move some declarations to async-event.h.
5821 * event-loop.c: Don't include ser-event.h or top.h. Move some
5822 code to async-event.c.
5823 * async-event.h: New file.
5824 * async-event.c: New file.
5825 * Makefile.in (COMMON_SFILES): Add async-event.c.
5826 (HFILES_NO_SRCDIR): Add async-event.h.
5827
c1cd3163
TT
58282020-04-13 Tom Tromey <tom@tromey.com>
5829
5830 * utils.c (flush_streams): New function.
5831 * event-loop.c (gdb_wait_for_event): Call flush_streams.
5832
29f2bf4f
TT
58332020-04-13 Tom Tromey <tom@tromey.com>
5834
5835 * event-loop.c (handle_file_event): Use warning, not
5836 printf_unfiltered.
5837
98029d02
TT
58382020-04-13 Tom Tromey <tom@tromey.com>
5839
5840 * event-loop.c: Include <chrono>.
5841
06cc9596
TT
58422020-04-13 Tom Tromey <tom@tromey.com>
5843
5844 * gdb_select.h: Move to ../gdbsupport/.
5845 * event-loop.c: Update include path.
5846 * top.c: Update include path.
5847 * ser-base.c: Update include path.
5848 * ui-file.c: Update include path.
5849 * ser-tcp.c: Update include path.
5850 * guile/scm-ports.c: Update include path.
5851 * posix-hdep.c: Update include path.
5852 * ser-unix.c: Update include path.
5853 * gdb_usleep.c: Update include path.
5854 * mingw-hdep.c: Update include path.
5855 * inflow.c: Update include path.
5856 * infrun.c: Update include path.
5857 * event-top.c: Update include path.
5858
8ae8e197
TT
58592020-04-13 Tom Tromey <tom@tromey.com>
5860
5861 * configure: Rebuild.
5862 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
5863
58cf28e8
TT
58642020-04-13 Tom Tromey <tom@tromey.com>
5865
5866 * event-loop.h (start_event_loop): Don't declare.
5867 * event-loop.c (start_event_loop): Move...
5868 * main.c (start_event_loop): ...here. Now static.
5869
b7f999ae
SDJ
58702020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
5871
5872 * MAINTAINERS: Update my email address.
5873
1085dfd4
KR
58742020-04-12 Kamil Rytarowski <n54@gmx.com>
5875
5876 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
5877 IP_ALL.
5878
49d1d1f5
KR
58792020-04-12 Kamil Rytarowski <n54@gmx.com>
5880
5881 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 5882 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 5883
b4848d2a
KR
58842020-04-12 Kamil Rytarowski <n54@gmx.com>
5885
5886 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 5887 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 5888
51c133d5
KR
58892020-04-12 Kamil Rytarowski <n54@gmx.com>
5890
5891 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
5892
54b8cbd0
KR
58932020-04-11 Kamil Rytarowski <n54@gmx.com>
5894
5895 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
5896 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
5897 (nbsd_nat_target::info_proc): New functions.
5898 * nbsd-nat.c (kinfo_get_vmmap): New function.
5899 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
5900 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
5901 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
5902 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
5903 functions.
5904 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
5905 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
5906 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
5907 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
5908 (KINFO_VME_FLAG_GROWS_DOWN): New.
5909
cf83625d
AS
59102020-04-10 Artur Shepilko <nomadbyte@gmail.com>
5911
5912 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
5913 bit shift.
5914
0c4311ab
TT
59152020-04-10 Tom Tromey <tromey@adacore.com>
5916
5917 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
5918
3e65b3e9
TT
59192020-04-10 Tom Tromey <tromey@adacore.com>
5920
5921 * symtab.c (get_symbol_address, get_msymbol_address): Skip
5922 separate debug files.
5923
13302e95
HD
59242020-04-10 Hannes Domani <ssbssa@yahoo.de>
5925
5926 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5927 Move to...
5928 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5929 ... here.
5930 * windows-nat.c (windows_nat_target::get_windows_debug_event):
5931 Check for STATUS_WX86_BREAKPOINT.
5932 (windows_nat_target::wait): Same.
5933
bdfc1e8a
TV
59342020-04-10 Tom de Vries <tdevries@suse.de>
5935
5936 PR cli/25808
5937 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
5938
f4460aec
SM
59392020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
5940
5941 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
5942 (Write After Approval): Remove Tom de Vries.
5943
a25198bb
BE
59442020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
5945
5946 revert partially:
5947 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5948
aac66a4c
SM
5949 * buildsym.c (record_line): Fix undefined behavior and preserve
5950 lines at eof.
a25198bb 5951
206c98a6
KR
59522020-04-09 Kamil Rytarowski <n54@gmx.com>
5953
5954 * auxv.h (svr4_auxv_parse): New.
5955 * auxv.c (default_auxv_parse): Split into default_auxv_parse
5956 and generic_auxv_parse.
5957 (svr4_auxv_parse): Add.
5958 * obsd-tdep.c: Include "auxv.h".
5959 (obsd_auxv_parse): Remove.
5960 (obsd_init_abi): Remove comment.
5961 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
5962 from `obsd_auxv_parse' to `svr4_auxv_parse'.
5963 * nbsd-tdep.c: Include "auxv.h".
5964 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
5965
71fbdbaf
TT
59662020-04-08 Tom Tromey <tromey@adacore.com>
5967
5968 * nat/windows-nat.h (last_wait_event): Don't declare.
5969 (wait_for_debug_event): Update comment.
5970 * nat/windows-nat.c (last_wait_event): Now static.
5971
2c1d95e8
TT
59722020-04-08 Tom Tromey <tromey@adacore.com>
5973
5974 * windows-nat.c (wait_for_debug_event): Move to
5975 nat/windows-nat.c.
5976 * nat/windows-nat.h (wait_for_debug_event): Declare.
5977 * nat/windows-nat.c (wait_for_debug_event): Move from
5978 windows-nat.c. No longer static.
5979
d2977bc4
TT
59802020-04-08 Tom Tromey <tromey@adacore.com>
5981
5982 * windows-nat.c (get_windows_debug_event): Use
5983 fetch_pending_stop.
5984 * nat/windows-nat.h (fetch_pending_stop): Declare.
5985 * nat/windows-nat.c (fetch_pending_stop): New function.
5986
e758e19c
TT
59872020-04-08 Tom Tromey <tromey@adacore.com>
5988
5989 * windows-nat.c (windows_continue): Use matching_pending_stop and
5990 continue_last_debug_event.
5991 * nat/windows-nat.h (matching_pending_stop)
5992 (continue_last_debug_event): Declare.
5993 * nat/windows-nat.c (DEBUG_EVENTS): New define.
5994 (matching_pending_stop, continue_last_debug_event): New
5995 functions.
5996
8d30e395
TT
59972020-04-08 Tom Tromey <tromey@adacore.com>
5998
5999 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
6000 (handle_exception_result): Move to nat/windows-nat.h.
6001 (DEBUG_EXCEPTION_SIMPLE): Remove.
6002 (windows_nat::handle_ms_vc_exception): New function.
6003 (handle_exception): Move to nat/windows-nat.c.
6004 (get_windows_debug_event): Update.
6005 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
6006 nat/windows-nat.c.
6007 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
6008 (handle_exception_result): Move from windows-nat.c.
6009 (handle_exception): Declare.
6010 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
6011 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
6012 windows-nat.c.
6013
29de418d
TT
60142020-04-08 Tom Tromey <tromey@adacore.com>
6015
6016 * windows-nat.c (exception_count, event_count): Remove.
6017 (handle_exception, get_windows_debug_event)
6018 (do_initial_windows_stuff): Update.
6019
a816ba18
TT
60202020-04-08 Tom Tromey <tromey@adacore.com>
6021
6022 * windows-nat.c (windows_nat::handle_load_dll)
6023 (windows_nat::handle_unload_dll): Rename. No longer static.
6024 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
6025 Declare.
6026
a00caa12
TT
60272020-04-08 Tom Tromey <tromey@adacore.com>
6028
6029 * complaints.h (stop_whining): Declare at top-level.
6030 (complaint): Don't declare stop_whining.
6031
d41b524f
TT
60322020-04-08 Tom Tromey <tromey@adacore.com>
6033
6034 * windows-nat.c (windows_nat::handle_output_debug_string):
6035 Rename. No longer static.
6036 * nat/windows-nat.h (handle_output_debug_string): Declare.
6037
3c76026d
TT
60382020-04-08 Tom Tromey <tromey@adacore.com>
6039
6040 * windows-nat.c (current_process_handle, current_process_id)
6041 (main_thread_id, last_sig, current_event, last_wait_event)
6042 (current_windows_thread, desired_stop_thread_id, pending_stops)
6043 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
6044 (display_selectors, fake_create_process)
6045 (get_windows_debug_event): Update.
6046 * nat/windows-nat.h (current_process_handle, current_process_id)
6047 (main_thread_id, last_sig, current_event, last_wait_event)
6048 (current_windows_thread, desired_stop_thread_id, pending_stops)
6049 (struct pending_stop, siginfo_er): Move from windows-nat.c.
6050 * nat/windows-nat.c (current_process_handle, current_process_id)
6051 (main_thread_id, last_sig, current_event, last_wait_event)
6052 (current_windows_thread, desired_stop_thread_id, pending_stops)
6053 (siginfo_er): New globals. Move from windows-nat.c.
6054
9d8679cc
TT
60552020-04-08 Tom Tromey <tromey@adacore.com>
6056
6057 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
6058 (handle_load_dll): Update.
6059 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
6060
28688adf
TT
60612020-04-08 Tom Tromey <tromey@adacore.com>
6062
6063 * windows-nat.c (enum thread_disposition_type): Move to
6064 nat/windows-nat.h.
6065 (windows_nat::thread_rec): Rename from thread_rec. No longer
6066 static.
6067 (windows_add_thread, windows_nat_target::fetch_registers)
6068 (windows_nat_target::store_registers, handle_exception)
6069 (windows_nat_target::resume, get_windows_debug_event)
6070 (windows_nat_target::get_tib_address)
6071 (windows_nat_target::thread_name)
6072 (windows_nat_target::thread_alive): Update.
6073 * nat/windows-nat.h (enum thread_disposition_type): Move from
6074 windows-nat.c.
6075 (thread_rec): Declare.
6076
4834dad0
TT
60772020-04-08 Tom Tromey <tromey@adacore.com>
6078
6079 * windows-nat.c: Add "using namespace".
6080 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
6081 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
6082
65bafd5b
TT
60832020-04-08 Tom Tromey <tromey@adacore.com>
6084
6085 * nat/windows-nat.h (struct windows_thread_info): Declare
6086 destructor.
6087 * nat/windows-nat.c (~windows_thread_info): New.
6088
0a4afda3
TT
60892020-04-08 Tom Tromey <tromey@adacore.com>
6090
6091 PR gdb/22992
6092 * windows-nat.c (current_event): Update comment.
6093 (last_wait_event, desired_stop_thread_id): New globals.
6094 (struct pending_stop): New.
6095 (pending_stops): New global.
6096 (windows_nat_target) <stopped_by_sw_breakpoint>
6097 <supports_stopped_by_sw_breakpoint>: New methods.
6098 (windows_fetch_one_register): Add assertions. Adjust PC.
6099 (windows_continue): Handle pending stops. Suspend other threads
6100 when stepping. Use last_wait_event
6101 (wait_for_debug_event): New function.
6102 (get_windows_debug_event): Use wait_for_debug_event. Handle
6103 pending stops. Queue spurious stops.
6104 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
6105 (windows_nat_target::kill): Use wait_for_debug_event.
6106 * nat/windows-nat.h (struct windows_thread_info)
6107 <stopped_at_software_breakpoint>: New field.
6108 * nat/windows-nat.c (windows_thread_info::resume): Clear
6109 stopped_at_software_breakpoint.
6110
8e61ebec
TT
61112020-04-08 Tom Tromey <tromey@adacore.com>
6112
6113 * windows-nat.c (enum thread_disposition_type): New.
6114 (thread_rec): Replace "get_context" parameter with "disposition";
6115 change type.
6116 (windows_add_thread, windows_nat_target::fetch_registers)
6117 (windows_nat_target::store_registers, handle_exception)
6118 (windows_nat_target::resume, get_windows_debug_event)
6119 (windows_nat_target::get_tib_address)
6120 (windows_nat_target::thread_name)
6121 (windows_nat_target::thread_alive): Update.
6122
98a03287
TT
61232020-04-08 Tom Tromey <tromey@adacore.com>
6124
6125 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
6126 (windows_continue): Use windows_continue::resume.
6127 * nat/windows-nat.h (struct windows_thread_info) <suspend,
6128 resume>: Declare new methods.
6129 * nat/windows-nat.c: New file.
6130 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
6131
7c7411bc
TT
61322020-04-08 Tom Tromey <tromey@adacore.com>
6133
6134 * windows-nat.c (windows_add_thread, windows_delete_thread)
6135 (windows_nat_target::fetch_registers)
6136 (windows_nat_target::store_registers, fake_create_process)
6137 (windows_nat_target::resume, windows_nat_target::resume)
6138 (get_windows_debug_event, windows_nat_target::wait)
6139 (windows_nat_target::pid_to_str)
6140 (windows_nat_target::get_tib_address)
6141 (windows_nat_target::get_ada_task_ptid)
6142 (windows_nat_target::thread_name)
6143 (windows_nat_target::thread_alive): Use lwp, not tid.
6144
2950fdf7
TT
61452020-04-08 Tom Tromey <tromey@adacore.com>
6146
6147 * windows-nat.c (handle_exception)
6148 (windows_nat_target::thread_name): Update.
6149 * nat/windows-nat.h (windows_thread_info): Remove destructor.
6150 <name>: Now unique_xmalloc_ptr.
6151
62fe396b
TT
61522020-04-08 Tom Tromey <tromey@adacore.com>
6153
6154 * windows-nat.c (thread_rec)
6155 (windows_nat_target::fetch_registers): Update.
6156 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
6157 Update comment.
6158 <debug_registers_changed, reload_context>: Now bool.
6159
e9534bd2
TT
61602020-04-08 Tom Tromey <tromey@adacore.com>
6161
6162 * windows-nat.c (windows_add_thread): Use new.
6163 (windows_init_thread_list, windows_delete_thread): Use delete.
6164 (get_windows_debug_event): Update.
6165 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
6166 destructor, and initializers.
6167
ae1f8880
TT
61682020-04-08 Tom Tromey <tromey@adacore.com>
6169
6170 * windows-nat.c (struct windows_thread_info): Remove.
6171 * nat/windows-nat.h: New file.
6172
55a1e039
TT
61732020-04-08 Tom Tromey <tromey@adacore.com>
6174
6175 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
6176 (thread_rec, windows_add_thread, windows_delete_thread)
6177 (windows_continue): Update.
6178
93366324
TT
61792020-04-08 Tom Tromey <tromey@adacore.com>
6180
6181 * windows-nat.c (struct windows_thread_info): Remove typedef.
6182 (thread_head): Remove.
6183 (thread_list): New global.
6184 (thread_rec, windows_add_thread, windows_init_thread_list)
6185 (windows_delete_thread, windows_continue): Update.
6186
0f2265e2
SM
61872020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6188
6189 * windows-tdep.h (windows_init_abi): Add comment.
6190 (cygwin_init_abi): New declaration.
6191 * windows-tdep.c: Split signal enumeration in two, one for
6192 Windows and one for Cygwin.
6193 (windows_gdb_signal_to_target): Only deal with signal of the
6194 Windows OS ABI.
6195 (cygwin_gdb_signal_to_target): New function.
6196 (windows_init_abi): Rename to windows_init_abi_common, don't set
6197 gdb_signal_to_target gdbarch method. Add new new function with
6198 this name.
6199 (cygwin_init_abi): New function.
6200 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
6201 comment. Don't call windows_init_abi.
6202 (amd64_windows_init_abi): Add comment, call windows_init_abi.
6203 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
6204 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
6205 i386_windows_init_abi_common, don't call windows_init_abi. Add
6206 a new function of this name.
6207 (i386_cygwin_init_abi): New function.
6208 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
6209 OS ABI Cygwin.
6210
3810f182
SM
62112020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6212
6213 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
6214 parameter.c.
6215 (dwarf2_read_gdb_index): Update.
6216
063f8e80
KR
62172020-04-07 Kamil Rytarowski <n54@gmx.com>
6218
6219 * nbsd-tdep.c: Include "objfiles.h".
6220 (nbsd_skip_solib_resolver): New.
6221 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
6222
85a9510c 62232020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6224
6225 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
6226 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
6227 with DW_LLE_base_addressx are being emitted in DWARFv5.
6228 Add the newly added kind DW_LOC_OFFSET_PAIR also.
6229 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
6230 unsigned integer.
6231
9fc3eaae 62322020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6233
6234 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
6235 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
6236 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
6237 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
6238 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
6239 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
6240 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
6241
6242
41144253 62432020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6244
6245 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
6246 (read_loclist_index): New function definition.
6247 (lookup_loclist_base): New function definition.
6248 (read_loclist_header): New function definition.
6249 (dwarf2_cu): Add loclist_base and loclist_header field.
6250 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
6251 (read_full_die_1): Read the value of DW_AT_loclists_base.
6252 (read_attribute_reprocess): Handle DW_FORM_loclistx.
6253 (read_attribute_value): Handle DW_FORM_loclistx.
6254 (skip_one_die): Handle DW_FORM_loclistx.
6255 (loclist_header): New structure declaration.
6256 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
6257
9f4e76a4
SM
62582020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
6259
6260 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
6261 constructor. Remove `addr` parameter from other constructor and
6262 add `per_cu` parameter.
6263 * dwarf2/read.c (create_partial_symtab): Update.
6264
25c11aca
TV
62652020-04-07 Tom de Vries <tdevries@suse.de>
6266
6267 PR symtab/25796
6268 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
6269 (partial_die_info::fixup): Inherit has_const_value.
6270
5707e24b
TV
62712020-04-07 Tom de Vries <tdevries@suse.de>
6272
6273 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
6274 symbols without address.
6275
05f00e22
KR
62762020-04-06 Kamil Rytarowski <n54@gmx.com>
6277
6278 * nbsd-nat.h (struct thread_info): Add forward declaration.
6279 (nbsd_nat_target::thread_alive): Add.
6280 (nbsd_nat_target::thread_name): Likewise.
6281 (nbsd_nat_target::update_thread_list): Likewise.
6282 (update_thread_list::post_attach): Likewise.
6283 (post_attach::pid_to_str): Likewise.
6284 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
6285 (nbsd_thread_lister): Add.
6286 (nbsd_nat_target::thread_alive): Likewise.
6287 (nbsd_nat_target::thread_name): Likewise.
6288 (nbsd_add_threads): Likewise.
6289 (update_thread_list::post_attach): Likewise.
6290 (nbsd_nat_target::update_thread_list): Likewise.
6291 (post_attach::pid_to_str): Likewise.
6292
6ee448cc
TT
62932020-04-06 Tom Tromey <tromey@adacore.com>
6294
6295 * ada-valprint.c (print_variant_part): Extract the variant field.
6296 (print_field_values): Use the field as the outer value when
6297 recursing.
6298
dea34e8c
TT
62992020-04-06 Tom Tromey <tromey@adacore.com>
6300
6301 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
6302 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
6303 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
6304 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
6305 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
6306
93689ce9
TT
63072020-04-06 Tom Tromey <tromey@adacore.com>
6308
6309 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
6310 TYPE_CODE_ERROR.
6311
79743962
KR
63122020-04-06 Kamil Rytarowski <n54@gmx.com>
6313
6314 * nbsd-tdep.c: Include "gdbarch.h".
6315 Define enum with NetBSD signal numbers.
6316 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
6317 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
6318 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
6319 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
6320 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
6321 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
6322 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
6323 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
6324 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
6325 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
6326 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
6327 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
6328
9e7c9a03
HD
63292020-04-03 Hannes Domani <ssbssa@yahoo.de>
6330
6331 PR gdb/25325
6332 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
6333
d9e49b61
TT
63342020-04-03 Tom Tromey <tromey@adacore.com>
6335
6336 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
6337 Read constant block.
6338
e0fc5c3f
SM
63392020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6340
6341 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
6342 (gdb_bfd_get_full_section_contents): New declaration.
6343 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
6344 * windows-tdep.c (is_linked_with_cygwin_dll): Use
6345 gdb_bfd_get_full_section_contents.
6346
e2ff18a0
SM
63472020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6348
6349 * exec.c (build_section_table): Replace internal_error with
6350 gdb_assert.
6351 (section_table_xfer_memory_partial): Likewise.
6352 * mdebugread.c (parse_partial_symbols): Likewise.
6353 * psymtab.c (lookup_partial_symbol): Likewise.
6354 * utils.c (wrap_here): Likewise.
6355
0830d301
TT
63562020-04-02 Tom Tromey <tromey@adacore.com>
6357
6358 * f-lang.c (build_fortran_types): Use arch_type to initialize
6359 builtin_complex_s32 in the TYPE_CODE_ERROR case.
6360
e7da7f8f
TT
63612020-04-02 Tom Tromey <tromey@adacore.com>
6362
6363 * dwarf2/read.c (partial_die_info::read): Do not create a vector
6364 of attributes.
6365
c90d28ac
AB
63662020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
6367 Bernd Edlinger <bernd.edlinger@hotmail.de>
6368 Tom Tromey <tromey@adacore.com>
6369
6370 * buildsym.c (buildsym_compunit::record_line): Remove
6371 deduplication code.
6372
1aa98955
TV
63732020-04-02 Tom de Vries <tdevries@suse.de>
6374
6375 PR ada/24671
6376 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
6377
d3214198
TV
63782020-04-02 Tom de Vries <tdevries@suse.de>
6379
6380 * dwarf2/read.c (dwarf2_gdb_index_functions,
6381 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
6382 NULL.
6383 * psymtab.c (psym_lookup_global_symbol_language): New function.
6384 (psym_functions): Init psym_lookup_global_symbol_language with
6385 psym_lookup_global_symbol_language.
6386 * symfile-debug.c (debug_sym_quick_functions): Init
6387 lookup_global_symbol_language with NULL.
6388 * symfile.c (set_initial_language): Remove fixme comment.
6389 * symfile.h (struct quick_symbol_functions): Add
6390 lookup_global_symbol_language.
6391 * symtab.c (find_quick_global_symbol_language): New function.
6392 (find_main_name): Use find_quick_global_symbol_language.
6393
2836752f
SM
63942020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
6395
6396 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
6397
64dc2d4b
BE
63982020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6399
6400 * buildsym.c (record_line): Fix undefined behavior and preserve
6401 lines at eof.
6402
bbe3dc41
BE
64032020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6404
6405 * buildsym.c (record_line): Fix the resizing condition.
6406
6b4a335b
TT
64072020-04-01 Tom Tromey <tom@tromey.com>
6408
6409 * value.h (value_literal_complex): Add comment.
6410 * valops.c (value_literal_complex): Refer to value.h.
6411
3638a098
TT
64122020-04-01 Tom Tromey <tom@tromey.com>
6413
6414 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
6415 (scalar_type): New rule, from typebase.
6416 (typebase): Use scalar_type. Recognize complex types.
6417 (field_name): Handle FLOAT_KEYWORD.
6418 (ident_tokens): Add _Complex and __complex__.
6419
c34e8714
TT
64202020-04-01 Tom Tromey <tom@tromey.com>
6421
6422 PR exp/25299:
6423 * valarith.c (promotion_type, complex_binop): New functions.
6424 (scalar_binop): Handle complex numbers. Use promotion_type.
6425 (value_pos, value_neg, value_complement): Handle complex numbers.
6426
fa649bb7
TT
64272020-04-01 Tom Tromey <tom@tromey.com>
6428
6429 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
6430 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
6431 (parse_number): Handle complex numbers.
6432
981c08ce
TT
64332020-04-01 Tom Tromey <tom@tromey.com>
6434
6435 * c-valprint.c (c_decorations): Change complex suffix to "i".
6436
4c99290d
TT
64372020-04-01 Tom Tromey <tom@tromey.com>
6438
6439 * valprint.c (generic_value_print_complex): Use accessors.
6440 * value.h (value_real_part, value_imaginary_part): Declare.
6441 * valops.c (value_real_part, value_imaginary_part): New
6442 functions.
6443 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
6444
5b930b45
TT
64452020-04-01 Tom Tromey <tom@tromey.com>
6446
6447 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
6448 (read_range_type): Update.
6449 * mdebugread.c (basic_type): Update.
6450 * go-lang.c (build_go_types): Use init_complex_type.
6451 * gdbtypes.h (struct main_type) <complex_type>: New member.
6452 (init_complex_type): Update.
6453 (arch_complex_type): Don't declare.
6454 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
6455 Make name if none given. Use alloc_type_copy. Look for cached
6456 complex type.
6457 (arch_complex_type): Remove.
6458 (gdbtypes_post_init): Use init_complex_type.
6459 * f-lang.c (build_fortran_types): Use init_complex_type.
6460 * dwarf2/read.c (read_base_type): Update.
6461 * d-lang.c (build_d_types): Use init_complex_type.
6462 * ctfread.c (read_base_type): Update.
6463
53cccef1
TBA
64642020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6465
6466 * infrun.c (stop_all_threads): Update assertion, plus when
6467 stopping threads, take into account that we might be trying
6468 to stop an all-stop target.
6469 (stop_waiting): Call 'stop_all_threads' if there exists a
6470 non-stop target.
6471
a0714d30
TBA
64722020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6473
6474 * target.h (exists_non_stop_target): New function declaration.
6475 * target.c (exists_non_stop_target): New function.
6476
60e22c1e
HD
64772020-04-01 Hannes Domani <ssbssa@yahoo.de>
6478
6479 PR gdb/24789
6480 * eval.c (is_integral_or_integral_reference): New function.
6481 (evaluate_subexp_standard): Allow integer references in
6482 pointer arithmetic.
6483
e139a727
TBA
64842020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6485
6486 * remote.c (remote_target::remote_parse_stop_reply): Remove the
6487 check for no ptid in the stop reply when the target is non-stop.
6488
e0802d59
TT
64892020-04-01 Tom Tromey <tromey@adacore.com>
6490
6491 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
6492 "name" parameter to rvalue reference. Initialize m_name_holder.
6493 <lookup_name_info>: New overloads.
6494 <name>: Return gdb::string_view.
6495 <c_str>: New method.
6496 <make_ignore_params>: Update.
6497 <search_name_hash>: Update.
6498 <language_lookup_name>: Return const char *.
6499 <m_name>: Change type.
6500 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
6501 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
6502 (lookup_name_info::match_any): Update.
6503 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
6504 Update.
6505 * minsyms.c (linkage_name_str): Update.
6506 * language.c (default_symbol_name_matcher): Update.
6507 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
6508 Update.
6509 * ada-lang.c (ada_fold_name): Change parameter to string_view.
6510 (ada_lookup_name_info::ada_lookup_name_info): Update.
6511 (literal_symbol_name_matcher): Update.
6512
8c072cb6
TT
65132020-04-01 Tom Tromey <tromey@adacore.com>
6514
6515 * psymtab.c (psymtab_search_name): Remove function.
6516 (psym_lookup_symbol): Create search name and lookup name here.
6517 (lookup_partial_symbol): Remove "name" parameter; add
6518 lookup_name.
6519 (psym_expand_symtabs_for_function): Update.
6520
6f29a534
TT
65212020-03-31 Joel Jones <joelkevinjones@gmail.com>
6522
6523 PR tui/25597:
6524 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
6525
af62665e
TT
65262020-03-31 Tom Tromey <tromey@adacore.com>
6527
6528 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
6529 memcpy.
6530
d1a89da5
NC
65312020-03-30 Nelson Chu <nelson.chu@sifive.com>
6532
6533 * features/riscv/32bit-csr.xml: Regenerated.
6534 * features/riscv/64bit-csr.xml: Regenerated.
6535
d8af9068
TT
65362020-03-30 Tom Tromey <tromey@adacore.com>
6537
6538 * ada-valprint.c (print_variant_part): Update.
6539 * ada-lang.h (ada_which_variant_applies): Update.
6540 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
6541 outer_valaddr parameters; replace with "outer" value parameter.
6542 (to_fixed_variant_branch_type): Update.
6543
227c0bf4
PFC
65442020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6545
6546 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
6547 <list>. Remove inclusion of observable.h.
6548 (PPC_DEBUG_CURRENT_VERSION): Move up define.
6549 (struct arch_lwp_info): New struct.
6550 (class ppc_linux_dreg_interface): New class.
6551 (struct ppc_linux_process_info): New struct.
6552 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
6553 <low_new_clone, low_forget_process, low_prepare_to_resume>
6554 <copy_thread_dreg_state, mark_thread_stale>
6555 <mark_debug_registers_changed, register_hw_breakpoint>
6556 <clear_hw_breakpoint, register_wp, clear_wp>
6557 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
6558 <num_memory_accesses, get_trigger_type>
6559 <create_watchpoint_request, hwdebug_point_cmp>
6560 <init_arch_lwp_info, get_arch_lwp_info>
6561 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
6562 methods.
6563 <struct ptid_hash>: New inner struct.
6564 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
6565 members.
6566 (saved_dabr_value, hwdebug_info, max_slots_number)
6567 (struct hw_break_tuple, struct thread_points, ppc_threads)
6568 (have_ptrace_hwdebug_interface)
6569 (hwdebug_find_thread_points_by_tid)
6570 (hwdebug_insert_point, hwdebug_remove_point): Remove.
6571 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
6572 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
6573 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
6574 use m_dreg_interface.
6575 (hwdebug_point_cmp): Change to...
6576 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
6577 reference arguments instead of pointers.
6578 (ppc_linux_nat_target::ranged_break_num_registers): Use
6579 m_dreg_interface.
6580 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
6581 m_dreg_interface. Call register_hw_breakpoint.
6582 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
6583 m_dreg_interface. Call clear_hw_breakpoint.
6584 (get_trigger_type): Change to...
6585 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
6586 comment.
6587 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
6588 use m_dreg_interface. Call register_hw_breakpoint.
6589 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
6590 use m_dreg_interface. Call clear_hw_breakpoint.
6591 (can_use_watchpoint_cond_accel): Change to...
6592 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
6593 method. Update comment, use m_dreg_interface and
6594 m_process_info.
6595 (calculate_dvc): Change to...
6596 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
6597 m_dreg_interface.
6598 (num_memory_accesses): Change to...
6599 (ppc_linux_nat_target::num_memory_accesses): ...this method.
6600 (check_condition): Change to...
6601 (ppc_linux_nat_target::check_condition): ...this method.
6602 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
6603 comment, use m_dreg_interface.
6604 (create_watchpoint_request): Change to...
6605 (ppc_linux_nat_target::create_watchpoint_request): ...this
6606 method. Use m_dreg_interface.
6607 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
6608 m_dreg_interface. Call register_hw_breakpoint or register_wp.
6609 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
6610 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
6611 (ppc_linux_nat_target::low_forget_process)
6612 (ppc_linux_nat_target::low_new_fork)
6613 (ppc_linux_nat_target::low_new_clone)
6614 (ppc_linux_nat_target::low_delete_thread)
6615 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
6616 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
6617 only call mark_thread_stale.
6618 (ppc_linux_thread_exit): Remove.
6619 (ppc_linux_nat_target::stopped_data_address): Change to...
6620 (ppc_linux_nat_target::low_stopped_data_address): This. Add
6621 comment, use m_dreg_interface and m_thread_hw_breakpoints.
6622 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
6623 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
6624 comment. Call low_stopped_data_address.
6625 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
6626 m_dreg_interface.
6627 (ppc_linux_nat_target::masked_watch_num_registers): Use
6628 m_dreg_interface.
6629 (ppc_linux_nat_target::copy_thread_dreg_state)
6630 (ppc_linux_nat_target::mark_thread_stale)
6631 (ppc_linux_nat_target::mark_debug_registers_changed)
6632 (ppc_linux_nat_target::register_hw_breakpoint)
6633 (ppc_linux_nat_target::clear_hw_breakpoint)
6634 (ppc_linux_nat_target::register_wp)
6635 (ppc_linux_nat_target::clear_wp)
6636 (ppc_linux_nat_target::init_arch_lwp_info)
6637 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
6638 (_initialize_ppc_linux_nat): Remove observer callback.
6639
4db10d8f
PFC
66402020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6641
6642 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
6643 (ppc_linux_nat_target::auxv_parse)
6644 (ppc_linux_nat_target::read_description)
6645 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
6646 Move up.
6647
1310c1b0
PFC
66482020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6649
6650 * linux-nat.h (low_new_clone): New method.
6651 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
6652
69b037c3
SM
66532020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6654
6655 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
6656 (dbx_expand_psymtab): ... this.
6657 (start_psymtab): Update.
6658 * mdebugread.c (psymtab_to_symtab_1): Rename to...
6659 (mdebug_expand_psymtab): ... this.
6660 (parse_partial_symbols): Update.
6661 (new_psymtab): Update.
6662 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
6663 (xcoff_expand_psymtab): ... this.
6664 (xcoff_start_psymtab): Update.
6665
48993951
SM
66662020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6667
6668 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
6669 <expand_dependencies>: ... this.
6670 * psymtab.c (partial_symtab::read_dependencies): Rename to...
6671 (partial_symtab::expand_dependencies): ... this.
6672 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
6673 Update.
6674 (dwarf2_psymtab::expand_psymtab): Update.
6675 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
6676 * mdebugread.c (psymtab_to_symtab_1): Update.
6677 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
6678
3ad83046
SM
66792020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6680
6681 * psympriv.h (discard_psymtab): Remove.
6682 * dbxread.c (dbx_end_psymtab): Update.
6683 * xcoffread.c (xcoff_end_psymtab): Update.
6684
4d1b9ab6
TT
66852020-03-28 Tom Tromey <tom@tromey.com>
6686
6687 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
6688 comment.
6689
f1749218
TT
66902020-03-28 Tom Tromey <tom@tromey.com>
6691
6692 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
6693
ebea7626
HD
66942020-03-27 Hannes Domani <ssbssa@yahoo.de>
6695
6696 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
6697
a879b4d5
JB
66982020-03-26 John Baldwin <jhb@FreeBSD.org>
6699
6700 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
6701
0826b30a
TT
67022020-03-26 Tom Tromey <tom@tromey.com>
6703
6704 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
6705 (mark_common_block_symbol_computed, read_tag_string_type)
6706 (attr_to_dynamic_prop, read_subrange_type): Update.
6707 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
6708 to be methods on struct attribute.
6709 (skip_one_die, process_imported_unit_die, read_namespace_alias)
6710 (read_call_site_scope, partial_die_info::read)
6711 (partial_die_info::read, lookup_die_type, follow_die_ref):
6712 Update.
6713 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
6714 from dwarf2_get_ref_die_offset.
6715 (attribute::constant_value): New method, from
6716 dwarf2_get_attr_constant_value.
6717 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
6718 Declare method.
6719 <constant_value>: New method.
6720
2b2558bf
TT
67212020-03-26 Tom Tromey <tom@tromey.com>
6722
6723 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
6724 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
6725 (dwarf_type_encoding_name): Move to stringify.c.
6726 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
6727 * dwarf2/stringify.c: New file.
6728 * dwarf2/stringify.h: New file.
6729
eeb64781
TT
67302020-03-26 Tom Tromey <tom@tromey.com>
6731
6732 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
6733 Rewrite.
6734
a39fdb41
TT
67352020-03-26 Tom Tromey <tom@tromey.com>
6736
6737 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
6738 methods.
6739 * dwarf2/read.c (lookup_addr_base): Move to die.h.
6740 (lookup_ranges_base): Likewise.
6741 (read_cutu_die_from_dwo, read_full_die_1): Update.
6742
436c571c
TT
67432020-03-26 Tom Tromey <tom@tromey.com>
6744
6745 * dwarf2/read.c (read_import_statement, read_file_scope)
6746 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
6747 (read_lexical_block_scope, read_call_site_scope)
6748 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
6749 (handle_struct_member_die, process_structure_scope)
6750 (update_enumeration_type_from_children)
6751 (process_enumeration_scope, read_array_type, read_common_block)
6752 (read_namespace, read_module, read_subroutine_type): Update.
6753 (sibling_die): Remove.
6754
052c8bb8
TT
67552020-03-26 Tom Tromey <tom@tromey.com>
6756
6757 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
6758 (build_type_psymtabs_reader, read_structure_type)
6759 (read_enumeration_type, read_full_die_1): Update.
6760 (dwarf2_attr_no_follow): Move to die.h.
6761 * dwarf2/die.h (struct die_info) <attr>: New method.
6762
2b24b6e4
TT
67632020-03-26 Tom Tromey <tom@tromey.com>
6764
6765 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
6766 <base_address>: Now an optional.
6767 (dwarf2_find_base_address, dwarf2_rnglists_process)
6768 (dwarf2_ranges_process, fill_in_loclist_baton)
6769 (dwarf2_symbol_mark_computed): Update.
6770
c2d50fd0
TT
67712020-03-26 Tom Tromey <tom@tromey.com>
6772
6773 * dwarf2/read.c (struct die_info): Move to die.h.
6774 * dwarf2/die.h: New file.
6775
0df7ad3a
TT
67762020-03-26 Tom Tromey <tom@tromey.com>
6777
6778 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
6779 * dwarf2/read.c
6780 (dwarf2_statement_list_fits_in_line_number_section_complaint):
6781 Move to line-header.c.
6782 (read_checked_initial_length_and_offset, read_formatted_entries):
6783 Likewise.
6784 (dwarf_decode_line_header): Split into two.
6785 * dwarf2/line-header.c
6786 (dwarf2_statement_list_fits_in_line_number_section_complaint):
6787 Move from read.c.
6788 (read_checked_initial_length_and_offset, read_formatted_entries):
6789 Likewise.
6790 (dwarf_decode_line_header): New function, split from read.c.
6791
86c0bb4c
TT
67922020-03-26 Tom Tromey <tom@tromey.com>
6793
6794 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
6795 Declare method.
6796 * dwarf2/read.c (read_attribute_value): Update.
6797 (dwarf2_per_objfile::read_line_string): Rename from
6798 read_indirect_line_string.
6799 (read_formatted_entries): Update.
6800
2ef46c2f
TT
68012020-03-26 Tom Tromey <tom@tromey.com>
6802
6803 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
6804 variable.
6805
4f9c1eda
TT
68062020-03-26 Tom Tromey <tom@tromey.com>
6807
6808 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
6809 const.
6810 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
6811 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
6812 parameter const.
6813
5a0e026f
TT
68142020-03-26 Tom Tromey <tom@tromey.com>
6815
6816 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
6817 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
6818 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
6819 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
6820
8844c11b
TT
68212020-03-26 Tom Tromey <tom@tromey.com>
6822
6823 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
6824 file_names_size, file_full_name, file_file_name>: Use const.
6825 <file_name_at, file_names>: Add const overload.
6826 * dwarf2/line-header.c (line_header::file_file_name)
6827 (line_header::file_full_name): Update.
6828
c90ec28a
TT
68292020-03-26 Tom Tromey <tom@tromey.com>
6830
6831 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
6832 (macro_start_file, consume_improper_spaces)
6833 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
6834 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
6835 (dwarf_decode_macros): Move to macro.c.
6836 * dwarf2/macro.c: New file.
6837 * dwarf2/macro.h: New file.
6838 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
6839
4f44ae6c
TT
68402020-03-26 Tom Tromey <tom@tromey.com>
6841
6842 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
6843 method.
6844 * dwarf2/section.c: New method. From
6845 read_indirect_string_at_offset_from.
6846 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
6847 (read_indirect_string_at_offset_from): Move to section.c.
6848 (read_indirect_string_at_offset): Rewrite.
6849 (read_indirect_line_string_at_offset): Remove.
6850 (read_indirect_string, read_indirect_line_string)
6851 (dwarf_decode_macro_bytes): Update.
6852
a0194fa8
TT
68532020-03-26 Tom Tromey <tom@tromey.com>
6854
6855 * dwarf2/section.h (struct dwarf2_section_info)
6856 <overload_complaint>: Declare.
6857 (dwarf2_section_buffer_overflow_complaint): Don't declare.
6858 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
6859 Rename from dwarf2_section_buffer_overflow_complaint.
6860 * dwarf2/read.c (skip_one_die, partial_die_info::read)
6861 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
6862
3d27bbdb
TT
68632020-03-26 Tom Tromey <tom@tromey.com>
6864
6865 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
6866 Declare.
6867 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
6868 Move from read.c.
6869 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
6870 to section.c.
6871
9eac9650
TT
68722020-03-26 Tom Tromey <tom@tromey.com>
6873
6874 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
6875
bf80d710
TT
68762020-03-26 Tom Tromey <tom@tromey.com>
6877
6878 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
6879 "builder".
6880 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
6881 parameter.
6882 (dwarf_decode_macros): Update.
6883
0314b390
TT
68842020-03-26 Tom Tromey <tom@tromey.com>
6885
6886 * dwarf2/read.c (read_attribute_value): Update.
6887 (read_indirect_string_from_dwz): Move to dwz.c; change into
6888 method.
6889 (dwarf_decode_macro_bytes): Update.
6890 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
6891 * dwarf2/dwz.c: New file.
6892 * Makefile.in (COMMON_SFILES): Add dwz.c.
6893
9fda78b6
TT
68942020-03-26 Tom Tromey <tom@tromey.com>
6895
6896 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
6897 * dwarf2/read.c: Add include.
6898 * dwarf2/index-write.c: Add include.
6899 * dwarf2/index-cache.c: Add include.
6900 * dwarf2/dwz.h: New file.
6901
33aa3c10
TT
69022020-03-25 Tom Tromey <tom@tromey.com>
6903
6904 * compile/compile-object-load.c (get_out_value_type): Mention
6905 correct symbol name in error message.
6906
d503b685
HD
69072020-03-25 Hannes Domani <ssbssa@yahoo.de>
6908
6909 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
6910
7b1eff95
TV
69112020-03-25 Tom de Vries <tdevries@suse.de>
6912
6913 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
6914 * symmisc.c (dump_symtab_1): Print user and includes fields.
6915 (maintenance_info_symtabs): Same.
6916
dd895392
AB
69172020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
6918
6919 PR gdb/25534
6920 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
6921 (riscv_regcache_cooked_write): New function.
6922 (riscv_push_dummy_call): Use new function.
6923 (riscv_return_value): Likewise.
6924
5ab2fbf1
SM
69252020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
6926
6927 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
6928 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
6929 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
6930 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
6931 * infrun.c (follow_fork): Likewise.
6932 (follow_fork_inferior): Likewise.
6933 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
6934 * linux-nat.h (class linux_nat_target): Likewise.
6935 * remote.c (class remote_target) <follow_fork>: Likewise.
6936 (remote_target::follow_fork): Likewise.
6937 * target-delegates.c: Re-generate.
6938 * target.c (default_follow_fork): Likewise.
6939 (target_follow_fork): Likewise.
6940 * target.h (struct target_ops) <follow_fork>: Likewise.
6941 (target_follow_fork): Likewise.
6942
a64fafb5
TV
69432020-03-24 Tom de Vries <tdevries@suse.de>
6944
6945 * psymtab.c (maintenance_info_psymtabs): Print user field.
6946
fe26d3a3
TT
69472020-03-20 Tom Tromey <tromey@adacore.com>
6948
6949 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
6950 const.
6951 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
6952 const.
6953
c884cc46
SM
69542020-03-20 Simon Marchi <simon.marchi@efficios.com>
6955
6956 * ptrace.m4: Don't check for ptrace declaration.
6957 * config.in: Re-generate.
6958 * configure: Re-generate.
6959 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
6960 not defined.
6961
1ff700c2
KR
69622020-03-20 Kamil Rytarowski <n54@gmx.com>
6963
6964 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
6965 `PTRACE_TYPE_RET'.
6966 * i386-bsd-nat.c (gdb_ptrace): Likewise.
6967 * sparc-nat.c (gdb_ptrace): Likewise.
6968 * x86-bsd-nat.c (gdb_ptrace): Likewise.
6969
f7d4f0b1
TT
69702020-03-20 Tom Tromey <tromey@adacore.com>
6971
6972 * c-exp.y (lex_one_token): Fix assert.
6973
f67210ff
TT
69742020-03-20 Tom Tromey <tromey@adacore.com>
6975
6976 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
6977 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
6978 strncpy call.
6979
1773be9e
TT
69802020-03-20 Tom Tromey <tromey@adacore.com>
6981
6982 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
6983
70304be9
TT
69842020-03-20 Tom Tromey <tromey@adacore.com>
6985
6986 * ada-valprint.c (print_variant_part): Remove parameters; switch
6987 to value-based API.
6988 (print_field_values): Likewise.
6989 (ada_val_print_struct_union): Likewise.
6990 (ada_value_print_1): Update.
6991
9faa006d
KR
69922020-03-20 Kamil Rytarowski <n54@gmx.com>
6993
6994 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
6995 nbsd_nat_target instead of inf_ptrace_target.
6996 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6997 nbsd_nat_target.
6998
4a90f062
KR
69992020-03-20 Kamil Rytarowski <n54@gmx.com>
7000
7001 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
7002 it to the ptrace call.
7003 * (store_registers): Likewise.
7004
70052020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
7006
7007 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
7008 it to the ptrace call.
7009 * (store_registers): Likewise.
7010
2d07da27
LM
70112020-03-19 Luis Machado <luis.machado@linaro.org>
7012
7013 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
7014 valid, fetch vg value from ptrace.
7015
f09db380
KR
70162020-03-19 Kamil Rytarowski <n54@gmx.com>
7017 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
7018 * inf-ptrace.c: Likewise.
7019 * (gdb_ptrace): Add.
7020 * (inf_ptrace_target::resume): Update.
7021 * (inf_ptrace_target::xfer_partial): Likewise.
7022 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
7023 * (inf_ptrace_peek_poke): Update.
7024
fcc7376e
KR
70252020-03-19 Kamil Rytarowski <n54@gmx.com>
7026
7027 * x86-bsd-nat.c (gdb_ptrace): New.
7028 * (x86bsd_dr_set): Add new argument `ptid'.
7029 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
7030 x86bsd_dr_set_addr): Update.
7031
cada5fc9
AB
70322020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7033
7034 * remote.c (remote_target::process_stop_reply): Handle events for
7035 all threads differently.
7036
19a2740f
AB
70372020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7038
7039 * completer.c (completion_tracker::remove_completion): Define new
7040 function.
7041 * completer.h (completion_tracker::remove_completion): Declare new
7042 function.
7043 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
7044 when adding a C++ function symbol.
7045
724fd9ba
AB
70462020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7047
7048 * completer.c (completion_tracker::completion_hash_entry): Define
7049 new class.
7050 (advance_to_filename_complete_word_point): Call
7051 recompute_lowest_common_denominator.
7052 (completion_tracker::completion_tracker): Call discard_completions
7053 to setup the hash table.
7054 (completion_tracker::discard_completions): Allow for being called
7055 from the constructor, pass new equal function, and element deleter
7056 when constructing the hash table. Initialise new class member
7057 variables.
7058 (completion_tracker::maybe_add_completion): Remove use of
7059 m_entries_vec, and store more information into m_entries_hash.
7060 (completion_tracker::recompute_lcd_visitor): New function, most
7061 content taken from...
7062 (completion_tracker::recompute_lowest_common_denominator):
7063 ...here, this now just visits each item in the hash calling the
7064 above visitor.
7065 (completion_tracker::build_completion_result): Remove use of
7066 m_entries_vec, call recompute_lowest_common_denominator.
7067 * completer.h (completion_tracker::have_completions): Remove use
7068 of m_entries_vec.
7069 (completion_tracker::completion_hash_entry): Declare new class.
7070 (completion_tracker::recompute_lowest_common_denominator): Change
7071 function signature.
7072 (completion_tracker::recompute_lcd_visitor): Declare new function.
7073 (completion_tracker::m_entries_vec): Delete.
7074 (completion_tracker::m_entries_hash): Initialize to NULL.
7075 (completion_tracker::m_lowest_common_denominator_valid): New
7076 member variable.
7077 (completion_tracker::m_lowest_common_denominator_max_length): New
7078 member variable.
7079
5a82b8a1
KR
70802020-03-17 Kamil Rytarowski <n54@gmx.com>
7081
7082 * regformats/regdef.h: Put reg in gdb namespace.
7083
fb516a69
KR
70842020-03-17 Kamil Rytarowski <n54@gmx.com>
7085
7086 * i386-bsd-nat.c (gdb_ptrace): New.
7087 * (i386bsd_fetch_inferior_registers,
7088 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7089 * (i386bsd_fetch_inferior_registers,
7090 i386bsd_store_inferior_registers) Use gdb_ptrace.
7091
1c0aa1fb
KR
70922020-03-17 Kamil Rytarowski <n54@gmx.com>
7093
7094 * amd64-bsd-nat.c (gdb_ptrace): New.
7095 * (amd64bsd_fetch_inferior_registers,
7096 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7097 * (amd64bsd_fetch_inferior_registers,
7098 amd64bsd_store_inferior_registers) Use gdb_ptrace.
7099
5ccd2fb7
KR
71002020-03-17 Kamil Rytarowski <n54@gmx.com>
7101
7102 * user-regs.c (user_reg::read): Rename to...
7103 (user_reg::xread): ...this.
7104 * (append_user_reg): Rename argument `read' to `xread'.
7105 * (user_reg_add_builtin): Likewise.
7106 * (user_reg_add): Likewise.
7107 * (value_of_user_reg): Likewise.
7108
2108a63a
KR
71092020-03-17 Kamil Rytarowski <n54@gmx.com>
7110
7111 * sparc-nat.c (gdb_ptrace): New.
7112 * sparc-nat.c (sparc_fetch_inferior_registers)
7113 (sparc_store_inferior_registers) Remove obsolete comment.
7114 * sparc-nat.c (sparc_fetch_inferior_registers)
7115 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
7116 * sparc-nat.c (sparc_fetch_inferior_registers)
7117 (sparc_store_inferior_registers) Use gdb_ptrace.
7118
a225c9a8
KR
71192020-03-17 Kamil Rytarowski <n54@gmx.com>
7120
7121 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
7122 it to the ptrace call.
7123 * sh-nbsd-nat.c (store_registers): Likewise.
7124
98097623
KR
71252020-03-17 Kamil Rytarowski <n54@gmx.com>
7126
7127 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
7128 nbsd_nat_target instead of inf_ptrace_target.
7129 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7130 nbsd_nat_target.
7131
9e38d619
KR
71322020-03-17 Kamil Rytarowski <n54@gmx.com>
7133
7134 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
7135
a2ecbe9f
KR
71362020-03-17 Kamil Rytarowski <n54@gmx.com>
7137
7138 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
7139 <sys/sysctl.h>.
7140 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
7141
58990295
TV
71422020-03-17 Tom de Vries <tdevries@suse.de>
7143
7144 PR gdb/23710
7145 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
7146 fields.
7147 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
7148 fields.
7149 (process_imported_unit_die): Skip import of c++ CUs.
7150
771dd3a8
TT
71512020-03-16 Tom Tromey <tom@tromey.com>
7152
7153 * p-valprint.c (pascal_object_print_value): Initialize
7154 base_value.
7155
817a7585
AK
71562020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
7157 Shahab Vahedi <shahab@synopsys.com>
7158
7159 * Makefile.in: Add arch/arc.o
7160 * configure.tgt: Likewise.
7161 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
7162 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 7163 (arc_read_description): New function to cache target descriptions.
817a7585
AK
7164 * arc-tdep.h (arc_read_description): Add proto type.
7165 * arch/arc.c: New file.
7166 * arch/arc.h: Likewise.
7167 * features/Makefile: Replace old target descriptions with new.
7168 * features/arc-arcompact.c: Remove.
7169 * features/arc-arcompact.xml: Likewise.
7170 * features/arc-v2.c: Likewise
7171 * features/arc-v2.xml: Likewise
7172 * features/arc/aux-arcompact.xml: New file.
7173 * features/arc/aux-v2.xml: Likewise.
7174 * features/arc/core-arcompact.xml: Likewise.
7175 * features/arc/core-v2.xml: Likewise.
7176 * features/arc/aux-arcompact.c: Generate.
7177 * features/arc/aux-v2.c: Likewise.
7178 * features/arc/core-arcompact.c: Likewise.
7179 * features/arc/core-v2.c: Likewise.
7180 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
7181
67430cd0
TT
71822020-03-16 Tom Tromey <tromey@adacore.com>
7183
7184 PR gdb/25663:
7185 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
7186 putting value into bcache.
7187
30efb6c7
SM
71882020-03-16 Simon Marchi <simon.marchi@efficios.com>
7189
7190 PR gdb/21500
7191 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
7192 to...
7193 (amd64_windows_init_abi_common): ... this. Don't set size of
7194 long type.
7195 (amd64_windows_init_abi): New function.
7196 (amd64_cygwin_init_abi): New function.
7197 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
7198 the Cygwin OS ABI.
7199 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
7200 comment.
7201
8db52437
SM
72022020-03-16 Simon Marchi <simon.marchi@efficios.com>
7203
7204 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
7205 * windows-tdep.c (CYGWIN_DLL_NAME): New.
7206 (pe_import_directory_entry): New struct type.
7207 (is_linked_with_cygwin_dll): New function.
7208 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
7209 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
7210 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
7211
5982a56a
SM
72122020-03-16 Simon Marchi <simon.marchi@efficios.com>
7213
7214 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
7215 i386_cygwin_core_osabi_sniffer.
7216
7a1998df
SM
72172020-03-16 Simon Marchi <simon.marchi@efficios.com>
7218
7219 * i386-cygwin-tdep.c: Rename to...
7220 * i386-windows-tdep.c: ... this.
7221 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
7222 i386-windows-tdep.c.
7223 * configure.tgt: Likewise.
7224
053205cc
SM
72252020-03-16 Simon Marchi <simon.marchi@efficios.com>
7226
7227 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
7228 * osabi.c (gdb_osabi_names): Add "Windows".
7229 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
7230 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
7231 (i386_cygwin_core_osabi_sniffer): New function, extracted from
7232 i386_cygwin_osabi_sniffer.
7233 (_initialize_i386_cygwin_tdep): Register OS ABI
7234 GDB_OSABI_WINDOWS for i386.
7235 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
7236 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
7237 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
7238 for x86-64.
7239 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
7240 when the target matches '*-*-mingw*'.
7241
fe4b2ee6
SM
72422020-03-16 Simon Marchi <simon.marchi@efficios.com>
7243
7244 * defs.h (enum gdb_osabi): Move to...
7245 * osabi.h (enum gdb_osabi): ... here.
7246 * gdbarch.sh: Include osabi.h in gdbarch.h.
7247 * gdbarch.h: Re-generate.
7248
cb9b645d
SM
72492020-03-16 Simon Marchi <simon.marchi@efficios.com>
7250
7251 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
7252 function.
7253 (_initialize_amd64_windows_tdep): Register osabi sniffer.
7254
3293bbaf
TT
72552020-03-14 Tom Tromey <tom@tromey.com>
7256
7257 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
7258 for C++.
7259 (c_type_print_modifier): Likewise. Add "language" parameter.
7260 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
7261 (c_type_print_base_1): Update.
7262 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
7263 constants.
7264 * type-stack.c (type_stack::insert): Handle tp_atomic and
7265 tp_restrict.
7266 (type_stack::follow_type_instance_flags): Likewise.
7267 (type_stack::follow_types): Likewise. Merge type-following code.
7268 * c-exp.y (RESTRICT, ATOMIC): New tokens.
7269 (space_identifier, cv_with_space_id)
7270 (const_or_volatile_or_space_identifier_noopt)
7271 (const_or_volatile_or_space_identifier): Remove.
7272 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
7273 rules.
7274 (ptr_operator, typebase): Update.
7275 (enum token_flag) <FLAG_C>: New constant.
7276 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
7277 "_Atomic".
7278 (lex_one_token): Handle FLAG_C.
7279
154151a6
KR
72802020-03-14 Kamil Rytarowski <n54@gmx.com>
7281
7282 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
7283 it to the ptrace call.
7284 * m68k-bsd-nat.c (store_registers): Likewise.
7285
bc107784
KR
72862020-03-14 Kamil Rytarowski <n54@gmx.com>
7287
7288 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
7289 gdb_byte *.
7290 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
7291 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
7292 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
7293
01a80117
KR
72942020-03-14 Kamil Rytarowski <n54@gmx.com>
7295
7296 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
7297 nbsd_nat_target instead of inf_ptrace_target.
7298 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7299 nbsd_nat_target.
7300
f90280ca
KR
73012020-03-14 Kamil Rytarowski <n54@gmx.com>
7302
7303 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
7304 register_t.
7305
6def66f1
KR
73062020-03-14 Kamil Rytarowski <n54@gmx.com>
7307
7308 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
7309 it to the ptrace call.
7310 * alpha-bsd-nat.c (store_registers): Likewise.
7311
66eaca97
KR
73122020-03-14 Kamil Rytarowski <n54@gmx.com>
7313
7314 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
7315 includes.
7316 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
7317 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
7318 fill_fpregset): Likewise.
7319
4fed520b
KR
73202020-03-14 Kamil Rytarowski <n54@gmx.com>
7321
7322 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
7323 nbsd_nat_target instead of inf_ptrace_target.
7324 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7325 nbsd_nat_target.
7326
2190cf06
KR
73272020-03-14 Kamil Rytarowski <n54@gmx.com>
7328
7329 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
7330 register_t.
7331
75c56d3d
KR
73322020-03-14 Kamil Rytarowski <n54@gmx.com>
7333
7334 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
7335 it to the ptrace call.
7336 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
7337 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
7338 * arm-nbsd-nat.c (store_register): Likewise.
7339 * arm-nbsd-nat.c (store_regs): Likewise.
7340 * arm-nbsd-nat.c (store_fp_register): Likewise.
7341 * arm-nbsd-nat.c (store_fp_regs): Likewise.
7342
6018d381
KR
73432020-03-14 Kamil Rytarowski <n54@gmx.com>
7344
7345 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
7346 nbsd_nat_target instead of inf_ptrace_target.
7347 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7348 nbsd_nat_target.
7349
013f99f0
KR
73502020-03-14 Kamil Rytarowski <n54@gmx.com>
7351
7352 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
7353 it to the ptrace call.
7354 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
7355
12753073
KR
73562020-03-14 Kamil Rytarowski <n54@gmx.com>
7357
6227b330
KR
7358 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
7359 it to the ptrace call.
7360 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
7361
73622020-03-14 Kamil Rytarowski <n54@gmx.com>
7363
7364 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
7365 gdb_byte *.
12753073
KR
7366 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
7367
d5be5fa4
KR
73682020-03-14 Kamil Rytarowski <n54@gmx.com>
7369
7370 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
7371 instead of inf_ptrace_target.
7372 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7373 nbsd_nat_target.
7374
8110f842
KR
73752020-03-14 Kamil Rytarowski <n54@gmx.com>
7376
7377 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7378 register_t.
7379
52feded7
KR
73802020-03-14 Kamil Rytarowski <n54@gmx.com>
7381
7382 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7383 register_t.
7384
25567eee
KR
73852020-03-14 Kamil Rytarowski <n54@gmx.com>
7386
7387 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
7388 register_t.
7389
426a9c18
TT
73902020-03-13 Tom Tromey <tom@tromey.com>
7391
7392 * value.h (val_print): Don't declare.
7393 * valprint.h (val_print_array_elements)
7394 (val_print_scalar_formatted, generic_val_print): Don't declare.
7395 * valprint.c (generic_val_print_array): Take a struct value.
7396 (generic_val_print_ptr, generic_val_print_memberptr)
7397 (generic_val_print_bool, generic_val_print_int)
7398 (generic_val_print_char, generic_val_print_complex)
7399 (generic_val_print): Remove.
7400 (generic_value_print): Update.
7401 (do_val_print): Remove unused parameters. Don't call
7402 la_val_print.
7403 (val_print): Remove.
7404 (common_val_print): Update. Don't call value_check_printable.
7405 (val_print_scalar_formatted, val_print_array_elements): Remove.
7406 * rust-lang.c (rust_val_print): Remove.
7407 (rust_language_defn): Update.
7408 * p-valprint.c (pascal_val_print): Remove.
7409 (pascal_value_print_inner): Update.
7410 (pascal_object_print_val_fields, pascal_object_print_val):
7411 Remove.
7412 (pascal_object_print_static_field): Update.
7413 * p-lang.h (pascal_val_print): Don't declare.
7414 * p-lang.c (pascal_language_defn): Update.
7415 * opencl-lang.c (opencl_language_defn): Update.
7416 * objc-lang.c (objc_language_defn): Update.
7417 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
7418 * m2-lang.h (m2_val_print): Don't declare.
7419 * m2-lang.c (m2_language_defn): Update.
7420 * language.h (struct language_defn) <la_val_print>: Remove.
7421 * language.c (unk_lang_value_print_inner): Rename. Change
7422 argument types.
7423 (unknown_language_defn, auto_language_defn): Update.
7424 * go-valprint.c (go_val_print): Remove.
7425 * go-lang.h (go_val_print): Don't declare.
7426 * go-lang.c (go_language_defn): Update.
7427 * f-valprint.c (f_val_print): Remove.
7428 * f-lang.h (f_value_print): Don't declare.
7429 * f-lang.c (f_language_defn): Update.
7430 * d-valprint.c (d_val_print): Remove.
7431 * d-lang.h (d_value_print): Don't declare.
7432 * d-lang.c (d_language_defn): Update.
7433 * cp-valprint.c (cp_print_value_fields)
7434 (cp_print_value_fields_rtti, cp_print_value): Remove.
7435 (cp_print_static_field): Update.
7436 * c-valprint.c (c_val_print_array, c_val_print_ptr)
7437 (c_val_print_struct, c_val_print_union, c_val_print_int)
7438 (c_val_print_memberptr, c_val_print): Remove.
7439 * c-lang.h (c_val_print_array, cp_print_value_fields)
7440 (cp_print_value_fields_rtti): Don't declare.
7441 * c-lang.c (c_language_defn, cplus_language_defn)
7442 (asm_language_defn, minimal_language_defn): Update.
7443 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
7444 (ada_val_print_enum): Take a struct value.
7445 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
7446 (ada_val_print): Remove.
7447 (ada_value_print_1): Update.
7448 (printable_val_type): Remove.
7449 * ada-lang.h (ada_val_print): Don't declare.
7450 * ada-lang.c (ada_language_defn): Update.
7451
42331a1e
TT
74522020-03-13 Tom Tromey <tom@tromey.com>
7453
7454 * valprint.c (do_val_print): Update.
7455 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
7456 a struct value.
7457 (value_to_value_object_no_release): Declare.
7458 * python/py-value.c (value_to_value_object_no_release): New
7459 function.
7460 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
7461 struct value.
7462 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
7463 function.
7464 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
7465 a struct value.
7466 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
7467 Declare.
7468 (gdbscm_apply_val_pretty_printer): Take a struct value.
7469 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
7470 value.
7471 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
7472 value.
7473 * extension-priv.h (struct extension_language_ops)
7474 <apply_val_pretty_printer>: Take a struct value.
7475 * cp-valprint.c (cp_print_value): Create a struct value.
7476 (cp_print_value): Update.
7477
3a916a97
TT
74782020-03-13 Tom Tromey <tom@tromey.com>
7479
7480 * ada-valprint.c (print_field_values): Call common_val_print.
7481
b59eac37
TT
74822020-03-13 Tom Tromey <tom@tromey.com>
7483
7484 * ada-valprint.c (val_print_packed_array_elements): Remove
7485 bitoffset and val parameters. Call common_val_print.
7486 (ada_val_print_string): Remove offset, address, and original_value
7487 parameters.
7488 (ada_val_print_array): Update.
7489 (ada_value_print_array): New function.
7490 (ada_value_print_1): Call it.
7491
03371129
TT
74922020-03-13 Tom Tromey <tom@tromey.com>
7493
7494 * ada-valprint.c (ada_value_print): Use common_val_print.
7495
2e088f8b
TT
74962020-03-13 Tom Tromey <tom@tromey.com>
7497
7498 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
7499
39ef85a8
TT
75002020-03-13 Tom Tromey <tom@tromey.com>
7501
7502 * ada-valprint.c (ada_value_print_num): New function.
7503 (ada_value_print_1): Use it.
7504
b9fa6e07
TT
75052020-03-13 Tom Tromey <tom@tromey.com>
7506
7507 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
7508
416595d6
TT
75092020-03-13 Tom Tromey <tom@tromey.com>
7510
7511 * ada-valprint.c (ada_value_print_ptr): New function.
7512 (ada_value_print_1): Use it.
7513
5b5e15ec
TT
75142020-03-13 Tom Tromey <tom@tromey.com>
7515
7516 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
7517 call common_val_print.
7518 (ada_val_print_1): Update.
7519 (ada_value_print_1): New function.
7520 (ada_value_print_inner): Rewrite.
7521
fbf54e75
TT
75222020-03-13 Tom Tromey <tom@tromey.com>
7523
7524 * cp-valprint.c (cp_print_value_fields): Update.
7525 (cp_print_value): New function.
7526
64b653ca
TT
75272020-03-13 Tom Tromey <tom@tromey.com>
7528
7529 * m2-valprint.c (m2_value_print_inner): Use
7530 cp_print_value_fields.
7531 * cp-valprint.c (cp_print_value_fields): New function.
7532 * c-valprint.c (c_value_print_struct): New function.
7533 (c_value_print_inner): Use c_value_print_struct.
7534 * c-lang.h (cp_print_value_fields): Declare.
7535
6999f067
TT
75362020-03-13 Tom Tromey <tom@tromey.com>
7537
7538 * c-valprint.c (c_value_print_array): New function.
7539 (c_value_print_inner): Use it.
7540
ce80b8bd
TT
75412020-03-13 Tom Tromey <tom@tromey.com>
7542
7543 * c-valprint.c (c_value_print_memberptr): New function.
7544 (c_value_print_inner): Use it.
7545
2faac269
TT
75462020-03-13 Tom Tromey <tom@tromey.com>
7547
7548 * c-valprint.c (c_value_print_int): New function.
7549 (c_value_print_inner): Use it.
7550
da3e2c29
TT
75512020-03-13 Tom Tromey <tom@tromey.com>
7552
7553 * c-valprint.c (c_value_print_ptr): New function.
7554 (c_value_print_inner): Use it.
7555
50836231
TT
75562020-03-13 Tom Tromey <tom@tromey.com>
7557
7558 * c-valprint.c (c_value_print_inner): Rewrite.
7559
4f412b6e
TT
75602020-03-13 Tom Tromey <tom@tromey.com>
7561
7562 * valprint.c (generic_value_print_complex): New function.
7563 (generic_value_print): Use it.
7564
f5354008
TT
75652020-03-13 Tom Tromey <tom@tromey.com>
7566
7567 * valprint.c (generic_val_print_float): Don't call
7568 val_print_scalar_formatted.
7569 (generic_val_print, generic_value_print): Update.
7570
3eec3b05
TT
75712020-03-13 Tom Tromey <tom@tromey.com>
7572
7573 * valprint.c (generic_value_print_char): New function
7574 (generic_value_print): Use it.
7575
fdddfccb
TT
75762020-03-13 Tom Tromey <tom@tromey.com>
7577
7578 * valprint.c (generic_value_print_int): New function.
7579 (generic_value_print): Use it.
7580
6dde7521
TT
75812020-03-13 Tom Tromey <tom@tromey.com>
7582
7583 * valprint.c (generic_value_print_bool): New function.
7584 (generic_value_print): Use it.
7585
4112d2e6
TT
75862020-03-13 Tom Tromey <tom@tromey.com>
7587
7588 * valprint.c (generic_val_print_func): Simplify.
7589 (generic_val_print, generic_value_print): Update.
7590
65786af6
TT
75912020-03-13 Tom Tromey <tom@tromey.com>
7592
7593 * valprint.c (generic_val_print_flags): Remove.
7594 (generic_val_print, generic_value_print): Update.
7595 (val_print_type_code_flags): Add original_value parameter.
7596
40f3ce18
TT
75972020-03-13 Tom Tromey <tom@tromey.com>
7598
7599 * valprint.c (generic_val_print): Update.
7600 (generic_value_print): Update.
7601 * valprint.c (generic_val_print_enum): Don't call
7602 val_print_scalar_formatted.
7603
2a5b130b
TT
76042020-03-13 Tom Tromey <tom@tromey.com>
7605
7606 * valprint.c (generic_value_print): Call generic_value_print_ptr.
7607 * valprint.c (generic_value_print_ptr): New function.
7608
abc66ce9
TT
76092020-03-13 Tom Tromey <tom@tromey.com>
7610
7611 * valprint.c (generic_value_print): Rewrite.
7612
07a32858
TT
76132020-03-13 Tom Tromey <tom@tromey.com>
7614
7615 * p-valprint.c (pascal_object_print_value_fields)
7616 (pascal_object_print_value): New functions.
7617
64d64d3a
TT
76182020-03-13 Tom Tromey <tom@tromey.com>
7619
7620 * p-valprint.c (pascal_value_print_inner): Rewrite.
7621
6a95a1f5
TT
76222020-03-13 Tom Tromey <tom@tromey.com>
7623
7624 * f-valprint.c (f_value_print_innner): Rewrite.
7625
59fcdac6
TT
76262020-03-13 Tom Tromey <tom@tromey.com>
7627
7628 * m2-valprint.c (m2_print_unbounded_array): New overload.
7629 (m2_print_unbounded_array): Update.
7630 (m2_print_array_contents): Take a struct value.
7631 (m2_value_print_inner): Rewrite.
7632
d133c3e1
TT
76332020-03-13 Tom Tromey <tom@tromey.com>
7634
7635 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
7636 (d_value_print_inner): New function.
7637 * d-lang.h (d_value_print_inner): Declare.
7638 * d-lang.c (d_language_defn): Use d_value_print_inner.
7639
23b0f06b
TT
76402020-03-13 Tom Tromey <tom@tromey.com>
7641
7642 * go-valprint.c (go_value_print_inner): New function.
7643 * go-lang.h (go_value_print_inner): Declare.
7644 * go-lang.c (go_language_defn): Use go_value_print_inner.
7645
5f56f7cb
TT
76462020-03-13 Tom Tromey <tom@tromey.com>
7647
7648 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
7649 API.
7650 (rust_val_print): Rewrite.
7651 (rust_value_print_inner): New function, from rust_val_print.
7652 (rust_language_defn): Use rust_value_print_inner.
7653
26792ee0
TT
76542020-03-13 Tom Tromey <tom@tromey.com>
7655
7656 * ada-valprint.c (ada_value_print_inner): New function.
7657 * ada-lang.h (ada_value_print_inner): Declare.
7658 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
7659
24051bbe
TT
76602020-03-13 Tom Tromey <tom@tromey.com>
7661
7662 * f-valprint.c (f_value_print_innner): New function.
7663 * f-lang.h (f_value_print_innner): Declare.
7664 * f-lang.c (f_language_defn): Use f_value_print_innner.
7665
c0941be6
TT
76662020-03-13 Tom Tromey <tom@tromey.com>
7667
7668 * p-valprint.c (pascal_value_print_inner): New function.
7669 * p-lang.h (pascal_value_print_inner): Declare.
7670 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
7671
62c4663d
TT
76722020-03-13 Tom Tromey <tom@tromey.com>
7673
7674 * m2-valprint.c (m2_value_print_inner): New function.
7675 * m2-lang.h (m2_value_print_inner): Declare.
7676 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
7677
62182190
TT
76782020-03-13 Tom Tromey <tom@tromey.com>
7679
7680 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
7681 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
7682 * c-valprint.c (c_value_print_inner): New function.
7683 * c-lang.h (c_value_print_inner): Declare.
7684 * c-lang.c (c_language_defn, cplus_language_defn)
7685 (asm_language_defn, minimal_language_defn): Use
7686 c_value_print_inner.
7687
1e592a8a
TT
76882020-03-13 Tom Tromey <tom@tromey.com>
7689
7690 * p-valprint.c (pascal_object_print_value_fields): Now static.
7691 * p-lang.h (pascal_object_print_value_fields): Don't declare.
7692
7fe471e9
TT
76932020-03-13 Tom Tromey <tom@tromey.com>
7694
7695 * c-valprint.c (c_val_print_array): Simplify.
7696
d121c6ce
TT
76972020-03-13 Tom Tromey <tom@tromey.com>
7698
7699 * valprint.c (value_print_array_elements): New function.
7700 * valprint.h (value_print_array_elements): Declare.
7701
4dba70ee
TT
77022020-03-13 Tom Tromey <tom@tromey.com>
7703
7704 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
7705 * mips-tdep.c (mips_print_register): Use
7706 value_print_scalar_formatted.
7707
4f9ae810
TT
77082020-03-13 Tom Tromey <tom@tromey.com>
7709
7710 * valprint.h (value_print_scalar_formatted): Declare.
7711 * valprint.c (value_print_scalar_formatted): New function.
7712
156bfec9
TT
77132020-03-13 Tom Tromey <tom@tromey.com>
7714
7715 * valprint.h (generic_value_print): Declare.
7716 * valprint.c (generic_value_print): New function.
7717
2b4e573d
TT
77182020-03-13 Tom Tromey <tom@tromey.com>
7719
7720 * valprint.c (do_val_print): Call la_value_print_inner, if
7721 available.
7722 * rust-lang.c (rust_language_defn): Update.
7723 * p-lang.c (pascal_language_defn): Update.
7724 * opencl-lang.c (opencl_language_defn): Update.
7725 * objc-lang.c (objc_language_defn): Update.
7726 * m2-lang.c (m2_language_defn): Update.
7727 * language.h (struct language_defn) <la_value_print_inner>: New
7728 member.
7729 * language.c (unknown_language_defn, auto_language_defn): Update.
7730 * go-lang.c (go_language_defn): Update.
7731 * f-lang.c (f_language_defn): Update.
7732 * d-lang.c (d_language_defn): Update.
7733 * c-lang.c (c_language_defn, cplus_language_defn)
7734 (asm_language_defn, minimal_language_defn): Update.
7735 * ada-lang.c (ada_language_defn): Update.
7736
a1f6a07c
TT
77372020-03-13 Tom Tromey <tom@tromey.com>
7738
7739 * c-valprint.c (c_value_print): Use common_val_print.
7740
410cf315
TT
77412020-03-13 Tom Tromey <tom@tromey.com>
7742
7743 * cp-valprint.c (cp_print_static_field): Use common_val_print.
7744
72a45c93
TT
77452020-03-13 Tom Tromey <tom@tromey.com>
7746
7747 * f-valprint.c (f77_print_array_1, f_val_print): Use
7748 common_val_print.
7749
040f66bd
TT
77502020-03-13 Tom Tromey <tom@tromey.com>
7751
7752 * riscv-tdep.c (riscv_print_one_register_info): Use
7753 common_val_print.
7754
a6e05a6c
TT
77552020-03-13 Tom Tromey <tom@tromey.com>
7756
7757 * mi/mi-main.c (output_register): Use common_val_print.
7758
3444c526
TT
77592020-03-13 Tom Tromey <tom@tromey.com>
7760
7761 * infcmd.c (default_print_one_register_info): Use
7762 common_val_print.
7763
c2a44efe
TT
77642020-03-13 Tom Tromey <tom@tromey.com>
7765
7766 * valprint.h (common_val_print_checked): Declare.
7767 * valprint.c (common_val_print_checked): New function.
7768 * stack.c (print_frame_arg): Use common_val_print_checked.
7769
b0c26e99
TT
77702020-03-13 Tom Tromey <tom@tromey.com>
7771
7772 * valprint.c (do_val_print): New function, from val_print.
7773 (val_print): Use do_val_print.
7774 (common_val_print): Use do_val_print.
7775
ce3acbe9
TT
77762020-03-13 Tom Tromey <tom@tromey.com>
7777
7778 * valprint.c (value_print): Use scoped_value_mark.
7779
96c7f873
TV
77802020-03-13 Tom de Vries <tdevries@suse.de>
7781
7782 PR symtab/25646
7783 * psymtab.c (partial_symtab::partial_symtab): Don't set
7784 globals_offset and statics_offset. Push element onto
7785 current_global_psymbols and current_static_psymbols stacks.
7786 (concat): New function.
7787 (end_psymtab_common): Set globals_offset and statics_offset. Pop
7788 element from current_global_psymbols and current_static_psymbols
7789 stacks. Concat popped elements to global_psymbols and
7790 static_symbols.
7791 (add_psymbol_to_list): Use current_global_psymbols and
7792 current_static_psymbols stacks.
7793 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
7794 current_static_psymbols fields.
7795
6ba0a321
CB
77962020-03-12 Christian Biesinger <cbiesinger@google.com>
7797
7798 * corelow.c (sniff_core_bfd): Remove.
7799 (class core_target) <m_core_vec>: Remove.
7800 (core_target::core_target): Update.
7801 (core_file_fns): Remove.
7802 (deprecated_add_core_fns): Remove.
7803 (default_core_sniffer): Remove.
7804 (sniff_core_bfd): Remove.
7805 (default_check_format): Remove.
7806 (gdb_check_format): Remove.
7807 (core_target_open): Update.
7808 (core_target::get_core_register_section): Update.
7809 (get_core_registers_cb): Update.
7810 (core_target::fetch_registers): Update.
7811 * gdbcore.h (struct core_fns): Remove.
7812 (deprecated_add_core_fns): Remove.
7813 (default_core_sniffer): Remove.
7814 (default_check_format): Remove.
7815
227031b2
TT
78162020-03-12 Tom Tromey <tom@tromey.com>
7817
7818 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
7819 CORE_ADDR.
7820 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
7821
53807e9f
TT
78222020-03-12 Tom Tromey <tom@tromey.com>
7823
7824 * remote.c (remote_target::download_tracepoint)
7825 (remote_target::enable_tracepoint)
7826 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
7827 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
7828 sprintf_vma.
7829
64f25102
TT
78302020-03-12 Tom Tromey <tom@tromey.com>
7831
7832 * symfile-mem.c: Update CORE_ADDR size assert.
7833
272cd5a3
SM
78342020-03-12 Simon Marchi <simon.marchi@efficios.com>
7835
7836 * selftest.m4: Move to gdbsupport/.
7837 * acinclude.m4: Update path to selftest.m4.
7838
74cd3f9d
SM
78392020-03-12 Simon Marchi <simon.marchi@efficios.com>
7840
7841 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
7842 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
7843 gdbarch-selfselftests.c and selftest-arch.c.
7844 (SUBDIR_UNITTESTS_OBS): Rename to...
7845 (SELFTESTS_OBS): ... this.
7846 (COMMON_SFILES): Remove disasm-selftests.c and
7847 gdbarch-selftests.c.
7848 * configure.ac: Don't add selftest-arch.{c,o} to
7849 CONFIG_{SRCS,OBS}.
7850 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
7851 preprocessor conditions.
7852
db6878ac
SM
78532020-03-12 Simon Marchi <simon.marchi@efficios.com>
7854
7855 * configure.ac: Don't source bfd/development.sh.
7856 * selftest.m4: Modify comment.
7857 * configure: Re-generate.
7858
4d696a5c
SM
78592020-03-12 Simon Marchi <simon.marchi@efficios.com>
7860
7861 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
7862 not "true" or "false".
7863 * configure: Re-generate.
7864
8dd8e1c7
CB
78652020-03-12 Christian Biesinger <cbiesinger@google.com>
7866
7867 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
7868 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
7869 renamed to arm_nbsd_supply_gregset.
7870 (fetch_register): Update to call arm_nbsd_supply_gregset.
7871 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
7872 (arm_netbsd_nat_target::fetch_registers): Update.
7873 (fetch_elfcore_registers): Removed.
7874 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
7875 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
7876 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
7877 not require NetBSD system headers.
7878 (arm_nbsd_regset): New struct.
7879 (arm_nbsd_iterate_over_regset_sections): New function.
7880 (arm_netbsd_init_abi_common): Updated to call
7881 set_gdbarch_iterate_over_regset_sections.
7882 * arm-nbsd-tdep.h: New file.
7883
dd69bf7a
KB
78842020-03-11 Kevin Buettner <kevinb@redhat.com>
7885
7886 * symtab.c (find_pc_sect_line): Add check which prevents infinite
7887 recursion.
7888
a0761e34
SM
78892020-03-11 Simon Marchi <simon.marchi@efficios.com>
7890
7891 * configure: Re-generate.
7892
e7a82140
TT
78932020-03-11 Tom Tromey <tromey@adacore.com>
7894
7895 * ada-typeprint.c (print_choices): Fix comment.
7896
dcc050c8
AB
78972020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
7898
7899 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
7900 previous item in the list, when the list has no items.
7901
1c33af77
TV
79022020-03-11 Tom de Vries <tdevries@suse.de>
7903
7904 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
7905 PROP_LOCLIST handling code.
7906
8c95582d
AB
79072020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
7908
7909 * buildsym-legacy.c (record_line): Pass extra parameter to
7910 record_line.
7911 * buildsym.c (buildsym_compunit::record_line): Take an extra
7912 parameter, reduce duplication in the line table, and record the
7913 is_stmt flag in the line table.
7914 * buildsym.h (buildsym_compunit::record_line): Add extra
7915 parameter.
7916 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
7917 non-statement lines.
7918 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
7919 this to the symtab builder.
7920 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
7921 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
7922 through to dwarf_record_line_1.
7923 * infrun.c (process_event_stop_test): When stepping, don't stop at
7924 a non-statement instruction, and only refresh the step info when
7925 we land in the middle of a line's range. Also add an extra
7926 comment.
7927 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
7928 field.
7929 * record-btrace.c (btrace_find_line_range): Only record lines
7930 marked as is-statement.
7931 * stack.c (frame_show_address): Show the frame address if we are
7932 in a non-statement sal.
7933 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
7934 (maintenance_print_one_line_table): Print a header for the is_stmt
7935 column, and include is_stmt information in the output.
7936 * symtab.c (find_pc_sect_line): Find lines marked as statements in
7937 preference to non-statements.
7938 (find_pcs_for_symtab_line): Prefer is-statement entries.
7939 (find_line_common): Likewise.
7940 * symtab.h (struct linetable_entry): Add is_stmt field.
7941 (struct symtab_and_line): Likewise.
7942 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
7943 arranging the line table.
7944
e4003a34
TV
79452020-03-07 Tom de Vries <tdevries@suse.de>
7946
7947 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
7948 DIE.
7949
e8932576
TT
79502020-03-07 Tom Tromey <tom@tromey.com>
7951
7952 * valops.c (value_literal_complex): Remove obsolete comment.
7953 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
7954 comment.
7955
29734269
SM
79562020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
7957
7958 * infrun.h: Forward-declare thread_info.
7959 (set_step_info): Add thread_info parameter, add doc.
7960 * infrun.c (set_step_info): Add thread_info parameter, move doc
7961 to header.
7962 * infrun.c (process_event_stop_test): Pass thread to
7963 set_step_info call.
7964 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
7965 set_step_info.
7966 (prepare_one_step): Add thread_info parameter, pass it to
7967 set_step_frame and prepare_one_step (recursive) call.
7968 (step_1): Pass thread to prepare_one_step call.
7969 (step_command_fsm::should_stop): Pass thread to
7970 prepare_one_step.
7971 (until_next_fsm): Pass thread to set_step_frame call.
7972 (finish_command): Pass thread to set_step_info call.
7973
b7d64b29
HD
79742020-03-06 Hannes Domani <ssbssa@yahoo.de>
7975
7976 * windows-tdep.c (windows_solib_create_inferior_hook):
7977 Check if inferior is running.
7978
09f2921c
TV
79792020-03-06 Tom de Vries <tdevries@suse.de>
7980
7981 * NEWS: Fix "the the".
7982 * ctfread.c: Same.
7983
fd760e79
TV
79842020-03-06 Tom de Vries <tdevries@suse.de>
7985
7986 * psymtab.c (psymtab_to_symtab): Don't print "done.".
7987
20ea4a60
AB
79882020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
7989
7990 * .dir-locals.el: Add a comment referencing the other copies of
7991 this file.
7992
0afbabf0
JB
79932020-03-05 John Baldwin <jhb@FreeBSD.org>
7994
7995 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
7996 psargs.
7997
842806cb
TBA
79982020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7999
8000 * .gitattributes: New file.
8001
be1e3d3e
TT
80022020-03-04 Tom Tromey <tom@tromey.com>
8003
8004 * symmisc.c (print_symbol_bcache_statistics)
8005 (print_objfile_statistics): Update.
8006 * symfile.c (allocate_symtab): Use intern.
8007 * psymtab.c (partial_symtab::partial_symtab): Use intern.
8008 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
8009 macro_cache>: Remove.
8010 <string_cache>: New member.
8011 (struct objfile) <intern>: New methods.
8012 * elfread.c (elf_symtab_read): Use intern.
8013 * dwarf2/read.c (fixup_go_packaging): Intern package name.
8014 (dwarf2_compute_name, dwarf2_physname)
8015 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
8016 names.
8017 (guess_partial_die_structure_name): Update.
8018 (partial_die_info::fixup): Intern name.
8019 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
8020 name.
8021 (dwarf2_name): Intern name. Update.
8022 * buildsym.c (buildsym_compunit::get_macro_table): Use
8023 string_cache.
8024
4e7625fd
TT
80252020-03-04 Tom Tromey <tom@tromey.com>
8026
8027 * jit.c (bfd_open_from_target_memory): Make "target" const.
8028 * corefile.c (gnutarget): Now const.
8029 * gdbcore.h (gnutarget): Now const.
8030
46f9f931
HD
80312020-03-04 Hannes Domani <ssbssa@yahoo.de>
8032
8033 * NEWS: Mention support for WOW64 processes.
8034 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
8035 (amd64_windows_segment_register_p): Remove static.
8036 (_initialize_amd64_windows_nat): Update.
8037 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
8038 * i386-windows-nat.c (context_offset): Update.
8039 (i386_mappings): Rename and remove static.
8040 (i386_windows_segment_register_p): Remove static.
8041 (_initialize_i386_windows_nat): Update.
8042 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
8043 (STATUS_WX86_SINGLE_STEP): New macro.
8044 (EnumProcessModulesEx): New macro.
8045 (Wow64SuspendThread): New macro.
8046 (Wow64GetThreadContext): New macro.
8047 (Wow64SetThreadContext): New macro.
8048 (Wow64GetThreadSelectorEntry): New macro.
8049 (windows_set_context_register_offsets): Add static.
8050 (windows_set_segment_register_p): Likewise.
8051 (windows_add_thread): Adapt for WOW64 processes.
8052 (windows_fetch_one_register): Likewise.
8053 (windows_nat_target::fetch_registers): Likewise.
8054 (windows_store_one_register): Likewise.
8055 (display_selector): Likewise.
8056 (display_selectors): Likewise.
8057 (handle_exception): Likewise.
8058 (windows_continue): Likewise.
8059 (windows_nat_target::resume): Likewise.
8060 (windows_add_all_dlls): Likewise.
8061 (do_initial_windows_stuff): Likewise.
8062 (windows_nat_target::attach): Likewise.
8063 (windows_get_exec_module_filename): Likewise.
8064 (windows_nat_target::create_inferior): Likewise.
8065 (windows_xfer_siginfo): Likewise.
8066 (_initialize_loadable): Initialize Wow64SuspendThread,
8067 Wow64GetThreadContext, Wow64SetThreadContext,
8068 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
8069 * windows-nat.h (windows_set_context_register_offsets):
8070 Remove declaration.
8071 (windows_set_segment_register_p): Likewise.
8072 (i386_windows_segment_register_p): Add declaration.
8073 (amd64_windows_segment_register_p): Likewise.
8074
440cf44e
LM
80752020-03-04 Luis Machado <luis.machado@linaro.org>
8076
8077 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
8078 in "info registers" for AArch64/ARM.
8079
8080 The change caused "info registers" to not print GPR's.
8081
8082 gdb/ChangeLog:
8083
8084 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
8085
8086 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
8087 when reg->group is empty and reggroup is not.
8088
1009d92f
TT
80892020-03-03 Tom Tromey <tromey@adacore.com>
8090
8091 * dwarf2/frame.c (struct dwarf2_frame_cache)
8092 <checked_tailcall_bottom, entry_cfa_sp_offset,
8093 entry_cfa_sp_offset_p>: Remove members.
8094 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
8095 (dwarf2_frame_prev_register): Don't call
8096 dwarf2_tailcall_sniffer_first.
8097 (dwarf2_append_unwinders): Don't append tailcall unwinder.
8098 * frame-unwind.c (add_unwinder): New fuction.
8099 (frame_unwind_init): Use it. Add tailcall unwinder.
8100
5e5d66b6
AB
81012020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
8102 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8103
8104 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
8105 value should be printed as true.
8106
584cf46d
HD
81072020-03-03 Hannes Domani <ssbssa@yahoo.de>
8108
8109 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
8110 (windows_init_abi): Set and use windows_so_ops.
8111
7b973adc
SDJ
81122020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
8113
8114 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
8115 when verifying if dealing with a convenience variable.
8116
bb7b70ab
LM
81172020-03-03 Luis Machado <luis.machado@linaro.org>
8118
8119 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
8120
9822cb57
SM
81212020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
8122
8123 * infrun.c (gdbarch_supports_displaced_stepping): New.
8124 (use_displaced_stepping): Break up conditions in smaller pieces.
8125 Use gdbarch_supports_displaced_stepping.
8126 (displaced_step_prepare_throw): Use
8127 gdbarch_supports_displaced_stepping.
8128
63e163f2
AB
81292020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8130
8131 * NEWS: Mention new behaviour of the history filename.
8132 * top.c (write_history_p): Add comment.
8133 (show_write_history_p): Add header comment, give a different
8134 message when history writing is on, but the history filename is
8135 empty.
8136 (history_filename): Add comment.
8137 (history_filename_empty): New function.
8138 (show_history_filename): Add header comment, give a different
8139 message when the filename is empty.
8140 (init_history): Compare history_filename against nullptr, and only
8141 read history if the filename is not empty.
8142 (set_history_filename): Add header comment, and only make
8143 non-empty filenames absolute.
8144 (init_main): Make the filename argument to 'set history filename'
8145 optional.
8146
81b86b97
CB
81472020-03-02 Christian Biesinger <cbiesinger@google.com>
8148
8149 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
8150 (arm_supply_vfpregset): ...this, and update to use VFP registers.
8151 (fetch_fp_register): Update.
8152 (fetch_fp_regs): Update.
8153 (store_fp_register): Update.
8154 (store_fp_regs): Update.
8155 (arm_netbsd_nat_target::read_description): New function.
8156 (fetch_elfcore_registers): Update.
8157
24ed6739
AB
81582020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8159
8160 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
8161 general_thread if the stop reply is missing a thread-id.
8162 (remote_target::process_stop_reply): Use the first non-exited
8163 thread if the target didn't pass a thread-id.
8164 * infrun.c (do_target_wait): Move call to
8165 switch_to_inferior_no_thread to ....
8166 (do_target_wait_1): ... here.
8167
a84bb2a0
JT
81682020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
8169
8170 * debuginfod-support.c: Include defs.h first.
8171
658dadf0
TV
81722020-02-28 Tom de Vries <tdevries@suse.de>
8173
8174 * symfile.c (set_initial_language): Use default language for lookup.
8175
4ebe4877
SM
81762020-02-28 Simon Marchi <simon.marchi@efficios.com>
8177
8178 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
8179 reader variable, pass `this` to read_cutu_die_from_dwo.
8180
e5da1139
AM
81812020-02-27 Aaron Merey <amerey@redhat.com>
8182
8183 * source.c (open_source_file): Check for nullptr when computing
8184 srcpath.
8185
317f7127
TT
81862020-02-27 Tom Tromey <tromey@adacore.com>
8187
8188 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
8189 member.
8190 (dwarf2_add_field): Don't update nfields.
8191 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
8192
3104d9ee
AB
81932020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8194
8195 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
8196 abs.
8197
b83470bf
TT
81982020-02-26 Tom Tromey <tom@tromey.com>
8199
8200 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
8201 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
8202 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
8203 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
8204 per_cu_data.
8205
edfe0a0c
TT
82062020-02-26 Tom Tromey <tom@tromey.com>
8207
8208 * dwarf2/index-write.c (psym_index_map): Change type.
8209 (add_address_entry_worker, write_one_signatured_type)
8210 (recursively_count_psymbols, recursively_write_psymbols)
8211 (class debug_names, psyms_seen_size, write_gdbindex)
8212 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
8213
0d79cdc4
AM
82142020-02-26 Aaron Merey <amerey@redhat.com>
8215
8216 * Makefile.in: Handle optional debuginfod support.
8217 * NEWS: Update.
8218 * README: Add --with-debuginfod summary.
8219 * config.in: Regenerate.
8220 * configure: Regenerate.
8221 * configure.ac: Handle optional debuginfod support.
8222 * debuginfod-support.c: debuginfod helper functions.
8223 * debuginfod-support.h: Ditto.
8224 * doc/gdb.texinfo: Add --with-debuginfod to configure options
8225 summary.
8226 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
8227 when a dwz file cannot be found.
8228 * elfread.c (elf_symfile_read): Query debuginfod servers when a
8229 debuginfo file cannot be found.
8230 * source.c (open_source_file): Query debuginfod servers when a
8231 source file cannot be found.
8232 * top.c (print_gdb_configuration): Include
8233 --{with,without}-debuginfod in the output.
8234
b65ce565
JG
82352020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
8236
8237 * thread.c (thr_try_catch_cmd): Print thread name.
8238
d4c9a4f8
SM
82392020-02-26 Simon Marchi <simon.marchi@efficios.com>
8240
8241 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
8242 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8243 dwarf2_fetch_die_type_sect_off): Move to...
8244 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
8245 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8246 dwarf2_fetch_die_type_sect_off): ... here.
8247 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
8248 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8249 dwarf2_fetch_die_type_sect_off): Move doc to header file.
8250
0dce4280
TV
82512020-02-26 Tom de Vries <tdevries@suse.de>
8252
8253 PR gdb/25603
8254 * symfile.c (set_initial_language): Exit-early if
8255 language_mode == language_mode_manual.
8256
450a1bfc
SM
82572020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8258
8259 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
8260 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
8261 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
8262
9e80cfa1
AB
82632020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
8264
8265 * gdbtypes.c (create_array_type_with_stride): Handle negative
8266 array strides.
8267 * valarith.c (value_subscripted_rvalue): Likewise.
8268
09624f1f
LM
82692020-02-25 Luis Machado <luis.machado@linaro.org>
8270
8271 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
8272
8cb5117c
SM
82732020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8274
8275 * loc.h (dwarf2_get_die_type): Move to...
8276 * read.h (dwarf2_get_die_type): ... here.
8277 * read.c (dwarf2_get_die_type): Move doc to header.
8278
c325c44e
JB
82792020-02-25 Joel Brobecker <brobecker@adacore.com>
8280
8281 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
8282 'gnulib/Makefile.in' to the list.
8283
4ac93832
TT
82842020-02-24 Tom Tromey <tom@tromey.com>
8285
8286 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
8287 Remove.
8288 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
8289 XOBNEWVEC.
8290
197400e8
TT
82912020-02-24 Tom Tromey <tom@tromey.com>
8292
8293 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
8294 New method.
8295 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
8296 (dw2_do_instantiate_symtab, dw2_get_file_names)
8297 (build_type_psymtab_dependencies, load_full_type_unit): Update.
8298
76935768
TT
82992020-02-24 Tom Tromey <tom@tromey.com>
8300
8301 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
8302 make_scoped_restore.
8303 (dwarf2_psymtab::read_symtab): Don't clear
8304 reading_partial_symbols.
8305
a88ef40d
TV
83062020-02-24 Tom de Vries <tdevries@suse.de>
8307
8308 PR gdb/25592
8309 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
8310
c9af6521
TV
83112020-02-24 Tom de Vries <tdevries@suse.de>
8312
8313 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
8314 commands layout next/prev/regs.
8315
5707a07a
TT
83162020-02-22 Tom Tromey <tom@tromey.com>
8317
8318 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
8319 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
8320
3b0fb49e
TT
83212020-02-22 Tom Tromey <tom@tromey.com>
8322
8323 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
8324
283be8bf
TT
83252020-02-22 Tom Tromey <tom@tromey.com>
8326
8327 * tui/tui-win.c (_initialize_tui_win): Add usage text.
8328 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
8329 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
8330 * tui/tui.c (_initialize_tui): Add usage text.
8331
ca793b96
TT
83322020-02-22 Tom Tromey <tom@tromey.com>
8333
8334 * tui/tui-win.c (tui_set_focus_command)
8335 (tui_set_win_height_command): Use error_no_arg.
8336 (_initialize_tui_win): Update help text.
8337 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
8338
432b5c40
TT
83392020-02-22 Tom Tromey <tom@tromey.com>
8340
8341 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
8342 * tui/tui-disasm.h (struct tui_disasm_window)
8343 <display_start_addr>: Declare.
8344 * tui/tui-source.h (struct tui_source_window)
8345 <display_start_addr>: Declare.
8346 * tui/tui-winsource.h (struct tui_source_window_base)
8347 <show_source_line, display_start_addr>: New methods.
8348 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
8349 Rename and move to protected section.
8350 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
8351 (tui_source_window_base::do_erase_source_content): Update.
8352 (tui_source_window_base::show_source_line): Now a method.
8353 (tui_source_window_base::show_source_content)
8354 (tui_source_window_base::tui_source_window_base)
8355 (tui_source_window_base::rerender)
8356 (tui_source_window_base::refill)
8357 (tui_source_window_base::do_scroll_horizontal)
8358 (tui_source_window_base::set_is_exec_point_at)
8359 (tui_source_window_base::update_breakpoint_info)
8360 (tui_source_window_base::update_exec_info): Update.
8361 * tui/tui-source.c (tui_source_window::set_contents)
8362 (tui_source_window::showing_source_p)
8363 (tui_source_window::do_scroll_vertical)
8364 (tui_source_window::location_matches_p)
8365 (tui_source_window::line_is_displayed): Update.
8366 (tui_source_window::display_start_addr): New method.
8367 * tui/tui-disasm.c (tui_disasm_window::set_contents)
8368 (tui_disasm_window::do_scroll_vertical)
8369 (tui_disasm_window::location_matches_p): Update.
8370 (tui_disasm_window::display_start_addr): New method.
8371
01b1af32
TT
83722020-02-22 Tom Tromey <tom@tromey.com>
8373
8374 * NEWS: Add entry for gdb.register_window_type.
8375 * tui/tui-layout.h (window_factory): New typedef.
8376 (tui_register_window): Declare.
8377 * tui/tui-layout.c (saved_tui_windows): New global.
8378 (tui_apply_current_layout): Use it.
8379 (tui_register_window): New function.
8380 * python/python.c (do_start_initialization): Call
8381 gdbpy_initialize_tui.
8382 (python_GdbMethods): Add "register_window_type" function.
8383 * python/python-internal.h (gdbpy_register_tui_window)
8384 (gdbpy_initialize_tui): Declare.
8385 * python/py-tui.c: New file.
8386 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
8387
fc96d20b
TT
83882020-02-22 Tom Tromey <tom@tromey.com>
8389
8390 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
8391
935c78c0
TT
83922020-02-22 Tom Tromey <tom@tromey.com>
8393
8394 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
8395 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
8396 * tui/tui-data.c (tui_set_win_with_focus): Remove.
8397 (tui_set_win_focus_to): Move from tui-win.c.
8398
0240c8f1
TT
83992020-02-22 Tom Tromey <tom@tromey.com>
8400
8401 * tui/tui-layout.c (make_standard_window, get_locator_window): New
8402 functions.
8403 (known_window_types): New global.
8404 (tui_get_window_by_name): Reimplement.
8405 (initialize_known_windows): New function.
8406 (validate_window_name): Rewrite.
8407 (_initialize_tui_layout): Call initialize_known_windows.
8408
fdb01f0c
TT
84092020-02-22 Tom Tromey <tom@tromey.com>
8410
8411 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
8412 Remove constants.
8413 * tui/tui-winsource.h (struct tui_source_window_base)
8414 <tui_source_window_base>: Remove parameter.
8415 * tui/tui-winsource.c
8416 (tui_source_window_base::tui_source_window_base): Remove
8417 parameter.
8418 (tui_source_window_base::refill): Update.
8419 * tui/tui-stack.h (struct tui_locator_window)
8420 <tui_locator_window>: Update.
8421 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
8422 Default the constructor.
8423 * tui/tui-regs.h (struct tui_data_item_window)
8424 <tui_data_item_window>: Default the constructor.
8425 (struct tui_data_window) <tui_data_window>: Likewise.
8426 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
8427 Default the constructor.
8428 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
8429 Default the constructor.
8430 <type>: Remove.
8431 (struct tui_win_info) <tui_win_info>: Default the constructor.
8432 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
8433 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
8434 Default the constructor.
8435
865a5aec
TT
84362020-02-22 Tom Tromey <tom@tromey.com>
8437
8438 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
8439 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
8440 * tui/tui-win.c (tui_resize_all): Don't call
8441 tui_delete_invisible_windows.
8442 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
8443 done.
8444 (tui_set_layout): Update.
8445 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
8446 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
8447 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
8448
e098d18c
TT
84492020-02-22 Tom Tromey <tom@tromey.com>
8450
8451 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
8452 correctly.
8453
eb9c8874
TT
84542020-02-22 Tom Tromey <tom@tromey.com>
8455
8456 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
8457
7eed1a8e
TT
84582020-02-22 Tom Tromey <tom@tromey.com>
8459
8460 * tui/tui-winsource.h (struct tui_source_window_iterator)
8461 <inner_iterator>: New etytypedef.
8462 <tui_source_window_iterator>: Take "end" parameter.
8463 <tui_source_window_iterator>: Take iterator.
8464 <operator*, advance>: Update.
8465 <m_iter>: Change type.
8466 <m_end>: New field.
8467 (struct tui_source_windows) <begin, end>: Update.
8468 * tui/tui-layout.c (tui_windows): New global.
8469 (tui_apply_current_layout): Clear tui_windows.
8470 (tui_layout_window::apply): Update tui_windows.
8471 * tui/tui-data.h (tui_windows): Declare.
8472 (all_tui_windows): Now inline function.
8473 (class tui_window_iterator, struct all_tui_windows): Remove.
8474
7c043ba6
TT
84752020-02-22 Tom Tromey <tom@tromey.com>
8476
8477 PR tui/17850:
8478 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
8479 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
8480 "height" argument.
8481 (class tui_layout_window) <get_sizes>: Likewise.
8482 (class tui_layout_split) <tui_layout_split>: Add "vertical"
8483 argument.
8484 <get_sizes>: Add "height" argument.
8485 <m_vertical>: New field.
8486 * tui/tui-layout.c (tui_layout_split::clone): Update.
8487 (tui_layout_split::get_sizes): Add "height" argument.
8488 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
8489 (tui_new_layout_command): Parse "-horizontal".
8490 (_initialize_tui_layout): Update help string.
8491 (tui_layout_split::specification): Add "-horizontal" when needed.
8492 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
8493 argument.
8494 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
8495 New methods.
8496
6bc56648
TT
84972020-02-22 Tom Tromey <tom@tromey.com>
8498
8499 * tui/tui-layout.h (enum tui_adjust_result): New.
8500 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
8501 (class tui_layout_window) <adjust_size>: Return
8502 tui_adjust_result. Rewrite.
8503 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
8504 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
8505
c22fef7e
TT
85062020-02-22 Tom Tromey <tom@tromey.com>
8507
8508 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
8509 parameter and return types.
8510 (class tui_layout_base) <specification>: Add "depth".
8511 (class tui_layout_window) <specification>: Add "depth".
8512 (class tui_layout_split) <specification>: Add "depth".
8513 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
8514 and return types.
8515 (tui_new_layout_command): Parse sub-layouts.
8516 (_initialize_tui_layout): Update help string.
8517 (tui_layout_window::specification): Add "depth".
8518 (add_layout_command): Update.
8519
ee325b61
TT
85202020-02-22 Tom Tromey <tom@tromey.com>
8521
8522 * NEWS: Add "tui new-layout" item.
8523 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
8524 Add new-layout command to help text.
8525 (validate_window_name): New function.
8526 (tui_new_layout_command): New function.
8527 (_initialize_tui_layout): Register "new-layout".
8528 (tui_layout_window::specification): New method.
8529 (tui_layout_window::specification): New method.
8530 * tui/tui-layout.h (class tui_layout_base) <specification>: New
8531 method.
8532 (class tui_layout_window) <specification>: New method.
8533 (class tui_layout_split) <specification>: New method.
8534
416eb92d
TT
85352020-02-22 Tom Tromey <tom@tromey.com>
8536
8537 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
8538 * tui/tui-win.c (window_name_completer): Update comment.
8539 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
8540 Declare method.
8541 (class tui_layout_window) <replace_window>: Likewise.
8542 (class tui_layout_split) <replace_window>: Likewise.
8543 (tui_set_layout): Don't declare.
8544 (tui_set_initial_layout): Declare function.
8545 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
8546 (asm_regs_layout): New globals.
8547 (tui_current_layout, show_layout): Remove.
8548 (tui_set_layout, tui_add_win_to_layout): Rewrite.
8549 (find_layout, tui_apply_layout): New function.
8550 (layout_completer): Remove.
8551 (tui_next_layout): Reimplement.
8552 (tui_next_layout_command): New function.
8553 (tui_set_initial_layout, tui_prev_layout_command): New functions.
8554 (tui_regs_layout): Reimplement.
8555 (tui_regs_layout_command): New function.
8556 (extract_display_start_addr): Rewrite.
8557 (next_layout, prev_layout): Remove.
8558 (tui_layout_window::replace_window): New method.
8559 (tui_layout_split::replace_window): New method.
8560 (destroy_layout): New function.
8561 (layout_list): New global.
8562 (add_layout_command): New function.
8563 (initialize_layouts): Update.
8564 (tui_layout_command): New function.
8565 (_initialize_tui_layout): Install "layout" commands.
8566 * tui/tui-data.h (enum tui_layout_type): Remove.
8567 (tui_current_layout): Don't declare.
8568
0dbc2fc7
TT
85692020-02-22 Tom Tromey <tom@tromey.com>
8570
8571 * tui/tui-regs.c (tui_reg_layout): Remove.
8572 (tui_reg_command): Use tui_regs_layout.
8573 * tui/tui-layout.h (tui_reg_command): Declare.
8574 * tui/tui-layout.c (tui_reg_command): New function.
8575
5afe342e
TT
85762020-02-22 Tom Tromey <tom@tromey.com>
8577
8578 * tui/tui.c (tui_rl_delete_other_windows): Call
8579 tui_remove_some_windows.
8580 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
8581 Declare method.
8582 (class tui_layout_window) <remove_windows>: New method.
8583 (class tui_layout_split) <remove_windows>: Declare.
8584 (tui_remove_some_windows): Declare.
8585 * tui/tui-layout.c (tui_remove_some_windows): New function.
8586 (tui_layout_split::remove_windows): New method.
8587
427326a8
TT
85882020-02-22 Tom Tromey <tom@tromey.com>
8589
8590 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
8591 * tui/tui-layout.h (tui_next_layout): Declare.
8592 * tui/tui-layout.c (tui_next_layout): New function.
8593
3fe12b6d
TT
85942020-02-22 Tom Tromey <tom@tromey.com>
8595
8596 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
8597 correct coordinates.
8598
59b8b5d2
TT
85992020-02-22 Tom Tromey <tom@tromey.com>
8600
8601 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
8602 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
8603 DATA_WIN case.
8604
2a3d458b
TT
86052020-02-22 Tom Tromey <tom@tromey.com>
8606
8607 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
8608 TUI_DISASM_WIN, not tui_win_list.
8609
3f0cbb04
TT
86102020-02-22 Tom Tromey <tom@tromey.com>
8611
8612 * valprint.c (generic_val_print_enum_1)
8613 (val_print_type_code_flags): Style member names.
8614 * rust-lang.c (val_print_struct, rust_print_enum)
8615 (rust_print_struct_def, rust_internal_print_type): Style member
8616 names.
8617 * p-valprint.c (pascal_object_print_value_fields): Style member
8618 names. Only call fprintf_symbol_filtered for static members.
8619 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
8620 * f-valprint.c (f_val_print): Style member names.
8621 * f-typeprint.c (f_type_print_base): Style member names.
8622 * cp-valprint.c (cp_print_value_fields): Style member names. Only
8623 call fprintf_symbol_filtered for static members.
8624 (cp_print_class_member): Style member names.
8625 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
8626 member names.
8627 * ada-valprint.c (ada_print_scalar): Style enum names.
8628 (ada_val_print_enum): Likewise.
8629 * ada-typeprint.c (print_enum_type): Style enum names.
8630
d4d947ae
TT
86312020-02-21 Tom Tromey <tom@tromey.com>
8632
8633 * psympriv.h (struct partial_symtab): Update comment.
8634
e94e944b
TT
86352020-02-21 Tom Tromey <tromey@adacore.com>
8636
8637 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
8638 type is CORE_ADDR.
8639
1eb73179
TV
86402020-02-21 Tom de Vries <tdevries@suse.de>
8641
8642 PR gdb/25534
8643 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
8644 if dependencies[i]->user != NULL.
8645
4f180d53
AT
86462020-02-21 Ali Tamur <tamur@google.com>
8647
8648 * dwarf2/read.c (dwarf2_name): Add null check.
8649
22b6cd70
TT
86502020-02-20 Tom Tromey <tom@tromey.com>
8651
8652 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
8653 ">=", in binary search.
8654 (dwarf2_find_containing_comp_unit): New overload.
8655 (run_test): New self-test.
8656 (_initialize_dwarf2_read): Register new test.
8657
bd0cf5a6
NC
86582020-02-20 Nelson Chu <nelson.chu@sifive.com>
8659
8660 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
8661 * riscv-tdep.h: Likewise.
8662 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
8663 rv32-only CSR.
8664 * features/riscv/64bit-csr.xml: Regenerated.
8665
3f702acd
SDJ
86662020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
8667 Tom Tromey <tom@tromey.com>
8668
8669 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
8670 of 'fputc_unfiltered'.
8671 (putchar_unfiltered): Call 'fputc_unfiltered'.
8672 (fputc_unfiltered): Call 'fputs_unfiltered'.
8673
d13c7322
AB
86742020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
8675
8676 * config.in: Regenerate.
8677 * configure: Regenerate.
8678 * configure.ac: Add --with-python-libdir option.
8679 * main.c: Use WITH_PYTHON_LIBDIR.
8680
869d8950
TT
86812020-02-19 Tom Tromey <tom@tromey.com>
8682
8683 * symtab.c (general_symbol_info::compute_and_set_names): Use
8684 obstack_strndup. Simplify call to symbol_set_demangled_name.
8685
298e9637
SM
86862020-02-19 Simon Marchi <simon.marchi@efficios.com>
8687
8688 * dwarf2/read.c (allocate_signatured_type_table,
8689 allocate_dwo_unit_table, allocate_type_unit_groups_table,
8690 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
8691 Remove objfile parameter, update all callers.
8692
08410482
DE
86932020-02-19 Doug Evans <dje@google.com>
8694
8695 PR rust/25535
8696 * rust-lang.c (rust_print_enum): Apply embedded_offset to
8697 rust_enum_variant calculation.
8698
dfdeeca1
TT
86992020-02-19 Tom Tromey <tromey@adacore.com>
8700
8701 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
8702
2ef5453b
TT
87032020-02-19 Tom Tromey <tromey@adacore.com>
8704
8705 * ada-lang.c (cache_symbol): Use obstack_strdup.
8706
9f1528a1
AB
87072020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
8708
8709 * configure: Regenerate.
8710
d3c22fa8
TT
87112020-02-19 Tom Tromey <tromey@adacore.com>
8712
8713 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
8714 NULL check.
8715
bf84f706
MR
87162020-02-19 Maciej W. Rozycki <macro@wdc.com>
8717
8718 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
8719
d1c9b20f
AB
87202020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
8721
8722 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
8723 if GDBSERVER is not defined.
8724 (riscv_tdesc_cache): Likewise, also store const target_desc.
8725 (STATIC_IN_GDB): Define.
8726 (riscv_create_target_description): Update declaration with
8727 STATIC_IN_GDB.
8728 (riscv_lookup_target_description): New function, only define if
8729 GDBSERVER is not defined.
8730 * arch/riscv.h (riscv_create_target_description): Declare only
8731 when GDBSERVER is defined.
8732 (riscv_lookup_target_description): New declaration when GDBSERVER
8733 is not defined.
8734 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
8735 (riscv_linux_read_features): ...this, and return
8736 riscv_gdbarch_features instead of target_desc.
8737 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
8738 (riscv_linux_read_description): Rename to...
8739 (riscv_linux_read_features): ...this.
8740 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
8741 Update to use riscv_gdbarch_features and
8742 riscv_lookup_target_description.
8743 * riscv-tdep.c (riscv_find_default_target_description): Use
8744 riscv_lookup_target_description instead of
8745 riscv_create_target_description.
8746
373d7ac0
SM
87472020-02-18 Simon Marchi <simon.marchi@efficios.com>
8748
8749 * valprint.c (generic_val_print_enum_1): When printing a flag
8750 enum with value 0 and there is no enumerator with value 0, print
8751 just "0" instead of "(unknown: 0x0)".
8752
b29a2df0
SM
87532020-02-18 Simon Marchi <simon.marchi@efficios.com>
8754
8755 * valprint.c (generic_val_print_enum_1): Print unknown part of
8756 flag enum in hex.
8757
6740f0cc
SM
87582020-02-18 Simon Marchi <simon.marchi@efficios.com>
8759
8760 * dwarf2/read.c (update_enumeration_type_from_children): Allow
8761 flag enums to contain duplicate enumerators.
8762 * valprint.c (generic_val_print_enum_1): Update comment.
8763
edd45eb0
SM
87642020-02-18 Simon Marchi <simon.marchi@efficios.com>
8765
8766 * dwarf2/read.c: Include "count-one-bits.h".
8767 (update_enumeration_type_from_children): If an enumerator has
8768 multiple bits set, don't treat the enumeration as a "flag enum".
8769 * valprint.c (generic_val_print_enum_1): Assert that enumerators
8770 of flag enums have 0 or 1 bit set.
8771
6d0cf446
BE
87722020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
8773
8774 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
8775 conversion.
8776 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8777 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
8778 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8779 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
8780 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8781
7001c1b7
SM
87822020-02-18 Simon Marchi <simon.marchi@efficios.com>
8783
8784 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
8785
fdb61c6c
SM
87862020-02-14 Simon Marchi <simon.marchi@efficios.com>
8787
8788 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
8789 displaced_step_closure_up.
8790 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
8791 (struct displaced_step_closure_up):
8792 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8793 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
8794 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
8795 Likewise.
8796 * gdbarch.sh (displaced_step_copy_insn): Likewise.
8797 * gdbarch.c, gdbarch.h: Re-generate.
8798 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
8799 displaced_step_closure_up.
8800 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8801 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
8802 * infrun.h (displaced_step_closure_up): New type alias.
8803 (struct displaced_step_inferior_state) <step_closure>: Change
8804 type to displaced_step_closure_up.
8805 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
8806 displaced_step_closure_up.
8807 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8808
a4a38eb4
TT
88092020-02-14 Tom Tromey <tom@tromey.com>
8810
8811 * minidebug.c (gnu_debug_key): New global.
8812 (find_separate_debug_file_in_section): Use it.
8813
e8217e61
SM
88142020-02-14 Simon Marchi <simon.marchi@efficios.com>
8815
8816 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
8817 std::unique_ptr.
8818 * gdbarch.c: Re-generate.
8819 * gdbarch.h: Re-generate.
8820 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
8821 change.
8822 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
8823 type to std::unique_ptr.
8824 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
8825 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8826 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
8827 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
8828 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
8829 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8830 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
8831 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
8832 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8833
d8d83535
SM
88342020-02-14 Simon Marchi <simon.marchi@efficios.com>
8835
8836 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
8837 std::unique_ptr.
8838 (displaced_step_clear): Rename to...
8839 (displaced_step_reset): ... this. Just call displaced->reset ().
8840 (displaced_step_clear_cleanup): Rename to...
8841 (displaced_step_reset_cleanup): ... this.
8842 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
8843 (displaced_step_fixup): Likewise.
8844 (resume_1): Likewise.
8845 (handle_inferior_event): Restore child's memory before calling
8846 displaced_step_fixup on the parent.
8847 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
8848 to std::unique_ptr.
8849 <step_closure>: Change type to std::unique_ptr.
8850
5f661e03
SM
88512020-02-14 Simon Marchi <simon.marchi@efficios.com>
8852
8853 * arm-tdep.c: Include count-one-bits.h.
8854 (cleanup_block_store_pc): Use count_one_bits.
8855 (cleanup_block_load_pc): Use count_one_bits.
8856 (arm_copy_block_xfer): Use count_one_bits.
8857 (thumb2_copy_block_xfer): Use count_one_bits.
8858 (thumb_copy_pop_pc_16bit): Use count_one_bits.
8859 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
8860 (thumb_get_next_pcs_raw): Use count_one_bits.
8861 (arm_get_next_pcs_raw): Use count_one_bits_l.
8862 * arch/arm.c (bitcount): Remove.
8863 * arch/arm.h (bitcount): Remove.
8864
8084e579
TT
88652020-02-14 Tom Tromey <tromey@adacore.com>
8866
8867 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
8868 Update.
8869 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
8870 * dwarf2/loc.c (call_site_find_chain_1): Return
8871 unique_xmalloc_ptr.
8872 (call_site_find_chain): Likewise.
8873
258bf0ee
RB
88742020-02-14 Richard Biener <rguenther@suse.de>
8875
8876 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
8877 on expression with division operators.
8878
f98a8458
AKS
88792020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8880
8881 * MAINTAINERS (Write After Approval): Adding myself.
8882
d1437c0e
TT
88832020-02-12 Tom Tromey <tom@tromey.com>
8884
8885 * event-loop.c (event_data, gdb_event, event_handler_func):
8886 Remove.
8887
3d4560f7
TT
88882020-02-12 Tom Tromey <tom@tromey.com>
8889
8890 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
8891 (dwarf2_frame_objfile_data): Add comment.
8892 (find_comp_unit, set_comp_unit): New functions.
8893 (dwarf2_frame_find_fde): Use find_comp_unit.
8894 (dwarf2_build_frame_info): Use set_comp_unit.
8895
21982304
TT
88962020-02-12 Tom Tromey <tom@tromey.com>
8897
8898 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
8899 (comp_unit): Don't initialize objfile.
8900 (execute_cfa_program): Add text_offset parameter.
8901 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
8902 (dwarf2_frame_cache): Update.
8903 (dwarf2_build_frame_info): Don't set "objfile" member.
8904
4debb237
TT
89052020-02-12 Tom Tromey <tom@tromey.com>
8906
8907 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
8908 (decode_frame_entry): Likewise.
8909 (dwarf2_build_frame_info): Update.
8910
0d404d44
TT
89112020-02-12 Tom Tromey <tom@tromey.com>
8912
8913 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
8914 (decode_frame_entry_1): Use the comp_unit obstack.
8915
a7a3ae5c
TT
89162020-02-12 Tom Tromey <tom@tromey.com>
8917
8918 * dwarf2/frame.c (struct comp_unit): Add initializers and
8919 constructor.
8920 (dwarf2_frame_objfile_data): Store a comp_unit.
8921 (dwarf2_frame_find_fde): Update.
8922 (dwarf2_build_frame_info): Use "new".
8923
a9d65418
TT
89242020-02-12 Tom Tromey <tom@tromey.com>
8925
8926 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
8927 (dwarf2_fde_table): Typedef for std::vector.
8928 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
8929 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
8930 (decode_frame_entry): Update.
8931 (dwarf2_build_frame_info): Use "new".
8932
7559c217
CB
89332020-02-12 Christian Biesinger <cbiesinger@google.com>
8934
8935 * arm-tdep.c (arm_gdbarch_init): Update.
8936 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
8937 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
8938 have_neon, is_m>: Change to bool.
8939
aeefc73c
CB
89402020-02-12 Christian Biesinger <cbiesinger@google.com>
8941
8942 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
8943
d27b8e5f
TT
89442020-02-12 Tom Tromey <tom@tromey.com>
8945
8946 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
8947
cd5900f3
HD
89482020-02-12 Hannes Domani <ssbssa@yahoo.de>
8949
8950 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
8951 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
8952
f056b22b
TT
89532020-02-11 Tom Tromey <tom@tromey.com>
8954
8955 * psymtab.h: Update comment.
8956
f92ff6b5
TT
89572020-02-11 Tom Tromey <tom@tromey.com>
8958
8959 * gdb_obstack.h (struct auto_obstack): Use
8960 DISABLE_COPY_AND_ASSIGN.
8961
3fd6912b
TT
89622020-02-11 Tom Tromey <tom@tromey.com>
8963
8964 * dwarf2/frame.h (struct objfile): Don't forward declare.
8965
69ed9b74
CB
89662020-02-11 Christian Biesinger <cbiesinger@google.com>
8967
8968 * cris-tdep.c (cris_supply_gregset): Change signature to match
8969 what struct regset expects.
8970 (cris_regset): New struct.
8971 (fetch_core_registers): Remove.
8972 (cris_iterate_over_regset_sections): New function.
8973 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
8974 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
8975
bda874f6
CB
89762020-02-11 Christian Biesinger <cbiesinger@google.com>
8977
8978 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
8979 registers.
8980
754e1564
CB
89812020-02-11 Christian Biesinger <cbiesinger@google.com>
8982
8983 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
8984
8ddd8e0e
SM
89852020-02-11 Simon Marchi <simon.marchi@efficios.com>
8986
8987 * configure: Re-generate.
8988
898e7f60
SM
89892020-02-11 Simon Marchi <simon.marchi@efficios.com>
8990
8991 * configure: Re-generate.
8992
58df732b
SM
89932020-02-11 Simon Marchi <simon.marchi@efficios.com>
8994
8995 * acinclude: Update warning.m4 path.
8996 * warning.m4: Move to gdbsupport.
8997
da5bd37e
TT
89982020-02-11 Tom Tromey <tromey@adacore.com>
8999
9000 * remote.c (remote_console_output): Update.
9001 * printcmd.c (printf_command): Update.
9002 * event-loop.c (gdb_wait_for_event): Update.
9003 * linux-nat.c (sigchld_handler): Update.
9004 * remote-sim.c (gdb_os_write_stdout): Update.
9005 (gdb_os_flush_stdout): Update.
9006 (gdb_os_flush_stderr): Update.
9007 (gdb_os_write_stderr): Update.
9008 * exceptions.c (print_exception): Update.
9009 * remote-fileio.c (remote_fileio_func_read): Update.
9010 (remote_fileio_func_write): Update.
9011 * tui/tui.c (tui_enable): Update.
9012 * tui/tui-interp.c (tui_interp::init): Update.
9013 * utils.c (init_page_info): Update.
9014 (putchar_unfiltered, fputc_unfiltered): Update.
9015 (gdb_flush): Update.
9016 (emit_style_escape): Update.
9017 (flush_wrap_buffer, fputs_maybe_filtered): Update.
9018 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
9019 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
9020 (stderr_file::write): Update.
9021 (stderr_file::puts): Update.
9022 * ui-file.h (ui_file_isatty, ui_file_write)
9023 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
9024 (ui_file_puts): Don't declare.
9025
85f0dd3c
TV
90262020-02-10 Tom de Vries <tdevries@suse.de>
9027
9028 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
9029 sentinel to char *.
9030
2e927613
TV
90312020-02-09 Tom de Vries <tdevries@suse.de>
9032
9033 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
9034 filename if it matches "<artificial>".
9035
6bafc845
HD
90362020-02-09 Hannes Domani <ssbssa@yahoo.de>
9037
9038 * windows-tdep.c (struct enum_value_name): New struct.
9039 (create_enum): New function.
9040 (windows_get_siginfo_type): Create and use enum types.
9041
7928d571
HD
90422020-02-09 Hannes Domani <ssbssa@yahoo.de>
9043
9044 * NEWS: Mention $_siginfo support for Windows.
9045 * windows-nat.c (handle_exception): Set siginfo_er.
9046 (windows_nat_target::mourn_inferior): Reset siginfo_er.
9047 (windows_xfer_siginfo): New function.
9048 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
9049 * windows-tdep.c (struct windows_gdbarch_data): New struct.
9050 (init_windows_gdbarch_data): New function.
9051 (get_windows_gdbarch_data): New function.
9052 (windows_get_siginfo_type): New function.
9053 (windows_init_abi): Register windows_get_siginfo_type.
9054 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
9055
6751ebae
TT
90562020-02-08 Tom Tromey <tom@tromey.com>
9057
9058 * dwarf2/read.c (class cutu_reader) <cutu_reader,
9059 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
9060 <keep>: Declare method.
9061 <m_keep>: Remove member.
9062 <~cutu_reader>: Remove.
9063 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9064 (cutu_reader::cutu_reader): Update.
9065 (cutu_reader::keep): Rename from ~cutu_reader.
9066 (process_psymtab_comp_unit, build_type_psymtabs_1)
9067 (process_skeletonless_type_unit, load_partial_comp_unit)
9068 (load_full_comp_unit, dwarf2_read_addr_index)
9069 (read_signatured_type): Update.
9070
135f5437
TT
90712020-02-08 Tom Tromey <tom@tromey.com>
9072
9073 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
9074 "want_partial_unit" parameter.
9075 (process_psymtab_comp_unit): Change want_partial_unit to bool.
9076 Inline check for DW_TAG_partial_unit.
9077 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
9078
9f66ff1c
TT
90792020-02-08 Tom Tromey <tom@tromey.com>
9080
9081 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
9082 read.c.
9083 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
9084 read.c.
9085
c8a7a66f
TT
90862020-02-08 Tom Tromey <tom@tromey.com>
9087
9088 * dwarf2/read.c (read_address): Move to comp-unit.c.
9089 (dwarf2_rnglists_process, dwarf2_ranges_process)
9090 (read_attribute_value, dwarf_decode_lines_1)
9091 (var_decode_location, decode_locdesc): Update.
9092 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
9093 read.c. Remove "cu" parameter.
9094 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
9095 method.
9096
8266302d
TT
90972020-02-08 Tom Tromey <tom@tromey.com>
9098
9099 * dwarf2/read.c (read_attribute_value, read_indirect_string)
9100 (read_indirect_line_string): Update.
9101 * dwarf2/comp-unit.c (read_offset): Remove.
9102 (read_comp_unit_head): Update.
9103 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
9104 method.
9105 (read_offset): Don't declare.
9106
4057dfde
TT
91072020-02-08 Tom Tromey <tom@tromey.com>
9108
9109 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
9110 * dwarf2/read.c (struct comp_unit_head): Move to
9111 dwarf2/comp-unit.h.
9112 (enum class rcuh_kind): Move to comp-unit.h.
9113 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
9114 (read_comp_unit_head, error_check_comp_unit_head)
9115 (read_and_check_comp_unit_head): Move to comp-unit.c.
9116 (read_offset, dwarf_unit_type_name): Likewise.
9117 (create_debug_type_hash_table, read_cutu_die_from_dwo)
9118 (cutu_reader::cutu_reader, read_call_site_scope)
9119 (find_partial_die, follow_die_offset): Update.
9120 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
9121
24aa364d
TT
91222020-02-08 Tom Tromey <tom@tromey.com>
9123
9124 * dwarf2/read.c (read_offset_1): Move to leb.c.
9125 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
9126 (dwarf_decode_macro_bytes): Update.
9127 * dwarf2/leb.c (read_offset): Rename; move from read.c.
9128 * dwarf2/leb.h (read_offset): Declare.
9129
2c7d5afc
TT
91302020-02-08 Tom Tromey <tom@tromey.com>
9131
9132 * dwarf2/read.c (dwarf2_section_size): Remove.
9133 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
9134 Update.
9135 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
9136
4075cb26
TT
91372020-02-08 Tom Tromey <tom@tromey.com>
9138
9139 * dwarf2/read.c (read_initial_length): Move to leb.c.
9140 * dwarf2/leb.h (read_initial_length): Declare.
9141 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
9142 handle_nonstd parameter.
9143 * dwarf2/frame.c (read_initial_length): Remove.
9144 (decode_frame_entry_1): Update.
9145
09ba997f
TT
91462020-02-08 Tom Tromey <tom@tromey.com>
9147
9148 * dwarf2/loc.c (dwarf2_find_location_expression)
9149 (dwarf_evaluate_loc_desc::get_tls_address)
9150 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
9151 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
9152 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
9153 (dwarf2_compile_property_to_c)
9154 (dwarf2_loc_desc_get_symbol_read_needs)
9155 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
9156 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
9157 (loclist_describe_location, loclist_tracepoint_var_ref)
9158 (loclist_generate_c_location): Update.
9159 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
9160 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
9161 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
9162 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
9163 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
9164 (dwarf2_per_cu_data::addr_size)
9165 (dwarf2_per_cu_data::ref_addr_size)
9166 (dwarf2_per_cu_data::text_offset)
9167 (dwarf2_per_cu_data::addr_type): Now methods.
9168 (per_cu_header_read_in): Make per_cu "const".
9169 (dwarf2_version): Remove.
9170 (dwarf2_per_cu_data::int_type): Now a method.
9171 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
9172 (set_die_type, read_array_type, read_subrange_index_type)
9173 (read_tag_string_type, read_subrange_type): Update.
9174 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
9175 offset_size, ref_addr_size, text_offset, addr_type, version,
9176 objfile, int_type, addr_sized_int_type>: Declare methods.
9177
96c738c0
TT
91782020-02-08 Tom Tromey <tom@tromey.com>
9179
9180 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
9181 Move earlier.
9182
8fdd972c
TT
91832020-02-08 Tom Tromey <tom@tromey.com>
9184
9185 * dwarf2/read.h (dwarf_line_debug): Declare.
9186 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
9187 * dwarf2/read.c: Move line_header code to new files.
9188 (dwarf_line_debug): No longer static.
9189 * dwarf2/line-header.c: New file.
9190 * dwarf2/line-header.h: New file.
9191
03075812
TT
91922020-02-08 Tom Tromey <tom@tromey.com>
9193
9194 * dwarf2/read.c (struct line_header) <file_full_name,
9195 file_file_name>: Return unique_xmalloc_ptr.
9196 (line_header::file_file_name): Update.
9197 (line_header::file_full_name): Update.
9198 (dw2_get_file_names_reader): Update.
9199 (macro_start_file): Update.
9200
bb822404
TT
92012020-02-08 Tom Tromey <tom@tromey.com>
9202
9203 * dwarf2/read.c (struct line_header) <file_full_name,
9204 file_file_name>: Declare methods.
9205 (dw2_get_file_names_reader): Update.
9206 (file_file_name): Now a method.
9207 (file_full_name): Likewise.
9208 (macro_start_file): Update.
9209
009b64fc
TT
92102020-02-08 Tom Tromey <tom@tromey.com>
9211
9212 * dwarf2/read.c (dwarf_always_disassemble)
9213 (show_dwarf_always_disassemble): Move to loc.c.
9214 (_initialize_dwarf2_read): Move "always-disassemble" registration
9215 to loc.c.
9216 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
9217 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
9218 static.
9219 (show_dwarf_always_disassemble): Move from read.c.
9220 (_initialize_dwarf2loc): Move always-disassemble from read.c.
9221
5895093f
TT
92222020-02-08 Tom Tromey <tom@tromey.com>
9223
9224 * dwarf2/read.c (~dwarf2_per_objfile): Update.
9225 (create_quick_file_names_table): Return htab_up.
9226 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
9227 Update.
9228 * dwarf2/read.h (struct dwarf2_per_objfile)
9229 <quick_file_names_table>: Now htab_up.
9230
b3b32279
TT
92312020-02-08 Tom Tromey <tom@tromey.com>
9232
9233 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
9234
1d33d811
TT
92352020-02-08 Tom Tromey <tom@tromey.com>
9236
9237 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
9238 Rewrite.
9239 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
9240 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
9241 (abbrev_table::abbrev_table): No longer inline.
9242 (ABBREV_HASH_SIZE): Remove.
9243 (abbrev_table::m_abbrevs): Now an htab_up.
9244
86de1d91
TT
92452020-02-08 Tom Tromey <tom@tromey.com>
9246
9247 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
9248 (cutu_reader): Update.
9249 (build_type_psymtabs_1): Update.
9250 * dwarf2/abbrev.c (abbrev_table::read): Rename.
9251 (abbrev_table::alloc_abbrev): Update.
9252 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
9253 (abbrev_table::read): New static method, renamed from
9254 abbrev_table_read_table.
9255 (abbrev_table::alloc_abbrev)
9256 (abbrev_table::add_abbrev): Now private.
9257 (abbrev_table::abbrev_table): Now private.
9258 (abbrev_table::m_abbrev_obstack): Now private. Rename.
9259
0335378b
TT
92602020-02-08 Tom Tromey <tom@tromey.com>
9261
9262 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
9263 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
9264 htab_up.
9265
48b490f2
TT
92662020-02-08 Tom Tromey <tom@tromey.com>
9267
9268 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
9269 htab_up.
9270 (lookup_dwo_unit_in_dwp): Update.
9271 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
9272 on obstack.
9273
bc68fb19
TT
92742020-02-08 Tom Tromey <tom@tromey.com>
9275
9276 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
9277 obstack.
9278
d15acc42
TT
92792020-02-08 Tom Tromey <tom@tromey.com>
9280
9281 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
9282 line_header_hash.
9283 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
9284 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
9285 Change type to htab_up.
9286
eaa5fa8b
TT
92872020-02-08 Tom Tromey <tom@tromey.com>
9288
9289 * dwarf2/read.c (allocate_type_unit_groups_table): Return
9290 htab_up. Don't allocate on obstack.
9291 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
9292 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
9293 Change type to htab_up.
9294
b0b6a987
TT
92952020-02-08 Tom Tromey <tom@tromey.com>
9296
9297 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
9298 Change type to htab_up.
9299 * dwarf2/read.c (create_signatured_type_table_from_index)
9300 (create_signatured_type_table_from_debug_names)
9301 (create_all_type_units, add_type_unit)
9302 (lookup_dwo_signatured_type, lookup_signatured_type)
9303 (process_skeletonless_type_unit): Update.
9304 (create_debug_type_hash_table, create_debug_types_hash_table):
9305 Change type of types_htab.
9306 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
9307 htab_up. Don't allocate on obstack.
9308 (create_cus_hash_table): Change type of cus_htab parameter.
9309 (struct dwo_file) <cus, tus>: Now htab_up.
9310 (lookup_dwo_signatured_type, lookup_dwo_cutu)
9311 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
9312 (queue_and_load_all_dwo_tus): Update.
9313 * dwarf2/index-write.c (write_gdbindex): Update.
9314 (write_debug_names): Update.
9315
39856def
TT
93162020-02-08 Tom Tromey <tom@tromey.com>
9317
9318 * dwarf2/read.h (struct dwarf2_queue_item): Move from
9319 dwarf2/read.c. Remove "next" member. Add constructor ntad
9320 destructor.
9321 (struct dwarf2_per_objfile) <queue>: New member.
9322 * dwarf2/read.c (struct dwarf2_queue_item): Move to
9323 dwarf2/read.h.
9324 (dwarf2_queue, dwarf2_queue_tail): Remove.
9325 (class dwarf2_queue_guard): Add parameter to constructor. Use
9326 DISABLE_COPY_AND_ASSIGN.
9327 <m_per_objfile>: New member.
9328 <~dwarf2_queue_guard>: Rewrite.
9329 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
9330 Update.
9331 (~dwarf2_queue_item): New.
9332
3e225074
TT
93332020-02-08 Tom Tromey <tom@tromey.com>
9334
9335 * dwarf2/read.c (struct die_info) <has_children>: New member.
9336 (dw2_get_file_names_reader): Remove has_children.
9337 (dw2_get_file_names): Update.
9338 (read_cutu_die_from_dwo): Remove has_children.
9339 (cutu_reader::init_tu_and_read_dwo_dies)
9340 (cutu_reader::cutu_reader): Update.
9341 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
9342 Remove has_children.
9343 (build_type_psymtabs_1, process_skeletonless_type_unit)
9344 (load_partial_comp_unit, load_full_comp_unit): Update.
9345 (create_dwo_cu_reader): Remove has_children.
9346 (create_cus_hash_table, read_die_and_children): Update.
9347 (read_full_die_1,read_full_die): Remove has_children.
9348 (read_signatured_type): Update.
9349 (class cutu_reader) <has_children>: Remove.
9350
82ca8957
TT
93512020-02-08 Tom Tromey <tom@tromey.com>
9352
9353 * dwarf2/expr.c: Rename from dwarf2expr.c.
9354 * dwarf2/expr.h: Rename from dwarf2expr.h.
9355 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
9356 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
9357 * dwarf2/frame.c: Rename from dwarf2-frame.c.
9358 * dwarf2/frame.h: Rename from dwarf2-frame.h.
9359 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
9360 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
9361 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
9362 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
9363 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
9364 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
9365 * dwarf2/loc.c: Rename from dwarf2loc.c.
9366 * dwarf2/loc.h: Rename from dwarf2loc.h.
9367 * dwarf2/read.c: Rename from dwarf2read.c.
9368 * dwarf2/read.h: Rename from dwarf2read.h.
9369 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
9370 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
9371 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
9372 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
9373 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
9374 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
9375 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
9376 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
9377 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
9378 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
9379 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
9380 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
9381 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
9382 Update.
9383 * Makefile.in (COMMON_SFILES): Update.
9384 (HFILES_NO_SRCDIR): Update.
9385
9e35d499
TT
93862020-02-08 Tom Tromey <tom@tromey.com>
9387
9388 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
9389 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
9390
1eba2311
TT
93912020-02-08 Tom Tromey <tom@tromey.com>
9392
9393 * dwarf2read.h (struct die_info): Don't declare.
9394
e41c2da2
TT
93952020-02-08 Tom Tromey <tom@tromey.com>
9396
9397 * dwarf2read.h (die_info_ptr): Remove typedef.
9398
4fc6c0d5
TT
93992020-02-08 Tom Tromey <tom@tromey.com>
9400
9401 * dwarf2read.c (read_call_site_scope)
9402 (handle_data_member_location, dwarf2_add_member_fn)
9403 (mark_common_block_symbol_computed, read_common_block)
9404 (attr_to_dynamic_prop, partial_die_info::read)
9405 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
9406 (dwarf2_symbol_mark_computed, set_die_type): Update.
9407 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
9408 method.
9409 (attr_form_is_block): Don't declare.
9410 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
9411
cd6c91b4
TT
94122020-02-08 Tom Tromey <tom@tromey.com>
9413
9414 * dwarf2read.c (dwarf2_find_base_address, )
9415 (read_call_site_scope, rust_containing_type)
9416 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
9417 (handle_data_member_location, dwarf2_add_member_fn)
9418 (get_alignment, read_structure_type, process_structure_scope)
9419 (mark_common_block_symbol_computed, read_common_block)
9420 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
9421 (partial_die_info::read, read_attribute_value, new_symbol)
9422 (lookup_die_type, dwarf2_get_ref_die_offset)
9423 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
9424 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
9425 (dwarf2_symbol_mark_computed): Update.
9426 * dwarf2/attribute.h (struct attribute) <value_as_address,
9427 form_is_section_offset, form_is_constant, form_is_ref>: Declare
9428 methods.
9429 (value_as_address, attr_form_is_section_offset)
9430 (attr_form_is_constant, attr_form_is_ref): Don't declare.
9431 * dwarf2/attribute.c (attribute::value_as_address)
9432 (attribute::form_is_section_offset, attribute::form_is_constant)
9433 (attribute::form_is_ref): Now methods.
9434
162dce55
TT
94352020-02-08 Tom Tromey <tom@tromey.com>
9436
9437 * dwarf2read.c (struct attribute, DW_STRING)
9438 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
9439 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
9440 (attr_form_is_block, attr_form_is_section_offset)
9441 (attr_form_is_constant, attr_form_is_ref): Move.
9442 * dwarf2/attribute.h: New file.
9443 * dwarf2/attribute.c: New file, from dwarf2read.c.
9444 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
9445
3054dd54
TT
94462020-02-08 Tom Tromey <tom@tromey.com>
9447
9448 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
9449 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
9450 Move.
9451 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
9452 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
9453 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
9454 abbrev.c.
9455 * dwarf2/abbrev.h: New file.
9456 * dwarf2/abbrev.c: New file, from dwarf2read.c.
9457 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
9458
96b79293
TT
94592020-02-08 Tom Tromey <tom@tromey.com>
9460
9461 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
9462 (dwarf2_section_size, dwarf2_get_section_info)
9463 (create_signatured_type_table_from_debug_names)
9464 (create_addrmap_from_aranges, read_debug_names_from_section)
9465 (get_gdb_index_contents_from_section, read_comp_unit_head)
9466 (error_check_comp_unit_head, read_abbrev_offset)
9467 (create_debug_type_hash_table, init_cu_die_reader)
9468 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
9469 (read_comp_units_from_section, create_cus_hash_table)
9470 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
9471 (create_dwp_v2_section, dwarf2_rnglists_process)
9472 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
9473 (abbrev_table_read_table, read_indirect_string_at_offset_from)
9474 (read_indirect_string_from_dwz, read_addr_index_1)
9475 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
9476 (dwarf_decode_macro_bytes, dwarf_decode_macros)
9477 (fill_in_loclist_baton): Update.
9478 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
9479 get_containing_section, get_bfd_owner, get_bfd_section,
9480 get_file_name, get_id, get_flags, empty, read>: Declare methods.
9481 (dwarf2_read_section, get_section_name, get_section_file_name)
9482 (get_containing_section, get_section_bfd_owner)
9483 (get_section_bfd_section, get_section_name, get_section_file_name)
9484 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
9485 declare.
9486 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
9487 (dwarf2_section_info::get_bfd_owner)
9488 (dwarf2_section_info::get_bfd_section)
9489 (dwarf2_section_info::get_name)
9490 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
9491 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
9492 (dwarf2_section_info::read): Now methods.
9493 * dwarf-index-write.c (class debug_names): Update.
9494
2c86cff9
TT
94952020-02-08 Tom Tromey <tom@tromey.com>
9496
9497 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
9498 Move to dwarf2/section.h.
9499 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
9500 (get_section_bfd_section, get_section_name)
9501 (get_section_file_name, get_section_id, get_section_flags)
9502 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
9503 dwarf2/section.c.
9504 * dwarf2/section.h: New file.
9505 * dwarf2/section.c: New file, from dwarf2read.c.
9506 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
9507
f4382c45
TT
95082020-02-08 Tom Tromey <tom@tromey.com>
9509
9510 * dwarf2read.h (read_unsigned_leb128): Don't declare.
9511 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
9512 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
9513 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
9514 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
9515 * dwarf2/leb.h: New file, from dwarf2read.c.
9516 * dwarf2/leb.c: New file, from dwarf2read.c.
9517 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
9518 Remove.
9519 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
9520 (COMMON_SFILES): Add dwarf2/leb.c.
9521
01840b7a
JB
95222020-02-08 Joel Brobecker <brobecker@adacore.com>
9523
9524 GDB 9.1 released.
9525
dfcb27e4
IB
95262020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9527
9528 PR gdb/25190:
aac66a4c
SM
9529 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
9530 * gdb/remote.c (remote_console_output): Update.
9531 * gdb/ui-file.c (fputs_unfiltered): Rename to...
9532 (ui_file_puts): ...this.
9533 * gdb/ui-file.h (ui_file_puts): Add declaration.
9534 * gdb/utils.c (emit_style_escape): Update.
9535 (flush_wrap_buffer): Update.
9536 (fputs_maybe_filtered): Update.
9537 (fputs_unfiltered): Add function.
dfcb27e4 9538
faa17681
IB
95392020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9540
aac66a4c
SM
9541 * gdb/event-loop.c (gdb_wait_for_event): Update.
9542 * gdb/printcmd.c (printf_command): Update.
9543 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
9544 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
9545 (gdb_os_flush_stderr): Update.
9546 * gdb/remote.c (remote_console_output): Update.
9547 * gdb/ui-file.c (gdb_flush): Rename to...
9548 (ui_file_flush): ...this.
9549 (stderr_file::write): Update.
9550 (stderr_file::puts): Update.
9551 * gdb/ui-file.h (gdb_flush): Rename to...
9552 (ui_file_flush): ...this.
9553 * gdb/utils.c (gdb_flush): Add function.
9554 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 9555
5abbbe1d
TT
95562020-02-07 Tom Tromey <tromey@adacore.com>
9557
9558 PR breakpoints/24915:
9559 * source.c (find_and_open_source): Do not check basenames_may_differ.
9560
919adfe8
TT
95612020-02-07 Tom Tromey <tom@tromey.com>
9562
9563 * README: Update gdbserver documentation.
9564 * gdbserver: Move to top level.
9565 * configure.tgt (build_gdbserver): Remove.
9566 * configure.ac: Remove --enable-gdbserver.
9567 * configure: Rebuild.
9568 * Makefile.in (distclean): Don't mention gdbserver.
9569
1d5d29e7
SV
95702020-02-06 Shahab Vahedi <shahab@synopsys.com>
9571
9572 * source-cache.c (source_cache::ensure): Surround
9573 get_plain_source_lines with a try/catch.
9574 (source_cache::get_line_charpos): Get rid of try/catch
9575 and only check for the return value of "ensure".
9576 * tui/tui-source.c (tui_source_window::set_contents):
9577 Simplify "nlines" calculation.
9578
6eb1129c
SV
95792020-02-06 Shahab Vahedi <shahab@synopsys.com>
9580
9581 * MAINTAINERS (Write After Approval): Add myself.
9582
c6a42d11
CB
95832020-02-05 Christian Biesinger <cbiesinger@google.com>
9584
9585 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
9586 function call.
9587
c8ecdda6
CB
95882020-02-05 Christian Biesinger <cbiesinger@google.com>
9589
9590 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
9591
f6480e70
MR
95922020-02-05 Maciej W. Rozycki <macro@wdc.com>
9593
9594 * nat/riscv-linux-tdesc.h: New file.
9595 * nat/riscv-linux-tdesc.c: New file, taking code from...
9596 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9597 ... here.
9598 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
9599 NATDEPFILES.
9600
dcc9fbc6
AB
96012020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
9602
9603 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
9604 we don't set the fake simulator ptid to the null_ptid.
9605
719546c4
SM
96062020-02-03 Simon Marchi <simon.marchi@efficios.com>
9607
9608 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
9609 * gdbthread.h (class thread_info) <resumed>: Likewise.
9610 * infrun.c (resume_1): Likewise.
9611 (proceed): Likewise.
9612 (infrun_thread_stop_requested): Likewise.
9613 (stop_all_threads): Likewise.
9614 (handle_inferior_event): Likewise.
9615 (restart_threads): Likewise.
9616 (finish_step_over): Likewise.
9617 (keep_going_stepped_thread): Likewise.
9618 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
9619 (linux_handle_extended_wait): Likewise.
9620 * record-btrace.c (get_thread_current_frame_id): Likewise.
9621 * record-full.c (record_full_wait_1): Likewise.
9622 * remote.c (remote_target::process_initial_stop_replies): Likewise.
9623 * target.c (target_resume): Likewise.
9624 * thread.c (set_running_thread): Likewise.
9625
e409c542
AKS
96262020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9627
9628 * f-valprint.c (f77_print_array_1): Changed datatype of index
9629 variable to LONGEST from int to enable it to contain bound
9630 values correctly.
9631
ee98c0da
MR
96322020-02-03 Maciej W. Rozycki <macro@wdc.com>
9633
9634 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
9635 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
9636 offsets according to FLEN determined.
9637 (riscv_linux_nat_target::read_description): Determine FLEN
9638 dynamically.
9639 (riscv_linux_nat_target::fetch_registers): Size regset buffer
9640 according to FLEN determined.
9641 (riscv_linux_nat_target::store_registers): Likewise.
9642
aa66aac4
SV
96432020-02-01 Shahab Vahedi <shahab@synopsys.com>
9644
9645 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
9646 when reg->group is empty and reggroup is not.
9647
fd9faca8
TT
96482020-01-31 Tom Tromey <tromey@adacore.com>
9649
9650 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
9651 Call beneath target's mourn_inferior after unpushing.
9652
42330a68
AB
96532020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
9654
9655 PR tui/9765
9656 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
9657 have enough lines to fill the screen, still return the lowest
9658 address we found.
9659
7a27a45b
AB
96602020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
9661
9662 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
9663 '-', '<', and '>' commands.
9664
c47f70e2
PA
96652020-01-29 Pedro Alves <palves@redhat.com>
9666 Sergio Durigan Junior <sergiodj@redhat.com>
9667
9668 * infcmd.c (construct_inferior_arguments): Assert that
9669 'argc' is greater than 0.
9670
5133a315
LM
96712020-01-29 Luis Machado <luis.machado@linaro.org>
9672
9673 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
9674 (BRK_INSN_MASK): Define to 0xd4200000.
9675 (aarch64_program_breakpoint_here_p): New function.
9676 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
9677 * arch-utils.c (default_program_breakpoint_here_p): Moved from
9678 breakpoint.c.
9679 * arch-utils.h (default_program_breakpoint_here_p): Moved from
9680 breakpoint.h
9681 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
9682 call gdbarch_program_breakpoint_here_p.
9683 (program_breakpoint_here): Moved to arch-utils.c, renamed to
9684 default_program_breakpoint_here_p, changed return type to bool and
9685 simplified.
9686 * breakpoint.h (program_breakpoint_here): Moved prototype to
9687 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
9688 return type to bool.
9689 * gdbarch.c: Regenerate.
9690 * gdbarch.h: Regenerate.
9691 * gdbarch.sh (program_breakpoint_here_p): New method.
9692 * infrun.c (handle_signal_stop): Call
9693 gdbarch_program_breakpoint_here_p.
9694
168f8c6b
TT
96952020-01-26 Tom Tromey <tom@tromey.com>
9696
9697 * ctfread.c (struct ctf_fp_info): Reindent.
9698 (_initialize_ctfread): Remove.
9699
128a391f
TT
97002020-01-26 Tom Tromey <tom@tromey.com>
9701
9702 * psymtab.c (partial_map_expand_apply)
9703 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
9704 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
9705 (psym_print_stats, psym_expand_symtabs_for_function)
9706 (psym_map_symbol_filenames, psym_map_matching_symbols)
9707 (psym_expand_symtabs_matching)
9708 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
9709 (maintenance_check_psymtabs): Use new methods.
9710 * psympriv.h (struct partial_symtab) <readin_p,
9711 get_compunit_symtab>: New methods.
9712 <readin, compunit_symtab>: Remove members.
9713 (struct standard_psymtab): New.
9714 (struct legacy_psymtab): Derive from standard_psymtab.
9715 * dwarf2read.h (struct dwarf2_psymtab): Derive from
9716 standard_psymtab.
9717 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
9718
0494dbec
TT
97192020-01-26 Tom Tromey <tom@tromey.com>
9720
9721 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
9722 read_dependencies. Add assert.
9723 * psymtab.c (partial_symtab::read_dependencies): New method.
9724 * psympriv.h (struct partial_symtab) <read_dependencies>: New
9725 method.
9726 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
9727 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
9728 read_dependencies.
9729 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
9730 Add assert.
9731
8566b89b
TT
97322020-01-26 Tom Tromey <tom@tromey.com>
9733
9734 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
9735 Call expand_psymtab.
9736 (xcoff_read_symtab): Call expand_psymtab.
9737 (xcoff_start_psymtab, xcoff_end_psymtab): Set
9738 legacy_expand_psymtab.
9739 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
9740 method.
9741 (struct legacy_psymtab) <expand_psymtab>: Implement.
9742 <legacy_expand_psymtab>: New member.
9743 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
9744 (parse_partial_symbols): Set legacy_expand_psymtab.
9745 (psymtab_to_symtab_1): Change argument order. Call
9746 expand_psymtab.
9747 (new_psymtab): Set legacy_expand_psymtab.
9748 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
9749 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
9750 expand_psymtab.
9751 (dwarf2_psymtab::expand_psymtab): Rename from
9752 psymtab_to_symtab_1. Call expand_psymtab.
9753 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
9754 (dbx_end_psymtab): Likewise.
9755 (dbx_psymtab_to_symtab_1): Change argument order. Call
9756 expand_psymtab.
9757 (dbx_read_symtab): Call expand_psymtab.
9758 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
9759 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
9760 (ctf_psymtab::read_symtab): Call expand_psymtab.
9761
077cbab2
TT
97622020-01-26 Tom Tromey <tom@tromey.com>
9763
9764 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
9765 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
9766 messages.
9767 * mdebugread.c (mdebug_read_symtab): Remove prints.
9768 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
9769 assert.
9770 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
9771
891813be
TT
97722020-01-26 Tom Tromey <tom@tromey.com>
9773
9774 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
9775 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
9776 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
9777 legacy_symtab.
9778 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
9779 * psymtab.c (psymtab_to_symtab): Call method.
9780 (dump_psymtab): Update.
9781 * psympriv.h (struct partial_symtab): Add virtual destructor.
9782 <read_symtab>: New method.
9783 (struct legacy_symtab): New.
9784 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
9785 (struct pst_map) <pst>: Now a legacy_psymtab.
9786 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
9787 (new_psymtab): Use legacy_psymtab.
9788 * dwarf2read.h (struct dwarf2_psymtab): New.
9789 (struct dwarf2_per_cu_data) <psymtab>: Use it.
9790 * dwarf2read.c (dwarf2_create_include_psymtab)
9791 (dwarf2_build_include_psymtabs, create_type_unit_group)
9792 (create_partial_symtab, process_psymtab_comp_unit_reader)
9793 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
9794 (set_partial_user): Use dwarf2_psymtab.
9795 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
9796 (psymtab_to_symtab_1, process_full_comp_unit)
9797 (process_full_type_unit, dwarf2_ranges_read)
9798 (dwarf2_get_pc_bounds, psymtab_include_file_name)
9799 (dwarf_decode_lines): Use dwarf2_psymtab.
9800 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
9801 (add_address_entry_worker, write_one_signatured_type)
9802 (recursively_count_psymbols, recursively_write_psymbols)
9803 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
9804 (write_debug_names): Likewise.
9805 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
9806 <pst>: Now a legacy_psymtab.
9807 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
9808 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
9809 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
9810 * ctfread.c (struct ctf_psymtab): New.
9811 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
9812 ctf_psymtab.
9813 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
9814 (create_partial_symtab): Return a ctf_psymtab.
9815 (scan_partial_symbols): Update.
9816
c3693a1d
TT
98172020-01-26 Tom Tromey <tom@tromey.com>
9818
9819 * xcoffread.c (xcoff_start_psymtab): Use new.
9820 * psymtab.c (partial_symtab::partial_symtab): New constructor,
9821 renamed from start_psymtab_common.
9822 * psympriv.h (struct partial_symtab): Add new constructor.
9823 (start_psymtab_common): Don't declare.
9824 * mdebugread.c (parse_partial_symbols): Use new.
9825 * dwarf2read.c (create_partial_symtab): Use new.
9826 * dbxread.c (start_psymtab): Use new.
9827 * ctfread.c (create_partial_symtab): Use new.
9828
32caafd0
TT
98292020-01-26 Tom Tromey <tom@tromey.com>
9830
9831 * xcoffread.c (xcoff_end_psymtab): Use new.
9832 * psymtab.c (start_psymtab_common): Use new.
9833 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
9834 Update.
9835 * psympriv.h (struct partial_symtab): Add parameters to
9836 constructor. Don't inline.
9837 (allocate_psymtab): Don't declare.
9838 * mdebugread.c (new_psymtab): Use new.
9839 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
9840 * dbxread.c (dbx_end_psymtab): Use new.
9841
abaa2f23
TT
98422020-01-26 Tom Tromey <tom@tromey.com>
9843
9844 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
9845 allocate_psymtab. Update documentation.
9846 * psymtab.c (psymtab_storage::install_psymtab): Rename from
9847 allocate_psymtab. Do not use new.
9848 (allocate_psymtab): Use new. Update.
9849
6d94535f
TT
98502020-01-26 Tom Tromey <tom@tromey.com>
9851
9852 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
9853 * psymtab.c (psym_print_stats): Update.
9854 * psympriv.h (struct partial_symtab) <readin,
9855 psymtabs_addrmap_supported, anonymous>: Now bool.
9856 * mdebugread.c (psymtab_to_symtab_1): Update.
9857 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
9858 (build_type_psymtabs_reader, psymtab_to_symtab_1)
9859 (process_full_comp_unit, process_full_type_unit): Update.
9860 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
9861 * ctfread.c (psymtab_to_symtab): Update.
9862
6f17252b
TT
98632020-01-26 Tom Tromey <tom@tromey.com>
9864
9865 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
9866 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
9867 * psymtab.c (psymtab_storage): Delete psymtabs.
9868 (psymtab_storage::allocate_psymtab): Use new.
9869 (psymtab_storage::discard_psymtab): Use delete.
9870 * psympriv.h (struct partial_symtab): Add constructor and
9871 initializers.
9872
f6f1cebc
TT
98732020-01-26 Tom Tromey <tom@tromey.com>
9874
9875 * machoread.c: Do not include psympriv.h.
9876
e47e48f6
PW
98772020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9878
9879 * NEWS: Mention the new option and the set/show commands.
9880
a2fedca9
PW
98812020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9882
9883 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
9884 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
9885 (validate_exec_file): New variables, enums, functions.
9886 (exec_file_locate_attach, print_section_info): Style the filenames.
9887 (_initialize_exec): Install show_exec_file_mismatch_command and
9888 set_exec_file_mismatch_command.
9889 * gdbcore.h (validate_exec_file): Declare.
9890 * infcmd.c (attach_command): Call validate_exec_file.
9891 * remote.c ( remote_target::remote_add_inferior): Likewise.
9892
7ffa82e1
AB
98932020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9894
9895 * frame.c (find_frame_sal): Move call to get_next_frame into more
9896 inner scope.
9897 * inline-frame.c (inilne_state) <inline_state>: Update argument
9898 types.
9899 (inilne_state) <skipped_symbol>: Rename to...
9900 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
9901 (skip_inline_frames): Build vector of skipped symbols and use this
9902 to reate the inline_state.
9903 (inline_skipped_symbol): Add a comment and some assertions, fetch
9904 skipped symbol from the list.
9905
3d92a3e3
AB
99062020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9907
9908 * buildsym.c (lte_is_less_than): Delete.
9909 (buildsym_compunit::end_symtab_with_blockvector): Create local
9910 lambda function to sort line table entries, and use
9911 std::stable_sort instead of std::sort.
9912 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
9913 markers when looking for a previous line.
9914
94a72be7
AB
99152020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9916
9917 * dwarf2read.c (lnp_state_machine::record_line): Include
9918 end_sequence parameter in debug print out. Record the line if we
9919 are at an end_sequence marker even if it's not the start of a
9920 statement.
9921 * symmisc.c (maintenance_print_one_line_table): Print end of
9922 sequence markers with 'END' not '0'.
9923
53af73bf
PA
99242020-01-24 Pedro Alves <palves@redhat.com>
9925
9926 PR gdb/25410
9927 * thread.c (scoped_restore_current_thread::restore): Use
9928 switch_to_inferior_no_thread.
9929 * exec.c: Include "progspace-and-thread.h".
9930 (add_target_sections, remove_target_sections):
9931 scoped_restore_current_pspace_and_thread instead of
9932 scoped_restore_current_thread.
9933 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
9934 and aspace to the inferior before calling clone_program_space.
9935 Remove stale comment.
9936
3050c6f4
CB
99372020-01-24 Christian Biesinger <cbiesinger@google.com>
9938
9939 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
9940 (arm_netbsd_nat_target::fetch_registers): ...this.
9941 (arm_nbsd_nat_target::store_registers): Rename to...
9942 (arm_netbsd_nat_target::store_registers): ...this.
9943
73685c7e
CB
99442020-01-24 Christian Biesinger <cbiesinger@google.com>
9945
9946 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9947 register_t.
9948
89203d40
CB
99492020-01-24 Christian Biesinger <cbiesinger@google.com>
9950
9951 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
9952 Update comment.
9953 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
9954 Likewise.
9955 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
9956 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
9957 the correct replacement (iterate_over_regset_sections).
9958 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
9959 Update comment.
9960
1ba1ac88
AB
99612020-01-24 Graham Markall <graham.markall@embecosm.com>
9962
9963 PR gdb/23718
9964 * gdb/python/python.c (execute_gdb_command): Call
9965 async_enable_stdin in catch block.
9966
f3364a6d
AB
99672020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9968
9969 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
9970 SWITCH_THRU_ALL_UIS.
9971
733d0a67
AB
99722020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9973
9974 PR tui/9765
9975 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
9976 comment, add extra parameter, and update to store previous symbol
9977 when appropriate.
9978 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
9979 add extra parameter.
9980 * tui/tui-disasm.c (tui_disassemble): Update header comment,
9981 remove unneeded parameter, add try/catch around gdb_print_insn,
9982 rewrite to add items to asm_lines vector.
9983 (tui_find_backward_disassembly_start_address): New function.
9984 (tui_find_disassembly_address): Updated throughout.
9985 (tui_disasm_window::set_contents): Update for changes to
9986 tui_disassemble.
9987 (tui_disasm_window::do_scroll_vertical): No need to adjust the
9988 number of lines to scroll.
9989
b3b3bada
SM
99902020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
9991
9992 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
9993 (SECT_OFF_DATA): Likewise.
9994 (SECT_OFF_RODATA): Likewise.
9995 (SECT_OFF_TEXT): Likewise.
9996 (SECT_OFF_BSS): Likewise.
9997 (struct objfile) <text_section_offset, data_section_offset>: New
9998 methods.
9999 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
10000 objfile::text_section_offset.
10001 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
10002 * coffread.c (coff_symtab_read): Likewise.
10003 (enter_linenos): Likewise.
10004 (process_coff_symbol): Likewise.
10005 * ctfread.c (get_objfile_text_range): Likewise.
10006 * dtrace-probe.c (dtrace_probe::get_relocated_address):
10007 Use objfile::data_section_offset.
10008 * dwarf2-frame.c (execute_cfa_program): Use
10009 objfile::text_section_offset.
10010 (dwarf2_frame_find_fde): Likewise.
10011 * dwarf2read.c (create_addrmap_from_index): Likewise.
10012 (create_addrmap_from_aranges): Likewise.
10013 (dw2_find_pc_sect_compunit_symtab): Likewise.
10014 (process_psymtab_comp_unit_reader): Likewise.
10015 (add_partial_symbol): Likewise.
10016 (add_partial_subprogram): Likewise.
10017 (process_full_comp_unit): Likewise.
10018 (read_file_scope): Likewise.
10019 (read_func_scope): Likewise.
10020 (read_lexical_block_scope): Likewise.
10021 (read_call_site_scope): Likewise.
10022 (dwarf2_rnglists_process): Likewise.
10023 (dwarf2_ranges_process): Likewise.
10024 (dwarf2_ranges_read): Likewise.
10025 (dwarf_decode_lines_1): Likewise.
10026 (new_symbol): Likewise.
10027 (dwarf2_fetch_die_loc_sect_off): Likewise.
10028 (dwarf2_per_cu_text_offset): Likewise.
10029 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
10030 * hppa-tdep.c (read_unwind_info): Likewise.
10031 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
10032 * psympriv.h (struct partial_symtab): Likewise.
10033 * psymtab.c (find_pc_sect_psymtab): Likewise.
10034 * solib-svr4.c (enable_break): Likewise.
10035 * stap-probe.c (relocate_address): Use
10036 objfile::data_section_offset.
10037 * xcoffread.c (enter_line_range): Use
10038 objfile::text_section_offset.
10039 (read_xcoff_symtab): Likewise.
10040
ab53f382
SM
100412020-01-23 Simon Marchi <simon.marchi@efficios.com>
10042
10043 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
10044 declaration to narrower scopes.
10045
e7eee665
SM
100462020-01-23 Simon Marchi <simon.marchi@efficios.com>
10047
10048 * darwin-nat.h (struct darwin_exception_msg, enum
10049 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
10050 Move up.
10051 (class darwin_nat_target) <wait_1, check_new_threads,
10052 decode_exception_message, decode_message, stop_inferior,
10053 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
10054 * darwin-nat.c (darwin_check_new_threads): Rename to...
10055 (darwin_nat_target::check_new_threads): ... this.
10056 (darwin_suspend_inferior_it): Remove.
10057 (darwin_decode_exception_message): Rename to...
10058 (darwin_nat_target::decode_exception_message): ... this.
10059 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
10060 (darwin_decode_message): Rename to...
10061 (darwin_nat_target::decode_message): ... this.
10062 (cancel_breakpoint): Rename to...
10063 (darwin_nat_target::cancel_breakpoint): ... this.
10064 (darwin_wait): Rename to...
10065 (darwin_nat_target::wait_1): ... this. Use range-based for loop
10066 instead of iterate_over_inferiors.
10067 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
10068 (darwin_stop_inferior): Rename to...
10069 (darwin_nat_target::stop_inferior): ... this.
10070 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
10071 (darwin_init_thread_list): Rename to...
10072 (darwin_nat_target::init_thread_list): ... this.
10073 (darwin_ptrace_him): Rename to...
10074 (darwin_nat_target::ptrace_him): ... this.
10075 (darwin_nat_target::create_inferior): Pass lambda function to
10076 fork_inferior.
10077 (darwin_nat_target::detach): Call stop_inferior instead of
10078 darwin_stop_inferior.
10079 * fork-inferior.h (fork_inferior): Change init_trace_fun
10080 parameter to gdb::function_view.
10081 * fork-inferior.c (fork_inferior): Likewise.
10082
c162ed3e
HD
100832020-01-23 Hannes Domani <ssbssa@yahoo.de>
10084
10085 * i386-cygwin-tdep.c (core_process_module_section): Update.
10086 * windows-nat.c (struct lm_info_windows): Add text_offset.
10087 (windows_xfer_shared_libraries): Update.
10088 * windows-tdep.c (windows_xfer_shared_library):
10089 Add text_offset_cached argument.
10090 * windows-tdep.h (windows_xfer_shared_library): Update.
10091
a1237872
SM
100922020-01-21 Simon Marchi <simon.marchi@efficios.com>
10093
10094 * gdbarch.sh: Add declaration for _initialize_gdbarch.
10095
b3ee6dd9
SM
100962020-01-21 Simon Marchi <simon.marchi@efficios.com>
10097
10098 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
10099 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
10100 replace with range-based for.
10101 (gdbsim_interrupt_inferior): Remove.
10102 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
10103 with a range-based for. Inline code from
10104 gdbsim_interrupt_inferior.
10105
f9fac3c8
SM
101062020-01-21 Simon Marchi <simon.marchi@efficios.com>
10107
10108 * infrun.c (proceed): Fix indentation.
10109
f6474de9
TT
101102020-01-21 Tom Tromey <tromey@adacore.com>
10111
10112 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
10113 * python/python.c (python_extension_ops): Update.
10114 (gdbpy_colorize): New function.
10115 * python/lib/gdb/__init__.py (colorize): New function.
10116 * extension.h (ext_lang_colorize): Declare.
10117 * extension.c (ext_lang_colorize): New function.
10118 * extension-priv.h (struct extension_language_ops) <colorize>: New
10119 member.
10120 * cli/cli-style.c (_initialize_cli_style): Update help text.
10121
f0c702d4
LM
101222020-01-21 Luis Machado <luis.machado@linaro.org>
10123
10124 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
10125 <cond>: Change type to bool.
10126 (aarch64_displaced_step_b_cond): Update cond to use bool type.
10127 (aarch64_displaced_step_cb): Likewise.
10128 (aarch64_displaced_step_tb): Likewise.
10129
1ab139e5
LM
101302020-01-21 Luis Machado <luis.machado@linaro.org>
10131
10132 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
10133 output.
10134
0c271889
LM
101352020-01-21 Luis Machado <luis.machado@linaro.org>
10136
10137 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
10138 <pc_adjust>: Adjust the documentation.
10139 (aarch64_displaced_step_fixup): Check if PC really moved before
10140 adjusting it.
10141
4d89c1c7
TT
101422020-01-19 Tom Tromey <tom@tromey.com>
10143
10144 * disasm.c (~gdb_disassembler): New destructor.
10145 (gdb_buffered_insn_length): Call disassemble_free_target.
10146 * disasm.h (class gdb_disassembler): Declare destructor. Use
10147 DISABLE_COPY_AND_ASSIGN.
10148
c0ab21c2
TT
101492020-01-19 Tom Tromey <tom@tromey.com>
10150
10151 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
10152 (die_reader_func_ftype): Remove.
10153 (cutu_reader): New class.
10154 (dw2_get_file_names_reader): Remove "data" parameter.
10155 (dw2_get_file_names): Use cutu_reader.
10156 (create_debug_type_hash_table): Update.
10157 (read_cutu_die_from_dwo): Update comment.
10158 (lookup_dwo_unit): Add dwo_name parameter.
10159 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
10160 die_reader_func_ftype and data parameters.
10161 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
10162 Remove die_reader_func_ftype and data parameters.
10163 (~cutu_reader): New; from init_cutu_and_read_dies.
10164 (cutu_reader::cutu_reader): Rename from
10165 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
10166 and data parameters.
10167 (init_cutu_and_read_dies_simple): Remove.
10168 (struct process_psymtab_comp_unit_data): Remove.
10169 (process_psymtab_comp_unit_reader): Remove data parameter; add
10170 want_partial_unit and pretend_language parameters.
10171 (process_psymtab_comp_unit): Use cutu_reader.
10172 (build_type_psymtabs_reader): Remove data parameter.
10173 (build_type_psymtabs_1): Use cutu_reader.
10174 (process_skeletonless_type_unit): Likewise.
10175 (load_partial_comp_unit_reader): Remove.
10176 (load_partial_comp_unit): Use cutu_reader.
10177 (load_full_comp_unit_reader): Remove.
10178 (load_full_comp_unit): Use cutu_reader.
10179 (struct create_dwo_cu_data): Remove.
10180 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
10181 dwo_unit parameters.
10182 (create_cus_hash_table): Use cutu_reader.
10183 (struct dwarf2_read_addr_index_data): Remove.
10184 (dwarf2_read_addr_index_reader): Remove.
10185 (dwarf2_read_addr_index): Use cutu_reader.
10186 (read_signatured_type_reader): Remove.
10187 (read_signatured_type): Use cutu_reader.
10188
45bbae5c
TT
101892020-01-19 Tom Tromey <tom@tromey.com>
10190
10191 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
10192 * tui/tui-wingeneral.h (class tui_suppress_output): New.
10193 (tui_wrefresh): Declare.
10194 * tui/tui-wingeneral.c (suppress_output): New global.
10195 (tui_suppress_output, ~tui_suppress_output): New constructor and
10196 destructor.
10197 (tui_wrefresh): New function.
10198 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
10199 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
10200 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
10201 method.
10202 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
10203 tui_wrefresh.
10204 (tui_data_window::no_refresh): New method.
10205 (tui_data_item_window::refresh_window): Call tui_wrefresh.
10206 (tui_reg_command): Use tui_suppress_output
10207 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
10208 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
10209 method.
10210 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
10211
4f13c1c0
TT
102122020-01-19 Tom Tromey <tom@tromey.com>
10213
10214 * tui/tui-winsource.c (tui_update_source_windows_with_line):
10215 Handle case where symtab is null.
10216
fa47e446
SM
102172020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
10218
10219 * linux-fork.c (one_fork_p): Simplify.
10220
26f42329
SM
102212020-01-17 Simon Marchi <simon.marchi@efficios.com>
10222
10223 * top.c (struct qt_args): Remove.
10224 (kill_or_detach): Change return type to void, replace `void *`
10225 parameter with a proper one.
10226 (print_inferior_quit_action): Likewise.
10227 (quit_confirm): Use range-based for loop to iterate over inferiors.
10228 (quit_force): Likewise.
10229
a9ac81b1
SM
102302020-01-17 Simon Marchi <simon.marchi@efficios.com>
10231
10232 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
10233 `void *` parameter with proper parameters.
10234 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
10235 (print_one_inferior): Change return type to void, replace `void *`
10236 parameter with proper parameters.
10237 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
10238 inferiors.
10239 (get_other_inferior): Remove.
10240 (mi_cmd_remove_inferior): Use range-based loop to iterate over
10241 inferiors.
10242
788eca49
SM
102432020-01-17 Simon Marchi <simon.marchi@efficios.com>
10244
10245 * mi/mi-interp.c (report_initial_inferior): Remove.
10246 (mi_interp::init): Use range-based for to iterate over inferiors.
10247
d9bc85b6
SM
102482020-01-17 Simon Marchi <simon.marchi@efficios.com>
10249
10250 * python/py-inferior.c (build_inferior_list): Remove.
10251 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
10252
40c94099
CB
102532020-01-16 Christian Biesinger <cbiesinger@google.com>
10254
10255 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
10256 (btrace_stitch_trace): Likewise.
10257 * charset.c (intermediate_encoding): Likewise (vaild).
10258 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
10259 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
10260 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
10261
e0cdfe3c
HD
102622020-01-16 Hannes Domani <ssbssa@yahoo.de>
10263
10264 * windows-tdep.c (windows_get_tlb_type):
10265 Add rtl_user_process_parameters type.
10266
790f1718 102672020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 10268 Norbert Lange <nolange79@gmail.com>
790f1718
PA
10269
10270 PR build/24805
10271 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
10272 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
10273 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
10274 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
10275 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
10276 (ps_plog): Redeclare exported functions with default visibility.
10277
3112ed97
NA
102782020-01-16 Nitika Achra <Nitika.Achra@amd.com>
10279
10280 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
10281 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
10282
8dc3273e
SM
102832020-01-15 Simon Marchi <simon.marchi@efficios.com>
10284
10285 * infcmd.c (post_create_inferior): Use get_thread_regcache
10286 instead of get_current_regcache.
10287
ff47f4f0
TT
102882020-01-14 Tom Tromey <tom@tromey.com>
10289
10290 PR symtab/12535:
10291 * python/python.c (gdbpy_decode_line): Treat empty string the same
10292 as no argument.
10293
975f45b7
TT
102942020-01-14 Tom Tromey <tom@tromey.com>
10295
10296 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
10297
25e57356
TT
102982020-01-14 Tom Tromey <tom@tromey.com>
10299
10300 * nat/linux-btrace.c: Don't include <config.h>.
10301 * nat/linux-ptrace.c: Don't include <config.h>.
10302 * nat/x86-linux-dregs.c: Don't include <config.h>.
10303
05ea2a05
TT
103042020-01-14 Tom Tromey <tom@tromey.com>
10305
10306 * configure: Rebuild.
10307 * configure.ac: Move many checks to ../gdbsupport/common.m4.
10308
01027315
TT
103092020-01-14 Tom Tromey <tom@tromey.com>
10310
10311 * nat/x86-linux-dregs.c: Include configh.h.
10312 * nat/linux-ptrace.c: Include configh.h.
10313 * nat/linux-btrace.c: Include configh.h.
10314 * defs.h: Include config.h, bfd.h.
10315 * configure.ac: Don't source common.host.
10316 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
10317 * configure: Rebuild.
10318 * acinclude.m4: Update path.
10319 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
10320 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
10321 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
10322 (CLIBS): Add LIBSUPPORT.
10323 (CDEPS): Likewise.
10324 (COMMON_SFILES): Remove gdbsupport files.
10325 (HFILES_NO_SRCDIR): Likewise.
10326 (stamp-version): Update path to create-version.sh.
10327 (ALLDEPFILES): Remove gdbsupport files.
10328
b2ceabe8
TT
103292020-01-14 Tom Tromey <tom@tromey.com>
10330
10331 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
10332 USE_WIN32API when needed.
10333 * configure.ac (USE_WIN32API): Don't define.
10334 (WIN32LIBS): Use WIN32APILIBS.
10335 * configure: Rebuild.
10336
25c51f71
TT
103372020-01-14 Tom Tromey <tom@tromey.com>
10338
10339 * configure: Rebuild.
10340 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
10341
717c684d
BE
103422020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
10343
10344 * skip.c (skip_function_command): Make skip w/o arguments use the
10345 name of the inlined function if pc is inside any inlined function.
10346
7da6a5b9
LM
103472020-01-14 Luis Machado <luis.machado@linaro.org>
10348
10349 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
10350 * infrun.c (resume_1): Likewise.
10351 (handle_inferior_event): Remove stale comment.
10352 * linux-nat.c (linux_nat_target::resume): Update comments.
10353 (save_stop_reason): Likewise.
10354 (linux_nat_filter_event): Likewise.
10355 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
10356
44e4c775
AB
103572020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10358
10359 * elfread.c (record_minimal_symbol): Set section index to 0 for
10360 non-allocatable sections.
10361
18a8505e
AT
10362
103632020-01-13 Ali Tamur <tamur@google.com>
10364
10365 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
10366 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
10367 to gdb::optional. Update comments.
10368 (dwo_file): Update comments.
10369 (read_attribute): Update API to take an additional out parameter,
10370 need_reprocess. This is used to mark attributes that need other
10371 attributes (e.g. str_offsets_base) for correct computation which may not
10372 have been read yet.
10373 (read_attribute_reprocess): New function declaration.
10374 (read_addr_index): Likewise.
10375 (read_dwo_str_index): Likewise.
10376 (read_stub_str_index): Likewise.
10377 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
10378 (lookup_addr_base): New function definition.
10379 (lookup_ranges_base): Likewise.
10380 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
10381 lookup_ranges_base.
10382 (init_cutu_and_read_dies): Update comments.
10383 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
10384 unit. This is used to inherit parent's str_offsets_base and addr_base.
10385 Update comments.
10386 (init_cutu_and_read_dies_simple): Reflect API changes.
10387 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
10388 (create_cus_hash_table): Change API to take parent compile unit.
10389 Reflect API changes.
10390 (open_and_init_dwo_file): Reflect API changes.
10391 (dwarf2_get_pc_bounds): Update comments.
10392 (dwarf2_record_block_ranges): Likewise.
10393 (read_full_die_1): Change implementation to reprocess attributes that
10394 need str_offsets_base and addr_base.
10395 (partial_die_info::read): Likewise.
10396 (read_attribute_reprocess): New function definition.
10397 (read_attribute_value): Change API to take an additional out parameter,
10398 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
10399 when a non-dwo compile unit has index based attributes.
10400 (read_attribute): Reflect API changes.
10401 (read_addr_index_1): Reflect API changes. Update comments.
10402 (dwarf2_read_addr_index_data): Reflect API changes.
10403 (dwarf2_read_addr_index): Likewise.
10404 (read_str_index): Change API and implementation. This becomes a helper
10405 to be used by the new string index related methods. Update error
10406 message and comments.
10407 (read_dwo_str_index): New function definition.
10408 (read_stub_str_index): Likewise.
10409 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
10410 * symfile.h (dwarf2_debug_sections): Likewise.
10411 * xcoffread.c (dwarf2_debug_sections): Likewise.
10412
0cac9354
SM
104132020-01-13 Simon Marchi <simon.marchi@efficios.com>
10414
10415 * gdbcore.h (struct core_fns) <core_read_registers>: Change
10416 core_reg_sect type to gdb_byte *.
10417 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
10418 * cris-tdep.c (fetch_core_registers): Likewise.
10419 * corelow.c (core_target::get_core_register_section): Change
10420 type of `contents` to gdb::byte_vector.
10421
9a6d629c
AB
104222020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10423
10424 * tui/tui-wingeneral.c (box_win): Position the title in the center
10425 of the border.
10426
d8b2f9e3
SM
104272020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10428
10429 * corelow.c (core_target::get_core_register_section): Use
10430 std::vector instead of alloca.
10431
bb564c58
SM
104322020-01-13 Simon Marchi <simon.marchi@efficios.com>
10433
10434 * warning.m4: Add -Wmissing-declarations to build_warnings.
10435 * configure: Re-generate.
10436
6b366111
SM
104372020-01-13 Simon Marchi <simon.marchi@efficios.com>
10438
10439 * python/python.c (init__gdb_module): Add declaration.
10440
6c265988
SM
104412020-01-13 Simon Marchi <simon.marchi@efficios.com>
10442
10443 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
10444 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
10445 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
10446 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
10447 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
10448 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
10449 * ada-exp.y (_initialize_ada_exp): Add declaration.
10450 * ada-lang.c (_initialize_ada_language): Add declaration.
10451 * ada-tasks.c (_initialize_tasks): Add declaration.
10452 * agent.c (_initialize_agent): Add declaration.
10453 * aix-thread.c (_initialize_aix_thread): Add declaration.
10454 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
10455 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
10456 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
10457 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
10458 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
10459 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
10460 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
10461 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
10462 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
10463 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
10464 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
10465 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
10466 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
10467 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
10468 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
10469 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
10470 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
10471 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
10472 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
10473 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
10474 * annotate.c (_initialize_annotate): Add declaration.
10475 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
10476 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
10477 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
10478 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
10479 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
10480 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
10481 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
10482 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
10483 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
10484 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
10485 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
10486 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
10487 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
10488 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
10489 * auto-load.c (_initialize_auto_load): Add declaration.
10490 * auxv.c (_initialize_auxv): Add declaration.
10491 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
10492 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
10493 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
10494 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
10495 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
10496 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
10497 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
10498 * breakpoint.c (_initialize_breakpoint): Add declaration.
10499 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
10500 * btrace.c (_initialize_btrace): Add declaration.
10501 * charset.c (_initialize_charset): Add declaration.
10502 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
10503 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
10504 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
10505 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
10506 * cli/cli-script.c (_initialize_cli_script): Add declaration.
10507 * cli/cli-style.c (_initialize_cli_style): Add declaration.
10508 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
10509 * coffread.c (_initialize_coffread): Add declaration.
10510 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
10511 * compile/compile.c (_initialize_compile): Add declaration.
10512 * complaints.c (_initialize_complaints): Add declaration.
10513 * completer.c (_initialize_completer): Add declaration.
10514 * copying.c (_initialize_copying): Add declaration.
10515 * corefile.c (_initialize_core): Add declaration.
10516 * corelow.c (_initialize_corelow): Add declaration.
10517 * cp-abi.c (_initialize_cp_abi): Add declaration.
10518 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
10519 * cp-support.c (_initialize_cp_support): Add declaration.
10520 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
10521 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
10522 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
10523 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
10524 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
10525 * ctfread.c (_initialize_ctfread): Add declaration.
10526 * d-lang.c (_initialize_d_language): Add declaration.
10527 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
10528 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
10529 * dbxread.c (_initialize_dbxread): Add declaration.
10530 * dcache.c (_initialize_dcache): Add declaration.
10531 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
10532 * disasm.c (_initialize_disasm): Add declaration.
10533 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
10534 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
10535 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
10536 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
10537 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
10538 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
10539 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
10540 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
10541 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
10542 * elfread.c (_initialize_elfread): Add declaration.
10543 * exec.c (_initialize_exec): Add declaration.
10544 * extension.c (_initialize_extension): Add declaration.
10545 * f-lang.c (_initialize_f_language): Add declaration.
10546 * f-valprint.c (_initialize_f_valprint): Add declaration.
10547 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
10548 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
10549 * filesystem.c (_initialize_filesystem): Add declaration.
10550 * findcmd.c (_initialize_mem_search): Add declaration.
10551 * findvar.c (_initialize_findvar): Add declaration.
10552 * fork-child.c (_initialize_fork_child): Add declaration.
10553 * frame-base.c (_initialize_frame_base): Add declaration.
10554 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
10555 * frame.c (_initialize_frame): Add declaration.
10556 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
10557 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
10558 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
10559 * gcore.c (_initialize_gcore): Add declaration.
10560 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
10561 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
10562 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
10563 * gdbarch.c (_initialize_gdbarch): Add declaration.
10564 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
10565 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
10566 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
10567 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
10568 * go-lang.c (_initialize_go_language): Add declaration.
10569 * go32-nat.c (_initialize_go32_nat): Add declaration.
10570 * guile/guile.c (_initialize_guile): Add declaration.
10571 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
10572 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
10573 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
10574 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
10575 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
10576 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
10577 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
10578 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
10579 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
10580 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
10581 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
10582 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
10583 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
10584 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
10585 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
10586 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
10587 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
10588 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
10589 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
10590 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
10591 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
10592 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
10593 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
10594 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
10595 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
10596 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
10597 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
10598 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
10599 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
10600 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
10601 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
10602 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
10603 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
10604 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
10605 * infcall.c (_initialize_infcall): Add declaration.
10606 * infcmd.c (_initialize_infcmd): Add declaration.
10607 * inflow.c (_initialize_inflow): Add declaration.
10608 * infrun.c (_initialize_infrun): Add declaration.
10609 * interps.c (_initialize_interpreter): Add declaration.
10610 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
10611 * jit.c (_initialize_jit): Add declaration.
10612 * language.c (_initialize_language): Add declaration.
10613 * linux-fork.c (_initialize_linux_fork): Add declaration.
10614 * linux-nat.c (_initialize_linux_nat): Add declaration.
10615 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
10616 * linux-thread-db.c (_initialize_thread_db): Add declaration.
10617 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
10618 * m2-lang.c (_initialize_m2_language): Add declaration.
10619 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
10620 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
10621 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
10622 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
10623 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
10624 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
10625 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
10626 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
10627 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
10628 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
10629 * machoread.c (_initialize_machoread): Add declaration.
10630 * macrocmd.c (_initialize_macrocmd): Add declaration.
10631 * macroscope.c (_initialize_macroscope): Add declaration.
10632 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
10633 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
10634 * maint.c (_initialize_maint_cmds): Add declaration.
10635 * mdebugread.c (_initialize_mdebugread): Add declaration.
10636 * memattr.c (_initialize_mem): Add declaration.
10637 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
10638 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
10639 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
10640 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
10641 * mi/mi-main.c (_initialize_mi_main): Add declaration.
10642 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
10643 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
10644 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
10645 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
10646 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
10647 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
10648 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
10649 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
10650 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
10651 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
10652 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
10653 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
10654 * mipsread.c (_initialize_mipsread): Add declaration.
10655 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
10656 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
10657 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
10658 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
10659 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
10660 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
10661 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
10662 * nto-procfs.c (_initialize_procfs): Add declaration.
10663 * objc-lang.c (_initialize_objc_language): Add declaration.
10664 * observable.c (_initialize_observer): Add declaration.
10665 * opencl-lang.c (_initialize_opencl_language): Add declaration.
10666 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
10667 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
10668 * osabi.c (_initialize_gdb_osabi): Add declaration.
10669 * osdata.c (_initialize_osdata): Add declaration.
10670 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
10671 * parse.c (_initialize_parse): Add declaration.
10672 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
10673 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
10674 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
10675 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
10676 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
10677 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
10678 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
10679 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
10680 * printcmd.c (_initialize_printcmd): Add declaration.
10681 * probe.c (_initialize_probe): Add declaration.
10682 * proc-api.c (_initialize_proc_api): Add declaration.
10683 * proc-events.c (_initialize_proc_events): Add declaration.
10684 * proc-service.c (_initialize_proc_service): Add declaration.
10685 * procfs.c (_initialize_procfs): Add declaration.
10686 * producer.c (_initialize_producer): Add declaration.
10687 * psymtab.c (_initialize_psymtab): Add declaration.
10688 * python/python.c (_initialize_python): Add declaration.
10689 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
10690 * record-btrace.c (_initialize_record_btrace): Add declaration.
10691 * record-full.c (_initialize_record_full): Add declaration.
10692 * record.c (_initialize_record): Add declaration.
10693 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
10694 * regcache.c (_initialize_regcache): Add declaration.
10695 * reggroups.c (_initialize_reggroup): Add declaration.
10696 * remote-notif.c (_initialize_notif): Add declaration.
10697 * remote-sim.c (_initialize_remote_sim): Add declaration.
10698 * remote.c (_initialize_remote): Add declaration.
10699 * reverse.c (_initialize_reverse): Add declaration.
10700 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
10701 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
10702 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
10703 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
10704 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
10705 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
10706 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
10707 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
10708 Add declaration.
10709 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
10710 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
10711 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
10712 * rust-exp.y (_initialize_rust_exp): Add declaration.
10713 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
10714 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
10715 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
10716 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
10717 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
10718 * score-tdep.c (_initialize_score_tdep): Add declaration.
10719 * ser-go32.c (_initialize_ser_dos): Add declaration.
10720 * ser-mingw.c (_initialize_ser_windows): Add declaration.
10721 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
10722 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
10723 * ser-uds.c (_initialize_ser_socket): Add declaration.
10724 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
10725 * serial.c (_initialize_serial): Add declaration.
10726 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
10727 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
10728 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
10729 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
10730 * skip.c (_initialize_step_skip): Add declaration.
10731 * sol-thread.c (_initialize_sol_thread): Add declaration.
10732 * solib-aix.c (_initialize_solib_aix): Add declaration.
10733 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
10734 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
10735 * solib-frv.c (_initialize_frv_solib): Add declaration.
10736 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
10737 * solib-target.c (_initialize_solib_target): Add declaration.
10738 * solib.c (_initialize_solib): Add declaration.
10739 * source-cache.c (_initialize_source_cache): Add declaration.
10740 * source.c (_initialize_source): Add declaration.
10741 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
10742 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
10743 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
10744 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
10745 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
10746 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
10747 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
10748 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
10749 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
10750 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
10751 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
10752 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
10753 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
10754 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
10755 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
10756 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
10757 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
10758 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
10759 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
10760 * stabsread.c (_initialize_stabsread): Add declaration.
10761 * stack.c (_initialize_stack): Add declaration.
10762 * stap-probe.c (_initialize_stap_probe): Add declaration.
10763 * std-regs.c (_initialize_frame_reg): Add declaration.
10764 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
10765 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
10766 * symfile.c (_initialize_symfile): Add declaration.
10767 * symmisc.c (_initialize_symmisc): Add declaration.
10768 * symtab.c (_initialize_symtab): Add declaration.
10769 * target.c (_initialize_target): Add declaration.
10770 * target-connection.c (_initialize_target_connection): Add
10771 declaration.
10772 * target-dcache.c (_initialize_target_dcache): Add declaration.
10773 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
10774 * thread.c (_initialize_thread): Add declaration.
10775 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
10776 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
10777 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
10778 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
10779 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
10780 * tracectf.c (_initialize_ctf): Add declaration.
10781 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
10782 * tracefile.c (_initialize_tracefile): Add declaration.
10783 * tracepoint.c (_initialize_tracepoint): Add declaration.
10784 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
10785 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
10786 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
10787 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
10788 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
10789 * tui/tui-win.c (_initialize_tui_win): Add declaration.
10790 * tui/tui.c (_initialize_tui): Add declaration.
10791 * typeprint.c (_initialize_typeprint): Add declaration.
10792 * ui-style.c (_initialize_ui_style): Add declaration.
10793 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
10794 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
10795 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
10796 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
10797 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
10798 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
10799 * unittests/filtered_iterator-selftests.c
10800 (_initialize_filtered_iterator_selftests): Add declaration.
10801 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
10802 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
10803 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
10804 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
10805 * unittests/main-thread-selftests.c
10806 (_initialize_main_thread_selftests): Add declaration.
10807 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
10808 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
10809 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
10810 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
10811 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
10812 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
10813 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
10814 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
10815 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
10816 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
10817 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
10818 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
10819 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
10820 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
10821 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
10822 declaration.
10823 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
10824 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
10825 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
10826 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
10827 * user-regs.c (_initialize_user_regs): Add declaration.
10828 * utils.c (_initialize_utils): Add declaration.
10829 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
10830 * valops.c (_initialize_valops): Add declaration.
10831 * valprint.c (_initialize_valprint): Add declaration.
10832 * value.c (_initialize_values): Add declaration.
10833 * varobj.c (_initialize_varobj): Add declaration.
10834 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
10835 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
10836 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
10837 * windows-nat.c (_initialize_windows_nat): Add declaration.
10838 (_initialize_check_for_gdb_ini): Add declaration.
10839 (_initialize_loadable): Add declaration.
10840 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
10841 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
10842 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
10843 * xcoffread.c (_initialize_xcoffread): Add declaration.
10844 * xml-support.c (_initialize_xml_support): Add declaration.
10845 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
10846 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
10847 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
10848 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
10849
e2de1eec
SM
108502020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10851
10852 * regformats/regdat.sh: Generate declaration for init function.
10853
e0037b4c
SM
108542020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10855
10856 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
10857 up.
10858 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
10859 close_one_inferior>: New methods.
10860 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
10861 pass down target to find_inferior_pid.
10862 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
10863 Pass down target to find_inferior_ptid.
10864 (gdbsim_target::create_inferior): Pass down target to
10865 add_thread_silent.
10866 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
10867 target down to find_inferior_ptid and switch_to_thread.
10868 (gdbsim_target::close): Update to call close_one_inferior.
10869 (struct resume_data): Remove.
10870 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
10871 directly, rather than through a void pointer.
10872 (gdbsim_target::resume): Update to call resume_one_inferior.
10873
58920b5b
SM
108742020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
10875
10876 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
10877
4ec89149
PA
108782020-01-12 Pedro Alves <palves@redhat.com>
10879
10880 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
10881 directly for the current inferior instead of
10882 discard_all_inferiors.
10883 (discard_all_inferiors): Delete.
10884
7c392d1d
TT
108852020-01-11 Tom Tromey <tom@tromey.com>
10886
10887 * tui/tui-wingeneral.c (box_win): Check cli_styling.
10888 * tui/tui-winsource.c (tui_source_window_base::refill): Use
10889 deprecated_safe_get_selected_frame.
10890
d9ebdab7
TBA
108912020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10892
10893 * inferior.c (print_inferior): Switch inferior before printing it.
10894
f3c469b9
PA
108952020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
10896 Pedro Alves <palves@redhat.com>
10897
10898 * progspace-and-thread.c (switch_to_program_space_and_thread):
10899 Assert there's an inferior for PSPACE. Use
10900 switch_to_inferior_no_thread to switch the inferior too.
10901 * progspace.c (program_space::~program_space): Call
10902 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
10903 (program_space::free_all_objfiles): Don't call clear_symtab_users
10904 here.
10905 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
10906
65c574f6
PA
109072020-01-10 Pedro Alves <palves@redhat.com>
10908
10909 * NEWS: Mention multi-target debugging, "info connections", and
10910 "add-inferior -no-connection".
10911
2f4fcf00
PA
109122020-01-10 Pedro Alves <palves@redhat.com>
10913
10914 * infrun.c: Include "target-connection.h".
10915 (check_multi_target_resumption): New.
10916 (proceed): Call it.
10917 * target-connection.c (make_target_connection_string): Make
10918 extern.
10919 * target-connection.h (make_target_connection_string): Declare.
10920
121b3efd
PA
109212020-01-10 Pedro Alves <palves@redhat.com>
10922
10923 * Makefile.in (COMMON_SFILES): Add target-connection.c.
10924 * inferior.c (uiout_field_connection): New function.
10925 (print_inferior): Add new "connection-id" column.
10926 (add_inferior_command): Show connection number/string of added
10927 inferior.
10928 * process-stratum-target.h
10929 (process_stratum_target::connection_string): New virtual method.
10930 (process_stratum_target::connection_number): New field.
10931 * remote.c (remote_target::connection_string): New override.
10932 * target-connection.c: New file.
10933 * target-connection.h: New file.
10934 * target.c (decref_target): Remove process_stratum targets from
10935 the connection list.
10936 (target_stack::push): Add process_stratum targets to the
10937 connection list.
10938
4f837581
PA
109392020-01-10 Pedro Alves <palves@redhat.com>
10940
10941 Revert:
10942 2016-04-12 Pedro Alves <palves@redhat.com>
10943 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
10944 Remove references to name.
10945 * serial.h (struct serial) <name>: Delete.
10946
f4ec508e
PA
109472020-01-10 Pedro Alves <palves@redhat.com>
10948
10949 * gdbarch-selftests.c (register_to_value_test): Remove "target
10950 already pushed" check.
10951
5b6d1e4f
PA
109522020-01-10 Pedro Alves <palves@redhat.com>
10953 John Baldwin <jhb@FreeBSD.org>
10954
10955 * aarch64-linux-nat.c
10956 (aarch64_linux_nat_target::thread_architecture): Adjust.
10957 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
10958 (task_command_1): Likewise.
10959 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
10960 (aix_thread_target::wait, aix_thread_target::fetch_registers)
10961 (aix_thread_target::store_registers)
10962 (aix_thread_target::thread_alive): Adjust.
10963 * amd64-fbsd-tdep.c: Include "inferior.h".
10964 (amd64fbsd_get_thread_local_address): Pass down target.
10965 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
10966 thread's gdbarch instead of target_gdbarch.
10967 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
10968 get_last_target_status.
10969 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
10970 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
10971 inferiors.
10972 (update_inserted_breakpoint_locations): Skip if inferiors with no
10973 execution.
10974 (update_global_location_list): When handling moribund locations,
10975 find representative inferior for location's pspace, and use thread
10976 count of its process_stratum target.
10977 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
10978 * bsd-uthread.c (bsd_uthread_target::wait): Use
10979 as_process_stratum_target and adjust thread_change_ptid and
10980 add_thread calls.
10981 (bsd_uthread_target::update_thread_list): Use
10982 as_process_stratum_target and adjust find_thread_ptid,
10983 thread_change_ptid and add_thread calls.
10984 * btrace.c (maint_btrace_packet_history_cmd): Adjust
10985 find_thread_ptid call.
10986 * corelow.c (add_to_thread_list): Adjust add_thread call.
10987 (core_target_open): Adjust add_thread_silent and thread_count
10988 calls.
10989 (core_target::pid_to_str): Adjust find_inferior_ptid call.
10990 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
10991 * event-top.c (async_disconnect): Pop targets from all inferiors.
10992 * exec.c (add_target_sections): Push exec target on all inferiors
10993 sharing the program space.
10994 (remove_target_sections): Remove the exec target from all
10995 inferiors sharing the program space.
10996 (exec_on_vfork): New.
10997 * exec.h (exec_on_vfork): Declare.
10998 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
10999 Pass it down.
11000 (fbsd_nat_target::update_thread_list): Adjust.
11001 (fbsd_nat_target::resume): Adjust.
11002 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
11003 down.
11004 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
11005 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
11006 get_thread_arch_regcache call.
11007 * fork-child.c (gdb_startup_inferior): Pass target down to
11008 startup_inferior and set_executing.
11009 * gdbthread.h (struct process_stratum_target): Forward declare.
11010 (add_thread, add_thread_silent, add_thread_with_info)
11011 (in_thread_list): Add process_stratum_target parameter.
11012 (find_thread_ptid(inferior*, ptid_t)): New overload.
11013 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
11014 parameter.
11015 (all_threads()): Delete overload.
11016 (all_threads, all_non_exited_threads): Add process_stratum_target
11017 parameter.
11018 (all_threads_safe): Use brace initialization.
11019 (thread_count): Add process_stratum_target parameter.
11020 (set_resumed, set_running, set_stop_requested, set_executing)
11021 (threads_are_executing, finish_thread_state): Add
11022 process_stratum_target parameter.
11023 (switch_to_thread): Use is_current_thread.
11024 * i386-fbsd-tdep.c: Include "inferior.h".
11025 (i386fbsd_get_thread_local_address): Pass down target.
11026 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
11027 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
11028 have_inferiors check.
11029 * inf-ptrace.c (inf_ptrace_target::create_inferior)
11030 (inf_ptrace_target::attach): Adjust.
11031 * infcall.c (run_inferior_call): Adjust.
11032 * infcmd.c (run_command_1): Pass target to
11033 scoped_finish_thread_state.
11034 (proceed_thread_callback): Skip inferiors with no execution.
11035 (continue_command): Rename 'all_threads' local to avoid hiding
11036 'all_threads' function. Adjust get_last_target_status call.
11037 (prepare_one_step): Adjust set_running call.
11038 (signal_command): Use user_visible_resume_target. Compare thread
11039 pointers instead of inferior_ptid.
11040 (info_program_command): Adjust to pass down target.
11041 (attach_command): Mark target's 'thread_executing' flag.
11042 (stop_current_target_threads_ns): New, factored out from ...
11043 (interrupt_target_1): ... this. Switch inferior before making
11044 target calls.
11045 * inferior-iter.h
11046 (struct all_inferiors_iterator, struct all_inferiors_range)
11047 (struct all_inferiors_safe_range)
11048 (struct all_non_exited_inferiors_range): Filter on
11049 process_stratum_target too. Remove explicit.
11050 * inferior.c (inferior::inferior): Push dummy target on target
11051 stack.
11052 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
11053 Add process_stratum_target parameter, and pass it down.
11054 (have_live_inferiors): Adjust.
11055 (switch_to_inferior_and_push_target): New.
11056 (add_inferior_command, clone_inferior_command): Handle
11057 "-no-connection" parameter. Use
11058 switch_to_inferior_and_push_target.
11059 (_initialize_inferior): Mention "-no-connection" option in
11060 the help of "add-inferior" and "clone-inferior" commands.
11061 * inferior.h: Include "process-stratum-target.h".
11062 (interrupt_target_1): Use bool.
11063 (struct inferior) <push_target, unpush_target, target_is_pushed,
11064 find_target_beneath, top_target, process_target, target_at,
11065 m_stack>: New.
11066 (discard_all_inferiors): Delete.
11067 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
11068 (all_inferiors, all_non_exited_inferiors): Add
11069 process_stratum_target parameter.
11070 * infrun.c: Include "gdb_select.h" and <unordered_map>.
11071 (target_last_proc_target): New global.
11072 (follow_fork_inferior): Push target on new inferior. Pass target
11073 to add_thread_silent. Call exec_on_vfork. Handle target's
11074 reference count.
11075 (follow_fork): Adjust get_last_target_status call. Also consider
11076 target.
11077 (follow_exec): Push target on new inferior.
11078 (struct execution_control_state) <target>: New field.
11079 (user_visible_resume_target): New.
11080 (do_target_resume): Call target_async.
11081 (resume_1): Set target's threads_executing flag. Consider resume
11082 target.
11083 (commit_resume_all_targets): New.
11084 (proceed): Also consider resume target. Skip threads of inferiors
11085 with no execution. Commit resumtion in all targets.
11086 (start_remote): Pass current inferior to wait_for_inferior.
11087 (infrun_thread_stop_requested): Consider target as well. Pass
11088 thread_info pointer to clear_inline_frame_state instead of ptid.
11089 (infrun_thread_thread_exit): Consider target as well.
11090 (random_pending_event_thread): New inferior parameter. Use it.
11091 (do_target_wait): Rename to ...
11092 (do_target_wait_1): ... this. Add inferior parameter, and pass it
11093 down.
11094 (threads_are_resumed_pending_p, do_target_wait): New.
11095 (prepare_for_detach): Adjust calls.
11096 (wait_for_inferior): New inferior parameter. Handle it. Use
11097 do_target_wait_1 instead of do_target_wait.
11098 (fetch_inferior_event): Adjust. Switch to representative
11099 inferior. Pass target down.
11100 (set_last_target_status): Add process_stratum_target parameter.
11101 Save target in global.
11102 (get_last_target_status): Add process_stratum_target parameter and
11103 handle it.
11104 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
11105 (context_switch): Check inferior_ptid == null_ptid before calling
11106 inferior_thread().
11107 (get_inferior_stop_soon): Pass down target.
11108 (wait_one): Rename to ...
11109 (poll_one_curr_target): ... this.
11110 (struct wait_one_event): New.
11111 (wait_one): New.
11112 (stop_all_threads): Adjust.
11113 (handle_no_resumed, handle_inferior_event): Adjust to consider the
11114 event's target.
11115 (switch_back_to_stepped_thread): Also consider target.
11116 (print_stop_event): Update.
11117 (normal_stop): Update. Also consider the resume target.
11118 * infrun.h (wait_for_inferior): Remove declaration.
11119 (user_visible_resume_target): New declaration.
11120 (get_last_target_status, set_last_target_status): New
11121 process_stratum_target parameter.
11122 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11123 process_stratum_target parameter, and use it.
11124 (clear_inline_frame_state (thread_info*)): New.
11125 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11126 process_stratum_target parameter.
11127 (clear_inline_frame_state (thread_info*)): Declare.
11128 * linux-fork.c (delete_checkpoint_command): Pass target down to
11129 find_thread_ptid.
11130 (checkpoint_command): Adjust.
11131 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
11132 instead of just tweaking inferior_ptid.
11133 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
11134 (exit_lwp): Pass target down to find_thread_ptid.
11135 (attach_proc_task_lwp_callback): Pass target down to
11136 add_thread/set_running/set_executing.
11137 (linux_nat_target::attach): Pass target down to
11138 thread_change_ptid.
11139 (get_detach_signal): Pass target down to find_thread_ptid.
11140 Consider last target status's target.
11141 (linux_resume_one_lwp_throw, resume_lwp)
11142 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
11143 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
11144 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
11145 (linux_nat_target::async_wait_fd): New.
11146 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
11147 target down.
11148 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
11149 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
11150 * linux-thread-db.c (struct thread_db_info::process_target): New
11151 field.
11152 (add_thread_db_info): Save target.
11153 (get_thread_db_info): New process_stratum_target parameter. Also
11154 match target.
11155 (delete_thread_db_info): New process_stratum_target parameter.
11156 Also match target.
11157 (thread_from_lwp): Adjust to pass down target.
11158 (thread_db_notice_clone): Pass down target.
11159 (check_thread_db_callback): Pass down target.
11160 (try_thread_db_load_1): Always push the thread_db target.
11161 (try_thread_db_load, record_thread): Pass target down.
11162 (thread_db_target::detach): Pass target down. Always unpush the
11163 thread_db target.
11164 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
11165 target down. Always unpush the thread_db target.
11166 (find_new_threads_callback, thread_db_find_new_threads_2)
11167 (thread_db_target::update_thread_list): Pass target down.
11168 (thread_db_target::pid_to_str): Pass current inferior down.
11169 (thread_db_target::get_thread_local_address): Pass target down.
11170 (thread_db_target::resume, maintenance_check_libthread_db): Pass
11171 target down.
11172 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
11173 * procfs.c (procfs_target::procfs_init_inferior): Declare.
11174 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
11175 (procfs_init_inferior): Rename to ...
11176 (procfs_target::procfs_init_inferior): ... this and adjust.
11177 (procfs_target::create_inferior, procfs_notice_thread)
11178 (procfs_do_thread_registers): Adjust.
11179 * ppc-fbsd-tdep.c: Include "inferior.h".
11180 (ppcfbsd_get_thread_local_address): Pass down target.
11181 * proc-service.c (ps_xfer_memory): Switch current inferior and
11182 program space as well.
11183 (get_ps_regcache): Pass target down.
11184 * process-stratum-target.c
11185 (process_stratum_target::thread_address_space)
11186 (process_stratum_target::thread_architecture): Pass target down.
11187 * process-stratum-target.h
11188 (process_stratum_target::threads_executing): New field.
11189 (as_process_stratum_target): New.
11190 * ravenscar-thread.c
11191 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
11192 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
11193 down.
11194 * record-btrace.c (record_btrace_target::info_record): Adjust.
11195 (record_btrace_target::record_method)
11196 (record_btrace_target::record_is_replaying)
11197 (record_btrace_target::fetch_registers)
11198 (get_thread_current_frame_id, record_btrace_target::resume)
11199 (record_btrace_target::wait, record_btrace_target::stop): Pass
11200 target down.
11201 * record-full.c (record_full_wait_1): Switch to event thread.
11202 Pass target down.
11203 * regcache.c (regcache::regcache)
11204 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
11205 process_stratum_target parameter and handle it.
11206 (current_thread_target): New global.
11207 (get_thread_regcache): Add process_stratum_target parameter and
11208 handle it. Switch inferior before calling target method.
11209 (get_thread_regcache): Pass target down.
11210 (get_thread_regcache_for_ptid): Pass target down.
11211 (registers_changed_ptid): Add process_stratum_target parameter and
11212 handle it.
11213 (registers_changed_thread, registers_changed): Pass target down.
11214 (test_get_thread_arch_aspace_regcache): New.
11215 (current_regcache_test): Define a couple local test_target_ops
11216 instances and use them for testing.
11217 (readwrite_regcache): Pass process_stratum_target parameter.
11218 (cooked_read_test, cooked_write_test): Pass mock_target down.
11219 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
11220 (get_thread_arch_aspace_regcache): Add process_stratum_target
11221 parameter.
11222 (regcache::target): New method.
11223 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
11224 (regcache::registers_changed_ptid): Add process_stratum_target
11225 parameter.
11226 (regcache::m_target): New field.
11227 (registers_changed_ptid): Add process_stratum_target parameter.
11228 * remote.c (remote_state::supports_vCont_probed): New field.
11229 (remote_target::async_wait_fd): New method.
11230 (remote_unpush_and_throw): Add remote_target parameter.
11231 (get_current_remote_target): Adjust.
11232 (remote_target::remote_add_inferior): Push target.
11233 (remote_target::remote_add_thread)
11234 (remote_target::remote_notice_new_inferior)
11235 (get_remote_thread_info): Pass target down.
11236 (remote_target::update_thread_list): Skip threads of inferiors
11237 bound to other targets. (remote_target::close): Don't discard
11238 inferiors. (remote_target::add_current_inferior_and_thread)
11239 (remote_target::process_initial_stop_replies)
11240 (remote_target::start_remote)
11241 (remote_target::remote_serial_quit_handler): Pass down target.
11242 (remote_target::remote_unpush_target): New remote_target
11243 parameter. Unpush the target from all inferiors.
11244 (remote_target::remote_unpush_and_throw): New remote_target
11245 parameter. Pass it down.
11246 (remote_target::open_1): Check whether the current inferior has
11247 execution instead of checking whether any inferior is live. Pass
11248 target down.
11249 (remote_target::remote_detach_1): Pass down target. Use
11250 remote_unpush_target.
11251 (extended_remote_target::attach): Pass down target.
11252 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
11253 (remote_target::append_resumption): Pass down target.
11254 (remote_target::append_pending_thread_resumptions)
11255 (remote_target::remote_resume_with_hc, remote_target::resume)
11256 (remote_target::commit_resume): Pass down target.
11257 (remote_target::remote_stop_ns): Check supports_vCont_probed.
11258 (remote_target::interrupt_query)
11259 (remote_target::remove_new_fork_children)
11260 (remote_target::check_pending_events_prevent_wildcard_vcont)
11261 (remote_target::remote_parse_stop_reply)
11262 (remote_target::process_stop_reply): Pass down target.
11263 (first_remote_resumed_thread): New remote_target parameter. Pass
11264 it down.
11265 (remote_target::wait_as): Pass down target.
11266 (unpush_and_perror): New remote_target parameter. Pass it down.
11267 (remote_target::readchar, remote_target::remote_serial_write)
11268 (remote_target::getpkt_or_notif_sane_1)
11269 (remote_target::kill_new_fork_children, remote_target::kill): Pass
11270 down target.
11271 (remote_target::mourn_inferior): Pass down target. Use
11272 remote_unpush_target.
11273 (remote_target::core_of_thread)
11274 (remote_target::remote_btrace_maybe_reopen): Pass down target.
11275 (remote_target::pid_to_exec_file)
11276 (remote_target::thread_handle_to_thread_info): Pass down target.
11277 (remote_target::async_wait_fd): New.
11278 * riscv-fbsd-tdep.c: Include "inferior.h".
11279 (riscv_fbsd_get_thread_local_address): Pass down target.
11280 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
11281 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
11282 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
11283 Adjust.
11284 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
11285 * solib-svr4.c (enable_break): Pass down target.
11286 * spu-multiarch.c (parse_spufs_run): Pass down target.
11287 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
11288 * target-delegates.c: Regenerate.
11289 * target.c (g_target_stack): Delete.
11290 (current_top_target): Return the current inferior's top target.
11291 (target_has_execution_1): Refer to the passed-in inferior's top
11292 target.
11293 (target_supports_terminal_ours): Check whether the initial
11294 inferior was already created.
11295 (decref_target): New.
11296 (target_stack::push): Incref/decref the target.
11297 (push_target, push_target, unpush_target): Adjust.
11298 (target_stack::unpush): Defref target.
11299 (target_is_pushed): Return bool. Adjust to refer to the current
11300 inferior's target stack.
11301 (dispose_inferior): Delete, and inline parts ...
11302 (target_preopen): ... here. Only dispose of the current inferior.
11303 (target_detach): Hold strong target reference while detaching.
11304 Pass target down.
11305 (target_thread_name): Add assertion.
11306 (target_resume): Pass down target.
11307 (target_ops::beneath, find_target_at): Adjust to refer to the
11308 current inferior's target stack.
11309 (get_dummy_target): New.
11310 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
11311 has a thread running.
11312 (initialize_targets): Rename to ...
11313 (_initialize_target): ... this.
11314 * target.h: Include "gdbsupport/refcounted-object.h".
11315 (struct target_ops): Inherit refcounted_object.
11316 (target_ops::shortname, target_ops::longname): Make const.
11317 (target_ops::async_wait_fd): New method.
11318 (decref_target): Declare.
11319 (struct target_ops_ref_policy): New.
11320 (target_ops_ref): New typedef.
11321 (get_dummy_target): Declare function.
11322 (target_is_pushed): Return bool.
11323 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
11324 (all_matching_threads_iterator::all_matching_threads_iterator):
11325 Handle filter target.
11326 * thread-iter.h (struct all_matching_threads_iterator, struct
11327 all_matching_threads_range, class all_non_exited_threads_range):
11328 Filter by target too. Remove explicit.
11329 * thread.c (threads_executing): Delete.
11330 (inferior_thread): Pass down current inferior.
11331 (clear_thread_inferior_resources): Pass down thread pointer
11332 instead of ptid_t.
11333 (add_thread_silent, add_thread_with_info, add_thread): Add
11334 process_stratum_target parameter. Use it for thread and inferior
11335 searches.
11336 (is_current_thread): New.
11337 (thread_info::deletable): Use it.
11338 (find_thread_ptid, thread_count, in_thread_list)
11339 (thread_change_ptid, set_resumed, set_running): New
11340 process_stratum_target parameter. Pass it down.
11341 (set_executing): New process_stratum_target parameter. Pass it
11342 down. Adjust reference to 'threads_executing'.
11343 (threads_are_executing): New process_stratum_target parameter.
11344 Adjust reference to 'threads_executing'.
11345 (set_stop_requested, finish_thread_state): New
11346 process_stratum_target parameter. Pass it down.
11347 (switch_to_thread): Also match inferior.
11348 (switch_to_thread): New process_stratum_target parameter. Pass it
11349 down.
11350 (update_threads_executing): Reimplement.
11351 * top.c (quit_force): Pop targets from all inferior.
11352 (gdb_init): Don't call initialize_targets.
11353 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
11354 Declare.
11355 (windows_add_thread, windows_delete_thread): Adjust.
11356 (get_windows_debug_event): Rename to ...
11357 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
11358 * tracefile-tfile.c (tfile_target_open): Pass down target.
11359 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
11360 Forward declare.
11361 (switch_to_thread): Add process_stratum_target parameter.
11362 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
11363 parameter. Use it.
11364 (mi_on_resume): Pass target down.
11365 * nat/fork-inferior.c (startup_inferior): Add
11366 process_stratum_target parameter. Pass it down.
11367 * nat/fork-inferior.h (startup_inferior): Add
11368 process_stratum_target parameter.
11369 * python/py-threadevent.c (py_get_event_thread): Pass target down.
11370
75c6c844
PA
113712020-01-10 Pedro Alves <palves@redhat.com>
11372
11373 * remote.c (remote_target::start_remote): Don't set inferior_ptid
11374 directly. Instead find the first thread in the thread list and
11375 use switch_to_thread.
11376
78f2c40a
PA
113772020-01-10 Pedro Alves <palves@redhat.com>
11378
11379 * remote.c (remote_target::remote_add_inferior): Don't bind a
11380 process to the current inferior if the current inferior is already
11381 bound to a process.
11382
e7af6c70
TBA
113832020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11384 Pedro Alves <palves@redhat.com>
11385
11386 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
11387 If no process is specified, return null_ptid instead of
11388 inferior_ptid.
11389 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
11390 TARGET_WAITKIND_SIGNALLED with no pid.
11391
31ba933e
PA
113922020-01-10 Pedro Alves <palves@redhat.com>
11393
11394 * remote.c (first_remote_resumed_thread): New.
11395 (remote_target::wait_as): Use it as default event_ptid instead of
11396 inferior_ptid.
11397
735fc2ca
PA
113982020-01-10 Pedro Alves <palves@redhat.com>
11399
11400 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
11401
c17e02e1
PA
114022020-01-10 Pedro Alves <palves@redhat.com>
11403
11404 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
11405 not -1.
11406
ab1ddbcf
PA
114072020-01-10 Pedro Alves <palves@redhat.com>
11408
11409 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
11410 ptid to get_last_target_status.
11411 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
11412 ptid to get_last_target_status.
11413 * infcmd.c (continue_command): Don't pass a target_waitstatus to
11414 get_last_target_status.
11415 (info_program_command): Don't pass a target_waitstatus to
11416 get_last_target_status.
11417 * infrun.c (init_wait_for_inferior): Use
11418 nullify_last_target_wait_ptid.
11419 (get_last_target_status): Handle nullptr arguments.
11420 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
11421 (print_stop_event): Don't pass a ptid to get_last_target_status.
11422 (normal_stop): Don't pass a ptid to get_last_target_status.
11423 * infrun.h (get_last_target_status, set_last_target_status): Move
11424 comments here and update.
11425 (nullify_last_target_wait_ptid): Declare.
11426 * linux-fork.c (fork_load_infrun_state): Remove local extern
11427 declaration of nullify_last_target_wait_ptid.
11428 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
11429 to get_last_target_status.
11430
f3f8ece4
PA
114312020-01-10 Pedro Alves <palves@redhat.com>
11432
11433 * gdbthread.h (scoped_restore_current_thread)
11434 <dont_restore, restore, m_dont_restore>: Declare.
11435 * thread.c (thread_alive): Add assertion. Return bool.
11436 (switch_to_thread_if_alive): New.
11437 (prune_threads): Switch inferior/thread.
11438 (print_thread_info_1): Switch thread before calling target methods.
11439 (scoped_restore_current_thread::restore): New, factored out from
11440 ...
11441 (scoped_restore_current_thread::~scoped_restore_current_thread):
11442 ... this.
11443 (scoped_restore_current_thread::scoped_restore_current_thread):
11444 Add assertion.
11445 (thread_apply_all_command, thread_select): Use
11446 switch_to_thread_if_alive.
11447 * infrun.c (proceed, restart_threads, handle_signal_stop)
11448 (switch_back_to_stepped_thread): Switch current thread before
11449 calling target methods.
11450
db2d40f7
PA
114512020-01-10 Pedro Alves <palves@redhat.com>
11452
11453 * inferior.c (switch_to_inferior_no_thread): New function,
11454 factored out from ...
11455 (inferior_command): ... here.
11456 * inferior.h (switch_to_inferior_no_thread): Declare.
11457 * mi/mi-main.c (run_one_inferior): Use
11458 switch_to_inferior_no_thread.
11459
bd420a2d
PA
114602020-01-10 Pedro Alves <palves@redhat.com>
11461
11462 * infcmd.c (kill_command): Remove dead code.
11463
ddf5db90
PA
114642020-01-10 Pedro Alves <palves@redhat.com>
11465
11466 * remote.c (remote_target::mourn_inferior): No longer check
11467 whether the target is running.
11468
5018ce90
PA
114692020-01-10 Pedro Alves <palves@redhat.com>
11470
11471 * corelow.c (core_target::has_execution): Change parameter type to
11472 inferior pointer.
11473 * inferior.c (number_of_live_inferiors): Use
11474 inferior::has_execution instead of target_has_execution_1.
11475 * inferior.h (inferior::has_execution): New.
11476 * linux-thread-db.c (thread_db_target::update_thread_list): Use
11477 inferior::has_execution instead of target_has_execution_1.
11478 * process-stratum-target.c
11479 (process_stratum_target::has_execution): Change parameter type to
11480 inferior pointer. Check the inferior's PID instead of
11481 inferior_ptid.
11482 * process-stratum-target.h
11483 (process_stratum_target::has_execution): Change parameter type to
11484 inferior pointer.
11485 * record-full.c (record_full_core_target::has_execution): Change
11486 parameter type to inferior pointer.
11487 * target.c (target_has_execution_1): Change parameter type to
11488 inferior pointer.
11489 (target_has_execution_current): Adjust.
11490 * target.h (target_ops::has_execution): Change parameter type to
11491 inferior pointer.
11492 (target_has_execution_1): Change parameter type to inferior
11493 pointer. Change return type to bool.
11494 * tracefile.h (tracefile_target::has_execution): Change parameter
11495 type to inferior pointer.
11496
74375d18
PA
114972020-01-10 Pedro Alves <palves@redhat.com>
11498
11499 * exceptions.c (print_flush): Remove current_top_target() check.
11500
acdf84a6
PA
115012020-01-10 Pedro Alves <palves@redhat.com>
11502
11503 * remote.c (show_remote_exec_file): Show the current inferior's
11504 exec-file instead of the command variable's value.
11505
ec506636
PA
115062020-01-10 Pedro Alves <palves@redhat.com>
11507
11508 * record-full.c (record_full_resume_ptid): New global.
11509 (record_full_target::resume): Set it.
11510 (record_full_wait_1): Use record_full_resume_ptid instead of
11511 inferior_ptid.
11512
873657b9
PA
115132020-01-10 Pedro Alves <palves@redhat.com>
11514
11515 * gdbthread.h (scoped_restore_current_thread)
11516 <dont_restore, restore, m_dont_restore>: Declare.
11517 * thread.c (thread_alive): Add assertion. Return bool.
11518 (switch_to_thread_if_alive): New.
11519 (prune_threads): Switch inferior/thread.
11520 (print_thread_info_1): Switch thread before calling target methods.
11521 (scoped_restore_current_thread::restore): New, factored out from
11522 ...
11523 (scoped_restore_current_thread::~scoped_restore_current_thread):
11524 ... this.
11525 (scoped_restore_current_thread::scoped_restore_current_thread):
11526 Add assertion.
11527 (thread_apply_all_command, thread_select): Use
11528 switch_to_thread_if_alive.
11529
7f0ae84c
GB
115302020-01-10 George Barrett <bob@bob131.so>
11531
11532 * stap-probe.c (stap_modify_semaphore): Don't check for null
11533 semaphores.
11534 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
11535 for null semaphores.
11536
f5a7c406
AB
115372020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11538
11539 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
11540 all source windows, and maintain horizontal scroll status while
11541 doing so.
11542
9ae6bf64
TT
115432020-01-09 Tom Tromey <tom@tromey.com>
11544
11545 PR tui/18932:
11546 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
11547 update_source_window, not print_source_lines.
11548
b2efe70c
AB
115492020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11550
11551 * tui/tui.c (tui_enable): Register tui hooks after calling
11552 tui_display_main.
11553
5f23a082
CB
115542020-01-09 Christian Biesinger <cbiesinger@google.com>
11555
11556 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
11557
3061113b
SM
115582020-01-08 Simon Marchi <simon.marchi@efficios.com>
11559
11560 * thread.c (print_thread_info_1): Fix indentation.
11561
57d75002
CB
115622020-01-09 Christian Biesinger <cbiesinger@google.com>
11563
11564 * symtab.c (general_symbol_info::compute_and_set_names): Move the
11565 unique_xmalloc_ptr outside the if to always free the demangled name.
11566
6a053cb1
TT
115672020-01-08 Tom Tromey <tromey@adacore.com>
11568
11569 * xcoffread.c (enter_line_range, read_xcoff_symtab)
11570 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
11571 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
11572 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
11573 Remove.
11574 (section_offsets): New typedef.
11575 * symtab.c (fixup_section, get_msymbol_address): Update.
11576 * symmisc.c (dump_msymbols): Update.
11577 * symfile.h (relative_addr_info_to_section_offsets)
11578 (symfile_map_offsets_to_segments): Update.
11579 * symfile.c (build_section_addr_info_from_objfile)
11580 (init_objfile_sect_indices): Update.
11581 (struct place_section_arg): Change type of "offsets".
11582 (place_section): Update.
11583 (relative_addr_info_to_section_offsets): Change type of
11584 "section_offsets". Remove "num_sections" parameter.
11585 (default_symfile_offsets, syms_from_objfile_1)
11586 (set_objfile_default_section_offset): Update.
11587 (reread_symbols): No need to preserve section offsets by hand.
11588 (symfile_map_offsets_to_segments): Change type of "offsets".
11589 * stap-probe.c (relocate_address): Update.
11590 * stabsread.h (process_one_symbol): Update.
11591 * solib-target.c (struct lm_info_target) <offsets>: Change type.
11592 (solib_target_relocate_section_addresses): Update.
11593 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
11594 Update.
11595 * solib-frv.c (frv_relocate_main_executable): Update.
11596 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
11597 * solib-aix.c (solib_aix_get_section_offsets): Change return
11598 type.
11599 (solib_aix_solib_create_inferior_hook): Update.
11600 * remote.c (remote_target::get_offsets): Update.
11601 * psymtab.c (find_pc_sect_psymtab): Update.
11602 * psympriv.h (struct partial_symbol) <address, text_low,
11603 text_high>: Update.
11604 * objfiles.h (obj_section_offset): Update.
11605 (struct objfile) <section_offsets>: Change type.
11606 <num_sections>: Remove.
11607 (objfile_relocate): Update.
11608 * objfiles.c (entry_point_address_query): Update
11609 (relocate_one_symbol): Change type of "section_offsets".
11610 (objfile_relocate1, objfile_relocate1): Change type of
11611 "new_offsets".
11612 (objfile_rebase1): Update.
11613 * mipsread.c (mipscoff_symfile_read): Update.
11614 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
11615 parameter.
11616 * mdebugread.c (parse_symbol): Change type of "section_offsets".
11617 (parse_external, psymtab_to_symtab_1): Update.
11618 * machoread.c (macho_symfile_offsets): Update.
11619 * ia64-tdep.c (ia64_find_unwind_table): Update.
11620 * hppa-tdep.c (read_unwind_info): Update.
11621 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
11622 * dwarf2read.c (create_addrmap_from_index)
11623 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11624 (process_psymtab_comp_unit_reader, add_partial_symbol)
11625 (add_partial_subprogram, process_full_comp_unit)
11626 (read_file_scope, read_func_scope, read_lexical_block_scope)
11627 (read_call_site_scope, dwarf2_rnglists_process)
11628 (dwarf2_ranges_process, dwarf2_ranges_read)
11629 (dwarf_decode_lines_1, var_decode_location, new_symbol)
11630 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
11631 Update.
11632 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
11633 Update.
11634 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
11635 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
11636 (process_one_symbol): Change type of "section_offsets".
11637 * ctfread.c (get_objfile_text_range): Update.
11638 * coffread.c (coff_symtab_read, enter_linenos)
11639 (process_coff_symbol): Update.
11640 * coff-pe-read.c (add_pe_forwarded_sym): Update.
11641 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
11642
456e800a
TT
116432020-01-08 Tom Tromey <tromey@adacore.com>
11644
11645 * dwarf2read.c (parse_macro_definition): Use std::string.
11646 (parse_macro_definition): Likewise.
11647
6dfa2fc2
TT
116482020-01-08 Tom Tromey <tromey@adacore.com>
11649
11650 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
11651 (ATTR_ALLOC_CHUNK): Remove.
11652
421d1616
TT
116532020-01-08 Tom Tromey <tromey@adacore.com>
11654
11655 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
11656
43816ebc
TT
116572020-01-08 Tom Tromey <tromey@adacore.com>
11658
11659 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
11660 (dwarf2_compute_name, open_dwo_file): Likewise.
11661 (process_enumeration_scope): Use std::vector.
11662 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
11663 (partial_die_info::fixup, dwarf2_start_subfile)
11664 (guess_full_die_structure_name, dwarf2_name): Likewise.
11665 (determine_prefix): Update.
11666 (guess_full_die_structure_name): Make return type const.
11667 (partial_die_full_name): Return unique_xmalloc_ptr.
11668 (DW_FIELD_ALLOC_CHUNK): Remove.
11669
4212d509
TT
116702020-01-07 Tom Tromey <tromey@adacore.com>
11671
11672 PR build/24937:
11673 * stap-probe.c (class stap_static_probe_ops): Add constructor.
11674
06a6207a
JT
116752020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
11676
11677 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
11678
153d79c4
AB
116792020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
11680
11681 * stack.c (print_frame_info): Move disassemble_next_line code
11682 inside source_print block.
11683
66182876
EZ
116842020-01-06 Eli Zaretskii <eliz@gnu.org>
11685
11686 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
11687 gdb/signals.h, as we are now using native signal symbols.
11688
cbfa8581
SV
116892020-01-06 Shahab Vahedi <shahab@synopsys.com>
11690
11691 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
11692 overflow by an early check of content vs threshold.
aac66a4c 11693 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
11694 Likewise.
11695
3f602821
EZ
116962020-01-06 Eli Zaretskii <eliz@gnu.org>
11697
11698 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
11699
a08c904d
JT
117002020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
11701
11702 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
11703 export table if no section contains it's RVA.
11704
89a65580
EZ
117052020-01-06 Eli Zaretskii <eliz@gnu.org>
11706
11707 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
11708
8b7fcda2
HD
117092020-01-06 Hannes Domani <ssbssa@yahoo.de>
11710
11711 * source.c (print_source_lines_base): Set last_line_listed.
11712
a61b4f69
SV
117132020-01-06 Shahab Vahedi <shahab@synopsys.com>
11714
11715 * tui/tui-disasm.c: Remove trailing spaces.
11716
559e7e50
EZ
117172020-01-06 Eli Zaretskii <eliz@gnu.org>
11718 Pedro Alves <palves@redhat.com>
11719
11720 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
11721 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
11722 (windows_gdb_signal_to_target): New function, uses the above
11723 enumeration to convert GDB internal signal codes to equivalent
11724 Windows codes.
11725 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
11726 * windows-nat.c: Include "gdb_wait.h".
11727 (get_windows_debug_event): Extract the fatal exception from the
11728 exit status and convert to the equivalent Posix signal number.
11729 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
11730 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
11731 * gdbsupport/gdb_wait.c: New file, implements
11732 windows_status_to_termsig.
11733 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
11734 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
11735
f2302a34
AB
117362020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
11737
11738 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
11739 show_layout.
11740
6a5206eb
LM
117412020-01-05 Luis Machado <luis.machado@linaro.org>
11742
11743 * aarch64-linux-nat.c
11744 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
11745 and bfd_mach_aarch64.
11746
6ec1d75e
PW
117472020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11748
11749 * ui-file.c (stdio_file::can_emit_style_escape)
11750 (tee_file::can_emit_style_escape): Ensure style is used also on
11751 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
11752 to gdb_stdout.
11753 * main.c (set_gdb_data_directory): Use file style to output the
11754 warning that the given pathname is not a directory.
11755 * top.c (show_history_filename, gdb_safe_append_history)
11756 (show_gdb_datadir): Use file style.
11757
44f81a76
HD
117582020-01-03 Hannes Domani <ssbssa@yahoo.de>
11759
11760 * solib-target.c (struct lm_info_target):
11761 Change offsets to be a unique_xmalloc_ptr.
11762 (solib_target_relocate_section_addresses): Update.
11763
25057eb0
HD
117642020-01-03 Hannes Domani <ssbssa@yahoo.de>
11765
11766 * windows-nat.c (windows_clear_solib): Free so_list linked list.
11767
6e2118f5
BE
117682020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
11769
11770 * MAINTAINERS (Write After Approval): Add myself.
11771
8133c7dc
LM
117722020-01-02 Luis Machado <luis.machado@linaro.org>
11773
11774 * proc-service.c (get_ps_regcache): Remove reference to obsolete
11775 Cell BE architecture.
11776 * target.h (struct target_ops) <thread_architecture>: Likewise.
11777
48189bec
HD
117782020-01-01 Hannes Domani <ssbssa@yahoo.de>
11779
11780 * Makefile.in: Use INSTALL_PROGRAM_ENV.
11781
ead1063b
HD
117822020-01-01 Hannes Domani <ssbssa@yahoo.de>
11783
11784 * MAINTAINERS (Write After Approval): Add myself.
11785
e5d78223
JB
117862020-01-01 Joel Brobecker <brobecker@adacore.com>
11787
11788 * gdbarch.sh: Update copyright year range of generated files.
11789
b811d2c2
JB
117902020-01-01 Joel Brobecker <brobecker@adacore.com>
11791
11792 Update copyright year range in all GDB files.
11793
5f4def5c
JB
117942020-01-01 Joel Brobecker <brobecker@adacore.com>
11795
11796 * copyright.py: Convert to Python 3.
11797
51fd4002
JB
117982020-01-01 Joel Brobecker <brobecker@adacore.com>
11799
11800 * copyright.py: Adapt after move of gnulib directory from gdb
11801 directory to toplevel directory.
11802
5fb651f2
JB
118032020-01-01 Joel Brobecker <brobecker@adacore.com>
11804
11805 * copyright.py (main): Exit if run from the wrong directory.
11806
5dd8bf88
JB
118072020-01-01 Joel Brobecker <brobecker@adacore.com>
11808
11809 * top.c (print_gdb_version): Change copyright year to 2020.
11810
9f71dacb 118112020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 11812
9f71dacb 11813 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 11814
9f71dacb 11815For older changes see ChangeLog-2019.
c906108c
SS
11816\f
11817Local Variables:
11818mode: change-log
11819left-margin: 8
11820fill-column: 74
11821version-control: never
57da7796 11822coding: utf-8
c906108c 11823End: