]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Automatic date update in version.in
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
ea946b86
SM
12020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
2
3 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
4 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
5 gdb.dwarf2/dw2-single-line-discriminators.exp,
6 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
7
57d02173
TT
82020-08-05 Tom Tromey <tromey@adacore.com>
9
10 PR rust/26197:
11 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
12 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
13 Fix off-by-one and type size errors in ordinary case.
14
5555c86d
TV
152020-08-05 Tom de Vries <tdevries@suse.de>
16
17 * gdbtypes.c (type_not_allocated, type_not_associated): Use
18 "prop->const_val () == 0" instead of "prop->const_val () != 0".
19
97916bfe
SM
202020-08-04 Simon Marchi <simon.marchi@efficios.com>
21
22 * frame.h (frame_id_p): Return bool.
23 (frame_id_artificial_p): Return bool.
24 (frame_id_eq): Return bool.
25 (has_stack_frames): Return bool.
26 (get_selected_frame): Fix typo in comment.
27 (get_frame_pc_if_available): Return bool.
28 (get_frame_address_in_block_if_available): Return bool.
29 (get_frame_func_if_available): Return bool.
30 (read_frame_register_unsigned): Return bool.
31 (get_frame_register_bytes): Return bool.
32 (safe_frame_unwind_memory): Return bool.
33 (deprecated_frame_register_read): Return bool.
34 (frame_unwinder_is): Return bool.
35 * frame.c (struct frame_info) <prev_arch::p>: Change type to
36 bool.
37 <this_id::p>: Likewise.
38 <prev_p>: Likewise.
39 (frame_stash_add): Return bool.
40 (get_frame_id): Use bool.
41 (frame_id_build_special) Use bool.
42 (frame_id_build_unavailable_stack): Use bool.
43 (frame_id_build): Use bool.
44 (frame_id_p): Return bool, use true/false instead of 1/0.
45 (frame_id_artificial_p): Likewise.
46 (frame_id_eq): Likewise.
47 (frame_id_inner): Likewise.
48 (get_frame_func_if_available): Likewise.
49 (read_frame_register_unsigned): Likewise.
50 (deprecated_frame_register_read): Likewise.
51 (get_frame_register_bytes): Likewise.
52 (has_stack_frames): Likewise.
53 (inside_main_func): Likewise.
54 (inside_entry_func): Likewise.
55 (get_frame_pc_if_available): Likewise.
56 (get_frame_address_in_block_if_available): Likewise.
57 (frame_unwinder_is): Likewise.
58 (safe_frame_unwind_memory): Likewise.
59 (frame_unwind_arch): Likewise.
60
fedfee88
SM
612020-08-04 Simon Marchi <simon.marchi@efficios.com>
62
63 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
64 type to cached_copy_status.
65 (fprintf_frame): Adjust.
66 (get_frame_func_if_available): Adjust.
67 (frame_cleanup_after_sniffer): Adjust.
68
6cfa9b59
MW
692020-08-04 Mark Wielaard <mark@klomp.org>
70
71 * MAINTAINERS (Write After Approval): Update email address.
72
66d6346b
SM
732020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
74
75 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
76 dynamic_prop::const_val.
77
8a6d5e35
SM
782020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
79
80 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
81 dynamic_prop::kind.
82
51d6067d
SM
832020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
84
85 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
86
b26e2ae7
JM
872020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
88
89 * configure.tgt: Set gdb_sim for bpf-*-* targets.
90
39791af2
JM
912020-08-04 Weimin Pan <weimin.pan@oracle.com>
92 Jose E. Marchesi <jose.marchesi@oracle.com>
93
94 * configure.tgt: Add entry for bpf-*-*.
95 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
96 (ALLDEPFILES): Add bpf-tdep.c.
97 * bpf-tdep.c: New file.
98 * MAINTAINERS: Add bpf target and maintainer.
99 * NEWS: Mention the support for the new target.
100
521894aa
TV
1012020-08-04 Tom de Vries <tdevries@suse.de>
102
103 PR symtab/23270
104 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
105 Error.
106
5d6356e9
JB
1072020-08-03 John Baldwin <jhb@FreeBSD.org>
108
109 * syscalls/freebsd.xml: Regenerate.
110
0cf82b81
JB
1112020-08-03 John Baldwin <jhb@FreeBSD.org>
112
113 * syscalls/update-freebsd.sh: Fix usage and year range.
114
8f34b746
TV
1152020-08-03 Tom de Vries <tdevries@suse.de>
116
117 PR symtab/26333
118 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
119 DW_LNE_lo_user/DW_LNE_hi_user range.
120
5e500d33
SM
1212020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
122
123 PR ada/26318
124 * ada-lang.c (ada_modulus): Return 0 if property is not of const
125 kind.
126
78319c15
TBA
1272020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
128
129 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
130
4c55e970
TBA
1312020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
132
133 * breakpoint.c (set_breakpoint_condition): Update the condition
134 expressions after checking that the input condition string parses
135 successfully and does not contain junk at the end.
136
1e620590
TBA
1372020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
138
139 * breakpoint.c (set_breakpoint_condition): Update the
140 condition string after parsing the new condition successfully.
141
c8693053
RO
1422020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
143
144 * proc-api.c (_STRUCTURED_PROC): Don't define.
145 * proc-events.c: Likewise.
146 * proc-flags.c: Likewise.
147 * proc-why.c: Likewise.
148 * procfs.c: Likewise.
149
150 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
151 * configure, config.in: Regenerate.
152
5a99adb8
TV
1532020-07-30 Tom de Vries <tdevries@suse.de>
154
155 PR build/26320
156 * ui-style.h (struct ui_file_style::color): Wrap m_value and
157 m_red/m_green/m_blue in a union.
158
8ba83e91
TV
1592020-07-29 Tom de Vries <tdevries@suse.de>
160
161 PR tdep/26280
162 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
163
f75a0693
AB
1642020-07-28 Tom Tromey <tromey@adacore.com>
165
166 PR symtab/26270:
167 * symtab.h (find_pc_partial_function_sym): Declare.
168 * cli/cli-cmds.c (disassemble_command): Use
169 find_pc_partial_function_sym. Check asm_demangle.
170 * blockframe.c (cache_pc_function_sym): New global.
171 (cache_pc_function_name): Remove.
172 (clear_pc_function_cache): Update.
173 (find_pc_partial_function_sym): New function, from
174 find_pc_partial_function.
175 (find_pc_partial_function): Rewrite using
176 find_pc_partial_function_sym.
177
16f3242c
TT
1782020-07-28 Tom Tromey <tromey@adacore.com>
179
180 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
181 help. Add usage.
182
4888741a
TT
1832020-07-28 Tom Tromey <tromey@adacore.com>
184
185 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
186 <DW_OP_GNU_variable_value>: Cast to address type.
187
4d46f402
KR
1882020-07-28 Kamil Rytarowski <n54@gmx.com>
189
190 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
191 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
192 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
193 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
194 (nbsd_get_siginfo_type): New.
195 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
196 (_initialize_nbsd_tdep): New.
197
d70f978b
L
1982020-07-28 H.J. Lu <hongjiu.lu@intel.com>
199
200 PR binutils/26301
201 * configure: Regenerated.
202
377170fa
L
2032020-07-28 H.J. Lu <hongjiu.lu@intel.com>
204
205 PR binutils/26301
206 * configure: Regenerated.
207
43d5901d
AB
2082020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
209
210 * python/py-frame.c: Remove 'user-regs.h' include.
211 (frapy_read_register): Rewrite to make use of
212 gdbpy_parse_register_id.
213 * python/py-registers.c (gdbpy_parse_register_id): New function,
214 moved here from python/py-unwind.c. Updated the return type, and
215 also accepts register descriptor objects.
216 * python/py-unwind.c: Remove 'user-regs.h' include.
217 (pyuw_parse_register_id): Moved to python/py-registers.c.
218 (unwind_infopy_add_saved_register): Update to use
219 gdbpy_parse_register_id.
220 (pending_framepy_read_register): Likewise.
221 * python/python-internal.h (gdbpy_parse_register_id): Declare.
222
14fa8fb3
AB
2232020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
224
225 * python/py-registers.c: Add 'user-regs.h' include.
226 (register_descriptor_iter_find): New function.
227 (register_descriptor_iterator_object_methods): New static global
228 methods array.
229 (register_descriptor_iterator_object_type): Add pointer to methods
230 array.
231
ddce1758
JB
2322020-07-27 John Baldwin <jhb@FreeBSD.org>
233
234 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
235 for all architectures on FreeBSD 11.3 and later.
236
a4089f52
TT
2372020-07-27 Tom Tromey <tromey@adacore.com>
238
239 * gcore.h (load_corefile): Don't declare.
240
95420d30
TV
2412020-07-27 Tom de Vries <tdevries@suse.de>
242
243 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
244 * config.in: Regenerate.
245 * configure: Regenerate.
246
05a6b8c2
EZ
2472020-07-26 Eli Zaretskii <eliz@gnu.org>
248
249 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
250 ws2tcpip.h. When checking whether socklen_t type is defined, use
251 ws2tcpip.h if it is available and sys/socket.h isn't.
252 * configure: Regenerate.
253 * config.in: Regenerate.
254
e79eb02f
AB
2552020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
256
257 PR fortran/23051
258 PR fortran/26139
259 * valops.c (value_ind): Pass address to
260 readjust_indirect_value_type.
261 * value.c (readjust_indirect_value_type): Make parameter
262 non-const, and add extra address parameter. Resolve original type
263 before using it.
264 * value.h (readjust_indirect_value_type): Update function
265 signature and comment.
266
876518dd
TV
2672020-07-25 Tom de Vries <tdevries@suse.de>
268
269 PR symtab/26243
270 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
271 entries.
272
f6720b1c
AM
2732020-07-24 Aaron Merey <amerey@redhat.com>
274
275 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
276 * configure: Rebuild.
277
513487e1
KB
2782020-07-23 Kevin Buettner <kevinb@redhat.com>
279
280 PR corefiles/26294
281 * corelow.c (_initialize_corelow): Add period to help text
282 for "maintenance print core-file-backed-mappings".
283
e7bc9db8
PA
2842020-07-23 Pedro Alves <pedro@palves.net>
285
286 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
287 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
288 meanwhile.
289 * frame.c (frame_cache_generation, get_frame_cache_generation):
290 New.
291 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
292 (get_prev_frame_if_no_cycle): On exception, don't touch
293 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
294 * frame.h (get_frame_cache_generation): Declare.
295
90fcc466
TV
2962020-07-23 Tom de Vries <tdevries@suse.de>
297
298 PR tui/26282
299 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
300 New default constructor.
301
78344df7
AB
3022020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
303
304 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
305 exclude non-statement entries.
306
b089853a
KB
3072020-07-22 Kevin Buettner <kevinb@redhat.com>
308
309 * NEWS (New commands): Mention new command
310 "maintenance print core-file-backed-mappings".
311
09c2f5d4
KB
3122020-07-22 Kevin Buettner <kevinb@redhat.com>
313
314 * corelow.c (gdbcmd.h): Include.
315 (core_target::info_proc_mappings): New method.
316 (get_current_core_target): New function.
317 (maintenance_print_core_file_backed_mappings): New function.
318 (_initialize_corelow): Add core-file-backed-mappings to
319 "maint print" commands.
320
9c5ec5c2
KB
3212020-07-22 Kevin Buettner <kevinb@redhat.com>
322
323 * linux-tdep.c (dump_note_entry_p): New function.
324 (linux_dump_mapping_p_ftype): New typedef.
325 (linux_find_memory_regions_full): Add new parameter,
326 should_dump_mapping_p.
327 (linux_find_memory_regions): Adjust call to
328 linux_find_memory_regions_full.
329 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
330 call to linux_find_memory_regions_full.
331
db082f59
KB
3322020-07-22 Kevin Buettner <kevinb@redhat.com>
333
334 * corelow.c (solist.h, unordered_map): Include.
335 (class core_target): Add field m_core_file_mappings and
336 method build_file_mappings.
337 (core_target::core_target): Call build_file_mappings.
338 (core_target::~core_target): Free memory associated with
339 m_core_file_mappings.
340 (core_target::build_file_mappings): New method.
341 (core_target::xfer_partial): Use m_core_file_mappings
342 for memory transfers.
343 * linux-tdep.c (linux_read_core_file_mappings): New
344 function.
345 (linux_core_info_proc_mappings): Rewrite to use
346 linux_read_core_file_mappings.
347 (linux_init_abi): Register linux_read_core_file_mappings.
348
7e183d27
KB
3492020-07-22 Kevin Buettner <kevinb@redhat.com>
350
351 * arch-utils.c (default_read_core_file_mappings): New function.
352 * arch-utils.c (default_read_core_file_mappings): Declare.
353 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
354 * gdbarch.h, gdbarch.c: Regenerate.
355
2735d421
KB
3562020-07-22 Kevin Buettner <kevinb@redhat.com>
357
358 PR corefiles/25631
359 * corelow.c (core_target:xfer_partial): Revise
360 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
361 case after first checking the stratum beneath the core
362 target.
363 (has_all_memory): Return true.
364 * target.c (raw_memory_xfer_partial): Revise comment
365 regarding use of has_all_memory.
366
e56cb451
KB
3672020-07-22 Kevin Buettner <kevinb@redhat.com>
368
369 * exec.h (section_table_xfer_memory): Revise declaration,
370 replacing section name parameter with an optional callback
371 predicate.
372 * exec.c (section_table_xfer_memory): Likewise.
373 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
374 of section_table_xfer_memory.
375
32fa152e
TT
3762020-07-22 Tom Tromey <tromey@adacore.com>
377
378 * mi/mi-cmd-stack.c (list_args_or_locals): Use
379 lookup_symbol_search_name.
380
a67a1c41
AB
3812020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
382
383 * python/py-registers.c (gdbpy_register_object_data_init): Remove
384 redundant local variable.
385 (gdbpy_get_register_descriptor): Extract descriptor vector as a
386 reference, not pointer, update code accordingly.
387
a7b4ff4f
SM
3882020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
389 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
390
391 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
392 * jit.c (jit_breakpoint_re_set_internal): Use the
393 `skip_jit_symbol_lookup` field.
394
2340e834
SM
3952020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
396 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
397
398 * jit.c (jit_read_descriptor): Define the descriptor address once,
399 use twice.
400 (jit_breakpoint_deleted): Move the declaration of the loop variable
401 `iter` into the loop header.
402 (jit_breakpoint_re_set_internal): Move the declaration of the local
403 variable `objf_data` to the first point of definition.
404 (jit_event_handler): Move the declaration of local variables
405 `code_entry`, `entry_addr`, and `objf` to their first point of use.
406 Rename `objf` to `jited`.
407
c1072906
SM
4082020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
409
410 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
411 Remove.
412 * jit.c (get_jiter_objfile_data): Update.
413
c8474dc3
TBA
4142020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
415 Simon Marchi <simon.marchi@polymtl.ca>
416
417 * jit.c (struct jit_program_space_data): Remove.
418 (jit_program_space_key): Remove.
419 (jiter_objfile_data::~jiter_objfile_data): Remove program space
420 stuff.
421 (get_jit_program_space_data): Remove.
422 (jit_breakpoint_deleted): Iterate on all of the program space's
423 objfiles.
424 (jit_inferior_init): Likewise.
425 (jit_breakpoint_re_set_internal): Likewise. Also change return
426 type to void.
427 (jit_breakpoint_re_set): Pass current_program_space to
428 jit_breakpoint_re_set_internal.
429
77208eb7
SM
4302020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
431
432 * jit.h (struct jiter_objfile_data) <cached_code_address,
433 jit_breakpoint>: Move to here from ...
434 * jit.c (jit_program_space_data): ... here.
435 (jiter_objfile_data::~jiter_objfile_data): Update.
436 (jit_breakpoint_deleted): Update.
437 (jit_breakpoint_re_set_internal): Update.
438
8c1c720f
SM
4392020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
440
441 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
442 checks.
443 (jit_read_descriptor): Remove NULL check.
444 (jit_event_handler): Add an assertion.
445
0e74a041
SM
4462020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
447
448 * jit.h (struct jit_objfile_data): Split into...
449 (struct jiter_objfile_data): ... this ...
450 (struct jited_objfile_data): ... and this.
451 * objfiles.h (struct objfile) <jit_data>: Remove.
452 <jiter_data, jited_data>: New fields.
453 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
454 (jiter_objfile_data::~jiter_objfile_data): ... this.
455 (get_jit_objfile_data): Rename to ...
456 (get_jiter_objfile_data): ... this.
457 (add_objfile_entry): Update.
458 (jit_read_descriptor): Use get_jiter_objfile_data.
459 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
460 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
461 (jit_inferior_exit_hook): Use objfile's jited_data field.
462
238b5c9f
SM
4632020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
464
465 * jit.h: Forward-declare `struct minimal_symbol`.
466 (struct jit_objfile_data): Migrate to here from jit.c; also add a
467 constructor, destructor, and an objfile* field.
468 * jit.c (jit_objfile_data): Remove.
469 (struct jit_objfile_data): Migrate from here to jit.h.
470 (jit_objfile_data::~jit_objfile_data): New destructor
471 implementation with code moved from free_objfile_data.
472 (free_objfile_data): Delete.
473 (get_jit_objfile_data): Update to use the jit_data field of objfile.
474 (jit_find_objf_with_entry_addr): Ditto.
475 (jit_inferior_exit_hook): Ditto.
476 (_initialize_jit): Remove the call to
477 register_objfile_data_with_cleanup.
478 * objfiles.h (struct objfile) <jit_data>: New field.
479
fe053b9e
TBA
4802020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
481
482 * jit.h: Forward-declare `struct objfile`.
483 (jit_event_handler): Add a second parameter, the JITer objfile.
484 * jit.c (jit_read_descriptor): Change the signature to take the
485 JITer objfile as an argument instead of the jit_program_space_data.
486 (jit_inferior_init): Update the call to jit_read_descriptor.
487 (jit_event_handler): Use the new JITer objfile argument when calling
488 jit_read_descriptor.
489 * breakpoint.c (handle_jit_event): Update the call to
490 jit_event_handler to pass the JITer objfile.
491
4cec0c66
JB
4922020-07-21 John Baldwin <jhb@FreeBSD.org>
493
494 * gdbarch.c: Regenerate.
495 * gdbarch.h: Regenerate.
496 * gdbarch.sh (handle_segmentation_fault): Remove method.
497 * infrun.c (handle_segmentation_fault): Remove.
498 (print_signal_received_reason): Remove call to
499 handle_segmentation_fault.
500
0e42f66a
JB
5012020-07-21 John Baldwin <jhb@FreeBSD.org>
502
503 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
504 Rename to sparc64_linux_report_signal_info and add siggnal
505 argument.
506 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
507 instead of sparc64_linux_handle_segmentation_fault.
508
77bdfeb2
JB
5092020-07-21 John Baldwin <jhb@FreeBSD.org>
510
511 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
512 i386_linux_report_signal_info instead of
513 i386_linux_handle_segmentation_fault.
514 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
515 to i386_linux_report_signal_info and add siggnal argument.
516 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
517 of i386_linux_handle_segmentation_fault.
518 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
519 to i386_linux_report_signal_info and add siggnal argument.
520
ad97bfc5
JB
5212020-07-21 John Baldwin <jhb@FreeBSD.org>
522
523 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
524 hook if present.
525
272bb05c
JB
5262020-07-21 John Baldwin <jhb@FreeBSD.org>
527
528 * gdbarch.c: Regenerate.
529 * gdbarch.h: Regenerate.
530 * gdbarch.sh (report_signal_info): New method.
531 * infrun.c (print_signal_received_reason): Invoke gdbarch
532 report_signal_info hook if present.
533
baf8791e
AB
5342020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
535
536 * python/py-registers.c : Add 'unordered_map' include.
537 (gdbpy_new_reggroup): Renamed to...
538 (gdbpy_get_reggroup): ...this. Update to only create register
539 group descriptors when needed.
540 (gdbpy_reggroup_iter_next): Update.
541
f7306dac
AB
5422020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
543
544 * python/py-registers.c (gdbpy_register_object_data): New static
545 global.
546 (gdbpy_register_object_data_init): New function.
547 (gdbpy_new_register_descriptor): Renamed to...
548 (gdbpy_get_register_descriptor): ...this, and update to reuse
549 existing register descriptors where possible.
550 (gdbpy_register_descriptor_iter_next): Update.
551 (gdbpy_initialize_registers): Register new gdbarch data.
552
05c309a8
SM
5532020-07-21 Simon Marchi <simon.marchi@efficios.com>
554
555 * linux-nat.c (stopped_pids): Make static.
556
d1fd641e
SM
5572020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
558
559 PR ada/26235
560 * gdbtypes.c (ada_discrete_type_low_bound,
561 ada_discrete_type_high_bound): Handle undefined bounds.
562
1de14d77
KR
5632020-07-21 Kamil Rytarowski <n54@gmx.com>
564
565 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
566 declaration.
567 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
568 function.
569
ed810cc7
JB
5702020-07-20 John Baldwin <jhb@FreeBSD.org>
571
572 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
573 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
574 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
575 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
576 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
577 method.
578
ae5369e7
LC
5792020-07-20 Ludovic Courtès <ludo@gnu.org>
580
581 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
582 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
583 which are deprecated in Guile 3.0.
584 * configure.ac (try_guile_versions): Add "guile-3.0".
585 * configure (try_guile_versions): Regenerate.
586 * NEWS: Update entry.
587
68cf161c
LC
5882020-07-20 Ludovic Courtès <ludo@gnu.org>
589 Doug Evans <dje@google.com>
590
591 PR gdb/21104
592 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
593 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
594 USING_GUILE_BEFORE_2_2.
595 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
596 Change type to 'scm_t_port_type *'.
597 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
598 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
599 parameter and honor it. Update callers.
600 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
601 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
602 functions.
603 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
604 USING_GUILE_BEFORE_2_2.
605 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
606 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
607 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
608 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
609 and 'SCM_PORT_TYPE'.
610 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
611 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
612 (gdbscm_memory_port_read, gdbscm_memory_port_write)
613 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
614 [!USING_GUILE_BEFORE_2_2]: New functions.
615 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
616 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
617 'gdbscm_memory_port_read'.
618 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
619 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
620 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
621 function.
622 (ioscm_init_memory_port): Remove.
623 (ioscm_init_memory_port_stream): New function
624 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
625 function.
626 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
627 Return scm_from_uint (0).
628 (gdbscm_set_memory_port_read_buffer_size_x)
629 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
630 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
631 Return scm_from_uint (0).
632 (gdbscm_set_memory_port_write_buffer_size_x)
633 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
634 * configure.ac (try_guile_versions): Add "guile-2.2".
635 * configure: Regenerate.
636 * NEWS: Add entry.
637
aee91db3
TT
6382020-07-18 Tom Tromey <tom@tromey.com>
639
640 * linux-nat.c (linux_multi_process): Remove.
641 (linux_nat_target::supports_multi_process): Return true.
642
0e267416
AB
6432020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
644
645 * arch/riscv.c (riscv_tdesc_cache): Change map type.
646 (riscv_lookup_target_description): Return pointer out of
647 unique_ptr.
648 * target-descriptions.c (allocate_target_description): Add
649 comment.
650 (target_desc_deleter::operator()): Likewise.
651 * target-descriptions.h (struct target_desc_deleter): Moved to
652 gdbsupport/tdesc.h.
653 (target_desc_up): Likewise.
654
f80c8ec4
TT
6552020-07-17 Tom Tromey <tromey@adacore.com>
656
657 * linux-nat.c (linux_nat_target::supports_non_stop)
658 (linux_nat_target::always_non_stop_p): Use "true".
659 (linux_nat_target::supports_disable_randomization): Use "true" and
660 "false".
661
d0ce17d8
CT
6622020-07-16 Caroline Tice <cmtice@google.com>
663
664 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
665 (RNGLIST_HEADER_SIZE64): New constant definition.
666 (struct dwop_section_names): Add rnglists_dwo.
667 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
668 (struct loclist_header): Rename to 'loclists_rnglists_header'.
669 (struct dwo_sections): Add rnglists field.
670 (read_attribut_reprocess): Add tag parameter.
671 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
672 (cu_debug_rnglists_section): New function (decl & definition).
673 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
674 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
675 die whose range is being checked; get rnglist section from
676 cu_debug_rnglists_section, to get from either objfile or dwo file as
677 appropriate. Add cases for DW_RLE_base_addressx,
678 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
679 the base address to DW_RLE_offset_pairs (not to all ranges), moving
680 test inside if-condition and updating complaint message.
681 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
682 dwarf2_rnglists_process.
683 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
684 dwarf2_ranges_process.
685 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
686 need_ranges_base and update comment appropriately. Also pass die tag
687 to dwarf2_ranges_read.
688 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
689 need_ranges_base and update comment appropriately. Also pass die tag
690 to dwarf2_ranges_process.
691 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
692 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
693 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
694 need_ranges_base and update comment appropriately. Also pass die tag
695 to read_attribute_reprocess and dwarf2_ranges_read.
696 (read_loclist_header): Rename function to read_loclists_rnglists_header,
697 and update function comment appropriately.
698 (read_loclist_index): Call read_loclists_rnglists_header instead of
699 read_loclist_header.
700 (read_rnglist_index): New function.
701 (read_attribute_reprocess): Add tag parameter. Add code for
702 DW_FORM_rnglistx, passing tag to read_rnglist_index.
703 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
704
3dcc261c
AB
7052020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
706
707 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
708 being resolved.
709
ccb9eba6
AB
7102020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
711
712 * arch-utils.c (show_architecture): Update formatting of messages.
713
cf88be68
SM
7142020-07-12 Simon Marchi <simon.marchi@efficios.com>
715
716 * gdbtypes.h (struct type) <bounds>: Handle array and string
717 types.
718 * ada-lang.c (assign_aggregate): Use type::bounds on
719 array/string type.
720 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
721 * c-varobj.c (c_number_of_children): Likewise.
722 (c_describe_child): Likewise.
723 * eval.c (evaluate_subexp_for_sizeof): Likewise.
724 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
725 (f_type_print_base): Likewise.
726 * f-valprint.c (f77_array_offset_tbl): Likewise.
727 (f77_get_upperbound): Likewise.
728 (f77_print_array_1): Likewise.
729 * guile/scm-type.c (gdbscm_type_range): Likewise.
730 * m2-typeprint.c (m2_array): Likewise.
731 (m2_is_long_set_of_type): Likewise.
732 * m2-valprint.c (get_long_set_bounds): Likewise.
733 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
734 * python/py-type.c (typy_range): Likewise.
735 * rust-lang.c (rust_internal_print_type): Likewise.
736 * type-stack.c (type_stack::follow_types): Likewise.
737 * valarith.c (value_subscripted_rvalue): Likewise.
738 * valops.c (value_cast): Likewise.
739
509971ae
SM
7402020-07-12 Simon Marchi <simon.marchi@efficios.com>
741
742 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
743 callers to use the equivalent accessor methods.
744
107406b7
SM
7452020-07-12 Simon Marchi <simon.marchi@efficios.com>
746
747 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
748 (struct type) <bit_stride>: New method.
749 (TYPE_BIT_STRIDE): Remove.
750 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
751
bb789949
SM
7522020-07-12 Simon Marchi <simon.marchi@efficios.com>
753
754 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
755 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
756 callers to use the equivalent accessor methods instead.
757
39498edb
SM
7582020-07-12 Simon Marchi <simon.marchi@efficios.com>
759
760 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
761 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
762 callers to use the equivalent accessor methods instead.
763
3b606f38
SM
7642020-07-12 Simon Marchi <simon.marchi@efficios.com>
765
766 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
767 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
768 to use dynamic_prop::kind.
769
064d9cb9
SM
7702020-07-12 Simon Marchi <simon.marchi@efficios.com>
771
772 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
773 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
774 to get the bound property's kind and check against
775 PROP_UNDEFINED.
776
5537ddd0
SM
7772020-07-12 Simon Marchi <simon.marchi@efficios.com>
778
779 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
780 all callers to use type::range_bounds followed by
781 dynamic_prop::{low,high}.
782
8c2e4e06
SM
7832020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
784
785 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
786 const_val, set_const_val, baton, set_locexpr, set_loclist,
787 set_addr_offset, variant_parts, set_variant_parts,
788 original_type, set_original_type>: New methods.
789 <kind>: Rename to...
790 <m_kind>: ... this. Update all users to use the new methods
791 instead.
792 <data>: Rename to...
793 <m_data>: ... this. Update all users to use the new methods
794 instead.
795
7c6f2712
SM
7962020-07-12 Simon Marchi <simon.marchi@efficios.com>
797
798 * gdbtypes.c (get_discrete_bounds): Return failure if
799 the range type's bounds are not both defined and constant
800 values.
801 (get_array_bounds): Update comment. Remove undefined bound check.
802
599088e3
SM
8032020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
804
805 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
806 the type::bounds method directly.
807
c4dfcb36
SM
8082020-07-12 Simon Marchi <simon.marchi@efficios.com>
809
810 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
811 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
812 are used to set the range type's bounds to use set_bounds.
813
0a278aa7
PW
8142020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
815
816 * exec.c (_initialize_exec): Update exec-file-mismatch help.
817
cce20f10
PA
8182020-07-10 Pedro Alves <pedro@palves.net>
819
820 * gdbthread.h (inferior_ref): Define.
821 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
822 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
823 * thread.c
824 (scoped_restore_current_thread::restore):
825 Adjust to gdb::ref_ptr.
826 (scoped_restore_current_thread::~scoped_restore_current_thread):
827 Remove manual decref handling.
828 (scoped_restore_current_thread::scoped_restore_current_thread):
829 Adjust to use
830 inferior_ref::new_reference/thread_info_ref::new_reference.
831 Incref the thread before calling get_frame_id instead of after.
832 Let TARGET_CLOSE_ERROR propagate.
833
6d7aa592
PA
8342020-07-10 Pedro Alves <pedro@palves.net>
835
836 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
837 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
838 NOT_AVAILABLE_ERROR.
839 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
840 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
841
b3e3a4c1
SM
8422020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
843 Pedro Alves <pedro@palves.net>
844
845 PR gdb/26199
846 * infrun.c (threads_are_resumed_pending_p): Delete.
847 (do_target_wait): Remove threads_are_executing and
848 threads_are_resumed_pending_p checks from the inferior_matches
849 lambda. Update comments.
850
d6cc5d98
PA
8512020-07-10 Pedro Alves <pedro@palves.net>
852
853 PR gdb/26199
854 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
855 executing threads.
856
7d3badc6
PA
8572020-07-10 Pedro Alves <pedro@palves.net>
858
859 PR gdb/26199
860 * infrun.c (handle_no_resumed): Handle multiple targets.
861
42bd97a6
PA
8622020-07-10 Pedro Alves <pedro@palves.net>
863
864 PR gdb/26199
865 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
866 target_is_async_p.
867
43667cc6
PA
8682020-07-10 Pedro Alves <pedro@palves.net>
869
870 PR gdb/26199
871 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
872 threads, not all threads.
873
96118d11
PA
8742020-07-10 Pedro Alves <pedro@palves.net>
875
876 PR gdb/26199
877 * remote.c (remote_target::open_1): Pass remote target pointer as
878 data to create_async_event_handler.
879 (remote_async_inferior_event_handler): Mark async event handler
880 before returning if the remote target still has either pending
881 events or unacknowledged notifications.
882
54904d81
JB
8832020-07-10 John Baldwin <jhb@FreeBSD.org>
884
885 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
886 declaration.
887 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
888 function.
889
f37e5866
JB
8902020-07-09 John Baldwin <jhb@FreeBSD.org>
891
892 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
893 inferior_ptid.
894
fc238d4a
JB
8952020-07-09 John Baldwin <jhb@FreeBSD.org>
896
897 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
898 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
899 AT_FREEBSD_PS_STRINGS.
900
6e2469ff
HD
9012020-07-08 Hannes Domani <ssbssa@yahoo.de>
902
903 * auto-load.c (auto_load_objfile_script_1): Convert drive part
904 of debugfile path on Windows.
905
d1076c41
JB
9062020-07-08 John Baldwin <jhb@FreeBSD.org>
907
908 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
909 argument to 'data'.
910
15f3b077
TT
9112020-07-08 Tom Tromey <tromey@adacore.com>
912
913 * ada-lang.c (ada_exception_message_1): Use read_memory.
914
9fc501fd
AB
9152020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
916
917 PR python/22748
918 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
919 special handling for inline frames.
920 * findvar.c (value_of_register_lazy): Skip inline frames when
921 creating lazy register values.
922 * frame.c (frame_id_computed_p): Delete definition.
923 * frame.h (frame_id_computed_p): Delete declaration.
924
64cb3757
AB
9252020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
926
927 * NEWS: Mention additions to Python API.
928 * python/py-arch.c (archpy_register_groups): New function.
929 (arch_object_methods): Add 'register_groups' method.
930 * python/py-registers.c (reggroup_iterator_object): New struct.
931 (reggroup_object): New struct.
932 (gdbpy_new_reggroup): New function.
933 (gdbpy_reggroup_to_string): New function.
934 (gdbpy_reggroup_name): New function.
935 (gdbpy_reggroup_iter): New function.
936 (gdbpy_reggroup_iter_next): New function.
937 (gdbpy_new_reggroup_iterator): New function
938 (gdbpy_initialize_registers): Register new types.
939 (reggroup_iterator_object_type): Define new Python type.
940 (gdbpy_reggroup_getset): New static global.
941 (reggroup_object_type): Define new Python type.
942 * python/python-internal.h
943
0f767f94
AB
9442020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
945
946 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
947 * python/py-arch.c (archpy_registers): New function.
948 (arch_object_methods): Add 'registers' method.
949 * python/py-registers.c: New file.
950 * python/python-internal.h
951 (gdbpy_new_register_descriptor_iterator): Declare.
952 (gdbpy_initialize_registers): Declare.
953 * python/python.c (do_start_initialization): Call
954 gdbpy_initialize_registers.
955 * NEWS: Mention additions to the Python API.
956
87dbc774
AB
9572020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
958
959 * NEWS: Mention new Python API method.
960 * python/py-unwind.c (pending_framepy_architecture): New function.
961 (pending_frame_object_methods): Add architecture method.
962
3bc98c0c
AB
9632020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
964
965 * gdbarch.c: Regenerate.
966 * gdbarch.h: Regenerate.
967 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
968 (gdbarch_data): Use internal_error for the case where
969 deprecated_set_gdbarch_data was originally needed.
970 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
971 and use passed in obstack.
972 (libunwind_frame_set_descr): Should no longer get back NULL from
973 gdbarch_data.
974 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
975 type.
976 * user-regs.c (user_regs_init): Update parameters, and use passed
977 in obstack.
978 (user_reg_add): Should no longer get back NULL from gdbarch_data.
979 (_initialize_user_regs): Register as a pre-init gdbarch data type.
980
d8cc8af6
TV
9812020-07-06 Tom de Vries <tdevries@suse.de>
982
983 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
984 End-Of-Sequence in lte_is_less_than.
985 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
986 "gdb: Don't reorder line table entries too much when sorting".
987
947f7597
TV
9882020-07-06 Tom de Vries <tdevries@suse.de>
989
990 PR tui/26205
991 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
992
1e7c1b22
TV
9932020-07-05 Tom de Vries <tdevries@suse.de>
994
995 PR build/26187
996 * inferior.h (struct infcall_suspend_state_deleter): If available, use
997 std::uncaught_exceptions instead of deprecated
998 std::uncaught_exception.
999
a36158ec
SM
10002020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1001
1002 * macroexp.h (macro_stringify): Return
1003 gdb::unique_xmalloc_ptr<char>.
1004 * macroexp.c (macro_stringify): Likewise.
1005 * macrotab.c (fixup_definition): Update.
1006
14d960c8
SM
10072020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1008
1009 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
1010 (lex_one_token): Update.
1011 * macroexp.c (struct macro_buffer) <release>: Return
1012 gdb::unique_xmalloc_ptr<char>.
1013 (macro_stringify): Update.
1014 (macro_expand): Update.
1015 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
1016 * macroexp.h (macro_expand_next): Likewise.
1017
211d5b1c
SM
10182020-07-02 Simon Marchi <simon.marchi@efficios.com>
1019
1020 * macroexp.h (macro_lookup_ftype): Remove.
1021 (macro_expand, macro_expand_once, macro_expand_next): Remove
1022 lookup function parameters, add scope parameter.
1023 * macroexp.c (scan, substitute_args, expand, maybe_expand,
1024 macro_expand, macro_expand_once, macro_expand_next): Likewise.
1025 * macroscope.h (standard_macro_lookup): Change parameter type
1026 to macro_scope.
1027 * macroscope.c (standard_macro_lookup): Likewise.
1028 * c-exp.y (lex_one_token): Update.
1029 * macrocmd.c (macro_expand_command): Likewise.
1030 (macro_expand_once_command): Likewise.
1031
b1a35af2
SM
10322020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1033
1034 * inf-loop.c (inferior_event_handler): Remove client_data param.
1035 * inf-loop.h (inferior_event_handler): Likewise.
1036 * infcmd.c (step_1): Adjust.
1037 * infrun.c (proceed): Adjust.
1038 (fetch_inferior_event): Remove client_data param.
1039 (infrun_async_inferior_event_handler): Adjust.
1040 * infrun.h (fetch_inferior_event): Remove `void *` param.
1041 * linux-nat.c (handle_target_event): Adjust.
1042 * record-btrace.c (record_btrace_handle_async_inferior_event):
1043 Adjust.
1044 * record-full.c (record_full_async_inferior_event_handler):
1045 Adjust.
1046 * remote.c (remote_async_inferior_event_handler): Adjust.
1047
1cdf9e33
TT
10482020-07-01 Tom Tromey <tom@tromey.com>
1049
1050 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
1051 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
1052
32c1e210
TT
10532020-07-01 Tom Tromey <tom@tromey.com>
1054
1055 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
1056 tui_gen_win_info.
1057 (tui_win_info::make_window): Merge with
1058 tui_gen_win_info::make_window.
1059 (tui_win_info::make_visible): Move from tui_gen_win_info.
1060 * tui/tui-win.c (tui_win_info::max_width): Move from
1061 tui_gen_win_info.
1062 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
1063 type.
1064 <window_factory>: Likewise.
1065 * tui/tui-layout.c (tui_win_info::resize): Move from
1066 tui_gen_win_info.
1067 (make_standard_window): Change return type.
1068 (get_locator_window, tui_get_window_by_name): Likewise.
1069 (tui_layout_window::apply): Remove a cast.
1070 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
1071 (struct tui_win_info): Merge with tui_gen_win_info.
1072 (struct tui_gen_win_info): Remove.
1073
a30cb6da
TT
10742020-07-01 Tom Tromey <tom@tromey.com>
1075
1076 * tui/tui-stack.h (struct tui_locator_window): Derive from
1077 tui_win_info.
1078 <do_scroll_horizontal, do_scroll_vertical>: New methods.
1079 <can_box>: New method.
1080
1eb2161f
TT
10812020-07-01 Tom Tromey <tom@tromey.com>
1082
1083 * tui/tui-stack.h (struct tui_locator_window): Remove body.
1084
7134f2eb
TT
10852020-07-01 Tom Tromey <tom@tromey.com>
1086
1087 * tui/tui-regs.c (tui_data_window::display_registers_from)
1088 (tui_data_window::display_registers_from)
1089 (tui_data_window::first_data_item_displayed)
1090 (tui_data_window::delete_data_content_windows): Update.
1091 (tui_data_window::refresh_window, tui_data_window::no_refresh):
1092 Remove.
1093 (tui_data_window::check_register_values): Update.
1094 (tui_data_item_window::rerender): Add parameters. Update.
1095 (tui_data_item_window::refresh_window): Remove.
1096 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
1097 virtual.
1098 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
1099 tui_gen_win_info.
1100 <refresh_window, max_height, min_height>: Remove.
1101 <rerender>: Add parameters.
1102 <x, y, visible>: New members.
1103 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
1104 <m_item_width>: New member.
1105
22b7b041
TT
11062020-07-01 Tom Tromey <tom@tromey.com>
1107
1108 * tui/tui-regs.c (tui_data_window::show_register_group)
1109 (tui_data_window::check_register_values): Update.
1110 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
1111 from item_no.
1112
c9753adb
TT
11132020-07-01 Tom Tromey <tom@tromey.com>
1114
1115 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
1116 useless "if".
1117
9ab26b4a
TT
11182020-07-01 Tom Tromey <tom@tromey.com>
1119
1120 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
1121 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
1122
e555083f
TT
11232020-07-01 Tom Tromey <tom@tromey.com>
1124
1125 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
1126 * tui/tui-winsource.h (enum tui_line_or_address_kind)
1127 (struct tui_line_or_address): Move from tui-data.h.
1128 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
1129 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
1130 (tui_cmd_window, tui_source_window_base, tui_source_window)
1131 (tui_disasm_window): Don't declare.
1132 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
1133 to tui-winsource.h.
1134 (SINGLE_KEY): Move to tui-stack.c.
1135
7a02bab7
TT
11362020-07-01 Tom Tromey <tom@tromey.com>
1137
1138 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
1139 std::string.
1140 * tui/tui-regs.c (class tab_expansion_file): New.
1141 (tab_expansion_file::write): New method.
1142 (tui_register_format): Change return type. Use
1143 tab_expansion_file.
1144 (tui_get_register, tui_data_window::display_registers_from)
1145 (tui_data_item_window::rerender): Update.
1146 * tui/tui-io.h (tui_expand_tabs): Don't declare.
1147 * tui/tui-io.c (tui_expand_tabs): Remove.
1148
ea68593b
TT
11492020-07-01 Tom Tromey <tom@tromey.com>
1150
1151 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
1152
a8caed5d
FS
11532020-07-01 Fangrui Song <maskray@google.com>
1154
1155 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
1156
9cdf9820
AKS
11572020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1158
1159 * dwarf2/read.c (set_die_type): Removed conditions to restrict
1160 forms for DW_AT_associated and DW_AT_allocated attributes,
1161 which is already checked in function attr_to_dynamic_prop.
1162
a1520ad8
TT
11632020-06-30 Tom Tromey <tromey@adacore.com>
1164
1165 * dwarf2/read.c (quirk_rust_enum): Correctly call
1166 alloc_rust_variant for default-less enum.
1167
5ac58899
TT
11682020-06-30 Tom Tromey <tromey@adacore.com>
1169
1170 PR build/26183:
1171 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
1172 gdb::to_string.
1173
19b187a9
SM
11742020-06-29 Simon Marchi <simon.marchi@efficios.com>
1175
1176 * gdbarch.sh (displaced_step_copy_insn): Update doc.
1177 * gdbarch.h: Re-generate.
1178
cd4c4c07
TT
11792020-06-28 Tom Tromey <tom@tromey.com>
1180
1181 * command.h (cmd_types): Remove.
1182 (cmd_type): Don't declare.
1183 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
1184 typedef.
1185 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
1186 * cli/cli-decode.c (cmd_type): Remove.
1187
05779d57
PA
11882020-06-27 Pedro Alves <palves@redhat.com>
1189
1190 * fork-child.c (prefork_hook): Adjust.
1191 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
1192 Delete.
1193 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
1194 * inferior.c (inferior::set_tty, inferior::tty): New methods.
1195 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
1196 Remove declarations.
1197 (struct inferior) <set_tty, tty>: New methods.
1198 (struct inferior) <terminal>: Rename to ...
1199 (struct inferior) <m_terminal>: ... this and make private.
1200 * main.c (captured_main_1): Adjust.
1201 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
1202 (mi_cmd_inferior_tty_show): Adjust.
1203 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
1204 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
1205
1776e3e5
NA
12062020-06-26 Nick Alcock <nick.alcock@oracle.com>
1207
1208 * configure.ac: Add --enable-libctf: handle --disable-static
1209 properly.
1210 * acinclude.m4: sinclude ../config/enable.m4.
1211 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
1212 (LIBCTF): Substitute in.
1213 (CTF_DEPS): New, likewise.
1214 (CLIBS): libctf needs symbols from libbfd: move earlier.
1215 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
1216 flags.
1217 * ctfread.c: Surround in ENABLE_LIBCTF.
1218 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
1219 * configure: Regenerate.
1220 * config.in: Likewise.
1221
58373b80
SM
12222020-06-25 Simon Marchi <simon.marchi@efficios.com>
1223
1224 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
1225
277474ee
SM
12262020-06-25 Simon Marchi <simon.marchi@efficios.com>
1227
1228 * inferior.h (struct inferior) <terminal>: Change type to
1229 gdb::unique_xmalloc_ptr<char>.
1230 * inferior.c (inferior::~inferior): Don't free inf->terminal.
1231 * infcmd.c (set_inferior_io_terminal): Don't free terminal
1232 field, adjust to unique pointer.
1233 (get_inferior_io_terminal): Adjust to unique pointer.
1234
6d74da72
AB
12352020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1236
1237 * riscv-tdep.c (riscv_print_registers_info): Loop over all
1238 registers, not just the known core set of registers.
1239
2e52d038
AB
12402020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1241
1242 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
1243 fflags, frm, and fcsr registers.
1244 (riscv_register_reggroup_p): Remove unknown CSRs from save and
1245 restore groups.
1246 (riscv_tdesc_unknown_reg): New function.
1247 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
1248 tdesc_use_registers.
1249 * riscv-tdep.h (struct gdbarch_tdep): Add
1250 unknown_csrs_first_regnum, unknown_csrs_count,
1251 duplicate_fflags_regnum, duplicate_frm_regnum, and
1252 duplicate_fcsr_regnum fields.
1253
be64fd07
AB
12542020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1255
1256 * target-descriptions.c (tdesc_use_registers): Add new parameter a
1257 callback, use the callback (when not null) to help number unknown
1258 registers.
1259 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
1260 (tdesc_use_registers): Add extra parameter to declaration.
1261
3b9fce96
AB
12622020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1263
1264 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
1265 in the file.
1266 (class riscv_pending_register_alias): Likewise.
1267 (riscv_register_feature::register_info): Change 'required_p' field
1268 to 'required', and change its type. Add 'check' member function.
1269 (riscv_register_feature::register_info::check): Define new member
1270 function.
1271 (riscv_xreg_feature): Change initialisation of 'required' field.
1272 (riscv_freg_feature): Likewise.
1273 (riscv_virtual_feature): Likewise.
1274 (riscv_csr_feature): Likewise.
1275 (riscv_check_tdesc_feature): Take extra parameter, the csr
1276 tdesc_feature, rewrite the function to use the new
1277 riscv_register_feature::register_info::check function.
1278 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
1279
865bad26
AB
12802020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1281
1282 * features/Makefile: Remove all references to the deleted files
1283 below.
1284 * features/riscv/32bit-csr.c: Deleted.
1285 * features/riscv/32bit-csr.xml: Deleted.
1286 * features/riscv/64bit-csr.c: Deleted.
1287 * features/riscv/64bit-csr.xml: Deleted.
1288 * features/riscv/rebuild-csr-xml.sh: Deleted.
1289
ed69cbc8
AB
12902020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1291
1292 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
1293 whitespace error for declaration of names member variable.
1294 (struct riscv_register_feature): Add new prefer_first_name member
1295 variable, and fix whitespace error in declaration of registers.
1296 (riscv_xreg_feature): Initialize prefer_first_name field.
1297 (riscv_freg_feature): Likewise.
1298 (riscv_virtual_feature): Likewise.
1299 (riscv_csr_feature): Likewise.
1300 (riscv_register_name): Expand on comments. Remove register name
1301 modifications for CSR and virtual registers.
1302
4445e8f5
AB
13032020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1304
1305 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
1306 errors.
1307
767a879e
AB
13082020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1309
1310 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
1311 riscv-opc.h.
1312 (class riscv_pending_register_alias): New class.
1313 (riscv_check_tdesc_feature): Take vector of pending aliases and
1314 populate it as appropriate.
1315 (riscv_setup_register_aliases): Delete.
1316 (riscv_gdbarch_init): Create vector of pending aliases and pass it
1317 to riscv_check_tdesc_feature in all cases. Use the vector to
1318 create the register aliases.
1319
bb6e55f3
RO
13202020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1321
1322 * sol2-tdep.c (sol2_static_transform_name): Remove.
1323 (sol2_init_abi): Don't register it.
1324 * gdbarch.sh (static_transform_name): Remove.
1325 * gdbarch.c, gdbarch.h: Regenerate.
1326
1327 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
1328 gdbarch_static_transform_name.
1329 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
1330 * stabsread.c (define_symbol) <'X'>: Remove.
1331 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
1332 handling.
1333 <'V'>: Likewise.
1334 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
1335 <'S'>: Remove call to gdbarch_static_transform_name.
1336
c6d36836
RO
13372020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1338
1339 * procfs.c (procfs_pre_trace): New function.
1340 (procfs_target::create_inferior): Pass it to fork_inferior.
1341
a7e6196b
RO
13422020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1343
1344 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
1345 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
1346 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
1347 sol2-tdep.o, sparc-sol2-tdep.o.
1348 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
1349 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
1350 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
1351 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
1352
d412e696
RO
13532020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1354
1355 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
1356 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
1357 Call sol2_init_abi.
1358 Remove calls to set_gdbarch_skip_solib_resolver,
1359 set_gdbarch_core_pid_to_str.
1360 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
1361 (i386_sol2_static_transform_name): Remove.
1362 (i386_sol2_init_abi): Call sol2_init_abi.
1363 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1364 set_gdbarch_static_transform_name,
1365 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1366 Use sol2_sigtramp_p.
1367 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
1368 (sol2_sigtramp_p): New function.
1369 (sol2_static_transform_name): New function.
1370 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
1371 (sol2_init_abi): New function.
1372 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
1373 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
1374 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
1375 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
1376 (sparc_sol2_static_transform_name): Remove.
1377 (sparc32_sol2_init_abi): Call sol2_init_abi.
1378 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1379 set_gdbarch_static_transform_name,
1380 set_gdbarch_skip_solib_resolver,
1381 set_gdbarch_core_pid_to_str.
1382 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
1383 (sparc_sol2_static_transform_name): Remove
1384 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
1385 call sol2_sigtramp_p.
1386 (sparc64_sol2_init_abi): Call sol2_init_abi.
1387 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1388 set_gdbarch_static_transform_name,
1389 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1390
a8654e7d
PW
13912020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1392
1393 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
1394 * exec.c (validate_exec_file): If from_tty, set both
1395 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
1396 * symfile.c (symbol_file_add_with_addrs): if always_confirm
1397 and from_tty, unconditionally ask a confirmation.
1398
caa7fd04
AB
13992020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1400
1401 * target-descriptions.c (tdesc_architecture_name): Protect against
1402 NULL pointer dereference.
1403 (maint_print_xml_tdesc_cmd): New function.
1404 (_initialize_target_descriptions): Register new 'maint print
1405 xml-tdesc' command and give it the filename completer.
1406 * NEWS: Mention new 'maint print xml-tdesc' command.
1407
fbf42f4e
AB
14082020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1409
1410 * target-descriptions.c (class tdesc_compatible_info): New class.
1411 (struct target_desc): Change type of compatible vector.
1412 (tdesc_compatible_p): Update for change in type of
1413 target_desc::compatible.
1414 (tdesc_compatible_info_list): New function.
1415 (tdesc_compatible_info_arch_name): New function.
1416 (tdesc_add_compatible): Update for change in type of
1417 target_desc::compatible.
1418 (print_c_tdesc::visit_pre): Likewise.
1419
20821f4e
AB
14202020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1421
1422 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
1423 whitespace to underscore.
1424 (maint_print_c_tdesc_cmd): Use fake filename for target
1425 descriptions that came from the target.
1426 (_initialize_target_descriptions): Add filename command completion
1427 for 'maint print c-tdesc'.
1428
1fb5ee62
SM
14292020-06-23 Simon Marchi <simon.marchi@efficios.com>
1430
1431 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
1432 lines.
1433
fc3ecb3e
SM
14342020-06-23 Simon Marchi <simon.marchi@efficios.com>
1435
1436 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
1437 lines.
1438 (dwarf2_find_location_expression): Likewise.
1439 (call_site_parameter_matches): Likewise.
1440 (dwarf2_compile_expr_to_ax): Likewise.
1441 (disassemble_dwarf_expression): Likewise.
1442 (loclist_describe_location): Likewise.
1443
236ef034
PA
14442020-06-23 Pedro Alves <palves@redhat.com>
1445
1446 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
1447 progspace-and-thread.h. Include scoped-mock-context.h instead.
1448 (register_to_value_test): Use scoped_mock_context.
1449 * regcache.c: Include "scoped-mock-context.h".
1450 (cooked_read_test): Don't error out if a target is already pushed.
1451 Use scoped_mock_context. Adjust.
1452 * scoped-mock-context.h: New file.
1453
39e7ecca
AB
14542020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1455
1456 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
1457 initializer.
1458 (ada_language::is_string_type_p): New member function.
1459 * c-lang.c (c_language_data): Delete la_is_string_type_p
1460 initializer.
1461 (cplus_language_data): Likewise.
1462 (asm_language_data): Likewise.
1463 (minimal_language_data): Likewise.
1464 * d-lang.c (d_language_data): Likewise.
1465 * f-lang.c (f_is_string_type_p): Delete function, implementation
1466 moved to f_language::is_string_type_p.
1467 (f_language_data): Delete la_is_string_type_p initializer.
1468 (f_language::is_string_type_p): New member function,
1469 implementation from f_is_string_type_p.
1470 * go-lang.c (go_is_string_type_p): Delete function, implementation
1471 moved to go_language::is_string_type_p.
1472 (go_language_data): Delete la_is_string_type_p initializer.
1473 (go_language::is_string_type_p): New member function,
1474 implementation from go_is_string_type_p.
1475 * language.c (language_defn::is_string_type_p): Define new member
1476 function.
1477 (default_is_string_type_p): Make static, add comment copied from
1478 header file.
1479 (unknown_language_data): Delete la_is_string_type_p initializer.
1480 (unknown_language::is_string_type_p): New member function.
1481 (auto_language_data): Delete la_is_string_type_p initializer.
1482 (auto_language::is_string_type_p): New member function.
1483 * language.h (language_data): Delete la_is_string_type_p field.
1484 (language_defn::is_string_type_p): Declare new function.
1485 (default_is_string_type_p): Delete desclaration, move comment to
1486 definition.
1487 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
1488 moved to m2_language::is_string_type_p.
1489 (m2_language_data): Delete la_is_string_type_p initializer.
1490 (m2_language::is_string_type_p): New member function,
1491 implementation from m2_is_string_type_p.
1492 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
1493 initializer.
1494 * opencl-lang.c (opencl_language_data): Likewise.
1495 * p-lang.c (pascal_is_string_type_p): Delete function,
1496 implementation moved to pascal_language::is_string_type_p.
1497 (pascal_language_data): Delete la_is_string_type_p initializer.
1498 (pascal_language::is_string_type_p): New member function,
1499 implementation from pascal_is_string_type_p.
1500 * rust-lang.c (rust_is_string_type_p): Delete function,
1501 implementation moved to rust_language::is_string_type_p.
1502 (rust_language_data): Delete la_is_string_type_p initializer.
1503 (rust_language::is_string_type_p): New member function,
1504 implementation from rust_is_string_type_p.
1505 * valprint.c (val_print_scalar_or_string_type_p): Update call to
1506 is_string_type_p.
1507
4ffc13fb
AB
15082020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1509
1510 * ada-lang.c (ada_language_data): Delete la_print_typedef
1511 initializer.
1512 (ada_language::print_typedef): New member function.
1513 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
1514 (cplus_language_data): Likewise.
1515 (asm_language_data): Likewise.
1516 (minimal_language_data): Likewise.
1517 * d-lang.c (d_language_data): Likewise.
1518 * f-lang.c (f_language_data): Likewise.
1519 (f_language::print_typedef): New member function.
1520 * go-lang.c (go_language_data): Delete la_print_typedef
1521 initializer.
1522 * language.c (language_defn::print_typedef): Define member
1523 function.
1524 (unknown_language_data): Delete la_print_typedef initializer.
1525 (unknown_language::print_typedef): New member function.
1526 (auto_language_data): Delete la_print_typedef initializer.
1527 (auto_language::print_typedef): New member function.
1528 * language.h (language_data): Delete la_print_typedef field.
1529 (language_defn::print_typedef): Declare new member function.
1530 (LA_PRINT_TYPEDEF): Update call to print_typedef.
1531 (default_print_typedef): Delete declaration.
1532 * m2-lang.c (m2_language_data): Delete la_print_typedef
1533 initializer.
1534 (m2_language::print_typedef): New member function.
1535 * objc-lang.c (objc_language_data): Delete la_print_typedef
1536 initializer.
1537 * opencl-lang.c (opencl_language_data): Likewise.
1538 * p-lang.c (pascal_language_data): Likewise.
1539 (pascal_language::print_typedef): New member function.
1540 * rust-lang.c (rust_print_typedef): Delete function,
1541 implementation moved to rust_language::print_typedef.
1542 (rust_language): Delete la_print_typedef initializer.
1543 (rust_language::print_typedef): New member function,
1544 implementation from rust_print_typedef.
1545 * typeprint.c (default_print_typedef): Delete.
1546
d711ee67
AB
15472020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1548
1549 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
1550 (ada_language::printstr): New member function.
1551 * c-lang.c (c_language_data): Delete la_printstr initializer.
1552 (cplus_language_data): Likewise.
1553 (asm_language_data): Likewise.
1554 (minimal_language_data): Likewise.
1555 * d-lang.c (d_language_data): Likewise.
1556 * f-lang.c (f_printstr): Rename to f_language::printstr.
1557 (f_language_data): Delete la_printstr initializer.
1558 (f_language::printstr): New member function, implementation from
1559 f_printstr.
1560 * go-lang.c (go_language_data): Delete la_printstr initializer.
1561 * language.c (language_defn::printstr): Define new member
1562 function.
1563 (unk_lang_printstr): Delete.
1564 (unknown_language_data): Delete la_printstr initializer.
1565 (unknown_language::printstr): New member function.
1566 (auto_language_data): Delete la_printstr initializer.
1567 (auto_language::printstr): New member function.
1568 * language.h (language_data): Delete la_printstr field.
1569 (language_defn::printstr): Declare new member function.
1570 (LA_PRINT_STRING): Update call to printstr.
1571 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
1572 (m2_language_data): Delete la_printstr initializer.
1573 (m2_language::printstr): New member function, implementation from
1574 m2_printstr.
1575 * objc-lang.c (objc_language_data): Delete la_printstr
1576 initializer.
1577 * opencl-lang.c (opencl_language_data): Likewise.
1578 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
1579 (pascal_language_data): Delete la_printstr initializer.
1580 (pascal_language::printstr): New member function, implementation
1581 from pascal_printstr.
1582 * p-lang.h (pascal_printstr): Delete declaration.
1583 * rust-lang.c (rust_printstr): Update header comment.
1584 (rust_language_data): Delete la_printstr initializer.
1585 (rust_language::printstr): New member function.
1586
52b50f2c
AB
15872020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1588
1589 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
1590 (ada_language::printchar): New member function.
1591 * c-lang.c (c_language_data): Delete la_printchar initializer.
1592 (cplus_language_data): Likewise.
1593 (asm_language_data): Likewise.
1594 (minimal_language_data): Likewise.
1595 * d-lang.c (d_language_data): Likewise.
1596 * f-lang.c (f_printchar): Rename to f_language::printchar.
1597 (f_language_data): Delete la_printchar initializer.
1598 (f_language::printchar): New member function, implementation from
1599 f_printchar.
1600 * go-lang.c (go_language_data): Delete la_printchar initializer.
1601 * language.c (unk_lang_printchar): Delete.
1602 (language_defn::printchar): Define new member function.
1603 (unknown_language_data): Delete la_printchar initializer.
1604 (unknown_language::printchar): New member function.
1605 (auto_language_data): Delete la_printchar initializer.
1606 (auto_language::printchar): New member function.
1607 * language.h (language_data): Delete la_printchar field.
1608 (language_defn::printchar): Declare new member function.
1609 (LA_PRINT_CHAR): Update call to printchar.
1610 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
1611 (m2_language::printchar): New member function.
1612 * objc-lang.c (objc_language_data): Delete la_printchar
1613 initializer.
1614 * opencl-lang.c (opencl_language_data): Likewise.
1615 * p-lang.c (pascal_language_data): Delete la_printchar
1616 initializer.
1617 (pascal_language::printchar): New member function.
1618 * rust-lang.c (rust_printchar): Rename to
1619 rust_language::printchar.
1620 (rust_language_data): Delete la_printchar initializer.
1621 (rust_language::printchar): New member function, implementation
1622 from rust_printchar.
1623
ec8cec5b
AB
16242020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1625
1626 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
1627 (ada_language_data): Delete la_emitchar initializer.
1628 (ada_language::emitchar): New member function, implementation from
1629 emit_char.
1630 * c-lang.c (c_language_data): Delete la_emitchar initializer.
1631 (cplus_language_data): Likewise.
1632 (asm_language_data): Likewise.
1633 (minimal_language_data): Likewise.
1634 * d-lang.c (d_language_data): Likewise.
1635 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
1636 (f_language_data): Delete la_emitchar initializer.
1637 (f_language::emitchar): New member function, implementation from
1638 f_emit_char.
1639 * go-lang.c (go_language_data): Delete la_emitchar initializer.
1640 * language.c (unk_lang_emit_char): Delete.
1641 (language_defn::emitchar): New member function definition.
1642 (unknown_language_data): Delete la_emitchar initializer.
1643 (unknown_language::emitchar): New member function.
1644 (auto_language_data): Delete la_emitchar initializer.
1645 (auto_language::emitchar): New member function.
1646 * language.h (language_data): Delete la_emitchar field.
1647 (language_defn::emitchar): New member field declaration.
1648 (LA_EMIT_CHAR): Update call to emitchar.
1649 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
1650 (m2_language_data): Delete la_emitchar initializer.
1651 (m2_language::emitchar): New member function, implementation from
1652 m2_emit_char.
1653 * objc-lang.c (objc_language_data): Delete la_emitchar
1654 initializer.
1655 * opencl-lang.c (opencl_language_data): Likewise.
1656 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
1657 (pascal_language_data): Delete la_emitchar initializer.
1658 (pascal_language::emitchar): New member function, implementation
1659 from pascal_emit_char.
1660 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
1661 (rust_language_data): Delete la_emitchar initializer.
1662 (rust_language::emitchar): New member function, implementation
1663 from rust_emitchar.
1664
1bf9c363
AB
16652020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1666
1667 * ada-lang.c (resolve): Rename to ada_language::post_parser.
1668 (ada_language_data): Delete la_post_parser initializer.
1669 (ada_language::post_parser): New member function.
1670 * c-lang.c (c_language_data): Delete la_post_parser initializer.
1671 (cplus_language_data): Likewise.
1672 (asm_language_data): Likewise.
1673 (minimal_language_data): Likewise.
1674 * d-lang.c (d_language_data): Likewise.
1675 * f-lang.c (f_language_data): Likewise.
1676 * go-lang.c (go_language_data): Likewise.
1677 * language.c (unknown_language_data): Likewise.
1678 (auto_language_data): Likewise.
1679 * language.h (language_data): Delete la_post_parser field.
1680 (language_defn::post_parser): New member function.
1681 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
1682 * objc-lang.c (objc_language_data): Likewise.
1683 * opencl-lang.c (opencl_language_data): Likewise.
1684 * p-lang.c (pascal_language_data): Likewise.
1685 * parse.c (parse_exp_in_context): Update call to post_parser.
1686 (null_post_parser): Delete definition.
1687 * parser-defs.h (null_post_parser): Delete declaration.
1688 * rust-lang.c (rust_language_data): Delete la_post_parser
1689 initializer.
1690
87afa652
AB
16912020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1692
1693 * ada-lang.c (parse): Rename to ada_language::parser.
1694 (ada_language_data): Delete la_parser initializer.
1695 (ada_language::parser): New member function, implementation from
1696 parse.
1697 * c-lang.c (c_language_data): Delete la_parser initializer.
1698 (cplus_language_data): Likewise.
1699 (asm_language_data): Likewise.
1700 (minimal_language_data): Likewise.
1701 * d-lang.c (d_language_data): Likewise.
1702 (d_language::parser): New member function.
1703 * f-lang.c (f_language_data): Delete la_parser initializer.
1704 (f_language::parser): New member function.
1705 * go-lang.c (go_language_data): Delete la_parser initializer.
1706 (go_language::parser): New member function.
1707 * language.c (unk_lang_parser): Delete.
1708 (language_defn::parser): Define new member function.
1709 (unknown_language_data): Delete la_parser initializer.
1710 (unknown_language::parser): New member function.
1711 (auto_language_data): Delete la_parser initializer.
1712 (auto_language::parser): New member function.
1713 * language.h (language_data): Delete la_parser field.
1714 (language_defn::parser): Declare new member function.
1715 * m2-lang.c (m2_language_data): Delete la_parser initializer.
1716 (m2_language::parser): New member function.
1717 * objc-lang.c (objc_language_data): Delete la_parser initializer.
1718 * opencl-lang.c (opencl_language_data): Likewise.
1719 * p-lang.c (pascal_language_data): Likewise.
1720 (pascal_language::parser): New member function.
1721 * parse.c (parse_exp_in_context): Update call to parser.
1722 * rust-lang.c (rust_language_data): Delete la_parser initializer.
1723 (rust_language::parser): New member function.
1724
37825800
AB
17252020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1726
1727 * top.c (print_gdb_configuration): Print --with-python-libdir
1728 configuration value.
1729
5b860c93
PW
17302020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1731
1732 * NEWS: Mention change to the alias command.
1733
cf00cd6f
PW
17342020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1735
1736 * cli/cli-cmds.c (lookup_cmd_for_default_args)
1737 (alias_command_completer)
1738 (make_alias_options_def_group): New functions.
1739 (alias_opts, alias_option_defs): New struct and array.
1740 (alias_usage_error): Update usage.
1741 (alias_command): Handles optional DEFAULT-ARGS... arguments.
1742 Use option framework.
1743 (_initialize_cli_cmds): Update alias command help.
1744 Update aliases command help.
1745 (show_user):
1746 Add NULL for new default_args lookup_cmd argument.
1747 (valid_command_p): Rename to validate_aliased_command.
1748 Add NULL for new default_args lookup_cmd argument. Verify that the
1749 aliased_command has no default args.
1750 * cli/cli-decode.c (help_cmd): Show aliases definitions.
1751 (lookup_cmd_1, lookup_cmd): New argument default_args.
1752 (add_alias_cmd):
1753 Add NULL for new default_args lookup_cmd argument.
1754 (print_help_for_command): Show default args under the layout
1755 alias some_alias = some_aliased_cmd some_alias_default_arg.
1756 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
1757 xfree default_args in destructor.
1758 * cli/cli-script.c (process_next_line, do_define_command):
1759 Add NULL for new default_args lookup_cmd argument.
1760 * command.h: Declare new default_args argument in lookup_cmd
1761 and lookup_cmd_1.
1762 * completer.c (complete_line_internal_1):
1763 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1764 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
1765 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
1766 Likewise.
1767 * infcmd.c (_initialize_infcmd): Likewise.
1768 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
1769 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
1770 * python/py-param.c (add_setshow_generic): Likewise.
1771 * remote.c (_initialize_remote): Likewise.
1772 * top.c (execute_command): Prepend default_args if command has some.
1773 (set_verbose):
1774 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1775 * tracepoint.c (validate_actionline, encode_actions_1):
1776 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1777
bd920864
TBA
17782020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1779
1780 * jit.c (jit_read_descriptor): Use bool as the return type.
1781 (jit_breakpoint_re_set_internal): Use bool as the return type.
1782 Invert the return value logic; return true if the jit breakpoint
1783 has been successfully initialized.
1784 (jit_inferior_init): Update the call to
1785 jit_breakpoint_re_set_internal.
1786
f8098322
PA
17872020-06-22 Pedro Alves <palves@redhat.com>
1788
1789 PR gdb/25939
1790 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
1791 Use the current inferior instead. Don't return
1792 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
1793 wait again.
1794 * sol-thread.c (sol_thread_target::wait): Don't reference
1795 inferior_ptid.
1796 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
1797 (sol_update_thread_list_callback): Use the current inferior's pid
1798 instead of inferior_ptid.
1799
196535a6
RO
18002020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1801
1802 * procfs.c: Cleanup many comments.
1803
1804 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
1805 (AFTER_WATCHFLAG): Replace by value.
1806
1807 (MAIN_PROC_NAME_FORMAT): Inline ...
1808 (create_procinfo): ... here.
1809
1810 (procfs_debug_inferior): Remove SYS_exec handling.
1811 (syscall_is_exec): Likewise.
1812 (procfs_set_exec_trap): Likewise.
1813
1814 (syscall_is_lwp_exit): Inline in callers.
1815 (syscall_is_exit): Likewise.
1816 (syscall_is_exec): Likewise.
1817 (syscall_is_lwp_create): Likewise.
1818
1819 (invalidate_cache): Remove #if 0 code.
1820
1821 (make_signal_thread_runnable): Remove.
1822 (procfs_target::resume): Remove #if 0 code.
1823
cf6f3e86
RO
18242020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1825
1826 PR gdb/25939
1827 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
1828 call ...
1829 (procfs_target::create_inferior): ... here.
1830
48e9cc84
PW
18312020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1832
1833 * exec.c (validate_exec_file): Ensure the build-id is up to
1834 date by calling reopen_exec_file (that checks file timestamp
1835 to decide to re-read the file).
1836
3922b302
PA
18372020-06-18 Pedro Alves <palves@redhat.com>
1838
1839 PR gdb/25412
1840 * gdbthread.h (delete_thread, delete_thread_silent)
1841 (find_thread_ptid): Update comments.
1842 * thread.c (current_thread_): New global.
1843 (is_current_thread): Move higher, and reimplement.
1844 (inferior_thread): Reimplement.
1845 (set_thread_exited): Use bool. Add assertions.
1846 (add_thread_silent): Simplify thread-reuse handling by always
1847 calling delete_thread.
1848 (delete_thread): Remove intro comment.
1849 (find_thread_ptid): Skip exited threads.
1850 (switch_to_thread_no_regs): Write to current_thread_.
1851 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
1852 INFERIOR_PTID. Clear current_thread_.
1853
6dbdab44
PA
18542020-06-18 Pedro Alves <palves@redhat.com>
1855
1856 * aix-thread.c (pd_update): Use switch_to_thread.
1857
2da4b788
PA
18582020-06-18 Pedro Alves <palves@redhat.com>
1859
1860 * ravenscar-thread.c (ravenscar_thread_target): Update.
1861 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
1862 (ravenscar_thread_target::add_active_thread): ... this. Don't
1863 set m_base_ptid here. Update to avoid referencing inferior_ptid.
1864 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
1865
50838d1b
PA
18662020-06-18 Pedro Alves <palves@redhat.com>
1867
1868 * nat/windows-nat.c (current_windows_thread): Remove.
1869 * nat/windows-nat.h (current_windows_thread): Remove.
1870 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
1871 Adjust.
1872 (display_selectors): Adjust to fetch the current
1873 windows_thread_info based on inferior_ptid.
1874 (fake_create_process): No longer write to current_windows_thread.
1875 (windows_nat_target::get_windows_debug_event):
1876 Don't set inferior_ptid or current_windows_thread.
1877 (windows_nat_target::wait): Adjust to not rely on
1878 current_windows_thread.
1879 (do_initial_windows_stuff): Now a method of windows_nat_target.
1880 Switch to the last_ptid thread.
1881 (windows_nat_target::attach): Adjust.
1882 (windows_nat_target::detach): Use switch_to_no_thread instead of
1883 writing to inferior_ptid directly.
1884 (windows_nat_target::create_inferior): Adjust.
1885
31ce04e9
PA
18862020-06-18 Pedro Alves <palves@redhat.com>
1887
1888 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
1889
1ee1a363
PA
18902020-06-18 Pedro Alves <palves@redhat.com>
1891
1892 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
1893 after creating it, instead of writing to inferior_ptid. Don't
1894 write to inferior_ptid.
1895
6d350754
PA
18962020-06-18 Pedro Alves <palves@redhat.com>
1897
1898 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
1899
5d971d48
PA
19002020-06-18 Pedro Alves <palves@redhat.com>
1901
1902 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
1903 it, instead of writing to inferior_ptid.
1904
86e57d1b
PA
19052020-06-18 Pedro Alves <palves@redhat.com>
1906
1907 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
1908 to inferior_ptid.
1909
f2e1c129
PA
19102020-06-18 Pedro Alves <palves@redhat.com>
1911
1912 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
1913 instead of writing to inferior_ptid directly.
1914
60db1b85
PA
19152020-06-18 Pedro Alves <palves@redhat.com>
1916
1917 * corelow.c (core_target::close): Use switch_to_no_thread instead
1918 of writing to inferior_ptid directly.
1919 (add_to_thread_list, core_target_open): Use switch_to_thread
1920 instead of writing to inferior_ptid directly.
1921
fe7d6a8d
PA
19222020-06-18 Pedro Alves <palves@redhat.com>
1923
1924 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
1925 inferior_ptid.
1926 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
1927 inferior_ptid.
1928 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
1929 inferior_ptid directly.
1930 (darwin_nat_target::init_thread_list): Switch to thread, instead
1931 of writing to inferior_ptid.
1932 (darwin_nat_target::attach): Don't write to inferior_ptid.
1933 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
1934
975f8708
PA
19352020-06-18 Pedro Alves <palves@redhat.com>
1936
1937 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
1938 thread.
1939 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
1940 Instead use switch_to_thread.
1941 (gnu_nat_target::detach): Use switch_to_no_thread
1942 instead of writing to inferior_ptid directly. Used passed-in
1943 inferior instead of looking up the inferior by pid.
1944
1a204730
PA
19452020-06-18 Pedro Alves <palves@redhat.com>
1946
1947 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
1948 inferior_ptid.
1949
ebe84f23
PA
19502020-06-18 Pedro Alves <palves@redhat.com>
1951
1952 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
1953 inferior_ptid.
1954 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
1955 thread.
1956 (nto_procfs_target::detach): Avoid referencing
1957 inferior_ptid. Use switch_to_no_thread instead of writing to
1958 inferior_ptid directly.
1959 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
1960 instead of writing to inferior_ptid directly.
1961 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
1962 to thread.
1963
191f02e5
PA
19642020-06-18 Pedro Alves <palves@redhat.com>
1965
1966 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
1967 after creating it, instead of writing to inferior_ptid.
1968 (gdbsim_target_open): Use switch_to_no_thread instead of writing
1969 to inferior_ptid directly.
1970 (gdbsim_target::wait): Don't write to inferior_ptid.
1971
0ac55310
PA
19722020-06-18 Pedro Alves <palves@redhat.com>
1973
1974 * remote.c (remote_target::remote_notice_new_inferior): Use
1975 switch_to_thread instead of writing to inferior_ptid directly.
1976 (remote_target::add_current_inferior_and_thread): Use
1977 switch_to_no_thread instead of writing to inferior_ptid directly.
1978 (extended_remote_target::attach): Use switch_to_inferior_no_thread
1979 and switch_to_thread instead of using set_current_inferior or
1980 writing to inferior_ptid directly.
1981
5233f39b
PA
19822020-06-18 Pedro Alves <palves@redhat.com>
1983
1984 * tracectf.c (ctf_target_open): Switch to added thread instead of
1985 writing to inferior_ptid directly.
1986 (ctf_target::close): Use switch_to_no_thread instead of writing to
1987 inferior_ptid directly.
1988
087e161b
PA
19892020-06-18 Pedro Alves <palves@redhat.com>
1990
1991 * tracefile-tfile.c (tfile_target_open): Don't write to
1992 inferior_ptid directly, instead switch to added thread.
1993 (tfile_target::close): Use switch_to_no_thread instead of writing
1994 to inferior_ptid directly.
1995
7fb43e53
PA
19962020-06-18 Pedro Alves <palves@redhat.com>
1997
1998 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
1999 (procfs_target::detach): Use switch_to_no_thread
2000 instead of writing to inferior_ptid directly.
2001 (do_attach): Change return type to void. Switch to the added
2002 thread.
2003 (procfs_target::create_inferior): Switch to the added thread.
2004 (procfs_do_thread_registers): Don't write to inferior_ptid.
2005
18493a00
PA
20062020-06-18 Pedro Alves <palves@redhat.com>
2007
2008 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
2009 of writing to inferior_ptid.
2010 (scoped_restore_exited_inferior): Delete.
2011 (handle_vfork_child_exec_or_exit): Simplify using
2012 scoped_restore_current_pspace_and_thread. Use switch_to_thread
2013 instead of writing to inferior_ptid.
2014 (THREAD_STOPPED_BY): Delete.
2015 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
2016 (thread_stopped_by_hw_breakpoint): Delete.
2017 (save_waitstatus): Use
2018 scoped_restore_current_thread+switch_to_thread, and call
2019 target_stopped_by_watchpoint instead of
2020 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
2021 instead of thread_stopped_by_sw_breakpoint, and
2022 target_stopped_by_hw_breakpoint instead of
2023 thread_stopped_by_hw_breakpoint.
2024 (handle_inferior_event)
2025 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
2026 inferior_ptid directly, nor
2027 set_current_inferior/set_current_program_space. Use
2028 switch_to_thread / switch_to_inferior_no_thread instead.
2029
a0776b13
PA
20302020-06-18 Pedro Alves <palves@redhat.com>
2031
2032 * target.c (generic_mourn_inferior): Use switch_to_no_thread
2033 instead of writing to inferior_ptid.
2034
6155c136
PA
20352020-06-18 Pedro Alves <palves@redhat.com>
2036
2037 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
2038 added thread.
2039 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
2040 to the added thread.
2041 (inf_ptrace_target::detach_success): Use switch_to_no_thread
2042 instead of writing to inferior_ptid.
2043
c5316fc6
PA
20442020-06-18 Pedro Alves <palves@redhat.com>
2045
2046 * gdbarch-selftests.c: Include "progspace-and-thread.h".
2047 (register_to_value_test): Mock a program_space too. Heap-allocate
2048 the address space. Don't write to inferior_ptid. Use
2049 switch_to_thread instead.
2050
8df01799
PA
20512020-06-18 Pedro Alves <palves@redhat.com>
2052
2053 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
2054 Delete.
2055 (find_signalled_thread()): New, factored out from
2056 linux_make_corefile_notes and adjusted to handle exited threads.
2057 (linux_make_corefile_notes): Adjust to use the new
2058 find_signalled_thread.
2059
41792d68
PA
20602020-06-18 Pedro Alves <palves@redhat.com>
2061
2062 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
2063 of saving/restoring inferior_ptid.
2064
612f258a
TT
20652020-06-17 Tom Tromey <tom@tromey.com>
2066
2067 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
2068 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
2069 declare.
2070 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
2071
efb763a5
SM
20722020-06-15 Simon Marchi <simon.marchi@efficios.com>
2073
2074 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
2075 of partial symtabs.
2076
2951f6c0
SM
20772020-06-17 Simon Marchi <simon.marchi@efficios.com>
2078
2079 * regformats/reg-arm.dat: Remove.
2080 * regformats/reg-bfin.dat: Remove.
2081 * regformats/reg-cris.dat: Remove.
2082 * regformats/reg-crisv32.dat: Remove.
2083 * regformats/reg-m32r.dat: Remove.
2084 * regformats/reg-tilegx.dat: Remove.
2085 * regformats/reg-tilegx32.dat: Remove.
2086
7d458ea5
SM
20872020-06-17 Simon Marchi <simon.marchi@efficios.com>
2088
2089 * features/Makefile (WHICH): Remove arm files.
2090 * regformats/arm/arm-with-iwmmxt.dat: Remove.
2091 * regformats/arm/arm-with-neon.dat: Remove.
2092 * regformats/arm/arm-with-vfpv2.dat: Remove.
2093 * regformats/arm/arm-with-vfpv3.dat: Remove.
2094
3af96c0d
SM
20952020-06-17 Simon Marchi <simon.marchi@efficios.com>
2096
2097 * features/Makefile (XMLTOC): Remove rx.xml.
2098
b25e22fd
PA
20992020-06-17 Pedro Alves <palves@redhat.com>
2100
2101 * gdbthread.h (thread_control_state) <trap_expected> Update
2102 comments.
2103
a78a19b1
AB
21042020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2105
2106 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
2107 ada_language::lookup_symbol_nonlocal.
2108 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
2109 (ada_language::lookup_symbol_nonlocal): New member function,
2110 implementation from ada_lookup_symbol_nonlocal.
2111 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
2112 initializer.
2113 (cplus_language_data): Delete la_lookup_symbol_nonlocal
2114 initializer.
2115 (cplus_language::lookup_symbol_nonlocal): New member function.
2116 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
2117 (minimal_language_data) Likewise.
2118 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
2119 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
2120 initializer.
2121 (d_language::lookup_symbol_nonlocal): New member function.
2122 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
2123 initializer.
2124 (f_language::lookup_symbol_nonlocal): New member function.
2125 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
2126 initializer.
2127 * language.c (unknown_language_data): Likewise.
2128 (auto_language_data): Likewise.
2129 * language.h (language_data): Delete la_lookup_symbol_nonlocal
2130 field.
2131 (language_defn::lookup_symbol_nonlocal): New member function.
2132 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
2133 initializer.
2134 * objc-lang.c (objc_language_data): Likewise.
2135 * opencl-lang.c (opencl_language_data): Likewise.
2136 * p-lang.c (pascal_language_data): Likewise.
2137 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
2138 rust_language::lookup_symbol_nonlocal.
2139 (rust_language_data): Delete la_lookup_symbol_nonlocal
2140 initializer.
2141 (rust_language::lookup_symbol_nonlocal): New member function,
2142 implementation from rust_lookup_symbol_nonlocal.
2143 * symtab.c (lookup_symbol_aux): Update call to
2144 lookup_symbol_nonlocal.
2145 (basic_lookup_symbol_nonlocal): Rename to...
2146 (language_defn::lookup_symbol_nonlocal): ...this, and update
2147 header comment. Remove language_defn parameter, and replace with
2148 uses of `this'.
2149 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
2150
ebe2334e
AB
21512020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2152
2153 * ada-lang.c (ada_language_data): Delete la_value_print_inner
2154 initializer.
2155 (ada_language::value_print_inner): New member function.
2156 * c-lang.c (c_language_data): Delete la_value_print_inner
2157 initializer.
2158 (cplus_language_data): Likewise.
2159 (asm_language_data): Likewise.
2160 (minimal_language_data): Likewise.
2161 * d-lang.c (d_language_data): Likewise.
2162 (d_language::value_print_inner): New member function.
2163 * f-lang.c (f_language_data): Delete la_value_print_inner
2164 initializer.
2165 (f_language::value_print_inner): New member function.
2166 * f-lang.h (f_value_print_innner): Rename to...
2167 (f_value_print_inner): ...this (note spelling of 'inner').
2168 * f-valprint.c (f_value_print_innner): Rename to...
2169 (f_value_print_inner): ...this (note spelling of 'inner').
2170 * go-lang.c (go_language_data): Delete la_value_print_inner
2171 initializer.
2172 (go_language::value_print_inner): New member function.
2173 * language.c (language_defn::value_print_inner): Define new member
2174 function.
2175 (unk_lang_value_print_inner): Delete.
2176 (unknown_language_data): Delete la_value_print_inner initializer.
2177 (unknown_language::value_print_inner): New member function.
2178 (auto_language_data): Delete la_value_print_inner initializer.
2179 (auto_language::value_print_inner): New member function.
2180 * language.h (language_data): Delete la_value_print_inner field.
2181 (language_defn::value_print_inner): Delcare new member function.
2182 * m2-lang.c (m2_language_data): Delete la_value_print_inner
2183 initializer.
2184 (m2_language::value_print_inner): New member function.
2185 * objc-lang.c (objc_language_data): Delete la_value_print_inner
2186 initializer.
2187 * opencl-lang.c (opencl_language_data): Likewise.
2188 * p-lang.c (pascal_language_data): Likewise.
2189 (pascal_language::value_print_inner): New member function.
2190 * rust-lang.c (rust_language_data): Delete la_value_print_inner
2191 initializer.
2192 (rust_language::value_print_inner): New member function.
2193 * valprint.c (do_val_print): Update call to value_print_inner.
2194
a1d1fa3e
AB
21952020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2196
2197 * ada-lang.c (ada_language_data): Delete la_value_print
2198 initializer.
2199 (ada_language::value_print): New member function.
2200 * c-lang.c (c_language_data): Delete la_value_print initializer.
2201 (cplus_language_data): Likewise.
2202 (asm_language_data): Likewise.
2203 (minimal_language_data): Likewise.
2204 * d-lang.c (d_language_data): Likewise.
2205 * f-lang.c (f_language_data): Likewise.
2206 * go-lang.c (go_language_data): Likewise.
2207 * language.c (unk_lang_value_print): Delete.
2208 (language_defn::value_print): Define new member function.
2209 (unknown_language_data): Delete la_value_print initializer.
2210 (unknown_language::value_print): New member function.
2211 (auto_language_data): Delete la_value_print initializer.
2212 (auto_language::value_print): New member function.
2213 * language.h (language_data): Delete la_value_print field.
2214 (language_defn::value_print): Declare new member function.
2215 (LA_VALUE_PRINT): Update call to value_print.
2216 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
2217 * objc-lang.c (objc_language_data): Likewise.
2218 * opencl-lang.c (opencl_language_data): Likewise.
2219 * p-lang.c (pascal_language_data): Likewise.
2220 (pascal_language::value_print): New member function.
2221 * rust-lang.c (rust_language_data): Delete la_value_print
2222 initializer.
2223
f16a9f57
AB
22242020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2225
2226 * ada-lang.c (ada_watch_location_expression): Rename to
2227 ada_language::watch_location_expression.
2228 (ada_language_data): Delete la_watch_location_expression
2229 initializer.
2230 (ada_language::watch_location_expression): New member function,
2231 implementation from ada_watch_location_expression.
2232 * breakpoint.c (watch_command_1): Update call to
2233 watch_location_expression.
2234 * c-lang.c (c_watch_location_expression): Rename to
2235 language_defn::watch_location_expression.
2236 (c_language_data): Delete la_watch_location_expression
2237 initializer.
2238 (cplus_language_data): Likewise.
2239 (asm_language_data): Likewise.
2240 (minimal_language_data): Likewise.
2241 * c-lang.h (c_watch_location_expression): Delete declaration.
2242 * d-lang.c (d_language_data): Delete la_watch_location_expression
2243 initializer.
2244 * f-lang.c (f_language_data): Likewise.
2245 * go-lang.c (go_language_data): Likewise.
2246 * language.c (language_defn::watch_location_expression): Member
2247 function implementation from c_watch_location_expression.
2248 (unknown_language_data): Delete la_watch_location_expression
2249 initializer.
2250 (auto_language_data): Likewise.
2251 * language.h (language_data): Delete la_watch_location_expression
2252 field.
2253 (language_defn::watch_location_expression): Declare new member
2254 function.
2255 * m2-lang.c (m2_language_data): Delete
2256 la_watch_location_expression initializer.
2257 * objc-lang.c (objc_language_data): Likewise.
2258 * opencl-lang.c (opencl_language_data): Likewise.
2259 * p-lang.c (pascal_language_data): Likewise.
2260 * rust-lang.c (rust_watch_location_expression): Rename to
2261 rust_language::watch_location_expression.
2262 (rust_language_data): Delete la_watch_location_expression
2263 initializer.
2264 (rust_language::watch_location_expression): New member function,
2265 implementation from rust_watch_location_expression.
2266
7e56227d
AB
22672020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2268
2269 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
2270 ada_language::collect_symbol_completion_matches.
2271 (ada_language_data): Delete la_collect_symbol_completion_matches
2272 initializer.
2273 (ada_language::collect_symbol_completion_matches): New member
2274 function, implementation from
2275 ada_collect_symbol_completion_matches.
2276 * c-lang.c (c_language_data): Delete
2277 la_collect_symbol_completion_matches initializer.
2278 (cplus_language_data): Likewise.
2279 (asm_language_data): Likewise.
2280 (minimal_language_data): Likewise.
2281 * d-lang.c (d_language_data): Likewise.
2282 * f-lang.c (f_collect_symbol_completion_matches): Rename to
2283 f_language::collect_symbol_completion_matches.
2284 (f_language_data): Delete la_collect_symbol_completion_matches
2285 initializer.
2286 (f_language::collect_symbol_completion_matches) New member
2287 function, implementation from f_collect_symbol_completion_matches.
2288 * go-lang.c (go_language_data): Delete
2289 la_collect_symbol_completion_matches initializer.
2290 * language.c (unknown_language_data): Likewise.
2291 (auto_language_data): Likewise.
2292 * language.h (language_data): Delete
2293 la_collect_symbol_completion_matches field.
2294 (language_defn::collect_symbol_completion_matches): New member
2295 function.
2296 * m2-lang.c (m2_language_data): Delete
2297 la_collect_symbol_completion_matches initializer.
2298 * objc-lang.c (objc_language_data): Likewise.
2299 * opencl-lang.c (opencl_language_data): Likewise.
2300 * p-lang.c (pascal_language_data): Likewise.
2301 * rust-lang.c (rust_language_data): Likewise.
2302 * symtab.c (default_collect_symbol_completion_matches): Delete.
2303 (collect_symbol_completion_matches): Update call to
2304 collect_symbol_completion_matches.
2305 (collect_symbol_completion_matches_type): Likewise.
2306 * symtab.h (default_collect_symbol_completion_matches): Delete
2307 declaration.
2308
53fc67f8
AB
23092020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2310
2311 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
2312 (ada_language_data): Delete la_word_break_characters initializer.
2313 (ada_language::word_break_characters): New member function.
2314 * c-lang.c (c_language_data): Delete la_word_break_characters
2315 initializer.
2316 (cplus_language_data): Likewise.
2317 (asm_language_data): Likewise.
2318 (minimal_language_data): Likewise.
2319 * completer.c: Update global comment.
2320 (advance_to_expression_complete_word_point): Update call to
2321 word_break_characters.
2322 (complete_files_symbols): Likewise.
2323 (complete_line_internal_1): Likewise.
2324 (default_completer_handle_brkchars): Likewise.
2325 (skip_quoted_chars): Likewise.
2326 * d-lang.c (d_language_data): Delete la_word_break_characters
2327 initializer.
2328 * f-lang.c (f_word_break_characters): Delete.
2329 (f_language_data): Delete la_word_break_characters initializer.
2330 (f_language::word_break_characters): New member function.
2331 * go-lang.c (go_language_data): Delete la_word_break_characters
2332 initializer.
2333 * language.c (unknown_language_data): Likewise.
2334 (auto_language_data): Likewise.
2335 * language.h (default_word_break_characters): Move declaration to
2336 earlier in the file.
2337 (language_data): Delete la_word_break_characters field.
2338 (language_defn::word_break_characters): New member function.
2339 * m2-lang.c (m2_language_data): Delete la_word_break_characters
2340 initializer.
2341 * objc-lang.c (objc_language_data): Likewise.
2342 * opencl-lang.c (opencl_language_data): Likewise.
2343 * p-lang.c (pascal_language_data): Likewise.
2344 * rust-lang.c (rust_language_data): Likewise.
2345
c9debfb9
AB
23462020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2347
2348 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
2349 (ada_language_data): Delete la_get_symbol_name_matcher
2350 initializer.
2351 (language_defn::get_symbol_name_matcher_inner): New member
2352 function.
2353 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
2354 initializer.
2355 (cplus_language_data): Likewise.
2356 (cplus_language::get_symbol_name_matcher_inner): New member
2357 function.
2358 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
2359 (minimal_language_data): Likewise.
2360 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
2361 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
2362 initializer.
2363 * dictionary.c (iter_match_first_hashed): Update call to
2364 get_symbol_name_matcher.
2365 (iter_match_next_hashed): Likewise.
2366 (iter_match_next_linear): Likewise.
2367 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
2368 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
2369 initializer.
2370 (f_language::get_symbol_name_matcher_inner): New member function.
2371 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
2372 initializer.
2373 * language.c (default_symbol_name_matcher): Update header comment,
2374 make static.
2375 (language_defn::get_symbol_name_matcher): New definition.
2376 (language_defn::get_symbol_name_matcher_inner): Likewise.
2377 (get_symbol_name_matcher): Delete.
2378 (unknown_language_data): Delete la_get_symbol_name_matcher
2379 initializer.
2380 (auto_language_data): Likewise.
2381 * language.h (language_data): Delete la_get_symbol_name_matcher
2382 field.
2383 (language_defn::get_symbol_name_matcher): New member function.
2384 (language_defn::get_symbol_name_matcher_inner): Likewise.
2385 (default_symbol_name_matcher): Delete declaration.
2386 * linespec.c (find_methods): Update call to
2387 get_symbol_name_matcher.
2388 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
2389 initializer.
2390 * minsyms.c (lookup_minimal_symbol): Update call to
2391 get_symbol_name_matcher.
2392 (iterate_over_minimal_symbols): Likewise.
2393 * objc-lang.c (objc_language_data): Delete
2394 la_get_symbol_name_matcher initializer.
2395 * opencl-lang.c (opencl_language_data): Likewise.
2396 * p-lang.c (pascal_language_data): Likewise.
2397 * psymtab.c (psymbol_name_matches): Update call to
2398 get_symbol_name_matcher.
2399 * rust-lang.c (rust_language_data): Delete
2400 la_get_symbol_name_matcher initializer.
2401 * symtab.c (symbol_matches_search_name): Update call to
2402 get_symbol_name_matcher.
2403 (compare_symbol_name): Likewise.
2404
9a49ad8c
AB
24052020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2406
2407 * ada-lang.c (ada_language_data): Delete la_compute_program
2408 initializer.
2409 * c-lang.c (c_language_data): Likewise.
2410 (c_language::compute_program): New member function.
2411 (cplus_language_data): Delete la_compute_program initializer.
2412 (cplus_language::compute_program): New member function.
2413 (asm_language_data): Delete la_compute_program initializer.
2414 (minimal_language_data): Likewise.
2415 * c-lang.h (c_compute_program): Update comment.
2416 (cplus_compute_program): Likewise.
2417 * compile/compile-c-support.c (c_compute_program): Likewise.
2418 (cplus_compute_program): Likewise.
2419 * compile/compile.c (compile_to_object): Update call to
2420 la_compute_program.
2421 * d-lang.c (d_language_data): Delete la_compute_program
2422 initializer.
2423 * f-lang.c (f_language_data): Likewise.
2424 * go-lang.c (go_language_data): Likewise.
2425 * language.c (unknown_language_data): Likewise.
2426 (auto_language_data): Likewise.
2427 * language.h (language_data): Delete la_compute_program field.
2428 (language_defn::compute_program): New member function.
2429 * m2-lang.c (m2_language_data): Delete la_compute_program
2430 initializer.
2431 * objc-lang.c (objc_language_data): Likewise.
2432 * opencl-lang.c (opencl_language_data): Likewise.
2433 * p-lang.c (pascal_language_data): Likewise.
2434 * rust-lang.c (rust_language_data): Likewise.
2435
eff93b4d
AB
24362020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2437
2438 * ada-lang.c (ada_language_data) Delete
2439 la_class_name_from_physname initializer.
2440 * c-lang.c (c_language_data): Likewise.
2441 (cplus_language_data): Likewise.
2442 (cplus_language::class_name_from_physname): New member function.
2443 (asm_language_data): Delete la_class_name_from_physname
2444 initializer.
2445 (minimal_language_data): Likewise.
2446 * d-lang.c (d_language_data): Likewise.
2447 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
2448 method on language_defn class.
2449 (guess_full_die_structure_name): Likewise.
2450 * f-lang.c (f_language_data): Delete la_class_name_from_physname
2451 initializer.
2452 * go-lang.c (go_language_data): Likewise.
2453 * language.c (language_class_name_from_physname): Delete.
2454 (unk_lang_class_name): Delete.
2455 (unknown_language_data): Delete la_class_name_from_physname
2456 initializer.
2457 (auto_language_data): Likewise.
2458 * language.h (language_data): Delete la_class_name_from_physname
2459 field.
2460 (language_defn::class_name_from_physname): New function.
2461 (language_class_name_from_physname): Delete declaration.
2462 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
2463 initializer.
2464 * objc-lang.c (objc_language_data): Likewise.
2465 * opencl-lang.c (opencl_language_data): Likewise.
2466 * p-lang.c (pascal_language_data): Likewise.
2467 * rust-lang.c (rust_language_data): Likewise.
2468
de543742
TT
24692020-06-16 Tom Tromey <tom@tromey.com>
2470
2471 * tui/tui-data.h (STATUS_NAME): New macro.
2472 * tui/tui-layout.c (tui_remove_some_windows)
2473 (initialize_known_windows, tui_register_window)
2474 (tui_layout_split::remove_windows, initialize_layouts)
2475 (tui_new_layout_command): Don't use hard-coded window names.
2476
a350efd4
TT
24772020-06-16 Tom Tromey <tom@tromey.com>
2478
2479 PR tui/25348:
2480 * tui/tui.c (tui_ensure_readline_initialized): Rename from
2481 tui_initialize_readline. Only run once. Call rl_initialize.
2482 * tui/tui.h (tui_ensure_readline_initialized): Rename from
2483 tui_initialize_readline.
2484 * tui/tui-io.c (tui_setup_io): Call
2485 tui_ensure_readline_initialized.
2486 * tui/tui-interp.c (tui_interp::init): Update.
2487
39ec0490
TT
24882020-06-16 Tom Tromey <tom@tromey.com>
2489
2490 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
2491 Also preserve the status window.
2492
d2d1ea20
TT
24932020-06-16 Tom Tromey <tom@tromey.com>
2494
2495 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
2496 where m_window==nullptr.
2497
66920317
TT
24982020-06-15 Tom Tromey <tromey@adacore.com>
2499
2500 * windows-nat.c (windows_nat::handle_output_debug_string):
2501 Update.
2502 (windows_nat::handle_ms_vc_exception): Update.
2503 * target.h (target_read_string): Change API.
2504 * target.c (target_read_string): Change API.
2505 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
2506 Update.
2507 * solib-frv.c (frv_current_sos): Update.
2508 * solib-dsbt.c (dsbt_current_sos): Update.
2509 * solib-darwin.c (darwin_current_sos): Update.
2510 * linux-thread-db.c (inferior_has_bug): Update.
2511 * expprint.c (print_subexp_standard): Update.
2512 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
2513 (ada_exception_message_1): Update.
2514
a5d871dd
TT
25152020-06-15 Tom Tromey <tromey@adacore.com>
2516
2517 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
2518
670e35fa
TT
25192020-06-15 Tom Tromey <tromey@adacore.com>
2520
2521 * valprint.c (read_string): Update comment.
2522 * target.c (MIN): Remove.
2523 (target_read_string): Rewrite.
2524
f5272a3b
TT
25252020-06-15 Tom Tromey <tromey@adacore.com>
2526
2527 * corefile.c (read_memory_string): Remove.
2528 * ada-valprint.c (ada_value_print_ptr): Update.
2529 * ada-lang.h (ada_tag_name): Change return type.
2530 * ada-lang.c (type_from_tag): Update.
2531 (ada_tag_name_from_tsd): Change return type. Use
2532 target_read_string.
2533 (ada_tag_name): Likewise.
2534 * gdbcore.h (read_memory_string): Don't declare.
2535
2c074f49
HD
25362020-06-14 Hannes Domani <ssbssa@yahoo.de>
2537
2538 * symtab.c (rbreak_command): Ignore Windows drive colon.
2539
6a17d503
SM
25402020-06-12 Simon Marchi <simon.marchi@efficios.com>
2541
2542 * NEWS: Mention removed GDBserver host support.
2543
453c733f
NC
25442020-06-12 Nelson Chu <nelson.chu@sifive.com>
2545
2546 * features/riscv/rebuild-csr-xml.sh: Updated.
2547
2b4e6a3f
TT
25482020-06-11 Tom Tromey <tom@tromey.com>
2549
2550 PR gdb/18318:
2551 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
2552
4412332f
JG
25532020-06-09 Jonny Grant <jg@jguk.org>
25542020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
2555
2556 * main.c (captured_main_1): Don't print new line after help.
2557 (print_gdb_help): add mailing list and IRC channel information
2558 to --help. Add new lines between items in the footer. Remove
2559 quotes around bug url.
2560
2f33032a
KS
25612020-06-11 Keith Seitz <keiths@redhat.com>
2562
2563 PR gdb/21356
2564 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
2565 Resolve typedefs for type length calculations.
2566
7ab96794
TV
25672020-06-10 Tom de Vries <tdevries@suse.de>
2568
2569 PR ada/24713
2570 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
2571 (write_psymbols): Enable .gdb_index for ada.
2572 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
2573 ada.
2574
e5f3ece2
TV
25752020-06-10 Tom de Vries <tdevries@suse.de>
2576
2577 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
2578 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
2579 namei" instead of "const char *name" argument.
2580 (dw2_map_matching_symbols): Use "offset_type namei" variant of
2581 dw2_symtab_iter_init.
2582
940da03e
SM
25832020-06-08 Simon Marchi <simon.marchi@efficios.com>
2584
2585 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
2586 to use type::field and field::type instead.
2587
b6cdac4b
SM
25882020-06-08 Simon Marchi <simon.marchi@efficios.com>
2589
2590 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
2591 to use field::type instead.
2592
5d14b6e5
SM
25932020-06-08 Simon Marchi <simon.marchi@efficios.com>
2594
2595 * gdbtypes.h (struct field) <type, set_type>: New methods.
2596 Rename `type` field to...
2597 <m_type>: ... this. Change references throughout to use type or
2598 set_type methods.
2599 (FIELD_TYPE): Use field::type. Change call sites that modify
2600 the field's type to use field::set_type instead.
2601
3d967001
SM
26022020-06-08 Simon Marchi <simon.marchi@efficios.com>
2603
2604 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
2605 to use type::index_type instead.
2606
262abc0d
SM
26072020-06-08 Simon Marchi <simon.marchi@efficios.com>
2608
2609 * gdbtypes.h (struct type) <index_type, set_index_type>: New
2610 methods.
2611 (TYPE_INDEX_TYPE): Use type::index_type.
2612 * gdbtypes.c (create_array_type_with_stride): Likewise.
2613
82836c92
TT
26142020-06-07 Tom Tromey <tom@tromey.com>
2615
2616 * valprint.c (generic_val_print_float): Remove "embedded_offset"
2617 parameter.
2618 (generic_value_print): Update.
2619
940dace9
AB
26202020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2621
2622 Revert commit 982a38f60b0.
2623 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
2624
982a38f6
AB
26252020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2626
2627 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
2628 avoid use after free.
2629
82f06518
TV
26302020-06-05 Tom de Vries <tdevries@suse.de>
2631
2632 * NEWS: Fix typos.
2633
f8c41851
SM
26342020-06-04 Simon Marchi <simon.marchi@efficios.com>
2635
2636 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
2637 the per_bfd object.
2638 (dwarf2_read_debug_names): Likewise.
2639 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
2640 object when re-using a per_bfd object with an index.
2641
f9b5d5ea
TV
26422020-06-03 Tom de Vries <tdevries@suse.de>
2643
2644 PR symtab/26046
2645 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
2646 children for C++.
2647 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
2648 DW_TAG_subprogram.
2649
f6eee2d0
AB
26502020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2651
2652 * ada-lang.c (ada_language_data): Delete skip_trampoline
2653 initializer.
2654 * c-lang.c (c_language_data): Likewise.
2655 (cplus_language_data): Likewise.
2656 (cplus_language::skip_trampoline): New member function.
2657 (asm_language_data): Delete skip_trampoline initializer.
2658 (minimal_language_data): Likewise.
2659 * d-lang.c (d_language_data): Likewise.
2660 * f-lang.c (f_language_data): Likewise.
2661 * go-lang.c (go_language_data): Likewise.
2662 * language.c (unk_lang_trampoline): Delete function.
2663 (skip_language_trampoline): Update.
2664 (unknown_language_data): Delete skip_trampoline initializer.
2665 (auto_language_data): Likewise.
2666 * language.h (language_data): Delete skip_trampoline field.
2667 (language_defn::skip_trampoline): New function.
2668 * m2-lang.c (m2_language_data): Delete skip_trampoline
2669 initializer.
2670 * objc-lang.c (objc_skip_trampoline): Delete function, move
2671 implementation to objc_language::skip_trampoline.
2672 (objc_language_data): Delete skip_trampoline initializer.
2673 (objc_language::skip_trampoline): New member function with
2674 implementation from objc_skip_trampoline.
2675 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
2676 initializer.
2677 * p-lang.c (pascal_language_data): Likewise.
2678 * rust-lang.c (rust_language_data): Likewise.
2679
0a50df5d
AB
26802020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2681
2682 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
2683 (ada_language::demangle): New member function.
2684 * c-lang.c (c_language_data): Delete la_demangle initializer.
2685 (cplus_language_data): Delete la_demangle initializer.
2686 (cplus_language::demangle): New member function.
2687 (asm_language_data): Delete la_demangle initializer.
2688 (minimal_language_data): Delete la_demangle initializer.
2689 * d-lang.c (d_language_data): Delete la_demangle initializer.
2690 (d_language::demangle): New member function.
2691 * f-lang.c (f_language_data): Delete la_demangle initializer.
2692 (f_language::demangle): New member function.
2693 * go-lang.c (go_language_data): Delete la_demangle initializer.
2694 (go_language::demangle): New member function.
2695 * language.c (language_demangle): Update.
2696 (unk_lang_demangle): Delete.
2697 (unknown_language_data): Delete la_demangle initializer.
2698 (unknown_language::demangle): New member function.
2699 (auto_language_data): Delete la_demangle initializer.
2700 (auto_language::demangle): New member function.
2701 * language.h (language_data): Delete la_demangle field.
2702 (language_defn::demangle): New function.
2703 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
2704 * objc-lang.c (objc_language_data): Delete la_demangle
2705 initializer.
2706 (objc_language::demangle): New member function.
2707 * opencl-lang.c (opencl_language_data): Delete la_demangle
2708 initializer.
2709 * p-lang.c (pascal_language_data): Likewise.
2710 * rust-lang.c (rust_language_data): Likewise.
2711 (rust_language::demangle): New member function.
2712
fbfb0a46
AB
27132020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2714
2715 * ada-lang.c (ada_language_data): Delete la_print_type
2716 initializer.
2717 (ada_language::print_type): New member function.
2718 * c-lang.c (c_language_data): Delete la_print_type initializer.
2719 (c_language::print_type): New member function.
2720 (cplus_language_data): Delete la_print_type initializer.
2721 (cplus_language::print_type): New member function.
2722 (asm_language_data): Delete la_print_type initializer.
2723 (asm_language::print_type): New member function.
2724 (minimal_language_data): Delete la_print_type initializer.
2725 (minimal_language::print_type): New member function.
2726 * d-lang.c (d_language_data): Delete la_print_type initializer.
2727 (d_language::print_type): New member function.
2728 * f-lang.c (f_language_data): Delete la_print_type initializer.
2729 (f_language::print_type): New member function.
2730 * go-lang.c (go_language_data): Delete la_print_type initializer.
2731 (go_language::print_type): New member function.
2732 * language.c (unk_lang_print_type): Delete.
2733 (unknown_language_data): Delete la_print_type initializer.
2734 (unknown_language::print_type): New member function.
2735 (auto_language_data): Delete la_print_type initializer.
2736 (auto_language::print_type): New member function.
2737 * language.h (language_data): Delete la_print_type field.
2738 (language_defn::print_type): New function.
2739 (LA_PRINT_TYPE): Update.
2740 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
2741 (m2_language::print_type): New member function.
2742 * objc-lang.c (objc_language_data): Delete la_print_type
2743 initializer.
2744 (objc_language::print_type): New member function.
2745 * opencl-lang.c (opencl_print_type): Delete, implementation moved
2746 to opencl_language::print_type.
2747 (opencl_language_data): Delete la_print_type initializer.
2748 (opencl_language::print_type): New member function, implementation
2749 from opencl_print_type.
2750 * p-lang.c (pascal_language_data): Delete la_print_type
2751 initializer.
2752 (pascal_language::print_type): New member function.
2753 * rust-lang.c (rust_print_type): Delete, implementation moved to
2754 rust_language::print_type.
2755 (rust_language_data): Delete la_print_type initializer.
2756 (rust_language::print_type): New member function, implementation
2757 from rust_print_type.
2758
6f827019
AB
27592020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2760
2761 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
2762 implementation moves to...
2763 (ada_language::sniff_from_mangled_name): ...here. Update return
2764 type.
2765 (ada_language_data): Delete la_sniff_from_mangled_name
2766 initializer.
2767 * c-lang.c (c_language_data): Likewise.
2768 (cplus_language_data): Likewise.
2769 (cplus_language::sniff_from_mangled_name): New member function,
2770 implementation taken from gdb_sniff_from_mangled_name.
2771 (asm_language_data): Delete la_sniff_from_mangled_name
2772 initializer.
2773 (minimal_language_data): Likewise.
2774 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
2775 implementation moves to cplus_language::sniff_from_mangled_name.
2776 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
2777 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
2778 moves to...
2779 (d_language::sniff_from_mangled_name): ...here.
2780 (d_language_data): Delete la_sniff_from_mangled_name initializer.
2781 * f-lang.c (f_language_data): Likewise.
2782 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
2783 moves to...
2784 (go_language::sniff_from_mangled_name): ...here.
2785 (go_language_data): Delete la_sniff_from_mangled_name initializer.
2786 * language.c (language_sniff_from_mangled_name): Delete.
2787 (unknown_language_data): Delete la_sniff_from_mangled_name
2788 initializer.
2789 (auto_language_data): Likewise.
2790 * language.h (language_data): Delete la_sniff_from_mangled_name
2791 field.
2792 (language_defn::sniff_from_mangled_name): New function.
2793 (language_sniff_from_mangled_name): Delete declaration.
2794 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
2795 field.
2796 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
2797 implementation moves to...
2798 (objc_language::sniff_from_mangled_name): ...here.
2799 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
2800 * opencl-lang.c (opencl_language_data): Likewise.
2801 * p-lang.c (pascal_language_data): Likewise.
2802 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
2803 implementation moves to...
2804 (rust_language::sniff_from_mangled_name): ...here.
2805 (rust_language_data): Delete la_sniff_from_mangled_name
2806 initializer.
2807 * symtab.c (symbol_find_demangled_name): Call
2808 sniff_from_mangled_name member function.
2809
fb8006fd
AB
28102020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2811
2812 * ada-lang.c (ada_language_data): Delete la_search_name_hash
2813 initializer.
2814 * c-lang.c (c_language_data): Likewise.
2815 (cplus_language_data): Likewise.
2816 (cplus_language::search_name_hash): New member function.
2817 (asm_language_data): Delete la_search_name_hash initializer.
2818 (minimal_language_data): Likewise.
2819 * d-lang.c (d_language_data): Likewise.
2820 * dictionary.c (default_search_name_hash): Rename to...
2821 (language_defn::search_name_hash): ...this.
2822 * f-lang.c (f_language_data): Likewise.
2823 (f_language::search_name_hash): New member function.
2824 * go-lang.c (go_language_data): Delete la_search_name_hash
2825 initializer.
2826 * language.c (unknown_language_data): Likewise.
2827 (auto_language_data): Likewise.
2828 * language.h (struct language_data): Delete la_search_name_hash
2829 field.
2830 (language_defn::search_name_hash): Declare new member function.
2831 (default_search_name_hash): Delete declaration.
2832 * m2-lang.c (m2_language_data): Delete la_search_name_hash
2833 initializer.
2834 * objc-lang.c (objc_language_data): Likewise.
2835 * opencl-lang.c (opencl_language_data): Likewise.
2836 * p-lang.c (pascal_language_data): Likewise.
2837 * rust-lang.c (rust_language_data): Likewise.
2838 * symtab.c (search_name_hash): Update call.
2839
8e25bafe
AB
28402020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2841
2842 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
2843 initializer.
2844 * c-lang.c (class compile_instance): Declare.
2845 (c_language_data): Delete la_get_compile_instance initializer.
2846 (c_language::get_compile_instance): New member function.
2847 (cplus_language_data): Delete la_get_compile_instance initializer.
2848 (cplus_language::get_compile_instance): New member function.
2849 (asm_language_data): Delete la_get_compile_instance initializer.
2850 (minimal_language_data): Likewise.
2851 * c-lang.h (c_get_compile_context): Update comment.
2852 (cplus_get_compile_context): Update comment.
2853 * compile/compile.c (compile_to_object): Update calls, don't rely
2854 on function pointer being NULL.
2855 * d-lang.c (d_language_data): Delete la_get_compile_instance
2856 initializer.
2857 * f-lang.c (f_language_data): Likewise.
2858 * go-lang.c (go_language_data): Likewise.
2859 * language.c (unknown_language_data): Likewise.
2860 (auto_language_data): Likewise.
2861 * language.h (language_data): Delete la_get_compile_instance field.
2862 (language_defn::get_compile_instance): New member function.
2863 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
2864 initializer.
2865 * objc-lang.c (objc_language_data): Likewise.
2866 * opencl-lang.c (opencl_language_data): Likewise.
2867 * p-lang.c (pascal_language_data): Likewise.
2868 * rust-lang.c (rust_language_data): Likewise.
2869
4009ee92
AB
28702020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2871
2872 * ada-lang.c (ada_add_all_symbols): Update comment.
2873 (ada_iterate_over_symbols): Delete, move implementation to...
2874 (ada_language::iterate_over_symbols): ...here, a new member
2875 function, rewrite to use range based for loop.
2876 (ada_language_data): Delete la_iterate_over_symbols initializer.
2877 * c-lang.c (c_language_data): Likewise.
2878 (cplus_language_data): Likewise.
2879 (asm_language_data): Likewise.
2880 (minimal_language_data): Likewise.
2881 * d-lang.c (d_language_data): Likewise.
2882 * f-lang.c (f_language_data): Likewise.
2883 * go-lang.c (go_language_data): Likewise.
2884 * language.c (unknown_language_data): Likewise.
2885 (auto_language_data): Likewise.
2886 * language.h (language_data): Delete la_iterate_over_symbols field.
2887 (language_defn::iterate_over_symbols): New member function.
2888 (LA_ITERATE_OVER_SYMBOLS): Update.
2889 * linespec.c (iterate_over_all_matching_symtabs): Update.
2890 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
2891 initializer.
2892 * objc-lang.c (objc_language_data): Likewise.
2893 * opencl-lang.c (opencl_language_data): Likewise.
2894 * p-lang.c (pascal_language_data): Likewise.
2895 * rust-lang.c (rust_language_data): Likewise.
2896
54f4ca46
AB
28972020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2898
2899 * ada-lang.c (ada_language_data): Delete
2900 la_lookup_transparent_type initializer.
2901 * c-lang.c (c_language_data): Likewise.
2902 (cplus_language_data): Likewise.
2903 (cplus_language::lookup_transparent_type): New member function.
2904 (asm_language_data): Delete la_lookup_transparent_type
2905 initializer.
2906 (minimal_language_data): Likewise.
2907 * d-lang.c (d_language_data): Likewise.
2908 * f-lang.c (f_language_data): Likewise.
2909 * go-lang.c (go_language_data): Likewise.
2910 * language.c (unknown_language_data): Likewise.
2911 (auto_language_data): Likewise.
2912 * language.h (struct language_data): Delete
2913 la_lookup_transparent_type field.
2914 (language_defn::lookup_transparent_type): New member function.
2915 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
2916 initializer.
2917 * objc-lang.c (objc_language_data): Likewise.
2918 * opencl-lang.c (opencl_language_data): Likewise.
2919 * p-lang.c (pascal_language_data): Likewise.
2920 * rust-lang.c (rust_language_data): Likewise.
2921 * symtab.c (symbol_matches_domain): Update call.
2922
1fb314aa
AB
29232020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2924
2925 * ada-lang.c (ada_language_arch_info): Delete function, move
2926 implementation to...
2927 (ada_language::language_arch_info): ...here, a new member
2928 function.
2929 (ada_language_data): Delete la_language_arch_info.
2930 * c-lang.c (c_language_data): Likewise.
2931 (c_language::language_arch_info): New member function.
2932 (cplus_language_arch_info): Delete function, move
2933 implementation to...
2934 (cplus_language::language_arch_info): ...here, a new member
2935 function.
2936 (cplus_language_data): Delete la_language_arch_info.
2937 (asm_language_data): Likewise.
2938 (asm_language::language_arch_info): New member function.
2939 (minimal_language_data): Delete la_language_arch_info.
2940 (minimal_language::language_arch_info): New member function.
2941 * d-lang.c (d_language_arch_info): Delete function, move
2942 implementation to...
2943 (d_language::language_arch_info): ...here, a new member
2944 function.
2945 (d_language_data): Delete la_language_arch_info.
2946 * f-lang.c (f_language_arch_info): Delete function, move
2947 implementation to...
2948 (f_language::language_arch_info): ...here, a new member
2949 function.
2950 (f_language_data): Delete la_language_arch_info.
2951 * go-lang.c (go_language_arch_info): Delete function, move
2952 implementation to...
2953 (go_language::language_arch_info): ...here, a new member
2954 function.
2955 (go_language_data): Delete la_language_arch_info.
2956 * language.c (unknown_language_data): Likewise.
2957 (unknown_language::language_arch_info): New member function.
2958 (auto_language_data): Delete la_language_arch_info.
2959 (auto_language::language_arch_info): New member function.
2960 (language_gdbarch_post_init): Update call to
2961 la_language_arch_info.
2962 * language.h (language_data): Delete la_language_arch_info
2963 function pointer.
2964 (language_defn::language_arch_info): New function.
2965 * m2-lang.c (m2_language_arch_info): Delete function, move
2966 implementation to...
2967 (m2_language::language_arch_info): ...here, a new member
2968 function.
2969 (m2_language_data): Delete la_language_arch_info.
2970 * objc-lang.c (objc_language_arch_info): Delete function, move
2971 implementation to...
2972 (objc_language::language_arch_info): ...here, a new member
2973 function.
2974 (objc_language_data): Delete la_language_arch_info.
2975 * opencl-lang.c (opencl_language_arch_info): Delete function, move
2976 implementation to...
2977 (opencl_language::language_arch_info): ...here, a new member
2978 function.
2979 (opencl_language_data): Delete la_language_arch_info.
2980 * p-lang.c (pascal_language_arch_info): Delete function, move
2981 implementation to...
2982 (pascal_language::language_arch_info): ...here, a new member
2983 function.
2984 (pascal_language_data): Delete la_language_arch_info.
2985 * rust-lang.c (rust_language_arch_info): Delete function, move
2986 implementation to...
2987 (rust_language::language_arch_info): ...here, a new member
2988 function.
2989 (rust_language_data): Delete la_language_arch_info.
2990
48448202
AB
29912020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2992
2993 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
2994 initializer.
2995 * c-lang.c (c_language_data): Likewise.
2996 (cplus_language_data): Likewise.
2997 (cplus_language::pass_by_reference_info): New method.
2998 (asm_language_data): Delete la_pass_by_reference initializer.
2999 (minimal_language_data): Likewise.
3000 * cp-abi.c (cp_pass_by_reference): Remove use of
3001 default_pass_by_reference.
3002 * d-lang.c (d_language_data): Likewise.
3003 * f-lang.c (f_language_data): Likewise.
3004 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
3005 default_pass_by_reference.
3006 * go-lang.c (go_language_data): Likewise.
3007 * language.c (language_pass_by_reference): Update.
3008 (default_pass_by_reference): Delete.
3009 (unknown_language_data): Delete la_pass_by_reference
3010 initializer.
3011 (auto_language_data): Likewise.
3012 * language.h (struct language_data): Delete la_pass_by_reference
3013 field.
3014 (language_defn::pass_by_reference_info): New member function.
3015 (default_pass_by_reference): Delete declaration.
3016 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
3017 initializer.
3018 * objc-lang.c (objc_language_data): Likewise.
3019 * opencl-lang.c (opencl_language_data): Likewise.
3020 * p-lang.c (pascal_language_data): Likewise.
3021 * rust-lang.c (rust_language_data): Likewise.
3022
15e5fd35
AB
30232020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3024
3025 * ada-lang.c (ada_read_var_value): Delete function, move
3026 implementation to...
3027 (ada_language::read_var_value): ...here.
3028 (ada_language_data): Delete la_read_var_value initializer.
3029 * c-lang.c (c_language_data): Likewise.
3030 (cplus_language_data): Likewise.
3031 (minimal_language_data): Likewise.
3032 * d-lang.c (d_language_data): Likewise.
3033 * f-lang.c (f_language_data): Likewise.
3034 * findvar.c (default_read_var_value): Rename to...
3035 (language_defn::read_var_value): ...this.
3036 * findvar.c (read_var_value): Update header comment, and change to
3037 call member function instead of function pointer.
3038 * go-lang.c (go_language_data): Likewise.
3039 * language.c (unknown_language_data): Delete la_read_var_value
3040 initializer.
3041 (auto_language_data): Likewise.
3042 * language.h (struct language_data): Delete la_read_var_value
3043 field.
3044 (language_defn::read_var_value): New member function.
3045 (default_read_var_value): Delete declaration.
3046 * m2-lang.c (m2_language_data): Delete la_read_var_value
3047 initializer.
3048 * objc-lang.c (objc_language_data): Likewise.
3049 * opencl-lang.c (opencl_language_data): Likewise.
3050 * p-lang.c (pascal_language_data): Likewise.
3051 * rust-lang.c (rust_language_data): Likewise.
3052 * value.h (default_read_var_value): Delete declaration.
3053
5bd40f2a
AB
30542020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3055
3056 * ada-lang.c (ada_print_array_index): Delete function, move
3057 implementation to...
3058 (ada_language::print_array_index): ...here.
3059 (ada_language_data): Delete la_print_array_index initializer.
3060 * c-lang.c (c_language_data): Likewise.
3061 (cplus_language_data): Likewise.
3062 (minimal_language_data): Likewise.
3063 * d-lang.c (d_language_data): Likewise.
3064 * f-lang.c (f_language_data): Likewise.
3065 * go-lang.c (go_language_data): Likewise.
3066 * language.c (default_print_array_index): Delete function, move
3067 implementation to...
3068 (language_defn::print_array_index): ...here.
3069 (unknown_language_data): Delete la_print_array_index initializer.
3070 (auto_language_data): Likewise.
3071 * language.h (struct language_data): Delete la_print_array_index
3072 field.
3073 (language_defn::print_array_index): New member function.
3074 (LA_PRINT_ARRAY_INDEX): Update.
3075 (default_print_array_index): Delete declaration.
3076 * m2-lang.c (m2_language_data): Delete la_print_array_index
3077 initializer.
3078 * objc-lang.c (objc_language_data): Likewise.
3079 * opencl-lang.c (opencl_language_data): Likewise.
3080 * p-lang.c (pascal_language_data): Likewise.
3081 * rust-lang.c (rust_language_data): Likewise.
3082
0874fd07
AB
30832020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3084
3085 * gdb/ada-lang.c (ada_language_defn): Convert to...
3086 (ada_language_data): ...this.
3087 (class ada_language): New class.
3088 (ada_language_defn): New static global.
3089 * gdb/c-lang.c (c_language_defn): Convert to...
3090 (c_language_data): ...this.
3091 (class c_language): New class.
3092 (c_language_defn): New static global.
3093 (cplus_language_defn): Convert to...
3094 (cplus_language_data): ...this.
3095 (class cplus_language): New class.
3096 (cplus_language_defn): New static global.
3097 (asm_language_defn): Convert to...
3098 (asm_language_data): ...this.
3099 (class asm_language): New class.
3100 (asm_language_defn): New static global.
3101 (minimal_language_defn): Convert to...
3102 (minimal_language_data): ...this.
3103 (class minimal_language): New class.
3104 (minimal_language_defn): New static global.
3105 * gdb/d-lang.c (d_language_defn): Convert to...
3106 (d_language_data): ...this.
3107 (class d_language): New class.
3108 (d_language_defn): New static global.
3109 * gdb/f-lang.c (f_language_defn): Convert to...
3110 (f_language_data): ...this.
3111 (class f_language): New class.
3112 (f_language_defn): New static global.
3113 * gdb/go-lang.c (go_language_defn): Convert to...
3114 (go_language_data): ...this.
3115 (class go_language): New class.
3116 (go_language_defn): New static global.
3117 * gdb/language.c (unknown_language_defn): Remove declaration.
3118 (current_language): Initialize to nullptr, real initialization is
3119 moved to _initialize_language.
3120 (languages): Delete global.
3121 (language_defn::languages): Define.
3122 (set_language_command): Use language_defn::languages.
3123 (set_language): Likewise.
3124 (range_error): Likewise.
3125 (language_enum): Likewise.
3126 (language_def): Likewise.
3127 (add_set_language_command): Use language_def::languages for the
3128 language list, and language_def to lookup language pointers.
3129 (skip_language_trampoline): Use language_defn::languages.
3130 (unknown_language_defn): Convert to...
3131 (unknown_language_data): ...this.
3132 (class unknown_language): New class.
3133 (unknown_language_defn): New static global.
3134 (auto_language_defn): Convert to...
3135 (auto_language_data): ...this.
3136 (class auto_language): New class.
3137 (auto_language_defn): New static global.
3138 (language_gdbarch_post_init): Use language_defn::languages.
3139 (_initialize_language): Initialize current_language.
3140 * gdb/language.h (struct language_defn): Rename to...
3141 (struct language_data): ...this.
3142 (struct language_defn): New.
3143 (auto_language_defn): Delete.
3144 (unknown_language_defn): Delete.
3145 (minimal_language_defn): Delete.
3146 (ada_language_defn): Delete.
3147 (asm_language_defn): Delete.
3148 (c_language_defn): Delete.
3149 (cplus_language_defn): Delete.
3150 (d_language_defn): Delete.
3151 (f_language_defn): Delete.
3152 (go_language_defn): Delete.
3153 (m2_language_defn): Delete.
3154 (objc_language_defn): Delete.
3155 (opencl_language_defn): Delete.
3156 (pascal_language_defn): Delete.
3157 (rust_language_defn): Delete.
3158 * gdb/m2-lang.c (m2_language_defn): Convert to...
3159 (m2_language_data): ...this.
3160 (class m2_language): New class.
3161 (m2_language_defn): New static global.
3162 * gdb/objc-lang.c (objc_language_defn): Convert to...
3163 (objc_language_data): ...this.
3164 (class objc_language): New class.
3165 (objc_language_defn): New static global.
3166 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
3167 (opencl_language_data): ...this.
3168 (class opencl_language): New class.
3169 (opencl_language_defn): New static global.
3170 * gdb/p-lang.c (pascal_language_defn): Convert to...
3171 (pascal_language_data): ...this.
3172 (class pascal_language): New class.
3173 (pascal_language_defn): New static global.
3174 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
3175 language pointer, update comment format.
3176 * gdb/rust-lang.c (rust_language_defn): Convert to...
3177 (rust_language_data): ...this.
3178 (class rust_language): New class.
3179 (rust_language_defn): New static global.
3180
1313c56e
AB
31812020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
3182
3183 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
3184 member variable.
3185 <m_stmt_at_address>: New member variable.
3186 (lnp_state_machine::record_line): Don't record some lines, update
3187 tracking of is_stmt at the same address.
3188 (lnp_state_machine::lnp_state_machine): Initialise new member
3189 variables.
3190
b7ed9f3d
ST
31912020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
3192
3193 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
3194 "-include gnu-nat-mig.h".
3195 * gnu-nat-mig.h: New file.
3196 * gnu-nat.c: Include "gnu-nat-mig.h".
3197 (exc_server, msg_reply_server, notify_server,
3198 process_reply_server): Remove declarations.
3199
14a8ad62
ST
32002020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3201
3202 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
3203 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
3204 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
3205 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
3206 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
3207 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
3208 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
3209 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
3210 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
3211 to gnu_nat_target class.
3212 * gnu-nat.c: Likewise.
3213 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
3214 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
3215 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
3216 object.
3217 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
3218 instead of `gnu_target'.
3219
0af5e106
ST
32202020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3221
3222 * i386-gnu-tdep.c: Include "gdbcore.h"
3223 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
3224 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
3225 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
3226 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
3227 i386_gnu_sigcontext_addr): New functions
3228 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
3229 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
3230 tdep.
3231
078f2fc9
ST
32322020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3233
3234 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
3235 before fork_inferior call. Avoid calling it if target_is_pushed returns
3236 true.
3237
53dff92c
ST
32382020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3239
3240 * gnu-nat.h (gnu_target): New variable declaration.
3241 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
3242 gnu_target.
3243 * gnu-nat.c (gnu_target): New variable.
3244 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
3245 add_thread_silent, and add_thread calls.
3246 (gnu_nat_target::create_inferior): Pass gnu_target to
3247 add_thread_silent, thread_change_ptid call.
3248 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
3249 call.
3250
5a8b8627
ST
32512020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3252
3253 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
3254 (gnu_nat_target::find_memory_regions): Remove unused
3255 `old_address' variable.
3256
366f550a
ST
32572020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3258
3259 * gnu-nat.c: Include "gdbarch.h".
3260
f14871bf
ST
32612020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3262
3263 * reply_mig_hack.awk (Error return): Cast function through
3264 void *, to bypass compiler function call check.
3265
c6887cfb
ST
32662020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3267
3268 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
3269 $(srcdir)/reply_mig_hack.awk.
3270
6930bffe
ST
32712020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3272
3273 * gnu-nat.h (gnu_debug_flag): Set type to bool.
3274
112c22ed
JG
32752020-05-30 Jonny Grant <jg@jguk.org>
3276
3277 * configure.ac (ACX_BUGURL): change bug URL to https.
3278
f68f85b5
PA
32792020-05-30 Pedro Alves <palves@redhat.com>
3280
3281 * cp-support.c (replace_typedefs_template): New.
3282 (replace_typedefs_qualified_name): Handle
3283 DEMANGLE_COMPONENT_TEMPLATE.
3284
976ca316
SM
32852020-05-29 Simon Marchi <simon.marchi@efficios.com>
3286
3287 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
3288 dwarf2/index-cache.h, dwarf2/index-write.c,
3289 dwarf2/index-write.h, dwarf2/line-header.c,
3290 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
3291 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
3292 variables and fields from `dwarf2_per_objfile` to just
3293 `per_objfile` throughout.
3294
989ade05
SM
32952020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
3296
3297 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3298 <push_dwarf_reg_entry_value>: Add comment.
3299
c47bae85
KB
33002020-05-28 Kevin Buettner <kevinb@redhat.com>
3301 Keith Seitz <keiths@redhat.com>
3302
3303 * python/python.c (do_start_initialization): Call PyEval_SaveThread
3304 instead of PyEval_ReleaseLock.
3305 (class gdbpy_gil): Move to earlier in file.
3306 (finalize_python): Set gdb_python_initialized.
3307 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
3308 when not initialized.
3309
44486dcf
SM
33102020-05-28 Simon Marchi <simon.marchi@efficios.com>
3311
3312 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3313 <push_dwarf_reg_entry_value>: Remove assert. Override
3314 per_objfile with caller_per_objfile.
3315
f030440d
TV
33162020-05-28 Tom de Vries <tdevries@suse.de>
3317
3318 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
3319 PR gold/15646 workaround to symbol kind "type".
3320
f0fbb768
TT
33212020-05-27 Tom Tromey <tromey@adacore.com>
3322
3323 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
3324
af0b2a3e
TT
33252020-05-27 Tom Tromey <tromey@adacore.com>
3326
3327 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
3328 Use htab_find_with_hash.
3329 <add_abbrev>: Remove "abbrev_number" parameter.
3330 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
3331 "abbrev_number" parameter. Use htab_find_slot_with_hash.
3332 (hash_abbrev): Add comment.
3333 (abbrev_table::lookup_abbrev): Move to header file.
3334 (abbrev_table::read): Update.
3335
7d00ffec
TT
33362020-05-27 Tom Tromey <tromey@adacore.com>
3337
3338 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
3339 method.
3340 <canonical_name>: New member.
3341 <raw_name>: Rename from "name".
3342 (partial_die_info): Initialize canonical_name.
3343 (scan_partial_symbols): Check raw_name.
3344 (partial_die_parent_scope, partial_die_full_name)
3345 (add_partial_symbol, add_partial_subprogram)
3346 (add_partial_enumeration, load_partial_dies): Use "name" method.
3347 (partial_die_info::name): New method.
3348 (partial_die_info::read, guess_partial_die_structure_name)
3349 (partial_die_info::fixup): Update.
3350
697bba18
TT
33512020-05-27 Tom Tromey <tromey@adacore.com>
3352
3353 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
3354 <get_ref_die_offset>: Inline.
3355 <get_ref_die_offset_complaint>: New method.
3356 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
3357 (attribute::get_ref_die_offset_complaint): Rename from
3358 get_ref_die_offset. Just issue complaint.
3359
c17ace43
HD
33602020-05-27 Hannes Domani <ssbssa@yahoo.de>
3361
3362 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
3363
96445f0b
HD
33642020-05-27 Hannes Domani <ssbssa@yahoo.de>
3365
3366 * exec.c (exec_file_attach): Use errno value of first openp failure.
3367
ac637ec3
HD
33682020-05-27 Hannes Domani <ssbssa@yahoo.de>
3369
3370 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
3371 Don't close thread handle.
3372
17ee85fc
TT
33732020-05-27 Tom Tromey <tom@tromey.com>
3374 Simon Marchi <simon.marchi@efficios.com>
3375
3376 * objfiles.h (struct objfile) <partial_symtabs>: Now a
3377 shared_ptr.
3378 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
3379 member.
3380 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
3381 dwarf2_per_bfd_objfile_data_key>: New globals.
3382 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
3383 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
3384 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
3385 shared.
3386 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
3387 short-circuit when sharing.
3388 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
3389 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
3390
39b16f87
SM
33912020-05-27 Simon Marchi <simon.marchi@efficios.com>
3392
3393 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
3394 to...
3395 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
3396 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
3397
fcf23d5b
SM
33982020-05-27 Simon Marchi <simon.marchi@efficios.com>
3399
3400 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
3401 build_name_components, find_name_components_bounds>:
3402 Add per_objfile parameter.
3403 (struct mapped_index) <symbol_name_at>: Likewise.
3404 (struct mapped_debug_names): Remove constructor.
3405 <dwarf2_per_objfile>: Remove field.
3406 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
3407 (mapped_index_base::find_name_components_bounds,
3408 mapped_index_base::build_name_components,
3409 dw2_expand_symtabs_matching_symbol): Likewise.
3410 (class mock_mapped_index) <symbol_name_at>: Likewise.
3411 (check_match): Likewise.
3412 (check_find_bounds_finds): Likewise.
3413 (test_mapped_index_find_name_component_bounds): Update.
3414 (CHECK_MATCH): Update.
3415 (dw2_expand_symtabs_matching): Update.
3416 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
3417 per_objfile parameter.
3418 <find_vec_in_debug_names>: Likewise.
3419 <m_per_objfile>: New field.
3420 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
3421 parameter.
3422 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
3423 (dw2_debug_names_iterator::next): Update.
3424 (dw2_debug_names_lookup_symbol): Update.
3425 (dw2_debug_names_expand_symtabs_for_function): Update.
3426 (dw2_debug_names_map_matching_symbols): Update.
3427 (dw2_debug_names_expand_symtabs_matching): Update.
3428 (dwarf2_read_debug_names): Update.
3429
7188ed02
SM
34302020-05-27 Simon Marchi <simon.marchi@efficios.com>
3431
3432 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
3433 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
3434 move to dwarf2_per_objfile.
3435 <read_in_chain>: Remove.
3436 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
3437 remove_all_cus, age_comp_units>: New methods.
3438 <m_dwarf2_cus>: New member.
3439 (struct dwarf2_per_cu_data) <cu>: Remove.
3440 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
3441 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
3442 moved to methods of dwarf2_per_objfile.
3443 (dwarf2_clear_marks): Remove.
3444 (dwarf2_queue_item::~dwarf2_queue_item): Update.
3445 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
3446 (dwarf2_per_bfd::free_cached_comp_units): Remove.
3447 (dwarf2_per_objfile::remove_all_cus): New.
3448 (class free_cached_comp_units) <~free_cached_comp_units>:
3449 Update.
3450 (load_cu): Update.
3451 (dw2_do_instantiate_symtab): Adjust.
3452 (fill_in_sig_entry_from_dwo_entry): Adjust.
3453 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3454 (cutu_reader::cutu_reader): Likewise.
3455 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
3456 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
3457 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
3458 and dwarf2_per_objfile::age_comp_units.
3459 (load_partial_comp_unit): Update.
3460 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
3461 (process_queue): Likewise.
3462 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
3463 backlink.
3464 (dwarf2_read_addr_index): Likewise.
3465 (follow_die_offset): Likewise.
3466 (dwarf2_fetch_die_loc_sect_off): Likewise.
3467 (dwarf2_fetch_constant_bytes): Likewise.
3468 (dwarf2_fetch_die_type_sect_off): Likewise.
3469 (follow_die_sig_1): Likewise.
3470 (load_full_type_unit): Likewise.
3471 (read_signatured_type): Likewise.
3472 (dwarf2_cu::dwarf2_cu): Don't set cu field.
3473 (dwarf2_cu::~dwarf2_cu): Remove.
3474 (dwarf2_per_objfile::get_cu): New.
3475 (dwarf2_per_objfile::set_cu): New.
3476 (age_cached_comp_units): Rename to...
3477 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
3478 to std::unordered_map.
3479 (free_one_cached_comp_unit): Rename to...
3480 (dwarf2_per_objfile::remove_cu): ... this. Adjust
3481 to std::unordered_map.
3482 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
3483 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
3484 a dwarf2_per_objfile in data.
3485 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
3486 (dwarf2_clear_marks): Remove.
3487
2e671100
SM
34882020-05-27 Simon Marchi <simon.marchi@efficios.com>
3489
3490 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
3491 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
3492 (init_tu_and_read_dwo_dies): Likewise.
3493 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
3494 (cutu_reader::cutu_reader): Likewise.
3495 (load_partial_comp_unit): Likewise.
3496 (process_psymtab_comp_unit): Update.
3497 (build_type_psymtabs_1): Update.
3498 (process_skeletonless_type_unit): Update.
3499 (load_full_comp_unit): Update.
3500 (find_partial_die): Update.
3501 (dwarf2_read_addr_index): Update.
3502 (read_signatured_type): Update.
3503
2e6a9f79
SM
35042020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3505
3506 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
3507 m_header_read_in>: New fields.
3508 <get_header>: New method.
3509 * dwarf2/read.c (per_cu_header_read_in): Remove.
3510 (dwarf2_per_cu_data::get_header): New.
3511 (dwarf2_per_cu_data::addr_size): Update.
3512 (dwarf2_per_cu_data::offset_size): Update.
3513 (dwarf2_per_cu_data::ref_addr_size): Update.
3514
1b555f17
SM
35152020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3516
3517 * dwarf2/read.c (load_cu): Return dwarf2_cu.
3518 (dw2_do_instantiate_symtab): Update.
3519 (queue_and_load_all_dwo_tus): Change parameter from
3520 dwarf2_per_cu_data to dwarf2_cu.
3521 (dwarf2_fetch_die_loc_sect_off): Update.
3522 (dwarf2_fetch_constant_bytes): Update.
3523 (dwarf2_fetch_die_type_sect_off): Update.
3524
8fc0b21d
SM
35252020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3526
3527 * dwarf2/read.c (process_full_comp_unit,
3528 process_full_type_unit): Remove per_cu, per_objfile paramters.
3529 Add dwarf2_cu parameter.
3530 (process_queue): Update.
3531
168c9250
SM
35322020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3533
3534 * dwarf2/read.c (create_cu_from_index_list): Replace
3535 dwarf2_per_objfile parameter with dwarf2_per_bfd.
3536 (create_cus_from_index_list): Likewise.
3537 (create_cus_from_index): Likewise.
3538 (create_signatured_type_table_from_index): Likewise.
3539 (create_cus_from_debug_names_list): Likewise.
3540 (create_cus_from_debug_names): Likewise.
3541 (dwarf2_read_gdb_index): Update.
3542 (dwarf2_read_debug_names): Update.
3543
e286671b
TT
35442020-05-27 Tom Tromey <tom@tromey.com>
3545 Simon Marchi <simon.marchi@efficios.com>
3546
3547 * dwarf2/read.h (struct dwarf2_per_objfile)
3548 <get_type_for_signatured_type, set_type_for_signatured_type>:
3549 New methods.
3550 <m_type_map>: New member.
3551 (struct signatured_type) <type>: Remove.
3552 * dwarf2/read.c
3553 (dwarf2_per_objfile::get_type_for_signatured_type,
3554 dwarf2_per_objfile::set_type_for_signatured_type): New.
3555 (get_signatured_type): Use new methods.
3556
8adb8487
TT
35572020-05-27 Tom Tromey <tom@tromey.com>
3558 Simon Marchi <simon.marchi@efficios.com>
3559
3560 * dwarf2/read.h (struct type_unit_group_unshareable): New.
3561 (struct dwarf2_per_objfile) <type_units>: New member.
3562 <get_type_unit_group_unshareable>: New method.
3563 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
3564 num_symtabs, symtabs>: Remove; move to
3565 type_unit_group_unshareable.
3566 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
3567 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
3568 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
3569
127bbf4b
SM
35702020-05-27 Simon Marchi <simon.marchi@efficios.com>
3571
3572 * dwarf2/read.h (struct dwarf2_per_cu_data):
3573 <dwarf2_per_objfile>: Remove.
3574 * dwarf2/read.c (create_cu_from_index_list): Don't assign
3575 dwarf2_per_objfile.
3576 (create_signatured_type_table_from_index): Likewise.
3577 (create_signatured_type_table_from_debug_names): Likewise.
3578 (create_debug_type_hash_table): Likewise.
3579 (fill_in_sig_entry_from_dwo_entry): Likewise.
3580 (create_type_unit_group): Likewise.
3581 (read_comp_units_from_section): Likewise.
3582 (create_cus_hash_table): Likewise.
3583
f6e649dd
SM
35842020-05-27 Simon Marchi <simon.marchi@efficios.com>
3585
3586 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
3587 dwarf2_per_cu_data::dwarf2_per_objfile.
3588 (compute_compunit_symtab_includes): Likewise.
3589 (dwarf2_cu::start_symtab): Likewise.
3590
aa66c379
SM
35912020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3592
3593 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
3594 parameter.
3595 * dwarf2/read.c (get_die_type_at_offset): Likewise.
3596 (read_namespace_alias): Update.
3597 (lookup_die_type): Update.
3598 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
3599 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
3600 Update.
3601 (disassemble_dwarf_expression): Update.
3602
120ce1b5
SM
36032020-05-27 Simon Marchi <simon.marchi@efficios.com>
3604
3605 * dwarf2/read.h (struct dwarf2_queue_item): Add
3606 dwarf2_per_objfile parameter, assign new parameter.
3607 <per_objfile>: New field.
3608 * dwarf2/read.c (free_one_cached_comp_unit): Add
3609 dwarf2_per_objfile parameter.
3610 (queue_comp_unit): Likewise.
3611 (dw2_do_instantiate_symtab): Update.
3612 (process_psymtab_comp_unit): Update.
3613 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
3614 (process_imported_unit_die): Update.
3615 (queue_and_load_dwo_tu): Update.
3616 (follow_die_offset): Update.
3617 (follow_die_sig_1): Update.
3618
9f47c707
SM
36192020-05-27 Simon Marchi <simon.marchi@efficios.com>
3620
3621 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
3622 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
3623 (read_call_site_scope): Assign per_objfile.
3624 (dwarf2_per_cu_data::objfile): Remove.
3625 * gdbtypes.h (struct call_site) <per_objfile>: New member.
3626 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
3627 dwarf2_per_objfile parameter.
3628 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
3629 dwarf2_per_objfile parameter.
3630 (dwarf_expr_reg_to_entry_parameter): Add output
3631 dwarf2_per_objfile parameter.
3632 (locexpr_get_frame_base): Update.
3633 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
3634 <push_dwarf_reg_entry_value>: Update.
3635 <call_site_to_target_addr>: Update.
3636 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
3637 parameter.
3638 (value_of_dwarf_reg_entry): Update.
3639 (rw_pieced_value): Update.
3640 (indirect_synthetic_pointer): Update.
3641 (dwarf2_evaluate_property): Update.
3642 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
3643 parameter.
3644 (locexpr_read_variable): Update.
3645 (locexpr_get_symbol_read_needs): Update.
3646 (loclist_read_variable): Update.
3647
14095eb3
SM
36482020-05-27 Simon Marchi <simon.marchi@efficios.com>
3649
3650 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
3651 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3652 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
3653 parameter.
3654 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
3655 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3656 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
3657 parameter.
3658 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
3659 sect_variable_value): Add dwarf2_per_objfile parameter.
3660 (class dwarf_evaluate_loc_desc) <dwarf_call,
3661 dwarf_variable_value>: Update.
3662 (fetch_const_value_from_synthetic_pointer): Add
3663 dwarf2_per_objfile parameter.
3664 (fetch_const_value_from_synthetic_pointer): Update.
3665 (coerced_pieced_ref): Update.
3666 (class symbol_needs_eval_context) <dwarf_call,
3667 dwarf_variable_value>: Update.
3668 (dwarf2_compile_expr_to_ax): Update.
3669
3c3cd3d4
SM
36702020-05-27 Simon Marchi <simon.marchi@efficios.com>
3671
3672 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
3673 parameter.
3674 (dwarf2_evaluate_loc_desc_full): Update.
3675
82ca3f51
SM
36762020-05-27 Simon Marchi <simon.marchi@efficios.com>
3677
3678 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
3679 parameter.
3680 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
3681 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
3682 dwarf2_per_objfile parameter.
3683 (decode_debug_loc_dwo_addresses): Likewise.
3684 (dwarf2_find_location_expression): Update.
3685 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
3686 (locexpr_describe_location_piece): Add dwarf2_per_objfile
3687 parameter.
3688 (disassemble_dwarf_expression): Add dwarf2_per_objfile
3689 parameter.
3690 (locexpr_describe_location_1): Likewise.
3691 (locexpr_describe_location): Update.
3692
4b167ea1
SM
36932020-05-27 Simon Marchi <simon.marchi@efficios.com>
3694
3695 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
3696 Remove.
3697 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
3698 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
3699 (dwarf2_compile_property_to_c): Update.
3700 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
3701 use text offset from objfile.
3702 (locexpr_tracepoint_var_ref): Update.
3703 (locexpr_generate_c_location): Update.
3704 (loclist_describe_location): Update.
3705 (loclist_tracepoint_var_ref): Update.
3706 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
3707 dwarf2_per_objfile parameter.
3708 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
3709 use text offset from objfile.
3710 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
3711
89b07335
SM
37122020-05-27 Simon Marchi <simon.marchi@efficios.com>
3713
3714 * dwarf2/expr.h (struct dwarf_expr_context)
3715 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
3716 <offset>: Remove.
3717 <per_objfile>: New member.
3718 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
3719 dwarf2_per_objfile parameter. Don't set offset, set
3720 per_objfile.
3721 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
3722 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
3723 a dwarf2_per_objfile object instead of an offset.
3724 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
3725 constructor.
3726 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
3727 to dwarf2_expr_executor constructor. Don't set offset.
3728 (dwarf2_fetch_cfa_info): Update.
3729 (struct dwarf2_frame_cache) <text_offset>: Remove.
3730 <per_objfile>: New field.
3731 (dwarf2_frame_cache): Update.
3732 (dwarf2_frame_prev_register): Update.
3733 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3734 <dwarf_evaluate_loc_desc>: Add constructor.
3735 (dwarf2_evaluate_loc_desc_full): Update.
3736 (dwarf2_locexpr_baton_eval): Update.
3737 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
3738 Add constructor.
3739 (dwarf2_loc_desc_get_symbol_read_needs): Update.
3740
293e7e51
SM
37412020-05-27 Simon Marchi <simon.marchi@efficios.com>
3742
3743 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
3744 addr_sized_int_type>: Move to dwarf2_cu.
3745 <int_type>: Move to dwarf2_per_objfile.
3746 (struct dwarf2_per_objfile) <int_type>: Move here.
3747 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
3748 addr_sized_int_type>: Move here.
3749 (read_func_scope): Update.
3750 (read_array_type): Update.
3751 (read_tag_string_type): Update.
3752 (attr_to_dynamic_prop): Update.
3753 (dwarf2_per_cu_data::int_type): Rename to...
3754 (dwarf2_per_objfile::int_type): ... this.
3755 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
3756 (dwarf2_cu::addr_sized_int_type): ... this.
3757 (read_subrange_type): Update.
3758 (dwarf2_per_cu_data::addr_type): Rename to...
3759 (dwarf2_cu::addr_type): ... this.
3760 (set_die_type): Update.
3761
64874a40
SM
37622020-05-27 Simon Marchi <simon.marchi@efficios.com>
3763
3764 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
3765 data through per_cu->cu.
3766
4ab09049
SM
37672020-05-27 Simon Marchi <simon.marchi@efficios.com>
3768
3769 * dwarf2/read.c (lookup_dwo_comp_unit): Change
3770 dwarf2_per_cu_data parameter fo dwarf2_cu.
3771 (lookup_dwo_type_unit): Likewise.
3772 (read_cutu_die_from_dwo): Likewise.
3773 (lookup_dwo_unit): Likewise.
3774 (open_and_init_dwo_file): Likewise.
3775 (lookup_dwo_cutu): Likewise.
3776 (lookup_dwo_comp_unit): Likewise.
3777 (lookup_dwo_type_unit): Likewise.
3778 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3779 (cutu_reader::cutu_reader): Update.
3780
47b14e86
SM
37812020-05-27 Simon Marchi <simon.marchi@efficios.com>
3782
3783 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
3784 parameter.
3785 (process_full_type_unit): Likewise.
3786 (process_queue): Update.
3787
43182c09
SM
37882020-05-27 Simon Marchi <simon.marchi@efficios.com>
3789
3790 * dwarf2/read.c (recursively_compute_inclusions): Add
3791 dwarf2_per_objfile parameter.
3792 (compute_compunit_symtab_includes): Likewise.
3793 (process_cu_includes): Update.
3794
7aa104c4
SM
37952020-05-27 Simon Marchi <simon.marchi@efficios.com>
3796
3797 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
3798 parameter.
3799 (create_type_unit_group): Update.
3800 (process_psymtab_comp_unit_reader): Update.
3801 (build_type_psymtabs_reader): Update.
3802
e3beb21d
SM
38032020-05-27 Simon Marchi <simon.marchi@efficios.com>
3804
3805 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
3806 object through m_this_cu->cu.
3807
d460f660
SM
38082020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3809
3810 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
3811 the info parameter.
3812 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
3813
ab432490
SM
38142020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3815
3816 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
3817 per_objfile parameter.
3818 (load_full_type_unit): Add per_objfile parameter.
3819 (read_signatured_type): Likewise.
3820 (load_full_comp_unit): Likewise.
3821 (load_cu): Likewise.
3822 (dw2_do_instantiate_symtab): Likewise.
3823 (dw2_get_file_names): Likewise.
3824 (dw2_map_symtabs_matching_filename): Update.
3825 (dw_expand_symtabs_matching_file_matcher): Update.
3826 (dw2_map_symbol_filenames): Update.
3827 (process_psymtab_comp_unit): Add per_objfile parameter.
3828 (build_type_psymtabs_1): Update.
3829 (process_skeletonless_type_unit): Update.
3830 (dwarf2_build_psymtabs_hard): Update.
3831 (load_partial_comp_unit): Add per_objfile parameter.
3832 (scan_partial_symbols): Update.
3833 (load_full_comp_unit): Add per_objfile parameter.
3834 (process_imported_unit_die): Update.
3835 (create_cus_hash_table): Update.
3836 (find_partial_die): Update.
3837 (dwarf2_read_addr_index): Update.
3838 (follow_die_offset): Update.
3839 (dwarf2_fetch_die_loc_sect_off): Update.
3840 (dwarf2_fetch_constant_bytes): Update.
3841 (dwarf2_fetch_die_type_sect_off): Update.
3842 (follow_die_sig_1): Update.
3843 (load_full_type_unit): Add per_objfile parameter.
3844 (read_signatured_type): Likewise.
3845
313bad1b
SM
38462020-05-27 Simon Marchi <simon.marchi@efficios.com>
3847
3848 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
3849 of objfile_name.
3850
c3699833
SM
38512020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3852
3853 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
3854 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
3855 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
3856 field.
3857 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
3858 (create_cus_from_index): Update.
3859 (dwarf2_read_gdb_index): Update.
3860 (create_cus_from_debug_names): Update.
3861 (dwarf2_read_debug_names): Update.
3862 (get_abbrev_section_for_cu): Update.
3863 (create_all_comp_units): Update.
3864 (read_attribute_value): Update.
3865 (get_debug_line_section): Update.
3866 * dwarf2/index-cache.c (index_cache::store): Update.
3867 * dwarf2/index-write.c (save_gdb_index_command): Update.
3868 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
3869
1859c670
SM
38702020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3871
3872 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
3873 member.
3874 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
3875 dwarf2_per_cu_data::per_bfd.
3876 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
3877 (create_type_unit_group): Likewise.
3878 (queue_comp_unit): Remove reference to
3879 per_cu->dwarf2_per_objfile.
3880 (maybe_queue_comp_unit): Likewise.
3881 (fill_in_sig_entry_from_dwo_entry): Assign new field.
3882 (create_cus_hash_table): Assign new field.
3883
5e22e966
SM
38842020-05-27 Simon Marchi <simon.marchi@efficios.com>
3885
3886 * dwarf2/read.c: Replace
3887 dwarf2_cu->per_cu->dwarf2_per_objfile references with
3888 dwarf2_cu->per_objfile throughout.
3889
97a1449a
SM
38902020-05-27 Simon Marchi <simon.marchi@efficios.com>
3891
3892 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
3893 parameter, don't use per_cu->dwarf2_per_objfile.
3894 (dw2_instantiate_symtab): Likewise.
3895 (dw2_find_last_source_symtab): Update.
3896 (dw2_map_expand_apply): Update.
3897 (dw2_lookup_symbol): Update.
3898 (dw2_expand_symtabs_for_function): Update.
3899 (dw2_expand_all_symtabs): Update.
3900 (dw2_expand_symtabs_with_fullname): Update.
3901 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
3902 don't use per_cu->dwarf2_per_objfile.
3903 (dw2_expand_marked_cus): Update.
3904 (dw2_find_pc_sect_compunit_symtab): Update.
3905 (dw2_debug_names_lookup_symbol): Update.
3906 (dw2_debug_names_expand_symtabs_for_function): Update.
3907 (dw2_debug_names_map_matching_symbols): Update.
3908 (dwarf2_psymtab::expand_psymtab): Update.
3909
9e021579
SM
39102020-05-27 Simon Marchi <simon.marchi@efficios.com>
3911
3912 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
3913 <per_objfile>: New member.
3914 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
3915 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
3916 call to dwarf2_cu.
3917 (cutu_reader::cutu_reader): Update.
3918 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
3919
ae090bdb
SM
39202020-05-27 Simon Marchi <simon.marchi@efficios.com>
3921
3922 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
3923 struct dwarf2_per_objfile.
3924 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
3925 dwarf2_per_bfd.
3926 * dwarf2/read.c (set_die_type): Update.
3927 (get_die_type_at_offset): Update.
3928
af758d11
SM
39292020-05-27 Tom Tromey <tom@tromey.com>
3930 Simon Marchi <simon.marchi@efficios.com>
3931
3932 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
3933 method.
3934 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
3935 get_symtab, set_symtab>: New methods.
3936 <m_symtabs>: New field.
3937 (struct dwarf2_psymtab): Derive from partial_symtab.
3938 <readin_p, get_compunit_symtab>: Declare methods.
3939 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
3940 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
3941 New methods.
3942 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
3943 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
3944 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
3945 (dw2_symtab_iter_next, dw2_print_stats)
3946 (dw2_expand_symtabs_with_fullname)
3947 (dw2_expand_symtabs_matching_one)
3948 (dw_expand_symtabs_matching_file_matcher)
3949 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
3950 (dw2_debug_names_iterator::next)
3951 (dw2_debug_names_map_matching_symbols)
3952 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
3953 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
3954 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
3955 New methods.
3956 (get_compunit_symtab, process_full_comp_unit)
3957 (process_full_type_unit): Update.
3958 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
3959
5989a64e
SM
39602020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3961
3962 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
3963 then introduce a new dwarf2_per_objfile type.
3964 <read_line_string>: Move to the new dwarf2_per_objfile type.
3965 <objfile>: Likewise.
3966 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
3967 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
3968 dwarf2_per_objfile->per_bfd.
3969 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
3970 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
3971 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
3972 (dwarf2_per_bfd::free_cached_comp_units): ... this.
3973 (dwarf2_has_info): Allocate dwarf2_per_bfd.
3974 (dwarf2_per_objfile::locate_sections): Rename to...
3975 (dwarf2_per_bfd::locate_sections): ... this.
3976 (dwarf2_per_objfile::get_cutu): Rename to...
3977 (dwarf2_per_bfd::get_cutu): ... this.
3978 (dwarf2_per_objfile::get_cu): Rename to...
3979 (dwarf2_per_bfd::get_cu): ... this.
3980 (dwarf2_per_objfile::get_tu): Rename to...
3981 (dwarf2_per_bfd::get_tu): ... this.
3982 (dwarf2_per_objfile::allocate_per_cu): Rename to...
3983 (dwarf2_per_bfd::allocate_per_cu): ... this.
3984 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
3985 (dwarf2_per_bfd::allocate_signatured_type): ... this.
3986 (get_gdb_index_contents_ftype): Change parameter from
3987 dwarf2_per_objfile to dwarf2_per_bfd.
3988 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
3989 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
3990
a50264ba
TT
39912020-05-27 Tom Tromey <tom@tromey.com>
3992 Simon Marchi <simon.marchi@efficios.com>
3993
3994 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
3995 (allocate_piece_closure): Set "per_objfile" member.
3996 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
3997 (locexpr_describe_location, loclist_describe_location): Use new
3998 member.
3999 * dwarf2/read.c (read_call_site_scope)
4000 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
4001 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
4002 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
4003 handle_data_member_location): Set per_objfile member.
4004 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
4005 member.
4006 (struct dwarf2_loclist_baton) <per_objfile>: New member.
4007
d3473f0c
TT
40082020-05-27 Tom Tromey <tom@tromey.com>
4009
4010 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
4011 allocate_signatured_type>: Declare new methods.
4012 <m_num_psymtabs>: New member.
4013 (struct dwarf2_per_cu_data) <index>: New member.
4014 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
4015 (dwarf2_per_objfile::allocate_signatured_type): New methods.
4016 (create_cu_from_index_list): Use allocate_per_cu.
4017 (create_signatured_type_table_from_index)
4018 (create_signatured_type_table_from_debug_names)
4019 (create_debug_type_hash_table, add_type_unit)
4020 (read_comp_units_from_section): Use allocate_signatured_type.
4021
5717c425
TT
40222020-05-27 Tom Tromey <tom@tromey.com>
4023
4024 * psymtab.c (partial_map_expand_apply)
4025 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
4026 (psym_lookup_global_symbol_language)
4027 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
4028 (psym_print_stats, psym_expand_symtabs_for_function)
4029 (psym_map_symbol_filenames, psym_map_matching_symbols)
4030 (psym_expand_symtabs_matching)
4031 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
4032 (maintenance_check_psymtabs): Update.
4033 * psympriv.h (struct partial_symtab) <readin_p,
4034 get_compunit_symtab>: Add objfile parameter.
4035 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
4036 Likewise.
4037 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
4038 get_compunit_symtab>: Likewise.
4039 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
4040
45940949
TT
40412020-05-27 Tom Tromey <tom@tromey.com>
4042
4043 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
4044 member.
4045 * dwarf2/read.c (delete_file_name_entry): Fix comment.
4046 (create_cu_from_index_list)
4047 (create_signatured_type_table_from_index)
4048 (create_signatured_type_table_from_debug_names)
4049 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
4050 (dwarf2_create_include_psymtab)
4051 (create_debug_type_hash_table, add_type_unit)
4052 (create_type_unit_group, read_comp_units_from_section)
4053 (dwarf2_compute_name, create_cus_hash_table)
4054 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
4055 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
4056 obstack.
4057 (dw2_get_real_path): Likewise. Change argument to
4058 dwarf2_per_objfile.
4059
f8c6d152
LM
40602020-05-27 Luis Machado <luis.machado@linaro.org>
4061
4062 PR tdep/26000
4063 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
4064 for ldrd (immediate).
4065
e98d2e6d
PW
40662020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4067
4068 * command.h: Add comment giving the name of class_tui.
4069 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
4070 create the fake command for the help for class_tui.
4071
53a47a3e
TT
40722020-05-26 Tom Tromey <tromey@adacore.com>
4073
4074 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
4075 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
4076 (val_atr): New function.
4077 (value_val_atr): Use it.
4078 * ada-valprint.c (print_optional_low_bound): Change low bound
4079 handling for enums.
4080 (val_print_packed_array_elements): Don't call discrete_position.
4081 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
4082 discrete_position for enum types.
4083 * language.c (default_print_array_index): Change type.
4084 * language.h (struct language_defn) <la_print_array_index>: Add
4085 index_type parameter, change type of index_value.
4086 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
4087 (default_print_array_index): Update.
4088 * valprint.c (maybe_print_array_index): Don't call
4089 value_from_longest. Update.
4090 (value_print_array_elements): Don't call discrete_position.
4091
0bc2354b
TT
40922020-05-26 Tom Tromey <tromey@adacore.com>
4093
4094 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
4095 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
4096
1218a4bf
CDA
40972020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
4098
4099 PR gdb/13519
4100 * avr-tdep.c (avr_integer_to_address): Return data or code
4101 address accordingly to the second 'type' argument of the
4102 function.
4103
92651b1d
MW
41042020-05-25 Michael Weghorn <m.weghorn@posteo.de>
4105
4106 * infcmd.c, inferior.h: (construct_inferior_arguments):
4107 Moved function from here to gdbsupport/common-inferior.{h,cc}
4108
0a4f5f8c
TT
41092020-05-23 Tom Tromey <tom@tromey.com>
4110
4111 Revert commit eca1f90c:
4112 * NEWS: Remove entry for completion styling.
4113 * completer.c (_rl_completion_prefix_display_length): Move
4114 declaration later.
4115 (gdb_fnprint): Revert.
4116 (gdb_display_match_list_1): Likewise.
4117 * cli/cli-style.c (completion_prefix_style)
4118 (completion_difference_style, completion_suffix_style): Remove.
4119 (_initialize_cli_style): Revert.
4120 * cli/cli-style.h (completion_prefix_style)
4121 (completion_difference_style, completion_suffix_style): Don't
4122 declare.
4123
e08bd6c5
PA
41242020-05-24 Pedro Alves <palves@redhat.com>
4125
4126 * symtab.c (completion_list_add_name): Return boolean indication
4127 of whether the symbol matched.
4128 (completion_list_add_symbol): Don't try to remove C++ aliases if
4129 the symbol didn't match in the first place.
4130 * symtab.h (completion_list_add_name): Return bool.
4131
ceacbf6e
SM
41322020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
4133
4134 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
4135 type::field.
4136
26f16254
JB
41372020-05-23 Joel Brobecker <brobecker@adacore.com>
4138
4139 GDB 9.2 released.
4140
eca1f90c
TT
41412020-05-23 Tom Tromey <tom@tromey.com>
4142
4143 * NEWS: Add entry for completion styling.
4144 * completer.c (_rl_completion_prefix_display_length): Move
4145 declaration earlier.
4146 (gdb_fnprint): Use completion_style.
4147 (gdb_display_match_list_1): Likewise.
4148 * cli/cli-style.c (completion_prefix_style)
4149 (completion_difference_style, completion_suffix_style): New
4150 globals.
4151 (_initialize_cli_style): Register new globals.
4152 * cli/cli-style.h (completion_prefix_style)
4153 (completion_difference_style, completion_suffix_style): Declare.
4154
51e2cfa2
PA
41552020-05-23 Pedro Alves <palves@redhat.com>
4156
4157 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
4158 (parse_escape): Use ISDIGIT instead of isdigit.
4159 (puts_debug): Use gdb_isprint instead of isprint.
4160 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
4161 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
4162 ISSPACE instead of isspace.
4163 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
4164 instead of isspace.
4165 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
4166 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
4167 instead of isxdigit and ISDIGIT instead of isdigit.
4168
80fc5e77
SM
41692020-05-22 Simon Marchi <simon.marchi@efficios.com>
4170
4171 * gdbtypes.h (struct type) <field>: New method.
4172 (TYPE_FIELDS): Remove, replace all uses with either type::fields
4173 or type::field.
4174
3cabb6b0
SM
41752020-05-22 Simon Marchi <simon.marchi@efficios.com>
4176
4177 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
4178 (TYPE_FIELDS): Use type::fields. Change all call sites that
4179 modify the propery to use type::set_fields instead.
4180
1f704f76
SM
41812020-05-22 Simon Marchi <simon.marchi@efficios.com>
4182
4183 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
4184 type::num_fields instead.
4185
5e33d5f4
SM
41862020-05-22 Simon Marchi <simon.marchi@efficios.com>
4187
4188 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
4189 methods.
4190 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
4191 that modify the number of fields to use type::set_num_fields
4192 instead.
4193
9392ebb3
TT
41942020-05-22 Tom Tromey <tromey@adacore.com>
4195
4196 * compile/compile-object-load.h (munmap_list_free): Don't
4197 declare.
4198
7c13f4e8
AB
41992020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
4200
4201 * annotate.c (annotate_source_line): Update return type, add call
4202 to update current symtab and line.
4203 * annotate.h (annotate_source_line): Update return type, and
4204 extend header comment.
4205 * source.c (info_line_command): Check annotation_level before
4206 calling annotate_source_line.
4207 * stack.c (print_frame_info): If calling annotate_source_line
4208 returns true, then don't print any other source line information.
4209
aa370940
SM
42102020-05-21 Simon Marchi <simon.marchi@efficios.com>
4211
4212 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
4213
84d53fa9
SM
42142020-05-21 Simon Marchi <simon.marchi@efficios.com>
4215
4216 * coffread.c (patch_type): Remove NULL check before xfree.
4217 * corefile.c (set_gnutarget): Likewise.
4218 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
4219 * exec.c (build_section_table): Likewise.
4220 * remote.c (remote_target::pass_signals): Likewise.
4221 * utils.c (n_spaces): Likewise.
4222 * cli/cli-script.c (document_command): Likewise.
4223 * i386-windows-tdep.c (core_process_module_section): Likewise.
4224 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
4225
9d428aae
SM
42262020-05-20 Simon Marchi <simon.marchi@efficios.com>
4227
4228 * symfile.c (reread_symbols): Clear objfile's section_offsets
4229 vector and section indices, re-compute them by calling
4230 sym_offsets.
4231
250106a7
TT
42322020-05-20 Tom Tromey <tromey@adacore.com>
4233
4234 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 4235 (desc_one_bound, desc_index_type): Compute field name.
250106a7 4236
9a0bacfb
TV
42372020-05-20 Tom de Vries <tdevries@suse.de>
4238
4239 PR symtab/25833
4240 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
4241
7b958a48
AM
42422020-05-20 Alan Modra <amodra@gmail.com>
4243
4244 PR 25993
4245 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
4246 bfd_set_filename.
4247 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
4248 passed to bfd_set_filename.
4249 * symfile-mem.c (add_vsyscall_page): Likewise for string
4250 passed to symbol_file_add_from_memory.
4251 (symbol_file_add_from_memory): Make name param a const char* and
4252 don't strdup.
4253
c7e97679
AM
42542020-05-20 Alan Modra <amodra@gmail.com>
4255
4256 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
4257 rather than accessing bfd->filename directly.
4258 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
4259 and use bfd_section_name.
4260 * dwarf2/frame.c (decode_frame_entry): Likewise.
4261 * exec.c (exec_set_section_address): Likewise.
4262 * solib-aix.c (solib_aix_bfd_open): Likewise.
4263 * stap-probe.c (get_stap_base_address): Likewise.
4264 * symfile.c (reread_symbols): Likewise.
4265
563c591b
TT
42662020-05-19 Tom Tromey <tromey@adacore.com>
4267
4268 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
4269
f408d82c
SM
42702020-05-19 Simon Marchi <simon.marchi@efficios.com>
4271
4272 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
4273
98c59b52
PA
42742020-05-19 Pedro Alves <palves@redhat.com>
4275
4276 * NEWS (set exec-file-mismatch): Adjust entry.
4277 * exec.c: Include "build-id.h".
4278 (validate_exec_file): Try to match build IDs instead of filenames.
4279 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
4280 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
4281 and pass down 'warn_if_slow'.
4282 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
4283 gdb_bfd_open_closure to pass it down.
4284 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
4285
4111f652
PA
42862020-05-19 Pedro Alves <palves@redhat.com>
4287
4288 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
4289 * target.c (target_fileio_open_1): Rename to target_fileio_open
4290 and make extern. Use bool.
4291 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
4292 (target_fileio_read_alloc_1): Adjust.
4293 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
4294 (target_fileio_open_warn_if_slow): Delete declaration.
4295
ad80db5b
PA
42962020-05-19 Pedro Alves <palves@redhat.com>
4297
4298 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
4299 Adjust all callers.
4300
1d6ce4d3
YS
43012020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
4302
4303 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
4304 whether disp is negative.
4305
9005fbbb
SM
43062020-05-19 Simon Marchi <simon.marchi@efficios.com>
4307
4308 * symfile.h (struct symfile_segment_data)
4309 <~symfile_segment_data>: Remove.
4310 <segment_info>: Change to std::vector.
4311 * symfile.c (default_symfile_segments): Update.
4312 * elfread.c (elf_symfile_segments): Update.
4313
68b888ff
SM
43142020-05-19 Simon Marchi <simon.marchi@efficios.com>
4315
4316 * symfile.h (struct symfile_segment_data) <struct segment>: New.
4317 <segments>: New.
4318 <segment_bases, segment_sizes>: Remove.
4319 * symfile.c (default_symfile_segments): Update.
4320 * elfread.c (elf_symfile_segments): Update.
4321 * remote.c (remote_target::get_offsets): Update.
4322 * solib-target.c (solib_target_relocate_section_addresses):
4323 Update.
4324
62982abd
SM
43252020-05-19 Simon Marchi <simon.marchi@efficios.com>
4326
4327 * symfile.h (struct symfile_segment_data): Initialize fields.
4328 <~symfile_segment_data>: Add.
4329 (symfile_segment_data_up): New.
4330 (struct sym_fns) <sym_segments>: Return a
4331 symfile_segment_data_up.
4332 (default_symfile_segments): Return a symfile_segment_data_up.
4333 (free_symfile_segment_data): Remove.
4334 (get_symfile_segment_data): Return a symfile_segment_data_up.
4335 * symfile.c (default_symfile_segments): Likewise.
4336 (get_symfile_segment_data): Likewise.
4337 (free_symfile_segment_data): Remove.
4338 (symfile_find_segment_sections): Update.
4339 * elfread.c (elf_symfile_segments): Return a
4340 symfile_segment_data_up.
4341 * remote.c (remote_target::get_offsets): Update.
4342 * solib-target.c (solib_target_relocate_section_addresses):
4343 Update.
4344 * symfile-debug.c (debug_sym_segments): Return a
4345 symfile_segment_data_up.
4346
7f204339
RO
43472020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4348
e52a0f1b
RO
4349 PR build/25981
4350 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
4351 Hardcode register numbers.
4352
7f204339
RO
4353 PR build/25981
4354 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
4355 procfs_find_LDT_entry): Remove.
4356 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
4357 procfs_find_LDT_entry): Remove.
4358 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
4359 Remove.
4360
7f32a4d5
PA
43612020-05-17 Pedro Alves <palves@redhat.com>
4362 Andrew Burgess <andrew.burgess@embecosm.com>
4363 Keno Fischer <keno@juliacomputing.com>
4364
4365 PR gdb/25741
4366 * breakpoint.c (build_target_condition_list): Update comments.
4367 (build_target_command_list): Update comments and skip matching
4368 locations.
4369 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
4370 a separate function. Simplify "set breakpoint auto-hw off"
4371 handling.
4372 (insert_breakpoints): Update comment.
4373 (tracepoint_locations_match): New parameter. For breakpoints,
4374 compare location types too, if the caller wants to.
4375 (handle_automatic_hardware_breakpoints): New functions.
4376 (bp_location_is_less_than): Also sort by location type and
4377 hardware breakpoint length.
4378 (update_global_location_list): Handle "set breakpoint auto-hw on"
4379 here.
4380 (update_breakpoint_locations): Ask breakpoint_locations_match to
4381 ignore location types.
4382
7d93a1e0
SM
43832020-05-16 Simon Marchi <simon.marchi@efficios.com>
4384
4385 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
4386 type::name instead.
4387
d0e39ea2
SM
43882020-05-16 Simon Marchi <simon.marchi@efficios.com>
4389
4390 * gdbtypes.h (struct type) <name, set_name>: New methods.
4391 (TYPE_CODE): Use type::name. Change all call sites used to set
4392 the name to use type::set_name instead.
4393
2dab0c7b
TT
43942020-05-16 Tom Tromey <tom@tromey.com>
4395
4396 * top.c (quit_force): Update.
4397 * infrun.c (handle_no_resumed): Update.
4398 * top.h (all_uis): New function.
4399 (ALL_UIS): Remove.
4400
59f7bd8d
SM
44012020-05-16 Simon Marchi <simon.marchi@efficios.com>
4402
4403 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
4404
9bf058f0
PA
44052020-05-16 Pedro Alves <palves@redhat.com>
4406
4407 * ia64-linux-nat.c
4408 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
4409 Declare method.
4410 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
4411
8f86ae1a
SM
44122020-05-15 Simon Marchi <simon.marchi@efficios.com>
4413
4414 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
4415 (sparc64_adi_info): Likewise.
4416
d6bc0792
TT
44172020-05-15 Tom Tromey <tom@tromey.com>
4418
4419 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
4420 block_objfile.
4421 (lookup_objfile_from_block): Remove.
4422 (lookup_symbol_in_block, lookup_symbol_in_static_block)
4423 (lookup_global_symbol): Use block_objfile.
4424 * symtab.h (lookup_objfile_from_block): Don't declare.
4425 * printcmd.c (clear_dangling_display_expressions): Use
4426 block_objfile.
4427 * parse.c (operator_check_standard): Use block_objfile.
4428
8c14c3a3
TT
44292020-05-15 Tom Tromey <tom@tromey.com>
4430
4431 * language.c (language_alloc_type_symbol): Set
4432 SYMBOL_SECTION.
4433 * symtab.c (initialize_objfile_symbol): Remove.
4434 (allocate_symbol): Remove.
4435 (allocate_template_symbol): Remove.
4436 * dwarf2/read.c (fixup_go_packaging): Use "new".
4437 (new_symbol): Use "new".
4438 (read_variable): Don't call initialize_objfile_symbol. Use
4439 "new".
4440 (read_func_scope): Use "new".
4441 * xcoffread.c (process_xcoff_symbol): Don't call
4442 initialize_objfile_symbol.
4443 (SYMBOL_DUP): Remove.
4444 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
4445 "new".
4446 * symtab.h (allocate_symbol, initialize_objfile_symbol)
4447 (allocate_template_symbol): Don't declare.
4448 (struct symbol): Add copy constructor. Change defaults.
4449 * jit.c (finalize_symtab): Use "new".
4450 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
4451 Use "new".
4452 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
4453 (common_block_end): Use "new".
4454 * mdebugread.c (parse_symbol): Use "new".
4455 (new_symbol): Likewise.
4456
5b4a1a8d
PW
44572020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4458
4459 * NEWS: Mention changes to help and apropos.
4460
57b4f16e
PW
44612020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4462
4463 * command.h (enum command_class): Improve comments, document
4464 that class_alias is for user-defined aliases, give the class
4465 name for each class, remove unused class_xdb.
4466 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
4467 * breakpoint.c (_initialize_breakpoint): Replace class_alias
4468 by a precise class.
4469 * infcmd.c (_initialize_infcmd): Likewise.
4470 * reverse.c (_initialize_reverse): Likewise.
4471 * stack.c (_initialize_stack): Likewise.
4472 * symfile.c (_initialize_symfile): Likewise.
4473 * tracepoint.c (_initialize_tracepoint): Likewise.
4474
7c05caf7
PW
44752020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4476
4477 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
4478 when their aliased command is traversed.
4479 (help_cmd): Add fput_command_names_styled call to
4480 output command name and aliases when command has an alias.
4481
3b3aaacb
PW
44822020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4483
4484 * cli/cli-decode.h (help_cmd_list): Remove declaration.
4485 * cli/cli-decode.c (help_cmd_list): Declare as static,
4486 remove prefix argument, use bool for recurse arg, rework to show the aliases of
4487 a command together with the command.
4488 (fput_command_name_styled, fput_command_names_styled): New functions.
4489 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
4490 fput_command_name_styled.
4491 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
4492 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
4493
7aa1b46f
PW
44942020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4495
4496 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
4497 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
4498 * command.h (cmd_show_list): Likewise.
4499 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
4500 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
4501
89bcba74
PW
45022020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4503
4504 * unittests/command-def-selftests.c (traverse_command_structure):
4505 Verify all commands of a list have the same prefix command and
4506 that only the top cmdlist commands have a null prefix.
4507
3f4d92eb
PW
45082020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4509
4510 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
4511 as prefix, not one of its aliases.
4512 (set_cmd_prefix): Remove.
4513 (do_add_cmd): Centralize the setting of the prefix of a command, when
4514 command is defined after its full chain of prefix commands.
4515 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
4516 (add_setshow_cmd_full): Likewise.
4517 (update_prefix_field_of_prefixed_commands): New function.
4518 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
4519 update_prefix_field_of_prefixed_commands.
4520 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
4521 addresses of remote_set_cmdlist and remote_show_cmdlist given
4522 as argument, not the address of an argument.
4523 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
4524 * gdb/remote.c (_initialize_remote): Likewise.
4525
0605465f
PW
45262020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4527
4528 * cli/cli-cmds.c (alias_command): Check for an existing alias
4529 using lookup_cmd_composition, as valid_command_p is too strict
4530 and forbids aliases that are the prefix of an existing alias
4531 or command.
4532 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
4533 command is properly recognised as a valid command.
4534
58e6ac70
PW
45352020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4536
4537 * unittests/help-doc-selftests.c: Rename to
4538 unittests/command-def-selftests.c
4539 * unittests/command-def-selftests.c (help_doc_tests): Update some
4540 comments.
4541 (command_structure_tests, traverse_command_structure): New namespace
4542 and function.
4543 (command_structure_invariants_tests): New function.
4544 (_initialize_command_def_selftests) Renamed from
4545 _initialize_help_doc_selftests, register command_structure_invariants
4546 selftest.
4547
a7b9ceb8
PW
45482020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4549
4550 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
4551 an alias of 'show'.
4552
b2188a06
JB
45532020-05-15 Joel Brobecker <brobecker@adacore.com>
4554
4555 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
4556 ada_is_fixed_point_type. Update all callers.
4557 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
4558 all callers.
4559 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
4560 Update all callers.
4561 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
4562 print_fixed_point_type. Update all callers.
4563 * ada-valprint.c (ada_value_print_num): Replace call to
4564 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
4565
a51951c2
KB
45662020-05-14 Kevin Buettner <kevinb@redhat.com>
4567
4568 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
4569 processors.
4570 (cpu_supports_bts): Add CV_AMD case.
4571
29d6859f
LM
45722020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
4573 Simon Marchi <simon.marchi@efficios.com>
4574
4575 * infrun.c (stop_all_threads): Collect multiple wait events at
4576 each pass.
4577
78134374
SM
45782020-05-14 Simon Marchi <simon.marchi@efficios.com>
4579
4580 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
4581 type::code instead.
4582
67607e24
SM
45832020-05-14 Simon Marchi <simon.marchi@efficios.com>
4584
4585 * gdbtypes.h (struct type) <code, set_code>: New methods.
4586 (TYPE_CODE): Use type::code. Change all call sites used to set
4587 the code to use type::set_code instead.
4588
a05575d3
TBA
45892020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4590 Tom de Vries <tdevries@suse.de>
4591 Pedro Alves <palves@redhat.com>
4592
4593 PR threads/25478
4594 * infrun.c (stop_all_threads): Do NOT ignore
4595 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
4596 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
4597 received.
4598 (handle_no_resumed): Remove code handling a live inferior with no
4599 threads.
4600 * remote.c (has_single_non_exited_thread): New.
4601 (remote_target::update_thread_list): Do not delete a thread if is
4602 the last thread of the process.
4603 * thread.c (thread_select): Call delete_exited_threads instead of
4604 prune_threads.
4605
6ad82919
TBA
46062020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4607
4608 * infrun.c (stop_all_threads): Enable/disable thread events of all
4609 targets. Move a debug message denoting the end of the function
4610 into the SCOPED_EXIT block.
4611
d890404b
TBA
46122020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4613
4614 * process-stratum-target.h: Include <set>.
4615 (all_non_exited_process_targets, switch_to_target_no_thread): New
4616 function declarations.
4617 * process-stratum-target.c (all_non_exited_process_targets)
4618 (switch_to_target_no_thread): New function implementations.
4619
293b3ebc
TBA
46202020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4621
4622 * infrun.c (handle_inferior_event): Extract out a piece of code
4623 into...
4624 (mark_non_executing_threads): ...this new function.
4625
7ca9b62a
TBA
46262020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4627
4628 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
4629 use.
4630
fc75c28b
TBA
46312020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4632
4633 * regcache.c (regcache_read_pc_protected): New function
4634 implementation that returns 0 if the PC cannot read via
4635 'regcache_read_pc'.
4636 * infrun.c (proceed): Call 'regcache_read_pc_protected'
4637 instead of 'regcache_read_pc'.
4638 (keep_going_pass_signal): Ditto.
4639
a89febbd
TT
46402020-05-13 Tom Tromey <tromey@adacore.com>
4641
4642 * ada-lang.c (align_value): Remove.
4643 (ada_template_to_fixed_record_type_1): Use align_up.
4644
f7e23710
TBA
46452020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4646
4647 * async-event.c: Update the copyright year.
4648 * async-event.h: Update the copyright year.
4649
02ff80c2
SM
46502020-05-12 Simon Marchi <simon.marchi@efficios.com>
4651
4652 * objfiles.h (is_addr_in_objfile,
4653 shared_objfile_contains_address_p): Return bool.
4654 * objfile.c (is_addr_in_objfile,
4655 shared_objfile_contains_address_p): Return bool.
4656
4fd6c7e8
TT
46572020-05-11 Tom Tromey <tromey@adacore.com>
4658
4659 * cli/cli-cmds.c (info_command): Restore.
4660 (_initialize_cli_cmds): Use add_prefix_command for "info".
4661 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
4662
5eb68a39
TT
46632020-05-11 Tom Tromey <tromey@adacore.com>
4664
4665 * ada-lang.c (ada_value_primitive_field): Now public.
4666 * ada-lang.h (ada_value_primitive_field): Declare.
4667 * ada-valprint.c (print_field_values): Use
4668 ada_value_primitive_field for wrapper fields.
4669
7666722f
TV
46702020-05-11 Tom de Vries <tdevries@suse.de>
4671
4672 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
4673 MODULE_DOMAIN.
4674
3ee6bb11
TV
46752020-05-11 Tom de Vries <tdevries@suse.de>
4676
4677 PR symtab/25941
4678 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
4679 with length 0, if not gdb-produced.
4680 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
4681
43434996
TV
46822020-05-09 Tom de Vries <tdevries@suse.de>
4683
4684 PR gdb/25955
4685 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
4686 calculation.
4687
2f78cffc
TT
46882020-05-09 Tom Tromey <tom@tromey.com>
4689
4690 * top.c (server_command): Now bool.
4691 * top.h (server_command): Now bool.
4692
4f7bc5ed
TT
46932020-05-08 Tom Tromey <tromey@adacore.com>
4694
4695 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
4696 already being processed.
4697
8be4b118
TT
46982020-05-08 Tom Tromey <tom@tromey.com>
4699
4700 * printcmd.c (struct display) <next>: Remove.
4701 <display>: New constructor.
4702 <exp_string>: Now a std::string.
4703 <enabled_p>: Now a bool.
4704 (display_number): Move definition earlier.
4705 (displays): Rename from display_chain. Now a std::vector.
4706 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
4707 (display_command): Update.
4708 (do_one_display, disable_display)
4709 (enable_disable_display_command, do_enable_disable_display):
4710 Update.
4711 (free_display): Remove.
4712 (clear_displays): Rewrite.
4713 (delete_display): Update.
4714 (map_display_numbers): Use function_view. Remove "data"
4715 parameter. Update.
4716 (do_delete_display): Remove.
4717 (undisplay_command): Update.
4718 (do_one_display, do_displays, disable_display)
4719 (info_display_command): Update.
4720 (do_enable_disable_display): Remove.
4721 (enable_disable_display_command)
4722 (clear_dangling_display_expressions): Update.
4723
94c93c35
TT
47242020-05-08 Tom Tromey <tom@tromey.com>
4725
4726 * symtab.c (set_symbol_cache_size)
4727 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
4728 (maintenance_print_symbol_cache_statistics): Update.
4729 * symmisc.c (print_symbol_bcache_statistics)
4730 (print_objfile_statistics, maintenance_print_objfiles)
4731 (maintenance_info_symtabs, maintenance_check_symtabs)
4732 (maintenance_expand_symtabs, maintenance_info_line_tables):
4733 Update.
4734 * symfile-debug.c (set_debug_symfile): Update.
4735 * source.c (forget_cached_source_info): Update.
4736 * python/python.c (gdbpy_progspaces): Update.
4737 * psymtab.c (maintenance_info_psymtabs): Update.
4738 * probe.c (parse_probes): Update.
4739 * linespec.c (iterate_over_all_matching_symtabs)
4740 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
4741 * guile/scm-progspace.c (gdbscm_progspaces): Update.
4742 * exec.c (exec_target::close): Update.
4743 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
4744 * breakpoint.c (print_one_breakpoint_location)
4745 (create_longjmp_master_breakpoint)
4746 (create_std_terminate_master_breakpoint): Update.
4747 * progspace.c (program_spaces): Now a std::vector.
4748 (maybe_new_address_space): Update.
4749 (add_program_space): Remove.
4750 (program_space::program_space): Update.
4751 (remove_program_space): Update.
4752 (number_of_program_spaces): Remove.
4753 (print_program_space, update_address_spaces): Update.
4754 * progspace.h (program_spaces): Change type.
4755 (ALL_PSPACES): Remove.
4756 (number_of_program_spaces): Don't declare.
4757 (struct program_space) <next>: Remove.
4758
a1fd1ac9
TT
47592020-05-08 Tom Tromey <tom@tromey.com>
4760
4761 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
4762 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
4763 (enable_break): Update.
4764 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
4765 (frv_fdpic_find_canonical_descriptor): Update.
4766 (frv_fetch_objfile_link_map): Update.
4767 * progspace.c (program_space::free_all_objfiles): Update.
4768 (program_space::solibs): New method.
4769 * progspace.h (struct program_space) <solibs>: New method.
4770 * solist.h (master_so_list): Don't declare.
4771 (ALL_SO_LIBS): Remove.
4772 * solib.h (so_list_head): Remove.
4773 (update_solib_list): Update comment.
4774 * solib.c (master_so_list): Remove.
4775 (solib_used, update_solib_list, solib_add)
4776 (info_sharedlibrary_command, clear_solib)
4777 (reload_shared_libraries_1, remove_user_added_objfile): Update.
4778
38eae084
TT
47792020-05-08 Tom Tromey <tom@tromey.com>
4780
4781 * extension.c (extension_languages): Now a std::array.
4782 (ALL_EXTENSION_LANGUAGES): Remove.
4783 (get_ext_lang_defn, get_ext_lang_of_file)
4784 (eval_ext_lang_from_control_command): Update.
4785 (finish_ext_lang_initialization)
4786 (auto_load_ext_lang_scripts_for_objfile)
4787 (ext_lang_type_printers::ext_lang_type_printers)
4788 (apply_ext_lang_type_printers)
4789 (ext_lang_type_printers::~ext_lang_type_printers)
4790 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
4791 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
4792 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
4793 (get_matching_xmethod_workers, ext_lang_colorize)
4794 (ext_lang_before_prompt): Update.
4795 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
4796
596dc4ad
TT
47972020-05-08 Tom Tromey <tom@tromey.com>
4798
4799 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
4800 overload.
4801 <swap_string, m_string>: Remove.
4802 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
4803 Update.
4804 * stabsread.c (define_symbol, read_type): Update.
4805 * linespec.c (find_linespec_symbols): Update.
4806 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
4807 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
4808 * dbxread.c (read_dbx_symtab): Update.
4809 * cp-support.h (cp_canonicalize_string_full)
4810 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
4811 Return unique_xmalloc_ptr.
4812 * cp-support.c (inspect_type): Update.
4813 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
4814 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
4815 Likewise.
4816 * c-typeprint.c (print_name_maybe_canonical): Update.
4817 * break-catch-throw.c (check_status_exception_catchpoint):
4818 Update.
4819
bf4cb9be
TV
48202020-05-08 Tom de Vries <tdevries@suse.de>
4821
4822 * infrun.c (follow_fork): Copy current_line and current_symtab to
4823 child thread.
4824
a1b68f28
SM
48252020-05-07 Simon Marchi <simon.marchi@efficios.com>
4826
4827 * async-event.c (struct async_signal_handler, struct
4828 async_event_handler): Reformat, remove typedef.
4829
98d48915
SM
48302020-05-07 Simon Marchi <simon.marchi@efficios.com>
4831
4832 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
4833 access thistype->main_type->dyn_prop_list directly.
4834
7aa91313
SM
48352020-05-07 Simon Marchi <simon.marchi@efficios.com>
4836
4837 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
4838 (remove_dyn_prop): Remove. Update all users to use
4839 type::remove_dyn_prop.
4840 * gdbtypes.c (remove_dyn_prop): Rename to...
4841 (type::remove_dyn_prop): ... this.
4842
5c54719c
SM
48432020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
4844
4845 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
4846 (add_dyn_prop): Remove. Update all users to use
4847 type::add_dyn_prop.
4848 * gdbtypes.c (add_dyn_prop): Rename to...
4849 (type::add_dyn_prop): ... this.
4850
24e99c6c
SM
48512020-05-07 Simon Marchi <simon.marchi@efficios.com>
4852
4853 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
4854 (get_dyn_prop): Remove. Update all users to use
4855 type::dyn_prop.
4856 * gdbtypes.c (get_dyn_prop): Rename to...
4857 (type::dyn_prop): ... this.
4858
0d4bf016
SM
48592020-05-06 Simon Marchi <simon.marchi@efficios.com>
4860
4861 * gdbtypes.h (struct main_type) <flag_static>: Remove.
4862
ac4a4f1c
SM
48632020-05-06 Simon Marchi <simon.marchi@efficios.com>
4864
4865 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
4866 instruction, skip it if it's there.
4867
a3bbacc1
SM
48682020-05-05 Simon Marchi <simon.marchi@efficios.com>
4869
4870 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
4871
c3236f84
SM
48722020-05-04 Simon Marchi <simon.marchi@efficios.com>
4873
4874 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
4875 * gdbtypes.c (recursive_dump_type): Remove use of
4876 TYPE_INCOMPLETE.
4877
3b6acaee
TT
48782020-05-03 Tom Tromey <tom@tromey.com>
4879
4880 * breakpoint.c (catch_command, tcatch_command): Remove.
4881 (_initialize_breakpoint): Use add_basic_prefix_cmd,
4882 add_show_prefix_cmd.
4883 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
4884 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
4885 Remove.
4886 (add_internal_problem_command): Use add_basic_prefix_cmd,
4887 add_show_prefix_cmd.
4888 * mips-tdep.c (set_mipsfpu_command): Remove.
4889 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
4890 * dwarf2/index-cache.c (set_index_cache_command): Remove.
4891 (_initialize_index_cache): Use add_basic_prefix_cmd.
4892 * memattr.c (dummy_cmd): Remove.
4893 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
4894 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
4895 (_initialize_tui_win): Use add_basic_prefix_cmd,
4896 add_show_prefix_cmd.
4897 * cli/cli-logging.c (set_logging_command): Remove.
4898 (_initialize_cli_logging): Use add_basic_prefix_cmd,
4899 add_show_prefix_cmd.
4900 (show_logging_command): Remove.
4901 * target.c (target_command): Remove.
4902 (add_target): Use add_basic_prefix_cmd.
4903
a51119cd
HD
49042020-05-02 Hannes Domani <ssbssa@yahoo.de>
4905
4906 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
4907
652fc23a 49082020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 4909
652fc23a
PW
4910 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
4911 info_command.
4912
117539e6
KR
49132020-04-30 Kamil Rytarowski <n54@gmx.com>
4914
4915 * nbsd-nat.c (nbsd_enable_proc_events)
4916 (nbsd_nat_target::post_startup_inferior): Add.
4917 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
4918 (nbsd_nat_target::update_thread_list): Rewrite.
4919 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
4920 "PTRACE_LWP_CREATE".
4921 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
4922
102e38eb 49232020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 4924
102e38eb
PW
4925 * stack.c (_initialize_stack): Remove duplicated creation
4926 of "frame" command and "f" alias.
4927
ee9d1e5f
HD
49282020-04-30 Hannes Domani <ssbssa@yahoo.de>
4929
4930 PR gdb/18706
4931 * gdbtypes.c (check_typedef): Calculate size of array of
4932 stubbed type.
4933
627c7fb8
HD
49342020-04-30 Hannes Domani <ssbssa@yahoo.de>
4935
4936 PR gdb/15559
4937 * i386-tdep.c (i386_push_dummy_call): Call
4938 i386_thiscall_push_dummy_call.
4939 (i386_thiscall_push_dummy_call): New function.
4940 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
4941 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
4942 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
4943
ffc2844e
SM
49442020-04-29 Simon Marchi <simon.marchi@efficios.com>
4945
4946 * gdbarch.sh (do_read): Add shellcheck disable directive for
4947 warning SC2162.
4948
1207375d
SM
49492020-04-29 Simon Marchi <simon.marchi@efficios.com>
4950
4951 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
4952 "referenced but not assigned" warning.
4953
9fdb2916
SM
49542020-04-29 Simon Marchi <simon.marchi@efficios.com>
4955
4956 * gdbarch.sh: Remove code that sets fallbackdefault.
4957
759cea5e
SM
49582020-04-29 Simon Marchi <simon.marchi@efficios.com>
4959
4960 * gdbarch.sh: Use shell operators && and || instead of
4961 -a and -o.
4962
cb02ab24
SM
49632020-04-29 Simon Marchi <simon.marchi@efficios.com>
4964
4965 * gdbarch.sh: Use $(...) instead of `...`.
4966
a6fc5ffc
SM
49672020-04-29 Simon Marchi <simon.marchi@efficios.com>
4968
4969 * gdbarch.sh: Use double quotes around variables.
4970
8d113d13
SM
49712020-04-29 Simon Marchi <simon.marchi@efficios.com>
4972
4973 * gdbarch.sh: Use %s with printf, instead of variables in the
4974 format string.
4975
ed6acedd
TT
49762020-04-29 Tom Tromey <tromey@adacore.com>
4977
4978 PR ada/25875:
4979 * dwarf2/read.c (update_enumeration_type_from_children): Compute
4980 type fields here.
4981 (read_enumeration_type): Call
4982 update_enumeration_type_from_children later. Update comments.
4983 (process_enumeration_scope): Don't create type fields.
4984
b68b1b58
KR
49852020-04-29 Kamil Rytarowski <n54@gmx.com>
4986
4987 * nbsd-tdep.c: Include "xml-syscall.h".
4988 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
4989
f94b2e03
KR
49902020-04-29 Kamil Rytarowski <n54@gmx.com>
4991
4992 * nbsd-nat.c: Include "sys/wait.h".
4993 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
4994 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
4995 (nbsd_nat_target::remove_exec_catchpoint)
4996 (nbsd_nat_target::set_syscall_catchpoint): Add.
4997 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
4998 (nbsd_nat_target::insert_exec_catchpoint)
4999 (nbsd_nat_target::remove_exec_catchpoint)
5000 (nbsd_nat_target::set_syscall_catchpoint): Add.
5001 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
5002 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
5003 `nbsd_get_syscall_number'.
5004
fc49bc72
TT
50052020-04-29 Tom Tromey <tom@tromey.com>
5006
5007 * stack.c (print_block_frame_labels): Remove.
5008
d642b692
HD
50092020-04-29 Hannes Domani <ssbssa@yahoo.de>
5010
5011 PR gdb/17320
5012 * ada-valprint.c (val_print_packed_array_elements): Move array
5013 end bracket to new line.
5014 (ada_val_print_string): Remove extra spaces before first array
5015 element.
5016 * c-valprint.c (c_value_print_array): Likewise.
5017 * m2-valprint.c (m2_print_array_contents): Likewise.
5018 (m2_value_print_inner): Likewise.
5019 * p-valprint.c (pascal_value_print_inner): Likewise.
5020 * valprint.c (generic_val_print_array): Likewise.
5021 (value_print_array_elements): Move first array element and array
5022 end bracket to new line.
5023
ea90f227
TV
50242020-04-29 Tom de Vries <tdevries@suse.de>
5025
5026 PR symtab/25889
5027 * linespec.c (find_method): Fix ix calculation.
5028
4498ef4f
KR
50292020-04-28 Kamil Rytarowski <n54@gmx.com>
5030
5031 * syscalls/update-netbsd.sh: New file.
5032 * syscalls/netbsd.xml: Regenerate.
5033 * data-directory/Makefile.in: Register `netbsd.xml' in
5034 `SYSCALLS_FILES'.
5035
a55e30b5
SM
50362020-04-28 Simon Marchi <simon.marchi@efficios.com>
5037
5038 * syscalls/update-freebsd.sh: Add double quotes.
5039
2b2fbab8
TT
50402020-04-28 Tom Tromey <tom@tromey.com>
5041
5042 * NEWS: Update.
5043 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
5044 (cmdpy_init): Allow class_tui.
5045
a65189c9
TV
50462020-04-28 Mark Williams <mark@myosotissp.com>
5047
5048 PR gdb/24480
5049 * dwarf2read.c: Add missing assingments to list_in_scope when
5050 start_symtab was already called.
5051
1b95cdb7
SM
50522020-04-28 Simon Marchi <simon.marchi@efficios.com>
5053
5054 PR gdb/25881
5055 * dwarf2/read.c (offset_map_type): Use
5056 gdb:hash_enum<sect_offset> as hash function.
5057
15cd93d0
TV
50582020-04-28 Tom de Vries <tdevries@suse.de>
5059
5060 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
5061 with DW_AT_signature.
5062
1eb39914
SM
50632020-04-27 Simon Marchi <simon.marchi@efficios.com>
5064
5065 * configure.ac: Remove check for fs_base/gs_base in
5066 user_regs_struct.
5067 * configure: Re-generate.
5068 * config.in: Re-generate.
5069 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
5070 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
5071 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
5072
991a3e2e
LM
50732020-04-27 Luis Machado <luis.machado@linaro.org>
5074
5075 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
5076 problematic inline frame unwinding situation.
5077 * frame.c (frame_id_computed_p): New function.
5078 * frame.h (frame_id_computed_p): New prototype.
5079
361ba0e8
TT
50802020-04-26 Tom Tromey <tom@tromey.com>
5081
5082 * command.h (enum command_class) <class_pseudo>: Remove.
5083
bc3609fd
PW
50842020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5085
5086 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
5087 and whitespace.
5088
b9771db7
KR
50892020-04-25 Kamil Rytarowski <n54@gmx.com>
5090
ec16513e
SM
5091 * inf-ptrace.c (inf_ptrace_target::wait): Remove
5092 `PT_GET_PROCESS_STATE' block.
b9771db7 5093
7151c1af
TT
50942020-04-24 Tom Tromey <tom@tromey.com>
5095
5096 * symtab.h (symbol_get_demangled_name): Don't declare.
5097 * symtab.c (symbol_get_demangled_name): Remove.
5098 (general_symbol_info::natural_name)
5099 (general_symbol_info::demangled_name): Update.
5100
906bb4c5
TT
51012020-04-24 Tom Tromey <tom@tromey.com>
5102
5103 PR rust/25025:
5104 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
5105
bcfe6157
TT
51062020-04-24 Tom Tromey <tom@tromey.com>
5107
5108 PR symtab/12707:
5109 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
5110 exists.
5111 (new_symbol): Likewise.
5112 * compile/compile-object-load.c (get_out_value_type): Use
5113 symbol_matches_search_name.
5114
f049a313
TT
51152020-04-24 Tom Tromey <tom@tromey.com>
5116
5117 * dwarf2/read.c (add_partial_symbol): Do not call
5118 compute_and_set_names.
5119
76e288d1
TT
51202020-04-24 Tom Tromey <tom@tromey.com>
5121
5122 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
5123 overload.
5124
2467f4f6
TT
51252020-04-24 Tom Tromey <tom@tromey.com>
5126
5127 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
5128 (add_psymbol_to_list): New overload. Make old overload call new
5129 one.
5130 * psympriv.h (add_psymbol_to_list): New overload.
5131
e61108c9
TT
51322020-04-24 Tom Tromey <tom@tromey.com>
5133
5134 * dwarf2/read.c (partial_die_info::read) <case
5135 DW_AT_linkage_name>: Use value_as_string.
5136 (dwarf2_string_attr): Use value_as_string.
5137 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
5138 method.
5139 * dwarf2/attribute.c (attribute::value_as_string): New method.
5140
8c87a452
TT
51412020-04-24 Tom Tromey <tom@tromey.com>
5142
5143 * symtab.c (general_symbol_info::natural_name)
5144 (general_symbol_info::demangled_name): Check for language_rust.
5145
787de330
TT
51462020-04-24 Tom Tromey <tom@tromey.com>
5147
5148 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
5149 (dwarf2_physname): ... from here.
5150 (partial_die_info::read): Add Rust "{" hack.
5151
ff985671
TT
51522020-04-24 Tom Tromey <tom@tromey.com>
5153
5154 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
5155 method.
5156 (symbol_set_demangled_name): Don't declare.
5157 * symtab.c (general_symbol_info::set_demangled_name): Rename from
5158 symbol_set_demangled_name.
5159 (general_symbol_info::set_language)
5160 (general_symbol_info::compute_and_set_names): Update.
5161 * minsyms.c (minimal_symbol_reader::install): Update.
5162 * dwarf2/read.c (new_symbol): Update.
5163
1acda803
TT
51642020-04-24 Tom Tromey <tromey@adacore.com>
5165
5166 PR python/23662:
5167 * python/py-type.c (convert_field): Handle
5168 FIELD_LOC_KIND_DWARF_BLOCK.
5169 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
5170 (typy_get_dynamic): Nw function.
5171 (type_object_getset): Add "dynamic".
5172 * NEWS: Add entry.
5173
d656f129
TT
51742020-04-24 Tom Tromey <tromey@adacore.com>
5175
5176 * ada-typeprint.c (print_choices, print_variant_part)
5177 (print_record_field_types_dynamic): New functions.
5178 (print_record_field_types): Use print_record_field_types_dynamic.
5179
7d79de9a
TT
51802020-04-24 Tom Tromey <tromey@adacore.com>
5181
5182 * dwarf2/read.c (handle_data_member_location): New overload.
5183 (dwarf2_add_field): Use it.
5184 (decode_locdesc): Add "computed" parameter. Update comment.
5185 * gdbtypes.c (is_dynamic_type_internal): Also look for
5186 FIELD_LOC_KIND_DWARF_BLOCK.
5187 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
5188 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
5189 virtual base classes.
5190 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
5191 FIELD_LOC_KIND_DWARF_BLOCK.
5192
f8e89861
TT
51932020-04-24 Tom Tromey <tromey@adacore.com>
5194
5195 * dwarf2/read.c (read_structure_type): Handle dynamic length.
5196 * gdbtypes.c (is_dynamic_type_internal): Check
5197 TYPE_HAS_DYNAMIC_LENGTH.
5198 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
5199 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
5200 New macros.
5201 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
5202 constant.
5203
9c6a1327
TT
52042020-04-24 Tom Tromey <tromey@adacore.com>
5205
5206 * dwarf2/read.c (struct variant_field): Rewrite.
5207 (struct variant_part_builder): New.
5208 (struct nextfield): Remove "variant" field. Add "offset".
5209 (struct field_info): Add "current_variant_part" and
5210 "variant_parts".
5211 (alloc_discriminant_info): Remove.
5212 (alloc_rust_variant): New function.
5213 (quirk_rust_enum): Update.
5214 (dwarf2_add_field): Set "offset" member. Don't handle
5215 DW_TAG_variant_part.
5216 (offset_map_type): New typedef.
5217 (convert_variant_range, create_one_variant)
5218 (create_one_variant_part, create_variant_parts)
5219 (add_variant_property): New functions.
5220 (dwarf2_attach_fields_to_type): Call add_variant_property.
5221 (read_structure_type): Don't handle DW_TAG_variant_part.
5222 (handle_variant_part, handle_variant): New functions.
5223 (handle_struct_member_die): Use them.
5224 (process_structure_scope): Don't handle variant parts.
5225 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
5226 (struct discriminant_info): Remove.
5227 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
5228 (struct main_type) <flag_discriminated_union>: Remove.
5229 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
5230 (rust_enum_variant): Return int. Remove "contents". Rewrite.
5231 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
5232 Update.
5233 * valops.c (value_union_variant): Remove.
5234 * value.h (value_union_variant): Don't declare.
5235
b249d2c2
TT
52362020-04-24 Tom Tromey <tromey@adacore.com>
5237
5238 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
5239 (ada_value_primitive_packed_val): Update.
5240 * ada-valprint.c (ada_value_print_1): Update.
5241 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
5242 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
5243 just an address. Use evaluate_for_locexpr_baton.
5244 (dwarf2_evaluate_property): Update.
5245 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
5246 array_view.
5247 * findvar.c (default_read_var_value): Update.
5248 * gdbtypes.c (compute_variant_fields_inner)
5249 (resolve_dynamic_type_internal): Update.
5250 (resolve_dynamic_type): Change type of valaddr parameter.
5251 * gdbtypes.h (resolve_dynamic_type): Update.
5252 * valarith.c (value_subscripted_rvalue): Update.
5253 * value.c (value_from_contents_and_address): Update.
5254
61122aa9
TT
52552020-04-24 Tom Tromey <tromey@adacore.com>
5256
5257 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
5258 "push_initial_value" parameter.
5259 (dwarf2_evaluate_property): Likewise.
5260 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
5261
ef83a141
TT
52622020-04-24 Tom Tromey <tromey@adacore.com>
5263
5264 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
5265 (variant::matches, compute_variant_fields_recurse)
5266 (compute_variant_fields_inner, compute_variant_fields): New
5267 functions.
5268 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
5269 Use resolved_type after type is made.
5270 (operator==): Add new cases.
5271 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
5272 (struct discriminant_range, struct variant, struct variant_part):
5273 New.
5274 (union dynamic_prop_data) <variant_parts, original_type>: New
5275 members.
5276 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
5277 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
5278 constants.
5279 * value.c (unpack_bits_as_long): Now public.
5280 * value.h (unpack_bits_as_long): Declare.
5281
675127ec
TT
52822020-04-24 Tom Tromey <tromey@adacore.com>
5283
5284 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
5285 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
5286
9852ceef
HD
52872020-04-24 Hannes Domani <ssbssa@yahoo.de>
5288
5289 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
5290
7632c6ce
KR
52912020-04-24 Kamil Rytarowski <n54@gmx.com>
5292
5293 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
5294 (remove_fork_catchpoint, post_startup_inferior)
5295 (post_attach): Move...
5296 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
5297 (remove_fork_catchpoint, post_startup_inferior)
5298 (post_attach): ...here.
5299 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
5300 (remove_fork_catchpoint, post_startup_inferior)
5301 (post_attach): Move...
5302 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
5303 (remove_fork_catchpoint, post_startup_inferior)
5304 (post_attach): ...here.
5305
7be2bb4f
TT
53062020-04-24 Tom Tromey <tromey@adacore.com>
5307
5308 * nat/windows-nat.h (struct windows_thread_info)
5309 <pc_adjusted>: New member.
5310 * windows-nat.c (windows_fetch_one_register): Check
5311 pc_adjusted.
5312 (windows_nat_target::get_windows_debug_event)
5313 (windows_nat_target::wait): Set pc_adjusted.
5314
f80cb3b4
TV
53152020-04-24 Tom de Vries <tdevries@suse.de>
5316
5317 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
5318 Run gdb-add-index inside temp dir.
5319
29514b87
TT
53202020-04-23 Tom Tromey <tromey@adacore.com>
5321
5322 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
5323 in loop.
5324
5939967b
LM
53252020-04-23 Luis Machado <luis.machado@linaro.org>
5326
5327 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
5328 get_frame_register instead of gdbarch_unwind_pc.
5329
70bc38f5
TV
53302020-04-23 Tom de Vries <tdevries@suse.de>
5331
5332 * symtab.c (lookup_global_symbol): Prefer def over decl.
5333
de82891c
TV
53342020-04-23 Tom de Vries <tdevries@suse.de>
5335
5336 PR symtab/25807
5337 * block.c (best_symbol, better_symbol): Promote to external.
5338 * block.h (best_symbol, better_symbol): Declare.
5339 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
5340 decl.
5341
ecc6c606
TT
53422020-04-23 Tom Tromey <tromey@adacore.com>
5343
5344 PR ada/25837:
5345 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
5346 "const char *", not a "const std::string &".
5347 <name_and_matcher::operator==>: Update.
5348 * unittests/lookup_name_info-selftests.c: Change type of
5349 "result".
5350
740480b8
TT
53512020-04-23 Tom Tromey <tom@tromey.com>
5352
5353 * inferior.h (iterate_over_inferiors): Don't declare.
5354 * inferior.c (iterate_over_inferiors): Remove.
5355 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
5356 Remove.
5357 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
5358 use iterate_over_inferiors.
5359 (darwin_resume_inferior_it)
5360 (struct resume_inferior_threads_param)
5361 (darwin_resume_inferior_threads_it): Remove.
5362 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
5363
ae3ab1f0
TV
53642020-04-23 Tom de Vries <tdevries@suse.de>
5365
5366 * blockframe.c (find_pc_partial_function): Use
5367 find_pc_sect_compunit_symtab rather than
5368 objfile->sf->qf->find_pc_sect_compunit_symtab.
5369
317d2668
TV
53702020-04-22 Tom de Vries <tdevries@suse.de>
5371
5372 PR symtab/25764
5373 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
5374 in psymtabs.
5375
eea9e357
TV
53762020-04-22 Tom de Vries <tdevries@suse.de>
5377
5378 PR symtab/25801
5379 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
5380 symtabs.
5381
3d5afab3
TV
53822020-04-22 Tom de Vries <tdevries@suse.de>
5383
5384 PR symtab/25700
5385 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
5386 CU if already created.
5387
d43b7a2d
TBA
53882020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5389
5390 * infrun.c (displaced_step_fixup): Switch to the event_thread
5391 before calling displaced_step_restore, not after.
5392
d89edf9b
MM
53932020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5394
5395 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
5396 its inferior is not recorded by us.
5397 (record_btrace_target_open): Replace call to
5398 all_non_exited_threads () with call to current_inferior
5399 ()->non_exited_threads ().
5400 (record_btrace_target::stop_recording): Likewise.
5401 (record_btrace_target::close): Likewise.
5402 (record_btrace_target::wait): Likewise.
5403 (record_btrace_target::record_stop_replaying): Likewise.
5404
5897fd49
MM
54052020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5406
5407 * btrace.c (btrace_enable): Throw an error on double enables and
5408 when enabling recording fails.
5409 (btrace_disable): Throw an error if the thread is not recorded.
5410
1a476b6d
MM
54112020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5412
5413 * record-btrace.c (record_btrace_target::fetch_registers): Forward
5414 request if we do not have a thread_info.
5415
4778a5f8
TV
54162020-04-21 Tom de Vries <tdevries@suse.de>
5417
5418 PR gdb/25471
5419 * thread.c
5420 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
5421 exception in get_frame_id.
5422
0fa7617d
TT
54232020-04-20 Tom Tromey <tromey@adacore.com>
5424
5425 * python/python.c (struct gdbpy_event): Mark move constructor as
5426 noexcept.
5427 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
5428 constructor as noexcept.
5429 * completer.h (struct completion_result): Mark move constructor as
5430 noexcept.
5431 * completer.c (completion_result::completion_result): Use
5432 initialization style. Don't call reset_match_list.
5433
ad23bda0
MS
54342020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
5435
5436 * MAINTAINERS (Write After Approval): Add myself.
5437
45e1f031
TT
54382020-04-18 Tom Tromey <tom@tromey.com>
5439
5440 * windows-tdep.c (init_w32_command_list)
5441 (w32_prefix_command_valid): Restore.
5442 (_initialize_windows_tdep): Call init_w32_command_list.
5443
08feed99
TT
54442020-04-18 Tom Tromey <tom@tromey.com>
5445
5446 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
5447 * value.c (value_fn_field): Update.
5448 * valops.c (find_function_in_inferior)
5449 (value_allocate_space_in_inferior): Update.
5450 * tui/tui-winsource.c (tui_update_source_windows_with_line):
5451 Update.
5452 * tui/tui-source.c (tui_source_window::set_contents): Update.
5453 * symtab.c (lookup_global_or_static_symbol)
5454 (find_function_start_sal_1, skip_prologue_sal)
5455 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
5456 * symmisc.c (dump_msymbols, dump_symtab_1)
5457 (maintenance_print_one_line_table): Update.
5458 * symfile.c (init_entry_point_info, section_is_mapped)
5459 (list_overlays_command, simple_read_overlay_table)
5460 (simple_overlay_update_1): Update.
5461 * stap-probe.c (handle_stap_probe): Update.
5462 * stabsread.c (dbx_init_float_type, define_symbol)
5463 (read_one_struct_field, read_enum_type, read_range_type): Update.
5464 * source.c (info_line_command): Update.
5465 * python/python.c (gdbpy_source_objfile_script)
5466 (gdbpy_execute_objfile_script): Update.
5467 * python/py-type.c (save_objfile_types): Update.
5468 * python/py-objfile.c (py_free_objfile): Update.
5469 * python/py-inferior.c (python_new_objfile): Update.
5470 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
5471 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
5472 (maintenance_check_psymtabs): Update.
5473 * printcmd.c (info_address_command): Update.
5474 * objfiles.h (struct objfile) <arch>: New method, from
5475 get_objfile_arch.
5476 (get_objfile_arch): Don't declare.
5477 * objfiles.c (get_objfile_arch): Remove.
5478 (filter_overlapping_sections): Update.
5479 * minsyms.c (msymbol_is_function): Update.
5480 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
5481 (output_nondebug_symbol): Update.
5482 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
5483 (mdebug_expand_psymtab): Update.
5484 * machoread.c (macho_add_oso_symfile): Update.
5485 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
5486 Update.
5487 * linux-fork.c (checkpoint_command): Update.
5488 * linespec.c (convert_linespec_to_sals): Update.
5489 * jit.c (finalize_symtab): Update.
5490 * infrun.c (insert_exception_resume_from_probe): Update.
5491 * ia64-tdep.c (ia64_find_unwind_table): Update.
5492 * hppa-tdep.c (internalize_unwinds): Update.
5493 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
5494 Update.
5495 * gcore.c (call_target_sbrk): Update.
5496 * elfread.c (record_minimal_symbol, elf_symtab_read)
5497 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
5498 (elf_gnu_ifunc_resolve_by_got): Update.
5499 * dwarf2/read.c (create_addrmap_from_index)
5500 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
5501 (read_debug_names_from_section)
5502 (process_psymtab_comp_unit_reader, add_partial_symbol)
5503 (add_partial_subprogram, process_full_comp_unit)
5504 (read_file_scope, read_func_scope, read_lexical_block_scope)
5505 (read_call_site_scope, dwarf2_ranges_read)
5506 (dwarf2_record_block_ranges, dwarf2_add_field)
5507 (mark_common_block_symbol_computed, read_tag_pointer_type)
5508 (read_tag_string_type, dwarf2_init_float_type)
5509 (dwarf2_init_complex_target_type, read_base_type)
5510 (partial_die_info::read, partial_die_info::read)
5511 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
5512 (dwarf2_fetch_die_loc_sect_off): Update.
5513 * dwarf2/loc.c (dwarf2_find_location_expression)
5514 (class dwarf_evaluate_loc_desc, rw_pieced_value)
5515 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
5516 (dwarf2_loc_desc_get_symbol_read_needs)
5517 (locexpr_describe_location_piece, locexpr_describe_location_1)
5518 (loclist_describe_location): Update.
5519 * dwarf2/index-write.c (write_debug_names): Update.
5520 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
5521 * dtrace-probe.c (dtrace_process_dof): Update.
5522 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
5523 (process_one_symbol): Update.
5524 * ctfread.c (ctf_init_float_type, read_base_type): Update.
5525 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
5526 (coff_read_enum_type): Update.
5527 * cli/cli-cmds.c (edit_command, list_command): Update.
5528 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
5529 * breakpoint.c (create_overlay_event_breakpoint)
5530 (create_longjmp_master_breakpoint)
5531 (create_std_terminate_master_breakpoint)
5532 (create_exception_master_breakpoint, get_sal_arch): Update.
5533 * block.c (block_gdbarch): Update.
5534 * annotate.c (annotate_source_line): Update.
5535
0743fc83
TT
55362020-04-17 Tom Tromey <tromey@adacore.com>
5537
5538 * auto-load.c (show_auto_load_cmd): Remove.
5539 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
5540 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
5541 (maintenance_print_arc_command): Remove.
5542 * tui/tui-win.c (tui_command): Remove.
5543 (tui_get_cmd_list): Use add_basic_prefix_cmd.
5544 * tui/tui-layout.c (tui_layout_command): Remove.
5545 (_initialize_tui_layout): Use add_basic_prefix_cmd.
5546 * python/python.c (user_set_python, user_show_python): Remove.
5547 (_initialize_python): Use add_basic_prefix_cmd,
5548 add_show_prefix_cmd.
5549 * guile/guile.c (set_guile_command, show_guile_command): Remove.
5550 (install_gdb_commands): Use add_basic_prefix_cmd,
5551 add_show_prefix_cmd.
5552 (info_guile_command): Remove.
5553 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
5554 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
5555 add_show_prefix_cmd.
5556 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
5557 Remove do_set and do_show parameters.
5558 * cli/cli-style.c (set_style, show_style): Remove.
5559 (_initialize_cli_style): Use add_basic_prefix_cmd,
5560 add_show_prefix_cmd.
5561 (cli_style_option::add_setshow_commands): Remove do_set and
5562 do_show parameters.
5563 (cli_style_option::add_setshow_commands): Use
5564 add_basic_prefix_cmd, add_show_prefix_cmd.
5565 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
5566 (set_style_name): Remove.
5567 * cli/cli-dump.c (dump_command, append_command): Remove.
5568 (srec_dump_command, ihex_dump_command, verilog_dump_command)
5569 (tekhex_dump_command, binary_dump_command)
5570 (binary_append_command): Remove.
5571 (_initialize_cli_dump): Use add_basic_prefix_cmd.
5572 * windows-tdep.c (w32_prefix_command_valid): Remove global.
5573 (init_w32_command_list): Remove; move into ...
5574 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
5575 * valprint.c (set_print, show_print, set_print_raw)
5576 (show_print_raw): Remove.
5577 (_initialize_valprint): Use add_basic_prefix_cmd,
5578 add_show_prefix_cmd.
5579 * typeprint.c (set_print_type, show_print_type): Remove.
5580 (_initialize_typeprint): Use add_basic_prefix_cmd,
5581 add_show_prefix_cmd.
5582 * record.c (set_record_command, show_record_command): Remove.
5583 (_initialize_record): Use add_basic_prefix_cmd,
5584 add_show_prefix_cmd.
5585 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
5586 add_show_prefix_cmd.
5587 (info_command, show_command, set_debug, show_debug): Remove.
5588 * top.h (set_history, show_history): Don't declare.
5589 * top.c (set_history, show_history): Remove.
5590 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
5591 (unset_tdesc_cmd): Remove.
5592 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
5593 add_show_prefix_cmd.
5594 * symtab.c (info_module_command): Remove.
5595 (_initialize_symtab): Use add_basic_prefix_cmd.
5596 * symfile.c (overlay_command): Remove.
5597 (_initialize_symfile): Use add_basic_prefix_cmd.
5598 * sparc64-tdep.c (info_adi_command): Remove.
5599 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
5600 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
5601 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
5602 add_show_prefix_cmd.
5603 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
5604 (_initialize_serial): Use add_basic_prefix_cmd,
5605 add_show_prefix_cmd.
5606 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
5607 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
5608 add_show_prefix_cmd.
5609 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
5610 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
5611 add_show_prefix_cmd.
5612 * riscv-tdep.c (show_riscv_command, set_riscv_command)
5613 (show_debug_riscv_command, set_debug_riscv_command): Remove.
5614 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
5615 add_show_prefix_cmd.
5616 * remote.c (remote_command, set_remote_cmd): Remove.
5617 (_initialize_remote): Use add_basic_prefix_cmd.
5618 * record-full.c (set_record_full_command)
5619 (show_record_full_command): Remove.
5620 (_initialize_record_full): Use add_basic_prefix_cmd,
5621 add_show_prefix_cmd.
5622 * record-btrace.c (cmd_set_record_btrace)
5623 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
5624 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
5625 (cmd_show_record_btrace_pt): Remove.
5626 (_initialize_record_btrace): Use add_basic_prefix_cmd,
5627 add_show_prefix_cmd.
5628 * ravenscar-thread.c (set_ravenscar_command)
5629 (show_ravenscar_command): Remove.
5630 (_initialize_ravenscar): Use add_basic_prefix_cmd,
5631 add_show_prefix_cmd.
5632 * mips-tdep.c (show_mips_command, set_mips_command)
5633 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
5634 add_show_prefix_cmd.
5635 * maint.c (maintenance_command, maintenance_info_command)
5636 (maintenance_check_command, maintenance_print_command)
5637 (maintenance_set_cmd, maintenance_show_cmd): Remove.
5638 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
5639 add_show_prefix_cmd.
5640 (show_per_command_cmd): Remove.
5641 * maint-test-settings.c (maintenance_set_test_settings_cmd):
5642 Remove.
5643 (maintenance_show_test_settings_cmd): Remove.
5644 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
5645 add_show_prefix_cmd.
5646 * maint-test-options.c (maintenance_test_options_command):
5647 Remove.
5648 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
5649 * macrocmd.c (macro_command): Remove
5650 (_initialize_macrocmd): Use add_basic_prefix_cmd.
5651 * language.c (set_check, show_check): Remove.
5652 (_initialize_language): Use add_basic_prefix_cmd,
5653 add_show_prefix_cmd.
5654 * infcmd.c (unset_command): Remove.
5655 (_initialize_infcmd): Use add_basic_prefix_cmd.
5656 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
5657 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
5658 add_show_prefix_cmd.
5659 * go32-nat.c (go32_info_dos_command): Remove.
5660 (_initialize_go32_nat): Use add_basic_prefix_cmd.
5661 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
5662 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
5663 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
5664 (_initialize_frame): Use add_basic_prefix_cmd,
5665 add_show_prefix_cmd.
5666 * dcache.c (set_dcache_command, show_dcache_command): Remove.
5667 (_initialize_dcache): Use add_basic_prefix_cmd,
5668 add_show_prefix_cmd.
5669 * cp-support.c (maint_cplus_command): Remove.
5670 (_initialize_cp_support): Use add_basic_prefix_cmd.
5671 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
5672 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
5673 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
5674 add_basic_prefix_cmd, add_show_prefix_cmd.
5675 * breakpoint.c (save_command): Remove.
5676 (_initialize_breakpoint): Use add_basic_prefix_cmd.
5677 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
5678 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
5679 add_show_prefix_cmd.
5680 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
5681 (set_ada_command, show_ada_command): Remove.
5682 (_initialize_ada_language): Use add_basic_prefix_cmd,
5683 add_show_prefix_cmd.
5684 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
5685
3557f442
KR
56862020-04-16 Kamil Rytarowski <n54@gmx.com>
5687
5688 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
5689 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
5690
16197208
SM
56912020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
5692
5693 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
5694 warning messages.
5695
00ac85d3
SM
56962020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
5697
5698 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
5699 import table is not at beginning of .idata section.
5700
381ce63f
PA
57012020-04-16 Pedro Alves <palves@redhat.com>
5702
5703 * inferior.c (delete_inferior): Use delete operator directly
5704 instead of delete_program_space.
5705 * progspace.c (add_program_space): New, factored out from
5706 program_space::program_space.
5707 (remove_program_space): New, factored out from
5708 delete_program_space.
5709 (program_space::program_space): Remove intro comment. Rewrite.
5710 (program_space::~program_space): Remove intro comment. Call
5711 remove_program_space.
5712 (delete_program_space): Delete.
5713 * progspace.h (program_space::program_space): Make explicit. Move
5714 intro comment here, adjusted.
5715 (program_space::~program_space): Move intro comment here,
5716 adjusted.
5717 (delete_program_space): Remove.
5718
a010605f
TT
57192020-04-16 Tom Tromey <tromey@adacore.com>
5720
5721 * windows-nat.c (windows_nat::handle_access_violation): New
5722 function.
5723 * nat/windows-nat.h (handle_access_violation): Declare.
5724 * nat/windows-nat.c (handle_exception): Move Cygwin code to
5725 windows-nat.c. Call handle_access_violation.
5726
efba5c23
TV
57272020-04-16 Tom de Vries <tdevries@suse.de>
5728
5729 PR symtab/25791
5730 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
5731 CUs without psymtab.
5732
97ed802d
KB
57332020-04-16 Kevin Buettner <kevinb@redhat.com>
5734
5735 * python/python.c (do_start_initialization): Don't call
5736 PyEval_InitThreads for Python 3.9 and beyond.
5737
c7d64809
KR
57382020-04-15 Kamil Rytarowski <n54@gmx.com>
5739
5740 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
5741 thread functions.
5742 (obsd_nat_target::wait): Likewise.
5743
ce127a96
TT
57442020-04-15 Tom Tromey <tromey@adacore.com>
5745
5746 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
5747 (DEBUG_EXCEPT): Use debug_printf.
5748
99f1bc6a
AB
57492020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
5750
5751 * completer.c (class completion_tracker::completion_hash_entry)
5752 <hash_name>: New member function.
5753 (completion_tracker::discard_completions): New callback to hash a
5754 completion_hash_entry, pass this to htab_create_alloc.
5755
a0e9b532
JT
57562016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
5757
5758 * windows-nat.c (windows_make_so): Warn rather than stopping with
5759 an error if realpath() fails.
5760
06ca5dd4
KR
57612020-04-14 Kamil Rytarowski <n54@gmx.com>
5762
5763 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
5764 (nbsd_nat_target::info_proc): Add do_status.
5765
194d088f
TV
57662020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
5767 Tom de Vries <tdevries@suse.de>
5768
5769 PR symtab/25718
5770 * psympriv.h (struct partial_symtab::read_symtab)
5771 (struct partial_symtab::expand_psymtab)
5772 (struct partial_symtab::read_dependencies): Update comments.
5773 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
5774 read_symtab for includer.
5775 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
5776 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
5777 (struct dwarf2_include_psymtab::m_readin): Remove.
5778 (struct dwarf2_include_psymtab::includer): New member function.
5779 (dwarf2_psymtab::expand_psymtab): Assert !readin.
5780
c1a66c06
TV
57812020-04-14 Tom de Vries <tdevries@suse.de>
5782
5783 PR symtab/25720
5784 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
5785 with NULL symbol_matcher and lookup_name.
5786 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
5787 and lookup_name.
5788 * dwarf2/read.c (dw2_expand_symtabs_matching)
5789 (dw2_debug_names_expand_symtabs_matching): Same.
5790 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
5791 Make lookup_name a pointer. Update comment.
5792 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
5793 lookup_name being a pointer.
5794 * symfile.c (expand_symtabs_matching): Same.
5795 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
5796 * linespec.c (iterate_over_all_matching_symtabs): Same.
5797
400b5eca
TT
57982020-04-13 Tom Tromey <tom@tromey.com>
5799
5800 * run-on-main-thread.c: Update include.
5801 * unittests/main-thread-selftests.c: Update include.
5802 * tui/tui-win.c: Update include.
5803 * tui/tui-io.c: Update include.
5804 * tui/tui-interp.c: Update include.
5805 * tui/tui-hooks.c: Update include.
5806 * top.h: Update include.
5807 * top.c: Update include.
5808 * ser-base.c: Update include.
5809 * remote.c: Update include.
5810 * remote-notif.c: Update include.
5811 * remote-fileio.c: Update include.
5812 * record-full.c: Update include.
5813 * record-btrace.c: Update include.
5814 * python/python.c: Update include.
5815 * posix-hdep.c: Update include.
5816 * mingw-hdep.c: Update include.
5817 * mi/mi-main.c: Update include.
5818 * mi/mi-interp.c: Update include.
5819 * main.c: Update include.
5820 * linux-nat.c: Update include.
5821 * interps.c: Update include.
5822 * infrun.c: Update include.
5823 * inf-loop.c: Update include.
5824 * event-top.c: Update include.
5825 * event-loop.c: Move to ../gdbsupport/.
5826 * event-loop.h: Move to ../gdbsupport/.
5827 * async-event.h: Update include.
5828 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
5829
93b54c8e
TT
58302020-04-13 Tom Tromey <tom@tromey.com>
5831
5832 * tui/tui-win.c: Include async-event.h.
5833 * remote.c: Include async-event.h.
5834 * remote-notif.c: Include async-event.h.
5835 * record-full.c: Include async-event.h.
5836 * record-btrace.c: Include async-event.h.
5837 * infrun.c: Include async-event.h.
5838 * event-top.c: Include async-event.h.
5839 * event-loop.h: Move some declarations to async-event.h.
5840 * event-loop.c: Don't include ser-event.h or top.h. Move some
5841 code to async-event.c.
5842 * async-event.h: New file.
5843 * async-event.c: New file.
5844 * Makefile.in (COMMON_SFILES): Add async-event.c.
5845 (HFILES_NO_SRCDIR): Add async-event.h.
5846
c1cd3163
TT
58472020-04-13 Tom Tromey <tom@tromey.com>
5848
5849 * utils.c (flush_streams): New function.
5850 * event-loop.c (gdb_wait_for_event): Call flush_streams.
5851
29f2bf4f
TT
58522020-04-13 Tom Tromey <tom@tromey.com>
5853
5854 * event-loop.c (handle_file_event): Use warning, not
5855 printf_unfiltered.
5856
98029d02
TT
58572020-04-13 Tom Tromey <tom@tromey.com>
5858
5859 * event-loop.c: Include <chrono>.
5860
06cc9596
TT
58612020-04-13 Tom Tromey <tom@tromey.com>
5862
5863 * gdb_select.h: Move to ../gdbsupport/.
5864 * event-loop.c: Update include path.
5865 * top.c: Update include path.
5866 * ser-base.c: Update include path.
5867 * ui-file.c: Update include path.
5868 * ser-tcp.c: Update include path.
5869 * guile/scm-ports.c: Update include path.
5870 * posix-hdep.c: Update include path.
5871 * ser-unix.c: Update include path.
5872 * gdb_usleep.c: Update include path.
5873 * mingw-hdep.c: Update include path.
5874 * inflow.c: Update include path.
5875 * infrun.c: Update include path.
5876 * event-top.c: Update include path.
5877
8ae8e197
TT
58782020-04-13 Tom Tromey <tom@tromey.com>
5879
5880 * configure: Rebuild.
5881 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
5882
58cf28e8
TT
58832020-04-13 Tom Tromey <tom@tromey.com>
5884
5885 * event-loop.h (start_event_loop): Don't declare.
5886 * event-loop.c (start_event_loop): Move...
5887 * main.c (start_event_loop): ...here. Now static.
5888
b7f999ae
SDJ
58892020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
5890
5891 * MAINTAINERS: Update my email address.
5892
1085dfd4
KR
58932020-04-12 Kamil Rytarowski <n54@gmx.com>
5894
5895 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
5896 IP_ALL.
5897
49d1d1f5
KR
58982020-04-12 Kamil Rytarowski <n54@gmx.com>
5899
5900 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 5901 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 5902
b4848d2a
KR
59032020-04-12 Kamil Rytarowski <n54@gmx.com>
5904
5905 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 5906 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 5907
51c133d5
KR
59082020-04-12 Kamil Rytarowski <n54@gmx.com>
5909
5910 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
5911
54b8cbd0
KR
59122020-04-11 Kamil Rytarowski <n54@gmx.com>
5913
5914 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
5915 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
5916 (nbsd_nat_target::info_proc): New functions.
5917 * nbsd-nat.c (kinfo_get_vmmap): New function.
5918 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
5919 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
5920 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
5921 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
5922 functions.
5923 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
5924 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
5925 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
5926 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
5927 (KINFO_VME_FLAG_GROWS_DOWN): New.
5928
cf83625d
AS
59292020-04-10 Artur Shepilko <nomadbyte@gmail.com>
5930
5931 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
5932 bit shift.
5933
0c4311ab
TT
59342020-04-10 Tom Tromey <tromey@adacore.com>
5935
5936 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
5937
3e65b3e9
TT
59382020-04-10 Tom Tromey <tromey@adacore.com>
5939
5940 * symtab.c (get_symbol_address, get_msymbol_address): Skip
5941 separate debug files.
5942
13302e95
HD
59432020-04-10 Hannes Domani <ssbssa@yahoo.de>
5944
5945 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5946 Move to...
5947 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5948 ... here.
5949 * windows-nat.c (windows_nat_target::get_windows_debug_event):
5950 Check for STATUS_WX86_BREAKPOINT.
5951 (windows_nat_target::wait): Same.
5952
bdfc1e8a
TV
59532020-04-10 Tom de Vries <tdevries@suse.de>
5954
5955 PR cli/25808
5956 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
5957
f4460aec
SM
59582020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
5959
5960 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
5961 (Write After Approval): Remove Tom de Vries.
5962
a25198bb
BE
59632020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
5964
5965 revert partially:
5966 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5967
aac66a4c
SM
5968 * buildsym.c (record_line): Fix undefined behavior and preserve
5969 lines at eof.
a25198bb 5970
206c98a6
KR
59712020-04-09 Kamil Rytarowski <n54@gmx.com>
5972
5973 * auxv.h (svr4_auxv_parse): New.
5974 * auxv.c (default_auxv_parse): Split into default_auxv_parse
5975 and generic_auxv_parse.
5976 (svr4_auxv_parse): Add.
5977 * obsd-tdep.c: Include "auxv.h".
5978 (obsd_auxv_parse): Remove.
5979 (obsd_init_abi): Remove comment.
5980 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
5981 from `obsd_auxv_parse' to `svr4_auxv_parse'.
5982 * nbsd-tdep.c: Include "auxv.h".
5983 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
5984
71fbdbaf
TT
59852020-04-08 Tom Tromey <tromey@adacore.com>
5986
5987 * nat/windows-nat.h (last_wait_event): Don't declare.
5988 (wait_for_debug_event): Update comment.
5989 * nat/windows-nat.c (last_wait_event): Now static.
5990
2c1d95e8
TT
59912020-04-08 Tom Tromey <tromey@adacore.com>
5992
5993 * windows-nat.c (wait_for_debug_event): Move to
5994 nat/windows-nat.c.
5995 * nat/windows-nat.h (wait_for_debug_event): Declare.
5996 * nat/windows-nat.c (wait_for_debug_event): Move from
5997 windows-nat.c. No longer static.
5998
d2977bc4
TT
59992020-04-08 Tom Tromey <tromey@adacore.com>
6000
6001 * windows-nat.c (get_windows_debug_event): Use
6002 fetch_pending_stop.
6003 * nat/windows-nat.h (fetch_pending_stop): Declare.
6004 * nat/windows-nat.c (fetch_pending_stop): New function.
6005
e758e19c
TT
60062020-04-08 Tom Tromey <tromey@adacore.com>
6007
6008 * windows-nat.c (windows_continue): Use matching_pending_stop and
6009 continue_last_debug_event.
6010 * nat/windows-nat.h (matching_pending_stop)
6011 (continue_last_debug_event): Declare.
6012 * nat/windows-nat.c (DEBUG_EVENTS): New define.
6013 (matching_pending_stop, continue_last_debug_event): New
6014 functions.
6015
8d30e395
TT
60162020-04-08 Tom Tromey <tromey@adacore.com>
6017
6018 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
6019 (handle_exception_result): Move to nat/windows-nat.h.
6020 (DEBUG_EXCEPTION_SIMPLE): Remove.
6021 (windows_nat::handle_ms_vc_exception): New function.
6022 (handle_exception): Move to nat/windows-nat.c.
6023 (get_windows_debug_event): Update.
6024 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
6025 nat/windows-nat.c.
6026 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
6027 (handle_exception_result): Move from windows-nat.c.
6028 (handle_exception): Declare.
6029 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
6030 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
6031 windows-nat.c.
6032
29de418d
TT
60332020-04-08 Tom Tromey <tromey@adacore.com>
6034
6035 * windows-nat.c (exception_count, event_count): Remove.
6036 (handle_exception, get_windows_debug_event)
6037 (do_initial_windows_stuff): Update.
6038
a816ba18
TT
60392020-04-08 Tom Tromey <tromey@adacore.com>
6040
6041 * windows-nat.c (windows_nat::handle_load_dll)
6042 (windows_nat::handle_unload_dll): Rename. No longer static.
6043 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
6044 Declare.
6045
a00caa12
TT
60462020-04-08 Tom Tromey <tromey@adacore.com>
6047
6048 * complaints.h (stop_whining): Declare at top-level.
6049 (complaint): Don't declare stop_whining.
6050
d41b524f
TT
60512020-04-08 Tom Tromey <tromey@adacore.com>
6052
6053 * windows-nat.c (windows_nat::handle_output_debug_string):
6054 Rename. No longer static.
6055 * nat/windows-nat.h (handle_output_debug_string): Declare.
6056
3c76026d
TT
60572020-04-08 Tom Tromey <tromey@adacore.com>
6058
6059 * windows-nat.c (current_process_handle, current_process_id)
6060 (main_thread_id, last_sig, current_event, last_wait_event)
6061 (current_windows_thread, desired_stop_thread_id, pending_stops)
6062 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
6063 (display_selectors, fake_create_process)
6064 (get_windows_debug_event): Update.
6065 * nat/windows-nat.h (current_process_handle, current_process_id)
6066 (main_thread_id, last_sig, current_event, last_wait_event)
6067 (current_windows_thread, desired_stop_thread_id, pending_stops)
6068 (struct pending_stop, siginfo_er): Move from windows-nat.c.
6069 * nat/windows-nat.c (current_process_handle, current_process_id)
6070 (main_thread_id, last_sig, current_event, last_wait_event)
6071 (current_windows_thread, desired_stop_thread_id, pending_stops)
6072 (siginfo_er): New globals. Move from windows-nat.c.
6073
9d8679cc
TT
60742020-04-08 Tom Tromey <tromey@adacore.com>
6075
6076 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
6077 (handle_load_dll): Update.
6078 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
6079
28688adf
TT
60802020-04-08 Tom Tromey <tromey@adacore.com>
6081
6082 * windows-nat.c (enum thread_disposition_type): Move to
6083 nat/windows-nat.h.
6084 (windows_nat::thread_rec): Rename from thread_rec. No longer
6085 static.
6086 (windows_add_thread, windows_nat_target::fetch_registers)
6087 (windows_nat_target::store_registers, handle_exception)
6088 (windows_nat_target::resume, get_windows_debug_event)
6089 (windows_nat_target::get_tib_address)
6090 (windows_nat_target::thread_name)
6091 (windows_nat_target::thread_alive): Update.
6092 * nat/windows-nat.h (enum thread_disposition_type): Move from
6093 windows-nat.c.
6094 (thread_rec): Declare.
6095
4834dad0
TT
60962020-04-08 Tom Tromey <tromey@adacore.com>
6097
6098 * windows-nat.c: Add "using namespace".
6099 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
6100 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
6101
65bafd5b
TT
61022020-04-08 Tom Tromey <tromey@adacore.com>
6103
6104 * nat/windows-nat.h (struct windows_thread_info): Declare
6105 destructor.
6106 * nat/windows-nat.c (~windows_thread_info): New.
6107
0a4afda3
TT
61082020-04-08 Tom Tromey <tromey@adacore.com>
6109
6110 PR gdb/22992
6111 * windows-nat.c (current_event): Update comment.
6112 (last_wait_event, desired_stop_thread_id): New globals.
6113 (struct pending_stop): New.
6114 (pending_stops): New global.
6115 (windows_nat_target) <stopped_by_sw_breakpoint>
6116 <supports_stopped_by_sw_breakpoint>: New methods.
6117 (windows_fetch_one_register): Add assertions. Adjust PC.
6118 (windows_continue): Handle pending stops. Suspend other threads
6119 when stepping. Use last_wait_event
6120 (wait_for_debug_event): New function.
6121 (get_windows_debug_event): Use wait_for_debug_event. Handle
6122 pending stops. Queue spurious stops.
6123 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
6124 (windows_nat_target::kill): Use wait_for_debug_event.
6125 * nat/windows-nat.h (struct windows_thread_info)
6126 <stopped_at_software_breakpoint>: New field.
6127 * nat/windows-nat.c (windows_thread_info::resume): Clear
6128 stopped_at_software_breakpoint.
6129
8e61ebec
TT
61302020-04-08 Tom Tromey <tromey@adacore.com>
6131
6132 * windows-nat.c (enum thread_disposition_type): New.
6133 (thread_rec): Replace "get_context" parameter with "disposition";
6134 change type.
6135 (windows_add_thread, windows_nat_target::fetch_registers)
6136 (windows_nat_target::store_registers, handle_exception)
6137 (windows_nat_target::resume, get_windows_debug_event)
6138 (windows_nat_target::get_tib_address)
6139 (windows_nat_target::thread_name)
6140 (windows_nat_target::thread_alive): Update.
6141
98a03287
TT
61422020-04-08 Tom Tromey <tromey@adacore.com>
6143
6144 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
6145 (windows_continue): Use windows_continue::resume.
6146 * nat/windows-nat.h (struct windows_thread_info) <suspend,
6147 resume>: Declare new methods.
6148 * nat/windows-nat.c: New file.
6149 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
6150
7c7411bc
TT
61512020-04-08 Tom Tromey <tromey@adacore.com>
6152
6153 * windows-nat.c (windows_add_thread, windows_delete_thread)
6154 (windows_nat_target::fetch_registers)
6155 (windows_nat_target::store_registers, fake_create_process)
6156 (windows_nat_target::resume, windows_nat_target::resume)
6157 (get_windows_debug_event, windows_nat_target::wait)
6158 (windows_nat_target::pid_to_str)
6159 (windows_nat_target::get_tib_address)
6160 (windows_nat_target::get_ada_task_ptid)
6161 (windows_nat_target::thread_name)
6162 (windows_nat_target::thread_alive): Use lwp, not tid.
6163
2950fdf7
TT
61642020-04-08 Tom Tromey <tromey@adacore.com>
6165
6166 * windows-nat.c (handle_exception)
6167 (windows_nat_target::thread_name): Update.
6168 * nat/windows-nat.h (windows_thread_info): Remove destructor.
6169 <name>: Now unique_xmalloc_ptr.
6170
62fe396b
TT
61712020-04-08 Tom Tromey <tromey@adacore.com>
6172
6173 * windows-nat.c (thread_rec)
6174 (windows_nat_target::fetch_registers): Update.
6175 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
6176 Update comment.
6177 <debug_registers_changed, reload_context>: Now bool.
6178
e9534bd2
TT
61792020-04-08 Tom Tromey <tromey@adacore.com>
6180
6181 * windows-nat.c (windows_add_thread): Use new.
6182 (windows_init_thread_list, windows_delete_thread): Use delete.
6183 (get_windows_debug_event): Update.
6184 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
6185 destructor, and initializers.
6186
ae1f8880
TT
61872020-04-08 Tom Tromey <tromey@adacore.com>
6188
6189 * windows-nat.c (struct windows_thread_info): Remove.
6190 * nat/windows-nat.h: New file.
6191
55a1e039
TT
61922020-04-08 Tom Tromey <tromey@adacore.com>
6193
6194 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
6195 (thread_rec, windows_add_thread, windows_delete_thread)
6196 (windows_continue): Update.
6197
93366324
TT
61982020-04-08 Tom Tromey <tromey@adacore.com>
6199
6200 * windows-nat.c (struct windows_thread_info): Remove typedef.
6201 (thread_head): Remove.
6202 (thread_list): New global.
6203 (thread_rec, windows_add_thread, windows_init_thread_list)
6204 (windows_delete_thread, windows_continue): Update.
6205
0f2265e2
SM
62062020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6207
6208 * windows-tdep.h (windows_init_abi): Add comment.
6209 (cygwin_init_abi): New declaration.
6210 * windows-tdep.c: Split signal enumeration in two, one for
6211 Windows and one for Cygwin.
6212 (windows_gdb_signal_to_target): Only deal with signal of the
6213 Windows OS ABI.
6214 (cygwin_gdb_signal_to_target): New function.
6215 (windows_init_abi): Rename to windows_init_abi_common, don't set
6216 gdb_signal_to_target gdbarch method. Add new new function with
6217 this name.
6218 (cygwin_init_abi): New function.
6219 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
6220 comment. Don't call windows_init_abi.
6221 (amd64_windows_init_abi): Add comment, call windows_init_abi.
6222 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
6223 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
6224 i386_windows_init_abi_common, don't call windows_init_abi. Add
6225 a new function of this name.
6226 (i386_cygwin_init_abi): New function.
6227 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
6228 OS ABI Cygwin.
6229
3810f182
SM
62302020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6231
6232 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
6233 parameter.c.
6234 (dwarf2_read_gdb_index): Update.
6235
063f8e80
KR
62362020-04-07 Kamil Rytarowski <n54@gmx.com>
6237
6238 * nbsd-tdep.c: Include "objfiles.h".
6239 (nbsd_skip_solib_resolver): New.
6240 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
6241
85a9510c 62422020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6243
6244 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
6245 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
6246 with DW_LLE_base_addressx are being emitted in DWARFv5.
6247 Add the newly added kind DW_LOC_OFFSET_PAIR also.
6248 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
6249 unsigned integer.
6250
9fc3eaae 62512020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6252
6253 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
6254 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
6255 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
6256 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
6257 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
6258 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
6259 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
6260
6261
41144253 62622020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6263
6264 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
6265 (read_loclist_index): New function definition.
6266 (lookup_loclist_base): New function definition.
6267 (read_loclist_header): New function definition.
6268 (dwarf2_cu): Add loclist_base and loclist_header field.
6269 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
6270 (read_full_die_1): Read the value of DW_AT_loclists_base.
6271 (read_attribute_reprocess): Handle DW_FORM_loclistx.
6272 (read_attribute_value): Handle DW_FORM_loclistx.
6273 (skip_one_die): Handle DW_FORM_loclistx.
6274 (loclist_header): New structure declaration.
6275 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
6276
9f4e76a4
SM
62772020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
6278
6279 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
6280 constructor. Remove `addr` parameter from other constructor and
6281 add `per_cu` parameter.
6282 * dwarf2/read.c (create_partial_symtab): Update.
6283
25c11aca
TV
62842020-04-07 Tom de Vries <tdevries@suse.de>
6285
6286 PR symtab/25796
6287 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
6288 (partial_die_info::fixup): Inherit has_const_value.
6289
5707e24b
TV
62902020-04-07 Tom de Vries <tdevries@suse.de>
6291
6292 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
6293 symbols without address.
6294
05f00e22
KR
62952020-04-06 Kamil Rytarowski <n54@gmx.com>
6296
6297 * nbsd-nat.h (struct thread_info): Add forward declaration.
6298 (nbsd_nat_target::thread_alive): Add.
6299 (nbsd_nat_target::thread_name): Likewise.
6300 (nbsd_nat_target::update_thread_list): Likewise.
6301 (update_thread_list::post_attach): Likewise.
6302 (post_attach::pid_to_str): Likewise.
6303 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
6304 (nbsd_thread_lister): Add.
6305 (nbsd_nat_target::thread_alive): Likewise.
6306 (nbsd_nat_target::thread_name): Likewise.
6307 (nbsd_add_threads): Likewise.
6308 (update_thread_list::post_attach): Likewise.
6309 (nbsd_nat_target::update_thread_list): Likewise.
6310 (post_attach::pid_to_str): Likewise.
6311
6ee448cc
TT
63122020-04-06 Tom Tromey <tromey@adacore.com>
6313
6314 * ada-valprint.c (print_variant_part): Extract the variant field.
6315 (print_field_values): Use the field as the outer value when
6316 recursing.
6317
dea34e8c
TT
63182020-04-06 Tom Tromey <tromey@adacore.com>
6319
6320 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
6321 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
6322 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
6323 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
6324 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
6325
93689ce9
TT
63262020-04-06 Tom Tromey <tromey@adacore.com>
6327
6328 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
6329 TYPE_CODE_ERROR.
6330
79743962
KR
63312020-04-06 Kamil Rytarowski <n54@gmx.com>
6332
6333 * nbsd-tdep.c: Include "gdbarch.h".
6334 Define enum with NetBSD signal numbers.
6335 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
6336 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
6337 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
6338 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
6339 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
6340 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
6341 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
6342 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
6343 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
6344 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
6345 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
6346 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
6347
9e7c9a03
HD
63482020-04-03 Hannes Domani <ssbssa@yahoo.de>
6349
6350 PR gdb/25325
6351 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
6352
d9e49b61
TT
63532020-04-03 Tom Tromey <tromey@adacore.com>
6354
6355 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
6356 Read constant block.
6357
e0fc5c3f
SM
63582020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6359
6360 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
6361 (gdb_bfd_get_full_section_contents): New declaration.
6362 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
6363 * windows-tdep.c (is_linked_with_cygwin_dll): Use
6364 gdb_bfd_get_full_section_contents.
6365
e2ff18a0
SM
63662020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6367
6368 * exec.c (build_section_table): Replace internal_error with
6369 gdb_assert.
6370 (section_table_xfer_memory_partial): Likewise.
6371 * mdebugread.c (parse_partial_symbols): Likewise.
6372 * psymtab.c (lookup_partial_symbol): Likewise.
6373 * utils.c (wrap_here): Likewise.
6374
0830d301
TT
63752020-04-02 Tom Tromey <tromey@adacore.com>
6376
6377 * f-lang.c (build_fortran_types): Use arch_type to initialize
6378 builtin_complex_s32 in the TYPE_CODE_ERROR case.
6379
e7da7f8f
TT
63802020-04-02 Tom Tromey <tromey@adacore.com>
6381
6382 * dwarf2/read.c (partial_die_info::read): Do not create a vector
6383 of attributes.
6384
c90d28ac
AB
63852020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
6386 Bernd Edlinger <bernd.edlinger@hotmail.de>
6387 Tom Tromey <tromey@adacore.com>
6388
6389 * buildsym.c (buildsym_compunit::record_line): Remove
6390 deduplication code.
6391
1aa98955
TV
63922020-04-02 Tom de Vries <tdevries@suse.de>
6393
6394 PR ada/24671
6395 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
6396
d3214198
TV
63972020-04-02 Tom de Vries <tdevries@suse.de>
6398
6399 * dwarf2/read.c (dwarf2_gdb_index_functions,
6400 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
6401 NULL.
6402 * psymtab.c (psym_lookup_global_symbol_language): New function.
6403 (psym_functions): Init psym_lookup_global_symbol_language with
6404 psym_lookup_global_symbol_language.
6405 * symfile-debug.c (debug_sym_quick_functions): Init
6406 lookup_global_symbol_language with NULL.
6407 * symfile.c (set_initial_language): Remove fixme comment.
6408 * symfile.h (struct quick_symbol_functions): Add
6409 lookup_global_symbol_language.
6410 * symtab.c (find_quick_global_symbol_language): New function.
6411 (find_main_name): Use find_quick_global_symbol_language.
6412
2836752f
SM
64132020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
6414
6415 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
6416
64dc2d4b
BE
64172020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6418
6419 * buildsym.c (record_line): Fix undefined behavior and preserve
6420 lines at eof.
6421
bbe3dc41
BE
64222020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6423
6424 * buildsym.c (record_line): Fix the resizing condition.
6425
6b4a335b
TT
64262020-04-01 Tom Tromey <tom@tromey.com>
6427
6428 * value.h (value_literal_complex): Add comment.
6429 * valops.c (value_literal_complex): Refer to value.h.
6430
3638a098
TT
64312020-04-01 Tom Tromey <tom@tromey.com>
6432
6433 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
6434 (scalar_type): New rule, from typebase.
6435 (typebase): Use scalar_type. Recognize complex types.
6436 (field_name): Handle FLOAT_KEYWORD.
6437 (ident_tokens): Add _Complex and __complex__.
6438
c34e8714
TT
64392020-04-01 Tom Tromey <tom@tromey.com>
6440
6441 PR exp/25299:
6442 * valarith.c (promotion_type, complex_binop): New functions.
6443 (scalar_binop): Handle complex numbers. Use promotion_type.
6444 (value_pos, value_neg, value_complement): Handle complex numbers.
6445
fa649bb7
TT
64462020-04-01 Tom Tromey <tom@tromey.com>
6447
6448 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
6449 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
6450 (parse_number): Handle complex numbers.
6451
981c08ce
TT
64522020-04-01 Tom Tromey <tom@tromey.com>
6453
6454 * c-valprint.c (c_decorations): Change complex suffix to "i".
6455
4c99290d
TT
64562020-04-01 Tom Tromey <tom@tromey.com>
6457
6458 * valprint.c (generic_value_print_complex): Use accessors.
6459 * value.h (value_real_part, value_imaginary_part): Declare.
6460 * valops.c (value_real_part, value_imaginary_part): New
6461 functions.
6462 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
6463
5b930b45
TT
64642020-04-01 Tom Tromey <tom@tromey.com>
6465
6466 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
6467 (read_range_type): Update.
6468 * mdebugread.c (basic_type): Update.
6469 * go-lang.c (build_go_types): Use init_complex_type.
6470 * gdbtypes.h (struct main_type) <complex_type>: New member.
6471 (init_complex_type): Update.
6472 (arch_complex_type): Don't declare.
6473 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
6474 Make name if none given. Use alloc_type_copy. Look for cached
6475 complex type.
6476 (arch_complex_type): Remove.
6477 (gdbtypes_post_init): Use init_complex_type.
6478 * f-lang.c (build_fortran_types): Use init_complex_type.
6479 * dwarf2/read.c (read_base_type): Update.
6480 * d-lang.c (build_d_types): Use init_complex_type.
6481 * ctfread.c (read_base_type): Update.
6482
53cccef1
TBA
64832020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6484
6485 * infrun.c (stop_all_threads): Update assertion, plus when
6486 stopping threads, take into account that we might be trying
6487 to stop an all-stop target.
6488 (stop_waiting): Call 'stop_all_threads' if there exists a
6489 non-stop target.
6490
a0714d30
TBA
64912020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6492
6493 * target.h (exists_non_stop_target): New function declaration.
6494 * target.c (exists_non_stop_target): New function.
6495
60e22c1e
HD
64962020-04-01 Hannes Domani <ssbssa@yahoo.de>
6497
6498 PR gdb/24789
6499 * eval.c (is_integral_or_integral_reference): New function.
6500 (evaluate_subexp_standard): Allow integer references in
6501 pointer arithmetic.
6502
e139a727
TBA
65032020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6504
6505 * remote.c (remote_target::remote_parse_stop_reply): Remove the
6506 check for no ptid in the stop reply when the target is non-stop.
6507
e0802d59
TT
65082020-04-01 Tom Tromey <tromey@adacore.com>
6509
6510 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
6511 "name" parameter to rvalue reference. Initialize m_name_holder.
6512 <lookup_name_info>: New overloads.
6513 <name>: Return gdb::string_view.
6514 <c_str>: New method.
6515 <make_ignore_params>: Update.
6516 <search_name_hash>: Update.
6517 <language_lookup_name>: Return const char *.
6518 <m_name>: Change type.
6519 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
6520 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
6521 (lookup_name_info::match_any): Update.
6522 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
6523 Update.
6524 * minsyms.c (linkage_name_str): Update.
6525 * language.c (default_symbol_name_matcher): Update.
6526 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
6527 Update.
6528 * ada-lang.c (ada_fold_name): Change parameter to string_view.
6529 (ada_lookup_name_info::ada_lookup_name_info): Update.
6530 (literal_symbol_name_matcher): Update.
6531
8c072cb6
TT
65322020-04-01 Tom Tromey <tromey@adacore.com>
6533
6534 * psymtab.c (psymtab_search_name): Remove function.
6535 (psym_lookup_symbol): Create search name and lookup name here.
6536 (lookup_partial_symbol): Remove "name" parameter; add
6537 lookup_name.
6538 (psym_expand_symtabs_for_function): Update.
6539
6f29a534
TT
65402020-03-31 Joel Jones <joelkevinjones@gmail.com>
6541
6542 PR tui/25597:
6543 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
6544
af62665e
TT
65452020-03-31 Tom Tromey <tromey@adacore.com>
6546
6547 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
6548 memcpy.
6549
d1a89da5
NC
65502020-03-30 Nelson Chu <nelson.chu@sifive.com>
6551
6552 * features/riscv/32bit-csr.xml: Regenerated.
6553 * features/riscv/64bit-csr.xml: Regenerated.
6554
d8af9068
TT
65552020-03-30 Tom Tromey <tromey@adacore.com>
6556
6557 * ada-valprint.c (print_variant_part): Update.
6558 * ada-lang.h (ada_which_variant_applies): Update.
6559 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
6560 outer_valaddr parameters; replace with "outer" value parameter.
6561 (to_fixed_variant_branch_type): Update.
6562
227c0bf4
PFC
65632020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6564
6565 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
6566 <list>. Remove inclusion of observable.h.
6567 (PPC_DEBUG_CURRENT_VERSION): Move up define.
6568 (struct arch_lwp_info): New struct.
6569 (class ppc_linux_dreg_interface): New class.
6570 (struct ppc_linux_process_info): New struct.
6571 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
6572 <low_new_clone, low_forget_process, low_prepare_to_resume>
6573 <copy_thread_dreg_state, mark_thread_stale>
6574 <mark_debug_registers_changed, register_hw_breakpoint>
6575 <clear_hw_breakpoint, register_wp, clear_wp>
6576 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
6577 <num_memory_accesses, get_trigger_type>
6578 <create_watchpoint_request, hwdebug_point_cmp>
6579 <init_arch_lwp_info, get_arch_lwp_info>
6580 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
6581 methods.
6582 <struct ptid_hash>: New inner struct.
6583 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
6584 members.
6585 (saved_dabr_value, hwdebug_info, max_slots_number)
6586 (struct hw_break_tuple, struct thread_points, ppc_threads)
6587 (have_ptrace_hwdebug_interface)
6588 (hwdebug_find_thread_points_by_tid)
6589 (hwdebug_insert_point, hwdebug_remove_point): Remove.
6590 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
6591 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
6592 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
6593 use m_dreg_interface.
6594 (hwdebug_point_cmp): Change to...
6595 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
6596 reference arguments instead of pointers.
6597 (ppc_linux_nat_target::ranged_break_num_registers): Use
6598 m_dreg_interface.
6599 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
6600 m_dreg_interface. Call register_hw_breakpoint.
6601 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
6602 m_dreg_interface. Call clear_hw_breakpoint.
6603 (get_trigger_type): Change to...
6604 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
6605 comment.
6606 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
6607 use m_dreg_interface. Call register_hw_breakpoint.
6608 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
6609 use m_dreg_interface. Call clear_hw_breakpoint.
6610 (can_use_watchpoint_cond_accel): Change to...
6611 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
6612 method. Update comment, use m_dreg_interface and
6613 m_process_info.
6614 (calculate_dvc): Change to...
6615 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
6616 m_dreg_interface.
6617 (num_memory_accesses): Change to...
6618 (ppc_linux_nat_target::num_memory_accesses): ...this method.
6619 (check_condition): Change to...
6620 (ppc_linux_nat_target::check_condition): ...this method.
6621 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
6622 comment, use m_dreg_interface.
6623 (create_watchpoint_request): Change to...
6624 (ppc_linux_nat_target::create_watchpoint_request): ...this
6625 method. Use m_dreg_interface.
6626 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
6627 m_dreg_interface. Call register_hw_breakpoint or register_wp.
6628 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
6629 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
6630 (ppc_linux_nat_target::low_forget_process)
6631 (ppc_linux_nat_target::low_new_fork)
6632 (ppc_linux_nat_target::low_new_clone)
6633 (ppc_linux_nat_target::low_delete_thread)
6634 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
6635 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
6636 only call mark_thread_stale.
6637 (ppc_linux_thread_exit): Remove.
6638 (ppc_linux_nat_target::stopped_data_address): Change to...
6639 (ppc_linux_nat_target::low_stopped_data_address): This. Add
6640 comment, use m_dreg_interface and m_thread_hw_breakpoints.
6641 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
6642 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
6643 comment. Call low_stopped_data_address.
6644 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
6645 m_dreg_interface.
6646 (ppc_linux_nat_target::masked_watch_num_registers): Use
6647 m_dreg_interface.
6648 (ppc_linux_nat_target::copy_thread_dreg_state)
6649 (ppc_linux_nat_target::mark_thread_stale)
6650 (ppc_linux_nat_target::mark_debug_registers_changed)
6651 (ppc_linux_nat_target::register_hw_breakpoint)
6652 (ppc_linux_nat_target::clear_hw_breakpoint)
6653 (ppc_linux_nat_target::register_wp)
6654 (ppc_linux_nat_target::clear_wp)
6655 (ppc_linux_nat_target::init_arch_lwp_info)
6656 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
6657 (_initialize_ppc_linux_nat): Remove observer callback.
6658
4db10d8f
PFC
66592020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6660
6661 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
6662 (ppc_linux_nat_target::auxv_parse)
6663 (ppc_linux_nat_target::read_description)
6664 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
6665 Move up.
6666
1310c1b0
PFC
66672020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6668
6669 * linux-nat.h (low_new_clone): New method.
6670 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
6671
69b037c3
SM
66722020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6673
6674 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
6675 (dbx_expand_psymtab): ... this.
6676 (start_psymtab): Update.
6677 * mdebugread.c (psymtab_to_symtab_1): Rename to...
6678 (mdebug_expand_psymtab): ... this.
6679 (parse_partial_symbols): Update.
6680 (new_psymtab): Update.
6681 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
6682 (xcoff_expand_psymtab): ... this.
6683 (xcoff_start_psymtab): Update.
6684
48993951
SM
66852020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6686
6687 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
6688 <expand_dependencies>: ... this.
6689 * psymtab.c (partial_symtab::read_dependencies): Rename to...
6690 (partial_symtab::expand_dependencies): ... this.
6691 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
6692 Update.
6693 (dwarf2_psymtab::expand_psymtab): Update.
6694 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
6695 * mdebugread.c (psymtab_to_symtab_1): Update.
6696 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
6697
3ad83046
SM
66982020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6699
6700 * psympriv.h (discard_psymtab): Remove.
6701 * dbxread.c (dbx_end_psymtab): Update.
6702 * xcoffread.c (xcoff_end_psymtab): Update.
6703
4d1b9ab6
TT
67042020-03-28 Tom Tromey <tom@tromey.com>
6705
6706 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
6707 comment.
6708
f1749218
TT
67092020-03-28 Tom Tromey <tom@tromey.com>
6710
6711 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
6712
ebea7626
HD
67132020-03-27 Hannes Domani <ssbssa@yahoo.de>
6714
6715 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
6716
a879b4d5
JB
67172020-03-26 John Baldwin <jhb@FreeBSD.org>
6718
6719 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
6720
0826b30a
TT
67212020-03-26 Tom Tromey <tom@tromey.com>
6722
6723 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
6724 (mark_common_block_symbol_computed, read_tag_string_type)
6725 (attr_to_dynamic_prop, read_subrange_type): Update.
6726 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
6727 to be methods on struct attribute.
6728 (skip_one_die, process_imported_unit_die, read_namespace_alias)
6729 (read_call_site_scope, partial_die_info::read)
6730 (partial_die_info::read, lookup_die_type, follow_die_ref):
6731 Update.
6732 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
6733 from dwarf2_get_ref_die_offset.
6734 (attribute::constant_value): New method, from
6735 dwarf2_get_attr_constant_value.
6736 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
6737 Declare method.
6738 <constant_value>: New method.
6739
2b2558bf
TT
67402020-03-26 Tom Tromey <tom@tromey.com>
6741
6742 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
6743 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
6744 (dwarf_type_encoding_name): Move to stringify.c.
6745 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
6746 * dwarf2/stringify.c: New file.
6747 * dwarf2/stringify.h: New file.
6748
eeb64781
TT
67492020-03-26 Tom Tromey <tom@tromey.com>
6750
6751 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
6752 Rewrite.
6753
a39fdb41
TT
67542020-03-26 Tom Tromey <tom@tromey.com>
6755
6756 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
6757 methods.
6758 * dwarf2/read.c (lookup_addr_base): Move to die.h.
6759 (lookup_ranges_base): Likewise.
6760 (read_cutu_die_from_dwo, read_full_die_1): Update.
6761
436c571c
TT
67622020-03-26 Tom Tromey <tom@tromey.com>
6763
6764 * dwarf2/read.c (read_import_statement, read_file_scope)
6765 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
6766 (read_lexical_block_scope, read_call_site_scope)
6767 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
6768 (handle_struct_member_die, process_structure_scope)
6769 (update_enumeration_type_from_children)
6770 (process_enumeration_scope, read_array_type, read_common_block)
6771 (read_namespace, read_module, read_subroutine_type): Update.
6772 (sibling_die): Remove.
6773
052c8bb8
TT
67742020-03-26 Tom Tromey <tom@tromey.com>
6775
6776 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
6777 (build_type_psymtabs_reader, read_structure_type)
6778 (read_enumeration_type, read_full_die_1): Update.
6779 (dwarf2_attr_no_follow): Move to die.h.
6780 * dwarf2/die.h (struct die_info) <attr>: New method.
6781
2b24b6e4
TT
67822020-03-26 Tom Tromey <tom@tromey.com>
6783
6784 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
6785 <base_address>: Now an optional.
6786 (dwarf2_find_base_address, dwarf2_rnglists_process)
6787 (dwarf2_ranges_process, fill_in_loclist_baton)
6788 (dwarf2_symbol_mark_computed): Update.
6789
c2d50fd0
TT
67902020-03-26 Tom Tromey <tom@tromey.com>
6791
6792 * dwarf2/read.c (struct die_info): Move to die.h.
6793 * dwarf2/die.h: New file.
6794
0df7ad3a
TT
67952020-03-26 Tom Tromey <tom@tromey.com>
6796
6797 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
6798 * dwarf2/read.c
6799 (dwarf2_statement_list_fits_in_line_number_section_complaint):
6800 Move to line-header.c.
6801 (read_checked_initial_length_and_offset, read_formatted_entries):
6802 Likewise.
6803 (dwarf_decode_line_header): Split into two.
6804 * dwarf2/line-header.c
6805 (dwarf2_statement_list_fits_in_line_number_section_complaint):
6806 Move from read.c.
6807 (read_checked_initial_length_and_offset, read_formatted_entries):
6808 Likewise.
6809 (dwarf_decode_line_header): New function, split from read.c.
6810
86c0bb4c
TT
68112020-03-26 Tom Tromey <tom@tromey.com>
6812
6813 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
6814 Declare method.
6815 * dwarf2/read.c (read_attribute_value): Update.
6816 (dwarf2_per_objfile::read_line_string): Rename from
6817 read_indirect_line_string.
6818 (read_formatted_entries): Update.
6819
2ef46c2f
TT
68202020-03-26 Tom Tromey <tom@tromey.com>
6821
6822 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
6823 variable.
6824
4f9c1eda
TT
68252020-03-26 Tom Tromey <tom@tromey.com>
6826
6827 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
6828 const.
6829 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
6830 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
6831 parameter const.
6832
5a0e026f
TT
68332020-03-26 Tom Tromey <tom@tromey.com>
6834
6835 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
6836 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
6837 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
6838 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
6839
8844c11b
TT
68402020-03-26 Tom Tromey <tom@tromey.com>
6841
6842 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
6843 file_names_size, file_full_name, file_file_name>: Use const.
6844 <file_name_at, file_names>: Add const overload.
6845 * dwarf2/line-header.c (line_header::file_file_name)
6846 (line_header::file_full_name): Update.
6847
c90ec28a
TT
68482020-03-26 Tom Tromey <tom@tromey.com>
6849
6850 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
6851 (macro_start_file, consume_improper_spaces)
6852 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
6853 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
6854 (dwarf_decode_macros): Move to macro.c.
6855 * dwarf2/macro.c: New file.
6856 * dwarf2/macro.h: New file.
6857 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
6858
4f44ae6c
TT
68592020-03-26 Tom Tromey <tom@tromey.com>
6860
6861 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
6862 method.
6863 * dwarf2/section.c: New method. From
6864 read_indirect_string_at_offset_from.
6865 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
6866 (read_indirect_string_at_offset_from): Move to section.c.
6867 (read_indirect_string_at_offset): Rewrite.
6868 (read_indirect_line_string_at_offset): Remove.
6869 (read_indirect_string, read_indirect_line_string)
6870 (dwarf_decode_macro_bytes): Update.
6871
a0194fa8
TT
68722020-03-26 Tom Tromey <tom@tromey.com>
6873
6874 * dwarf2/section.h (struct dwarf2_section_info)
6875 <overload_complaint>: Declare.
6876 (dwarf2_section_buffer_overflow_complaint): Don't declare.
6877 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
6878 Rename from dwarf2_section_buffer_overflow_complaint.
6879 * dwarf2/read.c (skip_one_die, partial_die_info::read)
6880 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
6881
3d27bbdb
TT
68822020-03-26 Tom Tromey <tom@tromey.com>
6883
6884 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
6885 Declare.
6886 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
6887 Move from read.c.
6888 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
6889 to section.c.
6890
9eac9650
TT
68912020-03-26 Tom Tromey <tom@tromey.com>
6892
6893 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
6894
bf80d710
TT
68952020-03-26 Tom Tromey <tom@tromey.com>
6896
6897 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
6898 "builder".
6899 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
6900 parameter.
6901 (dwarf_decode_macros): Update.
6902
0314b390
TT
69032020-03-26 Tom Tromey <tom@tromey.com>
6904
6905 * dwarf2/read.c (read_attribute_value): Update.
6906 (read_indirect_string_from_dwz): Move to dwz.c; change into
6907 method.
6908 (dwarf_decode_macro_bytes): Update.
6909 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
6910 * dwarf2/dwz.c: New file.
6911 * Makefile.in (COMMON_SFILES): Add dwz.c.
6912
9fda78b6
TT
69132020-03-26 Tom Tromey <tom@tromey.com>
6914
6915 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
6916 * dwarf2/read.c: Add include.
6917 * dwarf2/index-write.c: Add include.
6918 * dwarf2/index-cache.c: Add include.
6919 * dwarf2/dwz.h: New file.
6920
33aa3c10
TT
69212020-03-25 Tom Tromey <tom@tromey.com>
6922
6923 * compile/compile-object-load.c (get_out_value_type): Mention
6924 correct symbol name in error message.
6925
d503b685
HD
69262020-03-25 Hannes Domani <ssbssa@yahoo.de>
6927
6928 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
6929
7b1eff95
TV
69302020-03-25 Tom de Vries <tdevries@suse.de>
6931
6932 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
6933 * symmisc.c (dump_symtab_1): Print user and includes fields.
6934 (maintenance_info_symtabs): Same.
6935
dd895392
AB
69362020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
6937
6938 PR gdb/25534
6939 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
6940 (riscv_regcache_cooked_write): New function.
6941 (riscv_push_dummy_call): Use new function.
6942 (riscv_return_value): Likewise.
6943
5ab2fbf1
SM
69442020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
6945
6946 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
6947 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
6948 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
6949 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
6950 * infrun.c (follow_fork): Likewise.
6951 (follow_fork_inferior): Likewise.
6952 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
6953 * linux-nat.h (class linux_nat_target): Likewise.
6954 * remote.c (class remote_target) <follow_fork>: Likewise.
6955 (remote_target::follow_fork): Likewise.
6956 * target-delegates.c: Re-generate.
6957 * target.c (default_follow_fork): Likewise.
6958 (target_follow_fork): Likewise.
6959 * target.h (struct target_ops) <follow_fork>: Likewise.
6960 (target_follow_fork): Likewise.
6961
a64fafb5
TV
69622020-03-24 Tom de Vries <tdevries@suse.de>
6963
6964 * psymtab.c (maintenance_info_psymtabs): Print user field.
6965
fe26d3a3
TT
69662020-03-20 Tom Tromey <tromey@adacore.com>
6967
6968 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
6969 const.
6970 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
6971 const.
6972
c884cc46
SM
69732020-03-20 Simon Marchi <simon.marchi@efficios.com>
6974
6975 * ptrace.m4: Don't check for ptrace declaration.
6976 * config.in: Re-generate.
6977 * configure: Re-generate.
6978 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
6979 not defined.
6980
1ff700c2
KR
69812020-03-20 Kamil Rytarowski <n54@gmx.com>
6982
6983 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
6984 `PTRACE_TYPE_RET'.
6985 * i386-bsd-nat.c (gdb_ptrace): Likewise.
6986 * sparc-nat.c (gdb_ptrace): Likewise.
6987 * x86-bsd-nat.c (gdb_ptrace): Likewise.
6988
f7d4f0b1
TT
69892020-03-20 Tom Tromey <tromey@adacore.com>
6990
6991 * c-exp.y (lex_one_token): Fix assert.
6992
f67210ff
TT
69932020-03-20 Tom Tromey <tromey@adacore.com>
6994
6995 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
6996 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
6997 strncpy call.
6998
1773be9e
TT
69992020-03-20 Tom Tromey <tromey@adacore.com>
7000
7001 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
7002
70304be9
TT
70032020-03-20 Tom Tromey <tromey@adacore.com>
7004
7005 * ada-valprint.c (print_variant_part): Remove parameters; switch
7006 to value-based API.
7007 (print_field_values): Likewise.
7008 (ada_val_print_struct_union): Likewise.
7009 (ada_value_print_1): Update.
7010
9faa006d
KR
70112020-03-20 Kamil Rytarowski <n54@gmx.com>
7012
7013 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
7014 nbsd_nat_target instead of inf_ptrace_target.
7015 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7016 nbsd_nat_target.
7017
4a90f062
KR
70182020-03-20 Kamil Rytarowski <n54@gmx.com>
7019
7020 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
7021 it to the ptrace call.
7022 * (store_registers): Likewise.
7023
70242020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
7025
7026 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
7027 it to the ptrace call.
7028 * (store_registers): Likewise.
7029
2d07da27
LM
70302020-03-19 Luis Machado <luis.machado@linaro.org>
7031
7032 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
7033 valid, fetch vg value from ptrace.
7034
f09db380
KR
70352020-03-19 Kamil Rytarowski <n54@gmx.com>
7036 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
7037 * inf-ptrace.c: Likewise.
7038 * (gdb_ptrace): Add.
7039 * (inf_ptrace_target::resume): Update.
7040 * (inf_ptrace_target::xfer_partial): Likewise.
7041 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
7042 * (inf_ptrace_peek_poke): Update.
7043
fcc7376e
KR
70442020-03-19 Kamil Rytarowski <n54@gmx.com>
7045
7046 * x86-bsd-nat.c (gdb_ptrace): New.
7047 * (x86bsd_dr_set): Add new argument `ptid'.
7048 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
7049 x86bsd_dr_set_addr): Update.
7050
cada5fc9
AB
70512020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7052
7053 * remote.c (remote_target::process_stop_reply): Handle events for
7054 all threads differently.
7055
19a2740f
AB
70562020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7057
7058 * completer.c (completion_tracker::remove_completion): Define new
7059 function.
7060 * completer.h (completion_tracker::remove_completion): Declare new
7061 function.
7062 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
7063 when adding a C++ function symbol.
7064
724fd9ba
AB
70652020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7066
7067 * completer.c (completion_tracker::completion_hash_entry): Define
7068 new class.
7069 (advance_to_filename_complete_word_point): Call
7070 recompute_lowest_common_denominator.
7071 (completion_tracker::completion_tracker): Call discard_completions
7072 to setup the hash table.
7073 (completion_tracker::discard_completions): Allow for being called
7074 from the constructor, pass new equal function, and element deleter
7075 when constructing the hash table. Initialise new class member
7076 variables.
7077 (completion_tracker::maybe_add_completion): Remove use of
7078 m_entries_vec, and store more information into m_entries_hash.
7079 (completion_tracker::recompute_lcd_visitor): New function, most
7080 content taken from...
7081 (completion_tracker::recompute_lowest_common_denominator):
7082 ...here, this now just visits each item in the hash calling the
7083 above visitor.
7084 (completion_tracker::build_completion_result): Remove use of
7085 m_entries_vec, call recompute_lowest_common_denominator.
7086 * completer.h (completion_tracker::have_completions): Remove use
7087 of m_entries_vec.
7088 (completion_tracker::completion_hash_entry): Declare new class.
7089 (completion_tracker::recompute_lowest_common_denominator): Change
7090 function signature.
7091 (completion_tracker::recompute_lcd_visitor): Declare new function.
7092 (completion_tracker::m_entries_vec): Delete.
7093 (completion_tracker::m_entries_hash): Initialize to NULL.
7094 (completion_tracker::m_lowest_common_denominator_valid): New
7095 member variable.
7096 (completion_tracker::m_lowest_common_denominator_max_length): New
7097 member variable.
7098
5a82b8a1
KR
70992020-03-17 Kamil Rytarowski <n54@gmx.com>
7100
7101 * regformats/regdef.h: Put reg in gdb namespace.
7102
fb516a69
KR
71032020-03-17 Kamil Rytarowski <n54@gmx.com>
7104
7105 * i386-bsd-nat.c (gdb_ptrace): New.
7106 * (i386bsd_fetch_inferior_registers,
7107 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7108 * (i386bsd_fetch_inferior_registers,
7109 i386bsd_store_inferior_registers) Use gdb_ptrace.
7110
1c0aa1fb
KR
71112020-03-17 Kamil Rytarowski <n54@gmx.com>
7112
7113 * amd64-bsd-nat.c (gdb_ptrace): New.
7114 * (amd64bsd_fetch_inferior_registers,
7115 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7116 * (amd64bsd_fetch_inferior_registers,
7117 amd64bsd_store_inferior_registers) Use gdb_ptrace.
7118
5ccd2fb7
KR
71192020-03-17 Kamil Rytarowski <n54@gmx.com>
7120
7121 * user-regs.c (user_reg::read): Rename to...
7122 (user_reg::xread): ...this.
7123 * (append_user_reg): Rename argument `read' to `xread'.
7124 * (user_reg_add_builtin): Likewise.
7125 * (user_reg_add): Likewise.
7126 * (value_of_user_reg): Likewise.
7127
2108a63a
KR
71282020-03-17 Kamil Rytarowski <n54@gmx.com>
7129
7130 * sparc-nat.c (gdb_ptrace): New.
7131 * sparc-nat.c (sparc_fetch_inferior_registers)
7132 (sparc_store_inferior_registers) Remove obsolete comment.
7133 * sparc-nat.c (sparc_fetch_inferior_registers)
7134 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
7135 * sparc-nat.c (sparc_fetch_inferior_registers)
7136 (sparc_store_inferior_registers) Use gdb_ptrace.
7137
a225c9a8
KR
71382020-03-17 Kamil Rytarowski <n54@gmx.com>
7139
7140 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
7141 it to the ptrace call.
7142 * sh-nbsd-nat.c (store_registers): Likewise.
7143
98097623
KR
71442020-03-17 Kamil Rytarowski <n54@gmx.com>
7145
7146 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
7147 nbsd_nat_target instead of inf_ptrace_target.
7148 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7149 nbsd_nat_target.
7150
9e38d619
KR
71512020-03-17 Kamil Rytarowski <n54@gmx.com>
7152
7153 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
7154
a2ecbe9f
KR
71552020-03-17 Kamil Rytarowski <n54@gmx.com>
7156
7157 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
7158 <sys/sysctl.h>.
7159 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
7160
58990295
TV
71612020-03-17 Tom de Vries <tdevries@suse.de>
7162
7163 PR gdb/23710
7164 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
7165 fields.
7166 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
7167 fields.
7168 (process_imported_unit_die): Skip import of c++ CUs.
7169
771dd3a8
TT
71702020-03-16 Tom Tromey <tom@tromey.com>
7171
7172 * p-valprint.c (pascal_object_print_value): Initialize
7173 base_value.
7174
817a7585
AK
71752020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
7176 Shahab Vahedi <shahab@synopsys.com>
7177
7178 * Makefile.in: Add arch/arc.o
7179 * configure.tgt: Likewise.
7180 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
7181 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 7182 (arc_read_description): New function to cache target descriptions.
817a7585
AK
7183 * arc-tdep.h (arc_read_description): Add proto type.
7184 * arch/arc.c: New file.
7185 * arch/arc.h: Likewise.
7186 * features/Makefile: Replace old target descriptions with new.
7187 * features/arc-arcompact.c: Remove.
7188 * features/arc-arcompact.xml: Likewise.
7189 * features/arc-v2.c: Likewise
7190 * features/arc-v2.xml: Likewise
7191 * features/arc/aux-arcompact.xml: New file.
7192 * features/arc/aux-v2.xml: Likewise.
7193 * features/arc/core-arcompact.xml: Likewise.
7194 * features/arc/core-v2.xml: Likewise.
7195 * features/arc/aux-arcompact.c: Generate.
7196 * features/arc/aux-v2.c: Likewise.
7197 * features/arc/core-arcompact.c: Likewise.
7198 * features/arc/core-v2.c: Likewise.
7199 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
7200
67430cd0
TT
72012020-03-16 Tom Tromey <tromey@adacore.com>
7202
7203 PR gdb/25663:
7204 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
7205 putting value into bcache.
7206
30efb6c7
SM
72072020-03-16 Simon Marchi <simon.marchi@efficios.com>
7208
7209 PR gdb/21500
7210 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
7211 to...
7212 (amd64_windows_init_abi_common): ... this. Don't set size of
7213 long type.
7214 (amd64_windows_init_abi): New function.
7215 (amd64_cygwin_init_abi): New function.
7216 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
7217 the Cygwin OS ABI.
7218 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
7219 comment.
7220
8db52437
SM
72212020-03-16 Simon Marchi <simon.marchi@efficios.com>
7222
7223 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
7224 * windows-tdep.c (CYGWIN_DLL_NAME): New.
7225 (pe_import_directory_entry): New struct type.
7226 (is_linked_with_cygwin_dll): New function.
7227 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
7228 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
7229 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
7230
5982a56a
SM
72312020-03-16 Simon Marchi <simon.marchi@efficios.com>
7232
7233 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
7234 i386_cygwin_core_osabi_sniffer.
7235
7a1998df
SM
72362020-03-16 Simon Marchi <simon.marchi@efficios.com>
7237
7238 * i386-cygwin-tdep.c: Rename to...
7239 * i386-windows-tdep.c: ... this.
7240 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
7241 i386-windows-tdep.c.
7242 * configure.tgt: Likewise.
7243
053205cc
SM
72442020-03-16 Simon Marchi <simon.marchi@efficios.com>
7245
7246 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
7247 * osabi.c (gdb_osabi_names): Add "Windows".
7248 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
7249 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
7250 (i386_cygwin_core_osabi_sniffer): New function, extracted from
7251 i386_cygwin_osabi_sniffer.
7252 (_initialize_i386_cygwin_tdep): Register OS ABI
7253 GDB_OSABI_WINDOWS for i386.
7254 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
7255 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
7256 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
7257 for x86-64.
7258 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
7259 when the target matches '*-*-mingw*'.
7260
fe4b2ee6
SM
72612020-03-16 Simon Marchi <simon.marchi@efficios.com>
7262
7263 * defs.h (enum gdb_osabi): Move to...
7264 * osabi.h (enum gdb_osabi): ... here.
7265 * gdbarch.sh: Include osabi.h in gdbarch.h.
7266 * gdbarch.h: Re-generate.
7267
cb9b645d
SM
72682020-03-16 Simon Marchi <simon.marchi@efficios.com>
7269
7270 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
7271 function.
7272 (_initialize_amd64_windows_tdep): Register osabi sniffer.
7273
3293bbaf
TT
72742020-03-14 Tom Tromey <tom@tromey.com>
7275
7276 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
7277 for C++.
7278 (c_type_print_modifier): Likewise. Add "language" parameter.
7279 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
7280 (c_type_print_base_1): Update.
7281 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
7282 constants.
7283 * type-stack.c (type_stack::insert): Handle tp_atomic and
7284 tp_restrict.
7285 (type_stack::follow_type_instance_flags): Likewise.
7286 (type_stack::follow_types): Likewise. Merge type-following code.
7287 * c-exp.y (RESTRICT, ATOMIC): New tokens.
7288 (space_identifier, cv_with_space_id)
7289 (const_or_volatile_or_space_identifier_noopt)
7290 (const_or_volatile_or_space_identifier): Remove.
7291 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
7292 rules.
7293 (ptr_operator, typebase): Update.
7294 (enum token_flag) <FLAG_C>: New constant.
7295 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
7296 "_Atomic".
7297 (lex_one_token): Handle FLAG_C.
7298
154151a6
KR
72992020-03-14 Kamil Rytarowski <n54@gmx.com>
7300
7301 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
7302 it to the ptrace call.
7303 * m68k-bsd-nat.c (store_registers): Likewise.
7304
bc107784
KR
73052020-03-14 Kamil Rytarowski <n54@gmx.com>
7306
7307 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
7308 gdb_byte *.
7309 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
7310 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
7311 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
7312
01a80117
KR
73132020-03-14 Kamil Rytarowski <n54@gmx.com>
7314
7315 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
7316 nbsd_nat_target instead of inf_ptrace_target.
7317 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7318 nbsd_nat_target.
7319
f90280ca
KR
73202020-03-14 Kamil Rytarowski <n54@gmx.com>
7321
7322 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
7323 register_t.
7324
6def66f1
KR
73252020-03-14 Kamil Rytarowski <n54@gmx.com>
7326
7327 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
7328 it to the ptrace call.
7329 * alpha-bsd-nat.c (store_registers): Likewise.
7330
66eaca97
KR
73312020-03-14 Kamil Rytarowski <n54@gmx.com>
7332
7333 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
7334 includes.
7335 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
7336 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
7337 fill_fpregset): Likewise.
7338
4fed520b
KR
73392020-03-14 Kamil Rytarowski <n54@gmx.com>
7340
7341 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
7342 nbsd_nat_target instead of inf_ptrace_target.
7343 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7344 nbsd_nat_target.
7345
2190cf06
KR
73462020-03-14 Kamil Rytarowski <n54@gmx.com>
7347
7348 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
7349 register_t.
7350
75c56d3d
KR
73512020-03-14 Kamil Rytarowski <n54@gmx.com>
7352
7353 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
7354 it to the ptrace call.
7355 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
7356 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
7357 * arm-nbsd-nat.c (store_register): Likewise.
7358 * arm-nbsd-nat.c (store_regs): Likewise.
7359 * arm-nbsd-nat.c (store_fp_register): Likewise.
7360 * arm-nbsd-nat.c (store_fp_regs): Likewise.
7361
6018d381
KR
73622020-03-14 Kamil Rytarowski <n54@gmx.com>
7363
7364 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
7365 nbsd_nat_target instead of inf_ptrace_target.
7366 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7367 nbsd_nat_target.
7368
013f99f0
KR
73692020-03-14 Kamil Rytarowski <n54@gmx.com>
7370
7371 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
7372 it to the ptrace call.
7373 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
7374
12753073
KR
73752020-03-14 Kamil Rytarowski <n54@gmx.com>
7376
6227b330
KR
7377 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
7378 it to the ptrace call.
7379 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
7380
73812020-03-14 Kamil Rytarowski <n54@gmx.com>
7382
7383 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
7384 gdb_byte *.
12753073
KR
7385 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
7386
d5be5fa4
KR
73872020-03-14 Kamil Rytarowski <n54@gmx.com>
7388
7389 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
7390 instead of inf_ptrace_target.
7391 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7392 nbsd_nat_target.
7393
8110f842
KR
73942020-03-14 Kamil Rytarowski <n54@gmx.com>
7395
7396 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7397 register_t.
7398
52feded7
KR
73992020-03-14 Kamil Rytarowski <n54@gmx.com>
7400
7401 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7402 register_t.
7403
25567eee
KR
74042020-03-14 Kamil Rytarowski <n54@gmx.com>
7405
7406 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
7407 register_t.
7408
426a9c18
TT
74092020-03-13 Tom Tromey <tom@tromey.com>
7410
7411 * value.h (val_print): Don't declare.
7412 * valprint.h (val_print_array_elements)
7413 (val_print_scalar_formatted, generic_val_print): Don't declare.
7414 * valprint.c (generic_val_print_array): Take a struct value.
7415 (generic_val_print_ptr, generic_val_print_memberptr)
7416 (generic_val_print_bool, generic_val_print_int)
7417 (generic_val_print_char, generic_val_print_complex)
7418 (generic_val_print): Remove.
7419 (generic_value_print): Update.
7420 (do_val_print): Remove unused parameters. Don't call
7421 la_val_print.
7422 (val_print): Remove.
7423 (common_val_print): Update. Don't call value_check_printable.
7424 (val_print_scalar_formatted, val_print_array_elements): Remove.
7425 * rust-lang.c (rust_val_print): Remove.
7426 (rust_language_defn): Update.
7427 * p-valprint.c (pascal_val_print): Remove.
7428 (pascal_value_print_inner): Update.
7429 (pascal_object_print_val_fields, pascal_object_print_val):
7430 Remove.
7431 (pascal_object_print_static_field): Update.
7432 * p-lang.h (pascal_val_print): Don't declare.
7433 * p-lang.c (pascal_language_defn): Update.
7434 * opencl-lang.c (opencl_language_defn): Update.
7435 * objc-lang.c (objc_language_defn): Update.
7436 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
7437 * m2-lang.h (m2_val_print): Don't declare.
7438 * m2-lang.c (m2_language_defn): Update.
7439 * language.h (struct language_defn) <la_val_print>: Remove.
7440 * language.c (unk_lang_value_print_inner): Rename. Change
7441 argument types.
7442 (unknown_language_defn, auto_language_defn): Update.
7443 * go-valprint.c (go_val_print): Remove.
7444 * go-lang.h (go_val_print): Don't declare.
7445 * go-lang.c (go_language_defn): Update.
7446 * f-valprint.c (f_val_print): Remove.
7447 * f-lang.h (f_value_print): Don't declare.
7448 * f-lang.c (f_language_defn): Update.
7449 * d-valprint.c (d_val_print): Remove.
7450 * d-lang.h (d_value_print): Don't declare.
7451 * d-lang.c (d_language_defn): Update.
7452 * cp-valprint.c (cp_print_value_fields)
7453 (cp_print_value_fields_rtti, cp_print_value): Remove.
7454 (cp_print_static_field): Update.
7455 * c-valprint.c (c_val_print_array, c_val_print_ptr)
7456 (c_val_print_struct, c_val_print_union, c_val_print_int)
7457 (c_val_print_memberptr, c_val_print): Remove.
7458 * c-lang.h (c_val_print_array, cp_print_value_fields)
7459 (cp_print_value_fields_rtti): Don't declare.
7460 * c-lang.c (c_language_defn, cplus_language_defn)
7461 (asm_language_defn, minimal_language_defn): Update.
7462 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
7463 (ada_val_print_enum): Take a struct value.
7464 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
7465 (ada_val_print): Remove.
7466 (ada_value_print_1): Update.
7467 (printable_val_type): Remove.
7468 * ada-lang.h (ada_val_print): Don't declare.
7469 * ada-lang.c (ada_language_defn): Update.
7470
42331a1e
TT
74712020-03-13 Tom Tromey <tom@tromey.com>
7472
7473 * valprint.c (do_val_print): Update.
7474 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
7475 a struct value.
7476 (value_to_value_object_no_release): Declare.
7477 * python/py-value.c (value_to_value_object_no_release): New
7478 function.
7479 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
7480 struct value.
7481 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
7482 function.
7483 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
7484 a struct value.
7485 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
7486 Declare.
7487 (gdbscm_apply_val_pretty_printer): Take a struct value.
7488 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
7489 value.
7490 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
7491 value.
7492 * extension-priv.h (struct extension_language_ops)
7493 <apply_val_pretty_printer>: Take a struct value.
7494 * cp-valprint.c (cp_print_value): Create a struct value.
7495 (cp_print_value): Update.
7496
3a916a97
TT
74972020-03-13 Tom Tromey <tom@tromey.com>
7498
7499 * ada-valprint.c (print_field_values): Call common_val_print.
7500
b59eac37
TT
75012020-03-13 Tom Tromey <tom@tromey.com>
7502
7503 * ada-valprint.c (val_print_packed_array_elements): Remove
7504 bitoffset and val parameters. Call common_val_print.
7505 (ada_val_print_string): Remove offset, address, and original_value
7506 parameters.
7507 (ada_val_print_array): Update.
7508 (ada_value_print_array): New function.
7509 (ada_value_print_1): Call it.
7510
03371129
TT
75112020-03-13 Tom Tromey <tom@tromey.com>
7512
7513 * ada-valprint.c (ada_value_print): Use common_val_print.
7514
2e088f8b
TT
75152020-03-13 Tom Tromey <tom@tromey.com>
7516
7517 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
7518
39ef85a8
TT
75192020-03-13 Tom Tromey <tom@tromey.com>
7520
7521 * ada-valprint.c (ada_value_print_num): New function.
7522 (ada_value_print_1): Use it.
7523
b9fa6e07
TT
75242020-03-13 Tom Tromey <tom@tromey.com>
7525
7526 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
7527
416595d6
TT
75282020-03-13 Tom Tromey <tom@tromey.com>
7529
7530 * ada-valprint.c (ada_value_print_ptr): New function.
7531 (ada_value_print_1): Use it.
7532
5b5e15ec
TT
75332020-03-13 Tom Tromey <tom@tromey.com>
7534
7535 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
7536 call common_val_print.
7537 (ada_val_print_1): Update.
7538 (ada_value_print_1): New function.
7539 (ada_value_print_inner): Rewrite.
7540
fbf54e75
TT
75412020-03-13 Tom Tromey <tom@tromey.com>
7542
7543 * cp-valprint.c (cp_print_value_fields): Update.
7544 (cp_print_value): New function.
7545
64b653ca
TT
75462020-03-13 Tom Tromey <tom@tromey.com>
7547
7548 * m2-valprint.c (m2_value_print_inner): Use
7549 cp_print_value_fields.
7550 * cp-valprint.c (cp_print_value_fields): New function.
7551 * c-valprint.c (c_value_print_struct): New function.
7552 (c_value_print_inner): Use c_value_print_struct.
7553 * c-lang.h (cp_print_value_fields): Declare.
7554
6999f067
TT
75552020-03-13 Tom Tromey <tom@tromey.com>
7556
7557 * c-valprint.c (c_value_print_array): New function.
7558 (c_value_print_inner): Use it.
7559
ce80b8bd
TT
75602020-03-13 Tom Tromey <tom@tromey.com>
7561
7562 * c-valprint.c (c_value_print_memberptr): New function.
7563 (c_value_print_inner): Use it.
7564
2faac269
TT
75652020-03-13 Tom Tromey <tom@tromey.com>
7566
7567 * c-valprint.c (c_value_print_int): New function.
7568 (c_value_print_inner): Use it.
7569
da3e2c29
TT
75702020-03-13 Tom Tromey <tom@tromey.com>
7571
7572 * c-valprint.c (c_value_print_ptr): New function.
7573 (c_value_print_inner): Use it.
7574
50836231
TT
75752020-03-13 Tom Tromey <tom@tromey.com>
7576
7577 * c-valprint.c (c_value_print_inner): Rewrite.
7578
4f412b6e
TT
75792020-03-13 Tom Tromey <tom@tromey.com>
7580
7581 * valprint.c (generic_value_print_complex): New function.
7582 (generic_value_print): Use it.
7583
f5354008
TT
75842020-03-13 Tom Tromey <tom@tromey.com>
7585
7586 * valprint.c (generic_val_print_float): Don't call
7587 val_print_scalar_formatted.
7588 (generic_val_print, generic_value_print): Update.
7589
3eec3b05
TT
75902020-03-13 Tom Tromey <tom@tromey.com>
7591
7592 * valprint.c (generic_value_print_char): New function
7593 (generic_value_print): Use it.
7594
fdddfccb
TT
75952020-03-13 Tom Tromey <tom@tromey.com>
7596
7597 * valprint.c (generic_value_print_int): New function.
7598 (generic_value_print): Use it.
7599
6dde7521
TT
76002020-03-13 Tom Tromey <tom@tromey.com>
7601
7602 * valprint.c (generic_value_print_bool): New function.
7603 (generic_value_print): Use it.
7604
4112d2e6
TT
76052020-03-13 Tom Tromey <tom@tromey.com>
7606
7607 * valprint.c (generic_val_print_func): Simplify.
7608 (generic_val_print, generic_value_print): Update.
7609
65786af6
TT
76102020-03-13 Tom Tromey <tom@tromey.com>
7611
7612 * valprint.c (generic_val_print_flags): Remove.
7613 (generic_val_print, generic_value_print): Update.
7614 (val_print_type_code_flags): Add original_value parameter.
7615
40f3ce18
TT
76162020-03-13 Tom Tromey <tom@tromey.com>
7617
7618 * valprint.c (generic_val_print): Update.
7619 (generic_value_print): Update.
7620 * valprint.c (generic_val_print_enum): Don't call
7621 val_print_scalar_formatted.
7622
2a5b130b
TT
76232020-03-13 Tom Tromey <tom@tromey.com>
7624
7625 * valprint.c (generic_value_print): Call generic_value_print_ptr.
7626 * valprint.c (generic_value_print_ptr): New function.
7627
abc66ce9
TT
76282020-03-13 Tom Tromey <tom@tromey.com>
7629
7630 * valprint.c (generic_value_print): Rewrite.
7631
07a32858
TT
76322020-03-13 Tom Tromey <tom@tromey.com>
7633
7634 * p-valprint.c (pascal_object_print_value_fields)
7635 (pascal_object_print_value): New functions.
7636
64d64d3a
TT
76372020-03-13 Tom Tromey <tom@tromey.com>
7638
7639 * p-valprint.c (pascal_value_print_inner): Rewrite.
7640
6a95a1f5
TT
76412020-03-13 Tom Tromey <tom@tromey.com>
7642
7643 * f-valprint.c (f_value_print_innner): Rewrite.
7644
59fcdac6
TT
76452020-03-13 Tom Tromey <tom@tromey.com>
7646
7647 * m2-valprint.c (m2_print_unbounded_array): New overload.
7648 (m2_print_unbounded_array): Update.
7649 (m2_print_array_contents): Take a struct value.
7650 (m2_value_print_inner): Rewrite.
7651
d133c3e1
TT
76522020-03-13 Tom Tromey <tom@tromey.com>
7653
7654 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
7655 (d_value_print_inner): New function.
7656 * d-lang.h (d_value_print_inner): Declare.
7657 * d-lang.c (d_language_defn): Use d_value_print_inner.
7658
23b0f06b
TT
76592020-03-13 Tom Tromey <tom@tromey.com>
7660
7661 * go-valprint.c (go_value_print_inner): New function.
7662 * go-lang.h (go_value_print_inner): Declare.
7663 * go-lang.c (go_language_defn): Use go_value_print_inner.
7664
5f56f7cb
TT
76652020-03-13 Tom Tromey <tom@tromey.com>
7666
7667 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
7668 API.
7669 (rust_val_print): Rewrite.
7670 (rust_value_print_inner): New function, from rust_val_print.
7671 (rust_language_defn): Use rust_value_print_inner.
7672
26792ee0
TT
76732020-03-13 Tom Tromey <tom@tromey.com>
7674
7675 * ada-valprint.c (ada_value_print_inner): New function.
7676 * ada-lang.h (ada_value_print_inner): Declare.
7677 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
7678
24051bbe
TT
76792020-03-13 Tom Tromey <tom@tromey.com>
7680
7681 * f-valprint.c (f_value_print_innner): New function.
7682 * f-lang.h (f_value_print_innner): Declare.
7683 * f-lang.c (f_language_defn): Use f_value_print_innner.
7684
c0941be6
TT
76852020-03-13 Tom Tromey <tom@tromey.com>
7686
7687 * p-valprint.c (pascal_value_print_inner): New function.
7688 * p-lang.h (pascal_value_print_inner): Declare.
7689 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
7690
62c4663d
TT
76912020-03-13 Tom Tromey <tom@tromey.com>
7692
7693 * m2-valprint.c (m2_value_print_inner): New function.
7694 * m2-lang.h (m2_value_print_inner): Declare.
7695 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
7696
62182190
TT
76972020-03-13 Tom Tromey <tom@tromey.com>
7698
7699 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
7700 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
7701 * c-valprint.c (c_value_print_inner): New function.
7702 * c-lang.h (c_value_print_inner): Declare.
7703 * c-lang.c (c_language_defn, cplus_language_defn)
7704 (asm_language_defn, minimal_language_defn): Use
7705 c_value_print_inner.
7706
1e592a8a
TT
77072020-03-13 Tom Tromey <tom@tromey.com>
7708
7709 * p-valprint.c (pascal_object_print_value_fields): Now static.
7710 * p-lang.h (pascal_object_print_value_fields): Don't declare.
7711
7fe471e9
TT
77122020-03-13 Tom Tromey <tom@tromey.com>
7713
7714 * c-valprint.c (c_val_print_array): Simplify.
7715
d121c6ce
TT
77162020-03-13 Tom Tromey <tom@tromey.com>
7717
7718 * valprint.c (value_print_array_elements): New function.
7719 * valprint.h (value_print_array_elements): Declare.
7720
4dba70ee
TT
77212020-03-13 Tom Tromey <tom@tromey.com>
7722
7723 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
7724 * mips-tdep.c (mips_print_register): Use
7725 value_print_scalar_formatted.
7726
4f9ae810
TT
77272020-03-13 Tom Tromey <tom@tromey.com>
7728
7729 * valprint.h (value_print_scalar_formatted): Declare.
7730 * valprint.c (value_print_scalar_formatted): New function.
7731
156bfec9
TT
77322020-03-13 Tom Tromey <tom@tromey.com>
7733
7734 * valprint.h (generic_value_print): Declare.
7735 * valprint.c (generic_value_print): New function.
7736
2b4e573d
TT
77372020-03-13 Tom Tromey <tom@tromey.com>
7738
7739 * valprint.c (do_val_print): Call la_value_print_inner, if
7740 available.
7741 * rust-lang.c (rust_language_defn): Update.
7742 * p-lang.c (pascal_language_defn): Update.
7743 * opencl-lang.c (opencl_language_defn): Update.
7744 * objc-lang.c (objc_language_defn): Update.
7745 * m2-lang.c (m2_language_defn): Update.
7746 * language.h (struct language_defn) <la_value_print_inner>: New
7747 member.
7748 * language.c (unknown_language_defn, auto_language_defn): Update.
7749 * go-lang.c (go_language_defn): Update.
7750 * f-lang.c (f_language_defn): Update.
7751 * d-lang.c (d_language_defn): Update.
7752 * c-lang.c (c_language_defn, cplus_language_defn)
7753 (asm_language_defn, minimal_language_defn): Update.
7754 * ada-lang.c (ada_language_defn): Update.
7755
a1f6a07c
TT
77562020-03-13 Tom Tromey <tom@tromey.com>
7757
7758 * c-valprint.c (c_value_print): Use common_val_print.
7759
410cf315
TT
77602020-03-13 Tom Tromey <tom@tromey.com>
7761
7762 * cp-valprint.c (cp_print_static_field): Use common_val_print.
7763
72a45c93
TT
77642020-03-13 Tom Tromey <tom@tromey.com>
7765
7766 * f-valprint.c (f77_print_array_1, f_val_print): Use
7767 common_val_print.
7768
040f66bd
TT
77692020-03-13 Tom Tromey <tom@tromey.com>
7770
7771 * riscv-tdep.c (riscv_print_one_register_info): Use
7772 common_val_print.
7773
a6e05a6c
TT
77742020-03-13 Tom Tromey <tom@tromey.com>
7775
7776 * mi/mi-main.c (output_register): Use common_val_print.
7777
3444c526
TT
77782020-03-13 Tom Tromey <tom@tromey.com>
7779
7780 * infcmd.c (default_print_one_register_info): Use
7781 common_val_print.
7782
c2a44efe
TT
77832020-03-13 Tom Tromey <tom@tromey.com>
7784
7785 * valprint.h (common_val_print_checked): Declare.
7786 * valprint.c (common_val_print_checked): New function.
7787 * stack.c (print_frame_arg): Use common_val_print_checked.
7788
b0c26e99
TT
77892020-03-13 Tom Tromey <tom@tromey.com>
7790
7791 * valprint.c (do_val_print): New function, from val_print.
7792 (val_print): Use do_val_print.
7793 (common_val_print): Use do_val_print.
7794
ce3acbe9
TT
77952020-03-13 Tom Tromey <tom@tromey.com>
7796
7797 * valprint.c (value_print): Use scoped_value_mark.
7798
96c7f873
TV
77992020-03-13 Tom de Vries <tdevries@suse.de>
7800
7801 PR symtab/25646
7802 * psymtab.c (partial_symtab::partial_symtab): Don't set
7803 globals_offset and statics_offset. Push element onto
7804 current_global_psymbols and current_static_psymbols stacks.
7805 (concat): New function.
7806 (end_psymtab_common): Set globals_offset and statics_offset. Pop
7807 element from current_global_psymbols and current_static_psymbols
7808 stacks. Concat popped elements to global_psymbols and
7809 static_symbols.
7810 (add_psymbol_to_list): Use current_global_psymbols and
7811 current_static_psymbols stacks.
7812 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
7813 current_static_psymbols fields.
7814
6ba0a321
CB
78152020-03-12 Christian Biesinger <cbiesinger@google.com>
7816
7817 * corelow.c (sniff_core_bfd): Remove.
7818 (class core_target) <m_core_vec>: Remove.
7819 (core_target::core_target): Update.
7820 (core_file_fns): Remove.
7821 (deprecated_add_core_fns): Remove.
7822 (default_core_sniffer): Remove.
7823 (sniff_core_bfd): Remove.
7824 (default_check_format): Remove.
7825 (gdb_check_format): Remove.
7826 (core_target_open): Update.
7827 (core_target::get_core_register_section): Update.
7828 (get_core_registers_cb): Update.
7829 (core_target::fetch_registers): Update.
7830 * gdbcore.h (struct core_fns): Remove.
7831 (deprecated_add_core_fns): Remove.
7832 (default_core_sniffer): Remove.
7833 (default_check_format): Remove.
7834
227031b2
TT
78352020-03-12 Tom Tromey <tom@tromey.com>
7836
7837 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
7838 CORE_ADDR.
7839 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
7840
53807e9f
TT
78412020-03-12 Tom Tromey <tom@tromey.com>
7842
7843 * remote.c (remote_target::download_tracepoint)
7844 (remote_target::enable_tracepoint)
7845 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
7846 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
7847 sprintf_vma.
7848
64f25102
TT
78492020-03-12 Tom Tromey <tom@tromey.com>
7850
7851 * symfile-mem.c: Update CORE_ADDR size assert.
7852
272cd5a3
SM
78532020-03-12 Simon Marchi <simon.marchi@efficios.com>
7854
7855 * selftest.m4: Move to gdbsupport/.
7856 * acinclude.m4: Update path to selftest.m4.
7857
74cd3f9d
SM
78582020-03-12 Simon Marchi <simon.marchi@efficios.com>
7859
7860 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
7861 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
7862 gdbarch-selfselftests.c and selftest-arch.c.
7863 (SUBDIR_UNITTESTS_OBS): Rename to...
7864 (SELFTESTS_OBS): ... this.
7865 (COMMON_SFILES): Remove disasm-selftests.c and
7866 gdbarch-selftests.c.
7867 * configure.ac: Don't add selftest-arch.{c,o} to
7868 CONFIG_{SRCS,OBS}.
7869 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
7870 preprocessor conditions.
7871
db6878ac
SM
78722020-03-12 Simon Marchi <simon.marchi@efficios.com>
7873
7874 * configure.ac: Don't source bfd/development.sh.
7875 * selftest.m4: Modify comment.
7876 * configure: Re-generate.
7877
4d696a5c
SM
78782020-03-12 Simon Marchi <simon.marchi@efficios.com>
7879
7880 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
7881 not "true" or "false".
7882 * configure: Re-generate.
7883
8dd8e1c7
CB
78842020-03-12 Christian Biesinger <cbiesinger@google.com>
7885
7886 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
7887 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
7888 renamed to arm_nbsd_supply_gregset.
7889 (fetch_register): Update to call arm_nbsd_supply_gregset.
7890 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
7891 (arm_netbsd_nat_target::fetch_registers): Update.
7892 (fetch_elfcore_registers): Removed.
7893 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
7894 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
7895 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
7896 not require NetBSD system headers.
7897 (arm_nbsd_regset): New struct.
7898 (arm_nbsd_iterate_over_regset_sections): New function.
7899 (arm_netbsd_init_abi_common): Updated to call
7900 set_gdbarch_iterate_over_regset_sections.
7901 * arm-nbsd-tdep.h: New file.
7902
dd69bf7a
KB
79032020-03-11 Kevin Buettner <kevinb@redhat.com>
7904
7905 * symtab.c (find_pc_sect_line): Add check which prevents infinite
7906 recursion.
7907
a0761e34
SM
79082020-03-11 Simon Marchi <simon.marchi@efficios.com>
7909
7910 * configure: Re-generate.
7911
e7a82140
TT
79122020-03-11 Tom Tromey <tromey@adacore.com>
7913
7914 * ada-typeprint.c (print_choices): Fix comment.
7915
dcc050c8
AB
79162020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
7917
7918 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
7919 previous item in the list, when the list has no items.
7920
1c33af77
TV
79212020-03-11 Tom de Vries <tdevries@suse.de>
7922
7923 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
7924 PROP_LOCLIST handling code.
7925
8c95582d
AB
79262020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
7927
7928 * buildsym-legacy.c (record_line): Pass extra parameter to
7929 record_line.
7930 * buildsym.c (buildsym_compunit::record_line): Take an extra
7931 parameter, reduce duplication in the line table, and record the
7932 is_stmt flag in the line table.
7933 * buildsym.h (buildsym_compunit::record_line): Add extra
7934 parameter.
7935 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
7936 non-statement lines.
7937 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
7938 this to the symtab builder.
7939 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
7940 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
7941 through to dwarf_record_line_1.
7942 * infrun.c (process_event_stop_test): When stepping, don't stop at
7943 a non-statement instruction, and only refresh the step info when
7944 we land in the middle of a line's range. Also add an extra
7945 comment.
7946 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
7947 field.
7948 * record-btrace.c (btrace_find_line_range): Only record lines
7949 marked as is-statement.
7950 * stack.c (frame_show_address): Show the frame address if we are
7951 in a non-statement sal.
7952 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
7953 (maintenance_print_one_line_table): Print a header for the is_stmt
7954 column, and include is_stmt information in the output.
7955 * symtab.c (find_pc_sect_line): Find lines marked as statements in
7956 preference to non-statements.
7957 (find_pcs_for_symtab_line): Prefer is-statement entries.
7958 (find_line_common): Likewise.
7959 * symtab.h (struct linetable_entry): Add is_stmt field.
7960 (struct symtab_and_line): Likewise.
7961 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
7962 arranging the line table.
7963
e4003a34
TV
79642020-03-07 Tom de Vries <tdevries@suse.de>
7965
7966 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
7967 DIE.
7968
e8932576
TT
79692020-03-07 Tom Tromey <tom@tromey.com>
7970
7971 * valops.c (value_literal_complex): Remove obsolete comment.
7972 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
7973 comment.
7974
29734269
SM
79752020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
7976
7977 * infrun.h: Forward-declare thread_info.
7978 (set_step_info): Add thread_info parameter, add doc.
7979 * infrun.c (set_step_info): Add thread_info parameter, move doc
7980 to header.
7981 * infrun.c (process_event_stop_test): Pass thread to
7982 set_step_info call.
7983 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
7984 set_step_info.
7985 (prepare_one_step): Add thread_info parameter, pass it to
7986 set_step_frame and prepare_one_step (recursive) call.
7987 (step_1): Pass thread to prepare_one_step call.
7988 (step_command_fsm::should_stop): Pass thread to
7989 prepare_one_step.
7990 (until_next_fsm): Pass thread to set_step_frame call.
7991 (finish_command): Pass thread to set_step_info call.
7992
b7d64b29
HD
79932020-03-06 Hannes Domani <ssbssa@yahoo.de>
7994
7995 * windows-tdep.c (windows_solib_create_inferior_hook):
7996 Check if inferior is running.
7997
09f2921c
TV
79982020-03-06 Tom de Vries <tdevries@suse.de>
7999
8000 * NEWS: Fix "the the".
8001 * ctfread.c: Same.
8002
fd760e79
TV
80032020-03-06 Tom de Vries <tdevries@suse.de>
8004
8005 * psymtab.c (psymtab_to_symtab): Don't print "done.".
8006
20ea4a60
AB
80072020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8008
8009 * .dir-locals.el: Add a comment referencing the other copies of
8010 this file.
8011
0afbabf0
JB
80122020-03-05 John Baldwin <jhb@FreeBSD.org>
8013
8014 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
8015 psargs.
8016
842806cb
TBA
80172020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8018
8019 * .gitattributes: New file.
8020
be1e3d3e
TT
80212020-03-04 Tom Tromey <tom@tromey.com>
8022
8023 * symmisc.c (print_symbol_bcache_statistics)
8024 (print_objfile_statistics): Update.
8025 * symfile.c (allocate_symtab): Use intern.
8026 * psymtab.c (partial_symtab::partial_symtab): Use intern.
8027 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
8028 macro_cache>: Remove.
8029 <string_cache>: New member.
8030 (struct objfile) <intern>: New methods.
8031 * elfread.c (elf_symtab_read): Use intern.
8032 * dwarf2/read.c (fixup_go_packaging): Intern package name.
8033 (dwarf2_compute_name, dwarf2_physname)
8034 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
8035 names.
8036 (guess_partial_die_structure_name): Update.
8037 (partial_die_info::fixup): Intern name.
8038 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
8039 name.
8040 (dwarf2_name): Intern name. Update.
8041 * buildsym.c (buildsym_compunit::get_macro_table): Use
8042 string_cache.
8043
4e7625fd
TT
80442020-03-04 Tom Tromey <tom@tromey.com>
8045
8046 * jit.c (bfd_open_from_target_memory): Make "target" const.
8047 * corefile.c (gnutarget): Now const.
8048 * gdbcore.h (gnutarget): Now const.
8049
46f9f931
HD
80502020-03-04 Hannes Domani <ssbssa@yahoo.de>
8051
8052 * NEWS: Mention support for WOW64 processes.
8053 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
8054 (amd64_windows_segment_register_p): Remove static.
8055 (_initialize_amd64_windows_nat): Update.
8056 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
8057 * i386-windows-nat.c (context_offset): Update.
8058 (i386_mappings): Rename and remove static.
8059 (i386_windows_segment_register_p): Remove static.
8060 (_initialize_i386_windows_nat): Update.
8061 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
8062 (STATUS_WX86_SINGLE_STEP): New macro.
8063 (EnumProcessModulesEx): New macro.
8064 (Wow64SuspendThread): New macro.
8065 (Wow64GetThreadContext): New macro.
8066 (Wow64SetThreadContext): New macro.
8067 (Wow64GetThreadSelectorEntry): New macro.
8068 (windows_set_context_register_offsets): Add static.
8069 (windows_set_segment_register_p): Likewise.
8070 (windows_add_thread): Adapt for WOW64 processes.
8071 (windows_fetch_one_register): Likewise.
8072 (windows_nat_target::fetch_registers): Likewise.
8073 (windows_store_one_register): Likewise.
8074 (display_selector): Likewise.
8075 (display_selectors): Likewise.
8076 (handle_exception): Likewise.
8077 (windows_continue): Likewise.
8078 (windows_nat_target::resume): Likewise.
8079 (windows_add_all_dlls): Likewise.
8080 (do_initial_windows_stuff): Likewise.
8081 (windows_nat_target::attach): Likewise.
8082 (windows_get_exec_module_filename): Likewise.
8083 (windows_nat_target::create_inferior): Likewise.
8084 (windows_xfer_siginfo): Likewise.
8085 (_initialize_loadable): Initialize Wow64SuspendThread,
8086 Wow64GetThreadContext, Wow64SetThreadContext,
8087 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
8088 * windows-nat.h (windows_set_context_register_offsets):
8089 Remove declaration.
8090 (windows_set_segment_register_p): Likewise.
8091 (i386_windows_segment_register_p): Add declaration.
8092 (amd64_windows_segment_register_p): Likewise.
8093
440cf44e
LM
80942020-03-04 Luis Machado <luis.machado@linaro.org>
8095
8096 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
8097 in "info registers" for AArch64/ARM.
8098
8099 The change caused "info registers" to not print GPR's.
8100
8101 gdb/ChangeLog:
8102
8103 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
8104
8105 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
8106 when reg->group is empty and reggroup is not.
8107
1009d92f
TT
81082020-03-03 Tom Tromey <tromey@adacore.com>
8109
8110 * dwarf2/frame.c (struct dwarf2_frame_cache)
8111 <checked_tailcall_bottom, entry_cfa_sp_offset,
8112 entry_cfa_sp_offset_p>: Remove members.
8113 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
8114 (dwarf2_frame_prev_register): Don't call
8115 dwarf2_tailcall_sniffer_first.
8116 (dwarf2_append_unwinders): Don't append tailcall unwinder.
8117 * frame-unwind.c (add_unwinder): New fuction.
8118 (frame_unwind_init): Use it. Add tailcall unwinder.
8119
5e5d66b6
AB
81202020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
8121 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8122
8123 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
8124 value should be printed as true.
8125
584cf46d
HD
81262020-03-03 Hannes Domani <ssbssa@yahoo.de>
8127
8128 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
8129 (windows_init_abi): Set and use windows_so_ops.
8130
7b973adc
SDJ
81312020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
8132
8133 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
8134 when verifying if dealing with a convenience variable.
8135
bb7b70ab
LM
81362020-03-03 Luis Machado <luis.machado@linaro.org>
8137
8138 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
8139
9822cb57
SM
81402020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
8141
8142 * infrun.c (gdbarch_supports_displaced_stepping): New.
8143 (use_displaced_stepping): Break up conditions in smaller pieces.
8144 Use gdbarch_supports_displaced_stepping.
8145 (displaced_step_prepare_throw): Use
8146 gdbarch_supports_displaced_stepping.
8147
63e163f2
AB
81482020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8149
8150 * NEWS: Mention new behaviour of the history filename.
8151 * top.c (write_history_p): Add comment.
8152 (show_write_history_p): Add header comment, give a different
8153 message when history writing is on, but the history filename is
8154 empty.
8155 (history_filename): Add comment.
8156 (history_filename_empty): New function.
8157 (show_history_filename): Add header comment, give a different
8158 message when the filename is empty.
8159 (init_history): Compare history_filename against nullptr, and only
8160 read history if the filename is not empty.
8161 (set_history_filename): Add header comment, and only make
8162 non-empty filenames absolute.
8163 (init_main): Make the filename argument to 'set history filename'
8164 optional.
8165
81b86b97
CB
81662020-03-02 Christian Biesinger <cbiesinger@google.com>
8167
8168 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
8169 (arm_supply_vfpregset): ...this, and update to use VFP registers.
8170 (fetch_fp_register): Update.
8171 (fetch_fp_regs): Update.
8172 (store_fp_register): Update.
8173 (store_fp_regs): Update.
8174 (arm_netbsd_nat_target::read_description): New function.
8175 (fetch_elfcore_registers): Update.
8176
24ed6739
AB
81772020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8178
8179 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
8180 general_thread if the stop reply is missing a thread-id.
8181 (remote_target::process_stop_reply): Use the first non-exited
8182 thread if the target didn't pass a thread-id.
8183 * infrun.c (do_target_wait): Move call to
8184 switch_to_inferior_no_thread to ....
8185 (do_target_wait_1): ... here.
8186
a84bb2a0
JT
81872020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
8188
8189 * debuginfod-support.c: Include defs.h first.
8190
658dadf0
TV
81912020-02-28 Tom de Vries <tdevries@suse.de>
8192
8193 * symfile.c (set_initial_language): Use default language for lookup.
8194
4ebe4877
SM
81952020-02-28 Simon Marchi <simon.marchi@efficios.com>
8196
8197 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
8198 reader variable, pass `this` to read_cutu_die_from_dwo.
8199
e5da1139
AM
82002020-02-27 Aaron Merey <amerey@redhat.com>
8201
8202 * source.c (open_source_file): Check for nullptr when computing
8203 srcpath.
8204
317f7127
TT
82052020-02-27 Tom Tromey <tromey@adacore.com>
8206
8207 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
8208 member.
8209 (dwarf2_add_field): Don't update nfields.
8210 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
8211
3104d9ee
AB
82122020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8213
8214 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
8215 abs.
8216
b83470bf
TT
82172020-02-26 Tom Tromey <tom@tromey.com>
8218
8219 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
8220 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
8221 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
8222 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
8223 per_cu_data.
8224
edfe0a0c
TT
82252020-02-26 Tom Tromey <tom@tromey.com>
8226
8227 * dwarf2/index-write.c (psym_index_map): Change type.
8228 (add_address_entry_worker, write_one_signatured_type)
8229 (recursively_count_psymbols, recursively_write_psymbols)
8230 (class debug_names, psyms_seen_size, write_gdbindex)
8231 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
8232
0d79cdc4
AM
82332020-02-26 Aaron Merey <amerey@redhat.com>
8234
8235 * Makefile.in: Handle optional debuginfod support.
8236 * NEWS: Update.
8237 * README: Add --with-debuginfod summary.
8238 * config.in: Regenerate.
8239 * configure: Regenerate.
8240 * configure.ac: Handle optional debuginfod support.
8241 * debuginfod-support.c: debuginfod helper functions.
8242 * debuginfod-support.h: Ditto.
8243 * doc/gdb.texinfo: Add --with-debuginfod to configure options
8244 summary.
8245 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
8246 when a dwz file cannot be found.
8247 * elfread.c (elf_symfile_read): Query debuginfod servers when a
8248 debuginfo file cannot be found.
8249 * source.c (open_source_file): Query debuginfod servers when a
8250 source file cannot be found.
8251 * top.c (print_gdb_configuration): Include
8252 --{with,without}-debuginfod in the output.
8253
b65ce565
JG
82542020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
8255
8256 * thread.c (thr_try_catch_cmd): Print thread name.
8257
d4c9a4f8
SM
82582020-02-26 Simon Marchi <simon.marchi@efficios.com>
8259
8260 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
8261 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8262 dwarf2_fetch_die_type_sect_off): Move to...
8263 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
8264 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8265 dwarf2_fetch_die_type_sect_off): ... here.
8266 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
8267 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8268 dwarf2_fetch_die_type_sect_off): Move doc to header file.
8269
0dce4280
TV
82702020-02-26 Tom de Vries <tdevries@suse.de>
8271
8272 PR gdb/25603
8273 * symfile.c (set_initial_language): Exit-early if
8274 language_mode == language_mode_manual.
8275
450a1bfc
SM
82762020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8277
8278 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
8279 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
8280 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
8281
9e80cfa1
AB
82822020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
8283
8284 * gdbtypes.c (create_array_type_with_stride): Handle negative
8285 array strides.
8286 * valarith.c (value_subscripted_rvalue): Likewise.
8287
09624f1f
LM
82882020-02-25 Luis Machado <luis.machado@linaro.org>
8289
8290 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
8291
8cb5117c
SM
82922020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8293
8294 * loc.h (dwarf2_get_die_type): Move to...
8295 * read.h (dwarf2_get_die_type): ... here.
8296 * read.c (dwarf2_get_die_type): Move doc to header.
8297
c325c44e
JB
82982020-02-25 Joel Brobecker <brobecker@adacore.com>
8299
8300 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
8301 'gnulib/Makefile.in' to the list.
8302
4ac93832
TT
83032020-02-24 Tom Tromey <tom@tromey.com>
8304
8305 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
8306 Remove.
8307 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
8308 XOBNEWVEC.
8309
197400e8
TT
83102020-02-24 Tom Tromey <tom@tromey.com>
8311
8312 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
8313 New method.
8314 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
8315 (dw2_do_instantiate_symtab, dw2_get_file_names)
8316 (build_type_psymtab_dependencies, load_full_type_unit): Update.
8317
76935768
TT
83182020-02-24 Tom Tromey <tom@tromey.com>
8319
8320 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
8321 make_scoped_restore.
8322 (dwarf2_psymtab::read_symtab): Don't clear
8323 reading_partial_symbols.
8324
a88ef40d
TV
83252020-02-24 Tom de Vries <tdevries@suse.de>
8326
8327 PR gdb/25592
8328 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
8329
c9af6521
TV
83302020-02-24 Tom de Vries <tdevries@suse.de>
8331
8332 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
8333 commands layout next/prev/regs.
8334
5707a07a
TT
83352020-02-22 Tom Tromey <tom@tromey.com>
8336
8337 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
8338 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
8339
3b0fb49e
TT
83402020-02-22 Tom Tromey <tom@tromey.com>
8341
8342 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
8343
283be8bf
TT
83442020-02-22 Tom Tromey <tom@tromey.com>
8345
8346 * tui/tui-win.c (_initialize_tui_win): Add usage text.
8347 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
8348 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
8349 * tui/tui.c (_initialize_tui): Add usage text.
8350
ca793b96
TT
83512020-02-22 Tom Tromey <tom@tromey.com>
8352
8353 * tui/tui-win.c (tui_set_focus_command)
8354 (tui_set_win_height_command): Use error_no_arg.
8355 (_initialize_tui_win): Update help text.
8356 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
8357
432b5c40
TT
83582020-02-22 Tom Tromey <tom@tromey.com>
8359
8360 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
8361 * tui/tui-disasm.h (struct tui_disasm_window)
8362 <display_start_addr>: Declare.
8363 * tui/tui-source.h (struct tui_source_window)
8364 <display_start_addr>: Declare.
8365 * tui/tui-winsource.h (struct tui_source_window_base)
8366 <show_source_line, display_start_addr>: New methods.
8367 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
8368 Rename and move to protected section.
8369 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
8370 (tui_source_window_base::do_erase_source_content): Update.
8371 (tui_source_window_base::show_source_line): Now a method.
8372 (tui_source_window_base::show_source_content)
8373 (tui_source_window_base::tui_source_window_base)
8374 (tui_source_window_base::rerender)
8375 (tui_source_window_base::refill)
8376 (tui_source_window_base::do_scroll_horizontal)
8377 (tui_source_window_base::set_is_exec_point_at)
8378 (tui_source_window_base::update_breakpoint_info)
8379 (tui_source_window_base::update_exec_info): Update.
8380 * tui/tui-source.c (tui_source_window::set_contents)
8381 (tui_source_window::showing_source_p)
8382 (tui_source_window::do_scroll_vertical)
8383 (tui_source_window::location_matches_p)
8384 (tui_source_window::line_is_displayed): Update.
8385 (tui_source_window::display_start_addr): New method.
8386 * tui/tui-disasm.c (tui_disasm_window::set_contents)
8387 (tui_disasm_window::do_scroll_vertical)
8388 (tui_disasm_window::location_matches_p): Update.
8389 (tui_disasm_window::display_start_addr): New method.
8390
01b1af32
TT
83912020-02-22 Tom Tromey <tom@tromey.com>
8392
8393 * NEWS: Add entry for gdb.register_window_type.
8394 * tui/tui-layout.h (window_factory): New typedef.
8395 (tui_register_window): Declare.
8396 * tui/tui-layout.c (saved_tui_windows): New global.
8397 (tui_apply_current_layout): Use it.
8398 (tui_register_window): New function.
8399 * python/python.c (do_start_initialization): Call
8400 gdbpy_initialize_tui.
8401 (python_GdbMethods): Add "register_window_type" function.
8402 * python/python-internal.h (gdbpy_register_tui_window)
8403 (gdbpy_initialize_tui): Declare.
8404 * python/py-tui.c: New file.
8405 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
8406
fc96d20b
TT
84072020-02-22 Tom Tromey <tom@tromey.com>
8408
8409 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
8410
935c78c0
TT
84112020-02-22 Tom Tromey <tom@tromey.com>
8412
8413 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
8414 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
8415 * tui/tui-data.c (tui_set_win_with_focus): Remove.
8416 (tui_set_win_focus_to): Move from tui-win.c.
8417
0240c8f1
TT
84182020-02-22 Tom Tromey <tom@tromey.com>
8419
8420 * tui/tui-layout.c (make_standard_window, get_locator_window): New
8421 functions.
8422 (known_window_types): New global.
8423 (tui_get_window_by_name): Reimplement.
8424 (initialize_known_windows): New function.
8425 (validate_window_name): Rewrite.
8426 (_initialize_tui_layout): Call initialize_known_windows.
8427
fdb01f0c
TT
84282020-02-22 Tom Tromey <tom@tromey.com>
8429
8430 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
8431 Remove constants.
8432 * tui/tui-winsource.h (struct tui_source_window_base)
8433 <tui_source_window_base>: Remove parameter.
8434 * tui/tui-winsource.c
8435 (tui_source_window_base::tui_source_window_base): Remove
8436 parameter.
8437 (tui_source_window_base::refill): Update.
8438 * tui/tui-stack.h (struct tui_locator_window)
8439 <tui_locator_window>: Update.
8440 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
8441 Default the constructor.
8442 * tui/tui-regs.h (struct tui_data_item_window)
8443 <tui_data_item_window>: Default the constructor.
8444 (struct tui_data_window) <tui_data_window>: Likewise.
8445 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
8446 Default the constructor.
8447 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
8448 Default the constructor.
8449 <type>: Remove.
8450 (struct tui_win_info) <tui_win_info>: Default the constructor.
8451 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
8452 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
8453 Default the constructor.
8454
865a5aec
TT
84552020-02-22 Tom Tromey <tom@tromey.com>
8456
8457 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
8458 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
8459 * tui/tui-win.c (tui_resize_all): Don't call
8460 tui_delete_invisible_windows.
8461 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
8462 done.
8463 (tui_set_layout): Update.
8464 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
8465 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
8466 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
8467
e098d18c
TT
84682020-02-22 Tom Tromey <tom@tromey.com>
8469
8470 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
8471 correctly.
8472
eb9c8874
TT
84732020-02-22 Tom Tromey <tom@tromey.com>
8474
8475 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
8476
7eed1a8e
TT
84772020-02-22 Tom Tromey <tom@tromey.com>
8478
8479 * tui/tui-winsource.h (struct tui_source_window_iterator)
8480 <inner_iterator>: New etytypedef.
8481 <tui_source_window_iterator>: Take "end" parameter.
8482 <tui_source_window_iterator>: Take iterator.
8483 <operator*, advance>: Update.
8484 <m_iter>: Change type.
8485 <m_end>: New field.
8486 (struct tui_source_windows) <begin, end>: Update.
8487 * tui/tui-layout.c (tui_windows): New global.
8488 (tui_apply_current_layout): Clear tui_windows.
8489 (tui_layout_window::apply): Update tui_windows.
8490 * tui/tui-data.h (tui_windows): Declare.
8491 (all_tui_windows): Now inline function.
8492 (class tui_window_iterator, struct all_tui_windows): Remove.
8493
7c043ba6
TT
84942020-02-22 Tom Tromey <tom@tromey.com>
8495
8496 PR tui/17850:
8497 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
8498 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
8499 "height" argument.
8500 (class tui_layout_window) <get_sizes>: Likewise.
8501 (class tui_layout_split) <tui_layout_split>: Add "vertical"
8502 argument.
8503 <get_sizes>: Add "height" argument.
8504 <m_vertical>: New field.
8505 * tui/tui-layout.c (tui_layout_split::clone): Update.
8506 (tui_layout_split::get_sizes): Add "height" argument.
8507 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
8508 (tui_new_layout_command): Parse "-horizontal".
8509 (_initialize_tui_layout): Update help string.
8510 (tui_layout_split::specification): Add "-horizontal" when needed.
8511 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
8512 argument.
8513 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
8514 New methods.
8515
6bc56648
TT
85162020-02-22 Tom Tromey <tom@tromey.com>
8517
8518 * tui/tui-layout.h (enum tui_adjust_result): New.
8519 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
8520 (class tui_layout_window) <adjust_size>: Return
8521 tui_adjust_result. Rewrite.
8522 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
8523 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
8524
c22fef7e
TT
85252020-02-22 Tom Tromey <tom@tromey.com>
8526
8527 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
8528 parameter and return types.
8529 (class tui_layout_base) <specification>: Add "depth".
8530 (class tui_layout_window) <specification>: Add "depth".
8531 (class tui_layout_split) <specification>: Add "depth".
8532 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
8533 and return types.
8534 (tui_new_layout_command): Parse sub-layouts.
8535 (_initialize_tui_layout): Update help string.
8536 (tui_layout_window::specification): Add "depth".
8537 (add_layout_command): Update.
8538
ee325b61
TT
85392020-02-22 Tom Tromey <tom@tromey.com>
8540
8541 * NEWS: Add "tui new-layout" item.
8542 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
8543 Add new-layout command to help text.
8544 (validate_window_name): New function.
8545 (tui_new_layout_command): New function.
8546 (_initialize_tui_layout): Register "new-layout".
8547 (tui_layout_window::specification): New method.
8548 (tui_layout_window::specification): New method.
8549 * tui/tui-layout.h (class tui_layout_base) <specification>: New
8550 method.
8551 (class tui_layout_window) <specification>: New method.
8552 (class tui_layout_split) <specification>: New method.
8553
416eb92d
TT
85542020-02-22 Tom Tromey <tom@tromey.com>
8555
8556 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
8557 * tui/tui-win.c (window_name_completer): Update comment.
8558 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
8559 Declare method.
8560 (class tui_layout_window) <replace_window>: Likewise.
8561 (class tui_layout_split) <replace_window>: Likewise.
8562 (tui_set_layout): Don't declare.
8563 (tui_set_initial_layout): Declare function.
8564 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
8565 (asm_regs_layout): New globals.
8566 (tui_current_layout, show_layout): Remove.
8567 (tui_set_layout, tui_add_win_to_layout): Rewrite.
8568 (find_layout, tui_apply_layout): New function.
8569 (layout_completer): Remove.
8570 (tui_next_layout): Reimplement.
8571 (tui_next_layout_command): New function.
8572 (tui_set_initial_layout, tui_prev_layout_command): New functions.
8573 (tui_regs_layout): Reimplement.
8574 (tui_regs_layout_command): New function.
8575 (extract_display_start_addr): Rewrite.
8576 (next_layout, prev_layout): Remove.
8577 (tui_layout_window::replace_window): New method.
8578 (tui_layout_split::replace_window): New method.
8579 (destroy_layout): New function.
8580 (layout_list): New global.
8581 (add_layout_command): New function.
8582 (initialize_layouts): Update.
8583 (tui_layout_command): New function.
8584 (_initialize_tui_layout): Install "layout" commands.
8585 * tui/tui-data.h (enum tui_layout_type): Remove.
8586 (tui_current_layout): Don't declare.
8587
0dbc2fc7
TT
85882020-02-22 Tom Tromey <tom@tromey.com>
8589
8590 * tui/tui-regs.c (tui_reg_layout): Remove.
8591 (tui_reg_command): Use tui_regs_layout.
8592 * tui/tui-layout.h (tui_reg_command): Declare.
8593 * tui/tui-layout.c (tui_reg_command): New function.
8594
5afe342e
TT
85952020-02-22 Tom Tromey <tom@tromey.com>
8596
8597 * tui/tui.c (tui_rl_delete_other_windows): Call
8598 tui_remove_some_windows.
8599 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
8600 Declare method.
8601 (class tui_layout_window) <remove_windows>: New method.
8602 (class tui_layout_split) <remove_windows>: Declare.
8603 (tui_remove_some_windows): Declare.
8604 * tui/tui-layout.c (tui_remove_some_windows): New function.
8605 (tui_layout_split::remove_windows): New method.
8606
427326a8
TT
86072020-02-22 Tom Tromey <tom@tromey.com>
8608
8609 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
8610 * tui/tui-layout.h (tui_next_layout): Declare.
8611 * tui/tui-layout.c (tui_next_layout): New function.
8612
3fe12b6d
TT
86132020-02-22 Tom Tromey <tom@tromey.com>
8614
8615 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
8616 correct coordinates.
8617
59b8b5d2
TT
86182020-02-22 Tom Tromey <tom@tromey.com>
8619
8620 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
8621 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
8622 DATA_WIN case.
8623
2a3d458b
TT
86242020-02-22 Tom Tromey <tom@tromey.com>
8625
8626 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
8627 TUI_DISASM_WIN, not tui_win_list.
8628
3f0cbb04
TT
86292020-02-22 Tom Tromey <tom@tromey.com>
8630
8631 * valprint.c (generic_val_print_enum_1)
8632 (val_print_type_code_flags): Style member names.
8633 * rust-lang.c (val_print_struct, rust_print_enum)
8634 (rust_print_struct_def, rust_internal_print_type): Style member
8635 names.
8636 * p-valprint.c (pascal_object_print_value_fields): Style member
8637 names. Only call fprintf_symbol_filtered for static members.
8638 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
8639 * f-valprint.c (f_val_print): Style member names.
8640 * f-typeprint.c (f_type_print_base): Style member names.
8641 * cp-valprint.c (cp_print_value_fields): Style member names. Only
8642 call fprintf_symbol_filtered for static members.
8643 (cp_print_class_member): Style member names.
8644 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
8645 member names.
8646 * ada-valprint.c (ada_print_scalar): Style enum names.
8647 (ada_val_print_enum): Likewise.
8648 * ada-typeprint.c (print_enum_type): Style enum names.
8649
d4d947ae
TT
86502020-02-21 Tom Tromey <tom@tromey.com>
8651
8652 * psympriv.h (struct partial_symtab): Update comment.
8653
e94e944b
TT
86542020-02-21 Tom Tromey <tromey@adacore.com>
8655
8656 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
8657 type is CORE_ADDR.
8658
1eb73179
TV
86592020-02-21 Tom de Vries <tdevries@suse.de>
8660
8661 PR gdb/25534
8662 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
8663 if dependencies[i]->user != NULL.
8664
4f180d53
AT
86652020-02-21 Ali Tamur <tamur@google.com>
8666
8667 * dwarf2/read.c (dwarf2_name): Add null check.
8668
22b6cd70
TT
86692020-02-20 Tom Tromey <tom@tromey.com>
8670
8671 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
8672 ">=", in binary search.
8673 (dwarf2_find_containing_comp_unit): New overload.
8674 (run_test): New self-test.
8675 (_initialize_dwarf2_read): Register new test.
8676
bd0cf5a6
NC
86772020-02-20 Nelson Chu <nelson.chu@sifive.com>
8678
8679 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
8680 * riscv-tdep.h: Likewise.
8681 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
8682 rv32-only CSR.
8683 * features/riscv/64bit-csr.xml: Regenerated.
8684
3f702acd
SDJ
86852020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
8686 Tom Tromey <tom@tromey.com>
8687
8688 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
8689 of 'fputc_unfiltered'.
8690 (putchar_unfiltered): Call 'fputc_unfiltered'.
8691 (fputc_unfiltered): Call 'fputs_unfiltered'.
8692
d13c7322
AB
86932020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
8694
8695 * config.in: Regenerate.
8696 * configure: Regenerate.
8697 * configure.ac: Add --with-python-libdir option.
8698 * main.c: Use WITH_PYTHON_LIBDIR.
8699
869d8950
TT
87002020-02-19 Tom Tromey <tom@tromey.com>
8701
8702 * symtab.c (general_symbol_info::compute_and_set_names): Use
8703 obstack_strndup. Simplify call to symbol_set_demangled_name.
8704
298e9637
SM
87052020-02-19 Simon Marchi <simon.marchi@efficios.com>
8706
8707 * dwarf2/read.c (allocate_signatured_type_table,
8708 allocate_dwo_unit_table, allocate_type_unit_groups_table,
8709 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
8710 Remove objfile parameter, update all callers.
8711
08410482
DE
87122020-02-19 Doug Evans <dje@google.com>
8713
8714 PR rust/25535
8715 * rust-lang.c (rust_print_enum): Apply embedded_offset to
8716 rust_enum_variant calculation.
8717
dfdeeca1
TT
87182020-02-19 Tom Tromey <tromey@adacore.com>
8719
8720 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
8721
2ef5453b
TT
87222020-02-19 Tom Tromey <tromey@adacore.com>
8723
8724 * ada-lang.c (cache_symbol): Use obstack_strdup.
8725
9f1528a1
AB
87262020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
8727
8728 * configure: Regenerate.
8729
d3c22fa8
TT
87302020-02-19 Tom Tromey <tromey@adacore.com>
8731
8732 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
8733 NULL check.
8734
bf84f706
MR
87352020-02-19 Maciej W. Rozycki <macro@wdc.com>
8736
8737 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
8738
d1c9b20f
AB
87392020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
8740
8741 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
8742 if GDBSERVER is not defined.
8743 (riscv_tdesc_cache): Likewise, also store const target_desc.
8744 (STATIC_IN_GDB): Define.
8745 (riscv_create_target_description): Update declaration with
8746 STATIC_IN_GDB.
8747 (riscv_lookup_target_description): New function, only define if
8748 GDBSERVER is not defined.
8749 * arch/riscv.h (riscv_create_target_description): Declare only
8750 when GDBSERVER is defined.
8751 (riscv_lookup_target_description): New declaration when GDBSERVER
8752 is not defined.
8753 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
8754 (riscv_linux_read_features): ...this, and return
8755 riscv_gdbarch_features instead of target_desc.
8756 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
8757 (riscv_linux_read_description): Rename to...
8758 (riscv_linux_read_features): ...this.
8759 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
8760 Update to use riscv_gdbarch_features and
8761 riscv_lookup_target_description.
8762 * riscv-tdep.c (riscv_find_default_target_description): Use
8763 riscv_lookup_target_description instead of
8764 riscv_create_target_description.
8765
373d7ac0
SM
87662020-02-18 Simon Marchi <simon.marchi@efficios.com>
8767
8768 * valprint.c (generic_val_print_enum_1): When printing a flag
8769 enum with value 0 and there is no enumerator with value 0, print
8770 just "0" instead of "(unknown: 0x0)".
8771
b29a2df0
SM
87722020-02-18 Simon Marchi <simon.marchi@efficios.com>
8773
8774 * valprint.c (generic_val_print_enum_1): Print unknown part of
8775 flag enum in hex.
8776
6740f0cc
SM
87772020-02-18 Simon Marchi <simon.marchi@efficios.com>
8778
8779 * dwarf2/read.c (update_enumeration_type_from_children): Allow
8780 flag enums to contain duplicate enumerators.
8781 * valprint.c (generic_val_print_enum_1): Update comment.
8782
edd45eb0
SM
87832020-02-18 Simon Marchi <simon.marchi@efficios.com>
8784
8785 * dwarf2/read.c: Include "count-one-bits.h".
8786 (update_enumeration_type_from_children): If an enumerator has
8787 multiple bits set, don't treat the enumeration as a "flag enum".
8788 * valprint.c (generic_val_print_enum_1): Assert that enumerators
8789 of flag enums have 0 or 1 bit set.
8790
6d0cf446
BE
87912020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
8792
8793 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
8794 conversion.
8795 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8796 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
8797 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8798 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
8799 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8800
7001c1b7
SM
88012020-02-18 Simon Marchi <simon.marchi@efficios.com>
8802
8803 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
8804
fdb61c6c
SM
88052020-02-14 Simon Marchi <simon.marchi@efficios.com>
8806
8807 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
8808 displaced_step_closure_up.
8809 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
8810 (struct displaced_step_closure_up):
8811 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8812 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
8813 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
8814 Likewise.
8815 * gdbarch.sh (displaced_step_copy_insn): Likewise.
8816 * gdbarch.c, gdbarch.h: Re-generate.
8817 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
8818 displaced_step_closure_up.
8819 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8820 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
8821 * infrun.h (displaced_step_closure_up): New type alias.
8822 (struct displaced_step_inferior_state) <step_closure>: Change
8823 type to displaced_step_closure_up.
8824 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
8825 displaced_step_closure_up.
8826 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8827
a4a38eb4
TT
88282020-02-14 Tom Tromey <tom@tromey.com>
8829
8830 * minidebug.c (gnu_debug_key): New global.
8831 (find_separate_debug_file_in_section): Use it.
8832
e8217e61
SM
88332020-02-14 Simon Marchi <simon.marchi@efficios.com>
8834
8835 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
8836 std::unique_ptr.
8837 * gdbarch.c: Re-generate.
8838 * gdbarch.h: Re-generate.
8839 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
8840 change.
8841 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
8842 type to std::unique_ptr.
8843 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
8844 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8845 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
8846 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
8847 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
8848 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8849 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
8850 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
8851 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8852
d8d83535
SM
88532020-02-14 Simon Marchi <simon.marchi@efficios.com>
8854
8855 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
8856 std::unique_ptr.
8857 (displaced_step_clear): Rename to...
8858 (displaced_step_reset): ... this. Just call displaced->reset ().
8859 (displaced_step_clear_cleanup): Rename to...
8860 (displaced_step_reset_cleanup): ... this.
8861 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
8862 (displaced_step_fixup): Likewise.
8863 (resume_1): Likewise.
8864 (handle_inferior_event): Restore child's memory before calling
8865 displaced_step_fixup on the parent.
8866 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
8867 to std::unique_ptr.
8868 <step_closure>: Change type to std::unique_ptr.
8869
5f661e03
SM
88702020-02-14 Simon Marchi <simon.marchi@efficios.com>
8871
8872 * arm-tdep.c: Include count-one-bits.h.
8873 (cleanup_block_store_pc): Use count_one_bits.
8874 (cleanup_block_load_pc): Use count_one_bits.
8875 (arm_copy_block_xfer): Use count_one_bits.
8876 (thumb2_copy_block_xfer): Use count_one_bits.
8877 (thumb_copy_pop_pc_16bit): Use count_one_bits.
8878 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
8879 (thumb_get_next_pcs_raw): Use count_one_bits.
8880 (arm_get_next_pcs_raw): Use count_one_bits_l.
8881 * arch/arm.c (bitcount): Remove.
8882 * arch/arm.h (bitcount): Remove.
8883
8084e579
TT
88842020-02-14 Tom Tromey <tromey@adacore.com>
8885
8886 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
8887 Update.
8888 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
8889 * dwarf2/loc.c (call_site_find_chain_1): Return
8890 unique_xmalloc_ptr.
8891 (call_site_find_chain): Likewise.
8892
258bf0ee
RB
88932020-02-14 Richard Biener <rguenther@suse.de>
8894
8895 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
8896 on expression with division operators.
8897
f98a8458
AKS
88982020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8899
8900 * MAINTAINERS (Write After Approval): Adding myself.
8901
d1437c0e
TT
89022020-02-12 Tom Tromey <tom@tromey.com>
8903
8904 * event-loop.c (event_data, gdb_event, event_handler_func):
8905 Remove.
8906
3d4560f7
TT
89072020-02-12 Tom Tromey <tom@tromey.com>
8908
8909 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
8910 (dwarf2_frame_objfile_data): Add comment.
8911 (find_comp_unit, set_comp_unit): New functions.
8912 (dwarf2_frame_find_fde): Use find_comp_unit.
8913 (dwarf2_build_frame_info): Use set_comp_unit.
8914
21982304
TT
89152020-02-12 Tom Tromey <tom@tromey.com>
8916
8917 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
8918 (comp_unit): Don't initialize objfile.
8919 (execute_cfa_program): Add text_offset parameter.
8920 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
8921 (dwarf2_frame_cache): Update.
8922 (dwarf2_build_frame_info): Don't set "objfile" member.
8923
4debb237
TT
89242020-02-12 Tom Tromey <tom@tromey.com>
8925
8926 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
8927 (decode_frame_entry): Likewise.
8928 (dwarf2_build_frame_info): Update.
8929
0d404d44
TT
89302020-02-12 Tom Tromey <tom@tromey.com>
8931
8932 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
8933 (decode_frame_entry_1): Use the comp_unit obstack.
8934
a7a3ae5c
TT
89352020-02-12 Tom Tromey <tom@tromey.com>
8936
8937 * dwarf2/frame.c (struct comp_unit): Add initializers and
8938 constructor.
8939 (dwarf2_frame_objfile_data): Store a comp_unit.
8940 (dwarf2_frame_find_fde): Update.
8941 (dwarf2_build_frame_info): Use "new".
8942
a9d65418
TT
89432020-02-12 Tom Tromey <tom@tromey.com>
8944
8945 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
8946 (dwarf2_fde_table): Typedef for std::vector.
8947 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
8948 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
8949 (decode_frame_entry): Update.
8950 (dwarf2_build_frame_info): Use "new".
8951
7559c217
CB
89522020-02-12 Christian Biesinger <cbiesinger@google.com>
8953
8954 * arm-tdep.c (arm_gdbarch_init): Update.
8955 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
8956 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
8957 have_neon, is_m>: Change to bool.
8958
aeefc73c
CB
89592020-02-12 Christian Biesinger <cbiesinger@google.com>
8960
8961 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
8962
d27b8e5f
TT
89632020-02-12 Tom Tromey <tom@tromey.com>
8964
8965 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
8966
cd5900f3
HD
89672020-02-12 Hannes Domani <ssbssa@yahoo.de>
8968
8969 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
8970 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
8971
f056b22b
TT
89722020-02-11 Tom Tromey <tom@tromey.com>
8973
8974 * psymtab.h: Update comment.
8975
f92ff6b5
TT
89762020-02-11 Tom Tromey <tom@tromey.com>
8977
8978 * gdb_obstack.h (struct auto_obstack): Use
8979 DISABLE_COPY_AND_ASSIGN.
8980
3fd6912b
TT
89812020-02-11 Tom Tromey <tom@tromey.com>
8982
8983 * dwarf2/frame.h (struct objfile): Don't forward declare.
8984
69ed9b74
CB
89852020-02-11 Christian Biesinger <cbiesinger@google.com>
8986
8987 * cris-tdep.c (cris_supply_gregset): Change signature to match
8988 what struct regset expects.
8989 (cris_regset): New struct.
8990 (fetch_core_registers): Remove.
8991 (cris_iterate_over_regset_sections): New function.
8992 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
8993 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
8994
bda874f6
CB
89952020-02-11 Christian Biesinger <cbiesinger@google.com>
8996
8997 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
8998 registers.
8999
754e1564
CB
90002020-02-11 Christian Biesinger <cbiesinger@google.com>
9001
9002 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
9003
8ddd8e0e
SM
90042020-02-11 Simon Marchi <simon.marchi@efficios.com>
9005
9006 * configure: Re-generate.
9007
898e7f60
SM
90082020-02-11 Simon Marchi <simon.marchi@efficios.com>
9009
9010 * configure: Re-generate.
9011
58df732b
SM
90122020-02-11 Simon Marchi <simon.marchi@efficios.com>
9013
9014 * acinclude: Update warning.m4 path.
9015 * warning.m4: Move to gdbsupport.
9016
da5bd37e
TT
90172020-02-11 Tom Tromey <tromey@adacore.com>
9018
9019 * remote.c (remote_console_output): Update.
9020 * printcmd.c (printf_command): Update.
9021 * event-loop.c (gdb_wait_for_event): Update.
9022 * linux-nat.c (sigchld_handler): Update.
9023 * remote-sim.c (gdb_os_write_stdout): Update.
9024 (gdb_os_flush_stdout): Update.
9025 (gdb_os_flush_stderr): Update.
9026 (gdb_os_write_stderr): Update.
9027 * exceptions.c (print_exception): Update.
9028 * remote-fileio.c (remote_fileio_func_read): Update.
9029 (remote_fileio_func_write): Update.
9030 * tui/tui.c (tui_enable): Update.
9031 * tui/tui-interp.c (tui_interp::init): Update.
9032 * utils.c (init_page_info): Update.
9033 (putchar_unfiltered, fputc_unfiltered): Update.
9034 (gdb_flush): Update.
9035 (emit_style_escape): Update.
9036 (flush_wrap_buffer, fputs_maybe_filtered): Update.
9037 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
9038 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
9039 (stderr_file::write): Update.
9040 (stderr_file::puts): Update.
9041 * ui-file.h (ui_file_isatty, ui_file_write)
9042 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
9043 (ui_file_puts): Don't declare.
9044
85f0dd3c
TV
90452020-02-10 Tom de Vries <tdevries@suse.de>
9046
9047 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
9048 sentinel to char *.
9049
2e927613
TV
90502020-02-09 Tom de Vries <tdevries@suse.de>
9051
9052 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
9053 filename if it matches "<artificial>".
9054
6bafc845
HD
90552020-02-09 Hannes Domani <ssbssa@yahoo.de>
9056
9057 * windows-tdep.c (struct enum_value_name): New struct.
9058 (create_enum): New function.
9059 (windows_get_siginfo_type): Create and use enum types.
9060
7928d571
HD
90612020-02-09 Hannes Domani <ssbssa@yahoo.de>
9062
9063 * NEWS: Mention $_siginfo support for Windows.
9064 * windows-nat.c (handle_exception): Set siginfo_er.
9065 (windows_nat_target::mourn_inferior): Reset siginfo_er.
9066 (windows_xfer_siginfo): New function.
9067 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
9068 * windows-tdep.c (struct windows_gdbarch_data): New struct.
9069 (init_windows_gdbarch_data): New function.
9070 (get_windows_gdbarch_data): New function.
9071 (windows_get_siginfo_type): New function.
9072 (windows_init_abi): Register windows_get_siginfo_type.
9073 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
9074
6751ebae
TT
90752020-02-08 Tom Tromey <tom@tromey.com>
9076
9077 * dwarf2/read.c (class cutu_reader) <cutu_reader,
9078 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
9079 <keep>: Declare method.
9080 <m_keep>: Remove member.
9081 <~cutu_reader>: Remove.
9082 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9083 (cutu_reader::cutu_reader): Update.
9084 (cutu_reader::keep): Rename from ~cutu_reader.
9085 (process_psymtab_comp_unit, build_type_psymtabs_1)
9086 (process_skeletonless_type_unit, load_partial_comp_unit)
9087 (load_full_comp_unit, dwarf2_read_addr_index)
9088 (read_signatured_type): Update.
9089
135f5437
TT
90902020-02-08 Tom Tromey <tom@tromey.com>
9091
9092 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
9093 "want_partial_unit" parameter.
9094 (process_psymtab_comp_unit): Change want_partial_unit to bool.
9095 Inline check for DW_TAG_partial_unit.
9096 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
9097
9f66ff1c
TT
90982020-02-08 Tom Tromey <tom@tromey.com>
9099
9100 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
9101 read.c.
9102 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
9103 read.c.
9104
c8a7a66f
TT
91052020-02-08 Tom Tromey <tom@tromey.com>
9106
9107 * dwarf2/read.c (read_address): Move to comp-unit.c.
9108 (dwarf2_rnglists_process, dwarf2_ranges_process)
9109 (read_attribute_value, dwarf_decode_lines_1)
9110 (var_decode_location, decode_locdesc): Update.
9111 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
9112 read.c. Remove "cu" parameter.
9113 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
9114 method.
9115
8266302d
TT
91162020-02-08 Tom Tromey <tom@tromey.com>
9117
9118 * dwarf2/read.c (read_attribute_value, read_indirect_string)
9119 (read_indirect_line_string): Update.
9120 * dwarf2/comp-unit.c (read_offset): Remove.
9121 (read_comp_unit_head): Update.
9122 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
9123 method.
9124 (read_offset): Don't declare.
9125
4057dfde
TT
91262020-02-08 Tom Tromey <tom@tromey.com>
9127
9128 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
9129 * dwarf2/read.c (struct comp_unit_head): Move to
9130 dwarf2/comp-unit.h.
9131 (enum class rcuh_kind): Move to comp-unit.h.
9132 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
9133 (read_comp_unit_head, error_check_comp_unit_head)
9134 (read_and_check_comp_unit_head): Move to comp-unit.c.
9135 (read_offset, dwarf_unit_type_name): Likewise.
9136 (create_debug_type_hash_table, read_cutu_die_from_dwo)
9137 (cutu_reader::cutu_reader, read_call_site_scope)
9138 (find_partial_die, follow_die_offset): Update.
9139 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
9140
24aa364d
TT
91412020-02-08 Tom Tromey <tom@tromey.com>
9142
9143 * dwarf2/read.c (read_offset_1): Move to leb.c.
9144 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
9145 (dwarf_decode_macro_bytes): Update.
9146 * dwarf2/leb.c (read_offset): Rename; move from read.c.
9147 * dwarf2/leb.h (read_offset): Declare.
9148
2c7d5afc
TT
91492020-02-08 Tom Tromey <tom@tromey.com>
9150
9151 * dwarf2/read.c (dwarf2_section_size): Remove.
9152 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
9153 Update.
9154 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
9155
4075cb26
TT
91562020-02-08 Tom Tromey <tom@tromey.com>
9157
9158 * dwarf2/read.c (read_initial_length): Move to leb.c.
9159 * dwarf2/leb.h (read_initial_length): Declare.
9160 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
9161 handle_nonstd parameter.
9162 * dwarf2/frame.c (read_initial_length): Remove.
9163 (decode_frame_entry_1): Update.
9164
09ba997f
TT
91652020-02-08 Tom Tromey <tom@tromey.com>
9166
9167 * dwarf2/loc.c (dwarf2_find_location_expression)
9168 (dwarf_evaluate_loc_desc::get_tls_address)
9169 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
9170 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
9171 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
9172 (dwarf2_compile_property_to_c)
9173 (dwarf2_loc_desc_get_symbol_read_needs)
9174 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
9175 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
9176 (loclist_describe_location, loclist_tracepoint_var_ref)
9177 (loclist_generate_c_location): Update.
9178 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
9179 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
9180 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
9181 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
9182 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
9183 (dwarf2_per_cu_data::addr_size)
9184 (dwarf2_per_cu_data::ref_addr_size)
9185 (dwarf2_per_cu_data::text_offset)
9186 (dwarf2_per_cu_data::addr_type): Now methods.
9187 (per_cu_header_read_in): Make per_cu "const".
9188 (dwarf2_version): Remove.
9189 (dwarf2_per_cu_data::int_type): Now a method.
9190 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
9191 (set_die_type, read_array_type, read_subrange_index_type)
9192 (read_tag_string_type, read_subrange_type): Update.
9193 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
9194 offset_size, ref_addr_size, text_offset, addr_type, version,
9195 objfile, int_type, addr_sized_int_type>: Declare methods.
9196
96c738c0
TT
91972020-02-08 Tom Tromey <tom@tromey.com>
9198
9199 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
9200 Move earlier.
9201
8fdd972c
TT
92022020-02-08 Tom Tromey <tom@tromey.com>
9203
9204 * dwarf2/read.h (dwarf_line_debug): Declare.
9205 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
9206 * dwarf2/read.c: Move line_header code to new files.
9207 (dwarf_line_debug): No longer static.
9208 * dwarf2/line-header.c: New file.
9209 * dwarf2/line-header.h: New file.
9210
03075812
TT
92112020-02-08 Tom Tromey <tom@tromey.com>
9212
9213 * dwarf2/read.c (struct line_header) <file_full_name,
9214 file_file_name>: Return unique_xmalloc_ptr.
9215 (line_header::file_file_name): Update.
9216 (line_header::file_full_name): Update.
9217 (dw2_get_file_names_reader): Update.
9218 (macro_start_file): Update.
9219
bb822404
TT
92202020-02-08 Tom Tromey <tom@tromey.com>
9221
9222 * dwarf2/read.c (struct line_header) <file_full_name,
9223 file_file_name>: Declare methods.
9224 (dw2_get_file_names_reader): Update.
9225 (file_file_name): Now a method.
9226 (file_full_name): Likewise.
9227 (macro_start_file): Update.
9228
009b64fc
TT
92292020-02-08 Tom Tromey <tom@tromey.com>
9230
9231 * dwarf2/read.c (dwarf_always_disassemble)
9232 (show_dwarf_always_disassemble): Move to loc.c.
9233 (_initialize_dwarf2_read): Move "always-disassemble" registration
9234 to loc.c.
9235 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
9236 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
9237 static.
9238 (show_dwarf_always_disassemble): Move from read.c.
9239 (_initialize_dwarf2loc): Move always-disassemble from read.c.
9240
5895093f
TT
92412020-02-08 Tom Tromey <tom@tromey.com>
9242
9243 * dwarf2/read.c (~dwarf2_per_objfile): Update.
9244 (create_quick_file_names_table): Return htab_up.
9245 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
9246 Update.
9247 * dwarf2/read.h (struct dwarf2_per_objfile)
9248 <quick_file_names_table>: Now htab_up.
9249
b3b32279
TT
92502020-02-08 Tom Tromey <tom@tromey.com>
9251
9252 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
9253
1d33d811
TT
92542020-02-08 Tom Tromey <tom@tromey.com>
9255
9256 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
9257 Rewrite.
9258 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
9259 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
9260 (abbrev_table::abbrev_table): No longer inline.
9261 (ABBREV_HASH_SIZE): Remove.
9262 (abbrev_table::m_abbrevs): Now an htab_up.
9263
86de1d91
TT
92642020-02-08 Tom Tromey <tom@tromey.com>
9265
9266 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
9267 (cutu_reader): Update.
9268 (build_type_psymtabs_1): Update.
9269 * dwarf2/abbrev.c (abbrev_table::read): Rename.
9270 (abbrev_table::alloc_abbrev): Update.
9271 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
9272 (abbrev_table::read): New static method, renamed from
9273 abbrev_table_read_table.
9274 (abbrev_table::alloc_abbrev)
9275 (abbrev_table::add_abbrev): Now private.
9276 (abbrev_table::abbrev_table): Now private.
9277 (abbrev_table::m_abbrev_obstack): Now private. Rename.
9278
0335378b
TT
92792020-02-08 Tom Tromey <tom@tromey.com>
9280
9281 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
9282 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
9283 htab_up.
9284
48b490f2
TT
92852020-02-08 Tom Tromey <tom@tromey.com>
9286
9287 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
9288 htab_up.
9289 (lookup_dwo_unit_in_dwp): Update.
9290 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
9291 on obstack.
9292
bc68fb19
TT
92932020-02-08 Tom Tromey <tom@tromey.com>
9294
9295 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
9296 obstack.
9297
d15acc42
TT
92982020-02-08 Tom Tromey <tom@tromey.com>
9299
9300 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
9301 line_header_hash.
9302 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
9303 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
9304 Change type to htab_up.
9305
eaa5fa8b
TT
93062020-02-08 Tom Tromey <tom@tromey.com>
9307
9308 * dwarf2/read.c (allocate_type_unit_groups_table): Return
9309 htab_up. Don't allocate on obstack.
9310 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
9311 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
9312 Change type to htab_up.
9313
b0b6a987
TT
93142020-02-08 Tom Tromey <tom@tromey.com>
9315
9316 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
9317 Change type to htab_up.
9318 * dwarf2/read.c (create_signatured_type_table_from_index)
9319 (create_signatured_type_table_from_debug_names)
9320 (create_all_type_units, add_type_unit)
9321 (lookup_dwo_signatured_type, lookup_signatured_type)
9322 (process_skeletonless_type_unit): Update.
9323 (create_debug_type_hash_table, create_debug_types_hash_table):
9324 Change type of types_htab.
9325 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
9326 htab_up. Don't allocate on obstack.
9327 (create_cus_hash_table): Change type of cus_htab parameter.
9328 (struct dwo_file) <cus, tus>: Now htab_up.
9329 (lookup_dwo_signatured_type, lookup_dwo_cutu)
9330 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
9331 (queue_and_load_all_dwo_tus): Update.
9332 * dwarf2/index-write.c (write_gdbindex): Update.
9333 (write_debug_names): Update.
9334
39856def
TT
93352020-02-08 Tom Tromey <tom@tromey.com>
9336
9337 * dwarf2/read.h (struct dwarf2_queue_item): Move from
9338 dwarf2/read.c. Remove "next" member. Add constructor ntad
9339 destructor.
9340 (struct dwarf2_per_objfile) <queue>: New member.
9341 * dwarf2/read.c (struct dwarf2_queue_item): Move to
9342 dwarf2/read.h.
9343 (dwarf2_queue, dwarf2_queue_tail): Remove.
9344 (class dwarf2_queue_guard): Add parameter to constructor. Use
9345 DISABLE_COPY_AND_ASSIGN.
9346 <m_per_objfile>: New member.
9347 <~dwarf2_queue_guard>: Rewrite.
9348 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
9349 Update.
9350 (~dwarf2_queue_item): New.
9351
3e225074
TT
93522020-02-08 Tom Tromey <tom@tromey.com>
9353
9354 * dwarf2/read.c (struct die_info) <has_children>: New member.
9355 (dw2_get_file_names_reader): Remove has_children.
9356 (dw2_get_file_names): Update.
9357 (read_cutu_die_from_dwo): Remove has_children.
9358 (cutu_reader::init_tu_and_read_dwo_dies)
9359 (cutu_reader::cutu_reader): Update.
9360 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
9361 Remove has_children.
9362 (build_type_psymtabs_1, process_skeletonless_type_unit)
9363 (load_partial_comp_unit, load_full_comp_unit): Update.
9364 (create_dwo_cu_reader): Remove has_children.
9365 (create_cus_hash_table, read_die_and_children): Update.
9366 (read_full_die_1,read_full_die): Remove has_children.
9367 (read_signatured_type): Update.
9368 (class cutu_reader) <has_children>: Remove.
9369
82ca8957
TT
93702020-02-08 Tom Tromey <tom@tromey.com>
9371
9372 * dwarf2/expr.c: Rename from dwarf2expr.c.
9373 * dwarf2/expr.h: Rename from dwarf2expr.h.
9374 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
9375 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
9376 * dwarf2/frame.c: Rename from dwarf2-frame.c.
9377 * dwarf2/frame.h: Rename from dwarf2-frame.h.
9378 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
9379 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
9380 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
9381 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
9382 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
9383 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
9384 * dwarf2/loc.c: Rename from dwarf2loc.c.
9385 * dwarf2/loc.h: Rename from dwarf2loc.h.
9386 * dwarf2/read.c: Rename from dwarf2read.c.
9387 * dwarf2/read.h: Rename from dwarf2read.h.
9388 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
9389 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
9390 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
9391 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
9392 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
9393 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
9394 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
9395 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
9396 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
9397 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
9398 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
9399 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
9400 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
9401 Update.
9402 * Makefile.in (COMMON_SFILES): Update.
9403 (HFILES_NO_SRCDIR): Update.
9404
9e35d499
TT
94052020-02-08 Tom Tromey <tom@tromey.com>
9406
9407 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
9408 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
9409
1eba2311
TT
94102020-02-08 Tom Tromey <tom@tromey.com>
9411
9412 * dwarf2read.h (struct die_info): Don't declare.
9413
e41c2da2
TT
94142020-02-08 Tom Tromey <tom@tromey.com>
9415
9416 * dwarf2read.h (die_info_ptr): Remove typedef.
9417
4fc6c0d5
TT
94182020-02-08 Tom Tromey <tom@tromey.com>
9419
9420 * dwarf2read.c (read_call_site_scope)
9421 (handle_data_member_location, dwarf2_add_member_fn)
9422 (mark_common_block_symbol_computed, read_common_block)
9423 (attr_to_dynamic_prop, partial_die_info::read)
9424 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
9425 (dwarf2_symbol_mark_computed, set_die_type): Update.
9426 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
9427 method.
9428 (attr_form_is_block): Don't declare.
9429 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
9430
cd6c91b4
TT
94312020-02-08 Tom Tromey <tom@tromey.com>
9432
9433 * dwarf2read.c (dwarf2_find_base_address, )
9434 (read_call_site_scope, rust_containing_type)
9435 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
9436 (handle_data_member_location, dwarf2_add_member_fn)
9437 (get_alignment, read_structure_type, process_structure_scope)
9438 (mark_common_block_symbol_computed, read_common_block)
9439 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
9440 (partial_die_info::read, read_attribute_value, new_symbol)
9441 (lookup_die_type, dwarf2_get_ref_die_offset)
9442 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
9443 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
9444 (dwarf2_symbol_mark_computed): Update.
9445 * dwarf2/attribute.h (struct attribute) <value_as_address,
9446 form_is_section_offset, form_is_constant, form_is_ref>: Declare
9447 methods.
9448 (value_as_address, attr_form_is_section_offset)
9449 (attr_form_is_constant, attr_form_is_ref): Don't declare.
9450 * dwarf2/attribute.c (attribute::value_as_address)
9451 (attribute::form_is_section_offset, attribute::form_is_constant)
9452 (attribute::form_is_ref): Now methods.
9453
162dce55
TT
94542020-02-08 Tom Tromey <tom@tromey.com>
9455
9456 * dwarf2read.c (struct attribute, DW_STRING)
9457 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
9458 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
9459 (attr_form_is_block, attr_form_is_section_offset)
9460 (attr_form_is_constant, attr_form_is_ref): Move.
9461 * dwarf2/attribute.h: New file.
9462 * dwarf2/attribute.c: New file, from dwarf2read.c.
9463 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
9464
3054dd54
TT
94652020-02-08 Tom Tromey <tom@tromey.com>
9466
9467 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
9468 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
9469 Move.
9470 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
9471 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
9472 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
9473 abbrev.c.
9474 * dwarf2/abbrev.h: New file.
9475 * dwarf2/abbrev.c: New file, from dwarf2read.c.
9476 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
9477
96b79293
TT
94782020-02-08 Tom Tromey <tom@tromey.com>
9479
9480 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
9481 (dwarf2_section_size, dwarf2_get_section_info)
9482 (create_signatured_type_table_from_debug_names)
9483 (create_addrmap_from_aranges, read_debug_names_from_section)
9484 (get_gdb_index_contents_from_section, read_comp_unit_head)
9485 (error_check_comp_unit_head, read_abbrev_offset)
9486 (create_debug_type_hash_table, init_cu_die_reader)
9487 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
9488 (read_comp_units_from_section, create_cus_hash_table)
9489 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
9490 (create_dwp_v2_section, dwarf2_rnglists_process)
9491 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
9492 (abbrev_table_read_table, read_indirect_string_at_offset_from)
9493 (read_indirect_string_from_dwz, read_addr_index_1)
9494 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
9495 (dwarf_decode_macro_bytes, dwarf_decode_macros)
9496 (fill_in_loclist_baton): Update.
9497 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
9498 get_containing_section, get_bfd_owner, get_bfd_section,
9499 get_file_name, get_id, get_flags, empty, read>: Declare methods.
9500 (dwarf2_read_section, get_section_name, get_section_file_name)
9501 (get_containing_section, get_section_bfd_owner)
9502 (get_section_bfd_section, get_section_name, get_section_file_name)
9503 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
9504 declare.
9505 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
9506 (dwarf2_section_info::get_bfd_owner)
9507 (dwarf2_section_info::get_bfd_section)
9508 (dwarf2_section_info::get_name)
9509 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
9510 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
9511 (dwarf2_section_info::read): Now methods.
9512 * dwarf-index-write.c (class debug_names): Update.
9513
2c86cff9
TT
95142020-02-08 Tom Tromey <tom@tromey.com>
9515
9516 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
9517 Move to dwarf2/section.h.
9518 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
9519 (get_section_bfd_section, get_section_name)
9520 (get_section_file_name, get_section_id, get_section_flags)
9521 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
9522 dwarf2/section.c.
9523 * dwarf2/section.h: New file.
9524 * dwarf2/section.c: New file, from dwarf2read.c.
9525 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
9526
f4382c45
TT
95272020-02-08 Tom Tromey <tom@tromey.com>
9528
9529 * dwarf2read.h (read_unsigned_leb128): Don't declare.
9530 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
9531 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
9532 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
9533 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
9534 * dwarf2/leb.h: New file, from dwarf2read.c.
9535 * dwarf2/leb.c: New file, from dwarf2read.c.
9536 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
9537 Remove.
9538 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
9539 (COMMON_SFILES): Add dwarf2/leb.c.
9540
01840b7a
JB
95412020-02-08 Joel Brobecker <brobecker@adacore.com>
9542
9543 GDB 9.1 released.
9544
dfcb27e4
IB
95452020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9546
9547 PR gdb/25190:
aac66a4c
SM
9548 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
9549 * gdb/remote.c (remote_console_output): Update.
9550 * gdb/ui-file.c (fputs_unfiltered): Rename to...
9551 (ui_file_puts): ...this.
9552 * gdb/ui-file.h (ui_file_puts): Add declaration.
9553 * gdb/utils.c (emit_style_escape): Update.
9554 (flush_wrap_buffer): Update.
9555 (fputs_maybe_filtered): Update.
9556 (fputs_unfiltered): Add function.
dfcb27e4 9557
faa17681
IB
95582020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9559
aac66a4c
SM
9560 * gdb/event-loop.c (gdb_wait_for_event): Update.
9561 * gdb/printcmd.c (printf_command): Update.
9562 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
9563 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
9564 (gdb_os_flush_stderr): Update.
9565 * gdb/remote.c (remote_console_output): Update.
9566 * gdb/ui-file.c (gdb_flush): Rename to...
9567 (ui_file_flush): ...this.
9568 (stderr_file::write): Update.
9569 (stderr_file::puts): Update.
9570 * gdb/ui-file.h (gdb_flush): Rename to...
9571 (ui_file_flush): ...this.
9572 * gdb/utils.c (gdb_flush): Add function.
9573 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 9574
5abbbe1d
TT
95752020-02-07 Tom Tromey <tromey@adacore.com>
9576
9577 PR breakpoints/24915:
9578 * source.c (find_and_open_source): Do not check basenames_may_differ.
9579
919adfe8
TT
95802020-02-07 Tom Tromey <tom@tromey.com>
9581
9582 * README: Update gdbserver documentation.
9583 * gdbserver: Move to top level.
9584 * configure.tgt (build_gdbserver): Remove.
9585 * configure.ac: Remove --enable-gdbserver.
9586 * configure: Rebuild.
9587 * Makefile.in (distclean): Don't mention gdbserver.
9588
1d5d29e7
SV
95892020-02-06 Shahab Vahedi <shahab@synopsys.com>
9590
9591 * source-cache.c (source_cache::ensure): Surround
9592 get_plain_source_lines with a try/catch.
9593 (source_cache::get_line_charpos): Get rid of try/catch
9594 and only check for the return value of "ensure".
9595 * tui/tui-source.c (tui_source_window::set_contents):
9596 Simplify "nlines" calculation.
9597
6eb1129c
SV
95982020-02-06 Shahab Vahedi <shahab@synopsys.com>
9599
9600 * MAINTAINERS (Write After Approval): Add myself.
9601
c6a42d11
CB
96022020-02-05 Christian Biesinger <cbiesinger@google.com>
9603
9604 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
9605 function call.
9606
c8ecdda6
CB
96072020-02-05 Christian Biesinger <cbiesinger@google.com>
9608
9609 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
9610
f6480e70
MR
96112020-02-05 Maciej W. Rozycki <macro@wdc.com>
9612
9613 * nat/riscv-linux-tdesc.h: New file.
9614 * nat/riscv-linux-tdesc.c: New file, taking code from...
9615 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9616 ... here.
9617 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
9618 NATDEPFILES.
9619
dcc9fbc6
AB
96202020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
9621
9622 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
9623 we don't set the fake simulator ptid to the null_ptid.
9624
719546c4
SM
96252020-02-03 Simon Marchi <simon.marchi@efficios.com>
9626
9627 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
9628 * gdbthread.h (class thread_info) <resumed>: Likewise.
9629 * infrun.c (resume_1): Likewise.
9630 (proceed): Likewise.
9631 (infrun_thread_stop_requested): Likewise.
9632 (stop_all_threads): Likewise.
9633 (handle_inferior_event): Likewise.
9634 (restart_threads): Likewise.
9635 (finish_step_over): Likewise.
9636 (keep_going_stepped_thread): Likewise.
9637 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
9638 (linux_handle_extended_wait): Likewise.
9639 * record-btrace.c (get_thread_current_frame_id): Likewise.
9640 * record-full.c (record_full_wait_1): Likewise.
9641 * remote.c (remote_target::process_initial_stop_replies): Likewise.
9642 * target.c (target_resume): Likewise.
9643 * thread.c (set_running_thread): Likewise.
9644
e409c542
AKS
96452020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9646
9647 * f-valprint.c (f77_print_array_1): Changed datatype of index
9648 variable to LONGEST from int to enable it to contain bound
9649 values correctly.
9650
ee98c0da
MR
96512020-02-03 Maciej W. Rozycki <macro@wdc.com>
9652
9653 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
9654 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
9655 offsets according to FLEN determined.
9656 (riscv_linux_nat_target::read_description): Determine FLEN
9657 dynamically.
9658 (riscv_linux_nat_target::fetch_registers): Size regset buffer
9659 according to FLEN determined.
9660 (riscv_linux_nat_target::store_registers): Likewise.
9661
aa66aac4
SV
96622020-02-01 Shahab Vahedi <shahab@synopsys.com>
9663
9664 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
9665 when reg->group is empty and reggroup is not.
9666
fd9faca8
TT
96672020-01-31 Tom Tromey <tromey@adacore.com>
9668
9669 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
9670 Call beneath target's mourn_inferior after unpushing.
9671
42330a68
AB
96722020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
9673
9674 PR tui/9765
9675 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
9676 have enough lines to fill the screen, still return the lowest
9677 address we found.
9678
7a27a45b
AB
96792020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
9680
9681 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
9682 '-', '<', and '>' commands.
9683
c47f70e2
PA
96842020-01-29 Pedro Alves <palves@redhat.com>
9685 Sergio Durigan Junior <sergiodj@redhat.com>
9686
9687 * infcmd.c (construct_inferior_arguments): Assert that
9688 'argc' is greater than 0.
9689
5133a315
LM
96902020-01-29 Luis Machado <luis.machado@linaro.org>
9691
9692 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
9693 (BRK_INSN_MASK): Define to 0xd4200000.
9694 (aarch64_program_breakpoint_here_p): New function.
9695 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
9696 * arch-utils.c (default_program_breakpoint_here_p): Moved from
9697 breakpoint.c.
9698 * arch-utils.h (default_program_breakpoint_here_p): Moved from
9699 breakpoint.h
9700 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
9701 call gdbarch_program_breakpoint_here_p.
9702 (program_breakpoint_here): Moved to arch-utils.c, renamed to
9703 default_program_breakpoint_here_p, changed return type to bool and
9704 simplified.
9705 * breakpoint.h (program_breakpoint_here): Moved prototype to
9706 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
9707 return type to bool.
9708 * gdbarch.c: Regenerate.
9709 * gdbarch.h: Regenerate.
9710 * gdbarch.sh (program_breakpoint_here_p): New method.
9711 * infrun.c (handle_signal_stop): Call
9712 gdbarch_program_breakpoint_here_p.
9713
168f8c6b
TT
97142020-01-26 Tom Tromey <tom@tromey.com>
9715
9716 * ctfread.c (struct ctf_fp_info): Reindent.
9717 (_initialize_ctfread): Remove.
9718
128a391f
TT
97192020-01-26 Tom Tromey <tom@tromey.com>
9720
9721 * psymtab.c (partial_map_expand_apply)
9722 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
9723 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
9724 (psym_print_stats, psym_expand_symtabs_for_function)
9725 (psym_map_symbol_filenames, psym_map_matching_symbols)
9726 (psym_expand_symtabs_matching)
9727 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
9728 (maintenance_check_psymtabs): Use new methods.
9729 * psympriv.h (struct partial_symtab) <readin_p,
9730 get_compunit_symtab>: New methods.
9731 <readin, compunit_symtab>: Remove members.
9732 (struct standard_psymtab): New.
9733 (struct legacy_psymtab): Derive from standard_psymtab.
9734 * dwarf2read.h (struct dwarf2_psymtab): Derive from
9735 standard_psymtab.
9736 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
9737
0494dbec
TT
97382020-01-26 Tom Tromey <tom@tromey.com>
9739
9740 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
9741 read_dependencies. Add assert.
9742 * psymtab.c (partial_symtab::read_dependencies): New method.
9743 * psympriv.h (struct partial_symtab) <read_dependencies>: New
9744 method.
9745 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
9746 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
9747 read_dependencies.
9748 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
9749 Add assert.
9750
8566b89b
TT
97512020-01-26 Tom Tromey <tom@tromey.com>
9752
9753 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
9754 Call expand_psymtab.
9755 (xcoff_read_symtab): Call expand_psymtab.
9756 (xcoff_start_psymtab, xcoff_end_psymtab): Set
9757 legacy_expand_psymtab.
9758 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
9759 method.
9760 (struct legacy_psymtab) <expand_psymtab>: Implement.
9761 <legacy_expand_psymtab>: New member.
9762 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
9763 (parse_partial_symbols): Set legacy_expand_psymtab.
9764 (psymtab_to_symtab_1): Change argument order. Call
9765 expand_psymtab.
9766 (new_psymtab): Set legacy_expand_psymtab.
9767 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
9768 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
9769 expand_psymtab.
9770 (dwarf2_psymtab::expand_psymtab): Rename from
9771 psymtab_to_symtab_1. Call expand_psymtab.
9772 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
9773 (dbx_end_psymtab): Likewise.
9774 (dbx_psymtab_to_symtab_1): Change argument order. Call
9775 expand_psymtab.
9776 (dbx_read_symtab): Call expand_psymtab.
9777 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
9778 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
9779 (ctf_psymtab::read_symtab): Call expand_psymtab.
9780
077cbab2
TT
97812020-01-26 Tom Tromey <tom@tromey.com>
9782
9783 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
9784 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
9785 messages.
9786 * mdebugread.c (mdebug_read_symtab): Remove prints.
9787 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
9788 assert.
9789 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
9790
891813be
TT
97912020-01-26 Tom Tromey <tom@tromey.com>
9792
9793 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
9794 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
9795 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
9796 legacy_symtab.
9797 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
9798 * psymtab.c (psymtab_to_symtab): Call method.
9799 (dump_psymtab): Update.
9800 * psympriv.h (struct partial_symtab): Add virtual destructor.
9801 <read_symtab>: New method.
9802 (struct legacy_symtab): New.
9803 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
9804 (struct pst_map) <pst>: Now a legacy_psymtab.
9805 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
9806 (new_psymtab): Use legacy_psymtab.
9807 * dwarf2read.h (struct dwarf2_psymtab): New.
9808 (struct dwarf2_per_cu_data) <psymtab>: Use it.
9809 * dwarf2read.c (dwarf2_create_include_psymtab)
9810 (dwarf2_build_include_psymtabs, create_type_unit_group)
9811 (create_partial_symtab, process_psymtab_comp_unit_reader)
9812 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
9813 (set_partial_user): Use dwarf2_psymtab.
9814 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
9815 (psymtab_to_symtab_1, process_full_comp_unit)
9816 (process_full_type_unit, dwarf2_ranges_read)
9817 (dwarf2_get_pc_bounds, psymtab_include_file_name)
9818 (dwarf_decode_lines): Use dwarf2_psymtab.
9819 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
9820 (add_address_entry_worker, write_one_signatured_type)
9821 (recursively_count_psymbols, recursively_write_psymbols)
9822 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
9823 (write_debug_names): Likewise.
9824 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
9825 <pst>: Now a legacy_psymtab.
9826 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
9827 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
9828 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
9829 * ctfread.c (struct ctf_psymtab): New.
9830 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
9831 ctf_psymtab.
9832 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
9833 (create_partial_symtab): Return a ctf_psymtab.
9834 (scan_partial_symbols): Update.
9835
c3693a1d
TT
98362020-01-26 Tom Tromey <tom@tromey.com>
9837
9838 * xcoffread.c (xcoff_start_psymtab): Use new.
9839 * psymtab.c (partial_symtab::partial_symtab): New constructor,
9840 renamed from start_psymtab_common.
9841 * psympriv.h (struct partial_symtab): Add new constructor.
9842 (start_psymtab_common): Don't declare.
9843 * mdebugread.c (parse_partial_symbols): Use new.
9844 * dwarf2read.c (create_partial_symtab): Use new.
9845 * dbxread.c (start_psymtab): Use new.
9846 * ctfread.c (create_partial_symtab): Use new.
9847
32caafd0
TT
98482020-01-26 Tom Tromey <tom@tromey.com>
9849
9850 * xcoffread.c (xcoff_end_psymtab): Use new.
9851 * psymtab.c (start_psymtab_common): Use new.
9852 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
9853 Update.
9854 * psympriv.h (struct partial_symtab): Add parameters to
9855 constructor. Don't inline.
9856 (allocate_psymtab): Don't declare.
9857 * mdebugread.c (new_psymtab): Use new.
9858 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
9859 * dbxread.c (dbx_end_psymtab): Use new.
9860
abaa2f23
TT
98612020-01-26 Tom Tromey <tom@tromey.com>
9862
9863 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
9864 allocate_psymtab. Update documentation.
9865 * psymtab.c (psymtab_storage::install_psymtab): Rename from
9866 allocate_psymtab. Do not use new.
9867 (allocate_psymtab): Use new. Update.
9868
6d94535f
TT
98692020-01-26 Tom Tromey <tom@tromey.com>
9870
9871 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
9872 * psymtab.c (psym_print_stats): Update.
9873 * psympriv.h (struct partial_symtab) <readin,
9874 psymtabs_addrmap_supported, anonymous>: Now bool.
9875 * mdebugread.c (psymtab_to_symtab_1): Update.
9876 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
9877 (build_type_psymtabs_reader, psymtab_to_symtab_1)
9878 (process_full_comp_unit, process_full_type_unit): Update.
9879 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
9880 * ctfread.c (psymtab_to_symtab): Update.
9881
6f17252b
TT
98822020-01-26 Tom Tromey <tom@tromey.com>
9883
9884 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
9885 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
9886 * psymtab.c (psymtab_storage): Delete psymtabs.
9887 (psymtab_storage::allocate_psymtab): Use new.
9888 (psymtab_storage::discard_psymtab): Use delete.
9889 * psympriv.h (struct partial_symtab): Add constructor and
9890 initializers.
9891
f6f1cebc
TT
98922020-01-26 Tom Tromey <tom@tromey.com>
9893
9894 * machoread.c: Do not include psympriv.h.
9895
e47e48f6
PW
98962020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9897
9898 * NEWS: Mention the new option and the set/show commands.
9899
a2fedca9
PW
99002020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9901
9902 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
9903 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
9904 (validate_exec_file): New variables, enums, functions.
9905 (exec_file_locate_attach, print_section_info): Style the filenames.
9906 (_initialize_exec): Install show_exec_file_mismatch_command and
9907 set_exec_file_mismatch_command.
9908 * gdbcore.h (validate_exec_file): Declare.
9909 * infcmd.c (attach_command): Call validate_exec_file.
9910 * remote.c ( remote_target::remote_add_inferior): Likewise.
9911
7ffa82e1
AB
99122020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9913
9914 * frame.c (find_frame_sal): Move call to get_next_frame into more
9915 inner scope.
9916 * inline-frame.c (inilne_state) <inline_state>: Update argument
9917 types.
9918 (inilne_state) <skipped_symbol>: Rename to...
9919 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
9920 (skip_inline_frames): Build vector of skipped symbols and use this
9921 to reate the inline_state.
9922 (inline_skipped_symbol): Add a comment and some assertions, fetch
9923 skipped symbol from the list.
9924
3d92a3e3
AB
99252020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9926
9927 * buildsym.c (lte_is_less_than): Delete.
9928 (buildsym_compunit::end_symtab_with_blockvector): Create local
9929 lambda function to sort line table entries, and use
9930 std::stable_sort instead of std::sort.
9931 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
9932 markers when looking for a previous line.
9933
94a72be7
AB
99342020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9935
9936 * dwarf2read.c (lnp_state_machine::record_line): Include
9937 end_sequence parameter in debug print out. Record the line if we
9938 are at an end_sequence marker even if it's not the start of a
9939 statement.
9940 * symmisc.c (maintenance_print_one_line_table): Print end of
9941 sequence markers with 'END' not '0'.
9942
53af73bf
PA
99432020-01-24 Pedro Alves <palves@redhat.com>
9944
9945 PR gdb/25410
9946 * thread.c (scoped_restore_current_thread::restore): Use
9947 switch_to_inferior_no_thread.
9948 * exec.c: Include "progspace-and-thread.h".
9949 (add_target_sections, remove_target_sections):
9950 scoped_restore_current_pspace_and_thread instead of
9951 scoped_restore_current_thread.
9952 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
9953 and aspace to the inferior before calling clone_program_space.
9954 Remove stale comment.
9955
3050c6f4
CB
99562020-01-24 Christian Biesinger <cbiesinger@google.com>
9957
9958 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
9959 (arm_netbsd_nat_target::fetch_registers): ...this.
9960 (arm_nbsd_nat_target::store_registers): Rename to...
9961 (arm_netbsd_nat_target::store_registers): ...this.
9962
73685c7e
CB
99632020-01-24 Christian Biesinger <cbiesinger@google.com>
9964
9965 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9966 register_t.
9967
89203d40
CB
99682020-01-24 Christian Biesinger <cbiesinger@google.com>
9969
9970 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
9971 Update comment.
9972 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
9973 Likewise.
9974 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
9975 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
9976 the correct replacement (iterate_over_regset_sections).
9977 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
9978 Update comment.
9979
1ba1ac88
AB
99802020-01-24 Graham Markall <graham.markall@embecosm.com>
9981
9982 PR gdb/23718
9983 * gdb/python/python.c (execute_gdb_command): Call
9984 async_enable_stdin in catch block.
9985
f3364a6d
AB
99862020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9987
9988 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
9989 SWITCH_THRU_ALL_UIS.
9990
733d0a67
AB
99912020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9992
9993 PR tui/9765
9994 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
9995 comment, add extra parameter, and update to store previous symbol
9996 when appropriate.
9997 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
9998 add extra parameter.
9999 * tui/tui-disasm.c (tui_disassemble): Update header comment,
10000 remove unneeded parameter, add try/catch around gdb_print_insn,
10001 rewrite to add items to asm_lines vector.
10002 (tui_find_backward_disassembly_start_address): New function.
10003 (tui_find_disassembly_address): Updated throughout.
10004 (tui_disasm_window::set_contents): Update for changes to
10005 tui_disassemble.
10006 (tui_disasm_window::do_scroll_vertical): No need to adjust the
10007 number of lines to scroll.
10008
b3b3bada
SM
100092020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
10010
10011 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
10012 (SECT_OFF_DATA): Likewise.
10013 (SECT_OFF_RODATA): Likewise.
10014 (SECT_OFF_TEXT): Likewise.
10015 (SECT_OFF_BSS): Likewise.
10016 (struct objfile) <text_section_offset, data_section_offset>: New
10017 methods.
10018 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
10019 objfile::text_section_offset.
10020 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
10021 * coffread.c (coff_symtab_read): Likewise.
10022 (enter_linenos): Likewise.
10023 (process_coff_symbol): Likewise.
10024 * ctfread.c (get_objfile_text_range): Likewise.
10025 * dtrace-probe.c (dtrace_probe::get_relocated_address):
10026 Use objfile::data_section_offset.
10027 * dwarf2-frame.c (execute_cfa_program): Use
10028 objfile::text_section_offset.
10029 (dwarf2_frame_find_fde): Likewise.
10030 * dwarf2read.c (create_addrmap_from_index): Likewise.
10031 (create_addrmap_from_aranges): Likewise.
10032 (dw2_find_pc_sect_compunit_symtab): Likewise.
10033 (process_psymtab_comp_unit_reader): Likewise.
10034 (add_partial_symbol): Likewise.
10035 (add_partial_subprogram): Likewise.
10036 (process_full_comp_unit): Likewise.
10037 (read_file_scope): Likewise.
10038 (read_func_scope): Likewise.
10039 (read_lexical_block_scope): Likewise.
10040 (read_call_site_scope): Likewise.
10041 (dwarf2_rnglists_process): Likewise.
10042 (dwarf2_ranges_process): Likewise.
10043 (dwarf2_ranges_read): Likewise.
10044 (dwarf_decode_lines_1): Likewise.
10045 (new_symbol): Likewise.
10046 (dwarf2_fetch_die_loc_sect_off): Likewise.
10047 (dwarf2_per_cu_text_offset): Likewise.
10048 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
10049 * hppa-tdep.c (read_unwind_info): Likewise.
10050 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
10051 * psympriv.h (struct partial_symtab): Likewise.
10052 * psymtab.c (find_pc_sect_psymtab): Likewise.
10053 * solib-svr4.c (enable_break): Likewise.
10054 * stap-probe.c (relocate_address): Use
10055 objfile::data_section_offset.
10056 * xcoffread.c (enter_line_range): Use
10057 objfile::text_section_offset.
10058 (read_xcoff_symtab): Likewise.
10059
ab53f382
SM
100602020-01-23 Simon Marchi <simon.marchi@efficios.com>
10061
10062 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
10063 declaration to narrower scopes.
10064
e7eee665
SM
100652020-01-23 Simon Marchi <simon.marchi@efficios.com>
10066
10067 * darwin-nat.h (struct darwin_exception_msg, enum
10068 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
10069 Move up.
10070 (class darwin_nat_target) <wait_1, check_new_threads,
10071 decode_exception_message, decode_message, stop_inferior,
10072 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
10073 * darwin-nat.c (darwin_check_new_threads): Rename to...
10074 (darwin_nat_target::check_new_threads): ... this.
10075 (darwin_suspend_inferior_it): Remove.
10076 (darwin_decode_exception_message): Rename to...
10077 (darwin_nat_target::decode_exception_message): ... this.
10078 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
10079 (darwin_decode_message): Rename to...
10080 (darwin_nat_target::decode_message): ... this.
10081 (cancel_breakpoint): Rename to...
10082 (darwin_nat_target::cancel_breakpoint): ... this.
10083 (darwin_wait): Rename to...
10084 (darwin_nat_target::wait_1): ... this. Use range-based for loop
10085 instead of iterate_over_inferiors.
10086 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
10087 (darwin_stop_inferior): Rename to...
10088 (darwin_nat_target::stop_inferior): ... this.
10089 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
10090 (darwin_init_thread_list): Rename to...
10091 (darwin_nat_target::init_thread_list): ... this.
10092 (darwin_ptrace_him): Rename to...
10093 (darwin_nat_target::ptrace_him): ... this.
10094 (darwin_nat_target::create_inferior): Pass lambda function to
10095 fork_inferior.
10096 (darwin_nat_target::detach): Call stop_inferior instead of
10097 darwin_stop_inferior.
10098 * fork-inferior.h (fork_inferior): Change init_trace_fun
10099 parameter to gdb::function_view.
10100 * fork-inferior.c (fork_inferior): Likewise.
10101
c162ed3e
HD
101022020-01-23 Hannes Domani <ssbssa@yahoo.de>
10103
10104 * i386-cygwin-tdep.c (core_process_module_section): Update.
10105 * windows-nat.c (struct lm_info_windows): Add text_offset.
10106 (windows_xfer_shared_libraries): Update.
10107 * windows-tdep.c (windows_xfer_shared_library):
10108 Add text_offset_cached argument.
10109 * windows-tdep.h (windows_xfer_shared_library): Update.
10110
a1237872
SM
101112020-01-21 Simon Marchi <simon.marchi@efficios.com>
10112
10113 * gdbarch.sh: Add declaration for _initialize_gdbarch.
10114
b3ee6dd9
SM
101152020-01-21 Simon Marchi <simon.marchi@efficios.com>
10116
10117 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
10118 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
10119 replace with range-based for.
10120 (gdbsim_interrupt_inferior): Remove.
10121 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
10122 with a range-based for. Inline code from
10123 gdbsim_interrupt_inferior.
10124
f9fac3c8
SM
101252020-01-21 Simon Marchi <simon.marchi@efficios.com>
10126
10127 * infrun.c (proceed): Fix indentation.
10128
f6474de9
TT
101292020-01-21 Tom Tromey <tromey@adacore.com>
10130
10131 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
10132 * python/python.c (python_extension_ops): Update.
10133 (gdbpy_colorize): New function.
10134 * python/lib/gdb/__init__.py (colorize): New function.
10135 * extension.h (ext_lang_colorize): Declare.
10136 * extension.c (ext_lang_colorize): New function.
10137 * extension-priv.h (struct extension_language_ops) <colorize>: New
10138 member.
10139 * cli/cli-style.c (_initialize_cli_style): Update help text.
10140
f0c702d4
LM
101412020-01-21 Luis Machado <luis.machado@linaro.org>
10142
10143 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
10144 <cond>: Change type to bool.
10145 (aarch64_displaced_step_b_cond): Update cond to use bool type.
10146 (aarch64_displaced_step_cb): Likewise.
10147 (aarch64_displaced_step_tb): Likewise.
10148
1ab139e5
LM
101492020-01-21 Luis Machado <luis.machado@linaro.org>
10150
10151 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
10152 output.
10153
0c271889
LM
101542020-01-21 Luis Machado <luis.machado@linaro.org>
10155
10156 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
10157 <pc_adjust>: Adjust the documentation.
10158 (aarch64_displaced_step_fixup): Check if PC really moved before
10159 adjusting it.
10160
4d89c1c7
TT
101612020-01-19 Tom Tromey <tom@tromey.com>
10162
10163 * disasm.c (~gdb_disassembler): New destructor.
10164 (gdb_buffered_insn_length): Call disassemble_free_target.
10165 * disasm.h (class gdb_disassembler): Declare destructor. Use
10166 DISABLE_COPY_AND_ASSIGN.
10167
c0ab21c2
TT
101682020-01-19 Tom Tromey <tom@tromey.com>
10169
10170 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
10171 (die_reader_func_ftype): Remove.
10172 (cutu_reader): New class.
10173 (dw2_get_file_names_reader): Remove "data" parameter.
10174 (dw2_get_file_names): Use cutu_reader.
10175 (create_debug_type_hash_table): Update.
10176 (read_cutu_die_from_dwo): Update comment.
10177 (lookup_dwo_unit): Add dwo_name parameter.
10178 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
10179 die_reader_func_ftype and data parameters.
10180 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
10181 Remove die_reader_func_ftype and data parameters.
10182 (~cutu_reader): New; from init_cutu_and_read_dies.
10183 (cutu_reader::cutu_reader): Rename from
10184 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
10185 and data parameters.
10186 (init_cutu_and_read_dies_simple): Remove.
10187 (struct process_psymtab_comp_unit_data): Remove.
10188 (process_psymtab_comp_unit_reader): Remove data parameter; add
10189 want_partial_unit and pretend_language parameters.
10190 (process_psymtab_comp_unit): Use cutu_reader.
10191 (build_type_psymtabs_reader): Remove data parameter.
10192 (build_type_psymtabs_1): Use cutu_reader.
10193 (process_skeletonless_type_unit): Likewise.
10194 (load_partial_comp_unit_reader): Remove.
10195 (load_partial_comp_unit): Use cutu_reader.
10196 (load_full_comp_unit_reader): Remove.
10197 (load_full_comp_unit): Use cutu_reader.
10198 (struct create_dwo_cu_data): Remove.
10199 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
10200 dwo_unit parameters.
10201 (create_cus_hash_table): Use cutu_reader.
10202 (struct dwarf2_read_addr_index_data): Remove.
10203 (dwarf2_read_addr_index_reader): Remove.
10204 (dwarf2_read_addr_index): Use cutu_reader.
10205 (read_signatured_type_reader): Remove.
10206 (read_signatured_type): Use cutu_reader.
10207
45bbae5c
TT
102082020-01-19 Tom Tromey <tom@tromey.com>
10209
10210 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
10211 * tui/tui-wingeneral.h (class tui_suppress_output): New.
10212 (tui_wrefresh): Declare.
10213 * tui/tui-wingeneral.c (suppress_output): New global.
10214 (tui_suppress_output, ~tui_suppress_output): New constructor and
10215 destructor.
10216 (tui_wrefresh): New function.
10217 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
10218 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
10219 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
10220 method.
10221 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
10222 tui_wrefresh.
10223 (tui_data_window::no_refresh): New method.
10224 (tui_data_item_window::refresh_window): Call tui_wrefresh.
10225 (tui_reg_command): Use tui_suppress_output
10226 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
10227 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
10228 method.
10229 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
10230
4f13c1c0
TT
102312020-01-19 Tom Tromey <tom@tromey.com>
10232
10233 * tui/tui-winsource.c (tui_update_source_windows_with_line):
10234 Handle case where symtab is null.
10235
fa47e446
SM
102362020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
10237
10238 * linux-fork.c (one_fork_p): Simplify.
10239
26f42329
SM
102402020-01-17 Simon Marchi <simon.marchi@efficios.com>
10241
10242 * top.c (struct qt_args): Remove.
10243 (kill_or_detach): Change return type to void, replace `void *`
10244 parameter with a proper one.
10245 (print_inferior_quit_action): Likewise.
10246 (quit_confirm): Use range-based for loop to iterate over inferiors.
10247 (quit_force): Likewise.
10248
a9ac81b1
SM
102492020-01-17 Simon Marchi <simon.marchi@efficios.com>
10250
10251 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
10252 `void *` parameter with proper parameters.
10253 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
10254 (print_one_inferior): Change return type to void, replace `void *`
10255 parameter with proper parameters.
10256 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
10257 inferiors.
10258 (get_other_inferior): Remove.
10259 (mi_cmd_remove_inferior): Use range-based loop to iterate over
10260 inferiors.
10261
788eca49
SM
102622020-01-17 Simon Marchi <simon.marchi@efficios.com>
10263
10264 * mi/mi-interp.c (report_initial_inferior): Remove.
10265 (mi_interp::init): Use range-based for to iterate over inferiors.
10266
d9bc85b6
SM
102672020-01-17 Simon Marchi <simon.marchi@efficios.com>
10268
10269 * python/py-inferior.c (build_inferior_list): Remove.
10270 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
10271
40c94099
CB
102722020-01-16 Christian Biesinger <cbiesinger@google.com>
10273
10274 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
10275 (btrace_stitch_trace): Likewise.
10276 * charset.c (intermediate_encoding): Likewise (vaild).
10277 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
10278 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
10279 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
10280
e0cdfe3c
HD
102812020-01-16 Hannes Domani <ssbssa@yahoo.de>
10282
10283 * windows-tdep.c (windows_get_tlb_type):
10284 Add rtl_user_process_parameters type.
10285
790f1718 102862020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 10287 Norbert Lange <nolange79@gmail.com>
790f1718
PA
10288
10289 PR build/24805
10290 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
10291 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
10292 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
10293 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
10294 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
10295 (ps_plog): Redeclare exported functions with default visibility.
10296
3112ed97
NA
102972020-01-16 Nitika Achra <Nitika.Achra@amd.com>
10298
10299 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
10300 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
10301
8dc3273e
SM
103022020-01-15 Simon Marchi <simon.marchi@efficios.com>
10303
10304 * infcmd.c (post_create_inferior): Use get_thread_regcache
10305 instead of get_current_regcache.
10306
ff47f4f0
TT
103072020-01-14 Tom Tromey <tom@tromey.com>
10308
10309 PR symtab/12535:
10310 * python/python.c (gdbpy_decode_line): Treat empty string the same
10311 as no argument.
10312
975f45b7
TT
103132020-01-14 Tom Tromey <tom@tromey.com>
10314
10315 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
10316
25e57356
TT
103172020-01-14 Tom Tromey <tom@tromey.com>
10318
10319 * nat/linux-btrace.c: Don't include <config.h>.
10320 * nat/linux-ptrace.c: Don't include <config.h>.
10321 * nat/x86-linux-dregs.c: Don't include <config.h>.
10322
05ea2a05
TT
103232020-01-14 Tom Tromey <tom@tromey.com>
10324
10325 * configure: Rebuild.
10326 * configure.ac: Move many checks to ../gdbsupport/common.m4.
10327
01027315
TT
103282020-01-14 Tom Tromey <tom@tromey.com>
10329
10330 * nat/x86-linux-dregs.c: Include configh.h.
10331 * nat/linux-ptrace.c: Include configh.h.
10332 * nat/linux-btrace.c: Include configh.h.
10333 * defs.h: Include config.h, bfd.h.
10334 * configure.ac: Don't source common.host.
10335 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
10336 * configure: Rebuild.
10337 * acinclude.m4: Update path.
10338 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
10339 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
10340 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
10341 (CLIBS): Add LIBSUPPORT.
10342 (CDEPS): Likewise.
10343 (COMMON_SFILES): Remove gdbsupport files.
10344 (HFILES_NO_SRCDIR): Likewise.
10345 (stamp-version): Update path to create-version.sh.
10346 (ALLDEPFILES): Remove gdbsupport files.
10347
b2ceabe8
TT
103482020-01-14 Tom Tromey <tom@tromey.com>
10349
10350 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
10351 USE_WIN32API when needed.
10352 * configure.ac (USE_WIN32API): Don't define.
10353 (WIN32LIBS): Use WIN32APILIBS.
10354 * configure: Rebuild.
10355
25c51f71
TT
103562020-01-14 Tom Tromey <tom@tromey.com>
10357
10358 * configure: Rebuild.
10359 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
10360
717c684d
BE
103612020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
10362
10363 * skip.c (skip_function_command): Make skip w/o arguments use the
10364 name of the inlined function if pc is inside any inlined function.
10365
7da6a5b9
LM
103662020-01-14 Luis Machado <luis.machado@linaro.org>
10367
10368 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
10369 * infrun.c (resume_1): Likewise.
10370 (handle_inferior_event): Remove stale comment.
10371 * linux-nat.c (linux_nat_target::resume): Update comments.
10372 (save_stop_reason): Likewise.
10373 (linux_nat_filter_event): Likewise.
10374 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
10375
44e4c775
AB
103762020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10377
10378 * elfread.c (record_minimal_symbol): Set section index to 0 for
10379 non-allocatable sections.
10380
18a8505e
AT
10381
103822020-01-13 Ali Tamur <tamur@google.com>
10383
10384 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
10385 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
10386 to gdb::optional. Update comments.
10387 (dwo_file): Update comments.
10388 (read_attribute): Update API to take an additional out parameter,
10389 need_reprocess. This is used to mark attributes that need other
10390 attributes (e.g. str_offsets_base) for correct computation which may not
10391 have been read yet.
10392 (read_attribute_reprocess): New function declaration.
10393 (read_addr_index): Likewise.
10394 (read_dwo_str_index): Likewise.
10395 (read_stub_str_index): Likewise.
10396 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
10397 (lookup_addr_base): New function definition.
10398 (lookup_ranges_base): Likewise.
10399 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
10400 lookup_ranges_base.
10401 (init_cutu_and_read_dies): Update comments.
10402 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
10403 unit. This is used to inherit parent's str_offsets_base and addr_base.
10404 Update comments.
10405 (init_cutu_and_read_dies_simple): Reflect API changes.
10406 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
10407 (create_cus_hash_table): Change API to take parent compile unit.
10408 Reflect API changes.
10409 (open_and_init_dwo_file): Reflect API changes.
10410 (dwarf2_get_pc_bounds): Update comments.
10411 (dwarf2_record_block_ranges): Likewise.
10412 (read_full_die_1): Change implementation to reprocess attributes that
10413 need str_offsets_base and addr_base.
10414 (partial_die_info::read): Likewise.
10415 (read_attribute_reprocess): New function definition.
10416 (read_attribute_value): Change API to take an additional out parameter,
10417 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
10418 when a non-dwo compile unit has index based attributes.
10419 (read_attribute): Reflect API changes.
10420 (read_addr_index_1): Reflect API changes. Update comments.
10421 (dwarf2_read_addr_index_data): Reflect API changes.
10422 (dwarf2_read_addr_index): Likewise.
10423 (read_str_index): Change API and implementation. This becomes a helper
10424 to be used by the new string index related methods. Update error
10425 message and comments.
10426 (read_dwo_str_index): New function definition.
10427 (read_stub_str_index): Likewise.
10428 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
10429 * symfile.h (dwarf2_debug_sections): Likewise.
10430 * xcoffread.c (dwarf2_debug_sections): Likewise.
10431
0cac9354
SM
104322020-01-13 Simon Marchi <simon.marchi@efficios.com>
10433
10434 * gdbcore.h (struct core_fns) <core_read_registers>: Change
10435 core_reg_sect type to gdb_byte *.
10436 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
10437 * cris-tdep.c (fetch_core_registers): Likewise.
10438 * corelow.c (core_target::get_core_register_section): Change
10439 type of `contents` to gdb::byte_vector.
10440
9a6d629c
AB
104412020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10442
10443 * tui/tui-wingeneral.c (box_win): Position the title in the center
10444 of the border.
10445
d8b2f9e3
SM
104462020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10447
10448 * corelow.c (core_target::get_core_register_section): Use
10449 std::vector instead of alloca.
10450
bb564c58
SM
104512020-01-13 Simon Marchi <simon.marchi@efficios.com>
10452
10453 * warning.m4: Add -Wmissing-declarations to build_warnings.
10454 * configure: Re-generate.
10455
6b366111
SM
104562020-01-13 Simon Marchi <simon.marchi@efficios.com>
10457
10458 * python/python.c (init__gdb_module): Add declaration.
10459
6c265988
SM
104602020-01-13 Simon Marchi <simon.marchi@efficios.com>
10461
10462 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
10463 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
10464 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
10465 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
10466 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
10467 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
10468 * ada-exp.y (_initialize_ada_exp): Add declaration.
10469 * ada-lang.c (_initialize_ada_language): Add declaration.
10470 * ada-tasks.c (_initialize_tasks): Add declaration.
10471 * agent.c (_initialize_agent): Add declaration.
10472 * aix-thread.c (_initialize_aix_thread): Add declaration.
10473 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
10474 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
10475 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
10476 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
10477 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
10478 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
10479 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
10480 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
10481 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
10482 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
10483 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
10484 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
10485 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
10486 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
10487 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
10488 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
10489 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
10490 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
10491 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
10492 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
10493 * annotate.c (_initialize_annotate): Add declaration.
10494 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
10495 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
10496 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
10497 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
10498 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
10499 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
10500 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
10501 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
10502 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
10503 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
10504 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
10505 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
10506 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
10507 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
10508 * auto-load.c (_initialize_auto_load): Add declaration.
10509 * auxv.c (_initialize_auxv): Add declaration.
10510 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
10511 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
10512 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
10513 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
10514 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
10515 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
10516 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
10517 * breakpoint.c (_initialize_breakpoint): Add declaration.
10518 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
10519 * btrace.c (_initialize_btrace): Add declaration.
10520 * charset.c (_initialize_charset): Add declaration.
10521 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
10522 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
10523 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
10524 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
10525 * cli/cli-script.c (_initialize_cli_script): Add declaration.
10526 * cli/cli-style.c (_initialize_cli_style): Add declaration.
10527 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
10528 * coffread.c (_initialize_coffread): Add declaration.
10529 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
10530 * compile/compile.c (_initialize_compile): Add declaration.
10531 * complaints.c (_initialize_complaints): Add declaration.
10532 * completer.c (_initialize_completer): Add declaration.
10533 * copying.c (_initialize_copying): Add declaration.
10534 * corefile.c (_initialize_core): Add declaration.
10535 * corelow.c (_initialize_corelow): Add declaration.
10536 * cp-abi.c (_initialize_cp_abi): Add declaration.
10537 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
10538 * cp-support.c (_initialize_cp_support): Add declaration.
10539 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
10540 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
10541 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
10542 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
10543 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
10544 * ctfread.c (_initialize_ctfread): Add declaration.
10545 * d-lang.c (_initialize_d_language): Add declaration.
10546 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
10547 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
10548 * dbxread.c (_initialize_dbxread): Add declaration.
10549 * dcache.c (_initialize_dcache): Add declaration.
10550 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
10551 * disasm.c (_initialize_disasm): Add declaration.
10552 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
10553 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
10554 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
10555 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
10556 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
10557 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
10558 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
10559 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
10560 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
10561 * elfread.c (_initialize_elfread): Add declaration.
10562 * exec.c (_initialize_exec): Add declaration.
10563 * extension.c (_initialize_extension): Add declaration.
10564 * f-lang.c (_initialize_f_language): Add declaration.
10565 * f-valprint.c (_initialize_f_valprint): Add declaration.
10566 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
10567 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
10568 * filesystem.c (_initialize_filesystem): Add declaration.
10569 * findcmd.c (_initialize_mem_search): Add declaration.
10570 * findvar.c (_initialize_findvar): Add declaration.
10571 * fork-child.c (_initialize_fork_child): Add declaration.
10572 * frame-base.c (_initialize_frame_base): Add declaration.
10573 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
10574 * frame.c (_initialize_frame): Add declaration.
10575 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
10576 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
10577 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
10578 * gcore.c (_initialize_gcore): Add declaration.
10579 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
10580 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
10581 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
10582 * gdbarch.c (_initialize_gdbarch): Add declaration.
10583 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
10584 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
10585 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
10586 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
10587 * go-lang.c (_initialize_go_language): Add declaration.
10588 * go32-nat.c (_initialize_go32_nat): Add declaration.
10589 * guile/guile.c (_initialize_guile): Add declaration.
10590 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
10591 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
10592 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
10593 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
10594 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
10595 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
10596 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
10597 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
10598 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
10599 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
10600 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
10601 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
10602 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
10603 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
10604 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
10605 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
10606 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
10607 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
10608 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
10609 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
10610 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
10611 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
10612 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
10613 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
10614 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
10615 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
10616 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
10617 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
10618 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
10619 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
10620 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
10621 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
10622 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
10623 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
10624 * infcall.c (_initialize_infcall): Add declaration.
10625 * infcmd.c (_initialize_infcmd): Add declaration.
10626 * inflow.c (_initialize_inflow): Add declaration.
10627 * infrun.c (_initialize_infrun): Add declaration.
10628 * interps.c (_initialize_interpreter): Add declaration.
10629 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
10630 * jit.c (_initialize_jit): Add declaration.
10631 * language.c (_initialize_language): Add declaration.
10632 * linux-fork.c (_initialize_linux_fork): Add declaration.
10633 * linux-nat.c (_initialize_linux_nat): Add declaration.
10634 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
10635 * linux-thread-db.c (_initialize_thread_db): Add declaration.
10636 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
10637 * m2-lang.c (_initialize_m2_language): Add declaration.
10638 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
10639 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
10640 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
10641 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
10642 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
10643 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
10644 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
10645 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
10646 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
10647 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
10648 * machoread.c (_initialize_machoread): Add declaration.
10649 * macrocmd.c (_initialize_macrocmd): Add declaration.
10650 * macroscope.c (_initialize_macroscope): Add declaration.
10651 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
10652 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
10653 * maint.c (_initialize_maint_cmds): Add declaration.
10654 * mdebugread.c (_initialize_mdebugread): Add declaration.
10655 * memattr.c (_initialize_mem): Add declaration.
10656 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
10657 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
10658 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
10659 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
10660 * mi/mi-main.c (_initialize_mi_main): Add declaration.
10661 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
10662 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
10663 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
10664 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
10665 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
10666 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
10667 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
10668 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
10669 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
10670 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
10671 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
10672 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
10673 * mipsread.c (_initialize_mipsread): Add declaration.
10674 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
10675 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
10676 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
10677 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
10678 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
10679 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
10680 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
10681 * nto-procfs.c (_initialize_procfs): Add declaration.
10682 * objc-lang.c (_initialize_objc_language): Add declaration.
10683 * observable.c (_initialize_observer): Add declaration.
10684 * opencl-lang.c (_initialize_opencl_language): Add declaration.
10685 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
10686 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
10687 * osabi.c (_initialize_gdb_osabi): Add declaration.
10688 * osdata.c (_initialize_osdata): Add declaration.
10689 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
10690 * parse.c (_initialize_parse): Add declaration.
10691 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
10692 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
10693 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
10694 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
10695 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
10696 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
10697 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
10698 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
10699 * printcmd.c (_initialize_printcmd): Add declaration.
10700 * probe.c (_initialize_probe): Add declaration.
10701 * proc-api.c (_initialize_proc_api): Add declaration.
10702 * proc-events.c (_initialize_proc_events): Add declaration.
10703 * proc-service.c (_initialize_proc_service): Add declaration.
10704 * procfs.c (_initialize_procfs): Add declaration.
10705 * producer.c (_initialize_producer): Add declaration.
10706 * psymtab.c (_initialize_psymtab): Add declaration.
10707 * python/python.c (_initialize_python): Add declaration.
10708 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
10709 * record-btrace.c (_initialize_record_btrace): Add declaration.
10710 * record-full.c (_initialize_record_full): Add declaration.
10711 * record.c (_initialize_record): Add declaration.
10712 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
10713 * regcache.c (_initialize_regcache): Add declaration.
10714 * reggroups.c (_initialize_reggroup): Add declaration.
10715 * remote-notif.c (_initialize_notif): Add declaration.
10716 * remote-sim.c (_initialize_remote_sim): Add declaration.
10717 * remote.c (_initialize_remote): Add declaration.
10718 * reverse.c (_initialize_reverse): Add declaration.
10719 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
10720 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
10721 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
10722 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
10723 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
10724 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
10725 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
10726 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
10727 Add declaration.
10728 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
10729 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
10730 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
10731 * rust-exp.y (_initialize_rust_exp): Add declaration.
10732 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
10733 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
10734 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
10735 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
10736 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
10737 * score-tdep.c (_initialize_score_tdep): Add declaration.
10738 * ser-go32.c (_initialize_ser_dos): Add declaration.
10739 * ser-mingw.c (_initialize_ser_windows): Add declaration.
10740 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
10741 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
10742 * ser-uds.c (_initialize_ser_socket): Add declaration.
10743 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
10744 * serial.c (_initialize_serial): Add declaration.
10745 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
10746 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
10747 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
10748 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
10749 * skip.c (_initialize_step_skip): Add declaration.
10750 * sol-thread.c (_initialize_sol_thread): Add declaration.
10751 * solib-aix.c (_initialize_solib_aix): Add declaration.
10752 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
10753 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
10754 * solib-frv.c (_initialize_frv_solib): Add declaration.
10755 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
10756 * solib-target.c (_initialize_solib_target): Add declaration.
10757 * solib.c (_initialize_solib): Add declaration.
10758 * source-cache.c (_initialize_source_cache): Add declaration.
10759 * source.c (_initialize_source): Add declaration.
10760 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
10761 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
10762 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
10763 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
10764 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
10765 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
10766 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
10767 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
10768 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
10769 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
10770 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
10771 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
10772 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
10773 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
10774 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
10775 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
10776 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
10777 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
10778 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
10779 * stabsread.c (_initialize_stabsread): Add declaration.
10780 * stack.c (_initialize_stack): Add declaration.
10781 * stap-probe.c (_initialize_stap_probe): Add declaration.
10782 * std-regs.c (_initialize_frame_reg): Add declaration.
10783 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
10784 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
10785 * symfile.c (_initialize_symfile): Add declaration.
10786 * symmisc.c (_initialize_symmisc): Add declaration.
10787 * symtab.c (_initialize_symtab): Add declaration.
10788 * target.c (_initialize_target): Add declaration.
10789 * target-connection.c (_initialize_target_connection): Add
10790 declaration.
10791 * target-dcache.c (_initialize_target_dcache): Add declaration.
10792 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
10793 * thread.c (_initialize_thread): Add declaration.
10794 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
10795 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
10796 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
10797 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
10798 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
10799 * tracectf.c (_initialize_ctf): Add declaration.
10800 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
10801 * tracefile.c (_initialize_tracefile): Add declaration.
10802 * tracepoint.c (_initialize_tracepoint): Add declaration.
10803 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
10804 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
10805 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
10806 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
10807 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
10808 * tui/tui-win.c (_initialize_tui_win): Add declaration.
10809 * tui/tui.c (_initialize_tui): Add declaration.
10810 * typeprint.c (_initialize_typeprint): Add declaration.
10811 * ui-style.c (_initialize_ui_style): Add declaration.
10812 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
10813 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
10814 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
10815 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
10816 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
10817 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
10818 * unittests/filtered_iterator-selftests.c
10819 (_initialize_filtered_iterator_selftests): Add declaration.
10820 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
10821 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
10822 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
10823 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
10824 * unittests/main-thread-selftests.c
10825 (_initialize_main_thread_selftests): Add declaration.
10826 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
10827 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
10828 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
10829 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
10830 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
10831 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
10832 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
10833 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
10834 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
10835 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
10836 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
10837 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
10838 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
10839 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
10840 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
10841 declaration.
10842 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
10843 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
10844 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
10845 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
10846 * user-regs.c (_initialize_user_regs): Add declaration.
10847 * utils.c (_initialize_utils): Add declaration.
10848 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
10849 * valops.c (_initialize_valops): Add declaration.
10850 * valprint.c (_initialize_valprint): Add declaration.
10851 * value.c (_initialize_values): Add declaration.
10852 * varobj.c (_initialize_varobj): Add declaration.
10853 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
10854 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
10855 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
10856 * windows-nat.c (_initialize_windows_nat): Add declaration.
10857 (_initialize_check_for_gdb_ini): Add declaration.
10858 (_initialize_loadable): Add declaration.
10859 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
10860 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
10861 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
10862 * xcoffread.c (_initialize_xcoffread): Add declaration.
10863 * xml-support.c (_initialize_xml_support): Add declaration.
10864 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
10865 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
10866 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
10867 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
10868
e2de1eec
SM
108692020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10870
10871 * regformats/regdat.sh: Generate declaration for init function.
10872
e0037b4c
SM
108732020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10874
10875 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
10876 up.
10877 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
10878 close_one_inferior>: New methods.
10879 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
10880 pass down target to find_inferior_pid.
10881 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
10882 Pass down target to find_inferior_ptid.
10883 (gdbsim_target::create_inferior): Pass down target to
10884 add_thread_silent.
10885 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
10886 target down to find_inferior_ptid and switch_to_thread.
10887 (gdbsim_target::close): Update to call close_one_inferior.
10888 (struct resume_data): Remove.
10889 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
10890 directly, rather than through a void pointer.
10891 (gdbsim_target::resume): Update to call resume_one_inferior.
10892
58920b5b
SM
108932020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
10894
10895 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
10896
4ec89149
PA
108972020-01-12 Pedro Alves <palves@redhat.com>
10898
10899 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
10900 directly for the current inferior instead of
10901 discard_all_inferiors.
10902 (discard_all_inferiors): Delete.
10903
7c392d1d
TT
109042020-01-11 Tom Tromey <tom@tromey.com>
10905
10906 * tui/tui-wingeneral.c (box_win): Check cli_styling.
10907 * tui/tui-winsource.c (tui_source_window_base::refill): Use
10908 deprecated_safe_get_selected_frame.
10909
d9ebdab7
TBA
109102020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10911
10912 * inferior.c (print_inferior): Switch inferior before printing it.
10913
f3c469b9
PA
109142020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
10915 Pedro Alves <palves@redhat.com>
10916
10917 * progspace-and-thread.c (switch_to_program_space_and_thread):
10918 Assert there's an inferior for PSPACE. Use
10919 switch_to_inferior_no_thread to switch the inferior too.
10920 * progspace.c (program_space::~program_space): Call
10921 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
10922 (program_space::free_all_objfiles): Don't call clear_symtab_users
10923 here.
10924 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
10925
65c574f6
PA
109262020-01-10 Pedro Alves <palves@redhat.com>
10927
10928 * NEWS: Mention multi-target debugging, "info connections", and
10929 "add-inferior -no-connection".
10930
2f4fcf00
PA
109312020-01-10 Pedro Alves <palves@redhat.com>
10932
10933 * infrun.c: Include "target-connection.h".
10934 (check_multi_target_resumption): New.
10935 (proceed): Call it.
10936 * target-connection.c (make_target_connection_string): Make
10937 extern.
10938 * target-connection.h (make_target_connection_string): Declare.
10939
121b3efd
PA
109402020-01-10 Pedro Alves <palves@redhat.com>
10941
10942 * Makefile.in (COMMON_SFILES): Add target-connection.c.
10943 * inferior.c (uiout_field_connection): New function.
10944 (print_inferior): Add new "connection-id" column.
10945 (add_inferior_command): Show connection number/string of added
10946 inferior.
10947 * process-stratum-target.h
10948 (process_stratum_target::connection_string): New virtual method.
10949 (process_stratum_target::connection_number): New field.
10950 * remote.c (remote_target::connection_string): New override.
10951 * target-connection.c: New file.
10952 * target-connection.h: New file.
10953 * target.c (decref_target): Remove process_stratum targets from
10954 the connection list.
10955 (target_stack::push): Add process_stratum targets to the
10956 connection list.
10957
4f837581
PA
109582020-01-10 Pedro Alves <palves@redhat.com>
10959
10960 Revert:
10961 2016-04-12 Pedro Alves <palves@redhat.com>
10962 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
10963 Remove references to name.
10964 * serial.h (struct serial) <name>: Delete.
10965
f4ec508e
PA
109662020-01-10 Pedro Alves <palves@redhat.com>
10967
10968 * gdbarch-selftests.c (register_to_value_test): Remove "target
10969 already pushed" check.
10970
5b6d1e4f
PA
109712020-01-10 Pedro Alves <palves@redhat.com>
10972 John Baldwin <jhb@FreeBSD.org>
10973
10974 * aarch64-linux-nat.c
10975 (aarch64_linux_nat_target::thread_architecture): Adjust.
10976 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
10977 (task_command_1): Likewise.
10978 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
10979 (aix_thread_target::wait, aix_thread_target::fetch_registers)
10980 (aix_thread_target::store_registers)
10981 (aix_thread_target::thread_alive): Adjust.
10982 * amd64-fbsd-tdep.c: Include "inferior.h".
10983 (amd64fbsd_get_thread_local_address): Pass down target.
10984 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
10985 thread's gdbarch instead of target_gdbarch.
10986 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
10987 get_last_target_status.
10988 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
10989 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
10990 inferiors.
10991 (update_inserted_breakpoint_locations): Skip if inferiors with no
10992 execution.
10993 (update_global_location_list): When handling moribund locations,
10994 find representative inferior for location's pspace, and use thread
10995 count of its process_stratum target.
10996 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
10997 * bsd-uthread.c (bsd_uthread_target::wait): Use
10998 as_process_stratum_target and adjust thread_change_ptid and
10999 add_thread calls.
11000 (bsd_uthread_target::update_thread_list): Use
11001 as_process_stratum_target and adjust find_thread_ptid,
11002 thread_change_ptid and add_thread calls.
11003 * btrace.c (maint_btrace_packet_history_cmd): Adjust
11004 find_thread_ptid call.
11005 * corelow.c (add_to_thread_list): Adjust add_thread call.
11006 (core_target_open): Adjust add_thread_silent and thread_count
11007 calls.
11008 (core_target::pid_to_str): Adjust find_inferior_ptid call.
11009 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
11010 * event-top.c (async_disconnect): Pop targets from all inferiors.
11011 * exec.c (add_target_sections): Push exec target on all inferiors
11012 sharing the program space.
11013 (remove_target_sections): Remove the exec target from all
11014 inferiors sharing the program space.
11015 (exec_on_vfork): New.
11016 * exec.h (exec_on_vfork): Declare.
11017 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
11018 Pass it down.
11019 (fbsd_nat_target::update_thread_list): Adjust.
11020 (fbsd_nat_target::resume): Adjust.
11021 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
11022 down.
11023 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
11024 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
11025 get_thread_arch_regcache call.
11026 * fork-child.c (gdb_startup_inferior): Pass target down to
11027 startup_inferior and set_executing.
11028 * gdbthread.h (struct process_stratum_target): Forward declare.
11029 (add_thread, add_thread_silent, add_thread_with_info)
11030 (in_thread_list): Add process_stratum_target parameter.
11031 (find_thread_ptid(inferior*, ptid_t)): New overload.
11032 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
11033 parameter.
11034 (all_threads()): Delete overload.
11035 (all_threads, all_non_exited_threads): Add process_stratum_target
11036 parameter.
11037 (all_threads_safe): Use brace initialization.
11038 (thread_count): Add process_stratum_target parameter.
11039 (set_resumed, set_running, set_stop_requested, set_executing)
11040 (threads_are_executing, finish_thread_state): Add
11041 process_stratum_target parameter.
11042 (switch_to_thread): Use is_current_thread.
11043 * i386-fbsd-tdep.c: Include "inferior.h".
11044 (i386fbsd_get_thread_local_address): Pass down target.
11045 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
11046 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
11047 have_inferiors check.
11048 * inf-ptrace.c (inf_ptrace_target::create_inferior)
11049 (inf_ptrace_target::attach): Adjust.
11050 * infcall.c (run_inferior_call): Adjust.
11051 * infcmd.c (run_command_1): Pass target to
11052 scoped_finish_thread_state.
11053 (proceed_thread_callback): Skip inferiors with no execution.
11054 (continue_command): Rename 'all_threads' local to avoid hiding
11055 'all_threads' function. Adjust get_last_target_status call.
11056 (prepare_one_step): Adjust set_running call.
11057 (signal_command): Use user_visible_resume_target. Compare thread
11058 pointers instead of inferior_ptid.
11059 (info_program_command): Adjust to pass down target.
11060 (attach_command): Mark target's 'thread_executing' flag.
11061 (stop_current_target_threads_ns): New, factored out from ...
11062 (interrupt_target_1): ... this. Switch inferior before making
11063 target calls.
11064 * inferior-iter.h
11065 (struct all_inferiors_iterator, struct all_inferiors_range)
11066 (struct all_inferiors_safe_range)
11067 (struct all_non_exited_inferiors_range): Filter on
11068 process_stratum_target too. Remove explicit.
11069 * inferior.c (inferior::inferior): Push dummy target on target
11070 stack.
11071 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
11072 Add process_stratum_target parameter, and pass it down.
11073 (have_live_inferiors): Adjust.
11074 (switch_to_inferior_and_push_target): New.
11075 (add_inferior_command, clone_inferior_command): Handle
11076 "-no-connection" parameter. Use
11077 switch_to_inferior_and_push_target.
11078 (_initialize_inferior): Mention "-no-connection" option in
11079 the help of "add-inferior" and "clone-inferior" commands.
11080 * inferior.h: Include "process-stratum-target.h".
11081 (interrupt_target_1): Use bool.
11082 (struct inferior) <push_target, unpush_target, target_is_pushed,
11083 find_target_beneath, top_target, process_target, target_at,
11084 m_stack>: New.
11085 (discard_all_inferiors): Delete.
11086 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
11087 (all_inferiors, all_non_exited_inferiors): Add
11088 process_stratum_target parameter.
11089 * infrun.c: Include "gdb_select.h" and <unordered_map>.
11090 (target_last_proc_target): New global.
11091 (follow_fork_inferior): Push target on new inferior. Pass target
11092 to add_thread_silent. Call exec_on_vfork. Handle target's
11093 reference count.
11094 (follow_fork): Adjust get_last_target_status call. Also consider
11095 target.
11096 (follow_exec): Push target on new inferior.
11097 (struct execution_control_state) <target>: New field.
11098 (user_visible_resume_target): New.
11099 (do_target_resume): Call target_async.
11100 (resume_1): Set target's threads_executing flag. Consider resume
11101 target.
11102 (commit_resume_all_targets): New.
11103 (proceed): Also consider resume target. Skip threads of inferiors
11104 with no execution. Commit resumtion in all targets.
11105 (start_remote): Pass current inferior to wait_for_inferior.
11106 (infrun_thread_stop_requested): Consider target as well. Pass
11107 thread_info pointer to clear_inline_frame_state instead of ptid.
11108 (infrun_thread_thread_exit): Consider target as well.
11109 (random_pending_event_thread): New inferior parameter. Use it.
11110 (do_target_wait): Rename to ...
11111 (do_target_wait_1): ... this. Add inferior parameter, and pass it
11112 down.
11113 (threads_are_resumed_pending_p, do_target_wait): New.
11114 (prepare_for_detach): Adjust calls.
11115 (wait_for_inferior): New inferior parameter. Handle it. Use
11116 do_target_wait_1 instead of do_target_wait.
11117 (fetch_inferior_event): Adjust. Switch to representative
11118 inferior. Pass target down.
11119 (set_last_target_status): Add process_stratum_target parameter.
11120 Save target in global.
11121 (get_last_target_status): Add process_stratum_target parameter and
11122 handle it.
11123 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
11124 (context_switch): Check inferior_ptid == null_ptid before calling
11125 inferior_thread().
11126 (get_inferior_stop_soon): Pass down target.
11127 (wait_one): Rename to ...
11128 (poll_one_curr_target): ... this.
11129 (struct wait_one_event): New.
11130 (wait_one): New.
11131 (stop_all_threads): Adjust.
11132 (handle_no_resumed, handle_inferior_event): Adjust to consider the
11133 event's target.
11134 (switch_back_to_stepped_thread): Also consider target.
11135 (print_stop_event): Update.
11136 (normal_stop): Update. Also consider the resume target.
11137 * infrun.h (wait_for_inferior): Remove declaration.
11138 (user_visible_resume_target): New declaration.
11139 (get_last_target_status, set_last_target_status): New
11140 process_stratum_target parameter.
11141 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11142 process_stratum_target parameter, and use it.
11143 (clear_inline_frame_state (thread_info*)): New.
11144 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11145 process_stratum_target parameter.
11146 (clear_inline_frame_state (thread_info*)): Declare.
11147 * linux-fork.c (delete_checkpoint_command): Pass target down to
11148 find_thread_ptid.
11149 (checkpoint_command): Adjust.
11150 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
11151 instead of just tweaking inferior_ptid.
11152 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
11153 (exit_lwp): Pass target down to find_thread_ptid.
11154 (attach_proc_task_lwp_callback): Pass target down to
11155 add_thread/set_running/set_executing.
11156 (linux_nat_target::attach): Pass target down to
11157 thread_change_ptid.
11158 (get_detach_signal): Pass target down to find_thread_ptid.
11159 Consider last target status's target.
11160 (linux_resume_one_lwp_throw, resume_lwp)
11161 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
11162 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
11163 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
11164 (linux_nat_target::async_wait_fd): New.
11165 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
11166 target down.
11167 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
11168 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
11169 * linux-thread-db.c (struct thread_db_info::process_target): New
11170 field.
11171 (add_thread_db_info): Save target.
11172 (get_thread_db_info): New process_stratum_target parameter. Also
11173 match target.
11174 (delete_thread_db_info): New process_stratum_target parameter.
11175 Also match target.
11176 (thread_from_lwp): Adjust to pass down target.
11177 (thread_db_notice_clone): Pass down target.
11178 (check_thread_db_callback): Pass down target.
11179 (try_thread_db_load_1): Always push the thread_db target.
11180 (try_thread_db_load, record_thread): Pass target down.
11181 (thread_db_target::detach): Pass target down. Always unpush the
11182 thread_db target.
11183 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
11184 target down. Always unpush the thread_db target.
11185 (find_new_threads_callback, thread_db_find_new_threads_2)
11186 (thread_db_target::update_thread_list): Pass target down.
11187 (thread_db_target::pid_to_str): Pass current inferior down.
11188 (thread_db_target::get_thread_local_address): Pass target down.
11189 (thread_db_target::resume, maintenance_check_libthread_db): Pass
11190 target down.
11191 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
11192 * procfs.c (procfs_target::procfs_init_inferior): Declare.
11193 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
11194 (procfs_init_inferior): Rename to ...
11195 (procfs_target::procfs_init_inferior): ... this and adjust.
11196 (procfs_target::create_inferior, procfs_notice_thread)
11197 (procfs_do_thread_registers): Adjust.
11198 * ppc-fbsd-tdep.c: Include "inferior.h".
11199 (ppcfbsd_get_thread_local_address): Pass down target.
11200 * proc-service.c (ps_xfer_memory): Switch current inferior and
11201 program space as well.
11202 (get_ps_regcache): Pass target down.
11203 * process-stratum-target.c
11204 (process_stratum_target::thread_address_space)
11205 (process_stratum_target::thread_architecture): Pass target down.
11206 * process-stratum-target.h
11207 (process_stratum_target::threads_executing): New field.
11208 (as_process_stratum_target): New.
11209 * ravenscar-thread.c
11210 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
11211 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
11212 down.
11213 * record-btrace.c (record_btrace_target::info_record): Adjust.
11214 (record_btrace_target::record_method)
11215 (record_btrace_target::record_is_replaying)
11216 (record_btrace_target::fetch_registers)
11217 (get_thread_current_frame_id, record_btrace_target::resume)
11218 (record_btrace_target::wait, record_btrace_target::stop): Pass
11219 target down.
11220 * record-full.c (record_full_wait_1): Switch to event thread.
11221 Pass target down.
11222 * regcache.c (regcache::regcache)
11223 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
11224 process_stratum_target parameter and handle it.
11225 (current_thread_target): New global.
11226 (get_thread_regcache): Add process_stratum_target parameter and
11227 handle it. Switch inferior before calling target method.
11228 (get_thread_regcache): Pass target down.
11229 (get_thread_regcache_for_ptid): Pass target down.
11230 (registers_changed_ptid): Add process_stratum_target parameter and
11231 handle it.
11232 (registers_changed_thread, registers_changed): Pass target down.
11233 (test_get_thread_arch_aspace_regcache): New.
11234 (current_regcache_test): Define a couple local test_target_ops
11235 instances and use them for testing.
11236 (readwrite_regcache): Pass process_stratum_target parameter.
11237 (cooked_read_test, cooked_write_test): Pass mock_target down.
11238 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
11239 (get_thread_arch_aspace_regcache): Add process_stratum_target
11240 parameter.
11241 (regcache::target): New method.
11242 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
11243 (regcache::registers_changed_ptid): Add process_stratum_target
11244 parameter.
11245 (regcache::m_target): New field.
11246 (registers_changed_ptid): Add process_stratum_target parameter.
11247 * remote.c (remote_state::supports_vCont_probed): New field.
11248 (remote_target::async_wait_fd): New method.
11249 (remote_unpush_and_throw): Add remote_target parameter.
11250 (get_current_remote_target): Adjust.
11251 (remote_target::remote_add_inferior): Push target.
11252 (remote_target::remote_add_thread)
11253 (remote_target::remote_notice_new_inferior)
11254 (get_remote_thread_info): Pass target down.
11255 (remote_target::update_thread_list): Skip threads of inferiors
11256 bound to other targets. (remote_target::close): Don't discard
11257 inferiors. (remote_target::add_current_inferior_and_thread)
11258 (remote_target::process_initial_stop_replies)
11259 (remote_target::start_remote)
11260 (remote_target::remote_serial_quit_handler): Pass down target.
11261 (remote_target::remote_unpush_target): New remote_target
11262 parameter. Unpush the target from all inferiors.
11263 (remote_target::remote_unpush_and_throw): New remote_target
11264 parameter. Pass it down.
11265 (remote_target::open_1): Check whether the current inferior has
11266 execution instead of checking whether any inferior is live. Pass
11267 target down.
11268 (remote_target::remote_detach_1): Pass down target. Use
11269 remote_unpush_target.
11270 (extended_remote_target::attach): Pass down target.
11271 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
11272 (remote_target::append_resumption): Pass down target.
11273 (remote_target::append_pending_thread_resumptions)
11274 (remote_target::remote_resume_with_hc, remote_target::resume)
11275 (remote_target::commit_resume): Pass down target.
11276 (remote_target::remote_stop_ns): Check supports_vCont_probed.
11277 (remote_target::interrupt_query)
11278 (remote_target::remove_new_fork_children)
11279 (remote_target::check_pending_events_prevent_wildcard_vcont)
11280 (remote_target::remote_parse_stop_reply)
11281 (remote_target::process_stop_reply): Pass down target.
11282 (first_remote_resumed_thread): New remote_target parameter. Pass
11283 it down.
11284 (remote_target::wait_as): Pass down target.
11285 (unpush_and_perror): New remote_target parameter. Pass it down.
11286 (remote_target::readchar, remote_target::remote_serial_write)
11287 (remote_target::getpkt_or_notif_sane_1)
11288 (remote_target::kill_new_fork_children, remote_target::kill): Pass
11289 down target.
11290 (remote_target::mourn_inferior): Pass down target. Use
11291 remote_unpush_target.
11292 (remote_target::core_of_thread)
11293 (remote_target::remote_btrace_maybe_reopen): Pass down target.
11294 (remote_target::pid_to_exec_file)
11295 (remote_target::thread_handle_to_thread_info): Pass down target.
11296 (remote_target::async_wait_fd): New.
11297 * riscv-fbsd-tdep.c: Include "inferior.h".
11298 (riscv_fbsd_get_thread_local_address): Pass down target.
11299 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
11300 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
11301 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
11302 Adjust.
11303 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
11304 * solib-svr4.c (enable_break): Pass down target.
11305 * spu-multiarch.c (parse_spufs_run): Pass down target.
11306 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
11307 * target-delegates.c: Regenerate.
11308 * target.c (g_target_stack): Delete.
11309 (current_top_target): Return the current inferior's top target.
11310 (target_has_execution_1): Refer to the passed-in inferior's top
11311 target.
11312 (target_supports_terminal_ours): Check whether the initial
11313 inferior was already created.
11314 (decref_target): New.
11315 (target_stack::push): Incref/decref the target.
11316 (push_target, push_target, unpush_target): Adjust.
11317 (target_stack::unpush): Defref target.
11318 (target_is_pushed): Return bool. Adjust to refer to the current
11319 inferior's target stack.
11320 (dispose_inferior): Delete, and inline parts ...
11321 (target_preopen): ... here. Only dispose of the current inferior.
11322 (target_detach): Hold strong target reference while detaching.
11323 Pass target down.
11324 (target_thread_name): Add assertion.
11325 (target_resume): Pass down target.
11326 (target_ops::beneath, find_target_at): Adjust to refer to the
11327 current inferior's target stack.
11328 (get_dummy_target): New.
11329 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
11330 has a thread running.
11331 (initialize_targets): Rename to ...
11332 (_initialize_target): ... this.
11333 * target.h: Include "gdbsupport/refcounted-object.h".
11334 (struct target_ops): Inherit refcounted_object.
11335 (target_ops::shortname, target_ops::longname): Make const.
11336 (target_ops::async_wait_fd): New method.
11337 (decref_target): Declare.
11338 (struct target_ops_ref_policy): New.
11339 (target_ops_ref): New typedef.
11340 (get_dummy_target): Declare function.
11341 (target_is_pushed): Return bool.
11342 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
11343 (all_matching_threads_iterator::all_matching_threads_iterator):
11344 Handle filter target.
11345 * thread-iter.h (struct all_matching_threads_iterator, struct
11346 all_matching_threads_range, class all_non_exited_threads_range):
11347 Filter by target too. Remove explicit.
11348 * thread.c (threads_executing): Delete.
11349 (inferior_thread): Pass down current inferior.
11350 (clear_thread_inferior_resources): Pass down thread pointer
11351 instead of ptid_t.
11352 (add_thread_silent, add_thread_with_info, add_thread): Add
11353 process_stratum_target parameter. Use it for thread and inferior
11354 searches.
11355 (is_current_thread): New.
11356 (thread_info::deletable): Use it.
11357 (find_thread_ptid, thread_count, in_thread_list)
11358 (thread_change_ptid, set_resumed, set_running): New
11359 process_stratum_target parameter. Pass it down.
11360 (set_executing): New process_stratum_target parameter. Pass it
11361 down. Adjust reference to 'threads_executing'.
11362 (threads_are_executing): New process_stratum_target parameter.
11363 Adjust reference to 'threads_executing'.
11364 (set_stop_requested, finish_thread_state): New
11365 process_stratum_target parameter. Pass it down.
11366 (switch_to_thread): Also match inferior.
11367 (switch_to_thread): New process_stratum_target parameter. Pass it
11368 down.
11369 (update_threads_executing): Reimplement.
11370 * top.c (quit_force): Pop targets from all inferior.
11371 (gdb_init): Don't call initialize_targets.
11372 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
11373 Declare.
11374 (windows_add_thread, windows_delete_thread): Adjust.
11375 (get_windows_debug_event): Rename to ...
11376 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
11377 * tracefile-tfile.c (tfile_target_open): Pass down target.
11378 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
11379 Forward declare.
11380 (switch_to_thread): Add process_stratum_target parameter.
11381 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
11382 parameter. Use it.
11383 (mi_on_resume): Pass target down.
11384 * nat/fork-inferior.c (startup_inferior): Add
11385 process_stratum_target parameter. Pass it down.
11386 * nat/fork-inferior.h (startup_inferior): Add
11387 process_stratum_target parameter.
11388 * python/py-threadevent.c (py_get_event_thread): Pass target down.
11389
75c6c844
PA
113902020-01-10 Pedro Alves <palves@redhat.com>
11391
11392 * remote.c (remote_target::start_remote): Don't set inferior_ptid
11393 directly. Instead find the first thread in the thread list and
11394 use switch_to_thread.
11395
78f2c40a
PA
113962020-01-10 Pedro Alves <palves@redhat.com>
11397
11398 * remote.c (remote_target::remote_add_inferior): Don't bind a
11399 process to the current inferior if the current inferior is already
11400 bound to a process.
11401
e7af6c70
TBA
114022020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11403 Pedro Alves <palves@redhat.com>
11404
11405 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
11406 If no process is specified, return null_ptid instead of
11407 inferior_ptid.
11408 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
11409 TARGET_WAITKIND_SIGNALLED with no pid.
11410
31ba933e
PA
114112020-01-10 Pedro Alves <palves@redhat.com>
11412
11413 * remote.c (first_remote_resumed_thread): New.
11414 (remote_target::wait_as): Use it as default event_ptid instead of
11415 inferior_ptid.
11416
735fc2ca
PA
114172020-01-10 Pedro Alves <palves@redhat.com>
11418
11419 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
11420
c17e02e1
PA
114212020-01-10 Pedro Alves <palves@redhat.com>
11422
11423 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
11424 not -1.
11425
ab1ddbcf
PA
114262020-01-10 Pedro Alves <palves@redhat.com>
11427
11428 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
11429 ptid to get_last_target_status.
11430 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
11431 ptid to get_last_target_status.
11432 * infcmd.c (continue_command): Don't pass a target_waitstatus to
11433 get_last_target_status.
11434 (info_program_command): Don't pass a target_waitstatus to
11435 get_last_target_status.
11436 * infrun.c (init_wait_for_inferior): Use
11437 nullify_last_target_wait_ptid.
11438 (get_last_target_status): Handle nullptr arguments.
11439 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
11440 (print_stop_event): Don't pass a ptid to get_last_target_status.
11441 (normal_stop): Don't pass a ptid to get_last_target_status.
11442 * infrun.h (get_last_target_status, set_last_target_status): Move
11443 comments here and update.
11444 (nullify_last_target_wait_ptid): Declare.
11445 * linux-fork.c (fork_load_infrun_state): Remove local extern
11446 declaration of nullify_last_target_wait_ptid.
11447 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
11448 to get_last_target_status.
11449
f3f8ece4
PA
114502020-01-10 Pedro Alves <palves@redhat.com>
11451
11452 * gdbthread.h (scoped_restore_current_thread)
11453 <dont_restore, restore, m_dont_restore>: Declare.
11454 * thread.c (thread_alive): Add assertion. Return bool.
11455 (switch_to_thread_if_alive): New.
11456 (prune_threads): Switch inferior/thread.
11457 (print_thread_info_1): Switch thread before calling target methods.
11458 (scoped_restore_current_thread::restore): New, factored out from
11459 ...
11460 (scoped_restore_current_thread::~scoped_restore_current_thread):
11461 ... this.
11462 (scoped_restore_current_thread::scoped_restore_current_thread):
11463 Add assertion.
11464 (thread_apply_all_command, thread_select): Use
11465 switch_to_thread_if_alive.
11466 * infrun.c (proceed, restart_threads, handle_signal_stop)
11467 (switch_back_to_stepped_thread): Switch current thread before
11468 calling target methods.
11469
db2d40f7
PA
114702020-01-10 Pedro Alves <palves@redhat.com>
11471
11472 * inferior.c (switch_to_inferior_no_thread): New function,
11473 factored out from ...
11474 (inferior_command): ... here.
11475 * inferior.h (switch_to_inferior_no_thread): Declare.
11476 * mi/mi-main.c (run_one_inferior): Use
11477 switch_to_inferior_no_thread.
11478
bd420a2d
PA
114792020-01-10 Pedro Alves <palves@redhat.com>
11480
11481 * infcmd.c (kill_command): Remove dead code.
11482
ddf5db90
PA
114832020-01-10 Pedro Alves <palves@redhat.com>
11484
11485 * remote.c (remote_target::mourn_inferior): No longer check
11486 whether the target is running.
11487
5018ce90
PA
114882020-01-10 Pedro Alves <palves@redhat.com>
11489
11490 * corelow.c (core_target::has_execution): Change parameter type to
11491 inferior pointer.
11492 * inferior.c (number_of_live_inferiors): Use
11493 inferior::has_execution instead of target_has_execution_1.
11494 * inferior.h (inferior::has_execution): New.
11495 * linux-thread-db.c (thread_db_target::update_thread_list): Use
11496 inferior::has_execution instead of target_has_execution_1.
11497 * process-stratum-target.c
11498 (process_stratum_target::has_execution): Change parameter type to
11499 inferior pointer. Check the inferior's PID instead of
11500 inferior_ptid.
11501 * process-stratum-target.h
11502 (process_stratum_target::has_execution): Change parameter type to
11503 inferior pointer.
11504 * record-full.c (record_full_core_target::has_execution): Change
11505 parameter type to inferior pointer.
11506 * target.c (target_has_execution_1): Change parameter type to
11507 inferior pointer.
11508 (target_has_execution_current): Adjust.
11509 * target.h (target_ops::has_execution): Change parameter type to
11510 inferior pointer.
11511 (target_has_execution_1): Change parameter type to inferior
11512 pointer. Change return type to bool.
11513 * tracefile.h (tracefile_target::has_execution): Change parameter
11514 type to inferior pointer.
11515
74375d18
PA
115162020-01-10 Pedro Alves <palves@redhat.com>
11517
11518 * exceptions.c (print_flush): Remove current_top_target() check.
11519
acdf84a6
PA
115202020-01-10 Pedro Alves <palves@redhat.com>
11521
11522 * remote.c (show_remote_exec_file): Show the current inferior's
11523 exec-file instead of the command variable's value.
11524
ec506636
PA
115252020-01-10 Pedro Alves <palves@redhat.com>
11526
11527 * record-full.c (record_full_resume_ptid): New global.
11528 (record_full_target::resume): Set it.
11529 (record_full_wait_1): Use record_full_resume_ptid instead of
11530 inferior_ptid.
11531
873657b9
PA
115322020-01-10 Pedro Alves <palves@redhat.com>
11533
11534 * gdbthread.h (scoped_restore_current_thread)
11535 <dont_restore, restore, m_dont_restore>: Declare.
11536 * thread.c (thread_alive): Add assertion. Return bool.
11537 (switch_to_thread_if_alive): New.
11538 (prune_threads): Switch inferior/thread.
11539 (print_thread_info_1): Switch thread before calling target methods.
11540 (scoped_restore_current_thread::restore): New, factored out from
11541 ...
11542 (scoped_restore_current_thread::~scoped_restore_current_thread):
11543 ... this.
11544 (scoped_restore_current_thread::scoped_restore_current_thread):
11545 Add assertion.
11546 (thread_apply_all_command, thread_select): Use
11547 switch_to_thread_if_alive.
11548
7f0ae84c
GB
115492020-01-10 George Barrett <bob@bob131.so>
11550
11551 * stap-probe.c (stap_modify_semaphore): Don't check for null
11552 semaphores.
11553 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
11554 for null semaphores.
11555
f5a7c406
AB
115562020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11557
11558 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
11559 all source windows, and maintain horizontal scroll status while
11560 doing so.
11561
9ae6bf64
TT
115622020-01-09 Tom Tromey <tom@tromey.com>
11563
11564 PR tui/18932:
11565 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
11566 update_source_window, not print_source_lines.
11567
b2efe70c
AB
115682020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11569
11570 * tui/tui.c (tui_enable): Register tui hooks after calling
11571 tui_display_main.
11572
5f23a082
CB
115732020-01-09 Christian Biesinger <cbiesinger@google.com>
11574
11575 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
11576
3061113b
SM
115772020-01-08 Simon Marchi <simon.marchi@efficios.com>
11578
11579 * thread.c (print_thread_info_1): Fix indentation.
11580
57d75002
CB
115812020-01-09 Christian Biesinger <cbiesinger@google.com>
11582
11583 * symtab.c (general_symbol_info::compute_and_set_names): Move the
11584 unique_xmalloc_ptr outside the if to always free the demangled name.
11585
6a053cb1
TT
115862020-01-08 Tom Tromey <tromey@adacore.com>
11587
11588 * xcoffread.c (enter_line_range, read_xcoff_symtab)
11589 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
11590 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
11591 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
11592 Remove.
11593 (section_offsets): New typedef.
11594 * symtab.c (fixup_section, get_msymbol_address): Update.
11595 * symmisc.c (dump_msymbols): Update.
11596 * symfile.h (relative_addr_info_to_section_offsets)
11597 (symfile_map_offsets_to_segments): Update.
11598 * symfile.c (build_section_addr_info_from_objfile)
11599 (init_objfile_sect_indices): Update.
11600 (struct place_section_arg): Change type of "offsets".
11601 (place_section): Update.
11602 (relative_addr_info_to_section_offsets): Change type of
11603 "section_offsets". Remove "num_sections" parameter.
11604 (default_symfile_offsets, syms_from_objfile_1)
11605 (set_objfile_default_section_offset): Update.
11606 (reread_symbols): No need to preserve section offsets by hand.
11607 (symfile_map_offsets_to_segments): Change type of "offsets".
11608 * stap-probe.c (relocate_address): Update.
11609 * stabsread.h (process_one_symbol): Update.
11610 * solib-target.c (struct lm_info_target) <offsets>: Change type.
11611 (solib_target_relocate_section_addresses): Update.
11612 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
11613 Update.
11614 * solib-frv.c (frv_relocate_main_executable): Update.
11615 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
11616 * solib-aix.c (solib_aix_get_section_offsets): Change return
11617 type.
11618 (solib_aix_solib_create_inferior_hook): Update.
11619 * remote.c (remote_target::get_offsets): Update.
11620 * psymtab.c (find_pc_sect_psymtab): Update.
11621 * psympriv.h (struct partial_symbol) <address, text_low,
11622 text_high>: Update.
11623 * objfiles.h (obj_section_offset): Update.
11624 (struct objfile) <section_offsets>: Change type.
11625 <num_sections>: Remove.
11626 (objfile_relocate): Update.
11627 * objfiles.c (entry_point_address_query): Update
11628 (relocate_one_symbol): Change type of "section_offsets".
11629 (objfile_relocate1, objfile_relocate1): Change type of
11630 "new_offsets".
11631 (objfile_rebase1): Update.
11632 * mipsread.c (mipscoff_symfile_read): Update.
11633 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
11634 parameter.
11635 * mdebugread.c (parse_symbol): Change type of "section_offsets".
11636 (parse_external, psymtab_to_symtab_1): Update.
11637 * machoread.c (macho_symfile_offsets): Update.
11638 * ia64-tdep.c (ia64_find_unwind_table): Update.
11639 * hppa-tdep.c (read_unwind_info): Update.
11640 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
11641 * dwarf2read.c (create_addrmap_from_index)
11642 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11643 (process_psymtab_comp_unit_reader, add_partial_symbol)
11644 (add_partial_subprogram, process_full_comp_unit)
11645 (read_file_scope, read_func_scope, read_lexical_block_scope)
11646 (read_call_site_scope, dwarf2_rnglists_process)
11647 (dwarf2_ranges_process, dwarf2_ranges_read)
11648 (dwarf_decode_lines_1, var_decode_location, new_symbol)
11649 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
11650 Update.
11651 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
11652 Update.
11653 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
11654 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
11655 (process_one_symbol): Change type of "section_offsets".
11656 * ctfread.c (get_objfile_text_range): Update.
11657 * coffread.c (coff_symtab_read, enter_linenos)
11658 (process_coff_symbol): Update.
11659 * coff-pe-read.c (add_pe_forwarded_sym): Update.
11660 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
11661
456e800a
TT
116622020-01-08 Tom Tromey <tromey@adacore.com>
11663
11664 * dwarf2read.c (parse_macro_definition): Use std::string.
11665 (parse_macro_definition): Likewise.
11666
6dfa2fc2
TT
116672020-01-08 Tom Tromey <tromey@adacore.com>
11668
11669 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
11670 (ATTR_ALLOC_CHUNK): Remove.
11671
421d1616
TT
116722020-01-08 Tom Tromey <tromey@adacore.com>
11673
11674 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
11675
43816ebc
TT
116762020-01-08 Tom Tromey <tromey@adacore.com>
11677
11678 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
11679 (dwarf2_compute_name, open_dwo_file): Likewise.
11680 (process_enumeration_scope): Use std::vector.
11681 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
11682 (partial_die_info::fixup, dwarf2_start_subfile)
11683 (guess_full_die_structure_name, dwarf2_name): Likewise.
11684 (determine_prefix): Update.
11685 (guess_full_die_structure_name): Make return type const.
11686 (partial_die_full_name): Return unique_xmalloc_ptr.
11687 (DW_FIELD_ALLOC_CHUNK): Remove.
11688
4212d509
TT
116892020-01-07 Tom Tromey <tromey@adacore.com>
11690
11691 PR build/24937:
11692 * stap-probe.c (class stap_static_probe_ops): Add constructor.
11693
06a6207a
JT
116942020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
11695
11696 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
11697
153d79c4
AB
116982020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
11699
11700 * stack.c (print_frame_info): Move disassemble_next_line code
11701 inside source_print block.
11702
66182876
EZ
117032020-01-06 Eli Zaretskii <eliz@gnu.org>
11704
11705 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
11706 gdb/signals.h, as we are now using native signal symbols.
11707
cbfa8581
SV
117082020-01-06 Shahab Vahedi <shahab@synopsys.com>
11709
11710 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
11711 overflow by an early check of content vs threshold.
aac66a4c 11712 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
11713 Likewise.
11714
3f602821
EZ
117152020-01-06 Eli Zaretskii <eliz@gnu.org>
11716
11717 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
11718
a08c904d
JT
117192020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
11720
11721 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
11722 export table if no section contains it's RVA.
11723
89a65580
EZ
117242020-01-06 Eli Zaretskii <eliz@gnu.org>
11725
11726 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
11727
8b7fcda2
HD
117282020-01-06 Hannes Domani <ssbssa@yahoo.de>
11729
11730 * source.c (print_source_lines_base): Set last_line_listed.
11731
a61b4f69
SV
117322020-01-06 Shahab Vahedi <shahab@synopsys.com>
11733
11734 * tui/tui-disasm.c: Remove trailing spaces.
11735
559e7e50
EZ
117362020-01-06 Eli Zaretskii <eliz@gnu.org>
11737 Pedro Alves <palves@redhat.com>
11738
11739 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
11740 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
11741 (windows_gdb_signal_to_target): New function, uses the above
11742 enumeration to convert GDB internal signal codes to equivalent
11743 Windows codes.
11744 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
11745 * windows-nat.c: Include "gdb_wait.h".
11746 (get_windows_debug_event): Extract the fatal exception from the
11747 exit status and convert to the equivalent Posix signal number.
11748 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
11749 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
11750 * gdbsupport/gdb_wait.c: New file, implements
11751 windows_status_to_termsig.
11752 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
11753 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
11754
f2302a34
AB
117552020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
11756
11757 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
11758 show_layout.
11759
6a5206eb
LM
117602020-01-05 Luis Machado <luis.machado@linaro.org>
11761
11762 * aarch64-linux-nat.c
11763 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
11764 and bfd_mach_aarch64.
11765
6ec1d75e
PW
117662020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11767
11768 * ui-file.c (stdio_file::can_emit_style_escape)
11769 (tee_file::can_emit_style_escape): Ensure style is used also on
11770 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
11771 to gdb_stdout.
11772 * main.c (set_gdb_data_directory): Use file style to output the
11773 warning that the given pathname is not a directory.
11774 * top.c (show_history_filename, gdb_safe_append_history)
11775 (show_gdb_datadir): Use file style.
11776
44f81a76
HD
117772020-01-03 Hannes Domani <ssbssa@yahoo.de>
11778
11779 * solib-target.c (struct lm_info_target):
11780 Change offsets to be a unique_xmalloc_ptr.
11781 (solib_target_relocate_section_addresses): Update.
11782
25057eb0
HD
117832020-01-03 Hannes Domani <ssbssa@yahoo.de>
11784
11785 * windows-nat.c (windows_clear_solib): Free so_list linked list.
11786
6e2118f5
BE
117872020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
11788
11789 * MAINTAINERS (Write After Approval): Add myself.
11790
8133c7dc
LM
117912020-01-02 Luis Machado <luis.machado@linaro.org>
11792
11793 * proc-service.c (get_ps_regcache): Remove reference to obsolete
11794 Cell BE architecture.
11795 * target.h (struct target_ops) <thread_architecture>: Likewise.
11796
48189bec
HD
117972020-01-01 Hannes Domani <ssbssa@yahoo.de>
11798
11799 * Makefile.in: Use INSTALL_PROGRAM_ENV.
11800
ead1063b
HD
118012020-01-01 Hannes Domani <ssbssa@yahoo.de>
11802
11803 * MAINTAINERS (Write After Approval): Add myself.
11804
e5d78223
JB
118052020-01-01 Joel Brobecker <brobecker@adacore.com>
11806
11807 * gdbarch.sh: Update copyright year range of generated files.
11808
b811d2c2
JB
118092020-01-01 Joel Brobecker <brobecker@adacore.com>
11810
11811 Update copyright year range in all GDB files.
11812
5f4def5c
JB
118132020-01-01 Joel Brobecker <brobecker@adacore.com>
11814
11815 * copyright.py: Convert to Python 3.
11816
51fd4002
JB
118172020-01-01 Joel Brobecker <brobecker@adacore.com>
11818
11819 * copyright.py: Adapt after move of gnulib directory from gdb
11820 directory to toplevel directory.
11821
5fb651f2
JB
118222020-01-01 Joel Brobecker <brobecker@adacore.com>
11823
11824 * copyright.py (main): Exit if run from the wrong directory.
11825
5dd8bf88
JB
118262020-01-01 Joel Brobecker <brobecker@adacore.com>
11827
11828 * top.c (print_gdb_version): Change copyright year to 2020.
11829
9f71dacb 118302020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 11831
9f71dacb 11832 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 11833
9f71dacb 11834For older changes see ChangeLog-2019.
c906108c
SS
11835\f
11836Local Variables:
11837mode: change-log
11838left-margin: 8
11839fill-column: 74
11840version-control: never
57da7796 11841coding: utf-8
c906108c 11842End: