]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
gas: Fix internal error on long local labels
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
ed908db6
VC
12020-08-06 Victor Collod <vcollod@nvidia.com>
2
3 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
4
b5582ab7
KB
52020-08-05 Kevin Buettner <kevinb@redhat.com>
6
7 * corelow.c (core_target::build_file_mappings): Don't output
8 null pathname in warning.
9
ea946b86
SM
102020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
11
12 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
13 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
14 gdb.dwarf2/dw2-single-line-discriminators.exp,
15 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
16
57d02173
TT
172020-08-05 Tom Tromey <tromey@adacore.com>
18
19 PR rust/26197:
20 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
21 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
22 Fix off-by-one and type size errors in ordinary case.
23
5555c86d
TV
242020-08-05 Tom de Vries <tdevries@suse.de>
25
26 * gdbtypes.c (type_not_allocated, type_not_associated): Use
27 "prop->const_val () == 0" instead of "prop->const_val () != 0".
28
97916bfe
SM
292020-08-04 Simon Marchi <simon.marchi@efficios.com>
30
31 * frame.h (frame_id_p): Return bool.
32 (frame_id_artificial_p): Return bool.
33 (frame_id_eq): Return bool.
34 (has_stack_frames): Return bool.
35 (get_selected_frame): Fix typo in comment.
36 (get_frame_pc_if_available): Return bool.
37 (get_frame_address_in_block_if_available): Return bool.
38 (get_frame_func_if_available): Return bool.
39 (read_frame_register_unsigned): Return bool.
40 (get_frame_register_bytes): Return bool.
41 (safe_frame_unwind_memory): Return bool.
42 (deprecated_frame_register_read): Return bool.
43 (frame_unwinder_is): Return bool.
44 * frame.c (struct frame_info) <prev_arch::p>: Change type to
45 bool.
46 <this_id::p>: Likewise.
47 <prev_p>: Likewise.
48 (frame_stash_add): Return bool.
49 (get_frame_id): Use bool.
50 (frame_id_build_special) Use bool.
51 (frame_id_build_unavailable_stack): Use bool.
52 (frame_id_build): Use bool.
53 (frame_id_p): Return bool, use true/false instead of 1/0.
54 (frame_id_artificial_p): Likewise.
55 (frame_id_eq): Likewise.
56 (frame_id_inner): Likewise.
57 (get_frame_func_if_available): Likewise.
58 (read_frame_register_unsigned): Likewise.
59 (deprecated_frame_register_read): Likewise.
60 (get_frame_register_bytes): Likewise.
61 (has_stack_frames): Likewise.
62 (inside_main_func): Likewise.
63 (inside_entry_func): Likewise.
64 (get_frame_pc_if_available): Likewise.
65 (get_frame_address_in_block_if_available): Likewise.
66 (frame_unwinder_is): Likewise.
67 (safe_frame_unwind_memory): Likewise.
68 (frame_unwind_arch): Likewise.
69
fedfee88
SM
702020-08-04 Simon Marchi <simon.marchi@efficios.com>
71
72 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
73 type to cached_copy_status.
74 (fprintf_frame): Adjust.
75 (get_frame_func_if_available): Adjust.
76 (frame_cleanup_after_sniffer): Adjust.
77
6cfa9b59
MW
782020-08-04 Mark Wielaard <mark@klomp.org>
79
80 * MAINTAINERS (Write After Approval): Update email address.
81
66d6346b
SM
822020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
83
84 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
85 dynamic_prop::const_val.
86
8a6d5e35
SM
872020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
88
89 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
90 dynamic_prop::kind.
91
51d6067d
SM
922020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
93
94 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
95
b26e2ae7
JM
962020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
97
98 * configure.tgt: Set gdb_sim for bpf-*-* targets.
99
39791af2
JM
1002020-08-04 Weimin Pan <weimin.pan@oracle.com>
101 Jose E. Marchesi <jose.marchesi@oracle.com>
102
103 * configure.tgt: Add entry for bpf-*-*.
104 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
105 (ALLDEPFILES): Add bpf-tdep.c.
106 * bpf-tdep.c: New file.
107 * MAINTAINERS: Add bpf target and maintainer.
108 * NEWS: Mention the support for the new target.
109
521894aa
TV
1102020-08-04 Tom de Vries <tdevries@suse.de>
111
112 PR symtab/23270
113 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
114 Error.
115
5d6356e9
JB
1162020-08-03 John Baldwin <jhb@FreeBSD.org>
117
118 * syscalls/freebsd.xml: Regenerate.
119
0cf82b81
JB
1202020-08-03 John Baldwin <jhb@FreeBSD.org>
121
122 * syscalls/update-freebsd.sh: Fix usage and year range.
123
8f34b746
TV
1242020-08-03 Tom de Vries <tdevries@suse.de>
125
126 PR symtab/26333
127 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
128 DW_LNE_lo_user/DW_LNE_hi_user range.
129
5e500d33
SM
1302020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
131
132 PR ada/26318
133 * ada-lang.c (ada_modulus): Return 0 if property is not of const
134 kind.
135
78319c15
TBA
1362020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
137
138 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
139
4c55e970
TBA
1402020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
141
142 * breakpoint.c (set_breakpoint_condition): Update the condition
143 expressions after checking that the input condition string parses
144 successfully and does not contain junk at the end.
145
1e620590
TBA
1462020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
147
148 * breakpoint.c (set_breakpoint_condition): Update the
149 condition string after parsing the new condition successfully.
150
c8693053
RO
1512020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
152
153 * proc-api.c (_STRUCTURED_PROC): Don't define.
154 * proc-events.c: Likewise.
155 * proc-flags.c: Likewise.
156 * proc-why.c: Likewise.
157 * procfs.c: Likewise.
158
159 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
160 * configure, config.in: Regenerate.
161
5a99adb8
TV
1622020-07-30 Tom de Vries <tdevries@suse.de>
163
164 PR build/26320
165 * ui-style.h (struct ui_file_style::color): Wrap m_value and
166 m_red/m_green/m_blue in a union.
167
8ba83e91
TV
1682020-07-29 Tom de Vries <tdevries@suse.de>
169
170 PR tdep/26280
171 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
172
f75a0693
AB
1732020-07-28 Tom Tromey <tromey@adacore.com>
174
175 PR symtab/26270:
176 * symtab.h (find_pc_partial_function_sym): Declare.
177 * cli/cli-cmds.c (disassemble_command): Use
178 find_pc_partial_function_sym. Check asm_demangle.
179 * blockframe.c (cache_pc_function_sym): New global.
180 (cache_pc_function_name): Remove.
181 (clear_pc_function_cache): Update.
182 (find_pc_partial_function_sym): New function, from
183 find_pc_partial_function.
184 (find_pc_partial_function): Rewrite using
185 find_pc_partial_function_sym.
186
16f3242c
TT
1872020-07-28 Tom Tromey <tromey@adacore.com>
188
189 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
190 help. Add usage.
191
4888741a
TT
1922020-07-28 Tom Tromey <tromey@adacore.com>
193
194 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
195 <DW_OP_GNU_variable_value>: Cast to address type.
196
4d46f402
KR
1972020-07-28 Kamil Rytarowski <n54@gmx.com>
198
199 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
200 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
201 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
202 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
203 (nbsd_get_siginfo_type): New.
204 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
205 (_initialize_nbsd_tdep): New.
206
d70f978b
L
2072020-07-28 H.J. Lu <hongjiu.lu@intel.com>
208
209 PR binutils/26301
210 * configure: Regenerated.
211
377170fa
L
2122020-07-28 H.J. Lu <hongjiu.lu@intel.com>
213
214 PR binutils/26301
215 * configure: Regenerated.
216
43d5901d
AB
2172020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
218
219 * python/py-frame.c: Remove 'user-regs.h' include.
220 (frapy_read_register): Rewrite to make use of
221 gdbpy_parse_register_id.
222 * python/py-registers.c (gdbpy_parse_register_id): New function,
223 moved here from python/py-unwind.c. Updated the return type, and
224 also accepts register descriptor objects.
225 * python/py-unwind.c: Remove 'user-regs.h' include.
226 (pyuw_parse_register_id): Moved to python/py-registers.c.
227 (unwind_infopy_add_saved_register): Update to use
228 gdbpy_parse_register_id.
229 (pending_framepy_read_register): Likewise.
230 * python/python-internal.h (gdbpy_parse_register_id): Declare.
231
14fa8fb3
AB
2322020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
233
234 * python/py-registers.c: Add 'user-regs.h' include.
235 (register_descriptor_iter_find): New function.
236 (register_descriptor_iterator_object_methods): New static global
237 methods array.
238 (register_descriptor_iterator_object_type): Add pointer to methods
239 array.
240
ddce1758
JB
2412020-07-27 John Baldwin <jhb@FreeBSD.org>
242
243 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
244 for all architectures on FreeBSD 11.3 and later.
245
a4089f52
TT
2462020-07-27 Tom Tromey <tromey@adacore.com>
247
248 * gcore.h (load_corefile): Don't declare.
249
95420d30
TV
2502020-07-27 Tom de Vries <tdevries@suse.de>
251
252 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
253 * config.in: Regenerate.
254 * configure: Regenerate.
255
05a6b8c2
EZ
2562020-07-26 Eli Zaretskii <eliz@gnu.org>
257
258 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
259 ws2tcpip.h. When checking whether socklen_t type is defined, use
260 ws2tcpip.h if it is available and sys/socket.h isn't.
261 * configure: Regenerate.
262 * config.in: Regenerate.
263
e79eb02f
AB
2642020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
265
266 PR fortran/23051
267 PR fortran/26139
268 * valops.c (value_ind): Pass address to
269 readjust_indirect_value_type.
270 * value.c (readjust_indirect_value_type): Make parameter
271 non-const, and add extra address parameter. Resolve original type
272 before using it.
273 * value.h (readjust_indirect_value_type): Update function
274 signature and comment.
275
876518dd
TV
2762020-07-25 Tom de Vries <tdevries@suse.de>
277
278 PR symtab/26243
279 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
280 entries.
281
f6720b1c
AM
2822020-07-24 Aaron Merey <amerey@redhat.com>
283
284 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
285 * configure: Rebuild.
286
513487e1
KB
2872020-07-23 Kevin Buettner <kevinb@redhat.com>
288
289 PR corefiles/26294
290 * corelow.c (_initialize_corelow): Add period to help text
291 for "maintenance print core-file-backed-mappings".
292
e7bc9db8
PA
2932020-07-23 Pedro Alves <pedro@palves.net>
294
295 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
296 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
297 meanwhile.
298 * frame.c (frame_cache_generation, get_frame_cache_generation):
299 New.
300 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
301 (get_prev_frame_if_no_cycle): On exception, don't touch
302 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
303 * frame.h (get_frame_cache_generation): Declare.
304
90fcc466
TV
3052020-07-23 Tom de Vries <tdevries@suse.de>
306
307 PR tui/26282
308 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
309 New default constructor.
310
78344df7
AB
3112020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
312
313 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
314 exclude non-statement entries.
315
b089853a
KB
3162020-07-22 Kevin Buettner <kevinb@redhat.com>
317
318 * NEWS (New commands): Mention new command
319 "maintenance print core-file-backed-mappings".
320
09c2f5d4
KB
3212020-07-22 Kevin Buettner <kevinb@redhat.com>
322
323 * corelow.c (gdbcmd.h): Include.
324 (core_target::info_proc_mappings): New method.
325 (get_current_core_target): New function.
326 (maintenance_print_core_file_backed_mappings): New function.
327 (_initialize_corelow): Add core-file-backed-mappings to
328 "maint print" commands.
329
9c5ec5c2
KB
3302020-07-22 Kevin Buettner <kevinb@redhat.com>
331
332 * linux-tdep.c (dump_note_entry_p): New function.
333 (linux_dump_mapping_p_ftype): New typedef.
334 (linux_find_memory_regions_full): Add new parameter,
335 should_dump_mapping_p.
336 (linux_find_memory_regions): Adjust call to
337 linux_find_memory_regions_full.
338 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
339 call to linux_find_memory_regions_full.
340
db082f59
KB
3412020-07-22 Kevin Buettner <kevinb@redhat.com>
342
343 * corelow.c (solist.h, unordered_map): Include.
344 (class core_target): Add field m_core_file_mappings and
345 method build_file_mappings.
346 (core_target::core_target): Call build_file_mappings.
347 (core_target::~core_target): Free memory associated with
348 m_core_file_mappings.
349 (core_target::build_file_mappings): New method.
350 (core_target::xfer_partial): Use m_core_file_mappings
351 for memory transfers.
352 * linux-tdep.c (linux_read_core_file_mappings): New
353 function.
354 (linux_core_info_proc_mappings): Rewrite to use
355 linux_read_core_file_mappings.
356 (linux_init_abi): Register linux_read_core_file_mappings.
357
7e183d27
KB
3582020-07-22 Kevin Buettner <kevinb@redhat.com>
359
360 * arch-utils.c (default_read_core_file_mappings): New function.
361 * arch-utils.c (default_read_core_file_mappings): Declare.
362 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
363 * gdbarch.h, gdbarch.c: Regenerate.
364
2735d421
KB
3652020-07-22 Kevin Buettner <kevinb@redhat.com>
366
367 PR corefiles/25631
368 * corelow.c (core_target:xfer_partial): Revise
369 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
370 case after first checking the stratum beneath the core
371 target.
372 (has_all_memory): Return true.
373 * target.c (raw_memory_xfer_partial): Revise comment
374 regarding use of has_all_memory.
375
e56cb451
KB
3762020-07-22 Kevin Buettner <kevinb@redhat.com>
377
378 * exec.h (section_table_xfer_memory): Revise declaration,
379 replacing section name parameter with an optional callback
380 predicate.
381 * exec.c (section_table_xfer_memory): Likewise.
382 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
383 of section_table_xfer_memory.
384
32fa152e
TT
3852020-07-22 Tom Tromey <tromey@adacore.com>
386
387 * mi/mi-cmd-stack.c (list_args_or_locals): Use
388 lookup_symbol_search_name.
389
a67a1c41
AB
3902020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
391
392 * python/py-registers.c (gdbpy_register_object_data_init): Remove
393 redundant local variable.
394 (gdbpy_get_register_descriptor): Extract descriptor vector as a
395 reference, not pointer, update code accordingly.
396
a7b4ff4f
SM
3972020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
398 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
399
400 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
401 * jit.c (jit_breakpoint_re_set_internal): Use the
402 `skip_jit_symbol_lookup` field.
403
2340e834
SM
4042020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
405 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
406
407 * jit.c (jit_read_descriptor): Define the descriptor address once,
408 use twice.
409 (jit_breakpoint_deleted): Move the declaration of the loop variable
410 `iter` into the loop header.
411 (jit_breakpoint_re_set_internal): Move the declaration of the local
412 variable `objf_data` to the first point of definition.
413 (jit_event_handler): Move the declaration of local variables
414 `code_entry`, `entry_addr`, and `objf` to their first point of use.
415 Rename `objf` to `jited`.
416
c1072906
SM
4172020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
418
419 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
420 Remove.
421 * jit.c (get_jiter_objfile_data): Update.
422
c8474dc3
TBA
4232020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
424 Simon Marchi <simon.marchi@polymtl.ca>
425
426 * jit.c (struct jit_program_space_data): Remove.
427 (jit_program_space_key): Remove.
428 (jiter_objfile_data::~jiter_objfile_data): Remove program space
429 stuff.
430 (get_jit_program_space_data): Remove.
431 (jit_breakpoint_deleted): Iterate on all of the program space's
432 objfiles.
433 (jit_inferior_init): Likewise.
434 (jit_breakpoint_re_set_internal): Likewise. Also change return
435 type to void.
436 (jit_breakpoint_re_set): Pass current_program_space to
437 jit_breakpoint_re_set_internal.
438
77208eb7
SM
4392020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
440
441 * jit.h (struct jiter_objfile_data) <cached_code_address,
442 jit_breakpoint>: Move to here from ...
443 * jit.c (jit_program_space_data): ... here.
444 (jiter_objfile_data::~jiter_objfile_data): Update.
445 (jit_breakpoint_deleted): Update.
446 (jit_breakpoint_re_set_internal): Update.
447
8c1c720f
SM
4482020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
449
450 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
451 checks.
452 (jit_read_descriptor): Remove NULL check.
453 (jit_event_handler): Add an assertion.
454
0e74a041
SM
4552020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
456
457 * jit.h (struct jit_objfile_data): Split into...
458 (struct jiter_objfile_data): ... this ...
459 (struct jited_objfile_data): ... and this.
460 * objfiles.h (struct objfile) <jit_data>: Remove.
461 <jiter_data, jited_data>: New fields.
462 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
463 (jiter_objfile_data::~jiter_objfile_data): ... this.
464 (get_jit_objfile_data): Rename to ...
465 (get_jiter_objfile_data): ... this.
466 (add_objfile_entry): Update.
467 (jit_read_descriptor): Use get_jiter_objfile_data.
468 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
469 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
470 (jit_inferior_exit_hook): Use objfile's jited_data field.
471
238b5c9f
SM
4722020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
473
474 * jit.h: Forward-declare `struct minimal_symbol`.
475 (struct jit_objfile_data): Migrate to here from jit.c; also add a
476 constructor, destructor, and an objfile* field.
477 * jit.c (jit_objfile_data): Remove.
478 (struct jit_objfile_data): Migrate from here to jit.h.
479 (jit_objfile_data::~jit_objfile_data): New destructor
480 implementation with code moved from free_objfile_data.
481 (free_objfile_data): Delete.
482 (get_jit_objfile_data): Update to use the jit_data field of objfile.
483 (jit_find_objf_with_entry_addr): Ditto.
484 (jit_inferior_exit_hook): Ditto.
485 (_initialize_jit): Remove the call to
486 register_objfile_data_with_cleanup.
487 * objfiles.h (struct objfile) <jit_data>: New field.
488
fe053b9e
TBA
4892020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
490
491 * jit.h: Forward-declare `struct objfile`.
492 (jit_event_handler): Add a second parameter, the JITer objfile.
493 * jit.c (jit_read_descriptor): Change the signature to take the
494 JITer objfile as an argument instead of the jit_program_space_data.
495 (jit_inferior_init): Update the call to jit_read_descriptor.
496 (jit_event_handler): Use the new JITer objfile argument when calling
497 jit_read_descriptor.
498 * breakpoint.c (handle_jit_event): Update the call to
499 jit_event_handler to pass the JITer objfile.
500
4cec0c66
JB
5012020-07-21 John Baldwin <jhb@FreeBSD.org>
502
503 * gdbarch.c: Regenerate.
504 * gdbarch.h: Regenerate.
505 * gdbarch.sh (handle_segmentation_fault): Remove method.
506 * infrun.c (handle_segmentation_fault): Remove.
507 (print_signal_received_reason): Remove call to
508 handle_segmentation_fault.
509
0e42f66a
JB
5102020-07-21 John Baldwin <jhb@FreeBSD.org>
511
512 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
513 Rename to sparc64_linux_report_signal_info and add siggnal
514 argument.
515 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
516 instead of sparc64_linux_handle_segmentation_fault.
517
77bdfeb2
JB
5182020-07-21 John Baldwin <jhb@FreeBSD.org>
519
520 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
521 i386_linux_report_signal_info instead of
522 i386_linux_handle_segmentation_fault.
523 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
524 to i386_linux_report_signal_info and add siggnal argument.
525 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
526 of i386_linux_handle_segmentation_fault.
527 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
528 to i386_linux_report_signal_info and add siggnal argument.
529
ad97bfc5
JB
5302020-07-21 John Baldwin <jhb@FreeBSD.org>
531
532 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
533 hook if present.
534
272bb05c
JB
5352020-07-21 John Baldwin <jhb@FreeBSD.org>
536
537 * gdbarch.c: Regenerate.
538 * gdbarch.h: Regenerate.
539 * gdbarch.sh (report_signal_info): New method.
540 * infrun.c (print_signal_received_reason): Invoke gdbarch
541 report_signal_info hook if present.
542
baf8791e
AB
5432020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
544
545 * python/py-registers.c : Add 'unordered_map' include.
546 (gdbpy_new_reggroup): Renamed to...
547 (gdbpy_get_reggroup): ...this. Update to only create register
548 group descriptors when needed.
549 (gdbpy_reggroup_iter_next): Update.
550
f7306dac
AB
5512020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
552
553 * python/py-registers.c (gdbpy_register_object_data): New static
554 global.
555 (gdbpy_register_object_data_init): New function.
556 (gdbpy_new_register_descriptor): Renamed to...
557 (gdbpy_get_register_descriptor): ...this, and update to reuse
558 existing register descriptors where possible.
559 (gdbpy_register_descriptor_iter_next): Update.
560 (gdbpy_initialize_registers): Register new gdbarch data.
561
05c309a8
SM
5622020-07-21 Simon Marchi <simon.marchi@efficios.com>
563
564 * linux-nat.c (stopped_pids): Make static.
565
d1fd641e
SM
5662020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
567
568 PR ada/26235
569 * gdbtypes.c (ada_discrete_type_low_bound,
570 ada_discrete_type_high_bound): Handle undefined bounds.
571
1de14d77
KR
5722020-07-21 Kamil Rytarowski <n54@gmx.com>
573
574 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
575 declaration.
576 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
577 function.
578
ed810cc7
JB
5792020-07-20 John Baldwin <jhb@FreeBSD.org>
580
581 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
582 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
583 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
584 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
585 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
586 method.
587
ae5369e7
LC
5882020-07-20 Ludovic Courtès <ludo@gnu.org>
589
590 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
591 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
592 which are deprecated in Guile 3.0.
593 * configure.ac (try_guile_versions): Add "guile-3.0".
594 * configure (try_guile_versions): Regenerate.
595 * NEWS: Update entry.
596
68cf161c
LC
5972020-07-20 Ludovic Courtès <ludo@gnu.org>
598 Doug Evans <dje@google.com>
599
600 PR gdb/21104
601 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
602 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
603 USING_GUILE_BEFORE_2_2.
604 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
605 Change type to 'scm_t_port_type *'.
606 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
607 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
608 parameter and honor it. Update callers.
609 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
610 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
611 functions.
612 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
613 USING_GUILE_BEFORE_2_2.
614 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
615 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
616 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
617 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
618 and 'SCM_PORT_TYPE'.
619 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
620 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
621 (gdbscm_memory_port_read, gdbscm_memory_port_write)
622 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
623 [!USING_GUILE_BEFORE_2_2]: New functions.
624 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
625 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
626 'gdbscm_memory_port_read'.
627 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
628 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
629 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
630 function.
631 (ioscm_init_memory_port): Remove.
632 (ioscm_init_memory_port_stream): New function
633 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
634 function.
635 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
636 Return scm_from_uint (0).
637 (gdbscm_set_memory_port_read_buffer_size_x)
638 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
639 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
640 Return scm_from_uint (0).
641 (gdbscm_set_memory_port_write_buffer_size_x)
642 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
643 * configure.ac (try_guile_versions): Add "guile-2.2".
644 * configure: Regenerate.
645 * NEWS: Add entry.
646
aee91db3
TT
6472020-07-18 Tom Tromey <tom@tromey.com>
648
649 * linux-nat.c (linux_multi_process): Remove.
650 (linux_nat_target::supports_multi_process): Return true.
651
0e267416
AB
6522020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
653
654 * arch/riscv.c (riscv_tdesc_cache): Change map type.
655 (riscv_lookup_target_description): Return pointer out of
656 unique_ptr.
657 * target-descriptions.c (allocate_target_description): Add
658 comment.
659 (target_desc_deleter::operator()): Likewise.
660 * target-descriptions.h (struct target_desc_deleter): Moved to
661 gdbsupport/tdesc.h.
662 (target_desc_up): Likewise.
663
f80c8ec4
TT
6642020-07-17 Tom Tromey <tromey@adacore.com>
665
666 * linux-nat.c (linux_nat_target::supports_non_stop)
667 (linux_nat_target::always_non_stop_p): Use "true".
668 (linux_nat_target::supports_disable_randomization): Use "true" and
669 "false".
670
d0ce17d8
CT
6712020-07-16 Caroline Tice <cmtice@google.com>
672
673 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
674 (RNGLIST_HEADER_SIZE64): New constant definition.
675 (struct dwop_section_names): Add rnglists_dwo.
676 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
677 (struct loclist_header): Rename to 'loclists_rnglists_header'.
678 (struct dwo_sections): Add rnglists field.
679 (read_attribut_reprocess): Add tag parameter.
680 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
681 (cu_debug_rnglists_section): New function (decl & definition).
682 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
683 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
684 die whose range is being checked; get rnglist section from
685 cu_debug_rnglists_section, to get from either objfile or dwo file as
686 appropriate. Add cases for DW_RLE_base_addressx,
687 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
688 the base address to DW_RLE_offset_pairs (not to all ranges), moving
689 test inside if-condition and updating complaint message.
690 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
691 dwarf2_rnglists_process.
692 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
693 dwarf2_ranges_process.
694 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
695 need_ranges_base and update comment appropriately. Also pass die tag
696 to dwarf2_ranges_read.
697 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
698 need_ranges_base and update comment appropriately. Also pass die tag
699 to dwarf2_ranges_process.
700 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
701 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
702 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
703 need_ranges_base and update comment appropriately. Also pass die tag
704 to read_attribute_reprocess and dwarf2_ranges_read.
705 (read_loclist_header): Rename function to read_loclists_rnglists_header,
706 and update function comment appropriately.
707 (read_loclist_index): Call read_loclists_rnglists_header instead of
708 read_loclist_header.
709 (read_rnglist_index): New function.
710 (read_attribute_reprocess): Add tag parameter. Add code for
711 DW_FORM_rnglistx, passing tag to read_rnglist_index.
712 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
713
3dcc261c
AB
7142020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
715
716 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
717 being resolved.
718
ccb9eba6
AB
7192020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
720
721 * arch-utils.c (show_architecture): Update formatting of messages.
722
cf88be68
SM
7232020-07-12 Simon Marchi <simon.marchi@efficios.com>
724
725 * gdbtypes.h (struct type) <bounds>: Handle array and string
726 types.
727 * ada-lang.c (assign_aggregate): Use type::bounds on
728 array/string type.
729 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
730 * c-varobj.c (c_number_of_children): Likewise.
731 (c_describe_child): Likewise.
732 * eval.c (evaluate_subexp_for_sizeof): Likewise.
733 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
734 (f_type_print_base): Likewise.
735 * f-valprint.c (f77_array_offset_tbl): Likewise.
736 (f77_get_upperbound): Likewise.
737 (f77_print_array_1): Likewise.
738 * guile/scm-type.c (gdbscm_type_range): Likewise.
739 * m2-typeprint.c (m2_array): Likewise.
740 (m2_is_long_set_of_type): Likewise.
741 * m2-valprint.c (get_long_set_bounds): Likewise.
742 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
743 * python/py-type.c (typy_range): Likewise.
744 * rust-lang.c (rust_internal_print_type): Likewise.
745 * type-stack.c (type_stack::follow_types): Likewise.
746 * valarith.c (value_subscripted_rvalue): Likewise.
747 * valops.c (value_cast): Likewise.
748
509971ae
SM
7492020-07-12 Simon Marchi <simon.marchi@efficios.com>
750
751 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
752 callers to use the equivalent accessor methods.
753
107406b7
SM
7542020-07-12 Simon Marchi <simon.marchi@efficios.com>
755
756 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
757 (struct type) <bit_stride>: New method.
758 (TYPE_BIT_STRIDE): Remove.
759 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
760
bb789949
SM
7612020-07-12 Simon Marchi <simon.marchi@efficios.com>
762
763 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
764 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
765 callers to use the equivalent accessor methods instead.
766
39498edb
SM
7672020-07-12 Simon Marchi <simon.marchi@efficios.com>
768
769 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
770 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
771 callers to use the equivalent accessor methods instead.
772
3b606f38
SM
7732020-07-12 Simon Marchi <simon.marchi@efficios.com>
774
775 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
776 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
777 to use dynamic_prop::kind.
778
064d9cb9
SM
7792020-07-12 Simon Marchi <simon.marchi@efficios.com>
780
781 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
782 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
783 to get the bound property's kind and check against
784 PROP_UNDEFINED.
785
5537ddd0
SM
7862020-07-12 Simon Marchi <simon.marchi@efficios.com>
787
788 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
789 all callers to use type::range_bounds followed by
790 dynamic_prop::{low,high}.
791
8c2e4e06
SM
7922020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
793
794 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
795 const_val, set_const_val, baton, set_locexpr, set_loclist,
796 set_addr_offset, variant_parts, set_variant_parts,
797 original_type, set_original_type>: New methods.
798 <kind>: Rename to...
799 <m_kind>: ... this. Update all users to use the new methods
800 instead.
801 <data>: Rename to...
802 <m_data>: ... this. Update all users to use the new methods
803 instead.
804
7c6f2712
SM
8052020-07-12 Simon Marchi <simon.marchi@efficios.com>
806
807 * gdbtypes.c (get_discrete_bounds): Return failure if
808 the range type's bounds are not both defined and constant
809 values.
810 (get_array_bounds): Update comment. Remove undefined bound check.
811
599088e3
SM
8122020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
813
814 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
815 the type::bounds method directly.
816
c4dfcb36
SM
8172020-07-12 Simon Marchi <simon.marchi@efficios.com>
818
819 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
820 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
821 are used to set the range type's bounds to use set_bounds.
822
0a278aa7
PW
8232020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
824
825 * exec.c (_initialize_exec): Update exec-file-mismatch help.
826
cce20f10
PA
8272020-07-10 Pedro Alves <pedro@palves.net>
828
829 * gdbthread.h (inferior_ref): Define.
830 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
831 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
832 * thread.c
833 (scoped_restore_current_thread::restore):
834 Adjust to gdb::ref_ptr.
835 (scoped_restore_current_thread::~scoped_restore_current_thread):
836 Remove manual decref handling.
837 (scoped_restore_current_thread::scoped_restore_current_thread):
838 Adjust to use
839 inferior_ref::new_reference/thread_info_ref::new_reference.
840 Incref the thread before calling get_frame_id instead of after.
841 Let TARGET_CLOSE_ERROR propagate.
842
6d7aa592
PA
8432020-07-10 Pedro Alves <pedro@palves.net>
844
845 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
846 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
847 NOT_AVAILABLE_ERROR.
848 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
849 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
850
b3e3a4c1
SM
8512020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
852 Pedro Alves <pedro@palves.net>
853
854 PR gdb/26199
855 * infrun.c (threads_are_resumed_pending_p): Delete.
856 (do_target_wait): Remove threads_are_executing and
857 threads_are_resumed_pending_p checks from the inferior_matches
858 lambda. Update comments.
859
d6cc5d98
PA
8602020-07-10 Pedro Alves <pedro@palves.net>
861
862 PR gdb/26199
863 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
864 executing threads.
865
7d3badc6
PA
8662020-07-10 Pedro Alves <pedro@palves.net>
867
868 PR gdb/26199
869 * infrun.c (handle_no_resumed): Handle multiple targets.
870
42bd97a6
PA
8712020-07-10 Pedro Alves <pedro@palves.net>
872
873 PR gdb/26199
874 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
875 target_is_async_p.
876
43667cc6
PA
8772020-07-10 Pedro Alves <pedro@palves.net>
878
879 PR gdb/26199
880 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
881 threads, not all threads.
882
96118d11
PA
8832020-07-10 Pedro Alves <pedro@palves.net>
884
885 PR gdb/26199
886 * remote.c (remote_target::open_1): Pass remote target pointer as
887 data to create_async_event_handler.
888 (remote_async_inferior_event_handler): Mark async event handler
889 before returning if the remote target still has either pending
890 events or unacknowledged notifications.
891
54904d81
JB
8922020-07-10 John Baldwin <jhb@FreeBSD.org>
893
894 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
895 declaration.
896 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
897 function.
898
f37e5866
JB
8992020-07-09 John Baldwin <jhb@FreeBSD.org>
900
901 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
902 inferior_ptid.
903
fc238d4a
JB
9042020-07-09 John Baldwin <jhb@FreeBSD.org>
905
906 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
907 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
908 AT_FREEBSD_PS_STRINGS.
909
6e2469ff
HD
9102020-07-08 Hannes Domani <ssbssa@yahoo.de>
911
912 * auto-load.c (auto_load_objfile_script_1): Convert drive part
913 of debugfile path on Windows.
914
d1076c41
JB
9152020-07-08 John Baldwin <jhb@FreeBSD.org>
916
917 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
918 argument to 'data'.
919
15f3b077
TT
9202020-07-08 Tom Tromey <tromey@adacore.com>
921
922 * ada-lang.c (ada_exception_message_1): Use read_memory.
923
9fc501fd
AB
9242020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
925
926 PR python/22748
927 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
928 special handling for inline frames.
929 * findvar.c (value_of_register_lazy): Skip inline frames when
930 creating lazy register values.
931 * frame.c (frame_id_computed_p): Delete definition.
932 * frame.h (frame_id_computed_p): Delete declaration.
933
64cb3757
AB
9342020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
935
936 * NEWS: Mention additions to Python API.
937 * python/py-arch.c (archpy_register_groups): New function.
938 (arch_object_methods): Add 'register_groups' method.
939 * python/py-registers.c (reggroup_iterator_object): New struct.
940 (reggroup_object): New struct.
941 (gdbpy_new_reggroup): New function.
942 (gdbpy_reggroup_to_string): New function.
943 (gdbpy_reggroup_name): New function.
944 (gdbpy_reggroup_iter): New function.
945 (gdbpy_reggroup_iter_next): New function.
946 (gdbpy_new_reggroup_iterator): New function
947 (gdbpy_initialize_registers): Register new types.
948 (reggroup_iterator_object_type): Define new Python type.
949 (gdbpy_reggroup_getset): New static global.
950 (reggroup_object_type): Define new Python type.
951 * python/python-internal.h
952
0f767f94
AB
9532020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
954
955 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
956 * python/py-arch.c (archpy_registers): New function.
957 (arch_object_methods): Add 'registers' method.
958 * python/py-registers.c: New file.
959 * python/python-internal.h
960 (gdbpy_new_register_descriptor_iterator): Declare.
961 (gdbpy_initialize_registers): Declare.
962 * python/python.c (do_start_initialization): Call
963 gdbpy_initialize_registers.
964 * NEWS: Mention additions to the Python API.
965
87dbc774
AB
9662020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
967
968 * NEWS: Mention new Python API method.
969 * python/py-unwind.c (pending_framepy_architecture): New function.
970 (pending_frame_object_methods): Add architecture method.
971
3bc98c0c
AB
9722020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
973
974 * gdbarch.c: Regenerate.
975 * gdbarch.h: Regenerate.
976 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
977 (gdbarch_data): Use internal_error for the case where
978 deprecated_set_gdbarch_data was originally needed.
979 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
980 and use passed in obstack.
981 (libunwind_frame_set_descr): Should no longer get back NULL from
982 gdbarch_data.
983 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
984 type.
985 * user-regs.c (user_regs_init): Update parameters, and use passed
986 in obstack.
987 (user_reg_add): Should no longer get back NULL from gdbarch_data.
988 (_initialize_user_regs): Register as a pre-init gdbarch data type.
989
d8cc8af6
TV
9902020-07-06 Tom de Vries <tdevries@suse.de>
991
992 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
993 End-Of-Sequence in lte_is_less_than.
994 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
995 "gdb: Don't reorder line table entries too much when sorting".
996
947f7597
TV
9972020-07-06 Tom de Vries <tdevries@suse.de>
998
999 PR tui/26205
1000 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
1001
1e7c1b22
TV
10022020-07-05 Tom de Vries <tdevries@suse.de>
1003
1004 PR build/26187
1005 * inferior.h (struct infcall_suspend_state_deleter): If available, use
1006 std::uncaught_exceptions instead of deprecated
1007 std::uncaught_exception.
1008
a36158ec
SM
10092020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1010
1011 * macroexp.h (macro_stringify): Return
1012 gdb::unique_xmalloc_ptr<char>.
1013 * macroexp.c (macro_stringify): Likewise.
1014 * macrotab.c (fixup_definition): Update.
1015
14d960c8
SM
10162020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1017
1018 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
1019 (lex_one_token): Update.
1020 * macroexp.c (struct macro_buffer) <release>: Return
1021 gdb::unique_xmalloc_ptr<char>.
1022 (macro_stringify): Update.
1023 (macro_expand): Update.
1024 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
1025 * macroexp.h (macro_expand_next): Likewise.
1026
211d5b1c
SM
10272020-07-02 Simon Marchi <simon.marchi@efficios.com>
1028
1029 * macroexp.h (macro_lookup_ftype): Remove.
1030 (macro_expand, macro_expand_once, macro_expand_next): Remove
1031 lookup function parameters, add scope parameter.
1032 * macroexp.c (scan, substitute_args, expand, maybe_expand,
1033 macro_expand, macro_expand_once, macro_expand_next): Likewise.
1034 * macroscope.h (standard_macro_lookup): Change parameter type
1035 to macro_scope.
1036 * macroscope.c (standard_macro_lookup): Likewise.
1037 * c-exp.y (lex_one_token): Update.
1038 * macrocmd.c (macro_expand_command): Likewise.
1039 (macro_expand_once_command): Likewise.
1040
b1a35af2
SM
10412020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1042
1043 * inf-loop.c (inferior_event_handler): Remove client_data param.
1044 * inf-loop.h (inferior_event_handler): Likewise.
1045 * infcmd.c (step_1): Adjust.
1046 * infrun.c (proceed): Adjust.
1047 (fetch_inferior_event): Remove client_data param.
1048 (infrun_async_inferior_event_handler): Adjust.
1049 * infrun.h (fetch_inferior_event): Remove `void *` param.
1050 * linux-nat.c (handle_target_event): Adjust.
1051 * record-btrace.c (record_btrace_handle_async_inferior_event):
1052 Adjust.
1053 * record-full.c (record_full_async_inferior_event_handler):
1054 Adjust.
1055 * remote.c (remote_async_inferior_event_handler): Adjust.
1056
1cdf9e33
TT
10572020-07-01 Tom Tromey <tom@tromey.com>
1058
1059 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
1060 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
1061
32c1e210
TT
10622020-07-01 Tom Tromey <tom@tromey.com>
1063
1064 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
1065 tui_gen_win_info.
1066 (tui_win_info::make_window): Merge with
1067 tui_gen_win_info::make_window.
1068 (tui_win_info::make_visible): Move from tui_gen_win_info.
1069 * tui/tui-win.c (tui_win_info::max_width): Move from
1070 tui_gen_win_info.
1071 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
1072 type.
1073 <window_factory>: Likewise.
1074 * tui/tui-layout.c (tui_win_info::resize): Move from
1075 tui_gen_win_info.
1076 (make_standard_window): Change return type.
1077 (get_locator_window, tui_get_window_by_name): Likewise.
1078 (tui_layout_window::apply): Remove a cast.
1079 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
1080 (struct tui_win_info): Merge with tui_gen_win_info.
1081 (struct tui_gen_win_info): Remove.
1082
a30cb6da
TT
10832020-07-01 Tom Tromey <tom@tromey.com>
1084
1085 * tui/tui-stack.h (struct tui_locator_window): Derive from
1086 tui_win_info.
1087 <do_scroll_horizontal, do_scroll_vertical>: New methods.
1088 <can_box>: New method.
1089
1eb2161f
TT
10902020-07-01 Tom Tromey <tom@tromey.com>
1091
1092 * tui/tui-stack.h (struct tui_locator_window): Remove body.
1093
7134f2eb
TT
10942020-07-01 Tom Tromey <tom@tromey.com>
1095
1096 * tui/tui-regs.c (tui_data_window::display_registers_from)
1097 (tui_data_window::display_registers_from)
1098 (tui_data_window::first_data_item_displayed)
1099 (tui_data_window::delete_data_content_windows): Update.
1100 (tui_data_window::refresh_window, tui_data_window::no_refresh):
1101 Remove.
1102 (tui_data_window::check_register_values): Update.
1103 (tui_data_item_window::rerender): Add parameters. Update.
1104 (tui_data_item_window::refresh_window): Remove.
1105 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
1106 virtual.
1107 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
1108 tui_gen_win_info.
1109 <refresh_window, max_height, min_height>: Remove.
1110 <rerender>: Add parameters.
1111 <x, y, visible>: New members.
1112 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
1113 <m_item_width>: New member.
1114
22b7b041
TT
11152020-07-01 Tom Tromey <tom@tromey.com>
1116
1117 * tui/tui-regs.c (tui_data_window::show_register_group)
1118 (tui_data_window::check_register_values): Update.
1119 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
1120 from item_no.
1121
c9753adb
TT
11222020-07-01 Tom Tromey <tom@tromey.com>
1123
1124 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
1125 useless "if".
1126
9ab26b4a
TT
11272020-07-01 Tom Tromey <tom@tromey.com>
1128
1129 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
1130 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
1131
e555083f
TT
11322020-07-01 Tom Tromey <tom@tromey.com>
1133
1134 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
1135 * tui/tui-winsource.h (enum tui_line_or_address_kind)
1136 (struct tui_line_or_address): Move from tui-data.h.
1137 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
1138 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
1139 (tui_cmd_window, tui_source_window_base, tui_source_window)
1140 (tui_disasm_window): Don't declare.
1141 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
1142 to tui-winsource.h.
1143 (SINGLE_KEY): Move to tui-stack.c.
1144
7a02bab7
TT
11452020-07-01 Tom Tromey <tom@tromey.com>
1146
1147 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
1148 std::string.
1149 * tui/tui-regs.c (class tab_expansion_file): New.
1150 (tab_expansion_file::write): New method.
1151 (tui_register_format): Change return type. Use
1152 tab_expansion_file.
1153 (tui_get_register, tui_data_window::display_registers_from)
1154 (tui_data_item_window::rerender): Update.
1155 * tui/tui-io.h (tui_expand_tabs): Don't declare.
1156 * tui/tui-io.c (tui_expand_tabs): Remove.
1157
ea68593b
TT
11582020-07-01 Tom Tromey <tom@tromey.com>
1159
1160 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
1161
a8caed5d
FS
11622020-07-01 Fangrui Song <maskray@google.com>
1163
1164 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
1165
9cdf9820
AKS
11662020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1167
1168 * dwarf2/read.c (set_die_type): Removed conditions to restrict
1169 forms for DW_AT_associated and DW_AT_allocated attributes,
1170 which is already checked in function attr_to_dynamic_prop.
1171
a1520ad8
TT
11722020-06-30 Tom Tromey <tromey@adacore.com>
1173
1174 * dwarf2/read.c (quirk_rust_enum): Correctly call
1175 alloc_rust_variant for default-less enum.
1176
5ac58899
TT
11772020-06-30 Tom Tromey <tromey@adacore.com>
1178
1179 PR build/26183:
1180 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
1181 gdb::to_string.
1182
19b187a9
SM
11832020-06-29 Simon Marchi <simon.marchi@efficios.com>
1184
1185 * gdbarch.sh (displaced_step_copy_insn): Update doc.
1186 * gdbarch.h: Re-generate.
1187
cd4c4c07
TT
11882020-06-28 Tom Tromey <tom@tromey.com>
1189
1190 * command.h (cmd_types): Remove.
1191 (cmd_type): Don't declare.
1192 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
1193 typedef.
1194 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
1195 * cli/cli-decode.c (cmd_type): Remove.
1196
05779d57
PA
11972020-06-27 Pedro Alves <palves@redhat.com>
1198
1199 * fork-child.c (prefork_hook): Adjust.
1200 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
1201 Delete.
1202 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
1203 * inferior.c (inferior::set_tty, inferior::tty): New methods.
1204 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
1205 Remove declarations.
1206 (struct inferior) <set_tty, tty>: New methods.
1207 (struct inferior) <terminal>: Rename to ...
1208 (struct inferior) <m_terminal>: ... this and make private.
1209 * main.c (captured_main_1): Adjust.
1210 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
1211 (mi_cmd_inferior_tty_show): Adjust.
1212 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
1213 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
1214
1776e3e5
NA
12152020-06-26 Nick Alcock <nick.alcock@oracle.com>
1216
1217 * configure.ac: Add --enable-libctf: handle --disable-static
1218 properly.
1219 * acinclude.m4: sinclude ../config/enable.m4.
1220 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
1221 (LIBCTF): Substitute in.
1222 (CTF_DEPS): New, likewise.
1223 (CLIBS): libctf needs symbols from libbfd: move earlier.
1224 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
1225 flags.
1226 * ctfread.c: Surround in ENABLE_LIBCTF.
1227 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
1228 * configure: Regenerate.
1229 * config.in: Likewise.
1230
58373b80
SM
12312020-06-25 Simon Marchi <simon.marchi@efficios.com>
1232
1233 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
1234
277474ee
SM
12352020-06-25 Simon Marchi <simon.marchi@efficios.com>
1236
1237 * inferior.h (struct inferior) <terminal>: Change type to
1238 gdb::unique_xmalloc_ptr<char>.
1239 * inferior.c (inferior::~inferior): Don't free inf->terminal.
1240 * infcmd.c (set_inferior_io_terminal): Don't free terminal
1241 field, adjust to unique pointer.
1242 (get_inferior_io_terminal): Adjust to unique pointer.
1243
6d74da72
AB
12442020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1245
1246 * riscv-tdep.c (riscv_print_registers_info): Loop over all
1247 registers, not just the known core set of registers.
1248
2e52d038
AB
12492020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1250
1251 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
1252 fflags, frm, and fcsr registers.
1253 (riscv_register_reggroup_p): Remove unknown CSRs from save and
1254 restore groups.
1255 (riscv_tdesc_unknown_reg): New function.
1256 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
1257 tdesc_use_registers.
1258 * riscv-tdep.h (struct gdbarch_tdep): Add
1259 unknown_csrs_first_regnum, unknown_csrs_count,
1260 duplicate_fflags_regnum, duplicate_frm_regnum, and
1261 duplicate_fcsr_regnum fields.
1262
be64fd07
AB
12632020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1264
1265 * target-descriptions.c (tdesc_use_registers): Add new parameter a
1266 callback, use the callback (when not null) to help number unknown
1267 registers.
1268 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
1269 (tdesc_use_registers): Add extra parameter to declaration.
1270
3b9fce96
AB
12712020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1272
1273 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
1274 in the file.
1275 (class riscv_pending_register_alias): Likewise.
1276 (riscv_register_feature::register_info): Change 'required_p' field
1277 to 'required', and change its type. Add 'check' member function.
1278 (riscv_register_feature::register_info::check): Define new member
1279 function.
1280 (riscv_xreg_feature): Change initialisation of 'required' field.
1281 (riscv_freg_feature): Likewise.
1282 (riscv_virtual_feature): Likewise.
1283 (riscv_csr_feature): Likewise.
1284 (riscv_check_tdesc_feature): Take extra parameter, the csr
1285 tdesc_feature, rewrite the function to use the new
1286 riscv_register_feature::register_info::check function.
1287 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
1288
865bad26
AB
12892020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1290
1291 * features/Makefile: Remove all references to the deleted files
1292 below.
1293 * features/riscv/32bit-csr.c: Deleted.
1294 * features/riscv/32bit-csr.xml: Deleted.
1295 * features/riscv/64bit-csr.c: Deleted.
1296 * features/riscv/64bit-csr.xml: Deleted.
1297 * features/riscv/rebuild-csr-xml.sh: Deleted.
1298
ed69cbc8
AB
12992020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1300
1301 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
1302 whitespace error for declaration of names member variable.
1303 (struct riscv_register_feature): Add new prefer_first_name member
1304 variable, and fix whitespace error in declaration of registers.
1305 (riscv_xreg_feature): Initialize prefer_first_name field.
1306 (riscv_freg_feature): Likewise.
1307 (riscv_virtual_feature): Likewise.
1308 (riscv_csr_feature): Likewise.
1309 (riscv_register_name): Expand on comments. Remove register name
1310 modifications for CSR and virtual registers.
1311
4445e8f5
AB
13122020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1313
1314 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
1315 errors.
1316
767a879e
AB
13172020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1318
1319 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
1320 riscv-opc.h.
1321 (class riscv_pending_register_alias): New class.
1322 (riscv_check_tdesc_feature): Take vector of pending aliases and
1323 populate it as appropriate.
1324 (riscv_setup_register_aliases): Delete.
1325 (riscv_gdbarch_init): Create vector of pending aliases and pass it
1326 to riscv_check_tdesc_feature in all cases. Use the vector to
1327 create the register aliases.
1328
bb6e55f3
RO
13292020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1330
1331 * sol2-tdep.c (sol2_static_transform_name): Remove.
1332 (sol2_init_abi): Don't register it.
1333 * gdbarch.sh (static_transform_name): Remove.
1334 * gdbarch.c, gdbarch.h: Regenerate.
1335
1336 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
1337 gdbarch_static_transform_name.
1338 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
1339 * stabsread.c (define_symbol) <'X'>: Remove.
1340 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
1341 handling.
1342 <'V'>: Likewise.
1343 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
1344 <'S'>: Remove call to gdbarch_static_transform_name.
1345
c6d36836
RO
13462020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1347
1348 * procfs.c (procfs_pre_trace): New function.
1349 (procfs_target::create_inferior): Pass it to fork_inferior.
1350
a7e6196b
RO
13512020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1352
1353 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
1354 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
1355 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
1356 sol2-tdep.o, sparc-sol2-tdep.o.
1357 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
1358 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
1359 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
1360 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
1361
d412e696
RO
13622020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1363
1364 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
1365 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
1366 Call sol2_init_abi.
1367 Remove calls to set_gdbarch_skip_solib_resolver,
1368 set_gdbarch_core_pid_to_str.
1369 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
1370 (i386_sol2_static_transform_name): Remove.
1371 (i386_sol2_init_abi): Call sol2_init_abi.
1372 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1373 set_gdbarch_static_transform_name,
1374 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1375 Use sol2_sigtramp_p.
1376 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
1377 (sol2_sigtramp_p): New function.
1378 (sol2_static_transform_name): New function.
1379 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
1380 (sol2_init_abi): New function.
1381 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
1382 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
1383 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
1384 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
1385 (sparc_sol2_static_transform_name): Remove.
1386 (sparc32_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,
1390 set_gdbarch_core_pid_to_str.
1391 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
1392 (sparc_sol2_static_transform_name): Remove
1393 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
1394 call sol2_sigtramp_p.
1395 (sparc64_sol2_init_abi): Call sol2_init_abi.
1396 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1397 set_gdbarch_static_transform_name,
1398 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1399
a8654e7d
PW
14002020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1401
1402 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
1403 * exec.c (validate_exec_file): If from_tty, set both
1404 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
1405 * symfile.c (symbol_file_add_with_addrs): if always_confirm
1406 and from_tty, unconditionally ask a confirmation.
1407
caa7fd04
AB
14082020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1409
1410 * target-descriptions.c (tdesc_architecture_name): Protect against
1411 NULL pointer dereference.
1412 (maint_print_xml_tdesc_cmd): New function.
1413 (_initialize_target_descriptions): Register new 'maint print
1414 xml-tdesc' command and give it the filename completer.
1415 * NEWS: Mention new 'maint print xml-tdesc' command.
1416
fbf42f4e
AB
14172020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1418
1419 * target-descriptions.c (class tdesc_compatible_info): New class.
1420 (struct target_desc): Change type of compatible vector.
1421 (tdesc_compatible_p): Update for change in type of
1422 target_desc::compatible.
1423 (tdesc_compatible_info_list): New function.
1424 (tdesc_compatible_info_arch_name): New function.
1425 (tdesc_add_compatible): Update for change in type of
1426 target_desc::compatible.
1427 (print_c_tdesc::visit_pre): Likewise.
1428
20821f4e
AB
14292020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1430
1431 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
1432 whitespace to underscore.
1433 (maint_print_c_tdesc_cmd): Use fake filename for target
1434 descriptions that came from the target.
1435 (_initialize_target_descriptions): Add filename command completion
1436 for 'maint print c-tdesc'.
1437
1fb5ee62
SM
14382020-06-23 Simon Marchi <simon.marchi@efficios.com>
1439
1440 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
1441 lines.
1442
fc3ecb3e
SM
14432020-06-23 Simon Marchi <simon.marchi@efficios.com>
1444
1445 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
1446 lines.
1447 (dwarf2_find_location_expression): Likewise.
1448 (call_site_parameter_matches): Likewise.
1449 (dwarf2_compile_expr_to_ax): Likewise.
1450 (disassemble_dwarf_expression): Likewise.
1451 (loclist_describe_location): Likewise.
1452
236ef034
PA
14532020-06-23 Pedro Alves <palves@redhat.com>
1454
1455 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
1456 progspace-and-thread.h. Include scoped-mock-context.h instead.
1457 (register_to_value_test): Use scoped_mock_context.
1458 * regcache.c: Include "scoped-mock-context.h".
1459 (cooked_read_test): Don't error out if a target is already pushed.
1460 Use scoped_mock_context. Adjust.
1461 * scoped-mock-context.h: New file.
1462
39e7ecca
AB
14632020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1464
1465 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
1466 initializer.
1467 (ada_language::is_string_type_p): New member function.
1468 * c-lang.c (c_language_data): Delete la_is_string_type_p
1469 initializer.
1470 (cplus_language_data): Likewise.
1471 (asm_language_data): Likewise.
1472 (minimal_language_data): Likewise.
1473 * d-lang.c (d_language_data): Likewise.
1474 * f-lang.c (f_is_string_type_p): Delete function, implementation
1475 moved to f_language::is_string_type_p.
1476 (f_language_data): Delete la_is_string_type_p initializer.
1477 (f_language::is_string_type_p): New member function,
1478 implementation from f_is_string_type_p.
1479 * go-lang.c (go_is_string_type_p): Delete function, implementation
1480 moved to go_language::is_string_type_p.
1481 (go_language_data): Delete la_is_string_type_p initializer.
1482 (go_language::is_string_type_p): New member function,
1483 implementation from go_is_string_type_p.
1484 * language.c (language_defn::is_string_type_p): Define new member
1485 function.
1486 (default_is_string_type_p): Make static, add comment copied from
1487 header file.
1488 (unknown_language_data): Delete la_is_string_type_p initializer.
1489 (unknown_language::is_string_type_p): New member function.
1490 (auto_language_data): Delete la_is_string_type_p initializer.
1491 (auto_language::is_string_type_p): New member function.
1492 * language.h (language_data): Delete la_is_string_type_p field.
1493 (language_defn::is_string_type_p): Declare new function.
1494 (default_is_string_type_p): Delete desclaration, move comment to
1495 definition.
1496 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
1497 moved to m2_language::is_string_type_p.
1498 (m2_language_data): Delete la_is_string_type_p initializer.
1499 (m2_language::is_string_type_p): New member function,
1500 implementation from m2_is_string_type_p.
1501 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
1502 initializer.
1503 * opencl-lang.c (opencl_language_data): Likewise.
1504 * p-lang.c (pascal_is_string_type_p): Delete function,
1505 implementation moved to pascal_language::is_string_type_p.
1506 (pascal_language_data): Delete la_is_string_type_p initializer.
1507 (pascal_language::is_string_type_p): New member function,
1508 implementation from pascal_is_string_type_p.
1509 * rust-lang.c (rust_is_string_type_p): Delete function,
1510 implementation moved to rust_language::is_string_type_p.
1511 (rust_language_data): Delete la_is_string_type_p initializer.
1512 (rust_language::is_string_type_p): New member function,
1513 implementation from rust_is_string_type_p.
1514 * valprint.c (val_print_scalar_or_string_type_p): Update call to
1515 is_string_type_p.
1516
4ffc13fb
AB
15172020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1518
1519 * ada-lang.c (ada_language_data): Delete la_print_typedef
1520 initializer.
1521 (ada_language::print_typedef): New member function.
1522 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
1523 (cplus_language_data): Likewise.
1524 (asm_language_data): Likewise.
1525 (minimal_language_data): Likewise.
1526 * d-lang.c (d_language_data): Likewise.
1527 * f-lang.c (f_language_data): Likewise.
1528 (f_language::print_typedef): New member function.
1529 * go-lang.c (go_language_data): Delete la_print_typedef
1530 initializer.
1531 * language.c (language_defn::print_typedef): Define member
1532 function.
1533 (unknown_language_data): Delete la_print_typedef initializer.
1534 (unknown_language::print_typedef): New member function.
1535 (auto_language_data): Delete la_print_typedef initializer.
1536 (auto_language::print_typedef): New member function.
1537 * language.h (language_data): Delete la_print_typedef field.
1538 (language_defn::print_typedef): Declare new member function.
1539 (LA_PRINT_TYPEDEF): Update call to print_typedef.
1540 (default_print_typedef): Delete declaration.
1541 * m2-lang.c (m2_language_data): Delete la_print_typedef
1542 initializer.
1543 (m2_language::print_typedef): New member function.
1544 * objc-lang.c (objc_language_data): Delete la_print_typedef
1545 initializer.
1546 * opencl-lang.c (opencl_language_data): Likewise.
1547 * p-lang.c (pascal_language_data): Likewise.
1548 (pascal_language::print_typedef): New member function.
1549 * rust-lang.c (rust_print_typedef): Delete function,
1550 implementation moved to rust_language::print_typedef.
1551 (rust_language): Delete la_print_typedef initializer.
1552 (rust_language::print_typedef): New member function,
1553 implementation from rust_print_typedef.
1554 * typeprint.c (default_print_typedef): Delete.
1555
d711ee67
AB
15562020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1557
1558 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
1559 (ada_language::printstr): New member function.
1560 * c-lang.c (c_language_data): Delete la_printstr initializer.
1561 (cplus_language_data): Likewise.
1562 (asm_language_data): Likewise.
1563 (minimal_language_data): Likewise.
1564 * d-lang.c (d_language_data): Likewise.
1565 * f-lang.c (f_printstr): Rename to f_language::printstr.
1566 (f_language_data): Delete la_printstr initializer.
1567 (f_language::printstr): New member function, implementation from
1568 f_printstr.
1569 * go-lang.c (go_language_data): Delete la_printstr initializer.
1570 * language.c (language_defn::printstr): Define new member
1571 function.
1572 (unk_lang_printstr): Delete.
1573 (unknown_language_data): Delete la_printstr initializer.
1574 (unknown_language::printstr): New member function.
1575 (auto_language_data): Delete la_printstr initializer.
1576 (auto_language::printstr): New member function.
1577 * language.h (language_data): Delete la_printstr field.
1578 (language_defn::printstr): Declare new member function.
1579 (LA_PRINT_STRING): Update call to printstr.
1580 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
1581 (m2_language_data): Delete la_printstr initializer.
1582 (m2_language::printstr): New member function, implementation from
1583 m2_printstr.
1584 * objc-lang.c (objc_language_data): Delete la_printstr
1585 initializer.
1586 * opencl-lang.c (opencl_language_data): Likewise.
1587 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
1588 (pascal_language_data): Delete la_printstr initializer.
1589 (pascal_language::printstr): New member function, implementation
1590 from pascal_printstr.
1591 * p-lang.h (pascal_printstr): Delete declaration.
1592 * rust-lang.c (rust_printstr): Update header comment.
1593 (rust_language_data): Delete la_printstr initializer.
1594 (rust_language::printstr): New member function.
1595
52b50f2c
AB
15962020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1597
1598 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
1599 (ada_language::printchar): New member function.
1600 * c-lang.c (c_language_data): Delete la_printchar initializer.
1601 (cplus_language_data): Likewise.
1602 (asm_language_data): Likewise.
1603 (minimal_language_data): Likewise.
1604 * d-lang.c (d_language_data): Likewise.
1605 * f-lang.c (f_printchar): Rename to f_language::printchar.
1606 (f_language_data): Delete la_printchar initializer.
1607 (f_language::printchar): New member function, implementation from
1608 f_printchar.
1609 * go-lang.c (go_language_data): Delete la_printchar initializer.
1610 * language.c (unk_lang_printchar): Delete.
1611 (language_defn::printchar): Define new member function.
1612 (unknown_language_data): Delete la_printchar initializer.
1613 (unknown_language::printchar): New member function.
1614 (auto_language_data): Delete la_printchar initializer.
1615 (auto_language::printchar): New member function.
1616 * language.h (language_data): Delete la_printchar field.
1617 (language_defn::printchar): Declare new member function.
1618 (LA_PRINT_CHAR): Update call to printchar.
1619 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
1620 (m2_language::printchar): New member function.
1621 * objc-lang.c (objc_language_data): Delete la_printchar
1622 initializer.
1623 * opencl-lang.c (opencl_language_data): Likewise.
1624 * p-lang.c (pascal_language_data): Delete la_printchar
1625 initializer.
1626 (pascal_language::printchar): New member function.
1627 * rust-lang.c (rust_printchar): Rename to
1628 rust_language::printchar.
1629 (rust_language_data): Delete la_printchar initializer.
1630 (rust_language::printchar): New member function, implementation
1631 from rust_printchar.
1632
ec8cec5b
AB
16332020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1634
1635 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
1636 (ada_language_data): Delete la_emitchar initializer.
1637 (ada_language::emitchar): New member function, implementation from
1638 emit_char.
1639 * c-lang.c (c_language_data): Delete la_emitchar initializer.
1640 (cplus_language_data): Likewise.
1641 (asm_language_data): Likewise.
1642 (minimal_language_data): Likewise.
1643 * d-lang.c (d_language_data): Likewise.
1644 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
1645 (f_language_data): Delete la_emitchar initializer.
1646 (f_language::emitchar): New member function, implementation from
1647 f_emit_char.
1648 * go-lang.c (go_language_data): Delete la_emitchar initializer.
1649 * language.c (unk_lang_emit_char): Delete.
1650 (language_defn::emitchar): New member function definition.
1651 (unknown_language_data): Delete la_emitchar initializer.
1652 (unknown_language::emitchar): New member function.
1653 (auto_language_data): Delete la_emitchar initializer.
1654 (auto_language::emitchar): New member function.
1655 * language.h (language_data): Delete la_emitchar field.
1656 (language_defn::emitchar): New member field declaration.
1657 (LA_EMIT_CHAR): Update call to emitchar.
1658 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
1659 (m2_language_data): Delete la_emitchar initializer.
1660 (m2_language::emitchar): New member function, implementation from
1661 m2_emit_char.
1662 * objc-lang.c (objc_language_data): Delete la_emitchar
1663 initializer.
1664 * opencl-lang.c (opencl_language_data): Likewise.
1665 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
1666 (pascal_language_data): Delete la_emitchar initializer.
1667 (pascal_language::emitchar): New member function, implementation
1668 from pascal_emit_char.
1669 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
1670 (rust_language_data): Delete la_emitchar initializer.
1671 (rust_language::emitchar): New member function, implementation
1672 from rust_emitchar.
1673
1bf9c363
AB
16742020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1675
1676 * ada-lang.c (resolve): Rename to ada_language::post_parser.
1677 (ada_language_data): Delete la_post_parser initializer.
1678 (ada_language::post_parser): New member function.
1679 * c-lang.c (c_language_data): Delete la_post_parser initializer.
1680 (cplus_language_data): Likewise.
1681 (asm_language_data): Likewise.
1682 (minimal_language_data): Likewise.
1683 * d-lang.c (d_language_data): Likewise.
1684 * f-lang.c (f_language_data): Likewise.
1685 * go-lang.c (go_language_data): Likewise.
1686 * language.c (unknown_language_data): Likewise.
1687 (auto_language_data): Likewise.
1688 * language.h (language_data): Delete la_post_parser field.
1689 (language_defn::post_parser): New member function.
1690 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
1691 * objc-lang.c (objc_language_data): Likewise.
1692 * opencl-lang.c (opencl_language_data): Likewise.
1693 * p-lang.c (pascal_language_data): Likewise.
1694 * parse.c (parse_exp_in_context): Update call to post_parser.
1695 (null_post_parser): Delete definition.
1696 * parser-defs.h (null_post_parser): Delete declaration.
1697 * rust-lang.c (rust_language_data): Delete la_post_parser
1698 initializer.
1699
87afa652
AB
17002020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1701
1702 * ada-lang.c (parse): Rename to ada_language::parser.
1703 (ada_language_data): Delete la_parser initializer.
1704 (ada_language::parser): New member function, implementation from
1705 parse.
1706 * c-lang.c (c_language_data): Delete la_parser initializer.
1707 (cplus_language_data): Likewise.
1708 (asm_language_data): Likewise.
1709 (minimal_language_data): Likewise.
1710 * d-lang.c (d_language_data): Likewise.
1711 (d_language::parser): New member function.
1712 * f-lang.c (f_language_data): Delete la_parser initializer.
1713 (f_language::parser): New member function.
1714 * go-lang.c (go_language_data): Delete la_parser initializer.
1715 (go_language::parser): New member function.
1716 * language.c (unk_lang_parser): Delete.
1717 (language_defn::parser): Define new member function.
1718 (unknown_language_data): Delete la_parser initializer.
1719 (unknown_language::parser): New member function.
1720 (auto_language_data): Delete la_parser initializer.
1721 (auto_language::parser): New member function.
1722 * language.h (language_data): Delete la_parser field.
1723 (language_defn::parser): Declare new member function.
1724 * m2-lang.c (m2_language_data): Delete la_parser initializer.
1725 (m2_language::parser): New member function.
1726 * objc-lang.c (objc_language_data): Delete la_parser initializer.
1727 * opencl-lang.c (opencl_language_data): Likewise.
1728 * p-lang.c (pascal_language_data): Likewise.
1729 (pascal_language::parser): New member function.
1730 * parse.c (parse_exp_in_context): Update call to parser.
1731 * rust-lang.c (rust_language_data): Delete la_parser initializer.
1732 (rust_language::parser): New member function.
1733
37825800
AB
17342020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1735
1736 * top.c (print_gdb_configuration): Print --with-python-libdir
1737 configuration value.
1738
5b860c93
PW
17392020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1740
1741 * NEWS: Mention change to the alias command.
1742
cf00cd6f
PW
17432020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1744
1745 * cli/cli-cmds.c (lookup_cmd_for_default_args)
1746 (alias_command_completer)
1747 (make_alias_options_def_group): New functions.
1748 (alias_opts, alias_option_defs): New struct and array.
1749 (alias_usage_error): Update usage.
1750 (alias_command): Handles optional DEFAULT-ARGS... arguments.
1751 Use option framework.
1752 (_initialize_cli_cmds): Update alias command help.
1753 Update aliases command help.
1754 (show_user):
1755 Add NULL for new default_args lookup_cmd argument.
1756 (valid_command_p): Rename to validate_aliased_command.
1757 Add NULL for new default_args lookup_cmd argument. Verify that the
1758 aliased_command has no default args.
1759 * cli/cli-decode.c (help_cmd): Show aliases definitions.
1760 (lookup_cmd_1, lookup_cmd): New argument default_args.
1761 (add_alias_cmd):
1762 Add NULL for new default_args lookup_cmd argument.
1763 (print_help_for_command): Show default args under the layout
1764 alias some_alias = some_aliased_cmd some_alias_default_arg.
1765 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
1766 xfree default_args in destructor.
1767 * cli/cli-script.c (process_next_line, do_define_command):
1768 Add NULL for new default_args lookup_cmd argument.
1769 * command.h: Declare new default_args argument in lookup_cmd
1770 and lookup_cmd_1.
1771 * completer.c (complete_line_internal_1):
1772 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1773 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
1774 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
1775 Likewise.
1776 * infcmd.c (_initialize_infcmd): Likewise.
1777 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
1778 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
1779 * python/py-param.c (add_setshow_generic): Likewise.
1780 * remote.c (_initialize_remote): Likewise.
1781 * top.c (execute_command): Prepend default_args if command has some.
1782 (set_verbose):
1783 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1784 * tracepoint.c (validate_actionline, encode_actions_1):
1785 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1786
bd920864
TBA
17872020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1788
1789 * jit.c (jit_read_descriptor): Use bool as the return type.
1790 (jit_breakpoint_re_set_internal): Use bool as the return type.
1791 Invert the return value logic; return true if the jit breakpoint
1792 has been successfully initialized.
1793 (jit_inferior_init): Update the call to
1794 jit_breakpoint_re_set_internal.
1795
f8098322
PA
17962020-06-22 Pedro Alves <palves@redhat.com>
1797
1798 PR gdb/25939
1799 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
1800 Use the current inferior instead. Don't return
1801 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
1802 wait again.
1803 * sol-thread.c (sol_thread_target::wait): Don't reference
1804 inferior_ptid.
1805 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
1806 (sol_update_thread_list_callback): Use the current inferior's pid
1807 instead of inferior_ptid.
1808
196535a6
RO
18092020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1810
1811 * procfs.c: Cleanup many comments.
1812
1813 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
1814 (AFTER_WATCHFLAG): Replace by value.
1815
1816 (MAIN_PROC_NAME_FORMAT): Inline ...
1817 (create_procinfo): ... here.
1818
1819 (procfs_debug_inferior): Remove SYS_exec handling.
1820 (syscall_is_exec): Likewise.
1821 (procfs_set_exec_trap): Likewise.
1822
1823 (syscall_is_lwp_exit): Inline in callers.
1824 (syscall_is_exit): Likewise.
1825 (syscall_is_exec): Likewise.
1826 (syscall_is_lwp_create): Likewise.
1827
1828 (invalidate_cache): Remove #if 0 code.
1829
1830 (make_signal_thread_runnable): Remove.
1831 (procfs_target::resume): Remove #if 0 code.
1832
cf6f3e86
RO
18332020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1834
1835 PR gdb/25939
1836 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
1837 call ...
1838 (procfs_target::create_inferior): ... here.
1839
48e9cc84
PW
18402020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1841
1842 * exec.c (validate_exec_file): Ensure the build-id is up to
1843 date by calling reopen_exec_file (that checks file timestamp
1844 to decide to re-read the file).
1845
3922b302
PA
18462020-06-18 Pedro Alves <palves@redhat.com>
1847
1848 PR gdb/25412
1849 * gdbthread.h (delete_thread, delete_thread_silent)
1850 (find_thread_ptid): Update comments.
1851 * thread.c (current_thread_): New global.
1852 (is_current_thread): Move higher, and reimplement.
1853 (inferior_thread): Reimplement.
1854 (set_thread_exited): Use bool. Add assertions.
1855 (add_thread_silent): Simplify thread-reuse handling by always
1856 calling delete_thread.
1857 (delete_thread): Remove intro comment.
1858 (find_thread_ptid): Skip exited threads.
1859 (switch_to_thread_no_regs): Write to current_thread_.
1860 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
1861 INFERIOR_PTID. Clear current_thread_.
1862
6dbdab44
PA
18632020-06-18 Pedro Alves <palves@redhat.com>
1864
1865 * aix-thread.c (pd_update): Use switch_to_thread.
1866
2da4b788
PA
18672020-06-18 Pedro Alves <palves@redhat.com>
1868
1869 * ravenscar-thread.c (ravenscar_thread_target): Update.
1870 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
1871 (ravenscar_thread_target::add_active_thread): ... this. Don't
1872 set m_base_ptid here. Update to avoid referencing inferior_ptid.
1873 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
1874
50838d1b
PA
18752020-06-18 Pedro Alves <palves@redhat.com>
1876
1877 * nat/windows-nat.c (current_windows_thread): Remove.
1878 * nat/windows-nat.h (current_windows_thread): Remove.
1879 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
1880 Adjust.
1881 (display_selectors): Adjust to fetch the current
1882 windows_thread_info based on inferior_ptid.
1883 (fake_create_process): No longer write to current_windows_thread.
1884 (windows_nat_target::get_windows_debug_event):
1885 Don't set inferior_ptid or current_windows_thread.
1886 (windows_nat_target::wait): Adjust to not rely on
1887 current_windows_thread.
1888 (do_initial_windows_stuff): Now a method of windows_nat_target.
1889 Switch to the last_ptid thread.
1890 (windows_nat_target::attach): Adjust.
1891 (windows_nat_target::detach): Use switch_to_no_thread instead of
1892 writing to inferior_ptid directly.
1893 (windows_nat_target::create_inferior): Adjust.
1894
31ce04e9
PA
18952020-06-18 Pedro Alves <palves@redhat.com>
1896
1897 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
1898
1ee1a363
PA
18992020-06-18 Pedro Alves <palves@redhat.com>
1900
1901 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
1902 after creating it, instead of writing to inferior_ptid. Don't
1903 write to inferior_ptid.
1904
6d350754
PA
19052020-06-18 Pedro Alves <palves@redhat.com>
1906
1907 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
1908
5d971d48
PA
19092020-06-18 Pedro Alves <palves@redhat.com>
1910
1911 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
1912 it, instead of writing to inferior_ptid.
1913
86e57d1b
PA
19142020-06-18 Pedro Alves <palves@redhat.com>
1915
1916 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
1917 to inferior_ptid.
1918
f2e1c129
PA
19192020-06-18 Pedro Alves <palves@redhat.com>
1920
1921 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
1922 instead of writing to inferior_ptid directly.
1923
60db1b85
PA
19242020-06-18 Pedro Alves <palves@redhat.com>
1925
1926 * corelow.c (core_target::close): Use switch_to_no_thread instead
1927 of writing to inferior_ptid directly.
1928 (add_to_thread_list, core_target_open): Use switch_to_thread
1929 instead of writing to inferior_ptid directly.
1930
fe7d6a8d
PA
19312020-06-18 Pedro Alves <palves@redhat.com>
1932
1933 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
1934 inferior_ptid.
1935 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
1936 inferior_ptid.
1937 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
1938 inferior_ptid directly.
1939 (darwin_nat_target::init_thread_list): Switch to thread, instead
1940 of writing to inferior_ptid.
1941 (darwin_nat_target::attach): Don't write to inferior_ptid.
1942 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
1943
975f8708
PA
19442020-06-18 Pedro Alves <palves@redhat.com>
1945
1946 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
1947 thread.
1948 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
1949 Instead use switch_to_thread.
1950 (gnu_nat_target::detach): Use switch_to_no_thread
1951 instead of writing to inferior_ptid directly. Used passed-in
1952 inferior instead of looking up the inferior by pid.
1953
1a204730
PA
19542020-06-18 Pedro Alves <palves@redhat.com>
1955
1956 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
1957 inferior_ptid.
1958
ebe84f23
PA
19592020-06-18 Pedro Alves <palves@redhat.com>
1960
1961 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
1962 inferior_ptid.
1963 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
1964 thread.
1965 (nto_procfs_target::detach): Avoid referencing
1966 inferior_ptid. Use switch_to_no_thread instead of writing to
1967 inferior_ptid directly.
1968 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
1969 instead of writing to inferior_ptid directly.
1970 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
1971 to thread.
1972
191f02e5
PA
19732020-06-18 Pedro Alves <palves@redhat.com>
1974
1975 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
1976 after creating it, instead of writing to inferior_ptid.
1977 (gdbsim_target_open): Use switch_to_no_thread instead of writing
1978 to inferior_ptid directly.
1979 (gdbsim_target::wait): Don't write to inferior_ptid.
1980
0ac55310
PA
19812020-06-18 Pedro Alves <palves@redhat.com>
1982
1983 * remote.c (remote_target::remote_notice_new_inferior): Use
1984 switch_to_thread instead of writing to inferior_ptid directly.
1985 (remote_target::add_current_inferior_and_thread): Use
1986 switch_to_no_thread instead of writing to inferior_ptid directly.
1987 (extended_remote_target::attach): Use switch_to_inferior_no_thread
1988 and switch_to_thread instead of using set_current_inferior or
1989 writing to inferior_ptid directly.
1990
5233f39b
PA
19912020-06-18 Pedro Alves <palves@redhat.com>
1992
1993 * tracectf.c (ctf_target_open): Switch to added thread instead of
1994 writing to inferior_ptid directly.
1995 (ctf_target::close): Use switch_to_no_thread instead of writing to
1996 inferior_ptid directly.
1997
087e161b
PA
19982020-06-18 Pedro Alves <palves@redhat.com>
1999
2000 * tracefile-tfile.c (tfile_target_open): Don't write to
2001 inferior_ptid directly, instead switch to added thread.
2002 (tfile_target::close): Use switch_to_no_thread instead of writing
2003 to inferior_ptid directly.
2004
7fb43e53
PA
20052020-06-18 Pedro Alves <palves@redhat.com>
2006
2007 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
2008 (procfs_target::detach): Use switch_to_no_thread
2009 instead of writing to inferior_ptid directly.
2010 (do_attach): Change return type to void. Switch to the added
2011 thread.
2012 (procfs_target::create_inferior): Switch to the added thread.
2013 (procfs_do_thread_registers): Don't write to inferior_ptid.
2014
18493a00
PA
20152020-06-18 Pedro Alves <palves@redhat.com>
2016
2017 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
2018 of writing to inferior_ptid.
2019 (scoped_restore_exited_inferior): Delete.
2020 (handle_vfork_child_exec_or_exit): Simplify using
2021 scoped_restore_current_pspace_and_thread. Use switch_to_thread
2022 instead of writing to inferior_ptid.
2023 (THREAD_STOPPED_BY): Delete.
2024 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
2025 (thread_stopped_by_hw_breakpoint): Delete.
2026 (save_waitstatus): Use
2027 scoped_restore_current_thread+switch_to_thread, and call
2028 target_stopped_by_watchpoint instead of
2029 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
2030 instead of thread_stopped_by_sw_breakpoint, and
2031 target_stopped_by_hw_breakpoint instead of
2032 thread_stopped_by_hw_breakpoint.
2033 (handle_inferior_event)
2034 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
2035 inferior_ptid directly, nor
2036 set_current_inferior/set_current_program_space. Use
2037 switch_to_thread / switch_to_inferior_no_thread instead.
2038
a0776b13
PA
20392020-06-18 Pedro Alves <palves@redhat.com>
2040
2041 * target.c (generic_mourn_inferior): Use switch_to_no_thread
2042 instead of writing to inferior_ptid.
2043
6155c136
PA
20442020-06-18 Pedro Alves <palves@redhat.com>
2045
2046 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
2047 added thread.
2048 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
2049 to the added thread.
2050 (inf_ptrace_target::detach_success): Use switch_to_no_thread
2051 instead of writing to inferior_ptid.
2052
c5316fc6
PA
20532020-06-18 Pedro Alves <palves@redhat.com>
2054
2055 * gdbarch-selftests.c: Include "progspace-and-thread.h".
2056 (register_to_value_test): Mock a program_space too. Heap-allocate
2057 the address space. Don't write to inferior_ptid. Use
2058 switch_to_thread instead.
2059
8df01799
PA
20602020-06-18 Pedro Alves <palves@redhat.com>
2061
2062 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
2063 Delete.
2064 (find_signalled_thread()): New, factored out from
2065 linux_make_corefile_notes and adjusted to handle exited threads.
2066 (linux_make_corefile_notes): Adjust to use the new
2067 find_signalled_thread.
2068
41792d68
PA
20692020-06-18 Pedro Alves <palves@redhat.com>
2070
2071 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
2072 of saving/restoring inferior_ptid.
2073
612f258a
TT
20742020-06-17 Tom Tromey <tom@tromey.com>
2075
2076 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
2077 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
2078 declare.
2079 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
2080
efb763a5
SM
20812020-06-15 Simon Marchi <simon.marchi@efficios.com>
2082
2083 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
2084 of partial symtabs.
2085
2951f6c0
SM
20862020-06-17 Simon Marchi <simon.marchi@efficios.com>
2087
2088 * regformats/reg-arm.dat: Remove.
2089 * regformats/reg-bfin.dat: Remove.
2090 * regformats/reg-cris.dat: Remove.
2091 * regformats/reg-crisv32.dat: Remove.
2092 * regformats/reg-m32r.dat: Remove.
2093 * regformats/reg-tilegx.dat: Remove.
2094 * regformats/reg-tilegx32.dat: Remove.
2095
7d458ea5
SM
20962020-06-17 Simon Marchi <simon.marchi@efficios.com>
2097
2098 * features/Makefile (WHICH): Remove arm files.
2099 * regformats/arm/arm-with-iwmmxt.dat: Remove.
2100 * regformats/arm/arm-with-neon.dat: Remove.
2101 * regformats/arm/arm-with-vfpv2.dat: Remove.
2102 * regformats/arm/arm-with-vfpv3.dat: Remove.
2103
3af96c0d
SM
21042020-06-17 Simon Marchi <simon.marchi@efficios.com>
2105
2106 * features/Makefile (XMLTOC): Remove rx.xml.
2107
b25e22fd
PA
21082020-06-17 Pedro Alves <palves@redhat.com>
2109
2110 * gdbthread.h (thread_control_state) <trap_expected> Update
2111 comments.
2112
a78a19b1
AB
21132020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2114
2115 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
2116 ada_language::lookup_symbol_nonlocal.
2117 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
2118 (ada_language::lookup_symbol_nonlocal): New member function,
2119 implementation from ada_lookup_symbol_nonlocal.
2120 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
2121 initializer.
2122 (cplus_language_data): Delete la_lookup_symbol_nonlocal
2123 initializer.
2124 (cplus_language::lookup_symbol_nonlocal): New member function.
2125 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
2126 (minimal_language_data) Likewise.
2127 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
2128 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
2129 initializer.
2130 (d_language::lookup_symbol_nonlocal): New member function.
2131 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
2132 initializer.
2133 (f_language::lookup_symbol_nonlocal): New member function.
2134 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
2135 initializer.
2136 * language.c (unknown_language_data): Likewise.
2137 (auto_language_data): Likewise.
2138 * language.h (language_data): Delete la_lookup_symbol_nonlocal
2139 field.
2140 (language_defn::lookup_symbol_nonlocal): New member function.
2141 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
2142 initializer.
2143 * objc-lang.c (objc_language_data): Likewise.
2144 * opencl-lang.c (opencl_language_data): Likewise.
2145 * p-lang.c (pascal_language_data): Likewise.
2146 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
2147 rust_language::lookup_symbol_nonlocal.
2148 (rust_language_data): Delete la_lookup_symbol_nonlocal
2149 initializer.
2150 (rust_language::lookup_symbol_nonlocal): New member function,
2151 implementation from rust_lookup_symbol_nonlocal.
2152 * symtab.c (lookup_symbol_aux): Update call to
2153 lookup_symbol_nonlocal.
2154 (basic_lookup_symbol_nonlocal): Rename to...
2155 (language_defn::lookup_symbol_nonlocal): ...this, and update
2156 header comment. Remove language_defn parameter, and replace with
2157 uses of `this'.
2158 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
2159
ebe2334e
AB
21602020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2161
2162 * ada-lang.c (ada_language_data): Delete la_value_print_inner
2163 initializer.
2164 (ada_language::value_print_inner): New member function.
2165 * c-lang.c (c_language_data): Delete la_value_print_inner
2166 initializer.
2167 (cplus_language_data): Likewise.
2168 (asm_language_data): Likewise.
2169 (minimal_language_data): Likewise.
2170 * d-lang.c (d_language_data): Likewise.
2171 (d_language::value_print_inner): New member function.
2172 * f-lang.c (f_language_data): Delete la_value_print_inner
2173 initializer.
2174 (f_language::value_print_inner): New member function.
2175 * f-lang.h (f_value_print_innner): Rename to...
2176 (f_value_print_inner): ...this (note spelling of 'inner').
2177 * f-valprint.c (f_value_print_innner): Rename to...
2178 (f_value_print_inner): ...this (note spelling of 'inner').
2179 * go-lang.c (go_language_data): Delete la_value_print_inner
2180 initializer.
2181 (go_language::value_print_inner): New member function.
2182 * language.c (language_defn::value_print_inner): Define new member
2183 function.
2184 (unk_lang_value_print_inner): Delete.
2185 (unknown_language_data): Delete la_value_print_inner initializer.
2186 (unknown_language::value_print_inner): New member function.
2187 (auto_language_data): Delete la_value_print_inner initializer.
2188 (auto_language::value_print_inner): New member function.
2189 * language.h (language_data): Delete la_value_print_inner field.
2190 (language_defn::value_print_inner): Delcare new member function.
2191 * m2-lang.c (m2_language_data): Delete la_value_print_inner
2192 initializer.
2193 (m2_language::value_print_inner): New member function.
2194 * objc-lang.c (objc_language_data): Delete la_value_print_inner
2195 initializer.
2196 * opencl-lang.c (opencl_language_data): Likewise.
2197 * p-lang.c (pascal_language_data): Likewise.
2198 (pascal_language::value_print_inner): New member function.
2199 * rust-lang.c (rust_language_data): Delete la_value_print_inner
2200 initializer.
2201 (rust_language::value_print_inner): New member function.
2202 * valprint.c (do_val_print): Update call to value_print_inner.
2203
a1d1fa3e
AB
22042020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2205
2206 * ada-lang.c (ada_language_data): Delete la_value_print
2207 initializer.
2208 (ada_language::value_print): New member function.
2209 * c-lang.c (c_language_data): Delete la_value_print initializer.
2210 (cplus_language_data): Likewise.
2211 (asm_language_data): Likewise.
2212 (minimal_language_data): Likewise.
2213 * d-lang.c (d_language_data): Likewise.
2214 * f-lang.c (f_language_data): Likewise.
2215 * go-lang.c (go_language_data): Likewise.
2216 * language.c (unk_lang_value_print): Delete.
2217 (language_defn::value_print): Define new member function.
2218 (unknown_language_data): Delete la_value_print initializer.
2219 (unknown_language::value_print): New member function.
2220 (auto_language_data): Delete la_value_print initializer.
2221 (auto_language::value_print): New member function.
2222 * language.h (language_data): Delete la_value_print field.
2223 (language_defn::value_print): Declare new member function.
2224 (LA_VALUE_PRINT): Update call to value_print.
2225 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
2226 * objc-lang.c (objc_language_data): Likewise.
2227 * opencl-lang.c (opencl_language_data): Likewise.
2228 * p-lang.c (pascal_language_data): Likewise.
2229 (pascal_language::value_print): New member function.
2230 * rust-lang.c (rust_language_data): Delete la_value_print
2231 initializer.
2232
f16a9f57
AB
22332020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2234
2235 * ada-lang.c (ada_watch_location_expression): Rename to
2236 ada_language::watch_location_expression.
2237 (ada_language_data): Delete la_watch_location_expression
2238 initializer.
2239 (ada_language::watch_location_expression): New member function,
2240 implementation from ada_watch_location_expression.
2241 * breakpoint.c (watch_command_1): Update call to
2242 watch_location_expression.
2243 * c-lang.c (c_watch_location_expression): Rename to
2244 language_defn::watch_location_expression.
2245 (c_language_data): Delete la_watch_location_expression
2246 initializer.
2247 (cplus_language_data): Likewise.
2248 (asm_language_data): Likewise.
2249 (minimal_language_data): Likewise.
2250 * c-lang.h (c_watch_location_expression): Delete declaration.
2251 * d-lang.c (d_language_data): Delete la_watch_location_expression
2252 initializer.
2253 * f-lang.c (f_language_data): Likewise.
2254 * go-lang.c (go_language_data): Likewise.
2255 * language.c (language_defn::watch_location_expression): Member
2256 function implementation from c_watch_location_expression.
2257 (unknown_language_data): Delete la_watch_location_expression
2258 initializer.
2259 (auto_language_data): Likewise.
2260 * language.h (language_data): Delete la_watch_location_expression
2261 field.
2262 (language_defn::watch_location_expression): Declare new member
2263 function.
2264 * m2-lang.c (m2_language_data): Delete
2265 la_watch_location_expression initializer.
2266 * objc-lang.c (objc_language_data): Likewise.
2267 * opencl-lang.c (opencl_language_data): Likewise.
2268 * p-lang.c (pascal_language_data): Likewise.
2269 * rust-lang.c (rust_watch_location_expression): Rename to
2270 rust_language::watch_location_expression.
2271 (rust_language_data): Delete la_watch_location_expression
2272 initializer.
2273 (rust_language::watch_location_expression): New member function,
2274 implementation from rust_watch_location_expression.
2275
7e56227d
AB
22762020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2277
2278 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
2279 ada_language::collect_symbol_completion_matches.
2280 (ada_language_data): Delete la_collect_symbol_completion_matches
2281 initializer.
2282 (ada_language::collect_symbol_completion_matches): New member
2283 function, implementation from
2284 ada_collect_symbol_completion_matches.
2285 * c-lang.c (c_language_data): Delete
2286 la_collect_symbol_completion_matches initializer.
2287 (cplus_language_data): Likewise.
2288 (asm_language_data): Likewise.
2289 (minimal_language_data): Likewise.
2290 * d-lang.c (d_language_data): Likewise.
2291 * f-lang.c (f_collect_symbol_completion_matches): Rename to
2292 f_language::collect_symbol_completion_matches.
2293 (f_language_data): Delete la_collect_symbol_completion_matches
2294 initializer.
2295 (f_language::collect_symbol_completion_matches) New member
2296 function, implementation from f_collect_symbol_completion_matches.
2297 * go-lang.c (go_language_data): Delete
2298 la_collect_symbol_completion_matches initializer.
2299 * language.c (unknown_language_data): Likewise.
2300 (auto_language_data): Likewise.
2301 * language.h (language_data): Delete
2302 la_collect_symbol_completion_matches field.
2303 (language_defn::collect_symbol_completion_matches): New member
2304 function.
2305 * m2-lang.c (m2_language_data): Delete
2306 la_collect_symbol_completion_matches initializer.
2307 * objc-lang.c (objc_language_data): Likewise.
2308 * opencl-lang.c (opencl_language_data): Likewise.
2309 * p-lang.c (pascal_language_data): Likewise.
2310 * rust-lang.c (rust_language_data): Likewise.
2311 * symtab.c (default_collect_symbol_completion_matches): Delete.
2312 (collect_symbol_completion_matches): Update call to
2313 collect_symbol_completion_matches.
2314 (collect_symbol_completion_matches_type): Likewise.
2315 * symtab.h (default_collect_symbol_completion_matches): Delete
2316 declaration.
2317
53fc67f8
AB
23182020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2319
2320 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
2321 (ada_language_data): Delete la_word_break_characters initializer.
2322 (ada_language::word_break_characters): New member function.
2323 * c-lang.c (c_language_data): Delete la_word_break_characters
2324 initializer.
2325 (cplus_language_data): Likewise.
2326 (asm_language_data): Likewise.
2327 (minimal_language_data): Likewise.
2328 * completer.c: Update global comment.
2329 (advance_to_expression_complete_word_point): Update call to
2330 word_break_characters.
2331 (complete_files_symbols): Likewise.
2332 (complete_line_internal_1): Likewise.
2333 (default_completer_handle_brkchars): Likewise.
2334 (skip_quoted_chars): Likewise.
2335 * d-lang.c (d_language_data): Delete la_word_break_characters
2336 initializer.
2337 * f-lang.c (f_word_break_characters): Delete.
2338 (f_language_data): Delete la_word_break_characters initializer.
2339 (f_language::word_break_characters): New member function.
2340 * go-lang.c (go_language_data): Delete la_word_break_characters
2341 initializer.
2342 * language.c (unknown_language_data): Likewise.
2343 (auto_language_data): Likewise.
2344 * language.h (default_word_break_characters): Move declaration to
2345 earlier in the file.
2346 (language_data): Delete la_word_break_characters field.
2347 (language_defn::word_break_characters): New member function.
2348 * m2-lang.c (m2_language_data): Delete la_word_break_characters
2349 initializer.
2350 * objc-lang.c (objc_language_data): Likewise.
2351 * opencl-lang.c (opencl_language_data): Likewise.
2352 * p-lang.c (pascal_language_data): Likewise.
2353 * rust-lang.c (rust_language_data): Likewise.
2354
c9debfb9
AB
23552020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2356
2357 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
2358 (ada_language_data): Delete la_get_symbol_name_matcher
2359 initializer.
2360 (language_defn::get_symbol_name_matcher_inner): New member
2361 function.
2362 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
2363 initializer.
2364 (cplus_language_data): Likewise.
2365 (cplus_language::get_symbol_name_matcher_inner): New member
2366 function.
2367 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
2368 (minimal_language_data): Likewise.
2369 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
2370 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
2371 initializer.
2372 * dictionary.c (iter_match_first_hashed): Update call to
2373 get_symbol_name_matcher.
2374 (iter_match_next_hashed): Likewise.
2375 (iter_match_next_linear): Likewise.
2376 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
2377 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
2378 initializer.
2379 (f_language::get_symbol_name_matcher_inner): New member function.
2380 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
2381 initializer.
2382 * language.c (default_symbol_name_matcher): Update header comment,
2383 make static.
2384 (language_defn::get_symbol_name_matcher): New definition.
2385 (language_defn::get_symbol_name_matcher_inner): Likewise.
2386 (get_symbol_name_matcher): Delete.
2387 (unknown_language_data): Delete la_get_symbol_name_matcher
2388 initializer.
2389 (auto_language_data): Likewise.
2390 * language.h (language_data): Delete la_get_symbol_name_matcher
2391 field.
2392 (language_defn::get_symbol_name_matcher): New member function.
2393 (language_defn::get_symbol_name_matcher_inner): Likewise.
2394 (default_symbol_name_matcher): Delete declaration.
2395 * linespec.c (find_methods): Update call to
2396 get_symbol_name_matcher.
2397 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
2398 initializer.
2399 * minsyms.c (lookup_minimal_symbol): Update call to
2400 get_symbol_name_matcher.
2401 (iterate_over_minimal_symbols): Likewise.
2402 * objc-lang.c (objc_language_data): Delete
2403 la_get_symbol_name_matcher initializer.
2404 * opencl-lang.c (opencl_language_data): Likewise.
2405 * p-lang.c (pascal_language_data): Likewise.
2406 * psymtab.c (psymbol_name_matches): Update call to
2407 get_symbol_name_matcher.
2408 * rust-lang.c (rust_language_data): Delete
2409 la_get_symbol_name_matcher initializer.
2410 * symtab.c (symbol_matches_search_name): Update call to
2411 get_symbol_name_matcher.
2412 (compare_symbol_name): Likewise.
2413
9a49ad8c
AB
24142020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2415
2416 * ada-lang.c (ada_language_data): Delete la_compute_program
2417 initializer.
2418 * c-lang.c (c_language_data): Likewise.
2419 (c_language::compute_program): New member function.
2420 (cplus_language_data): Delete la_compute_program initializer.
2421 (cplus_language::compute_program): New member function.
2422 (asm_language_data): Delete la_compute_program initializer.
2423 (minimal_language_data): Likewise.
2424 * c-lang.h (c_compute_program): Update comment.
2425 (cplus_compute_program): Likewise.
2426 * compile/compile-c-support.c (c_compute_program): Likewise.
2427 (cplus_compute_program): Likewise.
2428 * compile/compile.c (compile_to_object): Update call to
2429 la_compute_program.
2430 * d-lang.c (d_language_data): Delete la_compute_program
2431 initializer.
2432 * f-lang.c (f_language_data): Likewise.
2433 * go-lang.c (go_language_data): Likewise.
2434 * language.c (unknown_language_data): Likewise.
2435 (auto_language_data): Likewise.
2436 * language.h (language_data): Delete la_compute_program field.
2437 (language_defn::compute_program): New member function.
2438 * m2-lang.c (m2_language_data): Delete la_compute_program
2439 initializer.
2440 * objc-lang.c (objc_language_data): Likewise.
2441 * opencl-lang.c (opencl_language_data): Likewise.
2442 * p-lang.c (pascal_language_data): Likewise.
2443 * rust-lang.c (rust_language_data): Likewise.
2444
eff93b4d
AB
24452020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2446
2447 * ada-lang.c (ada_language_data) Delete
2448 la_class_name_from_physname initializer.
2449 * c-lang.c (c_language_data): Likewise.
2450 (cplus_language_data): Likewise.
2451 (cplus_language::class_name_from_physname): New member function.
2452 (asm_language_data): Delete la_class_name_from_physname
2453 initializer.
2454 (minimal_language_data): Likewise.
2455 * d-lang.c (d_language_data): Likewise.
2456 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
2457 method on language_defn class.
2458 (guess_full_die_structure_name): Likewise.
2459 * f-lang.c (f_language_data): Delete la_class_name_from_physname
2460 initializer.
2461 * go-lang.c (go_language_data): Likewise.
2462 * language.c (language_class_name_from_physname): Delete.
2463 (unk_lang_class_name): Delete.
2464 (unknown_language_data): Delete la_class_name_from_physname
2465 initializer.
2466 (auto_language_data): Likewise.
2467 * language.h (language_data): Delete la_class_name_from_physname
2468 field.
2469 (language_defn::class_name_from_physname): New function.
2470 (language_class_name_from_physname): Delete declaration.
2471 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
2472 initializer.
2473 * objc-lang.c (objc_language_data): Likewise.
2474 * opencl-lang.c (opencl_language_data): Likewise.
2475 * p-lang.c (pascal_language_data): Likewise.
2476 * rust-lang.c (rust_language_data): Likewise.
2477
de543742
TT
24782020-06-16 Tom Tromey <tom@tromey.com>
2479
2480 * tui/tui-data.h (STATUS_NAME): New macro.
2481 * tui/tui-layout.c (tui_remove_some_windows)
2482 (initialize_known_windows, tui_register_window)
2483 (tui_layout_split::remove_windows, initialize_layouts)
2484 (tui_new_layout_command): Don't use hard-coded window names.
2485
a350efd4
TT
24862020-06-16 Tom Tromey <tom@tromey.com>
2487
2488 PR tui/25348:
2489 * tui/tui.c (tui_ensure_readline_initialized): Rename from
2490 tui_initialize_readline. Only run once. Call rl_initialize.
2491 * tui/tui.h (tui_ensure_readline_initialized): Rename from
2492 tui_initialize_readline.
2493 * tui/tui-io.c (tui_setup_io): Call
2494 tui_ensure_readline_initialized.
2495 * tui/tui-interp.c (tui_interp::init): Update.
2496
39ec0490
TT
24972020-06-16 Tom Tromey <tom@tromey.com>
2498
2499 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
2500 Also preserve the status window.
2501
d2d1ea20
TT
25022020-06-16 Tom Tromey <tom@tromey.com>
2503
2504 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
2505 where m_window==nullptr.
2506
66920317
TT
25072020-06-15 Tom Tromey <tromey@adacore.com>
2508
2509 * windows-nat.c (windows_nat::handle_output_debug_string):
2510 Update.
2511 (windows_nat::handle_ms_vc_exception): Update.
2512 * target.h (target_read_string): Change API.
2513 * target.c (target_read_string): Change API.
2514 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
2515 Update.
2516 * solib-frv.c (frv_current_sos): Update.
2517 * solib-dsbt.c (dsbt_current_sos): Update.
2518 * solib-darwin.c (darwin_current_sos): Update.
2519 * linux-thread-db.c (inferior_has_bug): Update.
2520 * expprint.c (print_subexp_standard): Update.
2521 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
2522 (ada_exception_message_1): Update.
2523
a5d871dd
TT
25242020-06-15 Tom Tromey <tromey@adacore.com>
2525
2526 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
2527
670e35fa
TT
25282020-06-15 Tom Tromey <tromey@adacore.com>
2529
2530 * valprint.c (read_string): Update comment.
2531 * target.c (MIN): Remove.
2532 (target_read_string): Rewrite.
2533
f5272a3b
TT
25342020-06-15 Tom Tromey <tromey@adacore.com>
2535
2536 * corefile.c (read_memory_string): Remove.
2537 * ada-valprint.c (ada_value_print_ptr): Update.
2538 * ada-lang.h (ada_tag_name): Change return type.
2539 * ada-lang.c (type_from_tag): Update.
2540 (ada_tag_name_from_tsd): Change return type. Use
2541 target_read_string.
2542 (ada_tag_name): Likewise.
2543 * gdbcore.h (read_memory_string): Don't declare.
2544
2c074f49
HD
25452020-06-14 Hannes Domani <ssbssa@yahoo.de>
2546
2547 * symtab.c (rbreak_command): Ignore Windows drive colon.
2548
6a17d503
SM
25492020-06-12 Simon Marchi <simon.marchi@efficios.com>
2550
2551 * NEWS: Mention removed GDBserver host support.
2552
453c733f
NC
25532020-06-12 Nelson Chu <nelson.chu@sifive.com>
2554
2555 * features/riscv/rebuild-csr-xml.sh: Updated.
2556
2b4e6a3f
TT
25572020-06-11 Tom Tromey <tom@tromey.com>
2558
2559 PR gdb/18318:
2560 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
2561
4412332f
JG
25622020-06-09 Jonny Grant <jg@jguk.org>
25632020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
2564
2565 * main.c (captured_main_1): Don't print new line after help.
2566 (print_gdb_help): add mailing list and IRC channel information
2567 to --help. Add new lines between items in the footer. Remove
2568 quotes around bug url.
2569
2f33032a
KS
25702020-06-11 Keith Seitz <keiths@redhat.com>
2571
2572 PR gdb/21356
2573 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
2574 Resolve typedefs for type length calculations.
2575
7ab96794
TV
25762020-06-10 Tom de Vries <tdevries@suse.de>
2577
2578 PR ada/24713
2579 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
2580 (write_psymbols): Enable .gdb_index for ada.
2581 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
2582 ada.
2583
e5f3ece2
TV
25842020-06-10 Tom de Vries <tdevries@suse.de>
2585
2586 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
2587 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
2588 namei" instead of "const char *name" argument.
2589 (dw2_map_matching_symbols): Use "offset_type namei" variant of
2590 dw2_symtab_iter_init.
2591
940da03e
SM
25922020-06-08 Simon Marchi <simon.marchi@efficios.com>
2593
2594 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
2595 to use type::field and field::type instead.
2596
b6cdac4b
SM
25972020-06-08 Simon Marchi <simon.marchi@efficios.com>
2598
2599 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
2600 to use field::type instead.
2601
5d14b6e5
SM
26022020-06-08 Simon Marchi <simon.marchi@efficios.com>
2603
2604 * gdbtypes.h (struct field) <type, set_type>: New methods.
2605 Rename `type` field to...
2606 <m_type>: ... this. Change references throughout to use type or
2607 set_type methods.
2608 (FIELD_TYPE): Use field::type. Change call sites that modify
2609 the field's type to use field::set_type instead.
2610
3d967001
SM
26112020-06-08 Simon Marchi <simon.marchi@efficios.com>
2612
2613 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
2614 to use type::index_type instead.
2615
262abc0d
SM
26162020-06-08 Simon Marchi <simon.marchi@efficios.com>
2617
2618 * gdbtypes.h (struct type) <index_type, set_index_type>: New
2619 methods.
2620 (TYPE_INDEX_TYPE): Use type::index_type.
2621 * gdbtypes.c (create_array_type_with_stride): Likewise.
2622
82836c92
TT
26232020-06-07 Tom Tromey <tom@tromey.com>
2624
2625 * valprint.c (generic_val_print_float): Remove "embedded_offset"
2626 parameter.
2627 (generic_value_print): Update.
2628
940dace9
AB
26292020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2630
2631 Revert commit 982a38f60b0.
2632 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
2633
982a38f6
AB
26342020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2635
2636 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
2637 avoid use after free.
2638
82f06518
TV
26392020-06-05 Tom de Vries <tdevries@suse.de>
2640
2641 * NEWS: Fix typos.
2642
f8c41851
SM
26432020-06-04 Simon Marchi <simon.marchi@efficios.com>
2644
2645 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
2646 the per_bfd object.
2647 (dwarf2_read_debug_names): Likewise.
2648 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
2649 object when re-using a per_bfd object with an index.
2650
f9b5d5ea
TV
26512020-06-03 Tom de Vries <tdevries@suse.de>
2652
2653 PR symtab/26046
2654 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
2655 children for C++.
2656 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
2657 DW_TAG_subprogram.
2658
f6eee2d0
AB
26592020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2660
2661 * ada-lang.c (ada_language_data): Delete skip_trampoline
2662 initializer.
2663 * c-lang.c (c_language_data): Likewise.
2664 (cplus_language_data): Likewise.
2665 (cplus_language::skip_trampoline): New member function.
2666 (asm_language_data): Delete skip_trampoline initializer.
2667 (minimal_language_data): Likewise.
2668 * d-lang.c (d_language_data): Likewise.
2669 * f-lang.c (f_language_data): Likewise.
2670 * go-lang.c (go_language_data): Likewise.
2671 * language.c (unk_lang_trampoline): Delete function.
2672 (skip_language_trampoline): Update.
2673 (unknown_language_data): Delete skip_trampoline initializer.
2674 (auto_language_data): Likewise.
2675 * language.h (language_data): Delete skip_trampoline field.
2676 (language_defn::skip_trampoline): New function.
2677 * m2-lang.c (m2_language_data): Delete skip_trampoline
2678 initializer.
2679 * objc-lang.c (objc_skip_trampoline): Delete function, move
2680 implementation to objc_language::skip_trampoline.
2681 (objc_language_data): Delete skip_trampoline initializer.
2682 (objc_language::skip_trampoline): New member function with
2683 implementation from objc_skip_trampoline.
2684 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
2685 initializer.
2686 * p-lang.c (pascal_language_data): Likewise.
2687 * rust-lang.c (rust_language_data): Likewise.
2688
0a50df5d
AB
26892020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2690
2691 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
2692 (ada_language::demangle): New member function.
2693 * c-lang.c (c_language_data): Delete la_demangle initializer.
2694 (cplus_language_data): Delete la_demangle initializer.
2695 (cplus_language::demangle): New member function.
2696 (asm_language_data): Delete la_demangle initializer.
2697 (minimal_language_data): Delete la_demangle initializer.
2698 * d-lang.c (d_language_data): Delete la_demangle initializer.
2699 (d_language::demangle): New member function.
2700 * f-lang.c (f_language_data): Delete la_demangle initializer.
2701 (f_language::demangle): New member function.
2702 * go-lang.c (go_language_data): Delete la_demangle initializer.
2703 (go_language::demangle): New member function.
2704 * language.c (language_demangle): Update.
2705 (unk_lang_demangle): Delete.
2706 (unknown_language_data): Delete la_demangle initializer.
2707 (unknown_language::demangle): New member function.
2708 (auto_language_data): Delete la_demangle initializer.
2709 (auto_language::demangle): New member function.
2710 * language.h (language_data): Delete la_demangle field.
2711 (language_defn::demangle): New function.
2712 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
2713 * objc-lang.c (objc_language_data): Delete la_demangle
2714 initializer.
2715 (objc_language::demangle): New member function.
2716 * opencl-lang.c (opencl_language_data): Delete la_demangle
2717 initializer.
2718 * p-lang.c (pascal_language_data): Likewise.
2719 * rust-lang.c (rust_language_data): Likewise.
2720 (rust_language::demangle): New member function.
2721
fbfb0a46
AB
27222020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2723
2724 * ada-lang.c (ada_language_data): Delete la_print_type
2725 initializer.
2726 (ada_language::print_type): New member function.
2727 * c-lang.c (c_language_data): Delete la_print_type initializer.
2728 (c_language::print_type): New member function.
2729 (cplus_language_data): Delete la_print_type initializer.
2730 (cplus_language::print_type): New member function.
2731 (asm_language_data): Delete la_print_type initializer.
2732 (asm_language::print_type): New member function.
2733 (minimal_language_data): Delete la_print_type initializer.
2734 (minimal_language::print_type): New member function.
2735 * d-lang.c (d_language_data): Delete la_print_type initializer.
2736 (d_language::print_type): New member function.
2737 * f-lang.c (f_language_data): Delete la_print_type initializer.
2738 (f_language::print_type): New member function.
2739 * go-lang.c (go_language_data): Delete la_print_type initializer.
2740 (go_language::print_type): New member function.
2741 * language.c (unk_lang_print_type): Delete.
2742 (unknown_language_data): Delete la_print_type initializer.
2743 (unknown_language::print_type): New member function.
2744 (auto_language_data): Delete la_print_type initializer.
2745 (auto_language::print_type): New member function.
2746 * language.h (language_data): Delete la_print_type field.
2747 (language_defn::print_type): New function.
2748 (LA_PRINT_TYPE): Update.
2749 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
2750 (m2_language::print_type): New member function.
2751 * objc-lang.c (objc_language_data): Delete la_print_type
2752 initializer.
2753 (objc_language::print_type): New member function.
2754 * opencl-lang.c (opencl_print_type): Delete, implementation moved
2755 to opencl_language::print_type.
2756 (opencl_language_data): Delete la_print_type initializer.
2757 (opencl_language::print_type): New member function, implementation
2758 from opencl_print_type.
2759 * p-lang.c (pascal_language_data): Delete la_print_type
2760 initializer.
2761 (pascal_language::print_type): New member function.
2762 * rust-lang.c (rust_print_type): Delete, implementation moved to
2763 rust_language::print_type.
2764 (rust_language_data): Delete la_print_type initializer.
2765 (rust_language::print_type): New member function, implementation
2766 from rust_print_type.
2767
6f827019
AB
27682020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2769
2770 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
2771 implementation moves to...
2772 (ada_language::sniff_from_mangled_name): ...here. Update return
2773 type.
2774 (ada_language_data): Delete la_sniff_from_mangled_name
2775 initializer.
2776 * c-lang.c (c_language_data): Likewise.
2777 (cplus_language_data): Likewise.
2778 (cplus_language::sniff_from_mangled_name): New member function,
2779 implementation taken from gdb_sniff_from_mangled_name.
2780 (asm_language_data): Delete la_sniff_from_mangled_name
2781 initializer.
2782 (minimal_language_data): Likewise.
2783 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
2784 implementation moves to cplus_language::sniff_from_mangled_name.
2785 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
2786 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
2787 moves to...
2788 (d_language::sniff_from_mangled_name): ...here.
2789 (d_language_data): Delete la_sniff_from_mangled_name initializer.
2790 * f-lang.c (f_language_data): Likewise.
2791 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
2792 moves to...
2793 (go_language::sniff_from_mangled_name): ...here.
2794 (go_language_data): Delete la_sniff_from_mangled_name initializer.
2795 * language.c (language_sniff_from_mangled_name): Delete.
2796 (unknown_language_data): Delete la_sniff_from_mangled_name
2797 initializer.
2798 (auto_language_data): Likewise.
2799 * language.h (language_data): Delete la_sniff_from_mangled_name
2800 field.
2801 (language_defn::sniff_from_mangled_name): New function.
2802 (language_sniff_from_mangled_name): Delete declaration.
2803 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
2804 field.
2805 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
2806 implementation moves to...
2807 (objc_language::sniff_from_mangled_name): ...here.
2808 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
2809 * opencl-lang.c (opencl_language_data): Likewise.
2810 * p-lang.c (pascal_language_data): Likewise.
2811 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
2812 implementation moves to...
2813 (rust_language::sniff_from_mangled_name): ...here.
2814 (rust_language_data): Delete la_sniff_from_mangled_name
2815 initializer.
2816 * symtab.c (symbol_find_demangled_name): Call
2817 sniff_from_mangled_name member function.
2818
fb8006fd
AB
28192020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2820
2821 * ada-lang.c (ada_language_data): Delete la_search_name_hash
2822 initializer.
2823 * c-lang.c (c_language_data): Likewise.
2824 (cplus_language_data): Likewise.
2825 (cplus_language::search_name_hash): New member function.
2826 (asm_language_data): Delete la_search_name_hash initializer.
2827 (minimal_language_data): Likewise.
2828 * d-lang.c (d_language_data): Likewise.
2829 * dictionary.c (default_search_name_hash): Rename to...
2830 (language_defn::search_name_hash): ...this.
2831 * f-lang.c (f_language_data): Likewise.
2832 (f_language::search_name_hash): New member function.
2833 * go-lang.c (go_language_data): Delete la_search_name_hash
2834 initializer.
2835 * language.c (unknown_language_data): Likewise.
2836 (auto_language_data): Likewise.
2837 * language.h (struct language_data): Delete la_search_name_hash
2838 field.
2839 (language_defn::search_name_hash): Declare new member function.
2840 (default_search_name_hash): Delete declaration.
2841 * m2-lang.c (m2_language_data): Delete la_search_name_hash
2842 initializer.
2843 * objc-lang.c (objc_language_data): Likewise.
2844 * opencl-lang.c (opencl_language_data): Likewise.
2845 * p-lang.c (pascal_language_data): Likewise.
2846 * rust-lang.c (rust_language_data): Likewise.
2847 * symtab.c (search_name_hash): Update call.
2848
8e25bafe
AB
28492020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2850
2851 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
2852 initializer.
2853 * c-lang.c (class compile_instance): Declare.
2854 (c_language_data): Delete la_get_compile_instance initializer.
2855 (c_language::get_compile_instance): New member function.
2856 (cplus_language_data): Delete la_get_compile_instance initializer.
2857 (cplus_language::get_compile_instance): New member function.
2858 (asm_language_data): Delete la_get_compile_instance initializer.
2859 (minimal_language_data): Likewise.
2860 * c-lang.h (c_get_compile_context): Update comment.
2861 (cplus_get_compile_context): Update comment.
2862 * compile/compile.c (compile_to_object): Update calls, don't rely
2863 on function pointer being NULL.
2864 * d-lang.c (d_language_data): Delete la_get_compile_instance
2865 initializer.
2866 * f-lang.c (f_language_data): Likewise.
2867 * go-lang.c (go_language_data): Likewise.
2868 * language.c (unknown_language_data): Likewise.
2869 (auto_language_data): Likewise.
2870 * language.h (language_data): Delete la_get_compile_instance field.
2871 (language_defn::get_compile_instance): New member function.
2872 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
2873 initializer.
2874 * objc-lang.c (objc_language_data): Likewise.
2875 * opencl-lang.c (opencl_language_data): Likewise.
2876 * p-lang.c (pascal_language_data): Likewise.
2877 * rust-lang.c (rust_language_data): Likewise.
2878
4009ee92
AB
28792020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2880
2881 * ada-lang.c (ada_add_all_symbols): Update comment.
2882 (ada_iterate_over_symbols): Delete, move implementation to...
2883 (ada_language::iterate_over_symbols): ...here, a new member
2884 function, rewrite to use range based for loop.
2885 (ada_language_data): Delete la_iterate_over_symbols initializer.
2886 * c-lang.c (c_language_data): Likewise.
2887 (cplus_language_data): Likewise.
2888 (asm_language_data): Likewise.
2889 (minimal_language_data): Likewise.
2890 * d-lang.c (d_language_data): Likewise.
2891 * f-lang.c (f_language_data): Likewise.
2892 * go-lang.c (go_language_data): Likewise.
2893 * language.c (unknown_language_data): Likewise.
2894 (auto_language_data): Likewise.
2895 * language.h (language_data): Delete la_iterate_over_symbols field.
2896 (language_defn::iterate_over_symbols): New member function.
2897 (LA_ITERATE_OVER_SYMBOLS): Update.
2898 * linespec.c (iterate_over_all_matching_symtabs): Update.
2899 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
2900 initializer.
2901 * objc-lang.c (objc_language_data): Likewise.
2902 * opencl-lang.c (opencl_language_data): Likewise.
2903 * p-lang.c (pascal_language_data): Likewise.
2904 * rust-lang.c (rust_language_data): Likewise.
2905
54f4ca46
AB
29062020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2907
2908 * ada-lang.c (ada_language_data): Delete
2909 la_lookup_transparent_type initializer.
2910 * c-lang.c (c_language_data): Likewise.
2911 (cplus_language_data): Likewise.
2912 (cplus_language::lookup_transparent_type): New member function.
2913 (asm_language_data): Delete la_lookup_transparent_type
2914 initializer.
2915 (minimal_language_data): Likewise.
2916 * d-lang.c (d_language_data): Likewise.
2917 * f-lang.c (f_language_data): Likewise.
2918 * go-lang.c (go_language_data): Likewise.
2919 * language.c (unknown_language_data): Likewise.
2920 (auto_language_data): Likewise.
2921 * language.h (struct language_data): Delete
2922 la_lookup_transparent_type field.
2923 (language_defn::lookup_transparent_type): New member function.
2924 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
2925 initializer.
2926 * objc-lang.c (objc_language_data): Likewise.
2927 * opencl-lang.c (opencl_language_data): Likewise.
2928 * p-lang.c (pascal_language_data): Likewise.
2929 * rust-lang.c (rust_language_data): Likewise.
2930 * symtab.c (symbol_matches_domain): Update call.
2931
1fb314aa
AB
29322020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2933
2934 * ada-lang.c (ada_language_arch_info): Delete function, move
2935 implementation to...
2936 (ada_language::language_arch_info): ...here, a new member
2937 function.
2938 (ada_language_data): Delete la_language_arch_info.
2939 * c-lang.c (c_language_data): Likewise.
2940 (c_language::language_arch_info): New member function.
2941 (cplus_language_arch_info): Delete function, move
2942 implementation to...
2943 (cplus_language::language_arch_info): ...here, a new member
2944 function.
2945 (cplus_language_data): Delete la_language_arch_info.
2946 (asm_language_data): Likewise.
2947 (asm_language::language_arch_info): New member function.
2948 (minimal_language_data): Delete la_language_arch_info.
2949 (minimal_language::language_arch_info): New member function.
2950 * d-lang.c (d_language_arch_info): Delete function, move
2951 implementation to...
2952 (d_language::language_arch_info): ...here, a new member
2953 function.
2954 (d_language_data): Delete la_language_arch_info.
2955 * f-lang.c (f_language_arch_info): Delete function, move
2956 implementation to...
2957 (f_language::language_arch_info): ...here, a new member
2958 function.
2959 (f_language_data): Delete la_language_arch_info.
2960 * go-lang.c (go_language_arch_info): Delete function, move
2961 implementation to...
2962 (go_language::language_arch_info): ...here, a new member
2963 function.
2964 (go_language_data): Delete la_language_arch_info.
2965 * language.c (unknown_language_data): Likewise.
2966 (unknown_language::language_arch_info): New member function.
2967 (auto_language_data): Delete la_language_arch_info.
2968 (auto_language::language_arch_info): New member function.
2969 (language_gdbarch_post_init): Update call to
2970 la_language_arch_info.
2971 * language.h (language_data): Delete la_language_arch_info
2972 function pointer.
2973 (language_defn::language_arch_info): New function.
2974 * m2-lang.c (m2_language_arch_info): Delete function, move
2975 implementation to...
2976 (m2_language::language_arch_info): ...here, a new member
2977 function.
2978 (m2_language_data): Delete la_language_arch_info.
2979 * objc-lang.c (objc_language_arch_info): Delete function, move
2980 implementation to...
2981 (objc_language::language_arch_info): ...here, a new member
2982 function.
2983 (objc_language_data): Delete la_language_arch_info.
2984 * opencl-lang.c (opencl_language_arch_info): Delete function, move
2985 implementation to...
2986 (opencl_language::language_arch_info): ...here, a new member
2987 function.
2988 (opencl_language_data): Delete la_language_arch_info.
2989 * p-lang.c (pascal_language_arch_info): Delete function, move
2990 implementation to...
2991 (pascal_language::language_arch_info): ...here, a new member
2992 function.
2993 (pascal_language_data): Delete la_language_arch_info.
2994 * rust-lang.c (rust_language_arch_info): Delete function, move
2995 implementation to...
2996 (rust_language::language_arch_info): ...here, a new member
2997 function.
2998 (rust_language_data): Delete la_language_arch_info.
2999
48448202
AB
30002020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3001
3002 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
3003 initializer.
3004 * c-lang.c (c_language_data): Likewise.
3005 (cplus_language_data): Likewise.
3006 (cplus_language::pass_by_reference_info): New method.
3007 (asm_language_data): Delete la_pass_by_reference initializer.
3008 (minimal_language_data): Likewise.
3009 * cp-abi.c (cp_pass_by_reference): Remove use of
3010 default_pass_by_reference.
3011 * d-lang.c (d_language_data): Likewise.
3012 * f-lang.c (f_language_data): Likewise.
3013 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
3014 default_pass_by_reference.
3015 * go-lang.c (go_language_data): Likewise.
3016 * language.c (language_pass_by_reference): Update.
3017 (default_pass_by_reference): Delete.
3018 (unknown_language_data): Delete la_pass_by_reference
3019 initializer.
3020 (auto_language_data): Likewise.
3021 * language.h (struct language_data): Delete la_pass_by_reference
3022 field.
3023 (language_defn::pass_by_reference_info): New member function.
3024 (default_pass_by_reference): Delete declaration.
3025 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
3026 initializer.
3027 * objc-lang.c (objc_language_data): Likewise.
3028 * opencl-lang.c (opencl_language_data): Likewise.
3029 * p-lang.c (pascal_language_data): Likewise.
3030 * rust-lang.c (rust_language_data): Likewise.
3031
15e5fd35
AB
30322020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3033
3034 * ada-lang.c (ada_read_var_value): Delete function, move
3035 implementation to...
3036 (ada_language::read_var_value): ...here.
3037 (ada_language_data): Delete la_read_var_value initializer.
3038 * c-lang.c (c_language_data): Likewise.
3039 (cplus_language_data): Likewise.
3040 (minimal_language_data): Likewise.
3041 * d-lang.c (d_language_data): Likewise.
3042 * f-lang.c (f_language_data): Likewise.
3043 * findvar.c (default_read_var_value): Rename to...
3044 (language_defn::read_var_value): ...this.
3045 * findvar.c (read_var_value): Update header comment, and change to
3046 call member function instead of function pointer.
3047 * go-lang.c (go_language_data): Likewise.
3048 * language.c (unknown_language_data): Delete la_read_var_value
3049 initializer.
3050 (auto_language_data): Likewise.
3051 * language.h (struct language_data): Delete la_read_var_value
3052 field.
3053 (language_defn::read_var_value): New member function.
3054 (default_read_var_value): Delete declaration.
3055 * m2-lang.c (m2_language_data): Delete la_read_var_value
3056 initializer.
3057 * objc-lang.c (objc_language_data): Likewise.
3058 * opencl-lang.c (opencl_language_data): Likewise.
3059 * p-lang.c (pascal_language_data): Likewise.
3060 * rust-lang.c (rust_language_data): Likewise.
3061 * value.h (default_read_var_value): Delete declaration.
3062
5bd40f2a
AB
30632020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3064
3065 * ada-lang.c (ada_print_array_index): Delete function, move
3066 implementation to...
3067 (ada_language::print_array_index): ...here.
3068 (ada_language_data): Delete la_print_array_index initializer.
3069 * c-lang.c (c_language_data): Likewise.
3070 (cplus_language_data): Likewise.
3071 (minimal_language_data): Likewise.
3072 * d-lang.c (d_language_data): Likewise.
3073 * f-lang.c (f_language_data): Likewise.
3074 * go-lang.c (go_language_data): Likewise.
3075 * language.c (default_print_array_index): Delete function, move
3076 implementation to...
3077 (language_defn::print_array_index): ...here.
3078 (unknown_language_data): Delete la_print_array_index initializer.
3079 (auto_language_data): Likewise.
3080 * language.h (struct language_data): Delete la_print_array_index
3081 field.
3082 (language_defn::print_array_index): New member function.
3083 (LA_PRINT_ARRAY_INDEX): Update.
3084 (default_print_array_index): Delete declaration.
3085 * m2-lang.c (m2_language_data): Delete la_print_array_index
3086 initializer.
3087 * objc-lang.c (objc_language_data): Likewise.
3088 * opencl-lang.c (opencl_language_data): Likewise.
3089 * p-lang.c (pascal_language_data): Likewise.
3090 * rust-lang.c (rust_language_data): Likewise.
3091
0874fd07
AB
30922020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3093
3094 * gdb/ada-lang.c (ada_language_defn): Convert to...
3095 (ada_language_data): ...this.
3096 (class ada_language): New class.
3097 (ada_language_defn): New static global.
3098 * gdb/c-lang.c (c_language_defn): Convert to...
3099 (c_language_data): ...this.
3100 (class c_language): New class.
3101 (c_language_defn): New static global.
3102 (cplus_language_defn): Convert to...
3103 (cplus_language_data): ...this.
3104 (class cplus_language): New class.
3105 (cplus_language_defn): New static global.
3106 (asm_language_defn): Convert to...
3107 (asm_language_data): ...this.
3108 (class asm_language): New class.
3109 (asm_language_defn): New static global.
3110 (minimal_language_defn): Convert to...
3111 (minimal_language_data): ...this.
3112 (class minimal_language): New class.
3113 (minimal_language_defn): New static global.
3114 * gdb/d-lang.c (d_language_defn): Convert to...
3115 (d_language_data): ...this.
3116 (class d_language): New class.
3117 (d_language_defn): New static global.
3118 * gdb/f-lang.c (f_language_defn): Convert to...
3119 (f_language_data): ...this.
3120 (class f_language): New class.
3121 (f_language_defn): New static global.
3122 * gdb/go-lang.c (go_language_defn): Convert to...
3123 (go_language_data): ...this.
3124 (class go_language): New class.
3125 (go_language_defn): New static global.
3126 * gdb/language.c (unknown_language_defn): Remove declaration.
3127 (current_language): Initialize to nullptr, real initialization is
3128 moved to _initialize_language.
3129 (languages): Delete global.
3130 (language_defn::languages): Define.
3131 (set_language_command): Use language_defn::languages.
3132 (set_language): Likewise.
3133 (range_error): Likewise.
3134 (language_enum): Likewise.
3135 (language_def): Likewise.
3136 (add_set_language_command): Use language_def::languages for the
3137 language list, and language_def to lookup language pointers.
3138 (skip_language_trampoline): Use language_defn::languages.
3139 (unknown_language_defn): Convert to...
3140 (unknown_language_data): ...this.
3141 (class unknown_language): New class.
3142 (unknown_language_defn): New static global.
3143 (auto_language_defn): Convert to...
3144 (auto_language_data): ...this.
3145 (class auto_language): New class.
3146 (auto_language_defn): New static global.
3147 (language_gdbarch_post_init): Use language_defn::languages.
3148 (_initialize_language): Initialize current_language.
3149 * gdb/language.h (struct language_defn): Rename to...
3150 (struct language_data): ...this.
3151 (struct language_defn): New.
3152 (auto_language_defn): Delete.
3153 (unknown_language_defn): Delete.
3154 (minimal_language_defn): Delete.
3155 (ada_language_defn): Delete.
3156 (asm_language_defn): Delete.
3157 (c_language_defn): Delete.
3158 (cplus_language_defn): Delete.
3159 (d_language_defn): Delete.
3160 (f_language_defn): Delete.
3161 (go_language_defn): Delete.
3162 (m2_language_defn): Delete.
3163 (objc_language_defn): Delete.
3164 (opencl_language_defn): Delete.
3165 (pascal_language_defn): Delete.
3166 (rust_language_defn): Delete.
3167 * gdb/m2-lang.c (m2_language_defn): Convert to...
3168 (m2_language_data): ...this.
3169 (class m2_language): New class.
3170 (m2_language_defn): New static global.
3171 * gdb/objc-lang.c (objc_language_defn): Convert to...
3172 (objc_language_data): ...this.
3173 (class objc_language): New class.
3174 (objc_language_defn): New static global.
3175 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
3176 (opencl_language_data): ...this.
3177 (class opencl_language): New class.
3178 (opencl_language_defn): New static global.
3179 * gdb/p-lang.c (pascal_language_defn): Convert to...
3180 (pascal_language_data): ...this.
3181 (class pascal_language): New class.
3182 (pascal_language_defn): New static global.
3183 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
3184 language pointer, update comment format.
3185 * gdb/rust-lang.c (rust_language_defn): Convert to...
3186 (rust_language_data): ...this.
3187 (class rust_language): New class.
3188 (rust_language_defn): New static global.
3189
1313c56e
AB
31902020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
3191
3192 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
3193 member variable.
3194 <m_stmt_at_address>: New member variable.
3195 (lnp_state_machine::record_line): Don't record some lines, update
3196 tracking of is_stmt at the same address.
3197 (lnp_state_machine::lnp_state_machine): Initialise new member
3198 variables.
3199
b7ed9f3d
ST
32002020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
3201
3202 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
3203 "-include gnu-nat-mig.h".
3204 * gnu-nat-mig.h: New file.
3205 * gnu-nat.c: Include "gnu-nat-mig.h".
3206 (exc_server, msg_reply_server, notify_server,
3207 process_reply_server): Remove declarations.
3208
14a8ad62
ST
32092020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3210
3211 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
3212 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
3213 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
3214 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
3215 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
3216 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
3217 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
3218 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
3219 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
3220 to gnu_nat_target class.
3221 * gnu-nat.c: Likewise.
3222 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
3223 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
3224 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
3225 object.
3226 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
3227 instead of `gnu_target'.
3228
0af5e106
ST
32292020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3230
3231 * i386-gnu-tdep.c: Include "gdbcore.h"
3232 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
3233 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
3234 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
3235 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
3236 i386_gnu_sigcontext_addr): New functions
3237 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
3238 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
3239 tdep.
3240
078f2fc9
ST
32412020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3242
3243 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
3244 before fork_inferior call. Avoid calling it if target_is_pushed returns
3245 true.
3246
53dff92c
ST
32472020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3248
3249 * gnu-nat.h (gnu_target): New variable declaration.
3250 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
3251 gnu_target.
3252 * gnu-nat.c (gnu_target): New variable.
3253 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
3254 add_thread_silent, and add_thread calls.
3255 (gnu_nat_target::create_inferior): Pass gnu_target to
3256 add_thread_silent, thread_change_ptid call.
3257 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
3258 call.
3259
5a8b8627
ST
32602020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3261
3262 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
3263 (gnu_nat_target::find_memory_regions): Remove unused
3264 `old_address' variable.
3265
366f550a
ST
32662020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3267
3268 * gnu-nat.c: Include "gdbarch.h".
3269
f14871bf
ST
32702020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3271
3272 * reply_mig_hack.awk (Error return): Cast function through
3273 void *, to bypass compiler function call check.
3274
c6887cfb
ST
32752020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3276
3277 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
3278 $(srcdir)/reply_mig_hack.awk.
3279
6930bffe
ST
32802020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3281
3282 * gnu-nat.h (gnu_debug_flag): Set type to bool.
3283
112c22ed
JG
32842020-05-30 Jonny Grant <jg@jguk.org>
3285
3286 * configure.ac (ACX_BUGURL): change bug URL to https.
3287
f68f85b5
PA
32882020-05-30 Pedro Alves <palves@redhat.com>
3289
3290 * cp-support.c (replace_typedefs_template): New.
3291 (replace_typedefs_qualified_name): Handle
3292 DEMANGLE_COMPONENT_TEMPLATE.
3293
976ca316
SM
32942020-05-29 Simon Marchi <simon.marchi@efficios.com>
3295
3296 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
3297 dwarf2/index-cache.h, dwarf2/index-write.c,
3298 dwarf2/index-write.h, dwarf2/line-header.c,
3299 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
3300 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
3301 variables and fields from `dwarf2_per_objfile` to just
3302 `per_objfile` throughout.
3303
989ade05
SM
33042020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
3305
3306 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3307 <push_dwarf_reg_entry_value>: Add comment.
3308
c47bae85
KB
33092020-05-28 Kevin Buettner <kevinb@redhat.com>
3310 Keith Seitz <keiths@redhat.com>
3311
3312 * python/python.c (do_start_initialization): Call PyEval_SaveThread
3313 instead of PyEval_ReleaseLock.
3314 (class gdbpy_gil): Move to earlier in file.
3315 (finalize_python): Set gdb_python_initialized.
3316 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
3317 when not initialized.
3318
44486dcf
SM
33192020-05-28 Simon Marchi <simon.marchi@efficios.com>
3320
3321 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3322 <push_dwarf_reg_entry_value>: Remove assert. Override
3323 per_objfile with caller_per_objfile.
3324
f030440d
TV
33252020-05-28 Tom de Vries <tdevries@suse.de>
3326
3327 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
3328 PR gold/15646 workaround to symbol kind "type".
3329
f0fbb768
TT
33302020-05-27 Tom Tromey <tromey@adacore.com>
3331
3332 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
3333
af0b2a3e
TT
33342020-05-27 Tom Tromey <tromey@adacore.com>
3335
3336 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
3337 Use htab_find_with_hash.
3338 <add_abbrev>: Remove "abbrev_number" parameter.
3339 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
3340 "abbrev_number" parameter. Use htab_find_slot_with_hash.
3341 (hash_abbrev): Add comment.
3342 (abbrev_table::lookup_abbrev): Move to header file.
3343 (abbrev_table::read): Update.
3344
7d00ffec
TT
33452020-05-27 Tom Tromey <tromey@adacore.com>
3346
3347 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
3348 method.
3349 <canonical_name>: New member.
3350 <raw_name>: Rename from "name".
3351 (partial_die_info): Initialize canonical_name.
3352 (scan_partial_symbols): Check raw_name.
3353 (partial_die_parent_scope, partial_die_full_name)
3354 (add_partial_symbol, add_partial_subprogram)
3355 (add_partial_enumeration, load_partial_dies): Use "name" method.
3356 (partial_die_info::name): New method.
3357 (partial_die_info::read, guess_partial_die_structure_name)
3358 (partial_die_info::fixup): Update.
3359
697bba18
TT
33602020-05-27 Tom Tromey <tromey@adacore.com>
3361
3362 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
3363 <get_ref_die_offset>: Inline.
3364 <get_ref_die_offset_complaint>: New method.
3365 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
3366 (attribute::get_ref_die_offset_complaint): Rename from
3367 get_ref_die_offset. Just issue complaint.
3368
c17ace43
HD
33692020-05-27 Hannes Domani <ssbssa@yahoo.de>
3370
3371 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
3372
96445f0b
HD
33732020-05-27 Hannes Domani <ssbssa@yahoo.de>
3374
3375 * exec.c (exec_file_attach): Use errno value of first openp failure.
3376
ac637ec3
HD
33772020-05-27 Hannes Domani <ssbssa@yahoo.de>
3378
3379 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
3380 Don't close thread handle.
3381
17ee85fc
TT
33822020-05-27 Tom Tromey <tom@tromey.com>
3383 Simon Marchi <simon.marchi@efficios.com>
3384
3385 * objfiles.h (struct objfile) <partial_symtabs>: Now a
3386 shared_ptr.
3387 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
3388 member.
3389 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
3390 dwarf2_per_bfd_objfile_data_key>: New globals.
3391 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
3392 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
3393 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
3394 shared.
3395 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
3396 short-circuit when sharing.
3397 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
3398 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
3399
39b16f87
SM
34002020-05-27 Simon Marchi <simon.marchi@efficios.com>
3401
3402 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
3403 to...
3404 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
3405 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
3406
fcf23d5b
SM
34072020-05-27 Simon Marchi <simon.marchi@efficios.com>
3408
3409 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
3410 build_name_components, find_name_components_bounds>:
3411 Add per_objfile parameter.
3412 (struct mapped_index) <symbol_name_at>: Likewise.
3413 (struct mapped_debug_names): Remove constructor.
3414 <dwarf2_per_objfile>: Remove field.
3415 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
3416 (mapped_index_base::find_name_components_bounds,
3417 mapped_index_base::build_name_components,
3418 dw2_expand_symtabs_matching_symbol): Likewise.
3419 (class mock_mapped_index) <symbol_name_at>: Likewise.
3420 (check_match): Likewise.
3421 (check_find_bounds_finds): Likewise.
3422 (test_mapped_index_find_name_component_bounds): Update.
3423 (CHECK_MATCH): Update.
3424 (dw2_expand_symtabs_matching): Update.
3425 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
3426 per_objfile parameter.
3427 <find_vec_in_debug_names>: Likewise.
3428 <m_per_objfile>: New field.
3429 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
3430 parameter.
3431 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
3432 (dw2_debug_names_iterator::next): Update.
3433 (dw2_debug_names_lookup_symbol): Update.
3434 (dw2_debug_names_expand_symtabs_for_function): Update.
3435 (dw2_debug_names_map_matching_symbols): Update.
3436 (dw2_debug_names_expand_symtabs_matching): Update.
3437 (dwarf2_read_debug_names): Update.
3438
7188ed02
SM
34392020-05-27 Simon Marchi <simon.marchi@efficios.com>
3440
3441 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
3442 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
3443 move to dwarf2_per_objfile.
3444 <read_in_chain>: Remove.
3445 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
3446 remove_all_cus, age_comp_units>: New methods.
3447 <m_dwarf2_cus>: New member.
3448 (struct dwarf2_per_cu_data) <cu>: Remove.
3449 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
3450 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
3451 moved to methods of dwarf2_per_objfile.
3452 (dwarf2_clear_marks): Remove.
3453 (dwarf2_queue_item::~dwarf2_queue_item): Update.
3454 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
3455 (dwarf2_per_bfd::free_cached_comp_units): Remove.
3456 (dwarf2_per_objfile::remove_all_cus): New.
3457 (class free_cached_comp_units) <~free_cached_comp_units>:
3458 Update.
3459 (load_cu): Update.
3460 (dw2_do_instantiate_symtab): Adjust.
3461 (fill_in_sig_entry_from_dwo_entry): Adjust.
3462 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3463 (cutu_reader::cutu_reader): Likewise.
3464 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
3465 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
3466 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
3467 and dwarf2_per_objfile::age_comp_units.
3468 (load_partial_comp_unit): Update.
3469 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
3470 (process_queue): Likewise.
3471 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
3472 backlink.
3473 (dwarf2_read_addr_index): Likewise.
3474 (follow_die_offset): Likewise.
3475 (dwarf2_fetch_die_loc_sect_off): Likewise.
3476 (dwarf2_fetch_constant_bytes): Likewise.
3477 (dwarf2_fetch_die_type_sect_off): Likewise.
3478 (follow_die_sig_1): Likewise.
3479 (load_full_type_unit): Likewise.
3480 (read_signatured_type): Likewise.
3481 (dwarf2_cu::dwarf2_cu): Don't set cu field.
3482 (dwarf2_cu::~dwarf2_cu): Remove.
3483 (dwarf2_per_objfile::get_cu): New.
3484 (dwarf2_per_objfile::set_cu): New.
3485 (age_cached_comp_units): Rename to...
3486 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
3487 to std::unordered_map.
3488 (free_one_cached_comp_unit): Rename to...
3489 (dwarf2_per_objfile::remove_cu): ... this. Adjust
3490 to std::unordered_map.
3491 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
3492 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
3493 a dwarf2_per_objfile in data.
3494 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
3495 (dwarf2_clear_marks): Remove.
3496
2e671100
SM
34972020-05-27 Simon Marchi <simon.marchi@efficios.com>
3498
3499 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
3500 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
3501 (init_tu_and_read_dwo_dies): Likewise.
3502 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
3503 (cutu_reader::cutu_reader): Likewise.
3504 (load_partial_comp_unit): Likewise.
3505 (process_psymtab_comp_unit): Update.
3506 (build_type_psymtabs_1): Update.
3507 (process_skeletonless_type_unit): Update.
3508 (load_full_comp_unit): Update.
3509 (find_partial_die): Update.
3510 (dwarf2_read_addr_index): Update.
3511 (read_signatured_type): Update.
3512
2e6a9f79
SM
35132020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3514
3515 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
3516 m_header_read_in>: New fields.
3517 <get_header>: New method.
3518 * dwarf2/read.c (per_cu_header_read_in): Remove.
3519 (dwarf2_per_cu_data::get_header): New.
3520 (dwarf2_per_cu_data::addr_size): Update.
3521 (dwarf2_per_cu_data::offset_size): Update.
3522 (dwarf2_per_cu_data::ref_addr_size): Update.
3523
1b555f17
SM
35242020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3525
3526 * dwarf2/read.c (load_cu): Return dwarf2_cu.
3527 (dw2_do_instantiate_symtab): Update.
3528 (queue_and_load_all_dwo_tus): Change parameter from
3529 dwarf2_per_cu_data to dwarf2_cu.
3530 (dwarf2_fetch_die_loc_sect_off): Update.
3531 (dwarf2_fetch_constant_bytes): Update.
3532 (dwarf2_fetch_die_type_sect_off): Update.
3533
8fc0b21d
SM
35342020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3535
3536 * dwarf2/read.c (process_full_comp_unit,
3537 process_full_type_unit): Remove per_cu, per_objfile paramters.
3538 Add dwarf2_cu parameter.
3539 (process_queue): Update.
3540
168c9250
SM
35412020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3542
3543 * dwarf2/read.c (create_cu_from_index_list): Replace
3544 dwarf2_per_objfile parameter with dwarf2_per_bfd.
3545 (create_cus_from_index_list): Likewise.
3546 (create_cus_from_index): Likewise.
3547 (create_signatured_type_table_from_index): Likewise.
3548 (create_cus_from_debug_names_list): Likewise.
3549 (create_cus_from_debug_names): Likewise.
3550 (dwarf2_read_gdb_index): Update.
3551 (dwarf2_read_debug_names): Update.
3552
e286671b
TT
35532020-05-27 Tom Tromey <tom@tromey.com>
3554 Simon Marchi <simon.marchi@efficios.com>
3555
3556 * dwarf2/read.h (struct dwarf2_per_objfile)
3557 <get_type_for_signatured_type, set_type_for_signatured_type>:
3558 New methods.
3559 <m_type_map>: New member.
3560 (struct signatured_type) <type>: Remove.
3561 * dwarf2/read.c
3562 (dwarf2_per_objfile::get_type_for_signatured_type,
3563 dwarf2_per_objfile::set_type_for_signatured_type): New.
3564 (get_signatured_type): Use new methods.
3565
8adb8487
TT
35662020-05-27 Tom Tromey <tom@tromey.com>
3567 Simon Marchi <simon.marchi@efficios.com>
3568
3569 * dwarf2/read.h (struct type_unit_group_unshareable): New.
3570 (struct dwarf2_per_objfile) <type_units>: New member.
3571 <get_type_unit_group_unshareable>: New method.
3572 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
3573 num_symtabs, symtabs>: Remove; move to
3574 type_unit_group_unshareable.
3575 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
3576 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
3577 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
3578
127bbf4b
SM
35792020-05-27 Simon Marchi <simon.marchi@efficios.com>
3580
3581 * dwarf2/read.h (struct dwarf2_per_cu_data):
3582 <dwarf2_per_objfile>: Remove.
3583 * dwarf2/read.c (create_cu_from_index_list): Don't assign
3584 dwarf2_per_objfile.
3585 (create_signatured_type_table_from_index): Likewise.
3586 (create_signatured_type_table_from_debug_names): Likewise.
3587 (create_debug_type_hash_table): Likewise.
3588 (fill_in_sig_entry_from_dwo_entry): Likewise.
3589 (create_type_unit_group): Likewise.
3590 (read_comp_units_from_section): Likewise.
3591 (create_cus_hash_table): Likewise.
3592
f6e649dd
SM
35932020-05-27 Simon Marchi <simon.marchi@efficios.com>
3594
3595 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
3596 dwarf2_per_cu_data::dwarf2_per_objfile.
3597 (compute_compunit_symtab_includes): Likewise.
3598 (dwarf2_cu::start_symtab): Likewise.
3599
aa66c379
SM
36002020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3601
3602 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
3603 parameter.
3604 * dwarf2/read.c (get_die_type_at_offset): Likewise.
3605 (read_namespace_alias): Update.
3606 (lookup_die_type): Update.
3607 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
3608 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
3609 Update.
3610 (disassemble_dwarf_expression): Update.
3611
120ce1b5
SM
36122020-05-27 Simon Marchi <simon.marchi@efficios.com>
3613
3614 * dwarf2/read.h (struct dwarf2_queue_item): Add
3615 dwarf2_per_objfile parameter, assign new parameter.
3616 <per_objfile>: New field.
3617 * dwarf2/read.c (free_one_cached_comp_unit): Add
3618 dwarf2_per_objfile parameter.
3619 (queue_comp_unit): Likewise.
3620 (dw2_do_instantiate_symtab): Update.
3621 (process_psymtab_comp_unit): Update.
3622 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
3623 (process_imported_unit_die): Update.
3624 (queue_and_load_dwo_tu): Update.
3625 (follow_die_offset): Update.
3626 (follow_die_sig_1): Update.
3627
9f47c707
SM
36282020-05-27 Simon Marchi <simon.marchi@efficios.com>
3629
3630 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
3631 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
3632 (read_call_site_scope): Assign per_objfile.
3633 (dwarf2_per_cu_data::objfile): Remove.
3634 * gdbtypes.h (struct call_site) <per_objfile>: New member.
3635 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
3636 dwarf2_per_objfile parameter.
3637 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
3638 dwarf2_per_objfile parameter.
3639 (dwarf_expr_reg_to_entry_parameter): Add output
3640 dwarf2_per_objfile parameter.
3641 (locexpr_get_frame_base): Update.
3642 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
3643 <push_dwarf_reg_entry_value>: Update.
3644 <call_site_to_target_addr>: Update.
3645 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
3646 parameter.
3647 (value_of_dwarf_reg_entry): Update.
3648 (rw_pieced_value): Update.
3649 (indirect_synthetic_pointer): Update.
3650 (dwarf2_evaluate_property): Update.
3651 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
3652 parameter.
3653 (locexpr_read_variable): Update.
3654 (locexpr_get_symbol_read_needs): Update.
3655 (loclist_read_variable): Update.
3656
14095eb3
SM
36572020-05-27 Simon Marchi <simon.marchi@efficios.com>
3658
3659 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
3660 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3661 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
3662 parameter.
3663 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
3664 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3665 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
3666 parameter.
3667 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
3668 sect_variable_value): Add dwarf2_per_objfile parameter.
3669 (class dwarf_evaluate_loc_desc) <dwarf_call,
3670 dwarf_variable_value>: Update.
3671 (fetch_const_value_from_synthetic_pointer): Add
3672 dwarf2_per_objfile parameter.
3673 (fetch_const_value_from_synthetic_pointer): Update.
3674 (coerced_pieced_ref): Update.
3675 (class symbol_needs_eval_context) <dwarf_call,
3676 dwarf_variable_value>: Update.
3677 (dwarf2_compile_expr_to_ax): Update.
3678
3c3cd3d4
SM
36792020-05-27 Simon Marchi <simon.marchi@efficios.com>
3680
3681 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
3682 parameter.
3683 (dwarf2_evaluate_loc_desc_full): Update.
3684
82ca3f51
SM
36852020-05-27 Simon Marchi <simon.marchi@efficios.com>
3686
3687 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
3688 parameter.
3689 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
3690 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
3691 dwarf2_per_objfile parameter.
3692 (decode_debug_loc_dwo_addresses): Likewise.
3693 (dwarf2_find_location_expression): Update.
3694 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
3695 (locexpr_describe_location_piece): Add dwarf2_per_objfile
3696 parameter.
3697 (disassemble_dwarf_expression): Add dwarf2_per_objfile
3698 parameter.
3699 (locexpr_describe_location_1): Likewise.
3700 (locexpr_describe_location): Update.
3701
4b167ea1
SM
37022020-05-27 Simon Marchi <simon.marchi@efficios.com>
3703
3704 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
3705 Remove.
3706 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
3707 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
3708 (dwarf2_compile_property_to_c): Update.
3709 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
3710 use text offset from objfile.
3711 (locexpr_tracepoint_var_ref): Update.
3712 (locexpr_generate_c_location): Update.
3713 (loclist_describe_location): Update.
3714 (loclist_tracepoint_var_ref): Update.
3715 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
3716 dwarf2_per_objfile parameter.
3717 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
3718 use text offset from objfile.
3719 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
3720
89b07335
SM
37212020-05-27 Simon Marchi <simon.marchi@efficios.com>
3722
3723 * dwarf2/expr.h (struct dwarf_expr_context)
3724 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
3725 <offset>: Remove.
3726 <per_objfile>: New member.
3727 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
3728 dwarf2_per_objfile parameter. Don't set offset, set
3729 per_objfile.
3730 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
3731 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
3732 a dwarf2_per_objfile object instead of an offset.
3733 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
3734 constructor.
3735 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
3736 to dwarf2_expr_executor constructor. Don't set offset.
3737 (dwarf2_fetch_cfa_info): Update.
3738 (struct dwarf2_frame_cache) <text_offset>: Remove.
3739 <per_objfile>: New field.
3740 (dwarf2_frame_cache): Update.
3741 (dwarf2_frame_prev_register): Update.
3742 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3743 <dwarf_evaluate_loc_desc>: Add constructor.
3744 (dwarf2_evaluate_loc_desc_full): Update.
3745 (dwarf2_locexpr_baton_eval): Update.
3746 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
3747 Add constructor.
3748 (dwarf2_loc_desc_get_symbol_read_needs): Update.
3749
293e7e51
SM
37502020-05-27 Simon Marchi <simon.marchi@efficios.com>
3751
3752 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
3753 addr_sized_int_type>: Move to dwarf2_cu.
3754 <int_type>: Move to dwarf2_per_objfile.
3755 (struct dwarf2_per_objfile) <int_type>: Move here.
3756 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
3757 addr_sized_int_type>: Move here.
3758 (read_func_scope): Update.
3759 (read_array_type): Update.
3760 (read_tag_string_type): Update.
3761 (attr_to_dynamic_prop): Update.
3762 (dwarf2_per_cu_data::int_type): Rename to...
3763 (dwarf2_per_objfile::int_type): ... this.
3764 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
3765 (dwarf2_cu::addr_sized_int_type): ... this.
3766 (read_subrange_type): Update.
3767 (dwarf2_per_cu_data::addr_type): Rename to...
3768 (dwarf2_cu::addr_type): ... this.
3769 (set_die_type): Update.
3770
64874a40
SM
37712020-05-27 Simon Marchi <simon.marchi@efficios.com>
3772
3773 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
3774 data through per_cu->cu.
3775
4ab09049
SM
37762020-05-27 Simon Marchi <simon.marchi@efficios.com>
3777
3778 * dwarf2/read.c (lookup_dwo_comp_unit): Change
3779 dwarf2_per_cu_data parameter fo dwarf2_cu.
3780 (lookup_dwo_type_unit): Likewise.
3781 (read_cutu_die_from_dwo): Likewise.
3782 (lookup_dwo_unit): Likewise.
3783 (open_and_init_dwo_file): Likewise.
3784 (lookup_dwo_cutu): Likewise.
3785 (lookup_dwo_comp_unit): Likewise.
3786 (lookup_dwo_type_unit): Likewise.
3787 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3788 (cutu_reader::cutu_reader): Update.
3789
47b14e86
SM
37902020-05-27 Simon Marchi <simon.marchi@efficios.com>
3791
3792 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
3793 parameter.
3794 (process_full_type_unit): Likewise.
3795 (process_queue): Update.
3796
43182c09
SM
37972020-05-27 Simon Marchi <simon.marchi@efficios.com>
3798
3799 * dwarf2/read.c (recursively_compute_inclusions): Add
3800 dwarf2_per_objfile parameter.
3801 (compute_compunit_symtab_includes): Likewise.
3802 (process_cu_includes): Update.
3803
7aa104c4
SM
38042020-05-27 Simon Marchi <simon.marchi@efficios.com>
3805
3806 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
3807 parameter.
3808 (create_type_unit_group): Update.
3809 (process_psymtab_comp_unit_reader): Update.
3810 (build_type_psymtabs_reader): Update.
3811
e3beb21d
SM
38122020-05-27 Simon Marchi <simon.marchi@efficios.com>
3813
3814 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
3815 object through m_this_cu->cu.
3816
d460f660
SM
38172020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3818
3819 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
3820 the info parameter.
3821 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
3822
ab432490
SM
38232020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3824
3825 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
3826 per_objfile parameter.
3827 (load_full_type_unit): Add per_objfile parameter.
3828 (read_signatured_type): Likewise.
3829 (load_full_comp_unit): Likewise.
3830 (load_cu): Likewise.
3831 (dw2_do_instantiate_symtab): Likewise.
3832 (dw2_get_file_names): Likewise.
3833 (dw2_map_symtabs_matching_filename): Update.
3834 (dw_expand_symtabs_matching_file_matcher): Update.
3835 (dw2_map_symbol_filenames): Update.
3836 (process_psymtab_comp_unit): Add per_objfile parameter.
3837 (build_type_psymtabs_1): Update.
3838 (process_skeletonless_type_unit): Update.
3839 (dwarf2_build_psymtabs_hard): Update.
3840 (load_partial_comp_unit): Add per_objfile parameter.
3841 (scan_partial_symbols): Update.
3842 (load_full_comp_unit): Add per_objfile parameter.
3843 (process_imported_unit_die): Update.
3844 (create_cus_hash_table): Update.
3845 (find_partial_die): Update.
3846 (dwarf2_read_addr_index): Update.
3847 (follow_die_offset): Update.
3848 (dwarf2_fetch_die_loc_sect_off): Update.
3849 (dwarf2_fetch_constant_bytes): Update.
3850 (dwarf2_fetch_die_type_sect_off): Update.
3851 (follow_die_sig_1): Update.
3852 (load_full_type_unit): Add per_objfile parameter.
3853 (read_signatured_type): Likewise.
3854
313bad1b
SM
38552020-05-27 Simon Marchi <simon.marchi@efficios.com>
3856
3857 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
3858 of objfile_name.
3859
c3699833
SM
38602020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3861
3862 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
3863 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
3864 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
3865 field.
3866 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
3867 (create_cus_from_index): Update.
3868 (dwarf2_read_gdb_index): Update.
3869 (create_cus_from_debug_names): Update.
3870 (dwarf2_read_debug_names): Update.
3871 (get_abbrev_section_for_cu): Update.
3872 (create_all_comp_units): Update.
3873 (read_attribute_value): Update.
3874 (get_debug_line_section): Update.
3875 * dwarf2/index-cache.c (index_cache::store): Update.
3876 * dwarf2/index-write.c (save_gdb_index_command): Update.
3877 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
3878
1859c670
SM
38792020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3880
3881 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
3882 member.
3883 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
3884 dwarf2_per_cu_data::per_bfd.
3885 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
3886 (create_type_unit_group): Likewise.
3887 (queue_comp_unit): Remove reference to
3888 per_cu->dwarf2_per_objfile.
3889 (maybe_queue_comp_unit): Likewise.
3890 (fill_in_sig_entry_from_dwo_entry): Assign new field.
3891 (create_cus_hash_table): Assign new field.
3892
5e22e966
SM
38932020-05-27 Simon Marchi <simon.marchi@efficios.com>
3894
3895 * dwarf2/read.c: Replace
3896 dwarf2_cu->per_cu->dwarf2_per_objfile references with
3897 dwarf2_cu->per_objfile throughout.
3898
97a1449a
SM
38992020-05-27 Simon Marchi <simon.marchi@efficios.com>
3900
3901 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
3902 parameter, don't use per_cu->dwarf2_per_objfile.
3903 (dw2_instantiate_symtab): Likewise.
3904 (dw2_find_last_source_symtab): Update.
3905 (dw2_map_expand_apply): Update.
3906 (dw2_lookup_symbol): Update.
3907 (dw2_expand_symtabs_for_function): Update.
3908 (dw2_expand_all_symtabs): Update.
3909 (dw2_expand_symtabs_with_fullname): Update.
3910 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
3911 don't use per_cu->dwarf2_per_objfile.
3912 (dw2_expand_marked_cus): Update.
3913 (dw2_find_pc_sect_compunit_symtab): Update.
3914 (dw2_debug_names_lookup_symbol): Update.
3915 (dw2_debug_names_expand_symtabs_for_function): Update.
3916 (dw2_debug_names_map_matching_symbols): Update.
3917 (dwarf2_psymtab::expand_psymtab): Update.
3918
9e021579
SM
39192020-05-27 Simon Marchi <simon.marchi@efficios.com>
3920
3921 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
3922 <per_objfile>: New member.
3923 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
3924 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
3925 call to dwarf2_cu.
3926 (cutu_reader::cutu_reader): Update.
3927 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
3928
ae090bdb
SM
39292020-05-27 Simon Marchi <simon.marchi@efficios.com>
3930
3931 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
3932 struct dwarf2_per_objfile.
3933 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
3934 dwarf2_per_bfd.
3935 * dwarf2/read.c (set_die_type): Update.
3936 (get_die_type_at_offset): Update.
3937
af758d11
SM
39382020-05-27 Tom Tromey <tom@tromey.com>
3939 Simon Marchi <simon.marchi@efficios.com>
3940
3941 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
3942 method.
3943 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
3944 get_symtab, set_symtab>: New methods.
3945 <m_symtabs>: New field.
3946 (struct dwarf2_psymtab): Derive from partial_symtab.
3947 <readin_p, get_compunit_symtab>: Declare methods.
3948 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
3949 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
3950 New methods.
3951 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
3952 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
3953 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
3954 (dw2_symtab_iter_next, dw2_print_stats)
3955 (dw2_expand_symtabs_with_fullname)
3956 (dw2_expand_symtabs_matching_one)
3957 (dw_expand_symtabs_matching_file_matcher)
3958 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
3959 (dw2_debug_names_iterator::next)
3960 (dw2_debug_names_map_matching_symbols)
3961 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
3962 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
3963 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
3964 New methods.
3965 (get_compunit_symtab, process_full_comp_unit)
3966 (process_full_type_unit): Update.
3967 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
3968
5989a64e
SM
39692020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3970
3971 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
3972 then introduce a new dwarf2_per_objfile type.
3973 <read_line_string>: Move to the new dwarf2_per_objfile type.
3974 <objfile>: Likewise.
3975 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
3976 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
3977 dwarf2_per_objfile->per_bfd.
3978 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
3979 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
3980 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
3981 (dwarf2_per_bfd::free_cached_comp_units): ... this.
3982 (dwarf2_has_info): Allocate dwarf2_per_bfd.
3983 (dwarf2_per_objfile::locate_sections): Rename to...
3984 (dwarf2_per_bfd::locate_sections): ... this.
3985 (dwarf2_per_objfile::get_cutu): Rename to...
3986 (dwarf2_per_bfd::get_cutu): ... this.
3987 (dwarf2_per_objfile::get_cu): Rename to...
3988 (dwarf2_per_bfd::get_cu): ... this.
3989 (dwarf2_per_objfile::get_tu): Rename to...
3990 (dwarf2_per_bfd::get_tu): ... this.
3991 (dwarf2_per_objfile::allocate_per_cu): Rename to...
3992 (dwarf2_per_bfd::allocate_per_cu): ... this.
3993 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
3994 (dwarf2_per_bfd::allocate_signatured_type): ... this.
3995 (get_gdb_index_contents_ftype): Change parameter from
3996 dwarf2_per_objfile to dwarf2_per_bfd.
3997 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
3998 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
3999
a50264ba
TT
40002020-05-27 Tom Tromey <tom@tromey.com>
4001 Simon Marchi <simon.marchi@efficios.com>
4002
4003 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
4004 (allocate_piece_closure): Set "per_objfile" member.
4005 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
4006 (locexpr_describe_location, loclist_describe_location): Use new
4007 member.
4008 * dwarf2/read.c (read_call_site_scope)
4009 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
4010 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
4011 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
4012 handle_data_member_location): Set per_objfile member.
4013 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
4014 member.
4015 (struct dwarf2_loclist_baton) <per_objfile>: New member.
4016
d3473f0c
TT
40172020-05-27 Tom Tromey <tom@tromey.com>
4018
4019 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
4020 allocate_signatured_type>: Declare new methods.
4021 <m_num_psymtabs>: New member.
4022 (struct dwarf2_per_cu_data) <index>: New member.
4023 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
4024 (dwarf2_per_objfile::allocate_signatured_type): New methods.
4025 (create_cu_from_index_list): Use allocate_per_cu.
4026 (create_signatured_type_table_from_index)
4027 (create_signatured_type_table_from_debug_names)
4028 (create_debug_type_hash_table, add_type_unit)
4029 (read_comp_units_from_section): Use allocate_signatured_type.
4030
5717c425
TT
40312020-05-27 Tom Tromey <tom@tromey.com>
4032
4033 * psymtab.c (partial_map_expand_apply)
4034 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
4035 (psym_lookup_global_symbol_language)
4036 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
4037 (psym_print_stats, psym_expand_symtabs_for_function)
4038 (psym_map_symbol_filenames, psym_map_matching_symbols)
4039 (psym_expand_symtabs_matching)
4040 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
4041 (maintenance_check_psymtabs): Update.
4042 * psympriv.h (struct partial_symtab) <readin_p,
4043 get_compunit_symtab>: Add objfile parameter.
4044 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
4045 Likewise.
4046 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
4047 get_compunit_symtab>: Likewise.
4048 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
4049
45940949
TT
40502020-05-27 Tom Tromey <tom@tromey.com>
4051
4052 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
4053 member.
4054 * dwarf2/read.c (delete_file_name_entry): Fix comment.
4055 (create_cu_from_index_list)
4056 (create_signatured_type_table_from_index)
4057 (create_signatured_type_table_from_debug_names)
4058 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
4059 (dwarf2_create_include_psymtab)
4060 (create_debug_type_hash_table, add_type_unit)
4061 (create_type_unit_group, read_comp_units_from_section)
4062 (dwarf2_compute_name, create_cus_hash_table)
4063 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
4064 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
4065 obstack.
4066 (dw2_get_real_path): Likewise. Change argument to
4067 dwarf2_per_objfile.
4068
f8c6d152
LM
40692020-05-27 Luis Machado <luis.machado@linaro.org>
4070
4071 PR tdep/26000
4072 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
4073 for ldrd (immediate).
4074
e98d2e6d
PW
40752020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4076
4077 * command.h: Add comment giving the name of class_tui.
4078 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
4079 create the fake command for the help for class_tui.
4080
53a47a3e
TT
40812020-05-26 Tom Tromey <tromey@adacore.com>
4082
4083 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
4084 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
4085 (val_atr): New function.
4086 (value_val_atr): Use it.
4087 * ada-valprint.c (print_optional_low_bound): Change low bound
4088 handling for enums.
4089 (val_print_packed_array_elements): Don't call discrete_position.
4090 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
4091 discrete_position for enum types.
4092 * language.c (default_print_array_index): Change type.
4093 * language.h (struct language_defn) <la_print_array_index>: Add
4094 index_type parameter, change type of index_value.
4095 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
4096 (default_print_array_index): Update.
4097 * valprint.c (maybe_print_array_index): Don't call
4098 value_from_longest. Update.
4099 (value_print_array_elements): Don't call discrete_position.
4100
0bc2354b
TT
41012020-05-26 Tom Tromey <tromey@adacore.com>
4102
4103 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
4104 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
4105
1218a4bf
CDA
41062020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
4107
4108 PR gdb/13519
4109 * avr-tdep.c (avr_integer_to_address): Return data or code
4110 address accordingly to the second 'type' argument of the
4111 function.
4112
92651b1d
MW
41132020-05-25 Michael Weghorn <m.weghorn@posteo.de>
4114
4115 * infcmd.c, inferior.h: (construct_inferior_arguments):
4116 Moved function from here to gdbsupport/common-inferior.{h,cc}
4117
0a4f5f8c
TT
41182020-05-23 Tom Tromey <tom@tromey.com>
4119
4120 Revert commit eca1f90c:
4121 * NEWS: Remove entry for completion styling.
4122 * completer.c (_rl_completion_prefix_display_length): Move
4123 declaration later.
4124 (gdb_fnprint): Revert.
4125 (gdb_display_match_list_1): Likewise.
4126 * cli/cli-style.c (completion_prefix_style)
4127 (completion_difference_style, completion_suffix_style): Remove.
4128 (_initialize_cli_style): Revert.
4129 * cli/cli-style.h (completion_prefix_style)
4130 (completion_difference_style, completion_suffix_style): Don't
4131 declare.
4132
e08bd6c5
PA
41332020-05-24 Pedro Alves <palves@redhat.com>
4134
4135 * symtab.c (completion_list_add_name): Return boolean indication
4136 of whether the symbol matched.
4137 (completion_list_add_symbol): Don't try to remove C++ aliases if
4138 the symbol didn't match in the first place.
4139 * symtab.h (completion_list_add_name): Return bool.
4140
ceacbf6e
SM
41412020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
4142
4143 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
4144 type::field.
4145
26f16254
JB
41462020-05-23 Joel Brobecker <brobecker@adacore.com>
4147
4148 GDB 9.2 released.
4149
eca1f90c
TT
41502020-05-23 Tom Tromey <tom@tromey.com>
4151
4152 * NEWS: Add entry for completion styling.
4153 * completer.c (_rl_completion_prefix_display_length): Move
4154 declaration earlier.
4155 (gdb_fnprint): Use completion_style.
4156 (gdb_display_match_list_1): Likewise.
4157 * cli/cli-style.c (completion_prefix_style)
4158 (completion_difference_style, completion_suffix_style): New
4159 globals.
4160 (_initialize_cli_style): Register new globals.
4161 * cli/cli-style.h (completion_prefix_style)
4162 (completion_difference_style, completion_suffix_style): Declare.
4163
51e2cfa2
PA
41642020-05-23 Pedro Alves <palves@redhat.com>
4165
4166 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
4167 (parse_escape): Use ISDIGIT instead of isdigit.
4168 (puts_debug): Use gdb_isprint instead of isprint.
4169 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
4170 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
4171 ISSPACE instead of isspace.
4172 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
4173 instead of isspace.
4174 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
4175 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
4176 instead of isxdigit and ISDIGIT instead of isdigit.
4177
80fc5e77
SM
41782020-05-22 Simon Marchi <simon.marchi@efficios.com>
4179
4180 * gdbtypes.h (struct type) <field>: New method.
4181 (TYPE_FIELDS): Remove, replace all uses with either type::fields
4182 or type::field.
4183
3cabb6b0
SM
41842020-05-22 Simon Marchi <simon.marchi@efficios.com>
4185
4186 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
4187 (TYPE_FIELDS): Use type::fields. Change all call sites that
4188 modify the propery to use type::set_fields instead.
4189
1f704f76
SM
41902020-05-22 Simon Marchi <simon.marchi@efficios.com>
4191
4192 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
4193 type::num_fields instead.
4194
5e33d5f4
SM
41952020-05-22 Simon Marchi <simon.marchi@efficios.com>
4196
4197 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
4198 methods.
4199 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
4200 that modify the number of fields to use type::set_num_fields
4201 instead.
4202
9392ebb3
TT
42032020-05-22 Tom Tromey <tromey@adacore.com>
4204
4205 * compile/compile-object-load.h (munmap_list_free): Don't
4206 declare.
4207
7c13f4e8
AB
42082020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
4209
4210 * annotate.c (annotate_source_line): Update return type, add call
4211 to update current symtab and line.
4212 * annotate.h (annotate_source_line): Update return type, and
4213 extend header comment.
4214 * source.c (info_line_command): Check annotation_level before
4215 calling annotate_source_line.
4216 * stack.c (print_frame_info): If calling annotate_source_line
4217 returns true, then don't print any other source line information.
4218
aa370940
SM
42192020-05-21 Simon Marchi <simon.marchi@efficios.com>
4220
4221 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
4222
84d53fa9
SM
42232020-05-21 Simon Marchi <simon.marchi@efficios.com>
4224
4225 * coffread.c (patch_type): Remove NULL check before xfree.
4226 * corefile.c (set_gnutarget): Likewise.
4227 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
4228 * exec.c (build_section_table): Likewise.
4229 * remote.c (remote_target::pass_signals): Likewise.
4230 * utils.c (n_spaces): Likewise.
4231 * cli/cli-script.c (document_command): Likewise.
4232 * i386-windows-tdep.c (core_process_module_section): Likewise.
4233 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
4234
9d428aae
SM
42352020-05-20 Simon Marchi <simon.marchi@efficios.com>
4236
4237 * symfile.c (reread_symbols): Clear objfile's section_offsets
4238 vector and section indices, re-compute them by calling
4239 sym_offsets.
4240
250106a7
TT
42412020-05-20 Tom Tromey <tromey@adacore.com>
4242
4243 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 4244 (desc_one_bound, desc_index_type): Compute field name.
250106a7 4245
9a0bacfb
TV
42462020-05-20 Tom de Vries <tdevries@suse.de>
4247
4248 PR symtab/25833
4249 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
4250
7b958a48
AM
42512020-05-20 Alan Modra <amodra@gmail.com>
4252
4253 PR 25993
4254 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
4255 bfd_set_filename.
4256 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
4257 passed to bfd_set_filename.
4258 * symfile-mem.c (add_vsyscall_page): Likewise for string
4259 passed to symbol_file_add_from_memory.
4260 (symbol_file_add_from_memory): Make name param a const char* and
4261 don't strdup.
4262
c7e97679
AM
42632020-05-20 Alan Modra <amodra@gmail.com>
4264
4265 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
4266 rather than accessing bfd->filename directly.
4267 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
4268 and use bfd_section_name.
4269 * dwarf2/frame.c (decode_frame_entry): Likewise.
4270 * exec.c (exec_set_section_address): Likewise.
4271 * solib-aix.c (solib_aix_bfd_open): Likewise.
4272 * stap-probe.c (get_stap_base_address): Likewise.
4273 * symfile.c (reread_symbols): Likewise.
4274
563c591b
TT
42752020-05-19 Tom Tromey <tromey@adacore.com>
4276
4277 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
4278
f408d82c
SM
42792020-05-19 Simon Marchi <simon.marchi@efficios.com>
4280
4281 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
4282
98c59b52
PA
42832020-05-19 Pedro Alves <palves@redhat.com>
4284
4285 * NEWS (set exec-file-mismatch): Adjust entry.
4286 * exec.c: Include "build-id.h".
4287 (validate_exec_file): Try to match build IDs instead of filenames.
4288 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
4289 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
4290 and pass down 'warn_if_slow'.
4291 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
4292 gdb_bfd_open_closure to pass it down.
4293 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
4294
4111f652
PA
42952020-05-19 Pedro Alves <palves@redhat.com>
4296
4297 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
4298 * target.c (target_fileio_open_1): Rename to target_fileio_open
4299 and make extern. Use bool.
4300 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
4301 (target_fileio_read_alloc_1): Adjust.
4302 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
4303 (target_fileio_open_warn_if_slow): Delete declaration.
4304
ad80db5b
PA
43052020-05-19 Pedro Alves <palves@redhat.com>
4306
4307 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
4308 Adjust all callers.
4309
1d6ce4d3
YS
43102020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
4311
4312 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
4313 whether disp is negative.
4314
9005fbbb
SM
43152020-05-19 Simon Marchi <simon.marchi@efficios.com>
4316
4317 * symfile.h (struct symfile_segment_data)
4318 <~symfile_segment_data>: Remove.
4319 <segment_info>: Change to std::vector.
4320 * symfile.c (default_symfile_segments): Update.
4321 * elfread.c (elf_symfile_segments): Update.
4322
68b888ff
SM
43232020-05-19 Simon Marchi <simon.marchi@efficios.com>
4324
4325 * symfile.h (struct symfile_segment_data) <struct segment>: New.
4326 <segments>: New.
4327 <segment_bases, segment_sizes>: Remove.
4328 * symfile.c (default_symfile_segments): Update.
4329 * elfread.c (elf_symfile_segments): Update.
4330 * remote.c (remote_target::get_offsets): Update.
4331 * solib-target.c (solib_target_relocate_section_addresses):
4332 Update.
4333
62982abd
SM
43342020-05-19 Simon Marchi <simon.marchi@efficios.com>
4335
4336 * symfile.h (struct symfile_segment_data): Initialize fields.
4337 <~symfile_segment_data>: Add.
4338 (symfile_segment_data_up): New.
4339 (struct sym_fns) <sym_segments>: Return a
4340 symfile_segment_data_up.
4341 (default_symfile_segments): Return a symfile_segment_data_up.
4342 (free_symfile_segment_data): Remove.
4343 (get_symfile_segment_data): Return a symfile_segment_data_up.
4344 * symfile.c (default_symfile_segments): Likewise.
4345 (get_symfile_segment_data): Likewise.
4346 (free_symfile_segment_data): Remove.
4347 (symfile_find_segment_sections): Update.
4348 * elfread.c (elf_symfile_segments): Return a
4349 symfile_segment_data_up.
4350 * remote.c (remote_target::get_offsets): Update.
4351 * solib-target.c (solib_target_relocate_section_addresses):
4352 Update.
4353 * symfile-debug.c (debug_sym_segments): Return a
4354 symfile_segment_data_up.
4355
7f204339
RO
43562020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4357
e52a0f1b
RO
4358 PR build/25981
4359 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
4360 Hardcode register numbers.
4361
7f204339
RO
4362 PR build/25981
4363 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
4364 procfs_find_LDT_entry): Remove.
4365 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
4366 procfs_find_LDT_entry): Remove.
4367 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
4368 Remove.
4369
7f32a4d5
PA
43702020-05-17 Pedro Alves <palves@redhat.com>
4371 Andrew Burgess <andrew.burgess@embecosm.com>
4372 Keno Fischer <keno@juliacomputing.com>
4373
4374 PR gdb/25741
4375 * breakpoint.c (build_target_condition_list): Update comments.
4376 (build_target_command_list): Update comments and skip matching
4377 locations.
4378 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
4379 a separate function. Simplify "set breakpoint auto-hw off"
4380 handling.
4381 (insert_breakpoints): Update comment.
4382 (tracepoint_locations_match): New parameter. For breakpoints,
4383 compare location types too, if the caller wants to.
4384 (handle_automatic_hardware_breakpoints): New functions.
4385 (bp_location_is_less_than): Also sort by location type and
4386 hardware breakpoint length.
4387 (update_global_location_list): Handle "set breakpoint auto-hw on"
4388 here.
4389 (update_breakpoint_locations): Ask breakpoint_locations_match to
4390 ignore location types.
4391
7d93a1e0
SM
43922020-05-16 Simon Marchi <simon.marchi@efficios.com>
4393
4394 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
4395 type::name instead.
4396
d0e39ea2
SM
43972020-05-16 Simon Marchi <simon.marchi@efficios.com>
4398
4399 * gdbtypes.h (struct type) <name, set_name>: New methods.
4400 (TYPE_CODE): Use type::name. Change all call sites used to set
4401 the name to use type::set_name instead.
4402
2dab0c7b
TT
44032020-05-16 Tom Tromey <tom@tromey.com>
4404
4405 * top.c (quit_force): Update.
4406 * infrun.c (handle_no_resumed): Update.
4407 * top.h (all_uis): New function.
4408 (ALL_UIS): Remove.
4409
59f7bd8d
SM
44102020-05-16 Simon Marchi <simon.marchi@efficios.com>
4411
4412 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
4413
9bf058f0
PA
44142020-05-16 Pedro Alves <palves@redhat.com>
4415
4416 * ia64-linux-nat.c
4417 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
4418 Declare method.
4419 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
4420
8f86ae1a
SM
44212020-05-15 Simon Marchi <simon.marchi@efficios.com>
4422
4423 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
4424 (sparc64_adi_info): Likewise.
4425
d6bc0792
TT
44262020-05-15 Tom Tromey <tom@tromey.com>
4427
4428 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
4429 block_objfile.
4430 (lookup_objfile_from_block): Remove.
4431 (lookup_symbol_in_block, lookup_symbol_in_static_block)
4432 (lookup_global_symbol): Use block_objfile.
4433 * symtab.h (lookup_objfile_from_block): Don't declare.
4434 * printcmd.c (clear_dangling_display_expressions): Use
4435 block_objfile.
4436 * parse.c (operator_check_standard): Use block_objfile.
4437
8c14c3a3
TT
44382020-05-15 Tom Tromey <tom@tromey.com>
4439
4440 * language.c (language_alloc_type_symbol): Set
4441 SYMBOL_SECTION.
4442 * symtab.c (initialize_objfile_symbol): Remove.
4443 (allocate_symbol): Remove.
4444 (allocate_template_symbol): Remove.
4445 * dwarf2/read.c (fixup_go_packaging): Use "new".
4446 (new_symbol): Use "new".
4447 (read_variable): Don't call initialize_objfile_symbol. Use
4448 "new".
4449 (read_func_scope): Use "new".
4450 * xcoffread.c (process_xcoff_symbol): Don't call
4451 initialize_objfile_symbol.
4452 (SYMBOL_DUP): Remove.
4453 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
4454 "new".
4455 * symtab.h (allocate_symbol, initialize_objfile_symbol)
4456 (allocate_template_symbol): Don't declare.
4457 (struct symbol): Add copy constructor. Change defaults.
4458 * jit.c (finalize_symtab): Use "new".
4459 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
4460 Use "new".
4461 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
4462 (common_block_end): Use "new".
4463 * mdebugread.c (parse_symbol): Use "new".
4464 (new_symbol): Likewise.
4465
5b4a1a8d
PW
44662020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4467
4468 * NEWS: Mention changes to help and apropos.
4469
57b4f16e
PW
44702020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4471
4472 * command.h (enum command_class): Improve comments, document
4473 that class_alias is for user-defined aliases, give the class
4474 name for each class, remove unused class_xdb.
4475 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
4476 * breakpoint.c (_initialize_breakpoint): Replace class_alias
4477 by a precise class.
4478 * infcmd.c (_initialize_infcmd): Likewise.
4479 * reverse.c (_initialize_reverse): Likewise.
4480 * stack.c (_initialize_stack): Likewise.
4481 * symfile.c (_initialize_symfile): Likewise.
4482 * tracepoint.c (_initialize_tracepoint): Likewise.
4483
7c05caf7
PW
44842020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4485
4486 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
4487 when their aliased command is traversed.
4488 (help_cmd): Add fput_command_names_styled call to
4489 output command name and aliases when command has an alias.
4490
3b3aaacb
PW
44912020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4492
4493 * cli/cli-decode.h (help_cmd_list): Remove declaration.
4494 * cli/cli-decode.c (help_cmd_list): Declare as static,
4495 remove prefix argument, use bool for recurse arg, rework to show the aliases of
4496 a command together with the command.
4497 (fput_command_name_styled, fput_command_names_styled): New functions.
4498 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
4499 fput_command_name_styled.
4500 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
4501 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
4502
7aa1b46f
PW
45032020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4504
4505 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
4506 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
4507 * command.h (cmd_show_list): Likewise.
4508 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
4509 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
4510
89bcba74
PW
45112020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4512
4513 * unittests/command-def-selftests.c (traverse_command_structure):
4514 Verify all commands of a list have the same prefix command and
4515 that only the top cmdlist commands have a null prefix.
4516
3f4d92eb
PW
45172020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4518
4519 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
4520 as prefix, not one of its aliases.
4521 (set_cmd_prefix): Remove.
4522 (do_add_cmd): Centralize the setting of the prefix of a command, when
4523 command is defined after its full chain of prefix commands.
4524 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
4525 (add_setshow_cmd_full): Likewise.
4526 (update_prefix_field_of_prefixed_commands): New function.
4527 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
4528 update_prefix_field_of_prefixed_commands.
4529 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
4530 addresses of remote_set_cmdlist and remote_show_cmdlist given
4531 as argument, not the address of an argument.
4532 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
4533 * gdb/remote.c (_initialize_remote): Likewise.
4534
0605465f
PW
45352020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4536
4537 * cli/cli-cmds.c (alias_command): Check for an existing alias
4538 using lookup_cmd_composition, as valid_command_p is too strict
4539 and forbids aliases that are the prefix of an existing alias
4540 or command.
4541 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
4542 command is properly recognised as a valid command.
4543
58e6ac70
PW
45442020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4545
4546 * unittests/help-doc-selftests.c: Rename to
4547 unittests/command-def-selftests.c
4548 * unittests/command-def-selftests.c (help_doc_tests): Update some
4549 comments.
4550 (command_structure_tests, traverse_command_structure): New namespace
4551 and function.
4552 (command_structure_invariants_tests): New function.
4553 (_initialize_command_def_selftests) Renamed from
4554 _initialize_help_doc_selftests, register command_structure_invariants
4555 selftest.
4556
a7b9ceb8
PW
45572020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4558
4559 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
4560 an alias of 'show'.
4561
b2188a06
JB
45622020-05-15 Joel Brobecker <brobecker@adacore.com>
4563
4564 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
4565 ada_is_fixed_point_type. Update all callers.
4566 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
4567 all callers.
4568 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
4569 Update all callers.
4570 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
4571 print_fixed_point_type. Update all callers.
4572 * ada-valprint.c (ada_value_print_num): Replace call to
4573 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
4574
a51951c2
KB
45752020-05-14 Kevin Buettner <kevinb@redhat.com>
4576
4577 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
4578 processors.
4579 (cpu_supports_bts): Add CV_AMD case.
4580
29d6859f
LM
45812020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
4582 Simon Marchi <simon.marchi@efficios.com>
4583
4584 * infrun.c (stop_all_threads): Collect multiple wait events at
4585 each pass.
4586
78134374
SM
45872020-05-14 Simon Marchi <simon.marchi@efficios.com>
4588
4589 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
4590 type::code instead.
4591
67607e24
SM
45922020-05-14 Simon Marchi <simon.marchi@efficios.com>
4593
4594 * gdbtypes.h (struct type) <code, set_code>: New methods.
4595 (TYPE_CODE): Use type::code. Change all call sites used to set
4596 the code to use type::set_code instead.
4597
a05575d3
TBA
45982020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4599 Tom de Vries <tdevries@suse.de>
4600 Pedro Alves <palves@redhat.com>
4601
4602 PR threads/25478
4603 * infrun.c (stop_all_threads): Do NOT ignore
4604 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
4605 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
4606 received.
4607 (handle_no_resumed): Remove code handling a live inferior with no
4608 threads.
4609 * remote.c (has_single_non_exited_thread): New.
4610 (remote_target::update_thread_list): Do not delete a thread if is
4611 the last thread of the process.
4612 * thread.c (thread_select): Call delete_exited_threads instead of
4613 prune_threads.
4614
6ad82919
TBA
46152020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4616
4617 * infrun.c (stop_all_threads): Enable/disable thread events of all
4618 targets. Move a debug message denoting the end of the function
4619 into the SCOPED_EXIT block.
4620
d890404b
TBA
46212020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4622
4623 * process-stratum-target.h: Include <set>.
4624 (all_non_exited_process_targets, switch_to_target_no_thread): New
4625 function declarations.
4626 * process-stratum-target.c (all_non_exited_process_targets)
4627 (switch_to_target_no_thread): New function implementations.
4628
293b3ebc
TBA
46292020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4630
4631 * infrun.c (handle_inferior_event): Extract out a piece of code
4632 into...
4633 (mark_non_executing_threads): ...this new function.
4634
7ca9b62a
TBA
46352020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4636
4637 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
4638 use.
4639
fc75c28b
TBA
46402020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4641
4642 * regcache.c (regcache_read_pc_protected): New function
4643 implementation that returns 0 if the PC cannot read via
4644 'regcache_read_pc'.
4645 * infrun.c (proceed): Call 'regcache_read_pc_protected'
4646 instead of 'regcache_read_pc'.
4647 (keep_going_pass_signal): Ditto.
4648
a89febbd
TT
46492020-05-13 Tom Tromey <tromey@adacore.com>
4650
4651 * ada-lang.c (align_value): Remove.
4652 (ada_template_to_fixed_record_type_1): Use align_up.
4653
f7e23710
TBA
46542020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4655
4656 * async-event.c: Update the copyright year.
4657 * async-event.h: Update the copyright year.
4658
02ff80c2
SM
46592020-05-12 Simon Marchi <simon.marchi@efficios.com>
4660
4661 * objfiles.h (is_addr_in_objfile,
4662 shared_objfile_contains_address_p): Return bool.
4663 * objfile.c (is_addr_in_objfile,
4664 shared_objfile_contains_address_p): Return bool.
4665
4fd6c7e8
TT
46662020-05-11 Tom Tromey <tromey@adacore.com>
4667
4668 * cli/cli-cmds.c (info_command): Restore.
4669 (_initialize_cli_cmds): Use add_prefix_command for "info".
4670 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
4671
5eb68a39
TT
46722020-05-11 Tom Tromey <tromey@adacore.com>
4673
4674 * ada-lang.c (ada_value_primitive_field): Now public.
4675 * ada-lang.h (ada_value_primitive_field): Declare.
4676 * ada-valprint.c (print_field_values): Use
4677 ada_value_primitive_field for wrapper fields.
4678
7666722f
TV
46792020-05-11 Tom de Vries <tdevries@suse.de>
4680
4681 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
4682 MODULE_DOMAIN.
4683
3ee6bb11
TV
46842020-05-11 Tom de Vries <tdevries@suse.de>
4685
4686 PR symtab/25941
4687 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
4688 with length 0, if not gdb-produced.
4689 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
4690
43434996
TV
46912020-05-09 Tom de Vries <tdevries@suse.de>
4692
4693 PR gdb/25955
4694 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
4695 calculation.
4696
2f78cffc
TT
46972020-05-09 Tom Tromey <tom@tromey.com>
4698
4699 * top.c (server_command): Now bool.
4700 * top.h (server_command): Now bool.
4701
4f7bc5ed
TT
47022020-05-08 Tom Tromey <tromey@adacore.com>
4703
4704 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
4705 already being processed.
4706
8be4b118
TT
47072020-05-08 Tom Tromey <tom@tromey.com>
4708
4709 * printcmd.c (struct display) <next>: Remove.
4710 <display>: New constructor.
4711 <exp_string>: Now a std::string.
4712 <enabled_p>: Now a bool.
4713 (display_number): Move definition earlier.
4714 (displays): Rename from display_chain. Now a std::vector.
4715 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
4716 (display_command): Update.
4717 (do_one_display, disable_display)
4718 (enable_disable_display_command, do_enable_disable_display):
4719 Update.
4720 (free_display): Remove.
4721 (clear_displays): Rewrite.
4722 (delete_display): Update.
4723 (map_display_numbers): Use function_view. Remove "data"
4724 parameter. Update.
4725 (do_delete_display): Remove.
4726 (undisplay_command): Update.
4727 (do_one_display, do_displays, disable_display)
4728 (info_display_command): Update.
4729 (do_enable_disable_display): Remove.
4730 (enable_disable_display_command)
4731 (clear_dangling_display_expressions): Update.
4732
94c93c35
TT
47332020-05-08 Tom Tromey <tom@tromey.com>
4734
4735 * symtab.c (set_symbol_cache_size)
4736 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
4737 (maintenance_print_symbol_cache_statistics): Update.
4738 * symmisc.c (print_symbol_bcache_statistics)
4739 (print_objfile_statistics, maintenance_print_objfiles)
4740 (maintenance_info_symtabs, maintenance_check_symtabs)
4741 (maintenance_expand_symtabs, maintenance_info_line_tables):
4742 Update.
4743 * symfile-debug.c (set_debug_symfile): Update.
4744 * source.c (forget_cached_source_info): Update.
4745 * python/python.c (gdbpy_progspaces): Update.
4746 * psymtab.c (maintenance_info_psymtabs): Update.
4747 * probe.c (parse_probes): Update.
4748 * linespec.c (iterate_over_all_matching_symtabs)
4749 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
4750 * guile/scm-progspace.c (gdbscm_progspaces): Update.
4751 * exec.c (exec_target::close): Update.
4752 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
4753 * breakpoint.c (print_one_breakpoint_location)
4754 (create_longjmp_master_breakpoint)
4755 (create_std_terminate_master_breakpoint): Update.
4756 * progspace.c (program_spaces): Now a std::vector.
4757 (maybe_new_address_space): Update.
4758 (add_program_space): Remove.
4759 (program_space::program_space): Update.
4760 (remove_program_space): Update.
4761 (number_of_program_spaces): Remove.
4762 (print_program_space, update_address_spaces): Update.
4763 * progspace.h (program_spaces): Change type.
4764 (ALL_PSPACES): Remove.
4765 (number_of_program_spaces): Don't declare.
4766 (struct program_space) <next>: Remove.
4767
a1fd1ac9
TT
47682020-05-08 Tom Tromey <tom@tromey.com>
4769
4770 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
4771 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
4772 (enable_break): Update.
4773 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
4774 (frv_fdpic_find_canonical_descriptor): Update.
4775 (frv_fetch_objfile_link_map): Update.
4776 * progspace.c (program_space::free_all_objfiles): Update.
4777 (program_space::solibs): New method.
4778 * progspace.h (struct program_space) <solibs>: New method.
4779 * solist.h (master_so_list): Don't declare.
4780 (ALL_SO_LIBS): Remove.
4781 * solib.h (so_list_head): Remove.
4782 (update_solib_list): Update comment.
4783 * solib.c (master_so_list): Remove.
4784 (solib_used, update_solib_list, solib_add)
4785 (info_sharedlibrary_command, clear_solib)
4786 (reload_shared_libraries_1, remove_user_added_objfile): Update.
4787
38eae084
TT
47882020-05-08 Tom Tromey <tom@tromey.com>
4789
4790 * extension.c (extension_languages): Now a std::array.
4791 (ALL_EXTENSION_LANGUAGES): Remove.
4792 (get_ext_lang_defn, get_ext_lang_of_file)
4793 (eval_ext_lang_from_control_command): Update.
4794 (finish_ext_lang_initialization)
4795 (auto_load_ext_lang_scripts_for_objfile)
4796 (ext_lang_type_printers::ext_lang_type_printers)
4797 (apply_ext_lang_type_printers)
4798 (ext_lang_type_printers::~ext_lang_type_printers)
4799 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
4800 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
4801 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
4802 (get_matching_xmethod_workers, ext_lang_colorize)
4803 (ext_lang_before_prompt): Update.
4804 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
4805
596dc4ad
TT
48062020-05-08 Tom Tromey <tom@tromey.com>
4807
4808 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
4809 overload.
4810 <swap_string, m_string>: Remove.
4811 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
4812 Update.
4813 * stabsread.c (define_symbol, read_type): Update.
4814 * linespec.c (find_linespec_symbols): Update.
4815 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
4816 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
4817 * dbxread.c (read_dbx_symtab): Update.
4818 * cp-support.h (cp_canonicalize_string_full)
4819 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
4820 Return unique_xmalloc_ptr.
4821 * cp-support.c (inspect_type): Update.
4822 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
4823 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
4824 Likewise.
4825 * c-typeprint.c (print_name_maybe_canonical): Update.
4826 * break-catch-throw.c (check_status_exception_catchpoint):
4827 Update.
4828
bf4cb9be
TV
48292020-05-08 Tom de Vries <tdevries@suse.de>
4830
4831 * infrun.c (follow_fork): Copy current_line and current_symtab to
4832 child thread.
4833
a1b68f28
SM
48342020-05-07 Simon Marchi <simon.marchi@efficios.com>
4835
4836 * async-event.c (struct async_signal_handler, struct
4837 async_event_handler): Reformat, remove typedef.
4838
98d48915
SM
48392020-05-07 Simon Marchi <simon.marchi@efficios.com>
4840
4841 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
4842 access thistype->main_type->dyn_prop_list directly.
4843
7aa91313
SM
48442020-05-07 Simon Marchi <simon.marchi@efficios.com>
4845
4846 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
4847 (remove_dyn_prop): Remove. Update all users to use
4848 type::remove_dyn_prop.
4849 * gdbtypes.c (remove_dyn_prop): Rename to...
4850 (type::remove_dyn_prop): ... this.
4851
5c54719c
SM
48522020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
4853
4854 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
4855 (add_dyn_prop): Remove. Update all users to use
4856 type::add_dyn_prop.
4857 * gdbtypes.c (add_dyn_prop): Rename to...
4858 (type::add_dyn_prop): ... this.
4859
24e99c6c
SM
48602020-05-07 Simon Marchi <simon.marchi@efficios.com>
4861
4862 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
4863 (get_dyn_prop): Remove. Update all users to use
4864 type::dyn_prop.
4865 * gdbtypes.c (get_dyn_prop): Rename to...
4866 (type::dyn_prop): ... this.
4867
0d4bf016
SM
48682020-05-06 Simon Marchi <simon.marchi@efficios.com>
4869
4870 * gdbtypes.h (struct main_type) <flag_static>: Remove.
4871
ac4a4f1c
SM
48722020-05-06 Simon Marchi <simon.marchi@efficios.com>
4873
4874 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
4875 instruction, skip it if it's there.
4876
a3bbacc1
SM
48772020-05-05 Simon Marchi <simon.marchi@efficios.com>
4878
4879 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
4880
c3236f84
SM
48812020-05-04 Simon Marchi <simon.marchi@efficios.com>
4882
4883 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
4884 * gdbtypes.c (recursive_dump_type): Remove use of
4885 TYPE_INCOMPLETE.
4886
3b6acaee
TT
48872020-05-03 Tom Tromey <tom@tromey.com>
4888
4889 * breakpoint.c (catch_command, tcatch_command): Remove.
4890 (_initialize_breakpoint): Use add_basic_prefix_cmd,
4891 add_show_prefix_cmd.
4892 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
4893 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
4894 Remove.
4895 (add_internal_problem_command): Use add_basic_prefix_cmd,
4896 add_show_prefix_cmd.
4897 * mips-tdep.c (set_mipsfpu_command): Remove.
4898 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
4899 * dwarf2/index-cache.c (set_index_cache_command): Remove.
4900 (_initialize_index_cache): Use add_basic_prefix_cmd.
4901 * memattr.c (dummy_cmd): Remove.
4902 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
4903 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
4904 (_initialize_tui_win): Use add_basic_prefix_cmd,
4905 add_show_prefix_cmd.
4906 * cli/cli-logging.c (set_logging_command): Remove.
4907 (_initialize_cli_logging): Use add_basic_prefix_cmd,
4908 add_show_prefix_cmd.
4909 (show_logging_command): Remove.
4910 * target.c (target_command): Remove.
4911 (add_target): Use add_basic_prefix_cmd.
4912
a51119cd
HD
49132020-05-02 Hannes Domani <ssbssa@yahoo.de>
4914
4915 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
4916
652fc23a 49172020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 4918
652fc23a
PW
4919 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
4920 info_command.
4921
117539e6
KR
49222020-04-30 Kamil Rytarowski <n54@gmx.com>
4923
4924 * nbsd-nat.c (nbsd_enable_proc_events)
4925 (nbsd_nat_target::post_startup_inferior): Add.
4926 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
4927 (nbsd_nat_target::update_thread_list): Rewrite.
4928 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
4929 "PTRACE_LWP_CREATE".
4930 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
4931
102e38eb 49322020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 4933
102e38eb
PW
4934 * stack.c (_initialize_stack): Remove duplicated creation
4935 of "frame" command and "f" alias.
4936
ee9d1e5f
HD
49372020-04-30 Hannes Domani <ssbssa@yahoo.de>
4938
4939 PR gdb/18706
4940 * gdbtypes.c (check_typedef): Calculate size of array of
4941 stubbed type.
4942
627c7fb8
HD
49432020-04-30 Hannes Domani <ssbssa@yahoo.de>
4944
4945 PR gdb/15559
4946 * i386-tdep.c (i386_push_dummy_call): Call
4947 i386_thiscall_push_dummy_call.
4948 (i386_thiscall_push_dummy_call): New function.
4949 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
4950 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
4951 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
4952
ffc2844e
SM
49532020-04-29 Simon Marchi <simon.marchi@efficios.com>
4954
4955 * gdbarch.sh (do_read): Add shellcheck disable directive for
4956 warning SC2162.
4957
1207375d
SM
49582020-04-29 Simon Marchi <simon.marchi@efficios.com>
4959
4960 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
4961 "referenced but not assigned" warning.
4962
9fdb2916
SM
49632020-04-29 Simon Marchi <simon.marchi@efficios.com>
4964
4965 * gdbarch.sh: Remove code that sets fallbackdefault.
4966
759cea5e
SM
49672020-04-29 Simon Marchi <simon.marchi@efficios.com>
4968
4969 * gdbarch.sh: Use shell operators && and || instead of
4970 -a and -o.
4971
cb02ab24
SM
49722020-04-29 Simon Marchi <simon.marchi@efficios.com>
4973
4974 * gdbarch.sh: Use $(...) instead of `...`.
4975
a6fc5ffc
SM
49762020-04-29 Simon Marchi <simon.marchi@efficios.com>
4977
4978 * gdbarch.sh: Use double quotes around variables.
4979
8d113d13
SM
49802020-04-29 Simon Marchi <simon.marchi@efficios.com>
4981
4982 * gdbarch.sh: Use %s with printf, instead of variables in the
4983 format string.
4984
ed6acedd
TT
49852020-04-29 Tom Tromey <tromey@adacore.com>
4986
4987 PR ada/25875:
4988 * dwarf2/read.c (update_enumeration_type_from_children): Compute
4989 type fields here.
4990 (read_enumeration_type): Call
4991 update_enumeration_type_from_children later. Update comments.
4992 (process_enumeration_scope): Don't create type fields.
4993
b68b1b58
KR
49942020-04-29 Kamil Rytarowski <n54@gmx.com>
4995
4996 * nbsd-tdep.c: Include "xml-syscall.h".
4997 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
4998
f94b2e03
KR
49992020-04-29 Kamil Rytarowski <n54@gmx.com>
5000
5001 * nbsd-nat.c: Include "sys/wait.h".
5002 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
5003 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
5004 (nbsd_nat_target::remove_exec_catchpoint)
5005 (nbsd_nat_target::set_syscall_catchpoint): Add.
5006 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
5007 (nbsd_nat_target::insert_exec_catchpoint)
5008 (nbsd_nat_target::remove_exec_catchpoint)
5009 (nbsd_nat_target::set_syscall_catchpoint): Add.
5010 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
5011 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
5012 `nbsd_get_syscall_number'.
5013
fc49bc72
TT
50142020-04-29 Tom Tromey <tom@tromey.com>
5015
5016 * stack.c (print_block_frame_labels): Remove.
5017
d642b692
HD
50182020-04-29 Hannes Domani <ssbssa@yahoo.de>
5019
5020 PR gdb/17320
5021 * ada-valprint.c (val_print_packed_array_elements): Move array
5022 end bracket to new line.
5023 (ada_val_print_string): Remove extra spaces before first array
5024 element.
5025 * c-valprint.c (c_value_print_array): Likewise.
5026 * m2-valprint.c (m2_print_array_contents): Likewise.
5027 (m2_value_print_inner): Likewise.
5028 * p-valprint.c (pascal_value_print_inner): Likewise.
5029 * valprint.c (generic_val_print_array): Likewise.
5030 (value_print_array_elements): Move first array element and array
5031 end bracket to new line.
5032
ea90f227
TV
50332020-04-29 Tom de Vries <tdevries@suse.de>
5034
5035 PR symtab/25889
5036 * linespec.c (find_method): Fix ix calculation.
5037
4498ef4f
KR
50382020-04-28 Kamil Rytarowski <n54@gmx.com>
5039
5040 * syscalls/update-netbsd.sh: New file.
5041 * syscalls/netbsd.xml: Regenerate.
5042 * data-directory/Makefile.in: Register `netbsd.xml' in
5043 `SYSCALLS_FILES'.
5044
a55e30b5
SM
50452020-04-28 Simon Marchi <simon.marchi@efficios.com>
5046
5047 * syscalls/update-freebsd.sh: Add double quotes.
5048
2b2fbab8
TT
50492020-04-28 Tom Tromey <tom@tromey.com>
5050
5051 * NEWS: Update.
5052 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
5053 (cmdpy_init): Allow class_tui.
5054
a65189c9
TV
50552020-04-28 Mark Williams <mark@myosotissp.com>
5056
5057 PR gdb/24480
5058 * dwarf2read.c: Add missing assingments to list_in_scope when
5059 start_symtab was already called.
5060
1b95cdb7
SM
50612020-04-28 Simon Marchi <simon.marchi@efficios.com>
5062
5063 PR gdb/25881
5064 * dwarf2/read.c (offset_map_type): Use
5065 gdb:hash_enum<sect_offset> as hash function.
5066
15cd93d0
TV
50672020-04-28 Tom de Vries <tdevries@suse.de>
5068
5069 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
5070 with DW_AT_signature.
5071
1eb39914
SM
50722020-04-27 Simon Marchi <simon.marchi@efficios.com>
5073
5074 * configure.ac: Remove check for fs_base/gs_base in
5075 user_regs_struct.
5076 * configure: Re-generate.
5077 * config.in: Re-generate.
5078 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
5079 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
5080 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
5081
991a3e2e
LM
50822020-04-27 Luis Machado <luis.machado@linaro.org>
5083
5084 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
5085 problematic inline frame unwinding situation.
5086 * frame.c (frame_id_computed_p): New function.
5087 * frame.h (frame_id_computed_p): New prototype.
5088
361ba0e8
TT
50892020-04-26 Tom Tromey <tom@tromey.com>
5090
5091 * command.h (enum command_class) <class_pseudo>: Remove.
5092
bc3609fd
PW
50932020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5094
5095 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
5096 and whitespace.
5097
b9771db7
KR
50982020-04-25 Kamil Rytarowski <n54@gmx.com>
5099
ec16513e
SM
5100 * inf-ptrace.c (inf_ptrace_target::wait): Remove
5101 `PT_GET_PROCESS_STATE' block.
b9771db7 5102
7151c1af
TT
51032020-04-24 Tom Tromey <tom@tromey.com>
5104
5105 * symtab.h (symbol_get_demangled_name): Don't declare.
5106 * symtab.c (symbol_get_demangled_name): Remove.
5107 (general_symbol_info::natural_name)
5108 (general_symbol_info::demangled_name): Update.
5109
906bb4c5
TT
51102020-04-24 Tom Tromey <tom@tromey.com>
5111
5112 PR rust/25025:
5113 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
5114
bcfe6157
TT
51152020-04-24 Tom Tromey <tom@tromey.com>
5116
5117 PR symtab/12707:
5118 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
5119 exists.
5120 (new_symbol): Likewise.
5121 * compile/compile-object-load.c (get_out_value_type): Use
5122 symbol_matches_search_name.
5123
f049a313
TT
51242020-04-24 Tom Tromey <tom@tromey.com>
5125
5126 * dwarf2/read.c (add_partial_symbol): Do not call
5127 compute_and_set_names.
5128
76e288d1
TT
51292020-04-24 Tom Tromey <tom@tromey.com>
5130
5131 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
5132 overload.
5133
2467f4f6
TT
51342020-04-24 Tom Tromey <tom@tromey.com>
5135
5136 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
5137 (add_psymbol_to_list): New overload. Make old overload call new
5138 one.
5139 * psympriv.h (add_psymbol_to_list): New overload.
5140
e61108c9
TT
51412020-04-24 Tom Tromey <tom@tromey.com>
5142
5143 * dwarf2/read.c (partial_die_info::read) <case
5144 DW_AT_linkage_name>: Use value_as_string.
5145 (dwarf2_string_attr): Use value_as_string.
5146 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
5147 method.
5148 * dwarf2/attribute.c (attribute::value_as_string): New method.
5149
8c87a452
TT
51502020-04-24 Tom Tromey <tom@tromey.com>
5151
5152 * symtab.c (general_symbol_info::natural_name)
5153 (general_symbol_info::demangled_name): Check for language_rust.
5154
787de330
TT
51552020-04-24 Tom Tromey <tom@tromey.com>
5156
5157 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
5158 (dwarf2_physname): ... from here.
5159 (partial_die_info::read): Add Rust "{" hack.
5160
ff985671
TT
51612020-04-24 Tom Tromey <tom@tromey.com>
5162
5163 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
5164 method.
5165 (symbol_set_demangled_name): Don't declare.
5166 * symtab.c (general_symbol_info::set_demangled_name): Rename from
5167 symbol_set_demangled_name.
5168 (general_symbol_info::set_language)
5169 (general_symbol_info::compute_and_set_names): Update.
5170 * minsyms.c (minimal_symbol_reader::install): Update.
5171 * dwarf2/read.c (new_symbol): Update.
5172
1acda803
TT
51732020-04-24 Tom Tromey <tromey@adacore.com>
5174
5175 PR python/23662:
5176 * python/py-type.c (convert_field): Handle
5177 FIELD_LOC_KIND_DWARF_BLOCK.
5178 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
5179 (typy_get_dynamic): Nw function.
5180 (type_object_getset): Add "dynamic".
5181 * NEWS: Add entry.
5182
d656f129
TT
51832020-04-24 Tom Tromey <tromey@adacore.com>
5184
5185 * ada-typeprint.c (print_choices, print_variant_part)
5186 (print_record_field_types_dynamic): New functions.
5187 (print_record_field_types): Use print_record_field_types_dynamic.
5188
7d79de9a
TT
51892020-04-24 Tom Tromey <tromey@adacore.com>
5190
5191 * dwarf2/read.c (handle_data_member_location): New overload.
5192 (dwarf2_add_field): Use it.
5193 (decode_locdesc): Add "computed" parameter. Update comment.
5194 * gdbtypes.c (is_dynamic_type_internal): Also look for
5195 FIELD_LOC_KIND_DWARF_BLOCK.
5196 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
5197 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
5198 virtual base classes.
5199 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
5200 FIELD_LOC_KIND_DWARF_BLOCK.
5201
f8e89861
TT
52022020-04-24 Tom Tromey <tromey@adacore.com>
5203
5204 * dwarf2/read.c (read_structure_type): Handle dynamic length.
5205 * gdbtypes.c (is_dynamic_type_internal): Check
5206 TYPE_HAS_DYNAMIC_LENGTH.
5207 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
5208 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
5209 New macros.
5210 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
5211 constant.
5212
9c6a1327
TT
52132020-04-24 Tom Tromey <tromey@adacore.com>
5214
5215 * dwarf2/read.c (struct variant_field): Rewrite.
5216 (struct variant_part_builder): New.
5217 (struct nextfield): Remove "variant" field. Add "offset".
5218 (struct field_info): Add "current_variant_part" and
5219 "variant_parts".
5220 (alloc_discriminant_info): Remove.
5221 (alloc_rust_variant): New function.
5222 (quirk_rust_enum): Update.
5223 (dwarf2_add_field): Set "offset" member. Don't handle
5224 DW_TAG_variant_part.
5225 (offset_map_type): New typedef.
5226 (convert_variant_range, create_one_variant)
5227 (create_one_variant_part, create_variant_parts)
5228 (add_variant_property): New functions.
5229 (dwarf2_attach_fields_to_type): Call add_variant_property.
5230 (read_structure_type): Don't handle DW_TAG_variant_part.
5231 (handle_variant_part, handle_variant): New functions.
5232 (handle_struct_member_die): Use them.
5233 (process_structure_scope): Don't handle variant parts.
5234 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
5235 (struct discriminant_info): Remove.
5236 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
5237 (struct main_type) <flag_discriminated_union>: Remove.
5238 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
5239 (rust_enum_variant): Return int. Remove "contents". Rewrite.
5240 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
5241 Update.
5242 * valops.c (value_union_variant): Remove.
5243 * value.h (value_union_variant): Don't declare.
5244
b249d2c2
TT
52452020-04-24 Tom Tromey <tromey@adacore.com>
5246
5247 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
5248 (ada_value_primitive_packed_val): Update.
5249 * ada-valprint.c (ada_value_print_1): Update.
5250 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
5251 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
5252 just an address. Use evaluate_for_locexpr_baton.
5253 (dwarf2_evaluate_property): Update.
5254 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
5255 array_view.
5256 * findvar.c (default_read_var_value): Update.
5257 * gdbtypes.c (compute_variant_fields_inner)
5258 (resolve_dynamic_type_internal): Update.
5259 (resolve_dynamic_type): Change type of valaddr parameter.
5260 * gdbtypes.h (resolve_dynamic_type): Update.
5261 * valarith.c (value_subscripted_rvalue): Update.
5262 * value.c (value_from_contents_and_address): Update.
5263
61122aa9
TT
52642020-04-24 Tom Tromey <tromey@adacore.com>
5265
5266 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
5267 "push_initial_value" parameter.
5268 (dwarf2_evaluate_property): Likewise.
5269 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
5270
ef83a141
TT
52712020-04-24 Tom Tromey <tromey@adacore.com>
5272
5273 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
5274 (variant::matches, compute_variant_fields_recurse)
5275 (compute_variant_fields_inner, compute_variant_fields): New
5276 functions.
5277 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
5278 Use resolved_type after type is made.
5279 (operator==): Add new cases.
5280 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
5281 (struct discriminant_range, struct variant, struct variant_part):
5282 New.
5283 (union dynamic_prop_data) <variant_parts, original_type>: New
5284 members.
5285 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
5286 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
5287 constants.
5288 * value.c (unpack_bits_as_long): Now public.
5289 * value.h (unpack_bits_as_long): Declare.
5290
675127ec
TT
52912020-04-24 Tom Tromey <tromey@adacore.com>
5292
5293 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
5294 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
5295
9852ceef
HD
52962020-04-24 Hannes Domani <ssbssa@yahoo.de>
5297
5298 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
5299
7632c6ce
KR
53002020-04-24 Kamil Rytarowski <n54@gmx.com>
5301
5302 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
5303 (remove_fork_catchpoint, post_startup_inferior)
5304 (post_attach): Move...
5305 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
5306 (remove_fork_catchpoint, post_startup_inferior)
5307 (post_attach): ...here.
5308 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
5309 (remove_fork_catchpoint, post_startup_inferior)
5310 (post_attach): Move...
5311 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
5312 (remove_fork_catchpoint, post_startup_inferior)
5313 (post_attach): ...here.
5314
7be2bb4f
TT
53152020-04-24 Tom Tromey <tromey@adacore.com>
5316
5317 * nat/windows-nat.h (struct windows_thread_info)
5318 <pc_adjusted>: New member.
5319 * windows-nat.c (windows_fetch_one_register): Check
5320 pc_adjusted.
5321 (windows_nat_target::get_windows_debug_event)
5322 (windows_nat_target::wait): Set pc_adjusted.
5323
f80cb3b4
TV
53242020-04-24 Tom de Vries <tdevries@suse.de>
5325
5326 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
5327 Run gdb-add-index inside temp dir.
5328
29514b87
TT
53292020-04-23 Tom Tromey <tromey@adacore.com>
5330
5331 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
5332 in loop.
5333
5939967b
LM
53342020-04-23 Luis Machado <luis.machado@linaro.org>
5335
5336 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
5337 get_frame_register instead of gdbarch_unwind_pc.
5338
70bc38f5
TV
53392020-04-23 Tom de Vries <tdevries@suse.de>
5340
5341 * symtab.c (lookup_global_symbol): Prefer def over decl.
5342
de82891c
TV
53432020-04-23 Tom de Vries <tdevries@suse.de>
5344
5345 PR symtab/25807
5346 * block.c (best_symbol, better_symbol): Promote to external.
5347 * block.h (best_symbol, better_symbol): Declare.
5348 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
5349 decl.
5350
ecc6c606
TT
53512020-04-23 Tom Tromey <tromey@adacore.com>
5352
5353 PR ada/25837:
5354 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
5355 "const char *", not a "const std::string &".
5356 <name_and_matcher::operator==>: Update.
5357 * unittests/lookup_name_info-selftests.c: Change type of
5358 "result".
5359
740480b8
TT
53602020-04-23 Tom Tromey <tom@tromey.com>
5361
5362 * inferior.h (iterate_over_inferiors): Don't declare.
5363 * inferior.c (iterate_over_inferiors): Remove.
5364 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
5365 Remove.
5366 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
5367 use iterate_over_inferiors.
5368 (darwin_resume_inferior_it)
5369 (struct resume_inferior_threads_param)
5370 (darwin_resume_inferior_threads_it): Remove.
5371 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
5372
ae3ab1f0
TV
53732020-04-23 Tom de Vries <tdevries@suse.de>
5374
5375 * blockframe.c (find_pc_partial_function): Use
5376 find_pc_sect_compunit_symtab rather than
5377 objfile->sf->qf->find_pc_sect_compunit_symtab.
5378
317d2668
TV
53792020-04-22 Tom de Vries <tdevries@suse.de>
5380
5381 PR symtab/25764
5382 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
5383 in psymtabs.
5384
eea9e357
TV
53852020-04-22 Tom de Vries <tdevries@suse.de>
5386
5387 PR symtab/25801
5388 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
5389 symtabs.
5390
3d5afab3
TV
53912020-04-22 Tom de Vries <tdevries@suse.de>
5392
5393 PR symtab/25700
5394 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
5395 CU if already created.
5396
d43b7a2d
TBA
53972020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5398
5399 * infrun.c (displaced_step_fixup): Switch to the event_thread
5400 before calling displaced_step_restore, not after.
5401
d89edf9b
MM
54022020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5403
5404 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
5405 its inferior is not recorded by us.
5406 (record_btrace_target_open): Replace call to
5407 all_non_exited_threads () with call to current_inferior
5408 ()->non_exited_threads ().
5409 (record_btrace_target::stop_recording): Likewise.
5410 (record_btrace_target::close): Likewise.
5411 (record_btrace_target::wait): Likewise.
5412 (record_btrace_target::record_stop_replaying): Likewise.
5413
5897fd49
MM
54142020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5415
5416 * btrace.c (btrace_enable): Throw an error on double enables and
5417 when enabling recording fails.
5418 (btrace_disable): Throw an error if the thread is not recorded.
5419
1a476b6d
MM
54202020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5421
5422 * record-btrace.c (record_btrace_target::fetch_registers): Forward
5423 request if we do not have a thread_info.
5424
4778a5f8
TV
54252020-04-21 Tom de Vries <tdevries@suse.de>
5426
5427 PR gdb/25471
5428 * thread.c
5429 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
5430 exception in get_frame_id.
5431
0fa7617d
TT
54322020-04-20 Tom Tromey <tromey@adacore.com>
5433
5434 * python/python.c (struct gdbpy_event): Mark move constructor as
5435 noexcept.
5436 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
5437 constructor as noexcept.
5438 * completer.h (struct completion_result): Mark move constructor as
5439 noexcept.
5440 * completer.c (completion_result::completion_result): Use
5441 initialization style. Don't call reset_match_list.
5442
ad23bda0
MS
54432020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
5444
5445 * MAINTAINERS (Write After Approval): Add myself.
5446
45e1f031
TT
54472020-04-18 Tom Tromey <tom@tromey.com>
5448
5449 * windows-tdep.c (init_w32_command_list)
5450 (w32_prefix_command_valid): Restore.
5451 (_initialize_windows_tdep): Call init_w32_command_list.
5452
08feed99
TT
54532020-04-18 Tom Tromey <tom@tromey.com>
5454
5455 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
5456 * value.c (value_fn_field): Update.
5457 * valops.c (find_function_in_inferior)
5458 (value_allocate_space_in_inferior): Update.
5459 * tui/tui-winsource.c (tui_update_source_windows_with_line):
5460 Update.
5461 * tui/tui-source.c (tui_source_window::set_contents): Update.
5462 * symtab.c (lookup_global_or_static_symbol)
5463 (find_function_start_sal_1, skip_prologue_sal)
5464 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
5465 * symmisc.c (dump_msymbols, dump_symtab_1)
5466 (maintenance_print_one_line_table): Update.
5467 * symfile.c (init_entry_point_info, section_is_mapped)
5468 (list_overlays_command, simple_read_overlay_table)
5469 (simple_overlay_update_1): Update.
5470 * stap-probe.c (handle_stap_probe): Update.
5471 * stabsread.c (dbx_init_float_type, define_symbol)
5472 (read_one_struct_field, read_enum_type, read_range_type): Update.
5473 * source.c (info_line_command): Update.
5474 * python/python.c (gdbpy_source_objfile_script)
5475 (gdbpy_execute_objfile_script): Update.
5476 * python/py-type.c (save_objfile_types): Update.
5477 * python/py-objfile.c (py_free_objfile): Update.
5478 * python/py-inferior.c (python_new_objfile): Update.
5479 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
5480 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
5481 (maintenance_check_psymtabs): Update.
5482 * printcmd.c (info_address_command): Update.
5483 * objfiles.h (struct objfile) <arch>: New method, from
5484 get_objfile_arch.
5485 (get_objfile_arch): Don't declare.
5486 * objfiles.c (get_objfile_arch): Remove.
5487 (filter_overlapping_sections): Update.
5488 * minsyms.c (msymbol_is_function): Update.
5489 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
5490 (output_nondebug_symbol): Update.
5491 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
5492 (mdebug_expand_psymtab): Update.
5493 * machoread.c (macho_add_oso_symfile): Update.
5494 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
5495 Update.
5496 * linux-fork.c (checkpoint_command): Update.
5497 * linespec.c (convert_linespec_to_sals): Update.
5498 * jit.c (finalize_symtab): Update.
5499 * infrun.c (insert_exception_resume_from_probe): Update.
5500 * ia64-tdep.c (ia64_find_unwind_table): Update.
5501 * hppa-tdep.c (internalize_unwinds): Update.
5502 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
5503 Update.
5504 * gcore.c (call_target_sbrk): Update.
5505 * elfread.c (record_minimal_symbol, elf_symtab_read)
5506 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
5507 (elf_gnu_ifunc_resolve_by_got): Update.
5508 * dwarf2/read.c (create_addrmap_from_index)
5509 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
5510 (read_debug_names_from_section)
5511 (process_psymtab_comp_unit_reader, add_partial_symbol)
5512 (add_partial_subprogram, process_full_comp_unit)
5513 (read_file_scope, read_func_scope, read_lexical_block_scope)
5514 (read_call_site_scope, dwarf2_ranges_read)
5515 (dwarf2_record_block_ranges, dwarf2_add_field)
5516 (mark_common_block_symbol_computed, read_tag_pointer_type)
5517 (read_tag_string_type, dwarf2_init_float_type)
5518 (dwarf2_init_complex_target_type, read_base_type)
5519 (partial_die_info::read, partial_die_info::read)
5520 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
5521 (dwarf2_fetch_die_loc_sect_off): Update.
5522 * dwarf2/loc.c (dwarf2_find_location_expression)
5523 (class dwarf_evaluate_loc_desc, rw_pieced_value)
5524 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
5525 (dwarf2_loc_desc_get_symbol_read_needs)
5526 (locexpr_describe_location_piece, locexpr_describe_location_1)
5527 (loclist_describe_location): Update.
5528 * dwarf2/index-write.c (write_debug_names): Update.
5529 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
5530 * dtrace-probe.c (dtrace_process_dof): Update.
5531 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
5532 (process_one_symbol): Update.
5533 * ctfread.c (ctf_init_float_type, read_base_type): Update.
5534 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
5535 (coff_read_enum_type): Update.
5536 * cli/cli-cmds.c (edit_command, list_command): Update.
5537 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
5538 * breakpoint.c (create_overlay_event_breakpoint)
5539 (create_longjmp_master_breakpoint)
5540 (create_std_terminate_master_breakpoint)
5541 (create_exception_master_breakpoint, get_sal_arch): Update.
5542 * block.c (block_gdbarch): Update.
5543 * annotate.c (annotate_source_line): Update.
5544
0743fc83
TT
55452020-04-17 Tom Tromey <tromey@adacore.com>
5546
5547 * auto-load.c (show_auto_load_cmd): Remove.
5548 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
5549 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
5550 (maintenance_print_arc_command): Remove.
5551 * tui/tui-win.c (tui_command): Remove.
5552 (tui_get_cmd_list): Use add_basic_prefix_cmd.
5553 * tui/tui-layout.c (tui_layout_command): Remove.
5554 (_initialize_tui_layout): Use add_basic_prefix_cmd.
5555 * python/python.c (user_set_python, user_show_python): Remove.
5556 (_initialize_python): Use add_basic_prefix_cmd,
5557 add_show_prefix_cmd.
5558 * guile/guile.c (set_guile_command, show_guile_command): Remove.
5559 (install_gdb_commands): Use add_basic_prefix_cmd,
5560 add_show_prefix_cmd.
5561 (info_guile_command): Remove.
5562 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
5563 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
5564 add_show_prefix_cmd.
5565 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
5566 Remove do_set and do_show parameters.
5567 * cli/cli-style.c (set_style, show_style): Remove.
5568 (_initialize_cli_style): Use add_basic_prefix_cmd,
5569 add_show_prefix_cmd.
5570 (cli_style_option::add_setshow_commands): Remove do_set and
5571 do_show parameters.
5572 (cli_style_option::add_setshow_commands): Use
5573 add_basic_prefix_cmd, add_show_prefix_cmd.
5574 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
5575 (set_style_name): Remove.
5576 * cli/cli-dump.c (dump_command, append_command): Remove.
5577 (srec_dump_command, ihex_dump_command, verilog_dump_command)
5578 (tekhex_dump_command, binary_dump_command)
5579 (binary_append_command): Remove.
5580 (_initialize_cli_dump): Use add_basic_prefix_cmd.
5581 * windows-tdep.c (w32_prefix_command_valid): Remove global.
5582 (init_w32_command_list): Remove; move into ...
5583 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
5584 * valprint.c (set_print, show_print, set_print_raw)
5585 (show_print_raw): Remove.
5586 (_initialize_valprint): Use add_basic_prefix_cmd,
5587 add_show_prefix_cmd.
5588 * typeprint.c (set_print_type, show_print_type): Remove.
5589 (_initialize_typeprint): Use add_basic_prefix_cmd,
5590 add_show_prefix_cmd.
5591 * record.c (set_record_command, show_record_command): Remove.
5592 (_initialize_record): Use add_basic_prefix_cmd,
5593 add_show_prefix_cmd.
5594 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
5595 add_show_prefix_cmd.
5596 (info_command, show_command, set_debug, show_debug): Remove.
5597 * top.h (set_history, show_history): Don't declare.
5598 * top.c (set_history, show_history): Remove.
5599 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
5600 (unset_tdesc_cmd): Remove.
5601 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
5602 add_show_prefix_cmd.
5603 * symtab.c (info_module_command): Remove.
5604 (_initialize_symtab): Use add_basic_prefix_cmd.
5605 * symfile.c (overlay_command): Remove.
5606 (_initialize_symfile): Use add_basic_prefix_cmd.
5607 * sparc64-tdep.c (info_adi_command): Remove.
5608 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
5609 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
5610 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
5611 add_show_prefix_cmd.
5612 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
5613 (_initialize_serial): Use add_basic_prefix_cmd,
5614 add_show_prefix_cmd.
5615 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
5616 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
5617 add_show_prefix_cmd.
5618 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
5619 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
5620 add_show_prefix_cmd.
5621 * riscv-tdep.c (show_riscv_command, set_riscv_command)
5622 (show_debug_riscv_command, set_debug_riscv_command): Remove.
5623 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
5624 add_show_prefix_cmd.
5625 * remote.c (remote_command, set_remote_cmd): Remove.
5626 (_initialize_remote): Use add_basic_prefix_cmd.
5627 * record-full.c (set_record_full_command)
5628 (show_record_full_command): Remove.
5629 (_initialize_record_full): Use add_basic_prefix_cmd,
5630 add_show_prefix_cmd.
5631 * record-btrace.c (cmd_set_record_btrace)
5632 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
5633 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
5634 (cmd_show_record_btrace_pt): Remove.
5635 (_initialize_record_btrace): Use add_basic_prefix_cmd,
5636 add_show_prefix_cmd.
5637 * ravenscar-thread.c (set_ravenscar_command)
5638 (show_ravenscar_command): Remove.
5639 (_initialize_ravenscar): Use add_basic_prefix_cmd,
5640 add_show_prefix_cmd.
5641 * mips-tdep.c (show_mips_command, set_mips_command)
5642 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
5643 add_show_prefix_cmd.
5644 * maint.c (maintenance_command, maintenance_info_command)
5645 (maintenance_check_command, maintenance_print_command)
5646 (maintenance_set_cmd, maintenance_show_cmd): Remove.
5647 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
5648 add_show_prefix_cmd.
5649 (show_per_command_cmd): Remove.
5650 * maint-test-settings.c (maintenance_set_test_settings_cmd):
5651 Remove.
5652 (maintenance_show_test_settings_cmd): Remove.
5653 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
5654 add_show_prefix_cmd.
5655 * maint-test-options.c (maintenance_test_options_command):
5656 Remove.
5657 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
5658 * macrocmd.c (macro_command): Remove
5659 (_initialize_macrocmd): Use add_basic_prefix_cmd.
5660 * language.c (set_check, show_check): Remove.
5661 (_initialize_language): Use add_basic_prefix_cmd,
5662 add_show_prefix_cmd.
5663 * infcmd.c (unset_command): Remove.
5664 (_initialize_infcmd): Use add_basic_prefix_cmd.
5665 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
5666 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
5667 add_show_prefix_cmd.
5668 * go32-nat.c (go32_info_dos_command): Remove.
5669 (_initialize_go32_nat): Use add_basic_prefix_cmd.
5670 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
5671 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
5672 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
5673 (_initialize_frame): Use add_basic_prefix_cmd,
5674 add_show_prefix_cmd.
5675 * dcache.c (set_dcache_command, show_dcache_command): Remove.
5676 (_initialize_dcache): Use add_basic_prefix_cmd,
5677 add_show_prefix_cmd.
5678 * cp-support.c (maint_cplus_command): Remove.
5679 (_initialize_cp_support): Use add_basic_prefix_cmd.
5680 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
5681 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
5682 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
5683 add_basic_prefix_cmd, add_show_prefix_cmd.
5684 * breakpoint.c (save_command): Remove.
5685 (_initialize_breakpoint): Use add_basic_prefix_cmd.
5686 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
5687 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
5688 add_show_prefix_cmd.
5689 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
5690 (set_ada_command, show_ada_command): Remove.
5691 (_initialize_ada_language): Use add_basic_prefix_cmd,
5692 add_show_prefix_cmd.
5693 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
5694
3557f442
KR
56952020-04-16 Kamil Rytarowski <n54@gmx.com>
5696
5697 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
5698 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
5699
16197208
SM
57002020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
5701
5702 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
5703 warning messages.
5704
00ac85d3
SM
57052020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
5706
5707 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
5708 import table is not at beginning of .idata section.
5709
381ce63f
PA
57102020-04-16 Pedro Alves <palves@redhat.com>
5711
5712 * inferior.c (delete_inferior): Use delete operator directly
5713 instead of delete_program_space.
5714 * progspace.c (add_program_space): New, factored out from
5715 program_space::program_space.
5716 (remove_program_space): New, factored out from
5717 delete_program_space.
5718 (program_space::program_space): Remove intro comment. Rewrite.
5719 (program_space::~program_space): Remove intro comment. Call
5720 remove_program_space.
5721 (delete_program_space): Delete.
5722 * progspace.h (program_space::program_space): Make explicit. Move
5723 intro comment here, adjusted.
5724 (program_space::~program_space): Move intro comment here,
5725 adjusted.
5726 (delete_program_space): Remove.
5727
a010605f
TT
57282020-04-16 Tom Tromey <tromey@adacore.com>
5729
5730 * windows-nat.c (windows_nat::handle_access_violation): New
5731 function.
5732 * nat/windows-nat.h (handle_access_violation): Declare.
5733 * nat/windows-nat.c (handle_exception): Move Cygwin code to
5734 windows-nat.c. Call handle_access_violation.
5735
efba5c23
TV
57362020-04-16 Tom de Vries <tdevries@suse.de>
5737
5738 PR symtab/25791
5739 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
5740 CUs without psymtab.
5741
97ed802d
KB
57422020-04-16 Kevin Buettner <kevinb@redhat.com>
5743
5744 * python/python.c (do_start_initialization): Don't call
5745 PyEval_InitThreads for Python 3.9 and beyond.
5746
c7d64809
KR
57472020-04-15 Kamil Rytarowski <n54@gmx.com>
5748
5749 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
5750 thread functions.
5751 (obsd_nat_target::wait): Likewise.
5752
ce127a96
TT
57532020-04-15 Tom Tromey <tromey@adacore.com>
5754
5755 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
5756 (DEBUG_EXCEPT): Use debug_printf.
5757
99f1bc6a
AB
57582020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
5759
5760 * completer.c (class completion_tracker::completion_hash_entry)
5761 <hash_name>: New member function.
5762 (completion_tracker::discard_completions): New callback to hash a
5763 completion_hash_entry, pass this to htab_create_alloc.
5764
a0e9b532
JT
57652016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
5766
5767 * windows-nat.c (windows_make_so): Warn rather than stopping with
5768 an error if realpath() fails.
5769
06ca5dd4
KR
57702020-04-14 Kamil Rytarowski <n54@gmx.com>
5771
5772 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
5773 (nbsd_nat_target::info_proc): Add do_status.
5774
194d088f
TV
57752020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
5776 Tom de Vries <tdevries@suse.de>
5777
5778 PR symtab/25718
5779 * psympriv.h (struct partial_symtab::read_symtab)
5780 (struct partial_symtab::expand_psymtab)
5781 (struct partial_symtab::read_dependencies): Update comments.
5782 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
5783 read_symtab for includer.
5784 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
5785 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
5786 (struct dwarf2_include_psymtab::m_readin): Remove.
5787 (struct dwarf2_include_psymtab::includer): New member function.
5788 (dwarf2_psymtab::expand_psymtab): Assert !readin.
5789
c1a66c06
TV
57902020-04-14 Tom de Vries <tdevries@suse.de>
5791
5792 PR symtab/25720
5793 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
5794 with NULL symbol_matcher and lookup_name.
5795 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
5796 and lookup_name.
5797 * dwarf2/read.c (dw2_expand_symtabs_matching)
5798 (dw2_debug_names_expand_symtabs_matching): Same.
5799 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
5800 Make lookup_name a pointer. Update comment.
5801 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
5802 lookup_name being a pointer.
5803 * symfile.c (expand_symtabs_matching): Same.
5804 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
5805 * linespec.c (iterate_over_all_matching_symtabs): Same.
5806
400b5eca
TT
58072020-04-13 Tom Tromey <tom@tromey.com>
5808
5809 * run-on-main-thread.c: Update include.
5810 * unittests/main-thread-selftests.c: Update include.
5811 * tui/tui-win.c: Update include.
5812 * tui/tui-io.c: Update include.
5813 * tui/tui-interp.c: Update include.
5814 * tui/tui-hooks.c: Update include.
5815 * top.h: Update include.
5816 * top.c: Update include.
5817 * ser-base.c: Update include.
5818 * remote.c: Update include.
5819 * remote-notif.c: Update include.
5820 * remote-fileio.c: Update include.
5821 * record-full.c: Update include.
5822 * record-btrace.c: Update include.
5823 * python/python.c: Update include.
5824 * posix-hdep.c: Update include.
5825 * mingw-hdep.c: Update include.
5826 * mi/mi-main.c: Update include.
5827 * mi/mi-interp.c: Update include.
5828 * main.c: Update include.
5829 * linux-nat.c: Update include.
5830 * interps.c: Update include.
5831 * infrun.c: Update include.
5832 * inf-loop.c: Update include.
5833 * event-top.c: Update include.
5834 * event-loop.c: Move to ../gdbsupport/.
5835 * event-loop.h: Move to ../gdbsupport/.
5836 * async-event.h: Update include.
5837 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
5838
93b54c8e
TT
58392020-04-13 Tom Tromey <tom@tromey.com>
5840
5841 * tui/tui-win.c: Include async-event.h.
5842 * remote.c: Include async-event.h.
5843 * remote-notif.c: Include async-event.h.
5844 * record-full.c: Include async-event.h.
5845 * record-btrace.c: Include async-event.h.
5846 * infrun.c: Include async-event.h.
5847 * event-top.c: Include async-event.h.
5848 * event-loop.h: Move some declarations to async-event.h.
5849 * event-loop.c: Don't include ser-event.h or top.h. Move some
5850 code to async-event.c.
5851 * async-event.h: New file.
5852 * async-event.c: New file.
5853 * Makefile.in (COMMON_SFILES): Add async-event.c.
5854 (HFILES_NO_SRCDIR): Add async-event.h.
5855
c1cd3163
TT
58562020-04-13 Tom Tromey <tom@tromey.com>
5857
5858 * utils.c (flush_streams): New function.
5859 * event-loop.c (gdb_wait_for_event): Call flush_streams.
5860
29f2bf4f
TT
58612020-04-13 Tom Tromey <tom@tromey.com>
5862
5863 * event-loop.c (handle_file_event): Use warning, not
5864 printf_unfiltered.
5865
98029d02
TT
58662020-04-13 Tom Tromey <tom@tromey.com>
5867
5868 * event-loop.c: Include <chrono>.
5869
06cc9596
TT
58702020-04-13 Tom Tromey <tom@tromey.com>
5871
5872 * gdb_select.h: Move to ../gdbsupport/.
5873 * event-loop.c: Update include path.
5874 * top.c: Update include path.
5875 * ser-base.c: Update include path.
5876 * ui-file.c: Update include path.
5877 * ser-tcp.c: Update include path.
5878 * guile/scm-ports.c: Update include path.
5879 * posix-hdep.c: Update include path.
5880 * ser-unix.c: Update include path.
5881 * gdb_usleep.c: Update include path.
5882 * mingw-hdep.c: Update include path.
5883 * inflow.c: Update include path.
5884 * infrun.c: Update include path.
5885 * event-top.c: Update include path.
5886
8ae8e197
TT
58872020-04-13 Tom Tromey <tom@tromey.com>
5888
5889 * configure: Rebuild.
5890 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
5891
58cf28e8
TT
58922020-04-13 Tom Tromey <tom@tromey.com>
5893
5894 * event-loop.h (start_event_loop): Don't declare.
5895 * event-loop.c (start_event_loop): Move...
5896 * main.c (start_event_loop): ...here. Now static.
5897
b7f999ae
SDJ
58982020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
5899
5900 * MAINTAINERS: Update my email address.
5901
1085dfd4
KR
59022020-04-12 Kamil Rytarowski <n54@gmx.com>
5903
5904 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
5905 IP_ALL.
5906
49d1d1f5
KR
59072020-04-12 Kamil Rytarowski <n54@gmx.com>
5908
5909 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 5910 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 5911
b4848d2a
KR
59122020-04-12 Kamil Rytarowski <n54@gmx.com>
5913
5914 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 5915 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 5916
51c133d5
KR
59172020-04-12 Kamil Rytarowski <n54@gmx.com>
5918
5919 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
5920
54b8cbd0
KR
59212020-04-11 Kamil Rytarowski <n54@gmx.com>
5922
5923 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
5924 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
5925 (nbsd_nat_target::info_proc): New functions.
5926 * nbsd-nat.c (kinfo_get_vmmap): New function.
5927 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
5928 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
5929 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
5930 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
5931 functions.
5932 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
5933 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
5934 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
5935 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
5936 (KINFO_VME_FLAG_GROWS_DOWN): New.
5937
cf83625d
AS
59382020-04-10 Artur Shepilko <nomadbyte@gmail.com>
5939
5940 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
5941 bit shift.
5942
0c4311ab
TT
59432020-04-10 Tom Tromey <tromey@adacore.com>
5944
5945 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
5946
3e65b3e9
TT
59472020-04-10 Tom Tromey <tromey@adacore.com>
5948
5949 * symtab.c (get_symbol_address, get_msymbol_address): Skip
5950 separate debug files.
5951
13302e95
HD
59522020-04-10 Hannes Domani <ssbssa@yahoo.de>
5953
5954 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5955 Move to...
5956 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5957 ... here.
5958 * windows-nat.c (windows_nat_target::get_windows_debug_event):
5959 Check for STATUS_WX86_BREAKPOINT.
5960 (windows_nat_target::wait): Same.
5961
bdfc1e8a
TV
59622020-04-10 Tom de Vries <tdevries@suse.de>
5963
5964 PR cli/25808
5965 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
5966
f4460aec
SM
59672020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
5968
5969 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
5970 (Write After Approval): Remove Tom de Vries.
5971
a25198bb
BE
59722020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
5973
5974 revert partially:
5975 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5976
aac66a4c
SM
5977 * buildsym.c (record_line): Fix undefined behavior and preserve
5978 lines at eof.
a25198bb 5979
206c98a6
KR
59802020-04-09 Kamil Rytarowski <n54@gmx.com>
5981
5982 * auxv.h (svr4_auxv_parse): New.
5983 * auxv.c (default_auxv_parse): Split into default_auxv_parse
5984 and generic_auxv_parse.
5985 (svr4_auxv_parse): Add.
5986 * obsd-tdep.c: Include "auxv.h".
5987 (obsd_auxv_parse): Remove.
5988 (obsd_init_abi): Remove comment.
5989 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
5990 from `obsd_auxv_parse' to `svr4_auxv_parse'.
5991 * nbsd-tdep.c: Include "auxv.h".
5992 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
5993
71fbdbaf
TT
59942020-04-08 Tom Tromey <tromey@adacore.com>
5995
5996 * nat/windows-nat.h (last_wait_event): Don't declare.
5997 (wait_for_debug_event): Update comment.
5998 * nat/windows-nat.c (last_wait_event): Now static.
5999
2c1d95e8
TT
60002020-04-08 Tom Tromey <tromey@adacore.com>
6001
6002 * windows-nat.c (wait_for_debug_event): Move to
6003 nat/windows-nat.c.
6004 * nat/windows-nat.h (wait_for_debug_event): Declare.
6005 * nat/windows-nat.c (wait_for_debug_event): Move from
6006 windows-nat.c. No longer static.
6007
d2977bc4
TT
60082020-04-08 Tom Tromey <tromey@adacore.com>
6009
6010 * windows-nat.c (get_windows_debug_event): Use
6011 fetch_pending_stop.
6012 * nat/windows-nat.h (fetch_pending_stop): Declare.
6013 * nat/windows-nat.c (fetch_pending_stop): New function.
6014
e758e19c
TT
60152020-04-08 Tom Tromey <tromey@adacore.com>
6016
6017 * windows-nat.c (windows_continue): Use matching_pending_stop and
6018 continue_last_debug_event.
6019 * nat/windows-nat.h (matching_pending_stop)
6020 (continue_last_debug_event): Declare.
6021 * nat/windows-nat.c (DEBUG_EVENTS): New define.
6022 (matching_pending_stop, continue_last_debug_event): New
6023 functions.
6024
8d30e395
TT
60252020-04-08 Tom Tromey <tromey@adacore.com>
6026
6027 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
6028 (handle_exception_result): Move to nat/windows-nat.h.
6029 (DEBUG_EXCEPTION_SIMPLE): Remove.
6030 (windows_nat::handle_ms_vc_exception): New function.
6031 (handle_exception): Move to nat/windows-nat.c.
6032 (get_windows_debug_event): Update.
6033 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
6034 nat/windows-nat.c.
6035 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
6036 (handle_exception_result): Move from windows-nat.c.
6037 (handle_exception): Declare.
6038 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
6039 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
6040 windows-nat.c.
6041
29de418d
TT
60422020-04-08 Tom Tromey <tromey@adacore.com>
6043
6044 * windows-nat.c (exception_count, event_count): Remove.
6045 (handle_exception, get_windows_debug_event)
6046 (do_initial_windows_stuff): Update.
6047
a816ba18
TT
60482020-04-08 Tom Tromey <tromey@adacore.com>
6049
6050 * windows-nat.c (windows_nat::handle_load_dll)
6051 (windows_nat::handle_unload_dll): Rename. No longer static.
6052 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
6053 Declare.
6054
a00caa12
TT
60552020-04-08 Tom Tromey <tromey@adacore.com>
6056
6057 * complaints.h (stop_whining): Declare at top-level.
6058 (complaint): Don't declare stop_whining.
6059
d41b524f
TT
60602020-04-08 Tom Tromey <tromey@adacore.com>
6061
6062 * windows-nat.c (windows_nat::handle_output_debug_string):
6063 Rename. No longer static.
6064 * nat/windows-nat.h (handle_output_debug_string): Declare.
6065
3c76026d
TT
60662020-04-08 Tom Tromey <tromey@adacore.com>
6067
6068 * windows-nat.c (current_process_handle, current_process_id)
6069 (main_thread_id, last_sig, current_event, last_wait_event)
6070 (current_windows_thread, desired_stop_thread_id, pending_stops)
6071 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
6072 (display_selectors, fake_create_process)
6073 (get_windows_debug_event): Update.
6074 * nat/windows-nat.h (current_process_handle, current_process_id)
6075 (main_thread_id, last_sig, current_event, last_wait_event)
6076 (current_windows_thread, desired_stop_thread_id, pending_stops)
6077 (struct pending_stop, siginfo_er): Move from windows-nat.c.
6078 * nat/windows-nat.c (current_process_handle, current_process_id)
6079 (main_thread_id, last_sig, current_event, last_wait_event)
6080 (current_windows_thread, desired_stop_thread_id, pending_stops)
6081 (siginfo_er): New globals. Move from windows-nat.c.
6082
9d8679cc
TT
60832020-04-08 Tom Tromey <tromey@adacore.com>
6084
6085 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
6086 (handle_load_dll): Update.
6087 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
6088
28688adf
TT
60892020-04-08 Tom Tromey <tromey@adacore.com>
6090
6091 * windows-nat.c (enum thread_disposition_type): Move to
6092 nat/windows-nat.h.
6093 (windows_nat::thread_rec): Rename from thread_rec. No longer
6094 static.
6095 (windows_add_thread, windows_nat_target::fetch_registers)
6096 (windows_nat_target::store_registers, handle_exception)
6097 (windows_nat_target::resume, get_windows_debug_event)
6098 (windows_nat_target::get_tib_address)
6099 (windows_nat_target::thread_name)
6100 (windows_nat_target::thread_alive): Update.
6101 * nat/windows-nat.h (enum thread_disposition_type): Move from
6102 windows-nat.c.
6103 (thread_rec): Declare.
6104
4834dad0
TT
61052020-04-08 Tom Tromey <tromey@adacore.com>
6106
6107 * windows-nat.c: Add "using namespace".
6108 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
6109 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
6110
65bafd5b
TT
61112020-04-08 Tom Tromey <tromey@adacore.com>
6112
6113 * nat/windows-nat.h (struct windows_thread_info): Declare
6114 destructor.
6115 * nat/windows-nat.c (~windows_thread_info): New.
6116
0a4afda3
TT
61172020-04-08 Tom Tromey <tromey@adacore.com>
6118
6119 PR gdb/22992
6120 * windows-nat.c (current_event): Update comment.
6121 (last_wait_event, desired_stop_thread_id): New globals.
6122 (struct pending_stop): New.
6123 (pending_stops): New global.
6124 (windows_nat_target) <stopped_by_sw_breakpoint>
6125 <supports_stopped_by_sw_breakpoint>: New methods.
6126 (windows_fetch_one_register): Add assertions. Adjust PC.
6127 (windows_continue): Handle pending stops. Suspend other threads
6128 when stepping. Use last_wait_event
6129 (wait_for_debug_event): New function.
6130 (get_windows_debug_event): Use wait_for_debug_event. Handle
6131 pending stops. Queue spurious stops.
6132 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
6133 (windows_nat_target::kill): Use wait_for_debug_event.
6134 * nat/windows-nat.h (struct windows_thread_info)
6135 <stopped_at_software_breakpoint>: New field.
6136 * nat/windows-nat.c (windows_thread_info::resume): Clear
6137 stopped_at_software_breakpoint.
6138
8e61ebec
TT
61392020-04-08 Tom Tromey <tromey@adacore.com>
6140
6141 * windows-nat.c (enum thread_disposition_type): New.
6142 (thread_rec): Replace "get_context" parameter with "disposition";
6143 change type.
6144 (windows_add_thread, windows_nat_target::fetch_registers)
6145 (windows_nat_target::store_registers, handle_exception)
6146 (windows_nat_target::resume, get_windows_debug_event)
6147 (windows_nat_target::get_tib_address)
6148 (windows_nat_target::thread_name)
6149 (windows_nat_target::thread_alive): Update.
6150
98a03287
TT
61512020-04-08 Tom Tromey <tromey@adacore.com>
6152
6153 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
6154 (windows_continue): Use windows_continue::resume.
6155 * nat/windows-nat.h (struct windows_thread_info) <suspend,
6156 resume>: Declare new methods.
6157 * nat/windows-nat.c: New file.
6158 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
6159
7c7411bc
TT
61602020-04-08 Tom Tromey <tromey@adacore.com>
6161
6162 * windows-nat.c (windows_add_thread, windows_delete_thread)
6163 (windows_nat_target::fetch_registers)
6164 (windows_nat_target::store_registers, fake_create_process)
6165 (windows_nat_target::resume, windows_nat_target::resume)
6166 (get_windows_debug_event, windows_nat_target::wait)
6167 (windows_nat_target::pid_to_str)
6168 (windows_nat_target::get_tib_address)
6169 (windows_nat_target::get_ada_task_ptid)
6170 (windows_nat_target::thread_name)
6171 (windows_nat_target::thread_alive): Use lwp, not tid.
6172
2950fdf7
TT
61732020-04-08 Tom Tromey <tromey@adacore.com>
6174
6175 * windows-nat.c (handle_exception)
6176 (windows_nat_target::thread_name): Update.
6177 * nat/windows-nat.h (windows_thread_info): Remove destructor.
6178 <name>: Now unique_xmalloc_ptr.
6179
62fe396b
TT
61802020-04-08 Tom Tromey <tromey@adacore.com>
6181
6182 * windows-nat.c (thread_rec)
6183 (windows_nat_target::fetch_registers): Update.
6184 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
6185 Update comment.
6186 <debug_registers_changed, reload_context>: Now bool.
6187
e9534bd2
TT
61882020-04-08 Tom Tromey <tromey@adacore.com>
6189
6190 * windows-nat.c (windows_add_thread): Use new.
6191 (windows_init_thread_list, windows_delete_thread): Use delete.
6192 (get_windows_debug_event): Update.
6193 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
6194 destructor, and initializers.
6195
ae1f8880
TT
61962020-04-08 Tom Tromey <tromey@adacore.com>
6197
6198 * windows-nat.c (struct windows_thread_info): Remove.
6199 * nat/windows-nat.h: New file.
6200
55a1e039
TT
62012020-04-08 Tom Tromey <tromey@adacore.com>
6202
6203 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
6204 (thread_rec, windows_add_thread, windows_delete_thread)
6205 (windows_continue): Update.
6206
93366324
TT
62072020-04-08 Tom Tromey <tromey@adacore.com>
6208
6209 * windows-nat.c (struct windows_thread_info): Remove typedef.
6210 (thread_head): Remove.
6211 (thread_list): New global.
6212 (thread_rec, windows_add_thread, windows_init_thread_list)
6213 (windows_delete_thread, windows_continue): Update.
6214
0f2265e2
SM
62152020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6216
6217 * windows-tdep.h (windows_init_abi): Add comment.
6218 (cygwin_init_abi): New declaration.
6219 * windows-tdep.c: Split signal enumeration in two, one for
6220 Windows and one for Cygwin.
6221 (windows_gdb_signal_to_target): Only deal with signal of the
6222 Windows OS ABI.
6223 (cygwin_gdb_signal_to_target): New function.
6224 (windows_init_abi): Rename to windows_init_abi_common, don't set
6225 gdb_signal_to_target gdbarch method. Add new new function with
6226 this name.
6227 (cygwin_init_abi): New function.
6228 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
6229 comment. Don't call windows_init_abi.
6230 (amd64_windows_init_abi): Add comment, call windows_init_abi.
6231 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
6232 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
6233 i386_windows_init_abi_common, don't call windows_init_abi. Add
6234 a new function of this name.
6235 (i386_cygwin_init_abi): New function.
6236 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
6237 OS ABI Cygwin.
6238
3810f182
SM
62392020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6240
6241 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
6242 parameter.c.
6243 (dwarf2_read_gdb_index): Update.
6244
063f8e80
KR
62452020-04-07 Kamil Rytarowski <n54@gmx.com>
6246
6247 * nbsd-tdep.c: Include "objfiles.h".
6248 (nbsd_skip_solib_resolver): New.
6249 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
6250
85a9510c 62512020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6252
6253 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
6254 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
6255 with DW_LLE_base_addressx are being emitted in DWARFv5.
6256 Add the newly added kind DW_LOC_OFFSET_PAIR also.
6257 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
6258 unsigned integer.
6259
9fc3eaae 62602020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6261
6262 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
6263 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
6264 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
6265 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
6266 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
6267 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
6268 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
6269
6270
41144253 62712020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6272
6273 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
6274 (read_loclist_index): New function definition.
6275 (lookup_loclist_base): New function definition.
6276 (read_loclist_header): New function definition.
6277 (dwarf2_cu): Add loclist_base and loclist_header field.
6278 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
6279 (read_full_die_1): Read the value of DW_AT_loclists_base.
6280 (read_attribute_reprocess): Handle DW_FORM_loclistx.
6281 (read_attribute_value): Handle DW_FORM_loclistx.
6282 (skip_one_die): Handle DW_FORM_loclistx.
6283 (loclist_header): New structure declaration.
6284 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
6285
9f4e76a4
SM
62862020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
6287
6288 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
6289 constructor. Remove `addr` parameter from other constructor and
6290 add `per_cu` parameter.
6291 * dwarf2/read.c (create_partial_symtab): Update.
6292
25c11aca
TV
62932020-04-07 Tom de Vries <tdevries@suse.de>
6294
6295 PR symtab/25796
6296 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
6297 (partial_die_info::fixup): Inherit has_const_value.
6298
5707e24b
TV
62992020-04-07 Tom de Vries <tdevries@suse.de>
6300
6301 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
6302 symbols without address.
6303
05f00e22
KR
63042020-04-06 Kamil Rytarowski <n54@gmx.com>
6305
6306 * nbsd-nat.h (struct thread_info): Add forward declaration.
6307 (nbsd_nat_target::thread_alive): Add.
6308 (nbsd_nat_target::thread_name): Likewise.
6309 (nbsd_nat_target::update_thread_list): Likewise.
6310 (update_thread_list::post_attach): Likewise.
6311 (post_attach::pid_to_str): Likewise.
6312 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
6313 (nbsd_thread_lister): Add.
6314 (nbsd_nat_target::thread_alive): Likewise.
6315 (nbsd_nat_target::thread_name): Likewise.
6316 (nbsd_add_threads): Likewise.
6317 (update_thread_list::post_attach): Likewise.
6318 (nbsd_nat_target::update_thread_list): Likewise.
6319 (post_attach::pid_to_str): Likewise.
6320
6ee448cc
TT
63212020-04-06 Tom Tromey <tromey@adacore.com>
6322
6323 * ada-valprint.c (print_variant_part): Extract the variant field.
6324 (print_field_values): Use the field as the outer value when
6325 recursing.
6326
dea34e8c
TT
63272020-04-06 Tom Tromey <tromey@adacore.com>
6328
6329 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
6330 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
6331 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
6332 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
6333 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
6334
93689ce9
TT
63352020-04-06 Tom Tromey <tromey@adacore.com>
6336
6337 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
6338 TYPE_CODE_ERROR.
6339
79743962
KR
63402020-04-06 Kamil Rytarowski <n54@gmx.com>
6341
6342 * nbsd-tdep.c: Include "gdbarch.h".
6343 Define enum with NetBSD signal numbers.
6344 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
6345 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
6346 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
6347 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
6348 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
6349 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
6350 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
6351 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
6352 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
6353 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
6354 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
6355 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
6356
9e7c9a03
HD
63572020-04-03 Hannes Domani <ssbssa@yahoo.de>
6358
6359 PR gdb/25325
6360 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
6361
d9e49b61
TT
63622020-04-03 Tom Tromey <tromey@adacore.com>
6363
6364 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
6365 Read constant block.
6366
e0fc5c3f
SM
63672020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6368
6369 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
6370 (gdb_bfd_get_full_section_contents): New declaration.
6371 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
6372 * windows-tdep.c (is_linked_with_cygwin_dll): Use
6373 gdb_bfd_get_full_section_contents.
6374
e2ff18a0
SM
63752020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6376
6377 * exec.c (build_section_table): Replace internal_error with
6378 gdb_assert.
6379 (section_table_xfer_memory_partial): Likewise.
6380 * mdebugread.c (parse_partial_symbols): Likewise.
6381 * psymtab.c (lookup_partial_symbol): Likewise.
6382 * utils.c (wrap_here): Likewise.
6383
0830d301
TT
63842020-04-02 Tom Tromey <tromey@adacore.com>
6385
6386 * f-lang.c (build_fortran_types): Use arch_type to initialize
6387 builtin_complex_s32 in the TYPE_CODE_ERROR case.
6388
e7da7f8f
TT
63892020-04-02 Tom Tromey <tromey@adacore.com>
6390
6391 * dwarf2/read.c (partial_die_info::read): Do not create a vector
6392 of attributes.
6393
c90d28ac
AB
63942020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
6395 Bernd Edlinger <bernd.edlinger@hotmail.de>
6396 Tom Tromey <tromey@adacore.com>
6397
6398 * buildsym.c (buildsym_compunit::record_line): Remove
6399 deduplication code.
6400
1aa98955
TV
64012020-04-02 Tom de Vries <tdevries@suse.de>
6402
6403 PR ada/24671
6404 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
6405
d3214198
TV
64062020-04-02 Tom de Vries <tdevries@suse.de>
6407
6408 * dwarf2/read.c (dwarf2_gdb_index_functions,
6409 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
6410 NULL.
6411 * psymtab.c (psym_lookup_global_symbol_language): New function.
6412 (psym_functions): Init psym_lookup_global_symbol_language with
6413 psym_lookup_global_symbol_language.
6414 * symfile-debug.c (debug_sym_quick_functions): Init
6415 lookup_global_symbol_language with NULL.
6416 * symfile.c (set_initial_language): Remove fixme comment.
6417 * symfile.h (struct quick_symbol_functions): Add
6418 lookup_global_symbol_language.
6419 * symtab.c (find_quick_global_symbol_language): New function.
6420 (find_main_name): Use find_quick_global_symbol_language.
6421
2836752f
SM
64222020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
6423
6424 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
6425
64dc2d4b
BE
64262020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6427
6428 * buildsym.c (record_line): Fix undefined behavior and preserve
6429 lines at eof.
6430
bbe3dc41
BE
64312020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6432
6433 * buildsym.c (record_line): Fix the resizing condition.
6434
6b4a335b
TT
64352020-04-01 Tom Tromey <tom@tromey.com>
6436
6437 * value.h (value_literal_complex): Add comment.
6438 * valops.c (value_literal_complex): Refer to value.h.
6439
3638a098
TT
64402020-04-01 Tom Tromey <tom@tromey.com>
6441
6442 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
6443 (scalar_type): New rule, from typebase.
6444 (typebase): Use scalar_type. Recognize complex types.
6445 (field_name): Handle FLOAT_KEYWORD.
6446 (ident_tokens): Add _Complex and __complex__.
6447
c34e8714
TT
64482020-04-01 Tom Tromey <tom@tromey.com>
6449
6450 PR exp/25299:
6451 * valarith.c (promotion_type, complex_binop): New functions.
6452 (scalar_binop): Handle complex numbers. Use promotion_type.
6453 (value_pos, value_neg, value_complement): Handle complex numbers.
6454
fa649bb7
TT
64552020-04-01 Tom Tromey <tom@tromey.com>
6456
6457 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
6458 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
6459 (parse_number): Handle complex numbers.
6460
981c08ce
TT
64612020-04-01 Tom Tromey <tom@tromey.com>
6462
6463 * c-valprint.c (c_decorations): Change complex suffix to "i".
6464
4c99290d
TT
64652020-04-01 Tom Tromey <tom@tromey.com>
6466
6467 * valprint.c (generic_value_print_complex): Use accessors.
6468 * value.h (value_real_part, value_imaginary_part): Declare.
6469 * valops.c (value_real_part, value_imaginary_part): New
6470 functions.
6471 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
6472
5b930b45
TT
64732020-04-01 Tom Tromey <tom@tromey.com>
6474
6475 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
6476 (read_range_type): Update.
6477 * mdebugread.c (basic_type): Update.
6478 * go-lang.c (build_go_types): Use init_complex_type.
6479 * gdbtypes.h (struct main_type) <complex_type>: New member.
6480 (init_complex_type): Update.
6481 (arch_complex_type): Don't declare.
6482 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
6483 Make name if none given. Use alloc_type_copy. Look for cached
6484 complex type.
6485 (arch_complex_type): Remove.
6486 (gdbtypes_post_init): Use init_complex_type.
6487 * f-lang.c (build_fortran_types): Use init_complex_type.
6488 * dwarf2/read.c (read_base_type): Update.
6489 * d-lang.c (build_d_types): Use init_complex_type.
6490 * ctfread.c (read_base_type): Update.
6491
53cccef1
TBA
64922020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6493
6494 * infrun.c (stop_all_threads): Update assertion, plus when
6495 stopping threads, take into account that we might be trying
6496 to stop an all-stop target.
6497 (stop_waiting): Call 'stop_all_threads' if there exists a
6498 non-stop target.
6499
a0714d30
TBA
65002020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6501
6502 * target.h (exists_non_stop_target): New function declaration.
6503 * target.c (exists_non_stop_target): New function.
6504
60e22c1e
HD
65052020-04-01 Hannes Domani <ssbssa@yahoo.de>
6506
6507 PR gdb/24789
6508 * eval.c (is_integral_or_integral_reference): New function.
6509 (evaluate_subexp_standard): Allow integer references in
6510 pointer arithmetic.
6511
e139a727
TBA
65122020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6513
6514 * remote.c (remote_target::remote_parse_stop_reply): Remove the
6515 check for no ptid in the stop reply when the target is non-stop.
6516
e0802d59
TT
65172020-04-01 Tom Tromey <tromey@adacore.com>
6518
6519 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
6520 "name" parameter to rvalue reference. Initialize m_name_holder.
6521 <lookup_name_info>: New overloads.
6522 <name>: Return gdb::string_view.
6523 <c_str>: New method.
6524 <make_ignore_params>: Update.
6525 <search_name_hash>: Update.
6526 <language_lookup_name>: Return const char *.
6527 <m_name>: Change type.
6528 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
6529 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
6530 (lookup_name_info::match_any): Update.
6531 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
6532 Update.
6533 * minsyms.c (linkage_name_str): Update.
6534 * language.c (default_symbol_name_matcher): Update.
6535 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
6536 Update.
6537 * ada-lang.c (ada_fold_name): Change parameter to string_view.
6538 (ada_lookup_name_info::ada_lookup_name_info): Update.
6539 (literal_symbol_name_matcher): Update.
6540
8c072cb6
TT
65412020-04-01 Tom Tromey <tromey@adacore.com>
6542
6543 * psymtab.c (psymtab_search_name): Remove function.
6544 (psym_lookup_symbol): Create search name and lookup name here.
6545 (lookup_partial_symbol): Remove "name" parameter; add
6546 lookup_name.
6547 (psym_expand_symtabs_for_function): Update.
6548
6f29a534
TT
65492020-03-31 Joel Jones <joelkevinjones@gmail.com>
6550
6551 PR tui/25597:
6552 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
6553
af62665e
TT
65542020-03-31 Tom Tromey <tromey@adacore.com>
6555
6556 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
6557 memcpy.
6558
d1a89da5
NC
65592020-03-30 Nelson Chu <nelson.chu@sifive.com>
6560
6561 * features/riscv/32bit-csr.xml: Regenerated.
6562 * features/riscv/64bit-csr.xml: Regenerated.
6563
d8af9068
TT
65642020-03-30 Tom Tromey <tromey@adacore.com>
6565
6566 * ada-valprint.c (print_variant_part): Update.
6567 * ada-lang.h (ada_which_variant_applies): Update.
6568 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
6569 outer_valaddr parameters; replace with "outer" value parameter.
6570 (to_fixed_variant_branch_type): Update.
6571
227c0bf4
PFC
65722020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6573
6574 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
6575 <list>. Remove inclusion of observable.h.
6576 (PPC_DEBUG_CURRENT_VERSION): Move up define.
6577 (struct arch_lwp_info): New struct.
6578 (class ppc_linux_dreg_interface): New class.
6579 (struct ppc_linux_process_info): New struct.
6580 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
6581 <low_new_clone, low_forget_process, low_prepare_to_resume>
6582 <copy_thread_dreg_state, mark_thread_stale>
6583 <mark_debug_registers_changed, register_hw_breakpoint>
6584 <clear_hw_breakpoint, register_wp, clear_wp>
6585 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
6586 <num_memory_accesses, get_trigger_type>
6587 <create_watchpoint_request, hwdebug_point_cmp>
6588 <init_arch_lwp_info, get_arch_lwp_info>
6589 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
6590 methods.
6591 <struct ptid_hash>: New inner struct.
6592 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
6593 members.
6594 (saved_dabr_value, hwdebug_info, max_slots_number)
6595 (struct hw_break_tuple, struct thread_points, ppc_threads)
6596 (have_ptrace_hwdebug_interface)
6597 (hwdebug_find_thread_points_by_tid)
6598 (hwdebug_insert_point, hwdebug_remove_point): Remove.
6599 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
6600 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
6601 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
6602 use m_dreg_interface.
6603 (hwdebug_point_cmp): Change to...
6604 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
6605 reference arguments instead of pointers.
6606 (ppc_linux_nat_target::ranged_break_num_registers): Use
6607 m_dreg_interface.
6608 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
6609 m_dreg_interface. Call register_hw_breakpoint.
6610 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
6611 m_dreg_interface. Call clear_hw_breakpoint.
6612 (get_trigger_type): Change to...
6613 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
6614 comment.
6615 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
6616 use m_dreg_interface. Call register_hw_breakpoint.
6617 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
6618 use m_dreg_interface. Call clear_hw_breakpoint.
6619 (can_use_watchpoint_cond_accel): Change to...
6620 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
6621 method. Update comment, use m_dreg_interface and
6622 m_process_info.
6623 (calculate_dvc): Change to...
6624 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
6625 m_dreg_interface.
6626 (num_memory_accesses): Change to...
6627 (ppc_linux_nat_target::num_memory_accesses): ...this method.
6628 (check_condition): Change to...
6629 (ppc_linux_nat_target::check_condition): ...this method.
6630 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
6631 comment, use m_dreg_interface.
6632 (create_watchpoint_request): Change to...
6633 (ppc_linux_nat_target::create_watchpoint_request): ...this
6634 method. Use m_dreg_interface.
6635 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
6636 m_dreg_interface. Call register_hw_breakpoint or register_wp.
6637 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
6638 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
6639 (ppc_linux_nat_target::low_forget_process)
6640 (ppc_linux_nat_target::low_new_fork)
6641 (ppc_linux_nat_target::low_new_clone)
6642 (ppc_linux_nat_target::low_delete_thread)
6643 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
6644 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
6645 only call mark_thread_stale.
6646 (ppc_linux_thread_exit): Remove.
6647 (ppc_linux_nat_target::stopped_data_address): Change to...
6648 (ppc_linux_nat_target::low_stopped_data_address): This. Add
6649 comment, use m_dreg_interface and m_thread_hw_breakpoints.
6650 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
6651 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
6652 comment. Call low_stopped_data_address.
6653 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
6654 m_dreg_interface.
6655 (ppc_linux_nat_target::masked_watch_num_registers): Use
6656 m_dreg_interface.
6657 (ppc_linux_nat_target::copy_thread_dreg_state)
6658 (ppc_linux_nat_target::mark_thread_stale)
6659 (ppc_linux_nat_target::mark_debug_registers_changed)
6660 (ppc_linux_nat_target::register_hw_breakpoint)
6661 (ppc_linux_nat_target::clear_hw_breakpoint)
6662 (ppc_linux_nat_target::register_wp)
6663 (ppc_linux_nat_target::clear_wp)
6664 (ppc_linux_nat_target::init_arch_lwp_info)
6665 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
6666 (_initialize_ppc_linux_nat): Remove observer callback.
6667
4db10d8f
PFC
66682020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6669
6670 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
6671 (ppc_linux_nat_target::auxv_parse)
6672 (ppc_linux_nat_target::read_description)
6673 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
6674 Move up.
6675
1310c1b0
PFC
66762020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6677
6678 * linux-nat.h (low_new_clone): New method.
6679 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
6680
69b037c3
SM
66812020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6682
6683 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
6684 (dbx_expand_psymtab): ... this.
6685 (start_psymtab): Update.
6686 * mdebugread.c (psymtab_to_symtab_1): Rename to...
6687 (mdebug_expand_psymtab): ... this.
6688 (parse_partial_symbols): Update.
6689 (new_psymtab): Update.
6690 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
6691 (xcoff_expand_psymtab): ... this.
6692 (xcoff_start_psymtab): Update.
6693
48993951
SM
66942020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6695
6696 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
6697 <expand_dependencies>: ... this.
6698 * psymtab.c (partial_symtab::read_dependencies): Rename to...
6699 (partial_symtab::expand_dependencies): ... this.
6700 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
6701 Update.
6702 (dwarf2_psymtab::expand_psymtab): Update.
6703 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
6704 * mdebugread.c (psymtab_to_symtab_1): Update.
6705 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
6706
3ad83046
SM
67072020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6708
6709 * psympriv.h (discard_psymtab): Remove.
6710 * dbxread.c (dbx_end_psymtab): Update.
6711 * xcoffread.c (xcoff_end_psymtab): Update.
6712
4d1b9ab6
TT
67132020-03-28 Tom Tromey <tom@tromey.com>
6714
6715 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
6716 comment.
6717
f1749218
TT
67182020-03-28 Tom Tromey <tom@tromey.com>
6719
6720 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
6721
ebea7626
HD
67222020-03-27 Hannes Domani <ssbssa@yahoo.de>
6723
6724 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
6725
a879b4d5
JB
67262020-03-26 John Baldwin <jhb@FreeBSD.org>
6727
6728 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
6729
0826b30a
TT
67302020-03-26 Tom Tromey <tom@tromey.com>
6731
6732 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
6733 (mark_common_block_symbol_computed, read_tag_string_type)
6734 (attr_to_dynamic_prop, read_subrange_type): Update.
6735 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
6736 to be methods on struct attribute.
6737 (skip_one_die, process_imported_unit_die, read_namespace_alias)
6738 (read_call_site_scope, partial_die_info::read)
6739 (partial_die_info::read, lookup_die_type, follow_die_ref):
6740 Update.
6741 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
6742 from dwarf2_get_ref_die_offset.
6743 (attribute::constant_value): New method, from
6744 dwarf2_get_attr_constant_value.
6745 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
6746 Declare method.
6747 <constant_value>: New method.
6748
2b2558bf
TT
67492020-03-26 Tom Tromey <tom@tromey.com>
6750
6751 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
6752 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
6753 (dwarf_type_encoding_name): Move to stringify.c.
6754 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
6755 * dwarf2/stringify.c: New file.
6756 * dwarf2/stringify.h: New file.
6757
eeb64781
TT
67582020-03-26 Tom Tromey <tom@tromey.com>
6759
6760 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
6761 Rewrite.
6762
a39fdb41
TT
67632020-03-26 Tom Tromey <tom@tromey.com>
6764
6765 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
6766 methods.
6767 * dwarf2/read.c (lookup_addr_base): Move to die.h.
6768 (lookup_ranges_base): Likewise.
6769 (read_cutu_die_from_dwo, read_full_die_1): Update.
6770
436c571c
TT
67712020-03-26 Tom Tromey <tom@tromey.com>
6772
6773 * dwarf2/read.c (read_import_statement, read_file_scope)
6774 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
6775 (read_lexical_block_scope, read_call_site_scope)
6776 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
6777 (handle_struct_member_die, process_structure_scope)
6778 (update_enumeration_type_from_children)
6779 (process_enumeration_scope, read_array_type, read_common_block)
6780 (read_namespace, read_module, read_subroutine_type): Update.
6781 (sibling_die): Remove.
6782
052c8bb8
TT
67832020-03-26 Tom Tromey <tom@tromey.com>
6784
6785 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
6786 (build_type_psymtabs_reader, read_structure_type)
6787 (read_enumeration_type, read_full_die_1): Update.
6788 (dwarf2_attr_no_follow): Move to die.h.
6789 * dwarf2/die.h (struct die_info) <attr>: New method.
6790
2b24b6e4
TT
67912020-03-26 Tom Tromey <tom@tromey.com>
6792
6793 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
6794 <base_address>: Now an optional.
6795 (dwarf2_find_base_address, dwarf2_rnglists_process)
6796 (dwarf2_ranges_process, fill_in_loclist_baton)
6797 (dwarf2_symbol_mark_computed): Update.
6798
c2d50fd0
TT
67992020-03-26 Tom Tromey <tom@tromey.com>
6800
6801 * dwarf2/read.c (struct die_info): Move to die.h.
6802 * dwarf2/die.h: New file.
6803
0df7ad3a
TT
68042020-03-26 Tom Tromey <tom@tromey.com>
6805
6806 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
6807 * dwarf2/read.c
6808 (dwarf2_statement_list_fits_in_line_number_section_complaint):
6809 Move to line-header.c.
6810 (read_checked_initial_length_and_offset, read_formatted_entries):
6811 Likewise.
6812 (dwarf_decode_line_header): Split into two.
6813 * dwarf2/line-header.c
6814 (dwarf2_statement_list_fits_in_line_number_section_complaint):
6815 Move from read.c.
6816 (read_checked_initial_length_and_offset, read_formatted_entries):
6817 Likewise.
6818 (dwarf_decode_line_header): New function, split from read.c.
6819
86c0bb4c
TT
68202020-03-26 Tom Tromey <tom@tromey.com>
6821
6822 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
6823 Declare method.
6824 * dwarf2/read.c (read_attribute_value): Update.
6825 (dwarf2_per_objfile::read_line_string): Rename from
6826 read_indirect_line_string.
6827 (read_formatted_entries): Update.
6828
2ef46c2f
TT
68292020-03-26 Tom Tromey <tom@tromey.com>
6830
6831 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
6832 variable.
6833
4f9c1eda
TT
68342020-03-26 Tom Tromey <tom@tromey.com>
6835
6836 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
6837 const.
6838 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
6839 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
6840 parameter const.
6841
5a0e026f
TT
68422020-03-26 Tom Tromey <tom@tromey.com>
6843
6844 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
6845 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
6846 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
6847 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
6848
8844c11b
TT
68492020-03-26 Tom Tromey <tom@tromey.com>
6850
6851 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
6852 file_names_size, file_full_name, file_file_name>: Use const.
6853 <file_name_at, file_names>: Add const overload.
6854 * dwarf2/line-header.c (line_header::file_file_name)
6855 (line_header::file_full_name): Update.
6856
c90ec28a
TT
68572020-03-26 Tom Tromey <tom@tromey.com>
6858
6859 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
6860 (macro_start_file, consume_improper_spaces)
6861 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
6862 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
6863 (dwarf_decode_macros): Move to macro.c.
6864 * dwarf2/macro.c: New file.
6865 * dwarf2/macro.h: New file.
6866 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
6867
4f44ae6c
TT
68682020-03-26 Tom Tromey <tom@tromey.com>
6869
6870 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
6871 method.
6872 * dwarf2/section.c: New method. From
6873 read_indirect_string_at_offset_from.
6874 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
6875 (read_indirect_string_at_offset_from): Move to section.c.
6876 (read_indirect_string_at_offset): Rewrite.
6877 (read_indirect_line_string_at_offset): Remove.
6878 (read_indirect_string, read_indirect_line_string)
6879 (dwarf_decode_macro_bytes): Update.
6880
a0194fa8
TT
68812020-03-26 Tom Tromey <tom@tromey.com>
6882
6883 * dwarf2/section.h (struct dwarf2_section_info)
6884 <overload_complaint>: Declare.
6885 (dwarf2_section_buffer_overflow_complaint): Don't declare.
6886 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
6887 Rename from dwarf2_section_buffer_overflow_complaint.
6888 * dwarf2/read.c (skip_one_die, partial_die_info::read)
6889 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
6890
3d27bbdb
TT
68912020-03-26 Tom Tromey <tom@tromey.com>
6892
6893 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
6894 Declare.
6895 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
6896 Move from read.c.
6897 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
6898 to section.c.
6899
9eac9650
TT
69002020-03-26 Tom Tromey <tom@tromey.com>
6901
6902 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
6903
bf80d710
TT
69042020-03-26 Tom Tromey <tom@tromey.com>
6905
6906 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
6907 "builder".
6908 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
6909 parameter.
6910 (dwarf_decode_macros): Update.
6911
0314b390
TT
69122020-03-26 Tom Tromey <tom@tromey.com>
6913
6914 * dwarf2/read.c (read_attribute_value): Update.
6915 (read_indirect_string_from_dwz): Move to dwz.c; change into
6916 method.
6917 (dwarf_decode_macro_bytes): Update.
6918 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
6919 * dwarf2/dwz.c: New file.
6920 * Makefile.in (COMMON_SFILES): Add dwz.c.
6921
9fda78b6
TT
69222020-03-26 Tom Tromey <tom@tromey.com>
6923
6924 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
6925 * dwarf2/read.c: Add include.
6926 * dwarf2/index-write.c: Add include.
6927 * dwarf2/index-cache.c: Add include.
6928 * dwarf2/dwz.h: New file.
6929
33aa3c10
TT
69302020-03-25 Tom Tromey <tom@tromey.com>
6931
6932 * compile/compile-object-load.c (get_out_value_type): Mention
6933 correct symbol name in error message.
6934
d503b685
HD
69352020-03-25 Hannes Domani <ssbssa@yahoo.de>
6936
6937 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
6938
7b1eff95
TV
69392020-03-25 Tom de Vries <tdevries@suse.de>
6940
6941 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
6942 * symmisc.c (dump_symtab_1): Print user and includes fields.
6943 (maintenance_info_symtabs): Same.
6944
dd895392
AB
69452020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
6946
6947 PR gdb/25534
6948 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
6949 (riscv_regcache_cooked_write): New function.
6950 (riscv_push_dummy_call): Use new function.
6951 (riscv_return_value): Likewise.
6952
5ab2fbf1
SM
69532020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
6954
6955 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
6956 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
6957 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
6958 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
6959 * infrun.c (follow_fork): Likewise.
6960 (follow_fork_inferior): Likewise.
6961 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
6962 * linux-nat.h (class linux_nat_target): Likewise.
6963 * remote.c (class remote_target) <follow_fork>: Likewise.
6964 (remote_target::follow_fork): Likewise.
6965 * target-delegates.c: Re-generate.
6966 * target.c (default_follow_fork): Likewise.
6967 (target_follow_fork): Likewise.
6968 * target.h (struct target_ops) <follow_fork>: Likewise.
6969 (target_follow_fork): Likewise.
6970
a64fafb5
TV
69712020-03-24 Tom de Vries <tdevries@suse.de>
6972
6973 * psymtab.c (maintenance_info_psymtabs): Print user field.
6974
fe26d3a3
TT
69752020-03-20 Tom Tromey <tromey@adacore.com>
6976
6977 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
6978 const.
6979 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
6980 const.
6981
c884cc46
SM
69822020-03-20 Simon Marchi <simon.marchi@efficios.com>
6983
6984 * ptrace.m4: Don't check for ptrace declaration.
6985 * config.in: Re-generate.
6986 * configure: Re-generate.
6987 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
6988 not defined.
6989
1ff700c2
KR
69902020-03-20 Kamil Rytarowski <n54@gmx.com>
6991
6992 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
6993 `PTRACE_TYPE_RET'.
6994 * i386-bsd-nat.c (gdb_ptrace): Likewise.
6995 * sparc-nat.c (gdb_ptrace): Likewise.
6996 * x86-bsd-nat.c (gdb_ptrace): Likewise.
6997
f7d4f0b1
TT
69982020-03-20 Tom Tromey <tromey@adacore.com>
6999
7000 * c-exp.y (lex_one_token): Fix assert.
7001
f67210ff
TT
70022020-03-20 Tom Tromey <tromey@adacore.com>
7003
7004 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
7005 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
7006 strncpy call.
7007
1773be9e
TT
70082020-03-20 Tom Tromey <tromey@adacore.com>
7009
7010 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
7011
70304be9
TT
70122020-03-20 Tom Tromey <tromey@adacore.com>
7013
7014 * ada-valprint.c (print_variant_part): Remove parameters; switch
7015 to value-based API.
7016 (print_field_values): Likewise.
7017 (ada_val_print_struct_union): Likewise.
7018 (ada_value_print_1): Update.
7019
9faa006d
KR
70202020-03-20 Kamil Rytarowski <n54@gmx.com>
7021
7022 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
7023 nbsd_nat_target instead of inf_ptrace_target.
7024 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7025 nbsd_nat_target.
7026
4a90f062
KR
70272020-03-20 Kamil Rytarowski <n54@gmx.com>
7028
7029 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
7030 it to the ptrace call.
7031 * (store_registers): Likewise.
7032
70332020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
7034
7035 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
7036 it to the ptrace call.
7037 * (store_registers): Likewise.
7038
2d07da27
LM
70392020-03-19 Luis Machado <luis.machado@linaro.org>
7040
7041 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
7042 valid, fetch vg value from ptrace.
7043
f09db380
KR
70442020-03-19 Kamil Rytarowski <n54@gmx.com>
7045 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
7046 * inf-ptrace.c: Likewise.
7047 * (gdb_ptrace): Add.
7048 * (inf_ptrace_target::resume): Update.
7049 * (inf_ptrace_target::xfer_partial): Likewise.
7050 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
7051 * (inf_ptrace_peek_poke): Update.
7052
fcc7376e
KR
70532020-03-19 Kamil Rytarowski <n54@gmx.com>
7054
7055 * x86-bsd-nat.c (gdb_ptrace): New.
7056 * (x86bsd_dr_set): Add new argument `ptid'.
7057 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
7058 x86bsd_dr_set_addr): Update.
7059
cada5fc9
AB
70602020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7061
7062 * remote.c (remote_target::process_stop_reply): Handle events for
7063 all threads differently.
7064
19a2740f
AB
70652020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7066
7067 * completer.c (completion_tracker::remove_completion): Define new
7068 function.
7069 * completer.h (completion_tracker::remove_completion): Declare new
7070 function.
7071 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
7072 when adding a C++ function symbol.
7073
724fd9ba
AB
70742020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7075
7076 * completer.c (completion_tracker::completion_hash_entry): Define
7077 new class.
7078 (advance_to_filename_complete_word_point): Call
7079 recompute_lowest_common_denominator.
7080 (completion_tracker::completion_tracker): Call discard_completions
7081 to setup the hash table.
7082 (completion_tracker::discard_completions): Allow for being called
7083 from the constructor, pass new equal function, and element deleter
7084 when constructing the hash table. Initialise new class member
7085 variables.
7086 (completion_tracker::maybe_add_completion): Remove use of
7087 m_entries_vec, and store more information into m_entries_hash.
7088 (completion_tracker::recompute_lcd_visitor): New function, most
7089 content taken from...
7090 (completion_tracker::recompute_lowest_common_denominator):
7091 ...here, this now just visits each item in the hash calling the
7092 above visitor.
7093 (completion_tracker::build_completion_result): Remove use of
7094 m_entries_vec, call recompute_lowest_common_denominator.
7095 * completer.h (completion_tracker::have_completions): Remove use
7096 of m_entries_vec.
7097 (completion_tracker::completion_hash_entry): Declare new class.
7098 (completion_tracker::recompute_lowest_common_denominator): Change
7099 function signature.
7100 (completion_tracker::recompute_lcd_visitor): Declare new function.
7101 (completion_tracker::m_entries_vec): Delete.
7102 (completion_tracker::m_entries_hash): Initialize to NULL.
7103 (completion_tracker::m_lowest_common_denominator_valid): New
7104 member variable.
7105 (completion_tracker::m_lowest_common_denominator_max_length): New
7106 member variable.
7107
5a82b8a1
KR
71082020-03-17 Kamil Rytarowski <n54@gmx.com>
7109
7110 * regformats/regdef.h: Put reg in gdb namespace.
7111
fb516a69
KR
71122020-03-17 Kamil Rytarowski <n54@gmx.com>
7113
7114 * i386-bsd-nat.c (gdb_ptrace): New.
7115 * (i386bsd_fetch_inferior_registers,
7116 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7117 * (i386bsd_fetch_inferior_registers,
7118 i386bsd_store_inferior_registers) Use gdb_ptrace.
7119
1c0aa1fb
KR
71202020-03-17 Kamil Rytarowski <n54@gmx.com>
7121
7122 * amd64-bsd-nat.c (gdb_ptrace): New.
7123 * (amd64bsd_fetch_inferior_registers,
7124 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7125 * (amd64bsd_fetch_inferior_registers,
7126 amd64bsd_store_inferior_registers) Use gdb_ptrace.
7127
5ccd2fb7
KR
71282020-03-17 Kamil Rytarowski <n54@gmx.com>
7129
7130 * user-regs.c (user_reg::read): Rename to...
7131 (user_reg::xread): ...this.
7132 * (append_user_reg): Rename argument `read' to `xread'.
7133 * (user_reg_add_builtin): Likewise.
7134 * (user_reg_add): Likewise.
7135 * (value_of_user_reg): Likewise.
7136
2108a63a
KR
71372020-03-17 Kamil Rytarowski <n54@gmx.com>
7138
7139 * sparc-nat.c (gdb_ptrace): New.
7140 * sparc-nat.c (sparc_fetch_inferior_registers)
7141 (sparc_store_inferior_registers) Remove obsolete comment.
7142 * sparc-nat.c (sparc_fetch_inferior_registers)
7143 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
7144 * sparc-nat.c (sparc_fetch_inferior_registers)
7145 (sparc_store_inferior_registers) Use gdb_ptrace.
7146
a225c9a8
KR
71472020-03-17 Kamil Rytarowski <n54@gmx.com>
7148
7149 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
7150 it to the ptrace call.
7151 * sh-nbsd-nat.c (store_registers): Likewise.
7152
98097623
KR
71532020-03-17 Kamil Rytarowski <n54@gmx.com>
7154
7155 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
7156 nbsd_nat_target instead of inf_ptrace_target.
7157 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7158 nbsd_nat_target.
7159
9e38d619
KR
71602020-03-17 Kamil Rytarowski <n54@gmx.com>
7161
7162 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
7163
a2ecbe9f
KR
71642020-03-17 Kamil Rytarowski <n54@gmx.com>
7165
7166 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
7167 <sys/sysctl.h>.
7168 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
7169
58990295
TV
71702020-03-17 Tom de Vries <tdevries@suse.de>
7171
7172 PR gdb/23710
7173 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
7174 fields.
7175 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
7176 fields.
7177 (process_imported_unit_die): Skip import of c++ CUs.
7178
771dd3a8
TT
71792020-03-16 Tom Tromey <tom@tromey.com>
7180
7181 * p-valprint.c (pascal_object_print_value): Initialize
7182 base_value.
7183
817a7585
AK
71842020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
7185 Shahab Vahedi <shahab@synopsys.com>
7186
7187 * Makefile.in: Add arch/arc.o
7188 * configure.tgt: Likewise.
7189 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
7190 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 7191 (arc_read_description): New function to cache target descriptions.
817a7585
AK
7192 * arc-tdep.h (arc_read_description): Add proto type.
7193 * arch/arc.c: New file.
7194 * arch/arc.h: Likewise.
7195 * features/Makefile: Replace old target descriptions with new.
7196 * features/arc-arcompact.c: Remove.
7197 * features/arc-arcompact.xml: Likewise.
7198 * features/arc-v2.c: Likewise
7199 * features/arc-v2.xml: Likewise
7200 * features/arc/aux-arcompact.xml: New file.
7201 * features/arc/aux-v2.xml: Likewise.
7202 * features/arc/core-arcompact.xml: Likewise.
7203 * features/arc/core-v2.xml: Likewise.
7204 * features/arc/aux-arcompact.c: Generate.
7205 * features/arc/aux-v2.c: Likewise.
7206 * features/arc/core-arcompact.c: Likewise.
7207 * features/arc/core-v2.c: Likewise.
7208 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
7209
67430cd0
TT
72102020-03-16 Tom Tromey <tromey@adacore.com>
7211
7212 PR gdb/25663:
7213 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
7214 putting value into bcache.
7215
30efb6c7
SM
72162020-03-16 Simon Marchi <simon.marchi@efficios.com>
7217
7218 PR gdb/21500
7219 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
7220 to...
7221 (amd64_windows_init_abi_common): ... this. Don't set size of
7222 long type.
7223 (amd64_windows_init_abi): New function.
7224 (amd64_cygwin_init_abi): New function.
7225 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
7226 the Cygwin OS ABI.
7227 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
7228 comment.
7229
8db52437
SM
72302020-03-16 Simon Marchi <simon.marchi@efficios.com>
7231
7232 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
7233 * windows-tdep.c (CYGWIN_DLL_NAME): New.
7234 (pe_import_directory_entry): New struct type.
7235 (is_linked_with_cygwin_dll): New function.
7236 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
7237 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
7238 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
7239
5982a56a
SM
72402020-03-16 Simon Marchi <simon.marchi@efficios.com>
7241
7242 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
7243 i386_cygwin_core_osabi_sniffer.
7244
7a1998df
SM
72452020-03-16 Simon Marchi <simon.marchi@efficios.com>
7246
7247 * i386-cygwin-tdep.c: Rename to...
7248 * i386-windows-tdep.c: ... this.
7249 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
7250 i386-windows-tdep.c.
7251 * configure.tgt: Likewise.
7252
053205cc
SM
72532020-03-16 Simon Marchi <simon.marchi@efficios.com>
7254
7255 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
7256 * osabi.c (gdb_osabi_names): Add "Windows".
7257 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
7258 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
7259 (i386_cygwin_core_osabi_sniffer): New function, extracted from
7260 i386_cygwin_osabi_sniffer.
7261 (_initialize_i386_cygwin_tdep): Register OS ABI
7262 GDB_OSABI_WINDOWS for i386.
7263 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
7264 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
7265 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
7266 for x86-64.
7267 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
7268 when the target matches '*-*-mingw*'.
7269
fe4b2ee6
SM
72702020-03-16 Simon Marchi <simon.marchi@efficios.com>
7271
7272 * defs.h (enum gdb_osabi): Move to...
7273 * osabi.h (enum gdb_osabi): ... here.
7274 * gdbarch.sh: Include osabi.h in gdbarch.h.
7275 * gdbarch.h: Re-generate.
7276
cb9b645d
SM
72772020-03-16 Simon Marchi <simon.marchi@efficios.com>
7278
7279 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
7280 function.
7281 (_initialize_amd64_windows_tdep): Register osabi sniffer.
7282
3293bbaf
TT
72832020-03-14 Tom Tromey <tom@tromey.com>
7284
7285 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
7286 for C++.
7287 (c_type_print_modifier): Likewise. Add "language" parameter.
7288 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
7289 (c_type_print_base_1): Update.
7290 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
7291 constants.
7292 * type-stack.c (type_stack::insert): Handle tp_atomic and
7293 tp_restrict.
7294 (type_stack::follow_type_instance_flags): Likewise.
7295 (type_stack::follow_types): Likewise. Merge type-following code.
7296 * c-exp.y (RESTRICT, ATOMIC): New tokens.
7297 (space_identifier, cv_with_space_id)
7298 (const_or_volatile_or_space_identifier_noopt)
7299 (const_or_volatile_or_space_identifier): Remove.
7300 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
7301 rules.
7302 (ptr_operator, typebase): Update.
7303 (enum token_flag) <FLAG_C>: New constant.
7304 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
7305 "_Atomic".
7306 (lex_one_token): Handle FLAG_C.
7307
154151a6
KR
73082020-03-14 Kamil Rytarowski <n54@gmx.com>
7309
7310 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
7311 it to the ptrace call.
7312 * m68k-bsd-nat.c (store_registers): Likewise.
7313
bc107784
KR
73142020-03-14 Kamil Rytarowski <n54@gmx.com>
7315
7316 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
7317 gdb_byte *.
7318 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
7319 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
7320 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
7321
01a80117
KR
73222020-03-14 Kamil Rytarowski <n54@gmx.com>
7323
7324 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
7325 nbsd_nat_target instead of inf_ptrace_target.
7326 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7327 nbsd_nat_target.
7328
f90280ca
KR
73292020-03-14 Kamil Rytarowski <n54@gmx.com>
7330
7331 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
7332 register_t.
7333
6def66f1
KR
73342020-03-14 Kamil Rytarowski <n54@gmx.com>
7335
7336 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
7337 it to the ptrace call.
7338 * alpha-bsd-nat.c (store_registers): Likewise.
7339
66eaca97
KR
73402020-03-14 Kamil Rytarowski <n54@gmx.com>
7341
7342 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
7343 includes.
7344 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
7345 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
7346 fill_fpregset): Likewise.
7347
4fed520b
KR
73482020-03-14 Kamil Rytarowski <n54@gmx.com>
7349
7350 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
7351 nbsd_nat_target instead of inf_ptrace_target.
7352 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7353 nbsd_nat_target.
7354
2190cf06
KR
73552020-03-14 Kamil Rytarowski <n54@gmx.com>
7356
7357 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
7358 register_t.
7359
75c56d3d
KR
73602020-03-14 Kamil Rytarowski <n54@gmx.com>
7361
7362 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
7363 it to the ptrace call.
7364 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
7365 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
7366 * arm-nbsd-nat.c (store_register): Likewise.
7367 * arm-nbsd-nat.c (store_regs): Likewise.
7368 * arm-nbsd-nat.c (store_fp_register): Likewise.
7369 * arm-nbsd-nat.c (store_fp_regs): Likewise.
7370
6018d381
KR
73712020-03-14 Kamil Rytarowski <n54@gmx.com>
7372
7373 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
7374 nbsd_nat_target instead of inf_ptrace_target.
7375 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7376 nbsd_nat_target.
7377
013f99f0
KR
73782020-03-14 Kamil Rytarowski <n54@gmx.com>
7379
7380 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
7381 it to the ptrace call.
7382 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
7383
12753073
KR
73842020-03-14 Kamil Rytarowski <n54@gmx.com>
7385
6227b330
KR
7386 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
7387 it to the ptrace call.
7388 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
7389
73902020-03-14 Kamil Rytarowski <n54@gmx.com>
7391
7392 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
7393 gdb_byte *.
12753073
KR
7394 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
7395
d5be5fa4
KR
73962020-03-14 Kamil Rytarowski <n54@gmx.com>
7397
7398 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
7399 instead of inf_ptrace_target.
7400 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7401 nbsd_nat_target.
7402
8110f842
KR
74032020-03-14 Kamil Rytarowski <n54@gmx.com>
7404
7405 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7406 register_t.
7407
52feded7
KR
74082020-03-14 Kamil Rytarowski <n54@gmx.com>
7409
7410 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7411 register_t.
7412
25567eee
KR
74132020-03-14 Kamil Rytarowski <n54@gmx.com>
7414
7415 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
7416 register_t.
7417
426a9c18
TT
74182020-03-13 Tom Tromey <tom@tromey.com>
7419
7420 * value.h (val_print): Don't declare.
7421 * valprint.h (val_print_array_elements)
7422 (val_print_scalar_formatted, generic_val_print): Don't declare.
7423 * valprint.c (generic_val_print_array): Take a struct value.
7424 (generic_val_print_ptr, generic_val_print_memberptr)
7425 (generic_val_print_bool, generic_val_print_int)
7426 (generic_val_print_char, generic_val_print_complex)
7427 (generic_val_print): Remove.
7428 (generic_value_print): Update.
7429 (do_val_print): Remove unused parameters. Don't call
7430 la_val_print.
7431 (val_print): Remove.
7432 (common_val_print): Update. Don't call value_check_printable.
7433 (val_print_scalar_formatted, val_print_array_elements): Remove.
7434 * rust-lang.c (rust_val_print): Remove.
7435 (rust_language_defn): Update.
7436 * p-valprint.c (pascal_val_print): Remove.
7437 (pascal_value_print_inner): Update.
7438 (pascal_object_print_val_fields, pascal_object_print_val):
7439 Remove.
7440 (pascal_object_print_static_field): Update.
7441 * p-lang.h (pascal_val_print): Don't declare.
7442 * p-lang.c (pascal_language_defn): Update.
7443 * opencl-lang.c (opencl_language_defn): Update.
7444 * objc-lang.c (objc_language_defn): Update.
7445 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
7446 * m2-lang.h (m2_val_print): Don't declare.
7447 * m2-lang.c (m2_language_defn): Update.
7448 * language.h (struct language_defn) <la_val_print>: Remove.
7449 * language.c (unk_lang_value_print_inner): Rename. Change
7450 argument types.
7451 (unknown_language_defn, auto_language_defn): Update.
7452 * go-valprint.c (go_val_print): Remove.
7453 * go-lang.h (go_val_print): Don't declare.
7454 * go-lang.c (go_language_defn): Update.
7455 * f-valprint.c (f_val_print): Remove.
7456 * f-lang.h (f_value_print): Don't declare.
7457 * f-lang.c (f_language_defn): Update.
7458 * d-valprint.c (d_val_print): Remove.
7459 * d-lang.h (d_value_print): Don't declare.
7460 * d-lang.c (d_language_defn): Update.
7461 * cp-valprint.c (cp_print_value_fields)
7462 (cp_print_value_fields_rtti, cp_print_value): Remove.
7463 (cp_print_static_field): Update.
7464 * c-valprint.c (c_val_print_array, c_val_print_ptr)
7465 (c_val_print_struct, c_val_print_union, c_val_print_int)
7466 (c_val_print_memberptr, c_val_print): Remove.
7467 * c-lang.h (c_val_print_array, cp_print_value_fields)
7468 (cp_print_value_fields_rtti): Don't declare.
7469 * c-lang.c (c_language_defn, cplus_language_defn)
7470 (asm_language_defn, minimal_language_defn): Update.
7471 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
7472 (ada_val_print_enum): Take a struct value.
7473 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
7474 (ada_val_print): Remove.
7475 (ada_value_print_1): Update.
7476 (printable_val_type): Remove.
7477 * ada-lang.h (ada_val_print): Don't declare.
7478 * ada-lang.c (ada_language_defn): Update.
7479
42331a1e
TT
74802020-03-13 Tom Tromey <tom@tromey.com>
7481
7482 * valprint.c (do_val_print): Update.
7483 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
7484 a struct value.
7485 (value_to_value_object_no_release): Declare.
7486 * python/py-value.c (value_to_value_object_no_release): New
7487 function.
7488 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
7489 struct value.
7490 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
7491 function.
7492 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
7493 a struct value.
7494 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
7495 Declare.
7496 (gdbscm_apply_val_pretty_printer): Take a struct value.
7497 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
7498 value.
7499 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
7500 value.
7501 * extension-priv.h (struct extension_language_ops)
7502 <apply_val_pretty_printer>: Take a struct value.
7503 * cp-valprint.c (cp_print_value): Create a struct value.
7504 (cp_print_value): Update.
7505
3a916a97
TT
75062020-03-13 Tom Tromey <tom@tromey.com>
7507
7508 * ada-valprint.c (print_field_values): Call common_val_print.
7509
b59eac37
TT
75102020-03-13 Tom Tromey <tom@tromey.com>
7511
7512 * ada-valprint.c (val_print_packed_array_elements): Remove
7513 bitoffset and val parameters. Call common_val_print.
7514 (ada_val_print_string): Remove offset, address, and original_value
7515 parameters.
7516 (ada_val_print_array): Update.
7517 (ada_value_print_array): New function.
7518 (ada_value_print_1): Call it.
7519
03371129
TT
75202020-03-13 Tom Tromey <tom@tromey.com>
7521
7522 * ada-valprint.c (ada_value_print): Use common_val_print.
7523
2e088f8b
TT
75242020-03-13 Tom Tromey <tom@tromey.com>
7525
7526 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
7527
39ef85a8
TT
75282020-03-13 Tom Tromey <tom@tromey.com>
7529
7530 * ada-valprint.c (ada_value_print_num): New function.
7531 (ada_value_print_1): Use it.
7532
b9fa6e07
TT
75332020-03-13 Tom Tromey <tom@tromey.com>
7534
7535 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
7536
416595d6
TT
75372020-03-13 Tom Tromey <tom@tromey.com>
7538
7539 * ada-valprint.c (ada_value_print_ptr): New function.
7540 (ada_value_print_1): Use it.
7541
5b5e15ec
TT
75422020-03-13 Tom Tromey <tom@tromey.com>
7543
7544 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
7545 call common_val_print.
7546 (ada_val_print_1): Update.
7547 (ada_value_print_1): New function.
7548 (ada_value_print_inner): Rewrite.
7549
fbf54e75
TT
75502020-03-13 Tom Tromey <tom@tromey.com>
7551
7552 * cp-valprint.c (cp_print_value_fields): Update.
7553 (cp_print_value): New function.
7554
64b653ca
TT
75552020-03-13 Tom Tromey <tom@tromey.com>
7556
7557 * m2-valprint.c (m2_value_print_inner): Use
7558 cp_print_value_fields.
7559 * cp-valprint.c (cp_print_value_fields): New function.
7560 * c-valprint.c (c_value_print_struct): New function.
7561 (c_value_print_inner): Use c_value_print_struct.
7562 * c-lang.h (cp_print_value_fields): Declare.
7563
6999f067
TT
75642020-03-13 Tom Tromey <tom@tromey.com>
7565
7566 * c-valprint.c (c_value_print_array): New function.
7567 (c_value_print_inner): Use it.
7568
ce80b8bd
TT
75692020-03-13 Tom Tromey <tom@tromey.com>
7570
7571 * c-valprint.c (c_value_print_memberptr): New function.
7572 (c_value_print_inner): Use it.
7573
2faac269
TT
75742020-03-13 Tom Tromey <tom@tromey.com>
7575
7576 * c-valprint.c (c_value_print_int): New function.
7577 (c_value_print_inner): Use it.
7578
da3e2c29
TT
75792020-03-13 Tom Tromey <tom@tromey.com>
7580
7581 * c-valprint.c (c_value_print_ptr): New function.
7582 (c_value_print_inner): Use it.
7583
50836231
TT
75842020-03-13 Tom Tromey <tom@tromey.com>
7585
7586 * c-valprint.c (c_value_print_inner): Rewrite.
7587
4f412b6e
TT
75882020-03-13 Tom Tromey <tom@tromey.com>
7589
7590 * valprint.c (generic_value_print_complex): New function.
7591 (generic_value_print): Use it.
7592
f5354008
TT
75932020-03-13 Tom Tromey <tom@tromey.com>
7594
7595 * valprint.c (generic_val_print_float): Don't call
7596 val_print_scalar_formatted.
7597 (generic_val_print, generic_value_print): Update.
7598
3eec3b05
TT
75992020-03-13 Tom Tromey <tom@tromey.com>
7600
7601 * valprint.c (generic_value_print_char): New function
7602 (generic_value_print): Use it.
7603
fdddfccb
TT
76042020-03-13 Tom Tromey <tom@tromey.com>
7605
7606 * valprint.c (generic_value_print_int): New function.
7607 (generic_value_print): Use it.
7608
6dde7521
TT
76092020-03-13 Tom Tromey <tom@tromey.com>
7610
7611 * valprint.c (generic_value_print_bool): New function.
7612 (generic_value_print): Use it.
7613
4112d2e6
TT
76142020-03-13 Tom Tromey <tom@tromey.com>
7615
7616 * valprint.c (generic_val_print_func): Simplify.
7617 (generic_val_print, generic_value_print): Update.
7618
65786af6
TT
76192020-03-13 Tom Tromey <tom@tromey.com>
7620
7621 * valprint.c (generic_val_print_flags): Remove.
7622 (generic_val_print, generic_value_print): Update.
7623 (val_print_type_code_flags): Add original_value parameter.
7624
40f3ce18
TT
76252020-03-13 Tom Tromey <tom@tromey.com>
7626
7627 * valprint.c (generic_val_print): Update.
7628 (generic_value_print): Update.
7629 * valprint.c (generic_val_print_enum): Don't call
7630 val_print_scalar_formatted.
7631
2a5b130b
TT
76322020-03-13 Tom Tromey <tom@tromey.com>
7633
7634 * valprint.c (generic_value_print): Call generic_value_print_ptr.
7635 * valprint.c (generic_value_print_ptr): New function.
7636
abc66ce9
TT
76372020-03-13 Tom Tromey <tom@tromey.com>
7638
7639 * valprint.c (generic_value_print): Rewrite.
7640
07a32858
TT
76412020-03-13 Tom Tromey <tom@tromey.com>
7642
7643 * p-valprint.c (pascal_object_print_value_fields)
7644 (pascal_object_print_value): New functions.
7645
64d64d3a
TT
76462020-03-13 Tom Tromey <tom@tromey.com>
7647
7648 * p-valprint.c (pascal_value_print_inner): Rewrite.
7649
6a95a1f5
TT
76502020-03-13 Tom Tromey <tom@tromey.com>
7651
7652 * f-valprint.c (f_value_print_innner): Rewrite.
7653
59fcdac6
TT
76542020-03-13 Tom Tromey <tom@tromey.com>
7655
7656 * m2-valprint.c (m2_print_unbounded_array): New overload.
7657 (m2_print_unbounded_array): Update.
7658 (m2_print_array_contents): Take a struct value.
7659 (m2_value_print_inner): Rewrite.
7660
d133c3e1
TT
76612020-03-13 Tom Tromey <tom@tromey.com>
7662
7663 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
7664 (d_value_print_inner): New function.
7665 * d-lang.h (d_value_print_inner): Declare.
7666 * d-lang.c (d_language_defn): Use d_value_print_inner.
7667
23b0f06b
TT
76682020-03-13 Tom Tromey <tom@tromey.com>
7669
7670 * go-valprint.c (go_value_print_inner): New function.
7671 * go-lang.h (go_value_print_inner): Declare.
7672 * go-lang.c (go_language_defn): Use go_value_print_inner.
7673
5f56f7cb
TT
76742020-03-13 Tom Tromey <tom@tromey.com>
7675
7676 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
7677 API.
7678 (rust_val_print): Rewrite.
7679 (rust_value_print_inner): New function, from rust_val_print.
7680 (rust_language_defn): Use rust_value_print_inner.
7681
26792ee0
TT
76822020-03-13 Tom Tromey <tom@tromey.com>
7683
7684 * ada-valprint.c (ada_value_print_inner): New function.
7685 * ada-lang.h (ada_value_print_inner): Declare.
7686 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
7687
24051bbe
TT
76882020-03-13 Tom Tromey <tom@tromey.com>
7689
7690 * f-valprint.c (f_value_print_innner): New function.
7691 * f-lang.h (f_value_print_innner): Declare.
7692 * f-lang.c (f_language_defn): Use f_value_print_innner.
7693
c0941be6
TT
76942020-03-13 Tom Tromey <tom@tromey.com>
7695
7696 * p-valprint.c (pascal_value_print_inner): New function.
7697 * p-lang.h (pascal_value_print_inner): Declare.
7698 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
7699
62c4663d
TT
77002020-03-13 Tom Tromey <tom@tromey.com>
7701
7702 * m2-valprint.c (m2_value_print_inner): New function.
7703 * m2-lang.h (m2_value_print_inner): Declare.
7704 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
7705
62182190
TT
77062020-03-13 Tom Tromey <tom@tromey.com>
7707
7708 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
7709 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
7710 * c-valprint.c (c_value_print_inner): New function.
7711 * c-lang.h (c_value_print_inner): Declare.
7712 * c-lang.c (c_language_defn, cplus_language_defn)
7713 (asm_language_defn, minimal_language_defn): Use
7714 c_value_print_inner.
7715
1e592a8a
TT
77162020-03-13 Tom Tromey <tom@tromey.com>
7717
7718 * p-valprint.c (pascal_object_print_value_fields): Now static.
7719 * p-lang.h (pascal_object_print_value_fields): Don't declare.
7720
7fe471e9
TT
77212020-03-13 Tom Tromey <tom@tromey.com>
7722
7723 * c-valprint.c (c_val_print_array): Simplify.
7724
d121c6ce
TT
77252020-03-13 Tom Tromey <tom@tromey.com>
7726
7727 * valprint.c (value_print_array_elements): New function.
7728 * valprint.h (value_print_array_elements): Declare.
7729
4dba70ee
TT
77302020-03-13 Tom Tromey <tom@tromey.com>
7731
7732 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
7733 * mips-tdep.c (mips_print_register): Use
7734 value_print_scalar_formatted.
7735
4f9ae810
TT
77362020-03-13 Tom Tromey <tom@tromey.com>
7737
7738 * valprint.h (value_print_scalar_formatted): Declare.
7739 * valprint.c (value_print_scalar_formatted): New function.
7740
156bfec9
TT
77412020-03-13 Tom Tromey <tom@tromey.com>
7742
7743 * valprint.h (generic_value_print): Declare.
7744 * valprint.c (generic_value_print): New function.
7745
2b4e573d
TT
77462020-03-13 Tom Tromey <tom@tromey.com>
7747
7748 * valprint.c (do_val_print): Call la_value_print_inner, if
7749 available.
7750 * rust-lang.c (rust_language_defn): Update.
7751 * p-lang.c (pascal_language_defn): Update.
7752 * opencl-lang.c (opencl_language_defn): Update.
7753 * objc-lang.c (objc_language_defn): Update.
7754 * m2-lang.c (m2_language_defn): Update.
7755 * language.h (struct language_defn) <la_value_print_inner>: New
7756 member.
7757 * language.c (unknown_language_defn, auto_language_defn): Update.
7758 * go-lang.c (go_language_defn): Update.
7759 * f-lang.c (f_language_defn): Update.
7760 * d-lang.c (d_language_defn): Update.
7761 * c-lang.c (c_language_defn, cplus_language_defn)
7762 (asm_language_defn, minimal_language_defn): Update.
7763 * ada-lang.c (ada_language_defn): Update.
7764
a1f6a07c
TT
77652020-03-13 Tom Tromey <tom@tromey.com>
7766
7767 * c-valprint.c (c_value_print): Use common_val_print.
7768
410cf315
TT
77692020-03-13 Tom Tromey <tom@tromey.com>
7770
7771 * cp-valprint.c (cp_print_static_field): Use common_val_print.
7772
72a45c93
TT
77732020-03-13 Tom Tromey <tom@tromey.com>
7774
7775 * f-valprint.c (f77_print_array_1, f_val_print): Use
7776 common_val_print.
7777
040f66bd
TT
77782020-03-13 Tom Tromey <tom@tromey.com>
7779
7780 * riscv-tdep.c (riscv_print_one_register_info): Use
7781 common_val_print.
7782
a6e05a6c
TT
77832020-03-13 Tom Tromey <tom@tromey.com>
7784
7785 * mi/mi-main.c (output_register): Use common_val_print.
7786
3444c526
TT
77872020-03-13 Tom Tromey <tom@tromey.com>
7788
7789 * infcmd.c (default_print_one_register_info): Use
7790 common_val_print.
7791
c2a44efe
TT
77922020-03-13 Tom Tromey <tom@tromey.com>
7793
7794 * valprint.h (common_val_print_checked): Declare.
7795 * valprint.c (common_val_print_checked): New function.
7796 * stack.c (print_frame_arg): Use common_val_print_checked.
7797
b0c26e99
TT
77982020-03-13 Tom Tromey <tom@tromey.com>
7799
7800 * valprint.c (do_val_print): New function, from val_print.
7801 (val_print): Use do_val_print.
7802 (common_val_print): Use do_val_print.
7803
ce3acbe9
TT
78042020-03-13 Tom Tromey <tom@tromey.com>
7805
7806 * valprint.c (value_print): Use scoped_value_mark.
7807
96c7f873
TV
78082020-03-13 Tom de Vries <tdevries@suse.de>
7809
7810 PR symtab/25646
7811 * psymtab.c (partial_symtab::partial_symtab): Don't set
7812 globals_offset and statics_offset. Push element onto
7813 current_global_psymbols and current_static_psymbols stacks.
7814 (concat): New function.
7815 (end_psymtab_common): Set globals_offset and statics_offset. Pop
7816 element from current_global_psymbols and current_static_psymbols
7817 stacks. Concat popped elements to global_psymbols and
7818 static_symbols.
7819 (add_psymbol_to_list): Use current_global_psymbols and
7820 current_static_psymbols stacks.
7821 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
7822 current_static_psymbols fields.
7823
6ba0a321
CB
78242020-03-12 Christian Biesinger <cbiesinger@google.com>
7825
7826 * corelow.c (sniff_core_bfd): Remove.
7827 (class core_target) <m_core_vec>: Remove.
7828 (core_target::core_target): Update.
7829 (core_file_fns): Remove.
7830 (deprecated_add_core_fns): Remove.
7831 (default_core_sniffer): Remove.
7832 (sniff_core_bfd): Remove.
7833 (default_check_format): Remove.
7834 (gdb_check_format): Remove.
7835 (core_target_open): Update.
7836 (core_target::get_core_register_section): Update.
7837 (get_core_registers_cb): Update.
7838 (core_target::fetch_registers): Update.
7839 * gdbcore.h (struct core_fns): Remove.
7840 (deprecated_add_core_fns): Remove.
7841 (default_core_sniffer): Remove.
7842 (default_check_format): Remove.
7843
227031b2
TT
78442020-03-12 Tom Tromey <tom@tromey.com>
7845
7846 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
7847 CORE_ADDR.
7848 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
7849
53807e9f
TT
78502020-03-12 Tom Tromey <tom@tromey.com>
7851
7852 * remote.c (remote_target::download_tracepoint)
7853 (remote_target::enable_tracepoint)
7854 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
7855 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
7856 sprintf_vma.
7857
64f25102
TT
78582020-03-12 Tom Tromey <tom@tromey.com>
7859
7860 * symfile-mem.c: Update CORE_ADDR size assert.
7861
272cd5a3
SM
78622020-03-12 Simon Marchi <simon.marchi@efficios.com>
7863
7864 * selftest.m4: Move to gdbsupport/.
7865 * acinclude.m4: Update path to selftest.m4.
7866
74cd3f9d
SM
78672020-03-12 Simon Marchi <simon.marchi@efficios.com>
7868
7869 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
7870 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
7871 gdbarch-selfselftests.c and selftest-arch.c.
7872 (SUBDIR_UNITTESTS_OBS): Rename to...
7873 (SELFTESTS_OBS): ... this.
7874 (COMMON_SFILES): Remove disasm-selftests.c and
7875 gdbarch-selftests.c.
7876 * configure.ac: Don't add selftest-arch.{c,o} to
7877 CONFIG_{SRCS,OBS}.
7878 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
7879 preprocessor conditions.
7880
db6878ac
SM
78812020-03-12 Simon Marchi <simon.marchi@efficios.com>
7882
7883 * configure.ac: Don't source bfd/development.sh.
7884 * selftest.m4: Modify comment.
7885 * configure: Re-generate.
7886
4d696a5c
SM
78872020-03-12 Simon Marchi <simon.marchi@efficios.com>
7888
7889 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
7890 not "true" or "false".
7891 * configure: Re-generate.
7892
8dd8e1c7
CB
78932020-03-12 Christian Biesinger <cbiesinger@google.com>
7894
7895 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
7896 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
7897 renamed to arm_nbsd_supply_gregset.
7898 (fetch_register): Update to call arm_nbsd_supply_gregset.
7899 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
7900 (arm_netbsd_nat_target::fetch_registers): Update.
7901 (fetch_elfcore_registers): Removed.
7902 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
7903 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
7904 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
7905 not require NetBSD system headers.
7906 (arm_nbsd_regset): New struct.
7907 (arm_nbsd_iterate_over_regset_sections): New function.
7908 (arm_netbsd_init_abi_common): Updated to call
7909 set_gdbarch_iterate_over_regset_sections.
7910 * arm-nbsd-tdep.h: New file.
7911
dd69bf7a
KB
79122020-03-11 Kevin Buettner <kevinb@redhat.com>
7913
7914 * symtab.c (find_pc_sect_line): Add check which prevents infinite
7915 recursion.
7916
a0761e34
SM
79172020-03-11 Simon Marchi <simon.marchi@efficios.com>
7918
7919 * configure: Re-generate.
7920
e7a82140
TT
79212020-03-11 Tom Tromey <tromey@adacore.com>
7922
7923 * ada-typeprint.c (print_choices): Fix comment.
7924
dcc050c8
AB
79252020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
7926
7927 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
7928 previous item in the list, when the list has no items.
7929
1c33af77
TV
79302020-03-11 Tom de Vries <tdevries@suse.de>
7931
7932 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
7933 PROP_LOCLIST handling code.
7934
8c95582d
AB
79352020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
7936
7937 * buildsym-legacy.c (record_line): Pass extra parameter to
7938 record_line.
7939 * buildsym.c (buildsym_compunit::record_line): Take an extra
7940 parameter, reduce duplication in the line table, and record the
7941 is_stmt flag in the line table.
7942 * buildsym.h (buildsym_compunit::record_line): Add extra
7943 parameter.
7944 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
7945 non-statement lines.
7946 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
7947 this to the symtab builder.
7948 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
7949 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
7950 through to dwarf_record_line_1.
7951 * infrun.c (process_event_stop_test): When stepping, don't stop at
7952 a non-statement instruction, and only refresh the step info when
7953 we land in the middle of a line's range. Also add an extra
7954 comment.
7955 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
7956 field.
7957 * record-btrace.c (btrace_find_line_range): Only record lines
7958 marked as is-statement.
7959 * stack.c (frame_show_address): Show the frame address if we are
7960 in a non-statement sal.
7961 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
7962 (maintenance_print_one_line_table): Print a header for the is_stmt
7963 column, and include is_stmt information in the output.
7964 * symtab.c (find_pc_sect_line): Find lines marked as statements in
7965 preference to non-statements.
7966 (find_pcs_for_symtab_line): Prefer is-statement entries.
7967 (find_line_common): Likewise.
7968 * symtab.h (struct linetable_entry): Add is_stmt field.
7969 (struct symtab_and_line): Likewise.
7970 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
7971 arranging the line table.
7972
e4003a34
TV
79732020-03-07 Tom de Vries <tdevries@suse.de>
7974
7975 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
7976 DIE.
7977
e8932576
TT
79782020-03-07 Tom Tromey <tom@tromey.com>
7979
7980 * valops.c (value_literal_complex): Remove obsolete comment.
7981 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
7982 comment.
7983
29734269
SM
79842020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
7985
7986 * infrun.h: Forward-declare thread_info.
7987 (set_step_info): Add thread_info parameter, add doc.
7988 * infrun.c (set_step_info): Add thread_info parameter, move doc
7989 to header.
7990 * infrun.c (process_event_stop_test): Pass thread to
7991 set_step_info call.
7992 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
7993 set_step_info.
7994 (prepare_one_step): Add thread_info parameter, pass it to
7995 set_step_frame and prepare_one_step (recursive) call.
7996 (step_1): Pass thread to prepare_one_step call.
7997 (step_command_fsm::should_stop): Pass thread to
7998 prepare_one_step.
7999 (until_next_fsm): Pass thread to set_step_frame call.
8000 (finish_command): Pass thread to set_step_info call.
8001
b7d64b29
HD
80022020-03-06 Hannes Domani <ssbssa@yahoo.de>
8003
8004 * windows-tdep.c (windows_solib_create_inferior_hook):
8005 Check if inferior is running.
8006
09f2921c
TV
80072020-03-06 Tom de Vries <tdevries@suse.de>
8008
8009 * NEWS: Fix "the the".
8010 * ctfread.c: Same.
8011
fd760e79
TV
80122020-03-06 Tom de Vries <tdevries@suse.de>
8013
8014 * psymtab.c (psymtab_to_symtab): Don't print "done.".
8015
20ea4a60
AB
80162020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8017
8018 * .dir-locals.el: Add a comment referencing the other copies of
8019 this file.
8020
0afbabf0
JB
80212020-03-05 John Baldwin <jhb@FreeBSD.org>
8022
8023 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
8024 psargs.
8025
842806cb
TBA
80262020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8027
8028 * .gitattributes: New file.
8029
be1e3d3e
TT
80302020-03-04 Tom Tromey <tom@tromey.com>
8031
8032 * symmisc.c (print_symbol_bcache_statistics)
8033 (print_objfile_statistics): Update.
8034 * symfile.c (allocate_symtab): Use intern.
8035 * psymtab.c (partial_symtab::partial_symtab): Use intern.
8036 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
8037 macro_cache>: Remove.
8038 <string_cache>: New member.
8039 (struct objfile) <intern>: New methods.
8040 * elfread.c (elf_symtab_read): Use intern.
8041 * dwarf2/read.c (fixup_go_packaging): Intern package name.
8042 (dwarf2_compute_name, dwarf2_physname)
8043 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
8044 names.
8045 (guess_partial_die_structure_name): Update.
8046 (partial_die_info::fixup): Intern name.
8047 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
8048 name.
8049 (dwarf2_name): Intern name. Update.
8050 * buildsym.c (buildsym_compunit::get_macro_table): Use
8051 string_cache.
8052
4e7625fd
TT
80532020-03-04 Tom Tromey <tom@tromey.com>
8054
8055 * jit.c (bfd_open_from_target_memory): Make "target" const.
8056 * corefile.c (gnutarget): Now const.
8057 * gdbcore.h (gnutarget): Now const.
8058
46f9f931
HD
80592020-03-04 Hannes Domani <ssbssa@yahoo.de>
8060
8061 * NEWS: Mention support for WOW64 processes.
8062 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
8063 (amd64_windows_segment_register_p): Remove static.
8064 (_initialize_amd64_windows_nat): Update.
8065 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
8066 * i386-windows-nat.c (context_offset): Update.
8067 (i386_mappings): Rename and remove static.
8068 (i386_windows_segment_register_p): Remove static.
8069 (_initialize_i386_windows_nat): Update.
8070 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
8071 (STATUS_WX86_SINGLE_STEP): New macro.
8072 (EnumProcessModulesEx): New macro.
8073 (Wow64SuspendThread): New macro.
8074 (Wow64GetThreadContext): New macro.
8075 (Wow64SetThreadContext): New macro.
8076 (Wow64GetThreadSelectorEntry): New macro.
8077 (windows_set_context_register_offsets): Add static.
8078 (windows_set_segment_register_p): Likewise.
8079 (windows_add_thread): Adapt for WOW64 processes.
8080 (windows_fetch_one_register): Likewise.
8081 (windows_nat_target::fetch_registers): Likewise.
8082 (windows_store_one_register): Likewise.
8083 (display_selector): Likewise.
8084 (display_selectors): Likewise.
8085 (handle_exception): Likewise.
8086 (windows_continue): Likewise.
8087 (windows_nat_target::resume): Likewise.
8088 (windows_add_all_dlls): Likewise.
8089 (do_initial_windows_stuff): Likewise.
8090 (windows_nat_target::attach): Likewise.
8091 (windows_get_exec_module_filename): Likewise.
8092 (windows_nat_target::create_inferior): Likewise.
8093 (windows_xfer_siginfo): Likewise.
8094 (_initialize_loadable): Initialize Wow64SuspendThread,
8095 Wow64GetThreadContext, Wow64SetThreadContext,
8096 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
8097 * windows-nat.h (windows_set_context_register_offsets):
8098 Remove declaration.
8099 (windows_set_segment_register_p): Likewise.
8100 (i386_windows_segment_register_p): Add declaration.
8101 (amd64_windows_segment_register_p): Likewise.
8102
440cf44e
LM
81032020-03-04 Luis Machado <luis.machado@linaro.org>
8104
8105 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
8106 in "info registers" for AArch64/ARM.
8107
8108 The change caused "info registers" to not print GPR's.
8109
8110 gdb/ChangeLog:
8111
8112 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
8113
8114 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
8115 when reg->group is empty and reggroup is not.
8116
1009d92f
TT
81172020-03-03 Tom Tromey <tromey@adacore.com>
8118
8119 * dwarf2/frame.c (struct dwarf2_frame_cache)
8120 <checked_tailcall_bottom, entry_cfa_sp_offset,
8121 entry_cfa_sp_offset_p>: Remove members.
8122 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
8123 (dwarf2_frame_prev_register): Don't call
8124 dwarf2_tailcall_sniffer_first.
8125 (dwarf2_append_unwinders): Don't append tailcall unwinder.
8126 * frame-unwind.c (add_unwinder): New fuction.
8127 (frame_unwind_init): Use it. Add tailcall unwinder.
8128
5e5d66b6
AB
81292020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
8130 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8131
8132 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
8133 value should be printed as true.
8134
584cf46d
HD
81352020-03-03 Hannes Domani <ssbssa@yahoo.de>
8136
8137 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
8138 (windows_init_abi): Set and use windows_so_ops.
8139
7b973adc
SDJ
81402020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
8141
8142 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
8143 when verifying if dealing with a convenience variable.
8144
bb7b70ab
LM
81452020-03-03 Luis Machado <luis.machado@linaro.org>
8146
8147 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
8148
9822cb57
SM
81492020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
8150
8151 * infrun.c (gdbarch_supports_displaced_stepping): New.
8152 (use_displaced_stepping): Break up conditions in smaller pieces.
8153 Use gdbarch_supports_displaced_stepping.
8154 (displaced_step_prepare_throw): Use
8155 gdbarch_supports_displaced_stepping.
8156
63e163f2
AB
81572020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8158
8159 * NEWS: Mention new behaviour of the history filename.
8160 * top.c (write_history_p): Add comment.
8161 (show_write_history_p): Add header comment, give a different
8162 message when history writing is on, but the history filename is
8163 empty.
8164 (history_filename): Add comment.
8165 (history_filename_empty): New function.
8166 (show_history_filename): Add header comment, give a different
8167 message when the filename is empty.
8168 (init_history): Compare history_filename against nullptr, and only
8169 read history if the filename is not empty.
8170 (set_history_filename): Add header comment, and only make
8171 non-empty filenames absolute.
8172 (init_main): Make the filename argument to 'set history filename'
8173 optional.
8174
81b86b97
CB
81752020-03-02 Christian Biesinger <cbiesinger@google.com>
8176
8177 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
8178 (arm_supply_vfpregset): ...this, and update to use VFP registers.
8179 (fetch_fp_register): Update.
8180 (fetch_fp_regs): Update.
8181 (store_fp_register): Update.
8182 (store_fp_regs): Update.
8183 (arm_netbsd_nat_target::read_description): New function.
8184 (fetch_elfcore_registers): Update.
8185
24ed6739
AB
81862020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8187
8188 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
8189 general_thread if the stop reply is missing a thread-id.
8190 (remote_target::process_stop_reply): Use the first non-exited
8191 thread if the target didn't pass a thread-id.
8192 * infrun.c (do_target_wait): Move call to
8193 switch_to_inferior_no_thread to ....
8194 (do_target_wait_1): ... here.
8195
a84bb2a0
JT
81962020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
8197
8198 * debuginfod-support.c: Include defs.h first.
8199
658dadf0
TV
82002020-02-28 Tom de Vries <tdevries@suse.de>
8201
8202 * symfile.c (set_initial_language): Use default language for lookup.
8203
4ebe4877
SM
82042020-02-28 Simon Marchi <simon.marchi@efficios.com>
8205
8206 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
8207 reader variable, pass `this` to read_cutu_die_from_dwo.
8208
e5da1139
AM
82092020-02-27 Aaron Merey <amerey@redhat.com>
8210
8211 * source.c (open_source_file): Check for nullptr when computing
8212 srcpath.
8213
317f7127
TT
82142020-02-27 Tom Tromey <tromey@adacore.com>
8215
8216 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
8217 member.
8218 (dwarf2_add_field): Don't update nfields.
8219 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
8220
3104d9ee
AB
82212020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8222
8223 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
8224 abs.
8225
b83470bf
TT
82262020-02-26 Tom Tromey <tom@tromey.com>
8227
8228 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
8229 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
8230 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
8231 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
8232 per_cu_data.
8233
edfe0a0c
TT
82342020-02-26 Tom Tromey <tom@tromey.com>
8235
8236 * dwarf2/index-write.c (psym_index_map): Change type.
8237 (add_address_entry_worker, write_one_signatured_type)
8238 (recursively_count_psymbols, recursively_write_psymbols)
8239 (class debug_names, psyms_seen_size, write_gdbindex)
8240 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
8241
0d79cdc4
AM
82422020-02-26 Aaron Merey <amerey@redhat.com>
8243
8244 * Makefile.in: Handle optional debuginfod support.
8245 * NEWS: Update.
8246 * README: Add --with-debuginfod summary.
8247 * config.in: Regenerate.
8248 * configure: Regenerate.
8249 * configure.ac: Handle optional debuginfod support.
8250 * debuginfod-support.c: debuginfod helper functions.
8251 * debuginfod-support.h: Ditto.
8252 * doc/gdb.texinfo: Add --with-debuginfod to configure options
8253 summary.
8254 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
8255 when a dwz file cannot be found.
8256 * elfread.c (elf_symfile_read): Query debuginfod servers when a
8257 debuginfo file cannot be found.
8258 * source.c (open_source_file): Query debuginfod servers when a
8259 source file cannot be found.
8260 * top.c (print_gdb_configuration): Include
8261 --{with,without}-debuginfod in the output.
8262
b65ce565
JG
82632020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
8264
8265 * thread.c (thr_try_catch_cmd): Print thread name.
8266
d4c9a4f8
SM
82672020-02-26 Simon Marchi <simon.marchi@efficios.com>
8268
8269 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
8270 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8271 dwarf2_fetch_die_type_sect_off): Move to...
8272 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
8273 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8274 dwarf2_fetch_die_type_sect_off): ... here.
8275 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
8276 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8277 dwarf2_fetch_die_type_sect_off): Move doc to header file.
8278
0dce4280
TV
82792020-02-26 Tom de Vries <tdevries@suse.de>
8280
8281 PR gdb/25603
8282 * symfile.c (set_initial_language): Exit-early if
8283 language_mode == language_mode_manual.
8284
450a1bfc
SM
82852020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8286
8287 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
8288 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
8289 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
8290
9e80cfa1
AB
82912020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
8292
8293 * gdbtypes.c (create_array_type_with_stride): Handle negative
8294 array strides.
8295 * valarith.c (value_subscripted_rvalue): Likewise.
8296
09624f1f
LM
82972020-02-25 Luis Machado <luis.machado@linaro.org>
8298
8299 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
8300
8cb5117c
SM
83012020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8302
8303 * loc.h (dwarf2_get_die_type): Move to...
8304 * read.h (dwarf2_get_die_type): ... here.
8305 * read.c (dwarf2_get_die_type): Move doc to header.
8306
c325c44e
JB
83072020-02-25 Joel Brobecker <brobecker@adacore.com>
8308
8309 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
8310 'gnulib/Makefile.in' to the list.
8311
4ac93832
TT
83122020-02-24 Tom Tromey <tom@tromey.com>
8313
8314 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
8315 Remove.
8316 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
8317 XOBNEWVEC.
8318
197400e8
TT
83192020-02-24 Tom Tromey <tom@tromey.com>
8320
8321 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
8322 New method.
8323 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
8324 (dw2_do_instantiate_symtab, dw2_get_file_names)
8325 (build_type_psymtab_dependencies, load_full_type_unit): Update.
8326
76935768
TT
83272020-02-24 Tom Tromey <tom@tromey.com>
8328
8329 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
8330 make_scoped_restore.
8331 (dwarf2_psymtab::read_symtab): Don't clear
8332 reading_partial_symbols.
8333
a88ef40d
TV
83342020-02-24 Tom de Vries <tdevries@suse.de>
8335
8336 PR gdb/25592
8337 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
8338
c9af6521
TV
83392020-02-24 Tom de Vries <tdevries@suse.de>
8340
8341 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
8342 commands layout next/prev/regs.
8343
5707a07a
TT
83442020-02-22 Tom Tromey <tom@tromey.com>
8345
8346 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
8347 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
8348
3b0fb49e
TT
83492020-02-22 Tom Tromey <tom@tromey.com>
8350
8351 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
8352
283be8bf
TT
83532020-02-22 Tom Tromey <tom@tromey.com>
8354
8355 * tui/tui-win.c (_initialize_tui_win): Add usage text.
8356 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
8357 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
8358 * tui/tui.c (_initialize_tui): Add usage text.
8359
ca793b96
TT
83602020-02-22 Tom Tromey <tom@tromey.com>
8361
8362 * tui/tui-win.c (tui_set_focus_command)
8363 (tui_set_win_height_command): Use error_no_arg.
8364 (_initialize_tui_win): Update help text.
8365 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
8366
432b5c40
TT
83672020-02-22 Tom Tromey <tom@tromey.com>
8368
8369 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
8370 * tui/tui-disasm.h (struct tui_disasm_window)
8371 <display_start_addr>: Declare.
8372 * tui/tui-source.h (struct tui_source_window)
8373 <display_start_addr>: Declare.
8374 * tui/tui-winsource.h (struct tui_source_window_base)
8375 <show_source_line, display_start_addr>: New methods.
8376 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
8377 Rename and move to protected section.
8378 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
8379 (tui_source_window_base::do_erase_source_content): Update.
8380 (tui_source_window_base::show_source_line): Now a method.
8381 (tui_source_window_base::show_source_content)
8382 (tui_source_window_base::tui_source_window_base)
8383 (tui_source_window_base::rerender)
8384 (tui_source_window_base::refill)
8385 (tui_source_window_base::do_scroll_horizontal)
8386 (tui_source_window_base::set_is_exec_point_at)
8387 (tui_source_window_base::update_breakpoint_info)
8388 (tui_source_window_base::update_exec_info): Update.
8389 * tui/tui-source.c (tui_source_window::set_contents)
8390 (tui_source_window::showing_source_p)
8391 (tui_source_window::do_scroll_vertical)
8392 (tui_source_window::location_matches_p)
8393 (tui_source_window::line_is_displayed): Update.
8394 (tui_source_window::display_start_addr): New method.
8395 * tui/tui-disasm.c (tui_disasm_window::set_contents)
8396 (tui_disasm_window::do_scroll_vertical)
8397 (tui_disasm_window::location_matches_p): Update.
8398 (tui_disasm_window::display_start_addr): New method.
8399
01b1af32
TT
84002020-02-22 Tom Tromey <tom@tromey.com>
8401
8402 * NEWS: Add entry for gdb.register_window_type.
8403 * tui/tui-layout.h (window_factory): New typedef.
8404 (tui_register_window): Declare.
8405 * tui/tui-layout.c (saved_tui_windows): New global.
8406 (tui_apply_current_layout): Use it.
8407 (tui_register_window): New function.
8408 * python/python.c (do_start_initialization): Call
8409 gdbpy_initialize_tui.
8410 (python_GdbMethods): Add "register_window_type" function.
8411 * python/python-internal.h (gdbpy_register_tui_window)
8412 (gdbpy_initialize_tui): Declare.
8413 * python/py-tui.c: New file.
8414 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
8415
fc96d20b
TT
84162020-02-22 Tom Tromey <tom@tromey.com>
8417
8418 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
8419
935c78c0
TT
84202020-02-22 Tom Tromey <tom@tromey.com>
8421
8422 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
8423 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
8424 * tui/tui-data.c (tui_set_win_with_focus): Remove.
8425 (tui_set_win_focus_to): Move from tui-win.c.
8426
0240c8f1
TT
84272020-02-22 Tom Tromey <tom@tromey.com>
8428
8429 * tui/tui-layout.c (make_standard_window, get_locator_window): New
8430 functions.
8431 (known_window_types): New global.
8432 (tui_get_window_by_name): Reimplement.
8433 (initialize_known_windows): New function.
8434 (validate_window_name): Rewrite.
8435 (_initialize_tui_layout): Call initialize_known_windows.
8436
fdb01f0c
TT
84372020-02-22 Tom Tromey <tom@tromey.com>
8438
8439 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
8440 Remove constants.
8441 * tui/tui-winsource.h (struct tui_source_window_base)
8442 <tui_source_window_base>: Remove parameter.
8443 * tui/tui-winsource.c
8444 (tui_source_window_base::tui_source_window_base): Remove
8445 parameter.
8446 (tui_source_window_base::refill): Update.
8447 * tui/tui-stack.h (struct tui_locator_window)
8448 <tui_locator_window>: Update.
8449 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
8450 Default the constructor.
8451 * tui/tui-regs.h (struct tui_data_item_window)
8452 <tui_data_item_window>: Default the constructor.
8453 (struct tui_data_window) <tui_data_window>: Likewise.
8454 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
8455 Default the constructor.
8456 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
8457 Default the constructor.
8458 <type>: Remove.
8459 (struct tui_win_info) <tui_win_info>: Default the constructor.
8460 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
8461 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
8462 Default the constructor.
8463
865a5aec
TT
84642020-02-22 Tom Tromey <tom@tromey.com>
8465
8466 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
8467 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
8468 * tui/tui-win.c (tui_resize_all): Don't call
8469 tui_delete_invisible_windows.
8470 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
8471 done.
8472 (tui_set_layout): Update.
8473 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
8474 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
8475 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
8476
e098d18c
TT
84772020-02-22 Tom Tromey <tom@tromey.com>
8478
8479 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
8480 correctly.
8481
eb9c8874
TT
84822020-02-22 Tom Tromey <tom@tromey.com>
8483
8484 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
8485
7eed1a8e
TT
84862020-02-22 Tom Tromey <tom@tromey.com>
8487
8488 * tui/tui-winsource.h (struct tui_source_window_iterator)
8489 <inner_iterator>: New etytypedef.
8490 <tui_source_window_iterator>: Take "end" parameter.
8491 <tui_source_window_iterator>: Take iterator.
8492 <operator*, advance>: Update.
8493 <m_iter>: Change type.
8494 <m_end>: New field.
8495 (struct tui_source_windows) <begin, end>: Update.
8496 * tui/tui-layout.c (tui_windows): New global.
8497 (tui_apply_current_layout): Clear tui_windows.
8498 (tui_layout_window::apply): Update tui_windows.
8499 * tui/tui-data.h (tui_windows): Declare.
8500 (all_tui_windows): Now inline function.
8501 (class tui_window_iterator, struct all_tui_windows): Remove.
8502
7c043ba6
TT
85032020-02-22 Tom Tromey <tom@tromey.com>
8504
8505 PR tui/17850:
8506 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
8507 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
8508 "height" argument.
8509 (class tui_layout_window) <get_sizes>: Likewise.
8510 (class tui_layout_split) <tui_layout_split>: Add "vertical"
8511 argument.
8512 <get_sizes>: Add "height" argument.
8513 <m_vertical>: New field.
8514 * tui/tui-layout.c (tui_layout_split::clone): Update.
8515 (tui_layout_split::get_sizes): Add "height" argument.
8516 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
8517 (tui_new_layout_command): Parse "-horizontal".
8518 (_initialize_tui_layout): Update help string.
8519 (tui_layout_split::specification): Add "-horizontal" when needed.
8520 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
8521 argument.
8522 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
8523 New methods.
8524
6bc56648
TT
85252020-02-22 Tom Tromey <tom@tromey.com>
8526
8527 * tui/tui-layout.h (enum tui_adjust_result): New.
8528 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
8529 (class tui_layout_window) <adjust_size>: Return
8530 tui_adjust_result. Rewrite.
8531 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
8532 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
8533
c22fef7e
TT
85342020-02-22 Tom Tromey <tom@tromey.com>
8535
8536 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
8537 parameter and return types.
8538 (class tui_layout_base) <specification>: Add "depth".
8539 (class tui_layout_window) <specification>: Add "depth".
8540 (class tui_layout_split) <specification>: Add "depth".
8541 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
8542 and return types.
8543 (tui_new_layout_command): Parse sub-layouts.
8544 (_initialize_tui_layout): Update help string.
8545 (tui_layout_window::specification): Add "depth".
8546 (add_layout_command): Update.
8547
ee325b61
TT
85482020-02-22 Tom Tromey <tom@tromey.com>
8549
8550 * NEWS: Add "tui new-layout" item.
8551 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
8552 Add new-layout command to help text.
8553 (validate_window_name): New function.
8554 (tui_new_layout_command): New function.
8555 (_initialize_tui_layout): Register "new-layout".
8556 (tui_layout_window::specification): New method.
8557 (tui_layout_window::specification): New method.
8558 * tui/tui-layout.h (class tui_layout_base) <specification>: New
8559 method.
8560 (class tui_layout_window) <specification>: New method.
8561 (class tui_layout_split) <specification>: New method.
8562
416eb92d
TT
85632020-02-22 Tom Tromey <tom@tromey.com>
8564
8565 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
8566 * tui/tui-win.c (window_name_completer): Update comment.
8567 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
8568 Declare method.
8569 (class tui_layout_window) <replace_window>: Likewise.
8570 (class tui_layout_split) <replace_window>: Likewise.
8571 (tui_set_layout): Don't declare.
8572 (tui_set_initial_layout): Declare function.
8573 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
8574 (asm_regs_layout): New globals.
8575 (tui_current_layout, show_layout): Remove.
8576 (tui_set_layout, tui_add_win_to_layout): Rewrite.
8577 (find_layout, tui_apply_layout): New function.
8578 (layout_completer): Remove.
8579 (tui_next_layout): Reimplement.
8580 (tui_next_layout_command): New function.
8581 (tui_set_initial_layout, tui_prev_layout_command): New functions.
8582 (tui_regs_layout): Reimplement.
8583 (tui_regs_layout_command): New function.
8584 (extract_display_start_addr): Rewrite.
8585 (next_layout, prev_layout): Remove.
8586 (tui_layout_window::replace_window): New method.
8587 (tui_layout_split::replace_window): New method.
8588 (destroy_layout): New function.
8589 (layout_list): New global.
8590 (add_layout_command): New function.
8591 (initialize_layouts): Update.
8592 (tui_layout_command): New function.
8593 (_initialize_tui_layout): Install "layout" commands.
8594 * tui/tui-data.h (enum tui_layout_type): Remove.
8595 (tui_current_layout): Don't declare.
8596
0dbc2fc7
TT
85972020-02-22 Tom Tromey <tom@tromey.com>
8598
8599 * tui/tui-regs.c (tui_reg_layout): Remove.
8600 (tui_reg_command): Use tui_regs_layout.
8601 * tui/tui-layout.h (tui_reg_command): Declare.
8602 * tui/tui-layout.c (tui_reg_command): New function.
8603
5afe342e
TT
86042020-02-22 Tom Tromey <tom@tromey.com>
8605
8606 * tui/tui.c (tui_rl_delete_other_windows): Call
8607 tui_remove_some_windows.
8608 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
8609 Declare method.
8610 (class tui_layout_window) <remove_windows>: New method.
8611 (class tui_layout_split) <remove_windows>: Declare.
8612 (tui_remove_some_windows): Declare.
8613 * tui/tui-layout.c (tui_remove_some_windows): New function.
8614 (tui_layout_split::remove_windows): New method.
8615
427326a8
TT
86162020-02-22 Tom Tromey <tom@tromey.com>
8617
8618 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
8619 * tui/tui-layout.h (tui_next_layout): Declare.
8620 * tui/tui-layout.c (tui_next_layout): New function.
8621
3fe12b6d
TT
86222020-02-22 Tom Tromey <tom@tromey.com>
8623
8624 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
8625 correct coordinates.
8626
59b8b5d2
TT
86272020-02-22 Tom Tromey <tom@tromey.com>
8628
8629 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
8630 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
8631 DATA_WIN case.
8632
2a3d458b
TT
86332020-02-22 Tom Tromey <tom@tromey.com>
8634
8635 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
8636 TUI_DISASM_WIN, not tui_win_list.
8637
3f0cbb04
TT
86382020-02-22 Tom Tromey <tom@tromey.com>
8639
8640 * valprint.c (generic_val_print_enum_1)
8641 (val_print_type_code_flags): Style member names.
8642 * rust-lang.c (val_print_struct, rust_print_enum)
8643 (rust_print_struct_def, rust_internal_print_type): Style member
8644 names.
8645 * p-valprint.c (pascal_object_print_value_fields): Style member
8646 names. Only call fprintf_symbol_filtered for static members.
8647 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
8648 * f-valprint.c (f_val_print): Style member names.
8649 * f-typeprint.c (f_type_print_base): Style member names.
8650 * cp-valprint.c (cp_print_value_fields): Style member names. Only
8651 call fprintf_symbol_filtered for static members.
8652 (cp_print_class_member): Style member names.
8653 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
8654 member names.
8655 * ada-valprint.c (ada_print_scalar): Style enum names.
8656 (ada_val_print_enum): Likewise.
8657 * ada-typeprint.c (print_enum_type): Style enum names.
8658
d4d947ae
TT
86592020-02-21 Tom Tromey <tom@tromey.com>
8660
8661 * psympriv.h (struct partial_symtab): Update comment.
8662
e94e944b
TT
86632020-02-21 Tom Tromey <tromey@adacore.com>
8664
8665 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
8666 type is CORE_ADDR.
8667
1eb73179
TV
86682020-02-21 Tom de Vries <tdevries@suse.de>
8669
8670 PR gdb/25534
8671 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
8672 if dependencies[i]->user != NULL.
8673
4f180d53
AT
86742020-02-21 Ali Tamur <tamur@google.com>
8675
8676 * dwarf2/read.c (dwarf2_name): Add null check.
8677
22b6cd70
TT
86782020-02-20 Tom Tromey <tom@tromey.com>
8679
8680 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
8681 ">=", in binary search.
8682 (dwarf2_find_containing_comp_unit): New overload.
8683 (run_test): New self-test.
8684 (_initialize_dwarf2_read): Register new test.
8685
bd0cf5a6
NC
86862020-02-20 Nelson Chu <nelson.chu@sifive.com>
8687
8688 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
8689 * riscv-tdep.h: Likewise.
8690 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
8691 rv32-only CSR.
8692 * features/riscv/64bit-csr.xml: Regenerated.
8693
3f702acd
SDJ
86942020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
8695 Tom Tromey <tom@tromey.com>
8696
8697 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
8698 of 'fputc_unfiltered'.
8699 (putchar_unfiltered): Call 'fputc_unfiltered'.
8700 (fputc_unfiltered): Call 'fputs_unfiltered'.
8701
d13c7322
AB
87022020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
8703
8704 * config.in: Regenerate.
8705 * configure: Regenerate.
8706 * configure.ac: Add --with-python-libdir option.
8707 * main.c: Use WITH_PYTHON_LIBDIR.
8708
869d8950
TT
87092020-02-19 Tom Tromey <tom@tromey.com>
8710
8711 * symtab.c (general_symbol_info::compute_and_set_names): Use
8712 obstack_strndup. Simplify call to symbol_set_demangled_name.
8713
298e9637
SM
87142020-02-19 Simon Marchi <simon.marchi@efficios.com>
8715
8716 * dwarf2/read.c (allocate_signatured_type_table,
8717 allocate_dwo_unit_table, allocate_type_unit_groups_table,
8718 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
8719 Remove objfile parameter, update all callers.
8720
08410482
DE
87212020-02-19 Doug Evans <dje@google.com>
8722
8723 PR rust/25535
8724 * rust-lang.c (rust_print_enum): Apply embedded_offset to
8725 rust_enum_variant calculation.
8726
dfdeeca1
TT
87272020-02-19 Tom Tromey <tromey@adacore.com>
8728
8729 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
8730
2ef5453b
TT
87312020-02-19 Tom Tromey <tromey@adacore.com>
8732
8733 * ada-lang.c (cache_symbol): Use obstack_strdup.
8734
9f1528a1
AB
87352020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
8736
8737 * configure: Regenerate.
8738
d3c22fa8
TT
87392020-02-19 Tom Tromey <tromey@adacore.com>
8740
8741 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
8742 NULL check.
8743
bf84f706
MR
87442020-02-19 Maciej W. Rozycki <macro@wdc.com>
8745
8746 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
8747
d1c9b20f
AB
87482020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
8749
8750 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
8751 if GDBSERVER is not defined.
8752 (riscv_tdesc_cache): Likewise, also store const target_desc.
8753 (STATIC_IN_GDB): Define.
8754 (riscv_create_target_description): Update declaration with
8755 STATIC_IN_GDB.
8756 (riscv_lookup_target_description): New function, only define if
8757 GDBSERVER is not defined.
8758 * arch/riscv.h (riscv_create_target_description): Declare only
8759 when GDBSERVER is defined.
8760 (riscv_lookup_target_description): New declaration when GDBSERVER
8761 is not defined.
8762 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
8763 (riscv_linux_read_features): ...this, and return
8764 riscv_gdbarch_features instead of target_desc.
8765 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
8766 (riscv_linux_read_description): Rename to...
8767 (riscv_linux_read_features): ...this.
8768 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
8769 Update to use riscv_gdbarch_features and
8770 riscv_lookup_target_description.
8771 * riscv-tdep.c (riscv_find_default_target_description): Use
8772 riscv_lookup_target_description instead of
8773 riscv_create_target_description.
8774
373d7ac0
SM
87752020-02-18 Simon Marchi <simon.marchi@efficios.com>
8776
8777 * valprint.c (generic_val_print_enum_1): When printing a flag
8778 enum with value 0 and there is no enumerator with value 0, print
8779 just "0" instead of "(unknown: 0x0)".
8780
b29a2df0
SM
87812020-02-18 Simon Marchi <simon.marchi@efficios.com>
8782
8783 * valprint.c (generic_val_print_enum_1): Print unknown part of
8784 flag enum in hex.
8785
6740f0cc
SM
87862020-02-18 Simon Marchi <simon.marchi@efficios.com>
8787
8788 * dwarf2/read.c (update_enumeration_type_from_children): Allow
8789 flag enums to contain duplicate enumerators.
8790 * valprint.c (generic_val_print_enum_1): Update comment.
8791
edd45eb0
SM
87922020-02-18 Simon Marchi <simon.marchi@efficios.com>
8793
8794 * dwarf2/read.c: Include "count-one-bits.h".
8795 (update_enumeration_type_from_children): If an enumerator has
8796 multiple bits set, don't treat the enumeration as a "flag enum".
8797 * valprint.c (generic_val_print_enum_1): Assert that enumerators
8798 of flag enums have 0 or 1 bit set.
8799
6d0cf446
BE
88002020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
8801
8802 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
8803 conversion.
8804 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8805 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
8806 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8807 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
8808 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8809
7001c1b7
SM
88102020-02-18 Simon Marchi <simon.marchi@efficios.com>
8811
8812 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
8813
fdb61c6c
SM
88142020-02-14 Simon Marchi <simon.marchi@efficios.com>
8815
8816 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
8817 displaced_step_closure_up.
8818 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
8819 (struct displaced_step_closure_up):
8820 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8821 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
8822 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
8823 Likewise.
8824 * gdbarch.sh (displaced_step_copy_insn): Likewise.
8825 * gdbarch.c, gdbarch.h: Re-generate.
8826 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
8827 displaced_step_closure_up.
8828 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8829 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
8830 * infrun.h (displaced_step_closure_up): New type alias.
8831 (struct displaced_step_inferior_state) <step_closure>: Change
8832 type to displaced_step_closure_up.
8833 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
8834 displaced_step_closure_up.
8835 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8836
a4a38eb4
TT
88372020-02-14 Tom Tromey <tom@tromey.com>
8838
8839 * minidebug.c (gnu_debug_key): New global.
8840 (find_separate_debug_file_in_section): Use it.
8841
e8217e61
SM
88422020-02-14 Simon Marchi <simon.marchi@efficios.com>
8843
8844 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
8845 std::unique_ptr.
8846 * gdbarch.c: Re-generate.
8847 * gdbarch.h: Re-generate.
8848 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
8849 change.
8850 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
8851 type to std::unique_ptr.
8852 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
8853 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8854 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
8855 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
8856 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
8857 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8858 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
8859 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
8860 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8861
d8d83535
SM
88622020-02-14 Simon Marchi <simon.marchi@efficios.com>
8863
8864 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
8865 std::unique_ptr.
8866 (displaced_step_clear): Rename to...
8867 (displaced_step_reset): ... this. Just call displaced->reset ().
8868 (displaced_step_clear_cleanup): Rename to...
8869 (displaced_step_reset_cleanup): ... this.
8870 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
8871 (displaced_step_fixup): Likewise.
8872 (resume_1): Likewise.
8873 (handle_inferior_event): Restore child's memory before calling
8874 displaced_step_fixup on the parent.
8875 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
8876 to std::unique_ptr.
8877 <step_closure>: Change type to std::unique_ptr.
8878
5f661e03
SM
88792020-02-14 Simon Marchi <simon.marchi@efficios.com>
8880
8881 * arm-tdep.c: Include count-one-bits.h.
8882 (cleanup_block_store_pc): Use count_one_bits.
8883 (cleanup_block_load_pc): Use count_one_bits.
8884 (arm_copy_block_xfer): Use count_one_bits.
8885 (thumb2_copy_block_xfer): Use count_one_bits.
8886 (thumb_copy_pop_pc_16bit): Use count_one_bits.
8887 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
8888 (thumb_get_next_pcs_raw): Use count_one_bits.
8889 (arm_get_next_pcs_raw): Use count_one_bits_l.
8890 * arch/arm.c (bitcount): Remove.
8891 * arch/arm.h (bitcount): Remove.
8892
8084e579
TT
88932020-02-14 Tom Tromey <tromey@adacore.com>
8894
8895 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
8896 Update.
8897 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
8898 * dwarf2/loc.c (call_site_find_chain_1): Return
8899 unique_xmalloc_ptr.
8900 (call_site_find_chain): Likewise.
8901
258bf0ee
RB
89022020-02-14 Richard Biener <rguenther@suse.de>
8903
8904 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
8905 on expression with division operators.
8906
f98a8458
AKS
89072020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8908
8909 * MAINTAINERS (Write After Approval): Adding myself.
8910
d1437c0e
TT
89112020-02-12 Tom Tromey <tom@tromey.com>
8912
8913 * event-loop.c (event_data, gdb_event, event_handler_func):
8914 Remove.
8915
3d4560f7
TT
89162020-02-12 Tom Tromey <tom@tromey.com>
8917
8918 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
8919 (dwarf2_frame_objfile_data): Add comment.
8920 (find_comp_unit, set_comp_unit): New functions.
8921 (dwarf2_frame_find_fde): Use find_comp_unit.
8922 (dwarf2_build_frame_info): Use set_comp_unit.
8923
21982304
TT
89242020-02-12 Tom Tromey <tom@tromey.com>
8925
8926 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
8927 (comp_unit): Don't initialize objfile.
8928 (execute_cfa_program): Add text_offset parameter.
8929 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
8930 (dwarf2_frame_cache): Update.
8931 (dwarf2_build_frame_info): Don't set "objfile" member.
8932
4debb237
TT
89332020-02-12 Tom Tromey <tom@tromey.com>
8934
8935 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
8936 (decode_frame_entry): Likewise.
8937 (dwarf2_build_frame_info): Update.
8938
0d404d44
TT
89392020-02-12 Tom Tromey <tom@tromey.com>
8940
8941 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
8942 (decode_frame_entry_1): Use the comp_unit obstack.
8943
a7a3ae5c
TT
89442020-02-12 Tom Tromey <tom@tromey.com>
8945
8946 * dwarf2/frame.c (struct comp_unit): Add initializers and
8947 constructor.
8948 (dwarf2_frame_objfile_data): Store a comp_unit.
8949 (dwarf2_frame_find_fde): Update.
8950 (dwarf2_build_frame_info): Use "new".
8951
a9d65418
TT
89522020-02-12 Tom Tromey <tom@tromey.com>
8953
8954 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
8955 (dwarf2_fde_table): Typedef for std::vector.
8956 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
8957 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
8958 (decode_frame_entry): Update.
8959 (dwarf2_build_frame_info): Use "new".
8960
7559c217
CB
89612020-02-12 Christian Biesinger <cbiesinger@google.com>
8962
8963 * arm-tdep.c (arm_gdbarch_init): Update.
8964 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
8965 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
8966 have_neon, is_m>: Change to bool.
8967
aeefc73c
CB
89682020-02-12 Christian Biesinger <cbiesinger@google.com>
8969
8970 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
8971
d27b8e5f
TT
89722020-02-12 Tom Tromey <tom@tromey.com>
8973
8974 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
8975
cd5900f3
HD
89762020-02-12 Hannes Domani <ssbssa@yahoo.de>
8977
8978 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
8979 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
8980
f056b22b
TT
89812020-02-11 Tom Tromey <tom@tromey.com>
8982
8983 * psymtab.h: Update comment.
8984
f92ff6b5
TT
89852020-02-11 Tom Tromey <tom@tromey.com>
8986
8987 * gdb_obstack.h (struct auto_obstack): Use
8988 DISABLE_COPY_AND_ASSIGN.
8989
3fd6912b
TT
89902020-02-11 Tom Tromey <tom@tromey.com>
8991
8992 * dwarf2/frame.h (struct objfile): Don't forward declare.
8993
69ed9b74
CB
89942020-02-11 Christian Biesinger <cbiesinger@google.com>
8995
8996 * cris-tdep.c (cris_supply_gregset): Change signature to match
8997 what struct regset expects.
8998 (cris_regset): New struct.
8999 (fetch_core_registers): Remove.
9000 (cris_iterate_over_regset_sections): New function.
9001 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
9002 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
9003
bda874f6
CB
90042020-02-11 Christian Biesinger <cbiesinger@google.com>
9005
9006 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
9007 registers.
9008
754e1564
CB
90092020-02-11 Christian Biesinger <cbiesinger@google.com>
9010
9011 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
9012
8ddd8e0e
SM
90132020-02-11 Simon Marchi <simon.marchi@efficios.com>
9014
9015 * configure: Re-generate.
9016
898e7f60
SM
90172020-02-11 Simon Marchi <simon.marchi@efficios.com>
9018
9019 * configure: Re-generate.
9020
58df732b
SM
90212020-02-11 Simon Marchi <simon.marchi@efficios.com>
9022
9023 * acinclude: Update warning.m4 path.
9024 * warning.m4: Move to gdbsupport.
9025
da5bd37e
TT
90262020-02-11 Tom Tromey <tromey@adacore.com>
9027
9028 * remote.c (remote_console_output): Update.
9029 * printcmd.c (printf_command): Update.
9030 * event-loop.c (gdb_wait_for_event): Update.
9031 * linux-nat.c (sigchld_handler): Update.
9032 * remote-sim.c (gdb_os_write_stdout): Update.
9033 (gdb_os_flush_stdout): Update.
9034 (gdb_os_flush_stderr): Update.
9035 (gdb_os_write_stderr): Update.
9036 * exceptions.c (print_exception): Update.
9037 * remote-fileio.c (remote_fileio_func_read): Update.
9038 (remote_fileio_func_write): Update.
9039 * tui/tui.c (tui_enable): Update.
9040 * tui/tui-interp.c (tui_interp::init): Update.
9041 * utils.c (init_page_info): Update.
9042 (putchar_unfiltered, fputc_unfiltered): Update.
9043 (gdb_flush): Update.
9044 (emit_style_escape): Update.
9045 (flush_wrap_buffer, fputs_maybe_filtered): Update.
9046 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
9047 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
9048 (stderr_file::write): Update.
9049 (stderr_file::puts): Update.
9050 * ui-file.h (ui_file_isatty, ui_file_write)
9051 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
9052 (ui_file_puts): Don't declare.
9053
85f0dd3c
TV
90542020-02-10 Tom de Vries <tdevries@suse.de>
9055
9056 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
9057 sentinel to char *.
9058
2e927613
TV
90592020-02-09 Tom de Vries <tdevries@suse.de>
9060
9061 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
9062 filename if it matches "<artificial>".
9063
6bafc845
HD
90642020-02-09 Hannes Domani <ssbssa@yahoo.de>
9065
9066 * windows-tdep.c (struct enum_value_name): New struct.
9067 (create_enum): New function.
9068 (windows_get_siginfo_type): Create and use enum types.
9069
7928d571
HD
90702020-02-09 Hannes Domani <ssbssa@yahoo.de>
9071
9072 * NEWS: Mention $_siginfo support for Windows.
9073 * windows-nat.c (handle_exception): Set siginfo_er.
9074 (windows_nat_target::mourn_inferior): Reset siginfo_er.
9075 (windows_xfer_siginfo): New function.
9076 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
9077 * windows-tdep.c (struct windows_gdbarch_data): New struct.
9078 (init_windows_gdbarch_data): New function.
9079 (get_windows_gdbarch_data): New function.
9080 (windows_get_siginfo_type): New function.
9081 (windows_init_abi): Register windows_get_siginfo_type.
9082 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
9083
6751ebae
TT
90842020-02-08 Tom Tromey <tom@tromey.com>
9085
9086 * dwarf2/read.c (class cutu_reader) <cutu_reader,
9087 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
9088 <keep>: Declare method.
9089 <m_keep>: Remove member.
9090 <~cutu_reader>: Remove.
9091 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9092 (cutu_reader::cutu_reader): Update.
9093 (cutu_reader::keep): Rename from ~cutu_reader.
9094 (process_psymtab_comp_unit, build_type_psymtabs_1)
9095 (process_skeletonless_type_unit, load_partial_comp_unit)
9096 (load_full_comp_unit, dwarf2_read_addr_index)
9097 (read_signatured_type): Update.
9098
135f5437
TT
90992020-02-08 Tom Tromey <tom@tromey.com>
9100
9101 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
9102 "want_partial_unit" parameter.
9103 (process_psymtab_comp_unit): Change want_partial_unit to bool.
9104 Inline check for DW_TAG_partial_unit.
9105 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
9106
9f66ff1c
TT
91072020-02-08 Tom Tromey <tom@tromey.com>
9108
9109 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
9110 read.c.
9111 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
9112 read.c.
9113
c8a7a66f
TT
91142020-02-08 Tom Tromey <tom@tromey.com>
9115
9116 * dwarf2/read.c (read_address): Move to comp-unit.c.
9117 (dwarf2_rnglists_process, dwarf2_ranges_process)
9118 (read_attribute_value, dwarf_decode_lines_1)
9119 (var_decode_location, decode_locdesc): Update.
9120 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
9121 read.c. Remove "cu" parameter.
9122 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
9123 method.
9124
8266302d
TT
91252020-02-08 Tom Tromey <tom@tromey.com>
9126
9127 * dwarf2/read.c (read_attribute_value, read_indirect_string)
9128 (read_indirect_line_string): Update.
9129 * dwarf2/comp-unit.c (read_offset): Remove.
9130 (read_comp_unit_head): Update.
9131 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
9132 method.
9133 (read_offset): Don't declare.
9134
4057dfde
TT
91352020-02-08 Tom Tromey <tom@tromey.com>
9136
9137 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
9138 * dwarf2/read.c (struct comp_unit_head): Move to
9139 dwarf2/comp-unit.h.
9140 (enum class rcuh_kind): Move to comp-unit.h.
9141 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
9142 (read_comp_unit_head, error_check_comp_unit_head)
9143 (read_and_check_comp_unit_head): Move to comp-unit.c.
9144 (read_offset, dwarf_unit_type_name): Likewise.
9145 (create_debug_type_hash_table, read_cutu_die_from_dwo)
9146 (cutu_reader::cutu_reader, read_call_site_scope)
9147 (find_partial_die, follow_die_offset): Update.
9148 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
9149
24aa364d
TT
91502020-02-08 Tom Tromey <tom@tromey.com>
9151
9152 * dwarf2/read.c (read_offset_1): Move to leb.c.
9153 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
9154 (dwarf_decode_macro_bytes): Update.
9155 * dwarf2/leb.c (read_offset): Rename; move from read.c.
9156 * dwarf2/leb.h (read_offset): Declare.
9157
2c7d5afc
TT
91582020-02-08 Tom Tromey <tom@tromey.com>
9159
9160 * dwarf2/read.c (dwarf2_section_size): Remove.
9161 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
9162 Update.
9163 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
9164
4075cb26
TT
91652020-02-08 Tom Tromey <tom@tromey.com>
9166
9167 * dwarf2/read.c (read_initial_length): Move to leb.c.
9168 * dwarf2/leb.h (read_initial_length): Declare.
9169 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
9170 handle_nonstd parameter.
9171 * dwarf2/frame.c (read_initial_length): Remove.
9172 (decode_frame_entry_1): Update.
9173
09ba997f
TT
91742020-02-08 Tom Tromey <tom@tromey.com>
9175
9176 * dwarf2/loc.c (dwarf2_find_location_expression)
9177 (dwarf_evaluate_loc_desc::get_tls_address)
9178 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
9179 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
9180 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
9181 (dwarf2_compile_property_to_c)
9182 (dwarf2_loc_desc_get_symbol_read_needs)
9183 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
9184 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
9185 (loclist_describe_location, loclist_tracepoint_var_ref)
9186 (loclist_generate_c_location): Update.
9187 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
9188 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
9189 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
9190 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
9191 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
9192 (dwarf2_per_cu_data::addr_size)
9193 (dwarf2_per_cu_data::ref_addr_size)
9194 (dwarf2_per_cu_data::text_offset)
9195 (dwarf2_per_cu_data::addr_type): Now methods.
9196 (per_cu_header_read_in): Make per_cu "const".
9197 (dwarf2_version): Remove.
9198 (dwarf2_per_cu_data::int_type): Now a method.
9199 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
9200 (set_die_type, read_array_type, read_subrange_index_type)
9201 (read_tag_string_type, read_subrange_type): Update.
9202 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
9203 offset_size, ref_addr_size, text_offset, addr_type, version,
9204 objfile, int_type, addr_sized_int_type>: Declare methods.
9205
96c738c0
TT
92062020-02-08 Tom Tromey <tom@tromey.com>
9207
9208 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
9209 Move earlier.
9210
8fdd972c
TT
92112020-02-08 Tom Tromey <tom@tromey.com>
9212
9213 * dwarf2/read.h (dwarf_line_debug): Declare.
9214 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
9215 * dwarf2/read.c: Move line_header code to new files.
9216 (dwarf_line_debug): No longer static.
9217 * dwarf2/line-header.c: New file.
9218 * dwarf2/line-header.h: New file.
9219
03075812
TT
92202020-02-08 Tom Tromey <tom@tromey.com>
9221
9222 * dwarf2/read.c (struct line_header) <file_full_name,
9223 file_file_name>: Return unique_xmalloc_ptr.
9224 (line_header::file_file_name): Update.
9225 (line_header::file_full_name): Update.
9226 (dw2_get_file_names_reader): Update.
9227 (macro_start_file): Update.
9228
bb822404
TT
92292020-02-08 Tom Tromey <tom@tromey.com>
9230
9231 * dwarf2/read.c (struct line_header) <file_full_name,
9232 file_file_name>: Declare methods.
9233 (dw2_get_file_names_reader): Update.
9234 (file_file_name): Now a method.
9235 (file_full_name): Likewise.
9236 (macro_start_file): Update.
9237
009b64fc
TT
92382020-02-08 Tom Tromey <tom@tromey.com>
9239
9240 * dwarf2/read.c (dwarf_always_disassemble)
9241 (show_dwarf_always_disassemble): Move to loc.c.
9242 (_initialize_dwarf2_read): Move "always-disassemble" registration
9243 to loc.c.
9244 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
9245 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
9246 static.
9247 (show_dwarf_always_disassemble): Move from read.c.
9248 (_initialize_dwarf2loc): Move always-disassemble from read.c.
9249
5895093f
TT
92502020-02-08 Tom Tromey <tom@tromey.com>
9251
9252 * dwarf2/read.c (~dwarf2_per_objfile): Update.
9253 (create_quick_file_names_table): Return htab_up.
9254 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
9255 Update.
9256 * dwarf2/read.h (struct dwarf2_per_objfile)
9257 <quick_file_names_table>: Now htab_up.
9258
b3b32279
TT
92592020-02-08 Tom Tromey <tom@tromey.com>
9260
9261 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
9262
1d33d811
TT
92632020-02-08 Tom Tromey <tom@tromey.com>
9264
9265 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
9266 Rewrite.
9267 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
9268 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
9269 (abbrev_table::abbrev_table): No longer inline.
9270 (ABBREV_HASH_SIZE): Remove.
9271 (abbrev_table::m_abbrevs): Now an htab_up.
9272
86de1d91
TT
92732020-02-08 Tom Tromey <tom@tromey.com>
9274
9275 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
9276 (cutu_reader): Update.
9277 (build_type_psymtabs_1): Update.
9278 * dwarf2/abbrev.c (abbrev_table::read): Rename.
9279 (abbrev_table::alloc_abbrev): Update.
9280 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
9281 (abbrev_table::read): New static method, renamed from
9282 abbrev_table_read_table.
9283 (abbrev_table::alloc_abbrev)
9284 (abbrev_table::add_abbrev): Now private.
9285 (abbrev_table::abbrev_table): Now private.
9286 (abbrev_table::m_abbrev_obstack): Now private. Rename.
9287
0335378b
TT
92882020-02-08 Tom Tromey <tom@tromey.com>
9289
9290 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
9291 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
9292 htab_up.
9293
48b490f2
TT
92942020-02-08 Tom Tromey <tom@tromey.com>
9295
9296 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
9297 htab_up.
9298 (lookup_dwo_unit_in_dwp): Update.
9299 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
9300 on obstack.
9301
bc68fb19
TT
93022020-02-08 Tom Tromey <tom@tromey.com>
9303
9304 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
9305 obstack.
9306
d15acc42
TT
93072020-02-08 Tom Tromey <tom@tromey.com>
9308
9309 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
9310 line_header_hash.
9311 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
9312 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
9313 Change type to htab_up.
9314
eaa5fa8b
TT
93152020-02-08 Tom Tromey <tom@tromey.com>
9316
9317 * dwarf2/read.c (allocate_type_unit_groups_table): Return
9318 htab_up. Don't allocate on obstack.
9319 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
9320 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
9321 Change type to htab_up.
9322
b0b6a987
TT
93232020-02-08 Tom Tromey <tom@tromey.com>
9324
9325 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
9326 Change type to htab_up.
9327 * dwarf2/read.c (create_signatured_type_table_from_index)
9328 (create_signatured_type_table_from_debug_names)
9329 (create_all_type_units, add_type_unit)
9330 (lookup_dwo_signatured_type, lookup_signatured_type)
9331 (process_skeletonless_type_unit): Update.
9332 (create_debug_type_hash_table, create_debug_types_hash_table):
9333 Change type of types_htab.
9334 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
9335 htab_up. Don't allocate on obstack.
9336 (create_cus_hash_table): Change type of cus_htab parameter.
9337 (struct dwo_file) <cus, tus>: Now htab_up.
9338 (lookup_dwo_signatured_type, lookup_dwo_cutu)
9339 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
9340 (queue_and_load_all_dwo_tus): Update.
9341 * dwarf2/index-write.c (write_gdbindex): Update.
9342 (write_debug_names): Update.
9343
39856def
TT
93442020-02-08 Tom Tromey <tom@tromey.com>
9345
9346 * dwarf2/read.h (struct dwarf2_queue_item): Move from
9347 dwarf2/read.c. Remove "next" member. Add constructor ntad
9348 destructor.
9349 (struct dwarf2_per_objfile) <queue>: New member.
9350 * dwarf2/read.c (struct dwarf2_queue_item): Move to
9351 dwarf2/read.h.
9352 (dwarf2_queue, dwarf2_queue_tail): Remove.
9353 (class dwarf2_queue_guard): Add parameter to constructor. Use
9354 DISABLE_COPY_AND_ASSIGN.
9355 <m_per_objfile>: New member.
9356 <~dwarf2_queue_guard>: Rewrite.
9357 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
9358 Update.
9359 (~dwarf2_queue_item): New.
9360
3e225074
TT
93612020-02-08 Tom Tromey <tom@tromey.com>
9362
9363 * dwarf2/read.c (struct die_info) <has_children>: New member.
9364 (dw2_get_file_names_reader): Remove has_children.
9365 (dw2_get_file_names): Update.
9366 (read_cutu_die_from_dwo): Remove has_children.
9367 (cutu_reader::init_tu_and_read_dwo_dies)
9368 (cutu_reader::cutu_reader): Update.
9369 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
9370 Remove has_children.
9371 (build_type_psymtabs_1, process_skeletonless_type_unit)
9372 (load_partial_comp_unit, load_full_comp_unit): Update.
9373 (create_dwo_cu_reader): Remove has_children.
9374 (create_cus_hash_table, read_die_and_children): Update.
9375 (read_full_die_1,read_full_die): Remove has_children.
9376 (read_signatured_type): Update.
9377 (class cutu_reader) <has_children>: Remove.
9378
82ca8957
TT
93792020-02-08 Tom Tromey <tom@tromey.com>
9380
9381 * dwarf2/expr.c: Rename from dwarf2expr.c.
9382 * dwarf2/expr.h: Rename from dwarf2expr.h.
9383 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
9384 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
9385 * dwarf2/frame.c: Rename from dwarf2-frame.c.
9386 * dwarf2/frame.h: Rename from dwarf2-frame.h.
9387 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
9388 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
9389 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
9390 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
9391 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
9392 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
9393 * dwarf2/loc.c: Rename from dwarf2loc.c.
9394 * dwarf2/loc.h: Rename from dwarf2loc.h.
9395 * dwarf2/read.c: Rename from dwarf2read.c.
9396 * dwarf2/read.h: Rename from dwarf2read.h.
9397 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
9398 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
9399 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
9400 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
9401 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
9402 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
9403 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
9404 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
9405 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
9406 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
9407 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
9408 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
9409 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
9410 Update.
9411 * Makefile.in (COMMON_SFILES): Update.
9412 (HFILES_NO_SRCDIR): Update.
9413
9e35d499
TT
94142020-02-08 Tom Tromey <tom@tromey.com>
9415
9416 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
9417 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
9418
1eba2311
TT
94192020-02-08 Tom Tromey <tom@tromey.com>
9420
9421 * dwarf2read.h (struct die_info): Don't declare.
9422
e41c2da2
TT
94232020-02-08 Tom Tromey <tom@tromey.com>
9424
9425 * dwarf2read.h (die_info_ptr): Remove typedef.
9426
4fc6c0d5
TT
94272020-02-08 Tom Tromey <tom@tromey.com>
9428
9429 * dwarf2read.c (read_call_site_scope)
9430 (handle_data_member_location, dwarf2_add_member_fn)
9431 (mark_common_block_symbol_computed, read_common_block)
9432 (attr_to_dynamic_prop, partial_die_info::read)
9433 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
9434 (dwarf2_symbol_mark_computed, set_die_type): Update.
9435 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
9436 method.
9437 (attr_form_is_block): Don't declare.
9438 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
9439
cd6c91b4
TT
94402020-02-08 Tom Tromey <tom@tromey.com>
9441
9442 * dwarf2read.c (dwarf2_find_base_address, )
9443 (read_call_site_scope, rust_containing_type)
9444 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
9445 (handle_data_member_location, dwarf2_add_member_fn)
9446 (get_alignment, read_structure_type, process_structure_scope)
9447 (mark_common_block_symbol_computed, read_common_block)
9448 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
9449 (partial_die_info::read, read_attribute_value, new_symbol)
9450 (lookup_die_type, dwarf2_get_ref_die_offset)
9451 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
9452 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
9453 (dwarf2_symbol_mark_computed): Update.
9454 * dwarf2/attribute.h (struct attribute) <value_as_address,
9455 form_is_section_offset, form_is_constant, form_is_ref>: Declare
9456 methods.
9457 (value_as_address, attr_form_is_section_offset)
9458 (attr_form_is_constant, attr_form_is_ref): Don't declare.
9459 * dwarf2/attribute.c (attribute::value_as_address)
9460 (attribute::form_is_section_offset, attribute::form_is_constant)
9461 (attribute::form_is_ref): Now methods.
9462
162dce55
TT
94632020-02-08 Tom Tromey <tom@tromey.com>
9464
9465 * dwarf2read.c (struct attribute, DW_STRING)
9466 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
9467 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
9468 (attr_form_is_block, attr_form_is_section_offset)
9469 (attr_form_is_constant, attr_form_is_ref): Move.
9470 * dwarf2/attribute.h: New file.
9471 * dwarf2/attribute.c: New file, from dwarf2read.c.
9472 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
9473
3054dd54
TT
94742020-02-08 Tom Tromey <tom@tromey.com>
9475
9476 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
9477 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
9478 Move.
9479 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
9480 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
9481 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
9482 abbrev.c.
9483 * dwarf2/abbrev.h: New file.
9484 * dwarf2/abbrev.c: New file, from dwarf2read.c.
9485 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
9486
96b79293
TT
94872020-02-08 Tom Tromey <tom@tromey.com>
9488
9489 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
9490 (dwarf2_section_size, dwarf2_get_section_info)
9491 (create_signatured_type_table_from_debug_names)
9492 (create_addrmap_from_aranges, read_debug_names_from_section)
9493 (get_gdb_index_contents_from_section, read_comp_unit_head)
9494 (error_check_comp_unit_head, read_abbrev_offset)
9495 (create_debug_type_hash_table, init_cu_die_reader)
9496 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
9497 (read_comp_units_from_section, create_cus_hash_table)
9498 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
9499 (create_dwp_v2_section, dwarf2_rnglists_process)
9500 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
9501 (abbrev_table_read_table, read_indirect_string_at_offset_from)
9502 (read_indirect_string_from_dwz, read_addr_index_1)
9503 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
9504 (dwarf_decode_macro_bytes, dwarf_decode_macros)
9505 (fill_in_loclist_baton): Update.
9506 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
9507 get_containing_section, get_bfd_owner, get_bfd_section,
9508 get_file_name, get_id, get_flags, empty, read>: Declare methods.
9509 (dwarf2_read_section, get_section_name, get_section_file_name)
9510 (get_containing_section, get_section_bfd_owner)
9511 (get_section_bfd_section, get_section_name, get_section_file_name)
9512 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
9513 declare.
9514 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
9515 (dwarf2_section_info::get_bfd_owner)
9516 (dwarf2_section_info::get_bfd_section)
9517 (dwarf2_section_info::get_name)
9518 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
9519 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
9520 (dwarf2_section_info::read): Now methods.
9521 * dwarf-index-write.c (class debug_names): Update.
9522
2c86cff9
TT
95232020-02-08 Tom Tromey <tom@tromey.com>
9524
9525 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
9526 Move to dwarf2/section.h.
9527 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
9528 (get_section_bfd_section, get_section_name)
9529 (get_section_file_name, get_section_id, get_section_flags)
9530 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
9531 dwarf2/section.c.
9532 * dwarf2/section.h: New file.
9533 * dwarf2/section.c: New file, from dwarf2read.c.
9534 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
9535
f4382c45
TT
95362020-02-08 Tom Tromey <tom@tromey.com>
9537
9538 * dwarf2read.h (read_unsigned_leb128): Don't declare.
9539 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
9540 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
9541 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
9542 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
9543 * dwarf2/leb.h: New file, from dwarf2read.c.
9544 * dwarf2/leb.c: New file, from dwarf2read.c.
9545 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
9546 Remove.
9547 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
9548 (COMMON_SFILES): Add dwarf2/leb.c.
9549
01840b7a
JB
95502020-02-08 Joel Brobecker <brobecker@adacore.com>
9551
9552 GDB 9.1 released.
9553
dfcb27e4
IB
95542020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9555
9556 PR gdb/25190:
aac66a4c
SM
9557 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
9558 * gdb/remote.c (remote_console_output): Update.
9559 * gdb/ui-file.c (fputs_unfiltered): Rename to...
9560 (ui_file_puts): ...this.
9561 * gdb/ui-file.h (ui_file_puts): Add declaration.
9562 * gdb/utils.c (emit_style_escape): Update.
9563 (flush_wrap_buffer): Update.
9564 (fputs_maybe_filtered): Update.
9565 (fputs_unfiltered): Add function.
dfcb27e4 9566
faa17681
IB
95672020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9568
aac66a4c
SM
9569 * gdb/event-loop.c (gdb_wait_for_event): Update.
9570 * gdb/printcmd.c (printf_command): Update.
9571 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
9572 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
9573 (gdb_os_flush_stderr): Update.
9574 * gdb/remote.c (remote_console_output): Update.
9575 * gdb/ui-file.c (gdb_flush): Rename to...
9576 (ui_file_flush): ...this.
9577 (stderr_file::write): Update.
9578 (stderr_file::puts): Update.
9579 * gdb/ui-file.h (gdb_flush): Rename to...
9580 (ui_file_flush): ...this.
9581 * gdb/utils.c (gdb_flush): Add function.
9582 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 9583
5abbbe1d
TT
95842020-02-07 Tom Tromey <tromey@adacore.com>
9585
9586 PR breakpoints/24915:
9587 * source.c (find_and_open_source): Do not check basenames_may_differ.
9588
919adfe8
TT
95892020-02-07 Tom Tromey <tom@tromey.com>
9590
9591 * README: Update gdbserver documentation.
9592 * gdbserver: Move to top level.
9593 * configure.tgt (build_gdbserver): Remove.
9594 * configure.ac: Remove --enable-gdbserver.
9595 * configure: Rebuild.
9596 * Makefile.in (distclean): Don't mention gdbserver.
9597
1d5d29e7
SV
95982020-02-06 Shahab Vahedi <shahab@synopsys.com>
9599
9600 * source-cache.c (source_cache::ensure): Surround
9601 get_plain_source_lines with a try/catch.
9602 (source_cache::get_line_charpos): Get rid of try/catch
9603 and only check for the return value of "ensure".
9604 * tui/tui-source.c (tui_source_window::set_contents):
9605 Simplify "nlines" calculation.
9606
6eb1129c
SV
96072020-02-06 Shahab Vahedi <shahab@synopsys.com>
9608
9609 * MAINTAINERS (Write After Approval): Add myself.
9610
c6a42d11
CB
96112020-02-05 Christian Biesinger <cbiesinger@google.com>
9612
9613 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
9614 function call.
9615
c8ecdda6
CB
96162020-02-05 Christian Biesinger <cbiesinger@google.com>
9617
9618 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
9619
f6480e70
MR
96202020-02-05 Maciej W. Rozycki <macro@wdc.com>
9621
9622 * nat/riscv-linux-tdesc.h: New file.
9623 * nat/riscv-linux-tdesc.c: New file, taking code from...
9624 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9625 ... here.
9626 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
9627 NATDEPFILES.
9628
dcc9fbc6
AB
96292020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
9630
9631 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
9632 we don't set the fake simulator ptid to the null_ptid.
9633
719546c4
SM
96342020-02-03 Simon Marchi <simon.marchi@efficios.com>
9635
9636 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
9637 * gdbthread.h (class thread_info) <resumed>: Likewise.
9638 * infrun.c (resume_1): Likewise.
9639 (proceed): Likewise.
9640 (infrun_thread_stop_requested): Likewise.
9641 (stop_all_threads): Likewise.
9642 (handle_inferior_event): Likewise.
9643 (restart_threads): Likewise.
9644 (finish_step_over): Likewise.
9645 (keep_going_stepped_thread): Likewise.
9646 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
9647 (linux_handle_extended_wait): Likewise.
9648 * record-btrace.c (get_thread_current_frame_id): Likewise.
9649 * record-full.c (record_full_wait_1): Likewise.
9650 * remote.c (remote_target::process_initial_stop_replies): Likewise.
9651 * target.c (target_resume): Likewise.
9652 * thread.c (set_running_thread): Likewise.
9653
e409c542
AKS
96542020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9655
9656 * f-valprint.c (f77_print_array_1): Changed datatype of index
9657 variable to LONGEST from int to enable it to contain bound
9658 values correctly.
9659
ee98c0da
MR
96602020-02-03 Maciej W. Rozycki <macro@wdc.com>
9661
9662 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
9663 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
9664 offsets according to FLEN determined.
9665 (riscv_linux_nat_target::read_description): Determine FLEN
9666 dynamically.
9667 (riscv_linux_nat_target::fetch_registers): Size regset buffer
9668 according to FLEN determined.
9669 (riscv_linux_nat_target::store_registers): Likewise.
9670
aa66aac4
SV
96712020-02-01 Shahab Vahedi <shahab@synopsys.com>
9672
9673 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
9674 when reg->group is empty and reggroup is not.
9675
fd9faca8
TT
96762020-01-31 Tom Tromey <tromey@adacore.com>
9677
9678 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
9679 Call beneath target's mourn_inferior after unpushing.
9680
42330a68
AB
96812020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
9682
9683 PR tui/9765
9684 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
9685 have enough lines to fill the screen, still return the lowest
9686 address we found.
9687
7a27a45b
AB
96882020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
9689
9690 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
9691 '-', '<', and '>' commands.
9692
c47f70e2
PA
96932020-01-29 Pedro Alves <palves@redhat.com>
9694 Sergio Durigan Junior <sergiodj@redhat.com>
9695
9696 * infcmd.c (construct_inferior_arguments): Assert that
9697 'argc' is greater than 0.
9698
5133a315
LM
96992020-01-29 Luis Machado <luis.machado@linaro.org>
9700
9701 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
9702 (BRK_INSN_MASK): Define to 0xd4200000.
9703 (aarch64_program_breakpoint_here_p): New function.
9704 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
9705 * arch-utils.c (default_program_breakpoint_here_p): Moved from
9706 breakpoint.c.
9707 * arch-utils.h (default_program_breakpoint_here_p): Moved from
9708 breakpoint.h
9709 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
9710 call gdbarch_program_breakpoint_here_p.
9711 (program_breakpoint_here): Moved to arch-utils.c, renamed to
9712 default_program_breakpoint_here_p, changed return type to bool and
9713 simplified.
9714 * breakpoint.h (program_breakpoint_here): Moved prototype to
9715 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
9716 return type to bool.
9717 * gdbarch.c: Regenerate.
9718 * gdbarch.h: Regenerate.
9719 * gdbarch.sh (program_breakpoint_here_p): New method.
9720 * infrun.c (handle_signal_stop): Call
9721 gdbarch_program_breakpoint_here_p.
9722
168f8c6b
TT
97232020-01-26 Tom Tromey <tom@tromey.com>
9724
9725 * ctfread.c (struct ctf_fp_info): Reindent.
9726 (_initialize_ctfread): Remove.
9727
128a391f
TT
97282020-01-26 Tom Tromey <tom@tromey.com>
9729
9730 * psymtab.c (partial_map_expand_apply)
9731 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
9732 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
9733 (psym_print_stats, psym_expand_symtabs_for_function)
9734 (psym_map_symbol_filenames, psym_map_matching_symbols)
9735 (psym_expand_symtabs_matching)
9736 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
9737 (maintenance_check_psymtabs): Use new methods.
9738 * psympriv.h (struct partial_symtab) <readin_p,
9739 get_compunit_symtab>: New methods.
9740 <readin, compunit_symtab>: Remove members.
9741 (struct standard_psymtab): New.
9742 (struct legacy_psymtab): Derive from standard_psymtab.
9743 * dwarf2read.h (struct dwarf2_psymtab): Derive from
9744 standard_psymtab.
9745 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
9746
0494dbec
TT
97472020-01-26 Tom Tromey <tom@tromey.com>
9748
9749 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
9750 read_dependencies. Add assert.
9751 * psymtab.c (partial_symtab::read_dependencies): New method.
9752 * psympriv.h (struct partial_symtab) <read_dependencies>: New
9753 method.
9754 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
9755 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
9756 read_dependencies.
9757 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
9758 Add assert.
9759
8566b89b
TT
97602020-01-26 Tom Tromey <tom@tromey.com>
9761
9762 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
9763 Call expand_psymtab.
9764 (xcoff_read_symtab): Call expand_psymtab.
9765 (xcoff_start_psymtab, xcoff_end_psymtab): Set
9766 legacy_expand_psymtab.
9767 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
9768 method.
9769 (struct legacy_psymtab) <expand_psymtab>: Implement.
9770 <legacy_expand_psymtab>: New member.
9771 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
9772 (parse_partial_symbols): Set legacy_expand_psymtab.
9773 (psymtab_to_symtab_1): Change argument order. Call
9774 expand_psymtab.
9775 (new_psymtab): Set legacy_expand_psymtab.
9776 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
9777 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
9778 expand_psymtab.
9779 (dwarf2_psymtab::expand_psymtab): Rename from
9780 psymtab_to_symtab_1. Call expand_psymtab.
9781 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
9782 (dbx_end_psymtab): Likewise.
9783 (dbx_psymtab_to_symtab_1): Change argument order. Call
9784 expand_psymtab.
9785 (dbx_read_symtab): Call expand_psymtab.
9786 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
9787 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
9788 (ctf_psymtab::read_symtab): Call expand_psymtab.
9789
077cbab2
TT
97902020-01-26 Tom Tromey <tom@tromey.com>
9791
9792 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
9793 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
9794 messages.
9795 * mdebugread.c (mdebug_read_symtab): Remove prints.
9796 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
9797 assert.
9798 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
9799
891813be
TT
98002020-01-26 Tom Tromey <tom@tromey.com>
9801
9802 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
9803 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
9804 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
9805 legacy_symtab.
9806 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
9807 * psymtab.c (psymtab_to_symtab): Call method.
9808 (dump_psymtab): Update.
9809 * psympriv.h (struct partial_symtab): Add virtual destructor.
9810 <read_symtab>: New method.
9811 (struct legacy_symtab): New.
9812 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
9813 (struct pst_map) <pst>: Now a legacy_psymtab.
9814 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
9815 (new_psymtab): Use legacy_psymtab.
9816 * dwarf2read.h (struct dwarf2_psymtab): New.
9817 (struct dwarf2_per_cu_data) <psymtab>: Use it.
9818 * dwarf2read.c (dwarf2_create_include_psymtab)
9819 (dwarf2_build_include_psymtabs, create_type_unit_group)
9820 (create_partial_symtab, process_psymtab_comp_unit_reader)
9821 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
9822 (set_partial_user): Use dwarf2_psymtab.
9823 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
9824 (psymtab_to_symtab_1, process_full_comp_unit)
9825 (process_full_type_unit, dwarf2_ranges_read)
9826 (dwarf2_get_pc_bounds, psymtab_include_file_name)
9827 (dwarf_decode_lines): Use dwarf2_psymtab.
9828 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
9829 (add_address_entry_worker, write_one_signatured_type)
9830 (recursively_count_psymbols, recursively_write_psymbols)
9831 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
9832 (write_debug_names): Likewise.
9833 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
9834 <pst>: Now a legacy_psymtab.
9835 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
9836 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
9837 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
9838 * ctfread.c (struct ctf_psymtab): New.
9839 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
9840 ctf_psymtab.
9841 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
9842 (create_partial_symtab): Return a ctf_psymtab.
9843 (scan_partial_symbols): Update.
9844
c3693a1d
TT
98452020-01-26 Tom Tromey <tom@tromey.com>
9846
9847 * xcoffread.c (xcoff_start_psymtab): Use new.
9848 * psymtab.c (partial_symtab::partial_symtab): New constructor,
9849 renamed from start_psymtab_common.
9850 * psympriv.h (struct partial_symtab): Add new constructor.
9851 (start_psymtab_common): Don't declare.
9852 * mdebugread.c (parse_partial_symbols): Use new.
9853 * dwarf2read.c (create_partial_symtab): Use new.
9854 * dbxread.c (start_psymtab): Use new.
9855 * ctfread.c (create_partial_symtab): Use new.
9856
32caafd0
TT
98572020-01-26 Tom Tromey <tom@tromey.com>
9858
9859 * xcoffread.c (xcoff_end_psymtab): Use new.
9860 * psymtab.c (start_psymtab_common): Use new.
9861 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
9862 Update.
9863 * psympriv.h (struct partial_symtab): Add parameters to
9864 constructor. Don't inline.
9865 (allocate_psymtab): Don't declare.
9866 * mdebugread.c (new_psymtab): Use new.
9867 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
9868 * dbxread.c (dbx_end_psymtab): Use new.
9869
abaa2f23
TT
98702020-01-26 Tom Tromey <tom@tromey.com>
9871
9872 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
9873 allocate_psymtab. Update documentation.
9874 * psymtab.c (psymtab_storage::install_psymtab): Rename from
9875 allocate_psymtab. Do not use new.
9876 (allocate_psymtab): Use new. Update.
9877
6d94535f
TT
98782020-01-26 Tom Tromey <tom@tromey.com>
9879
9880 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
9881 * psymtab.c (psym_print_stats): Update.
9882 * psympriv.h (struct partial_symtab) <readin,
9883 psymtabs_addrmap_supported, anonymous>: Now bool.
9884 * mdebugread.c (psymtab_to_symtab_1): Update.
9885 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
9886 (build_type_psymtabs_reader, psymtab_to_symtab_1)
9887 (process_full_comp_unit, process_full_type_unit): Update.
9888 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
9889 * ctfread.c (psymtab_to_symtab): Update.
9890
6f17252b
TT
98912020-01-26 Tom Tromey <tom@tromey.com>
9892
9893 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
9894 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
9895 * psymtab.c (psymtab_storage): Delete psymtabs.
9896 (psymtab_storage::allocate_psymtab): Use new.
9897 (psymtab_storage::discard_psymtab): Use delete.
9898 * psympriv.h (struct partial_symtab): Add constructor and
9899 initializers.
9900
f6f1cebc
TT
99012020-01-26 Tom Tromey <tom@tromey.com>
9902
9903 * machoread.c: Do not include psympriv.h.
9904
e47e48f6
PW
99052020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9906
9907 * NEWS: Mention the new option and the set/show commands.
9908
a2fedca9
PW
99092020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9910
9911 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
9912 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
9913 (validate_exec_file): New variables, enums, functions.
9914 (exec_file_locate_attach, print_section_info): Style the filenames.
9915 (_initialize_exec): Install show_exec_file_mismatch_command and
9916 set_exec_file_mismatch_command.
9917 * gdbcore.h (validate_exec_file): Declare.
9918 * infcmd.c (attach_command): Call validate_exec_file.
9919 * remote.c ( remote_target::remote_add_inferior): Likewise.
9920
7ffa82e1
AB
99212020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9922
9923 * frame.c (find_frame_sal): Move call to get_next_frame into more
9924 inner scope.
9925 * inline-frame.c (inilne_state) <inline_state>: Update argument
9926 types.
9927 (inilne_state) <skipped_symbol>: Rename to...
9928 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
9929 (skip_inline_frames): Build vector of skipped symbols and use this
9930 to reate the inline_state.
9931 (inline_skipped_symbol): Add a comment and some assertions, fetch
9932 skipped symbol from the list.
9933
3d92a3e3
AB
99342020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9935
9936 * buildsym.c (lte_is_less_than): Delete.
9937 (buildsym_compunit::end_symtab_with_blockvector): Create local
9938 lambda function to sort line table entries, and use
9939 std::stable_sort instead of std::sort.
9940 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
9941 markers when looking for a previous line.
9942
94a72be7
AB
99432020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9944
9945 * dwarf2read.c (lnp_state_machine::record_line): Include
9946 end_sequence parameter in debug print out. Record the line if we
9947 are at an end_sequence marker even if it's not the start of a
9948 statement.
9949 * symmisc.c (maintenance_print_one_line_table): Print end of
9950 sequence markers with 'END' not '0'.
9951
53af73bf
PA
99522020-01-24 Pedro Alves <palves@redhat.com>
9953
9954 PR gdb/25410
9955 * thread.c (scoped_restore_current_thread::restore): Use
9956 switch_to_inferior_no_thread.
9957 * exec.c: Include "progspace-and-thread.h".
9958 (add_target_sections, remove_target_sections):
9959 scoped_restore_current_pspace_and_thread instead of
9960 scoped_restore_current_thread.
9961 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
9962 and aspace to the inferior before calling clone_program_space.
9963 Remove stale comment.
9964
3050c6f4
CB
99652020-01-24 Christian Biesinger <cbiesinger@google.com>
9966
9967 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
9968 (arm_netbsd_nat_target::fetch_registers): ...this.
9969 (arm_nbsd_nat_target::store_registers): Rename to...
9970 (arm_netbsd_nat_target::store_registers): ...this.
9971
73685c7e
CB
99722020-01-24 Christian Biesinger <cbiesinger@google.com>
9973
9974 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9975 register_t.
9976
89203d40
CB
99772020-01-24 Christian Biesinger <cbiesinger@google.com>
9978
9979 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
9980 Update comment.
9981 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
9982 Likewise.
9983 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
9984 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
9985 the correct replacement (iterate_over_regset_sections).
9986 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
9987 Update comment.
9988
1ba1ac88
AB
99892020-01-24 Graham Markall <graham.markall@embecosm.com>
9990
9991 PR gdb/23718
9992 * gdb/python/python.c (execute_gdb_command): Call
9993 async_enable_stdin in catch block.
9994
f3364a6d
AB
99952020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9996
9997 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
9998 SWITCH_THRU_ALL_UIS.
9999
733d0a67
AB
100002020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10001
10002 PR tui/9765
10003 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
10004 comment, add extra parameter, and update to store previous symbol
10005 when appropriate.
10006 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
10007 add extra parameter.
10008 * tui/tui-disasm.c (tui_disassemble): Update header comment,
10009 remove unneeded parameter, add try/catch around gdb_print_insn,
10010 rewrite to add items to asm_lines vector.
10011 (tui_find_backward_disassembly_start_address): New function.
10012 (tui_find_disassembly_address): Updated throughout.
10013 (tui_disasm_window::set_contents): Update for changes to
10014 tui_disassemble.
10015 (tui_disasm_window::do_scroll_vertical): No need to adjust the
10016 number of lines to scroll.
10017
b3b3bada
SM
100182020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
10019
10020 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
10021 (SECT_OFF_DATA): Likewise.
10022 (SECT_OFF_RODATA): Likewise.
10023 (SECT_OFF_TEXT): Likewise.
10024 (SECT_OFF_BSS): Likewise.
10025 (struct objfile) <text_section_offset, data_section_offset>: New
10026 methods.
10027 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
10028 objfile::text_section_offset.
10029 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
10030 * coffread.c (coff_symtab_read): Likewise.
10031 (enter_linenos): Likewise.
10032 (process_coff_symbol): Likewise.
10033 * ctfread.c (get_objfile_text_range): Likewise.
10034 * dtrace-probe.c (dtrace_probe::get_relocated_address):
10035 Use objfile::data_section_offset.
10036 * dwarf2-frame.c (execute_cfa_program): Use
10037 objfile::text_section_offset.
10038 (dwarf2_frame_find_fde): Likewise.
10039 * dwarf2read.c (create_addrmap_from_index): Likewise.
10040 (create_addrmap_from_aranges): Likewise.
10041 (dw2_find_pc_sect_compunit_symtab): Likewise.
10042 (process_psymtab_comp_unit_reader): Likewise.
10043 (add_partial_symbol): Likewise.
10044 (add_partial_subprogram): Likewise.
10045 (process_full_comp_unit): Likewise.
10046 (read_file_scope): Likewise.
10047 (read_func_scope): Likewise.
10048 (read_lexical_block_scope): Likewise.
10049 (read_call_site_scope): Likewise.
10050 (dwarf2_rnglists_process): Likewise.
10051 (dwarf2_ranges_process): Likewise.
10052 (dwarf2_ranges_read): Likewise.
10053 (dwarf_decode_lines_1): Likewise.
10054 (new_symbol): Likewise.
10055 (dwarf2_fetch_die_loc_sect_off): Likewise.
10056 (dwarf2_per_cu_text_offset): Likewise.
10057 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
10058 * hppa-tdep.c (read_unwind_info): Likewise.
10059 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
10060 * psympriv.h (struct partial_symtab): Likewise.
10061 * psymtab.c (find_pc_sect_psymtab): Likewise.
10062 * solib-svr4.c (enable_break): Likewise.
10063 * stap-probe.c (relocate_address): Use
10064 objfile::data_section_offset.
10065 * xcoffread.c (enter_line_range): Use
10066 objfile::text_section_offset.
10067 (read_xcoff_symtab): Likewise.
10068
ab53f382
SM
100692020-01-23 Simon Marchi <simon.marchi@efficios.com>
10070
10071 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
10072 declaration to narrower scopes.
10073
e7eee665
SM
100742020-01-23 Simon Marchi <simon.marchi@efficios.com>
10075
10076 * darwin-nat.h (struct darwin_exception_msg, enum
10077 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
10078 Move up.
10079 (class darwin_nat_target) <wait_1, check_new_threads,
10080 decode_exception_message, decode_message, stop_inferior,
10081 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
10082 * darwin-nat.c (darwin_check_new_threads): Rename to...
10083 (darwin_nat_target::check_new_threads): ... this.
10084 (darwin_suspend_inferior_it): Remove.
10085 (darwin_decode_exception_message): Rename to...
10086 (darwin_nat_target::decode_exception_message): ... this.
10087 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
10088 (darwin_decode_message): Rename to...
10089 (darwin_nat_target::decode_message): ... this.
10090 (cancel_breakpoint): Rename to...
10091 (darwin_nat_target::cancel_breakpoint): ... this.
10092 (darwin_wait): Rename to...
10093 (darwin_nat_target::wait_1): ... this. Use range-based for loop
10094 instead of iterate_over_inferiors.
10095 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
10096 (darwin_stop_inferior): Rename to...
10097 (darwin_nat_target::stop_inferior): ... this.
10098 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
10099 (darwin_init_thread_list): Rename to...
10100 (darwin_nat_target::init_thread_list): ... this.
10101 (darwin_ptrace_him): Rename to...
10102 (darwin_nat_target::ptrace_him): ... this.
10103 (darwin_nat_target::create_inferior): Pass lambda function to
10104 fork_inferior.
10105 (darwin_nat_target::detach): Call stop_inferior instead of
10106 darwin_stop_inferior.
10107 * fork-inferior.h (fork_inferior): Change init_trace_fun
10108 parameter to gdb::function_view.
10109 * fork-inferior.c (fork_inferior): Likewise.
10110
c162ed3e
HD
101112020-01-23 Hannes Domani <ssbssa@yahoo.de>
10112
10113 * i386-cygwin-tdep.c (core_process_module_section): Update.
10114 * windows-nat.c (struct lm_info_windows): Add text_offset.
10115 (windows_xfer_shared_libraries): Update.
10116 * windows-tdep.c (windows_xfer_shared_library):
10117 Add text_offset_cached argument.
10118 * windows-tdep.h (windows_xfer_shared_library): Update.
10119
a1237872
SM
101202020-01-21 Simon Marchi <simon.marchi@efficios.com>
10121
10122 * gdbarch.sh: Add declaration for _initialize_gdbarch.
10123
b3ee6dd9
SM
101242020-01-21 Simon Marchi <simon.marchi@efficios.com>
10125
10126 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
10127 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
10128 replace with range-based for.
10129 (gdbsim_interrupt_inferior): Remove.
10130 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
10131 with a range-based for. Inline code from
10132 gdbsim_interrupt_inferior.
10133
f9fac3c8
SM
101342020-01-21 Simon Marchi <simon.marchi@efficios.com>
10135
10136 * infrun.c (proceed): Fix indentation.
10137
f6474de9
TT
101382020-01-21 Tom Tromey <tromey@adacore.com>
10139
10140 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
10141 * python/python.c (python_extension_ops): Update.
10142 (gdbpy_colorize): New function.
10143 * python/lib/gdb/__init__.py (colorize): New function.
10144 * extension.h (ext_lang_colorize): Declare.
10145 * extension.c (ext_lang_colorize): New function.
10146 * extension-priv.h (struct extension_language_ops) <colorize>: New
10147 member.
10148 * cli/cli-style.c (_initialize_cli_style): Update help text.
10149
f0c702d4
LM
101502020-01-21 Luis Machado <luis.machado@linaro.org>
10151
10152 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
10153 <cond>: Change type to bool.
10154 (aarch64_displaced_step_b_cond): Update cond to use bool type.
10155 (aarch64_displaced_step_cb): Likewise.
10156 (aarch64_displaced_step_tb): Likewise.
10157
1ab139e5
LM
101582020-01-21 Luis Machado <luis.machado@linaro.org>
10159
10160 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
10161 output.
10162
0c271889
LM
101632020-01-21 Luis Machado <luis.machado@linaro.org>
10164
10165 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
10166 <pc_adjust>: Adjust the documentation.
10167 (aarch64_displaced_step_fixup): Check if PC really moved before
10168 adjusting it.
10169
4d89c1c7
TT
101702020-01-19 Tom Tromey <tom@tromey.com>
10171
10172 * disasm.c (~gdb_disassembler): New destructor.
10173 (gdb_buffered_insn_length): Call disassemble_free_target.
10174 * disasm.h (class gdb_disassembler): Declare destructor. Use
10175 DISABLE_COPY_AND_ASSIGN.
10176
c0ab21c2
TT
101772020-01-19 Tom Tromey <tom@tromey.com>
10178
10179 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
10180 (die_reader_func_ftype): Remove.
10181 (cutu_reader): New class.
10182 (dw2_get_file_names_reader): Remove "data" parameter.
10183 (dw2_get_file_names): Use cutu_reader.
10184 (create_debug_type_hash_table): Update.
10185 (read_cutu_die_from_dwo): Update comment.
10186 (lookup_dwo_unit): Add dwo_name parameter.
10187 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
10188 die_reader_func_ftype and data parameters.
10189 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
10190 Remove die_reader_func_ftype and data parameters.
10191 (~cutu_reader): New; from init_cutu_and_read_dies.
10192 (cutu_reader::cutu_reader): Rename from
10193 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
10194 and data parameters.
10195 (init_cutu_and_read_dies_simple): Remove.
10196 (struct process_psymtab_comp_unit_data): Remove.
10197 (process_psymtab_comp_unit_reader): Remove data parameter; add
10198 want_partial_unit and pretend_language parameters.
10199 (process_psymtab_comp_unit): Use cutu_reader.
10200 (build_type_psymtabs_reader): Remove data parameter.
10201 (build_type_psymtabs_1): Use cutu_reader.
10202 (process_skeletonless_type_unit): Likewise.
10203 (load_partial_comp_unit_reader): Remove.
10204 (load_partial_comp_unit): Use cutu_reader.
10205 (load_full_comp_unit_reader): Remove.
10206 (load_full_comp_unit): Use cutu_reader.
10207 (struct create_dwo_cu_data): Remove.
10208 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
10209 dwo_unit parameters.
10210 (create_cus_hash_table): Use cutu_reader.
10211 (struct dwarf2_read_addr_index_data): Remove.
10212 (dwarf2_read_addr_index_reader): Remove.
10213 (dwarf2_read_addr_index): Use cutu_reader.
10214 (read_signatured_type_reader): Remove.
10215 (read_signatured_type): Use cutu_reader.
10216
45bbae5c
TT
102172020-01-19 Tom Tromey <tom@tromey.com>
10218
10219 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
10220 * tui/tui-wingeneral.h (class tui_suppress_output): New.
10221 (tui_wrefresh): Declare.
10222 * tui/tui-wingeneral.c (suppress_output): New global.
10223 (tui_suppress_output, ~tui_suppress_output): New constructor and
10224 destructor.
10225 (tui_wrefresh): New function.
10226 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
10227 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
10228 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
10229 method.
10230 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
10231 tui_wrefresh.
10232 (tui_data_window::no_refresh): New method.
10233 (tui_data_item_window::refresh_window): Call tui_wrefresh.
10234 (tui_reg_command): Use tui_suppress_output
10235 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
10236 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
10237 method.
10238 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
10239
4f13c1c0
TT
102402020-01-19 Tom Tromey <tom@tromey.com>
10241
10242 * tui/tui-winsource.c (tui_update_source_windows_with_line):
10243 Handle case where symtab is null.
10244
fa47e446
SM
102452020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
10246
10247 * linux-fork.c (one_fork_p): Simplify.
10248
26f42329
SM
102492020-01-17 Simon Marchi <simon.marchi@efficios.com>
10250
10251 * top.c (struct qt_args): Remove.
10252 (kill_or_detach): Change return type to void, replace `void *`
10253 parameter with a proper one.
10254 (print_inferior_quit_action): Likewise.
10255 (quit_confirm): Use range-based for loop to iterate over inferiors.
10256 (quit_force): Likewise.
10257
a9ac81b1
SM
102582020-01-17 Simon Marchi <simon.marchi@efficios.com>
10259
10260 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
10261 `void *` parameter with proper parameters.
10262 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
10263 (print_one_inferior): Change return type to void, replace `void *`
10264 parameter with proper parameters.
10265 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
10266 inferiors.
10267 (get_other_inferior): Remove.
10268 (mi_cmd_remove_inferior): Use range-based loop to iterate over
10269 inferiors.
10270
788eca49
SM
102712020-01-17 Simon Marchi <simon.marchi@efficios.com>
10272
10273 * mi/mi-interp.c (report_initial_inferior): Remove.
10274 (mi_interp::init): Use range-based for to iterate over inferiors.
10275
d9bc85b6
SM
102762020-01-17 Simon Marchi <simon.marchi@efficios.com>
10277
10278 * python/py-inferior.c (build_inferior_list): Remove.
10279 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
10280
40c94099
CB
102812020-01-16 Christian Biesinger <cbiesinger@google.com>
10282
10283 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
10284 (btrace_stitch_trace): Likewise.
10285 * charset.c (intermediate_encoding): Likewise (vaild).
10286 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
10287 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
10288 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
10289
e0cdfe3c
HD
102902020-01-16 Hannes Domani <ssbssa@yahoo.de>
10291
10292 * windows-tdep.c (windows_get_tlb_type):
10293 Add rtl_user_process_parameters type.
10294
790f1718 102952020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 10296 Norbert Lange <nolange79@gmail.com>
790f1718
PA
10297
10298 PR build/24805
10299 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
10300 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
10301 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
10302 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
10303 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
10304 (ps_plog): Redeclare exported functions with default visibility.
10305
3112ed97
NA
103062020-01-16 Nitika Achra <Nitika.Achra@amd.com>
10307
10308 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
10309 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
10310
8dc3273e
SM
103112020-01-15 Simon Marchi <simon.marchi@efficios.com>
10312
10313 * infcmd.c (post_create_inferior): Use get_thread_regcache
10314 instead of get_current_regcache.
10315
ff47f4f0
TT
103162020-01-14 Tom Tromey <tom@tromey.com>
10317
10318 PR symtab/12535:
10319 * python/python.c (gdbpy_decode_line): Treat empty string the same
10320 as no argument.
10321
975f45b7
TT
103222020-01-14 Tom Tromey <tom@tromey.com>
10323
10324 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
10325
25e57356
TT
103262020-01-14 Tom Tromey <tom@tromey.com>
10327
10328 * nat/linux-btrace.c: Don't include <config.h>.
10329 * nat/linux-ptrace.c: Don't include <config.h>.
10330 * nat/x86-linux-dregs.c: Don't include <config.h>.
10331
05ea2a05
TT
103322020-01-14 Tom Tromey <tom@tromey.com>
10333
10334 * configure: Rebuild.
10335 * configure.ac: Move many checks to ../gdbsupport/common.m4.
10336
01027315
TT
103372020-01-14 Tom Tromey <tom@tromey.com>
10338
10339 * nat/x86-linux-dregs.c: Include configh.h.
10340 * nat/linux-ptrace.c: Include configh.h.
10341 * nat/linux-btrace.c: Include configh.h.
10342 * defs.h: Include config.h, bfd.h.
10343 * configure.ac: Don't source common.host.
10344 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
10345 * configure: Rebuild.
10346 * acinclude.m4: Update path.
10347 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
10348 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
10349 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
10350 (CLIBS): Add LIBSUPPORT.
10351 (CDEPS): Likewise.
10352 (COMMON_SFILES): Remove gdbsupport files.
10353 (HFILES_NO_SRCDIR): Likewise.
10354 (stamp-version): Update path to create-version.sh.
10355 (ALLDEPFILES): Remove gdbsupport files.
10356
b2ceabe8
TT
103572020-01-14 Tom Tromey <tom@tromey.com>
10358
10359 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
10360 USE_WIN32API when needed.
10361 * configure.ac (USE_WIN32API): Don't define.
10362 (WIN32LIBS): Use WIN32APILIBS.
10363 * configure: Rebuild.
10364
25c51f71
TT
103652020-01-14 Tom Tromey <tom@tromey.com>
10366
10367 * configure: Rebuild.
10368 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
10369
717c684d
BE
103702020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
10371
10372 * skip.c (skip_function_command): Make skip w/o arguments use the
10373 name of the inlined function if pc is inside any inlined function.
10374
7da6a5b9
LM
103752020-01-14 Luis Machado <luis.machado@linaro.org>
10376
10377 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
10378 * infrun.c (resume_1): Likewise.
10379 (handle_inferior_event): Remove stale comment.
10380 * linux-nat.c (linux_nat_target::resume): Update comments.
10381 (save_stop_reason): Likewise.
10382 (linux_nat_filter_event): Likewise.
10383 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
10384
44e4c775
AB
103852020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10386
10387 * elfread.c (record_minimal_symbol): Set section index to 0 for
10388 non-allocatable sections.
10389
18a8505e
AT
10390
103912020-01-13 Ali Tamur <tamur@google.com>
10392
10393 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
10394 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
10395 to gdb::optional. Update comments.
10396 (dwo_file): Update comments.
10397 (read_attribute): Update API to take an additional out parameter,
10398 need_reprocess. This is used to mark attributes that need other
10399 attributes (e.g. str_offsets_base) for correct computation which may not
10400 have been read yet.
10401 (read_attribute_reprocess): New function declaration.
10402 (read_addr_index): Likewise.
10403 (read_dwo_str_index): Likewise.
10404 (read_stub_str_index): Likewise.
10405 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
10406 (lookup_addr_base): New function definition.
10407 (lookup_ranges_base): Likewise.
10408 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
10409 lookup_ranges_base.
10410 (init_cutu_and_read_dies): Update comments.
10411 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
10412 unit. This is used to inherit parent's str_offsets_base and addr_base.
10413 Update comments.
10414 (init_cutu_and_read_dies_simple): Reflect API changes.
10415 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
10416 (create_cus_hash_table): Change API to take parent compile unit.
10417 Reflect API changes.
10418 (open_and_init_dwo_file): Reflect API changes.
10419 (dwarf2_get_pc_bounds): Update comments.
10420 (dwarf2_record_block_ranges): Likewise.
10421 (read_full_die_1): Change implementation to reprocess attributes that
10422 need str_offsets_base and addr_base.
10423 (partial_die_info::read): Likewise.
10424 (read_attribute_reprocess): New function definition.
10425 (read_attribute_value): Change API to take an additional out parameter,
10426 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
10427 when a non-dwo compile unit has index based attributes.
10428 (read_attribute): Reflect API changes.
10429 (read_addr_index_1): Reflect API changes. Update comments.
10430 (dwarf2_read_addr_index_data): Reflect API changes.
10431 (dwarf2_read_addr_index): Likewise.
10432 (read_str_index): Change API and implementation. This becomes a helper
10433 to be used by the new string index related methods. Update error
10434 message and comments.
10435 (read_dwo_str_index): New function definition.
10436 (read_stub_str_index): Likewise.
10437 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
10438 * symfile.h (dwarf2_debug_sections): Likewise.
10439 * xcoffread.c (dwarf2_debug_sections): Likewise.
10440
0cac9354
SM
104412020-01-13 Simon Marchi <simon.marchi@efficios.com>
10442
10443 * gdbcore.h (struct core_fns) <core_read_registers>: Change
10444 core_reg_sect type to gdb_byte *.
10445 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
10446 * cris-tdep.c (fetch_core_registers): Likewise.
10447 * corelow.c (core_target::get_core_register_section): Change
10448 type of `contents` to gdb::byte_vector.
10449
9a6d629c
AB
104502020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10451
10452 * tui/tui-wingeneral.c (box_win): Position the title in the center
10453 of the border.
10454
d8b2f9e3
SM
104552020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10456
10457 * corelow.c (core_target::get_core_register_section): Use
10458 std::vector instead of alloca.
10459
bb564c58
SM
104602020-01-13 Simon Marchi <simon.marchi@efficios.com>
10461
10462 * warning.m4: Add -Wmissing-declarations to build_warnings.
10463 * configure: Re-generate.
10464
6b366111
SM
104652020-01-13 Simon Marchi <simon.marchi@efficios.com>
10466
10467 * python/python.c (init__gdb_module): Add declaration.
10468
6c265988
SM
104692020-01-13 Simon Marchi <simon.marchi@efficios.com>
10470
10471 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
10472 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
10473 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
10474 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
10475 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
10476 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
10477 * ada-exp.y (_initialize_ada_exp): Add declaration.
10478 * ada-lang.c (_initialize_ada_language): Add declaration.
10479 * ada-tasks.c (_initialize_tasks): Add declaration.
10480 * agent.c (_initialize_agent): Add declaration.
10481 * aix-thread.c (_initialize_aix_thread): Add declaration.
10482 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
10483 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
10484 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
10485 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
10486 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
10487 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
10488 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
10489 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
10490 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
10491 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
10492 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
10493 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
10494 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
10495 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
10496 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
10497 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
10498 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
10499 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
10500 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
10501 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
10502 * annotate.c (_initialize_annotate): Add declaration.
10503 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
10504 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
10505 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
10506 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
10507 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
10508 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
10509 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
10510 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
10511 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
10512 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
10513 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
10514 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
10515 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
10516 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
10517 * auto-load.c (_initialize_auto_load): Add declaration.
10518 * auxv.c (_initialize_auxv): Add declaration.
10519 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
10520 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
10521 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
10522 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
10523 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
10524 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
10525 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
10526 * breakpoint.c (_initialize_breakpoint): Add declaration.
10527 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
10528 * btrace.c (_initialize_btrace): Add declaration.
10529 * charset.c (_initialize_charset): Add declaration.
10530 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
10531 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
10532 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
10533 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
10534 * cli/cli-script.c (_initialize_cli_script): Add declaration.
10535 * cli/cli-style.c (_initialize_cli_style): Add declaration.
10536 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
10537 * coffread.c (_initialize_coffread): Add declaration.
10538 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
10539 * compile/compile.c (_initialize_compile): Add declaration.
10540 * complaints.c (_initialize_complaints): Add declaration.
10541 * completer.c (_initialize_completer): Add declaration.
10542 * copying.c (_initialize_copying): Add declaration.
10543 * corefile.c (_initialize_core): Add declaration.
10544 * corelow.c (_initialize_corelow): Add declaration.
10545 * cp-abi.c (_initialize_cp_abi): Add declaration.
10546 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
10547 * cp-support.c (_initialize_cp_support): Add declaration.
10548 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
10549 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
10550 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
10551 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
10552 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
10553 * ctfread.c (_initialize_ctfread): Add declaration.
10554 * d-lang.c (_initialize_d_language): Add declaration.
10555 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
10556 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
10557 * dbxread.c (_initialize_dbxread): Add declaration.
10558 * dcache.c (_initialize_dcache): Add declaration.
10559 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
10560 * disasm.c (_initialize_disasm): Add declaration.
10561 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
10562 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
10563 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
10564 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
10565 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
10566 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
10567 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
10568 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
10569 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
10570 * elfread.c (_initialize_elfread): Add declaration.
10571 * exec.c (_initialize_exec): Add declaration.
10572 * extension.c (_initialize_extension): Add declaration.
10573 * f-lang.c (_initialize_f_language): Add declaration.
10574 * f-valprint.c (_initialize_f_valprint): Add declaration.
10575 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
10576 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
10577 * filesystem.c (_initialize_filesystem): Add declaration.
10578 * findcmd.c (_initialize_mem_search): Add declaration.
10579 * findvar.c (_initialize_findvar): Add declaration.
10580 * fork-child.c (_initialize_fork_child): Add declaration.
10581 * frame-base.c (_initialize_frame_base): Add declaration.
10582 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
10583 * frame.c (_initialize_frame): Add declaration.
10584 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
10585 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
10586 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
10587 * gcore.c (_initialize_gcore): Add declaration.
10588 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
10589 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
10590 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
10591 * gdbarch.c (_initialize_gdbarch): Add declaration.
10592 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
10593 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
10594 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
10595 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
10596 * go-lang.c (_initialize_go_language): Add declaration.
10597 * go32-nat.c (_initialize_go32_nat): Add declaration.
10598 * guile/guile.c (_initialize_guile): Add declaration.
10599 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
10600 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
10601 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
10602 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
10603 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
10604 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
10605 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
10606 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
10607 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
10608 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
10609 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
10610 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
10611 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
10612 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
10613 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
10614 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
10615 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
10616 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
10617 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
10618 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
10619 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
10620 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
10621 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
10622 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
10623 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
10624 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
10625 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
10626 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
10627 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
10628 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
10629 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
10630 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
10631 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
10632 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
10633 * infcall.c (_initialize_infcall): Add declaration.
10634 * infcmd.c (_initialize_infcmd): Add declaration.
10635 * inflow.c (_initialize_inflow): Add declaration.
10636 * infrun.c (_initialize_infrun): Add declaration.
10637 * interps.c (_initialize_interpreter): Add declaration.
10638 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
10639 * jit.c (_initialize_jit): Add declaration.
10640 * language.c (_initialize_language): Add declaration.
10641 * linux-fork.c (_initialize_linux_fork): Add declaration.
10642 * linux-nat.c (_initialize_linux_nat): Add declaration.
10643 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
10644 * linux-thread-db.c (_initialize_thread_db): Add declaration.
10645 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
10646 * m2-lang.c (_initialize_m2_language): Add declaration.
10647 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
10648 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
10649 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
10650 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
10651 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
10652 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
10653 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
10654 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
10655 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
10656 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
10657 * machoread.c (_initialize_machoread): Add declaration.
10658 * macrocmd.c (_initialize_macrocmd): Add declaration.
10659 * macroscope.c (_initialize_macroscope): Add declaration.
10660 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
10661 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
10662 * maint.c (_initialize_maint_cmds): Add declaration.
10663 * mdebugread.c (_initialize_mdebugread): Add declaration.
10664 * memattr.c (_initialize_mem): Add declaration.
10665 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
10666 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
10667 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
10668 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
10669 * mi/mi-main.c (_initialize_mi_main): Add declaration.
10670 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
10671 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
10672 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
10673 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
10674 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
10675 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
10676 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
10677 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
10678 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
10679 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
10680 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
10681 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
10682 * mipsread.c (_initialize_mipsread): Add declaration.
10683 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
10684 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
10685 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
10686 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
10687 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
10688 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
10689 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
10690 * nto-procfs.c (_initialize_procfs): Add declaration.
10691 * objc-lang.c (_initialize_objc_language): Add declaration.
10692 * observable.c (_initialize_observer): Add declaration.
10693 * opencl-lang.c (_initialize_opencl_language): Add declaration.
10694 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
10695 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
10696 * osabi.c (_initialize_gdb_osabi): Add declaration.
10697 * osdata.c (_initialize_osdata): Add declaration.
10698 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
10699 * parse.c (_initialize_parse): Add declaration.
10700 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
10701 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
10702 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
10703 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
10704 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
10705 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
10706 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
10707 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
10708 * printcmd.c (_initialize_printcmd): Add declaration.
10709 * probe.c (_initialize_probe): Add declaration.
10710 * proc-api.c (_initialize_proc_api): Add declaration.
10711 * proc-events.c (_initialize_proc_events): Add declaration.
10712 * proc-service.c (_initialize_proc_service): Add declaration.
10713 * procfs.c (_initialize_procfs): Add declaration.
10714 * producer.c (_initialize_producer): Add declaration.
10715 * psymtab.c (_initialize_psymtab): Add declaration.
10716 * python/python.c (_initialize_python): Add declaration.
10717 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
10718 * record-btrace.c (_initialize_record_btrace): Add declaration.
10719 * record-full.c (_initialize_record_full): Add declaration.
10720 * record.c (_initialize_record): Add declaration.
10721 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
10722 * regcache.c (_initialize_regcache): Add declaration.
10723 * reggroups.c (_initialize_reggroup): Add declaration.
10724 * remote-notif.c (_initialize_notif): Add declaration.
10725 * remote-sim.c (_initialize_remote_sim): Add declaration.
10726 * remote.c (_initialize_remote): Add declaration.
10727 * reverse.c (_initialize_reverse): Add declaration.
10728 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
10729 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
10730 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
10731 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
10732 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
10733 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
10734 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
10735 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
10736 Add declaration.
10737 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
10738 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
10739 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
10740 * rust-exp.y (_initialize_rust_exp): Add declaration.
10741 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
10742 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
10743 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
10744 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
10745 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
10746 * score-tdep.c (_initialize_score_tdep): Add declaration.
10747 * ser-go32.c (_initialize_ser_dos): Add declaration.
10748 * ser-mingw.c (_initialize_ser_windows): Add declaration.
10749 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
10750 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
10751 * ser-uds.c (_initialize_ser_socket): Add declaration.
10752 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
10753 * serial.c (_initialize_serial): Add declaration.
10754 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
10755 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
10756 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
10757 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
10758 * skip.c (_initialize_step_skip): Add declaration.
10759 * sol-thread.c (_initialize_sol_thread): Add declaration.
10760 * solib-aix.c (_initialize_solib_aix): Add declaration.
10761 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
10762 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
10763 * solib-frv.c (_initialize_frv_solib): Add declaration.
10764 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
10765 * solib-target.c (_initialize_solib_target): Add declaration.
10766 * solib.c (_initialize_solib): Add declaration.
10767 * source-cache.c (_initialize_source_cache): Add declaration.
10768 * source.c (_initialize_source): Add declaration.
10769 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
10770 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
10771 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
10772 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
10773 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
10774 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
10775 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
10776 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
10777 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
10778 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
10779 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
10780 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
10781 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
10782 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
10783 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
10784 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
10785 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
10786 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
10787 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
10788 * stabsread.c (_initialize_stabsread): Add declaration.
10789 * stack.c (_initialize_stack): Add declaration.
10790 * stap-probe.c (_initialize_stap_probe): Add declaration.
10791 * std-regs.c (_initialize_frame_reg): Add declaration.
10792 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
10793 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
10794 * symfile.c (_initialize_symfile): Add declaration.
10795 * symmisc.c (_initialize_symmisc): Add declaration.
10796 * symtab.c (_initialize_symtab): Add declaration.
10797 * target.c (_initialize_target): Add declaration.
10798 * target-connection.c (_initialize_target_connection): Add
10799 declaration.
10800 * target-dcache.c (_initialize_target_dcache): Add declaration.
10801 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
10802 * thread.c (_initialize_thread): Add declaration.
10803 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
10804 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
10805 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
10806 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
10807 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
10808 * tracectf.c (_initialize_ctf): Add declaration.
10809 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
10810 * tracefile.c (_initialize_tracefile): Add declaration.
10811 * tracepoint.c (_initialize_tracepoint): Add declaration.
10812 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
10813 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
10814 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
10815 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
10816 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
10817 * tui/tui-win.c (_initialize_tui_win): Add declaration.
10818 * tui/tui.c (_initialize_tui): Add declaration.
10819 * typeprint.c (_initialize_typeprint): Add declaration.
10820 * ui-style.c (_initialize_ui_style): Add declaration.
10821 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
10822 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
10823 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
10824 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
10825 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
10826 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
10827 * unittests/filtered_iterator-selftests.c
10828 (_initialize_filtered_iterator_selftests): Add declaration.
10829 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
10830 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
10831 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
10832 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
10833 * unittests/main-thread-selftests.c
10834 (_initialize_main_thread_selftests): Add declaration.
10835 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
10836 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
10837 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
10838 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
10839 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
10840 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
10841 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
10842 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
10843 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
10844 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
10845 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
10846 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
10847 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
10848 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
10849 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
10850 declaration.
10851 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
10852 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
10853 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
10854 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
10855 * user-regs.c (_initialize_user_regs): Add declaration.
10856 * utils.c (_initialize_utils): Add declaration.
10857 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
10858 * valops.c (_initialize_valops): Add declaration.
10859 * valprint.c (_initialize_valprint): Add declaration.
10860 * value.c (_initialize_values): Add declaration.
10861 * varobj.c (_initialize_varobj): Add declaration.
10862 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
10863 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
10864 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
10865 * windows-nat.c (_initialize_windows_nat): Add declaration.
10866 (_initialize_check_for_gdb_ini): Add declaration.
10867 (_initialize_loadable): Add declaration.
10868 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
10869 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
10870 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
10871 * xcoffread.c (_initialize_xcoffread): Add declaration.
10872 * xml-support.c (_initialize_xml_support): Add declaration.
10873 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
10874 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
10875 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
10876 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
10877
e2de1eec
SM
108782020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10879
10880 * regformats/regdat.sh: Generate declaration for init function.
10881
e0037b4c
SM
108822020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10883
10884 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
10885 up.
10886 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
10887 close_one_inferior>: New methods.
10888 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
10889 pass down target to find_inferior_pid.
10890 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
10891 Pass down target to find_inferior_ptid.
10892 (gdbsim_target::create_inferior): Pass down target to
10893 add_thread_silent.
10894 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
10895 target down to find_inferior_ptid and switch_to_thread.
10896 (gdbsim_target::close): Update to call close_one_inferior.
10897 (struct resume_data): Remove.
10898 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
10899 directly, rather than through a void pointer.
10900 (gdbsim_target::resume): Update to call resume_one_inferior.
10901
58920b5b
SM
109022020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
10903
10904 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
10905
4ec89149
PA
109062020-01-12 Pedro Alves <palves@redhat.com>
10907
10908 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
10909 directly for the current inferior instead of
10910 discard_all_inferiors.
10911 (discard_all_inferiors): Delete.
10912
7c392d1d
TT
109132020-01-11 Tom Tromey <tom@tromey.com>
10914
10915 * tui/tui-wingeneral.c (box_win): Check cli_styling.
10916 * tui/tui-winsource.c (tui_source_window_base::refill): Use
10917 deprecated_safe_get_selected_frame.
10918
d9ebdab7
TBA
109192020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10920
10921 * inferior.c (print_inferior): Switch inferior before printing it.
10922
f3c469b9
PA
109232020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
10924 Pedro Alves <palves@redhat.com>
10925
10926 * progspace-and-thread.c (switch_to_program_space_and_thread):
10927 Assert there's an inferior for PSPACE. Use
10928 switch_to_inferior_no_thread to switch the inferior too.
10929 * progspace.c (program_space::~program_space): Call
10930 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
10931 (program_space::free_all_objfiles): Don't call clear_symtab_users
10932 here.
10933 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
10934
65c574f6
PA
109352020-01-10 Pedro Alves <palves@redhat.com>
10936
10937 * NEWS: Mention multi-target debugging, "info connections", and
10938 "add-inferior -no-connection".
10939
2f4fcf00
PA
109402020-01-10 Pedro Alves <palves@redhat.com>
10941
10942 * infrun.c: Include "target-connection.h".
10943 (check_multi_target_resumption): New.
10944 (proceed): Call it.
10945 * target-connection.c (make_target_connection_string): Make
10946 extern.
10947 * target-connection.h (make_target_connection_string): Declare.
10948
121b3efd
PA
109492020-01-10 Pedro Alves <palves@redhat.com>
10950
10951 * Makefile.in (COMMON_SFILES): Add target-connection.c.
10952 * inferior.c (uiout_field_connection): New function.
10953 (print_inferior): Add new "connection-id" column.
10954 (add_inferior_command): Show connection number/string of added
10955 inferior.
10956 * process-stratum-target.h
10957 (process_stratum_target::connection_string): New virtual method.
10958 (process_stratum_target::connection_number): New field.
10959 * remote.c (remote_target::connection_string): New override.
10960 * target-connection.c: New file.
10961 * target-connection.h: New file.
10962 * target.c (decref_target): Remove process_stratum targets from
10963 the connection list.
10964 (target_stack::push): Add process_stratum targets to the
10965 connection list.
10966
4f837581
PA
109672020-01-10 Pedro Alves <palves@redhat.com>
10968
10969 Revert:
10970 2016-04-12 Pedro Alves <palves@redhat.com>
10971 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
10972 Remove references to name.
10973 * serial.h (struct serial) <name>: Delete.
10974
f4ec508e
PA
109752020-01-10 Pedro Alves <palves@redhat.com>
10976
10977 * gdbarch-selftests.c (register_to_value_test): Remove "target
10978 already pushed" check.
10979
5b6d1e4f
PA
109802020-01-10 Pedro Alves <palves@redhat.com>
10981 John Baldwin <jhb@FreeBSD.org>
10982
10983 * aarch64-linux-nat.c
10984 (aarch64_linux_nat_target::thread_architecture): Adjust.
10985 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
10986 (task_command_1): Likewise.
10987 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
10988 (aix_thread_target::wait, aix_thread_target::fetch_registers)
10989 (aix_thread_target::store_registers)
10990 (aix_thread_target::thread_alive): Adjust.
10991 * amd64-fbsd-tdep.c: Include "inferior.h".
10992 (amd64fbsd_get_thread_local_address): Pass down target.
10993 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
10994 thread's gdbarch instead of target_gdbarch.
10995 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
10996 get_last_target_status.
10997 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
10998 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
10999 inferiors.
11000 (update_inserted_breakpoint_locations): Skip if inferiors with no
11001 execution.
11002 (update_global_location_list): When handling moribund locations,
11003 find representative inferior for location's pspace, and use thread
11004 count of its process_stratum target.
11005 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
11006 * bsd-uthread.c (bsd_uthread_target::wait): Use
11007 as_process_stratum_target and adjust thread_change_ptid and
11008 add_thread calls.
11009 (bsd_uthread_target::update_thread_list): Use
11010 as_process_stratum_target and adjust find_thread_ptid,
11011 thread_change_ptid and add_thread calls.
11012 * btrace.c (maint_btrace_packet_history_cmd): Adjust
11013 find_thread_ptid call.
11014 * corelow.c (add_to_thread_list): Adjust add_thread call.
11015 (core_target_open): Adjust add_thread_silent and thread_count
11016 calls.
11017 (core_target::pid_to_str): Adjust find_inferior_ptid call.
11018 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
11019 * event-top.c (async_disconnect): Pop targets from all inferiors.
11020 * exec.c (add_target_sections): Push exec target on all inferiors
11021 sharing the program space.
11022 (remove_target_sections): Remove the exec target from all
11023 inferiors sharing the program space.
11024 (exec_on_vfork): New.
11025 * exec.h (exec_on_vfork): Declare.
11026 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
11027 Pass it down.
11028 (fbsd_nat_target::update_thread_list): Adjust.
11029 (fbsd_nat_target::resume): Adjust.
11030 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
11031 down.
11032 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
11033 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
11034 get_thread_arch_regcache call.
11035 * fork-child.c (gdb_startup_inferior): Pass target down to
11036 startup_inferior and set_executing.
11037 * gdbthread.h (struct process_stratum_target): Forward declare.
11038 (add_thread, add_thread_silent, add_thread_with_info)
11039 (in_thread_list): Add process_stratum_target parameter.
11040 (find_thread_ptid(inferior*, ptid_t)): New overload.
11041 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
11042 parameter.
11043 (all_threads()): Delete overload.
11044 (all_threads, all_non_exited_threads): Add process_stratum_target
11045 parameter.
11046 (all_threads_safe): Use brace initialization.
11047 (thread_count): Add process_stratum_target parameter.
11048 (set_resumed, set_running, set_stop_requested, set_executing)
11049 (threads_are_executing, finish_thread_state): Add
11050 process_stratum_target parameter.
11051 (switch_to_thread): Use is_current_thread.
11052 * i386-fbsd-tdep.c: Include "inferior.h".
11053 (i386fbsd_get_thread_local_address): Pass down target.
11054 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
11055 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
11056 have_inferiors check.
11057 * inf-ptrace.c (inf_ptrace_target::create_inferior)
11058 (inf_ptrace_target::attach): Adjust.
11059 * infcall.c (run_inferior_call): Adjust.
11060 * infcmd.c (run_command_1): Pass target to
11061 scoped_finish_thread_state.
11062 (proceed_thread_callback): Skip inferiors with no execution.
11063 (continue_command): Rename 'all_threads' local to avoid hiding
11064 'all_threads' function. Adjust get_last_target_status call.
11065 (prepare_one_step): Adjust set_running call.
11066 (signal_command): Use user_visible_resume_target. Compare thread
11067 pointers instead of inferior_ptid.
11068 (info_program_command): Adjust to pass down target.
11069 (attach_command): Mark target's 'thread_executing' flag.
11070 (stop_current_target_threads_ns): New, factored out from ...
11071 (interrupt_target_1): ... this. Switch inferior before making
11072 target calls.
11073 * inferior-iter.h
11074 (struct all_inferiors_iterator, struct all_inferiors_range)
11075 (struct all_inferiors_safe_range)
11076 (struct all_non_exited_inferiors_range): Filter on
11077 process_stratum_target too. Remove explicit.
11078 * inferior.c (inferior::inferior): Push dummy target on target
11079 stack.
11080 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
11081 Add process_stratum_target parameter, and pass it down.
11082 (have_live_inferiors): Adjust.
11083 (switch_to_inferior_and_push_target): New.
11084 (add_inferior_command, clone_inferior_command): Handle
11085 "-no-connection" parameter. Use
11086 switch_to_inferior_and_push_target.
11087 (_initialize_inferior): Mention "-no-connection" option in
11088 the help of "add-inferior" and "clone-inferior" commands.
11089 * inferior.h: Include "process-stratum-target.h".
11090 (interrupt_target_1): Use bool.
11091 (struct inferior) <push_target, unpush_target, target_is_pushed,
11092 find_target_beneath, top_target, process_target, target_at,
11093 m_stack>: New.
11094 (discard_all_inferiors): Delete.
11095 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
11096 (all_inferiors, all_non_exited_inferiors): Add
11097 process_stratum_target parameter.
11098 * infrun.c: Include "gdb_select.h" and <unordered_map>.
11099 (target_last_proc_target): New global.
11100 (follow_fork_inferior): Push target on new inferior. Pass target
11101 to add_thread_silent. Call exec_on_vfork. Handle target's
11102 reference count.
11103 (follow_fork): Adjust get_last_target_status call. Also consider
11104 target.
11105 (follow_exec): Push target on new inferior.
11106 (struct execution_control_state) <target>: New field.
11107 (user_visible_resume_target): New.
11108 (do_target_resume): Call target_async.
11109 (resume_1): Set target's threads_executing flag. Consider resume
11110 target.
11111 (commit_resume_all_targets): New.
11112 (proceed): Also consider resume target. Skip threads of inferiors
11113 with no execution. Commit resumtion in all targets.
11114 (start_remote): Pass current inferior to wait_for_inferior.
11115 (infrun_thread_stop_requested): Consider target as well. Pass
11116 thread_info pointer to clear_inline_frame_state instead of ptid.
11117 (infrun_thread_thread_exit): Consider target as well.
11118 (random_pending_event_thread): New inferior parameter. Use it.
11119 (do_target_wait): Rename to ...
11120 (do_target_wait_1): ... this. Add inferior parameter, and pass it
11121 down.
11122 (threads_are_resumed_pending_p, do_target_wait): New.
11123 (prepare_for_detach): Adjust calls.
11124 (wait_for_inferior): New inferior parameter. Handle it. Use
11125 do_target_wait_1 instead of do_target_wait.
11126 (fetch_inferior_event): Adjust. Switch to representative
11127 inferior. Pass target down.
11128 (set_last_target_status): Add process_stratum_target parameter.
11129 Save target in global.
11130 (get_last_target_status): Add process_stratum_target parameter and
11131 handle it.
11132 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
11133 (context_switch): Check inferior_ptid == null_ptid before calling
11134 inferior_thread().
11135 (get_inferior_stop_soon): Pass down target.
11136 (wait_one): Rename to ...
11137 (poll_one_curr_target): ... this.
11138 (struct wait_one_event): New.
11139 (wait_one): New.
11140 (stop_all_threads): Adjust.
11141 (handle_no_resumed, handle_inferior_event): Adjust to consider the
11142 event's target.
11143 (switch_back_to_stepped_thread): Also consider target.
11144 (print_stop_event): Update.
11145 (normal_stop): Update. Also consider the resume target.
11146 * infrun.h (wait_for_inferior): Remove declaration.
11147 (user_visible_resume_target): New declaration.
11148 (get_last_target_status, set_last_target_status): New
11149 process_stratum_target parameter.
11150 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11151 process_stratum_target parameter, and use it.
11152 (clear_inline_frame_state (thread_info*)): New.
11153 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11154 process_stratum_target parameter.
11155 (clear_inline_frame_state (thread_info*)): Declare.
11156 * linux-fork.c (delete_checkpoint_command): Pass target down to
11157 find_thread_ptid.
11158 (checkpoint_command): Adjust.
11159 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
11160 instead of just tweaking inferior_ptid.
11161 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
11162 (exit_lwp): Pass target down to find_thread_ptid.
11163 (attach_proc_task_lwp_callback): Pass target down to
11164 add_thread/set_running/set_executing.
11165 (linux_nat_target::attach): Pass target down to
11166 thread_change_ptid.
11167 (get_detach_signal): Pass target down to find_thread_ptid.
11168 Consider last target status's target.
11169 (linux_resume_one_lwp_throw, resume_lwp)
11170 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
11171 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
11172 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
11173 (linux_nat_target::async_wait_fd): New.
11174 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
11175 target down.
11176 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
11177 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
11178 * linux-thread-db.c (struct thread_db_info::process_target): New
11179 field.
11180 (add_thread_db_info): Save target.
11181 (get_thread_db_info): New process_stratum_target parameter. Also
11182 match target.
11183 (delete_thread_db_info): New process_stratum_target parameter.
11184 Also match target.
11185 (thread_from_lwp): Adjust to pass down target.
11186 (thread_db_notice_clone): Pass down target.
11187 (check_thread_db_callback): Pass down target.
11188 (try_thread_db_load_1): Always push the thread_db target.
11189 (try_thread_db_load, record_thread): Pass target down.
11190 (thread_db_target::detach): Pass target down. Always unpush the
11191 thread_db target.
11192 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
11193 target down. Always unpush the thread_db target.
11194 (find_new_threads_callback, thread_db_find_new_threads_2)
11195 (thread_db_target::update_thread_list): Pass target down.
11196 (thread_db_target::pid_to_str): Pass current inferior down.
11197 (thread_db_target::get_thread_local_address): Pass target down.
11198 (thread_db_target::resume, maintenance_check_libthread_db): Pass
11199 target down.
11200 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
11201 * procfs.c (procfs_target::procfs_init_inferior): Declare.
11202 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
11203 (procfs_init_inferior): Rename to ...
11204 (procfs_target::procfs_init_inferior): ... this and adjust.
11205 (procfs_target::create_inferior, procfs_notice_thread)
11206 (procfs_do_thread_registers): Adjust.
11207 * ppc-fbsd-tdep.c: Include "inferior.h".
11208 (ppcfbsd_get_thread_local_address): Pass down target.
11209 * proc-service.c (ps_xfer_memory): Switch current inferior and
11210 program space as well.
11211 (get_ps_regcache): Pass target down.
11212 * process-stratum-target.c
11213 (process_stratum_target::thread_address_space)
11214 (process_stratum_target::thread_architecture): Pass target down.
11215 * process-stratum-target.h
11216 (process_stratum_target::threads_executing): New field.
11217 (as_process_stratum_target): New.
11218 * ravenscar-thread.c
11219 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
11220 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
11221 down.
11222 * record-btrace.c (record_btrace_target::info_record): Adjust.
11223 (record_btrace_target::record_method)
11224 (record_btrace_target::record_is_replaying)
11225 (record_btrace_target::fetch_registers)
11226 (get_thread_current_frame_id, record_btrace_target::resume)
11227 (record_btrace_target::wait, record_btrace_target::stop): Pass
11228 target down.
11229 * record-full.c (record_full_wait_1): Switch to event thread.
11230 Pass target down.
11231 * regcache.c (regcache::regcache)
11232 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
11233 process_stratum_target parameter and handle it.
11234 (current_thread_target): New global.
11235 (get_thread_regcache): Add process_stratum_target parameter and
11236 handle it. Switch inferior before calling target method.
11237 (get_thread_regcache): Pass target down.
11238 (get_thread_regcache_for_ptid): Pass target down.
11239 (registers_changed_ptid): Add process_stratum_target parameter and
11240 handle it.
11241 (registers_changed_thread, registers_changed): Pass target down.
11242 (test_get_thread_arch_aspace_regcache): New.
11243 (current_regcache_test): Define a couple local test_target_ops
11244 instances and use them for testing.
11245 (readwrite_regcache): Pass process_stratum_target parameter.
11246 (cooked_read_test, cooked_write_test): Pass mock_target down.
11247 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
11248 (get_thread_arch_aspace_regcache): Add process_stratum_target
11249 parameter.
11250 (regcache::target): New method.
11251 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
11252 (regcache::registers_changed_ptid): Add process_stratum_target
11253 parameter.
11254 (regcache::m_target): New field.
11255 (registers_changed_ptid): Add process_stratum_target parameter.
11256 * remote.c (remote_state::supports_vCont_probed): New field.
11257 (remote_target::async_wait_fd): New method.
11258 (remote_unpush_and_throw): Add remote_target parameter.
11259 (get_current_remote_target): Adjust.
11260 (remote_target::remote_add_inferior): Push target.
11261 (remote_target::remote_add_thread)
11262 (remote_target::remote_notice_new_inferior)
11263 (get_remote_thread_info): Pass target down.
11264 (remote_target::update_thread_list): Skip threads of inferiors
11265 bound to other targets. (remote_target::close): Don't discard
11266 inferiors. (remote_target::add_current_inferior_and_thread)
11267 (remote_target::process_initial_stop_replies)
11268 (remote_target::start_remote)
11269 (remote_target::remote_serial_quit_handler): Pass down target.
11270 (remote_target::remote_unpush_target): New remote_target
11271 parameter. Unpush the target from all inferiors.
11272 (remote_target::remote_unpush_and_throw): New remote_target
11273 parameter. Pass it down.
11274 (remote_target::open_1): Check whether the current inferior has
11275 execution instead of checking whether any inferior is live. Pass
11276 target down.
11277 (remote_target::remote_detach_1): Pass down target. Use
11278 remote_unpush_target.
11279 (extended_remote_target::attach): Pass down target.
11280 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
11281 (remote_target::append_resumption): Pass down target.
11282 (remote_target::append_pending_thread_resumptions)
11283 (remote_target::remote_resume_with_hc, remote_target::resume)
11284 (remote_target::commit_resume): Pass down target.
11285 (remote_target::remote_stop_ns): Check supports_vCont_probed.
11286 (remote_target::interrupt_query)
11287 (remote_target::remove_new_fork_children)
11288 (remote_target::check_pending_events_prevent_wildcard_vcont)
11289 (remote_target::remote_parse_stop_reply)
11290 (remote_target::process_stop_reply): Pass down target.
11291 (first_remote_resumed_thread): New remote_target parameter. Pass
11292 it down.
11293 (remote_target::wait_as): Pass down target.
11294 (unpush_and_perror): New remote_target parameter. Pass it down.
11295 (remote_target::readchar, remote_target::remote_serial_write)
11296 (remote_target::getpkt_or_notif_sane_1)
11297 (remote_target::kill_new_fork_children, remote_target::kill): Pass
11298 down target.
11299 (remote_target::mourn_inferior): Pass down target. Use
11300 remote_unpush_target.
11301 (remote_target::core_of_thread)
11302 (remote_target::remote_btrace_maybe_reopen): Pass down target.
11303 (remote_target::pid_to_exec_file)
11304 (remote_target::thread_handle_to_thread_info): Pass down target.
11305 (remote_target::async_wait_fd): New.
11306 * riscv-fbsd-tdep.c: Include "inferior.h".
11307 (riscv_fbsd_get_thread_local_address): Pass down target.
11308 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
11309 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
11310 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
11311 Adjust.
11312 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
11313 * solib-svr4.c (enable_break): Pass down target.
11314 * spu-multiarch.c (parse_spufs_run): Pass down target.
11315 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
11316 * target-delegates.c: Regenerate.
11317 * target.c (g_target_stack): Delete.
11318 (current_top_target): Return the current inferior's top target.
11319 (target_has_execution_1): Refer to the passed-in inferior's top
11320 target.
11321 (target_supports_terminal_ours): Check whether the initial
11322 inferior was already created.
11323 (decref_target): New.
11324 (target_stack::push): Incref/decref the target.
11325 (push_target, push_target, unpush_target): Adjust.
11326 (target_stack::unpush): Defref target.
11327 (target_is_pushed): Return bool. Adjust to refer to the current
11328 inferior's target stack.
11329 (dispose_inferior): Delete, and inline parts ...
11330 (target_preopen): ... here. Only dispose of the current inferior.
11331 (target_detach): Hold strong target reference while detaching.
11332 Pass target down.
11333 (target_thread_name): Add assertion.
11334 (target_resume): Pass down target.
11335 (target_ops::beneath, find_target_at): Adjust to refer to the
11336 current inferior's target stack.
11337 (get_dummy_target): New.
11338 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
11339 has a thread running.
11340 (initialize_targets): Rename to ...
11341 (_initialize_target): ... this.
11342 * target.h: Include "gdbsupport/refcounted-object.h".
11343 (struct target_ops): Inherit refcounted_object.
11344 (target_ops::shortname, target_ops::longname): Make const.
11345 (target_ops::async_wait_fd): New method.
11346 (decref_target): Declare.
11347 (struct target_ops_ref_policy): New.
11348 (target_ops_ref): New typedef.
11349 (get_dummy_target): Declare function.
11350 (target_is_pushed): Return bool.
11351 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
11352 (all_matching_threads_iterator::all_matching_threads_iterator):
11353 Handle filter target.
11354 * thread-iter.h (struct all_matching_threads_iterator, struct
11355 all_matching_threads_range, class all_non_exited_threads_range):
11356 Filter by target too. Remove explicit.
11357 * thread.c (threads_executing): Delete.
11358 (inferior_thread): Pass down current inferior.
11359 (clear_thread_inferior_resources): Pass down thread pointer
11360 instead of ptid_t.
11361 (add_thread_silent, add_thread_with_info, add_thread): Add
11362 process_stratum_target parameter. Use it for thread and inferior
11363 searches.
11364 (is_current_thread): New.
11365 (thread_info::deletable): Use it.
11366 (find_thread_ptid, thread_count, in_thread_list)
11367 (thread_change_ptid, set_resumed, set_running): New
11368 process_stratum_target parameter. Pass it down.
11369 (set_executing): New process_stratum_target parameter. Pass it
11370 down. Adjust reference to 'threads_executing'.
11371 (threads_are_executing): New process_stratum_target parameter.
11372 Adjust reference to 'threads_executing'.
11373 (set_stop_requested, finish_thread_state): New
11374 process_stratum_target parameter. Pass it down.
11375 (switch_to_thread): Also match inferior.
11376 (switch_to_thread): New process_stratum_target parameter. Pass it
11377 down.
11378 (update_threads_executing): Reimplement.
11379 * top.c (quit_force): Pop targets from all inferior.
11380 (gdb_init): Don't call initialize_targets.
11381 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
11382 Declare.
11383 (windows_add_thread, windows_delete_thread): Adjust.
11384 (get_windows_debug_event): Rename to ...
11385 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
11386 * tracefile-tfile.c (tfile_target_open): Pass down target.
11387 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
11388 Forward declare.
11389 (switch_to_thread): Add process_stratum_target parameter.
11390 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
11391 parameter. Use it.
11392 (mi_on_resume): Pass target down.
11393 * nat/fork-inferior.c (startup_inferior): Add
11394 process_stratum_target parameter. Pass it down.
11395 * nat/fork-inferior.h (startup_inferior): Add
11396 process_stratum_target parameter.
11397 * python/py-threadevent.c (py_get_event_thread): Pass target down.
11398
75c6c844
PA
113992020-01-10 Pedro Alves <palves@redhat.com>
11400
11401 * remote.c (remote_target::start_remote): Don't set inferior_ptid
11402 directly. Instead find the first thread in the thread list and
11403 use switch_to_thread.
11404
78f2c40a
PA
114052020-01-10 Pedro Alves <palves@redhat.com>
11406
11407 * remote.c (remote_target::remote_add_inferior): Don't bind a
11408 process to the current inferior if the current inferior is already
11409 bound to a process.
11410
e7af6c70
TBA
114112020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11412 Pedro Alves <palves@redhat.com>
11413
11414 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
11415 If no process is specified, return null_ptid instead of
11416 inferior_ptid.
11417 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
11418 TARGET_WAITKIND_SIGNALLED with no pid.
11419
31ba933e
PA
114202020-01-10 Pedro Alves <palves@redhat.com>
11421
11422 * remote.c (first_remote_resumed_thread): New.
11423 (remote_target::wait_as): Use it as default event_ptid instead of
11424 inferior_ptid.
11425
735fc2ca
PA
114262020-01-10 Pedro Alves <palves@redhat.com>
11427
11428 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
11429
c17e02e1
PA
114302020-01-10 Pedro Alves <palves@redhat.com>
11431
11432 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
11433 not -1.
11434
ab1ddbcf
PA
114352020-01-10 Pedro Alves <palves@redhat.com>
11436
11437 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
11438 ptid to get_last_target_status.
11439 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
11440 ptid to get_last_target_status.
11441 * infcmd.c (continue_command): Don't pass a target_waitstatus to
11442 get_last_target_status.
11443 (info_program_command): Don't pass a target_waitstatus to
11444 get_last_target_status.
11445 * infrun.c (init_wait_for_inferior): Use
11446 nullify_last_target_wait_ptid.
11447 (get_last_target_status): Handle nullptr arguments.
11448 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
11449 (print_stop_event): Don't pass a ptid to get_last_target_status.
11450 (normal_stop): Don't pass a ptid to get_last_target_status.
11451 * infrun.h (get_last_target_status, set_last_target_status): Move
11452 comments here and update.
11453 (nullify_last_target_wait_ptid): Declare.
11454 * linux-fork.c (fork_load_infrun_state): Remove local extern
11455 declaration of nullify_last_target_wait_ptid.
11456 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
11457 to get_last_target_status.
11458
f3f8ece4
PA
114592020-01-10 Pedro Alves <palves@redhat.com>
11460
11461 * gdbthread.h (scoped_restore_current_thread)
11462 <dont_restore, restore, m_dont_restore>: Declare.
11463 * thread.c (thread_alive): Add assertion. Return bool.
11464 (switch_to_thread_if_alive): New.
11465 (prune_threads): Switch inferior/thread.
11466 (print_thread_info_1): Switch thread before calling target methods.
11467 (scoped_restore_current_thread::restore): New, factored out from
11468 ...
11469 (scoped_restore_current_thread::~scoped_restore_current_thread):
11470 ... this.
11471 (scoped_restore_current_thread::scoped_restore_current_thread):
11472 Add assertion.
11473 (thread_apply_all_command, thread_select): Use
11474 switch_to_thread_if_alive.
11475 * infrun.c (proceed, restart_threads, handle_signal_stop)
11476 (switch_back_to_stepped_thread): Switch current thread before
11477 calling target methods.
11478
db2d40f7
PA
114792020-01-10 Pedro Alves <palves@redhat.com>
11480
11481 * inferior.c (switch_to_inferior_no_thread): New function,
11482 factored out from ...
11483 (inferior_command): ... here.
11484 * inferior.h (switch_to_inferior_no_thread): Declare.
11485 * mi/mi-main.c (run_one_inferior): Use
11486 switch_to_inferior_no_thread.
11487
bd420a2d
PA
114882020-01-10 Pedro Alves <palves@redhat.com>
11489
11490 * infcmd.c (kill_command): Remove dead code.
11491
ddf5db90
PA
114922020-01-10 Pedro Alves <palves@redhat.com>
11493
11494 * remote.c (remote_target::mourn_inferior): No longer check
11495 whether the target is running.
11496
5018ce90
PA
114972020-01-10 Pedro Alves <palves@redhat.com>
11498
11499 * corelow.c (core_target::has_execution): Change parameter type to
11500 inferior pointer.
11501 * inferior.c (number_of_live_inferiors): Use
11502 inferior::has_execution instead of target_has_execution_1.
11503 * inferior.h (inferior::has_execution): New.
11504 * linux-thread-db.c (thread_db_target::update_thread_list): Use
11505 inferior::has_execution instead of target_has_execution_1.
11506 * process-stratum-target.c
11507 (process_stratum_target::has_execution): Change parameter type to
11508 inferior pointer. Check the inferior's PID instead of
11509 inferior_ptid.
11510 * process-stratum-target.h
11511 (process_stratum_target::has_execution): Change parameter type to
11512 inferior pointer.
11513 * record-full.c (record_full_core_target::has_execution): Change
11514 parameter type to inferior pointer.
11515 * target.c (target_has_execution_1): Change parameter type to
11516 inferior pointer.
11517 (target_has_execution_current): Adjust.
11518 * target.h (target_ops::has_execution): Change parameter type to
11519 inferior pointer.
11520 (target_has_execution_1): Change parameter type to inferior
11521 pointer. Change return type to bool.
11522 * tracefile.h (tracefile_target::has_execution): Change parameter
11523 type to inferior pointer.
11524
74375d18
PA
115252020-01-10 Pedro Alves <palves@redhat.com>
11526
11527 * exceptions.c (print_flush): Remove current_top_target() check.
11528
acdf84a6
PA
115292020-01-10 Pedro Alves <palves@redhat.com>
11530
11531 * remote.c (show_remote_exec_file): Show the current inferior's
11532 exec-file instead of the command variable's value.
11533
ec506636
PA
115342020-01-10 Pedro Alves <palves@redhat.com>
11535
11536 * record-full.c (record_full_resume_ptid): New global.
11537 (record_full_target::resume): Set it.
11538 (record_full_wait_1): Use record_full_resume_ptid instead of
11539 inferior_ptid.
11540
873657b9
PA
115412020-01-10 Pedro Alves <palves@redhat.com>
11542
11543 * gdbthread.h (scoped_restore_current_thread)
11544 <dont_restore, restore, m_dont_restore>: Declare.
11545 * thread.c (thread_alive): Add assertion. Return bool.
11546 (switch_to_thread_if_alive): New.
11547 (prune_threads): Switch inferior/thread.
11548 (print_thread_info_1): Switch thread before calling target methods.
11549 (scoped_restore_current_thread::restore): New, factored out from
11550 ...
11551 (scoped_restore_current_thread::~scoped_restore_current_thread):
11552 ... this.
11553 (scoped_restore_current_thread::scoped_restore_current_thread):
11554 Add assertion.
11555 (thread_apply_all_command, thread_select): Use
11556 switch_to_thread_if_alive.
11557
7f0ae84c
GB
115582020-01-10 George Barrett <bob@bob131.so>
11559
11560 * stap-probe.c (stap_modify_semaphore): Don't check for null
11561 semaphores.
11562 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
11563 for null semaphores.
11564
f5a7c406
AB
115652020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11566
11567 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
11568 all source windows, and maintain horizontal scroll status while
11569 doing so.
11570
9ae6bf64
TT
115712020-01-09 Tom Tromey <tom@tromey.com>
11572
11573 PR tui/18932:
11574 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
11575 update_source_window, not print_source_lines.
11576
b2efe70c
AB
115772020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11578
11579 * tui/tui.c (tui_enable): Register tui hooks after calling
11580 tui_display_main.
11581
5f23a082
CB
115822020-01-09 Christian Biesinger <cbiesinger@google.com>
11583
11584 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
11585
3061113b
SM
115862020-01-08 Simon Marchi <simon.marchi@efficios.com>
11587
11588 * thread.c (print_thread_info_1): Fix indentation.
11589
57d75002
CB
115902020-01-09 Christian Biesinger <cbiesinger@google.com>
11591
11592 * symtab.c (general_symbol_info::compute_and_set_names): Move the
11593 unique_xmalloc_ptr outside the if to always free the demangled name.
11594
6a053cb1
TT
115952020-01-08 Tom Tromey <tromey@adacore.com>
11596
11597 * xcoffread.c (enter_line_range, read_xcoff_symtab)
11598 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
11599 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
11600 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
11601 Remove.
11602 (section_offsets): New typedef.
11603 * symtab.c (fixup_section, get_msymbol_address): Update.
11604 * symmisc.c (dump_msymbols): Update.
11605 * symfile.h (relative_addr_info_to_section_offsets)
11606 (symfile_map_offsets_to_segments): Update.
11607 * symfile.c (build_section_addr_info_from_objfile)
11608 (init_objfile_sect_indices): Update.
11609 (struct place_section_arg): Change type of "offsets".
11610 (place_section): Update.
11611 (relative_addr_info_to_section_offsets): Change type of
11612 "section_offsets". Remove "num_sections" parameter.
11613 (default_symfile_offsets, syms_from_objfile_1)
11614 (set_objfile_default_section_offset): Update.
11615 (reread_symbols): No need to preserve section offsets by hand.
11616 (symfile_map_offsets_to_segments): Change type of "offsets".
11617 * stap-probe.c (relocate_address): Update.
11618 * stabsread.h (process_one_symbol): Update.
11619 * solib-target.c (struct lm_info_target) <offsets>: Change type.
11620 (solib_target_relocate_section_addresses): Update.
11621 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
11622 Update.
11623 * solib-frv.c (frv_relocate_main_executable): Update.
11624 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
11625 * solib-aix.c (solib_aix_get_section_offsets): Change return
11626 type.
11627 (solib_aix_solib_create_inferior_hook): Update.
11628 * remote.c (remote_target::get_offsets): Update.
11629 * psymtab.c (find_pc_sect_psymtab): Update.
11630 * psympriv.h (struct partial_symbol) <address, text_low,
11631 text_high>: Update.
11632 * objfiles.h (obj_section_offset): Update.
11633 (struct objfile) <section_offsets>: Change type.
11634 <num_sections>: Remove.
11635 (objfile_relocate): Update.
11636 * objfiles.c (entry_point_address_query): Update
11637 (relocate_one_symbol): Change type of "section_offsets".
11638 (objfile_relocate1, objfile_relocate1): Change type of
11639 "new_offsets".
11640 (objfile_rebase1): Update.
11641 * mipsread.c (mipscoff_symfile_read): Update.
11642 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
11643 parameter.
11644 * mdebugread.c (parse_symbol): Change type of "section_offsets".
11645 (parse_external, psymtab_to_symtab_1): Update.
11646 * machoread.c (macho_symfile_offsets): Update.
11647 * ia64-tdep.c (ia64_find_unwind_table): Update.
11648 * hppa-tdep.c (read_unwind_info): Update.
11649 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
11650 * dwarf2read.c (create_addrmap_from_index)
11651 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11652 (process_psymtab_comp_unit_reader, add_partial_symbol)
11653 (add_partial_subprogram, process_full_comp_unit)
11654 (read_file_scope, read_func_scope, read_lexical_block_scope)
11655 (read_call_site_scope, dwarf2_rnglists_process)
11656 (dwarf2_ranges_process, dwarf2_ranges_read)
11657 (dwarf_decode_lines_1, var_decode_location, new_symbol)
11658 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
11659 Update.
11660 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
11661 Update.
11662 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
11663 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
11664 (process_one_symbol): Change type of "section_offsets".
11665 * ctfread.c (get_objfile_text_range): Update.
11666 * coffread.c (coff_symtab_read, enter_linenos)
11667 (process_coff_symbol): Update.
11668 * coff-pe-read.c (add_pe_forwarded_sym): Update.
11669 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
11670
456e800a
TT
116712020-01-08 Tom Tromey <tromey@adacore.com>
11672
11673 * dwarf2read.c (parse_macro_definition): Use std::string.
11674 (parse_macro_definition): Likewise.
11675
6dfa2fc2
TT
116762020-01-08 Tom Tromey <tromey@adacore.com>
11677
11678 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
11679 (ATTR_ALLOC_CHUNK): Remove.
11680
421d1616
TT
116812020-01-08 Tom Tromey <tromey@adacore.com>
11682
11683 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
11684
43816ebc
TT
116852020-01-08 Tom Tromey <tromey@adacore.com>
11686
11687 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
11688 (dwarf2_compute_name, open_dwo_file): Likewise.
11689 (process_enumeration_scope): Use std::vector.
11690 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
11691 (partial_die_info::fixup, dwarf2_start_subfile)
11692 (guess_full_die_structure_name, dwarf2_name): Likewise.
11693 (determine_prefix): Update.
11694 (guess_full_die_structure_name): Make return type const.
11695 (partial_die_full_name): Return unique_xmalloc_ptr.
11696 (DW_FIELD_ALLOC_CHUNK): Remove.
11697
4212d509
TT
116982020-01-07 Tom Tromey <tromey@adacore.com>
11699
11700 PR build/24937:
11701 * stap-probe.c (class stap_static_probe_ops): Add constructor.
11702
06a6207a
JT
117032020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
11704
11705 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
11706
153d79c4
AB
117072020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
11708
11709 * stack.c (print_frame_info): Move disassemble_next_line code
11710 inside source_print block.
11711
66182876
EZ
117122020-01-06 Eli Zaretskii <eliz@gnu.org>
11713
11714 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
11715 gdb/signals.h, as we are now using native signal symbols.
11716
cbfa8581
SV
117172020-01-06 Shahab Vahedi <shahab@synopsys.com>
11718
11719 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
11720 overflow by an early check of content vs threshold.
aac66a4c 11721 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
11722 Likewise.
11723
3f602821
EZ
117242020-01-06 Eli Zaretskii <eliz@gnu.org>
11725
11726 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
11727
a08c904d
JT
117282020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
11729
11730 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
11731 export table if no section contains it's RVA.
11732
89a65580
EZ
117332020-01-06 Eli Zaretskii <eliz@gnu.org>
11734
11735 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
11736
8b7fcda2
HD
117372020-01-06 Hannes Domani <ssbssa@yahoo.de>
11738
11739 * source.c (print_source_lines_base): Set last_line_listed.
11740
a61b4f69
SV
117412020-01-06 Shahab Vahedi <shahab@synopsys.com>
11742
11743 * tui/tui-disasm.c: Remove trailing spaces.
11744
559e7e50
EZ
117452020-01-06 Eli Zaretskii <eliz@gnu.org>
11746 Pedro Alves <palves@redhat.com>
11747
11748 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
11749 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
11750 (windows_gdb_signal_to_target): New function, uses the above
11751 enumeration to convert GDB internal signal codes to equivalent
11752 Windows codes.
11753 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
11754 * windows-nat.c: Include "gdb_wait.h".
11755 (get_windows_debug_event): Extract the fatal exception from the
11756 exit status and convert to the equivalent Posix signal number.
11757 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
11758 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
11759 * gdbsupport/gdb_wait.c: New file, implements
11760 windows_status_to_termsig.
11761 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
11762 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
11763
f2302a34
AB
117642020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
11765
11766 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
11767 show_layout.
11768
6a5206eb
LM
117692020-01-05 Luis Machado <luis.machado@linaro.org>
11770
11771 * aarch64-linux-nat.c
11772 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
11773 and bfd_mach_aarch64.
11774
6ec1d75e
PW
117752020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11776
11777 * ui-file.c (stdio_file::can_emit_style_escape)
11778 (tee_file::can_emit_style_escape): Ensure style is used also on
11779 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
11780 to gdb_stdout.
11781 * main.c (set_gdb_data_directory): Use file style to output the
11782 warning that the given pathname is not a directory.
11783 * top.c (show_history_filename, gdb_safe_append_history)
11784 (show_gdb_datadir): Use file style.
11785
44f81a76
HD
117862020-01-03 Hannes Domani <ssbssa@yahoo.de>
11787
11788 * solib-target.c (struct lm_info_target):
11789 Change offsets to be a unique_xmalloc_ptr.
11790 (solib_target_relocate_section_addresses): Update.
11791
25057eb0
HD
117922020-01-03 Hannes Domani <ssbssa@yahoo.de>
11793
11794 * windows-nat.c (windows_clear_solib): Free so_list linked list.
11795
6e2118f5
BE
117962020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
11797
11798 * MAINTAINERS (Write After Approval): Add myself.
11799
8133c7dc
LM
118002020-01-02 Luis Machado <luis.machado@linaro.org>
11801
11802 * proc-service.c (get_ps_regcache): Remove reference to obsolete
11803 Cell BE architecture.
11804 * target.h (struct target_ops) <thread_architecture>: Likewise.
11805
48189bec
HD
118062020-01-01 Hannes Domani <ssbssa@yahoo.de>
11807
11808 * Makefile.in: Use INSTALL_PROGRAM_ENV.
11809
ead1063b
HD
118102020-01-01 Hannes Domani <ssbssa@yahoo.de>
11811
11812 * MAINTAINERS (Write After Approval): Add myself.
11813
e5d78223
JB
118142020-01-01 Joel Brobecker <brobecker@adacore.com>
11815
11816 * gdbarch.sh: Update copyright year range of generated files.
11817
b811d2c2
JB
118182020-01-01 Joel Brobecker <brobecker@adacore.com>
11819
11820 Update copyright year range in all GDB files.
11821
5f4def5c
JB
118222020-01-01 Joel Brobecker <brobecker@adacore.com>
11823
11824 * copyright.py: Convert to Python 3.
11825
51fd4002
JB
118262020-01-01 Joel Brobecker <brobecker@adacore.com>
11827
11828 * copyright.py: Adapt after move of gnulib directory from gdb
11829 directory to toplevel directory.
11830
5fb651f2
JB
118312020-01-01 Joel Brobecker <brobecker@adacore.com>
11832
11833 * copyright.py (main): Exit if run from the wrong directory.
11834
5dd8bf88
JB
118352020-01-01 Joel Brobecker <brobecker@adacore.com>
11836
11837 * top.c (print_gdb_version): Change copyright year to 2020.
11838
9f71dacb 118392020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 11840
9f71dacb 11841 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 11842
9f71dacb 11843For older changes see ChangeLog-2019.
c906108c
SS
11844\f
11845Local Variables:
11846mode: change-log
11847left-margin: 8
11848fill-column: 74
11849version-control: never
57da7796 11850coding: utf-8
c906108c 11851End: