gdb: rename regcache::current_regcache to regcache::regcaches
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
174981ae
SM
12020-08-06 Simon Marchi <simon.marchi@efficios.com>
2
3 * regcache.h (class regcache) <current_regcache>: Rename to...
4 <regcaches>: ... this. Move doc here.
5 * regcache.c (regcache::current_regcache) Rename to...
6 (regcache::regcaches): ... this. Move doc to header.
7 (get_thread_arch_aspace_regcache): Update.
8 (regcache::regcache_thread_ptid_changed): Update.
9 (registers_changed_ptid): Update.
10 (class regcache_access) <current_regcache_size>: Rename to...
11 <regcaches_size>: ... this.
12 (current_regcache_test): Rename to...
13 (regcaches_test): ... this.
14 (_initialize_regcache): Update.
15
ed908db6
VC
162020-08-06 Victor Collod <vcollod@nvidia.com>
17
18 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
19
b5582ab7
KB
202020-08-05 Kevin Buettner <kevinb@redhat.com>
21
22 * corelow.c (core_target::build_file_mappings): Don't output
23 null pathname in warning.
24
ea946b86
SM
252020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
26
27 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
28 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
29 gdb.dwarf2/dw2-single-line-discriminators.exp,
30 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
31
57d02173
TT
322020-08-05 Tom Tromey <tromey@adacore.com>
33
34 PR rust/26197:
35 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
36 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
37 Fix off-by-one and type size errors in ordinary case.
38
5555c86d
TV
392020-08-05 Tom de Vries <tdevries@suse.de>
40
41 * gdbtypes.c (type_not_allocated, type_not_associated): Use
42 "prop->const_val () == 0" instead of "prop->const_val () != 0".
43
97916bfe
SM
442020-08-04 Simon Marchi <simon.marchi@efficios.com>
45
46 * frame.h (frame_id_p): Return bool.
47 (frame_id_artificial_p): Return bool.
48 (frame_id_eq): Return bool.
49 (has_stack_frames): Return bool.
50 (get_selected_frame): Fix typo in comment.
51 (get_frame_pc_if_available): Return bool.
52 (get_frame_address_in_block_if_available): Return bool.
53 (get_frame_func_if_available): Return bool.
54 (read_frame_register_unsigned): Return bool.
55 (get_frame_register_bytes): Return bool.
56 (safe_frame_unwind_memory): Return bool.
57 (deprecated_frame_register_read): Return bool.
58 (frame_unwinder_is): Return bool.
59 * frame.c (struct frame_info) <prev_arch::p>: Change type to
60 bool.
61 <this_id::p>: Likewise.
62 <prev_p>: Likewise.
63 (frame_stash_add): Return bool.
64 (get_frame_id): Use bool.
65 (frame_id_build_special) Use bool.
66 (frame_id_build_unavailable_stack): Use bool.
67 (frame_id_build): Use bool.
68 (frame_id_p): Return bool, use true/false instead of 1/0.
69 (frame_id_artificial_p): Likewise.
70 (frame_id_eq): Likewise.
71 (frame_id_inner): Likewise.
72 (get_frame_func_if_available): Likewise.
73 (read_frame_register_unsigned): Likewise.
74 (deprecated_frame_register_read): Likewise.
75 (get_frame_register_bytes): Likewise.
76 (has_stack_frames): Likewise.
77 (inside_main_func): Likewise.
78 (inside_entry_func): Likewise.
79 (get_frame_pc_if_available): Likewise.
80 (get_frame_address_in_block_if_available): Likewise.
81 (frame_unwinder_is): Likewise.
82 (safe_frame_unwind_memory): Likewise.
83 (frame_unwind_arch): Likewise.
84
fedfee88
SM
852020-08-04 Simon Marchi <simon.marchi@efficios.com>
86
87 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
88 type to cached_copy_status.
89 (fprintf_frame): Adjust.
90 (get_frame_func_if_available): Adjust.
91 (frame_cleanup_after_sniffer): Adjust.
92
6cfa9b59
MW
932020-08-04 Mark Wielaard <mark@klomp.org>
94
95 * MAINTAINERS (Write After Approval): Update email address.
96
66d6346b
SM
972020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
98
99 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
100 dynamic_prop::const_val.
101
8a6d5e35
SM
1022020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
103
104 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
105 dynamic_prop::kind.
106
51d6067d
SM
1072020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
108
109 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
110
b26e2ae7
JM
1112020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
112
113 * configure.tgt: Set gdb_sim for bpf-*-* targets.
114
39791af2
JM
1152020-08-04 Weimin Pan <weimin.pan@oracle.com>
116 Jose E. Marchesi <jose.marchesi@oracle.com>
117
118 * configure.tgt: Add entry for bpf-*-*.
119 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
120 (ALLDEPFILES): Add bpf-tdep.c.
121 * bpf-tdep.c: New file.
122 * MAINTAINERS: Add bpf target and maintainer.
123 * NEWS: Mention the support for the new target.
124
521894aa
TV
1252020-08-04 Tom de Vries <tdevries@suse.de>
126
127 PR symtab/23270
128 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
129 Error.
130
5d6356e9
JB
1312020-08-03 John Baldwin <jhb@FreeBSD.org>
132
133 * syscalls/freebsd.xml: Regenerate.
134
0cf82b81
JB
1352020-08-03 John Baldwin <jhb@FreeBSD.org>
136
137 * syscalls/update-freebsd.sh: Fix usage and year range.
138
8f34b746
TV
1392020-08-03 Tom de Vries <tdevries@suse.de>
140
141 PR symtab/26333
142 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
143 DW_LNE_lo_user/DW_LNE_hi_user range.
144
5e500d33
SM
1452020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
146
147 PR ada/26318
148 * ada-lang.c (ada_modulus): Return 0 if property is not of const
149 kind.
150
78319c15
TBA
1512020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
152
153 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
154
4c55e970
TBA
1552020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
156
157 * breakpoint.c (set_breakpoint_condition): Update the condition
158 expressions after checking that the input condition string parses
159 successfully and does not contain junk at the end.
160
1e620590
TBA
1612020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
162
163 * breakpoint.c (set_breakpoint_condition): Update the
164 condition string after parsing the new condition successfully.
165
c8693053
RO
1662020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
167
168 * proc-api.c (_STRUCTURED_PROC): Don't define.
169 * proc-events.c: Likewise.
170 * proc-flags.c: Likewise.
171 * proc-why.c: Likewise.
172 * procfs.c: Likewise.
173
174 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
175 * configure, config.in: Regenerate.
176
5a99adb8
TV
1772020-07-30 Tom de Vries <tdevries@suse.de>
178
179 PR build/26320
180 * ui-style.h (struct ui_file_style::color): Wrap m_value and
181 m_red/m_green/m_blue in a union.
182
8ba83e91
TV
1832020-07-29 Tom de Vries <tdevries@suse.de>
184
185 PR tdep/26280
186 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
187
f75a0693
AB
1882020-07-28 Tom Tromey <tromey@adacore.com>
189
190 PR symtab/26270:
191 * symtab.h (find_pc_partial_function_sym): Declare.
192 * cli/cli-cmds.c (disassemble_command): Use
193 find_pc_partial_function_sym. Check asm_demangle.
194 * blockframe.c (cache_pc_function_sym): New global.
195 (cache_pc_function_name): Remove.
196 (clear_pc_function_cache): Update.
197 (find_pc_partial_function_sym): New function, from
198 find_pc_partial_function.
199 (find_pc_partial_function): Rewrite using
200 find_pc_partial_function_sym.
201
16f3242c
TT
2022020-07-28 Tom Tromey <tromey@adacore.com>
203
204 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
205 help. Add usage.
206
4888741a
TT
2072020-07-28 Tom Tromey <tromey@adacore.com>
208
209 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
210 <DW_OP_GNU_variable_value>: Cast to address type.
211
4d46f402
KR
2122020-07-28 Kamil Rytarowski <n54@gmx.com>
213
214 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
215 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
216 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
217 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
218 (nbsd_get_siginfo_type): New.
219 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
220 (_initialize_nbsd_tdep): New.
221
d70f978b
L
2222020-07-28 H.J. Lu <hongjiu.lu@intel.com>
223
224 PR binutils/26301
225 * configure: Regenerated.
226
377170fa
L
2272020-07-28 H.J. Lu <hongjiu.lu@intel.com>
228
229 PR binutils/26301
230 * configure: Regenerated.
231
43d5901d
AB
2322020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
233
234 * python/py-frame.c: Remove 'user-regs.h' include.
235 (frapy_read_register): Rewrite to make use of
236 gdbpy_parse_register_id.
237 * python/py-registers.c (gdbpy_parse_register_id): New function,
238 moved here from python/py-unwind.c. Updated the return type, and
239 also accepts register descriptor objects.
240 * python/py-unwind.c: Remove 'user-regs.h' include.
241 (pyuw_parse_register_id): Moved to python/py-registers.c.
242 (unwind_infopy_add_saved_register): Update to use
243 gdbpy_parse_register_id.
244 (pending_framepy_read_register): Likewise.
245 * python/python-internal.h (gdbpy_parse_register_id): Declare.
246
14fa8fb3
AB
2472020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
248
249 * python/py-registers.c: Add 'user-regs.h' include.
250 (register_descriptor_iter_find): New function.
251 (register_descriptor_iterator_object_methods): New static global
252 methods array.
253 (register_descriptor_iterator_object_type): Add pointer to methods
254 array.
255
ddce1758
JB
2562020-07-27 John Baldwin <jhb@FreeBSD.org>
257
258 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
259 for all architectures on FreeBSD 11.3 and later.
260
a4089f52
TT
2612020-07-27 Tom Tromey <tromey@adacore.com>
262
263 * gcore.h (load_corefile): Don't declare.
264
95420d30
TV
2652020-07-27 Tom de Vries <tdevries@suse.de>
266
267 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
268 * config.in: Regenerate.
269 * configure: Regenerate.
270
05a6b8c2
EZ
2712020-07-26 Eli Zaretskii <eliz@gnu.org>
272
273 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
274 ws2tcpip.h. When checking whether socklen_t type is defined, use
275 ws2tcpip.h if it is available and sys/socket.h isn't.
276 * configure: Regenerate.
277 * config.in: Regenerate.
278
e79eb02f
AB
2792020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
280
281 PR fortran/23051
282 PR fortran/26139
283 * valops.c (value_ind): Pass address to
284 readjust_indirect_value_type.
285 * value.c (readjust_indirect_value_type): Make parameter
286 non-const, and add extra address parameter. Resolve original type
287 before using it.
288 * value.h (readjust_indirect_value_type): Update function
289 signature and comment.
290
876518dd
TV
2912020-07-25 Tom de Vries <tdevries@suse.de>
292
293 PR symtab/26243
294 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
295 entries.
296
f6720b1c
AM
2972020-07-24 Aaron Merey <amerey@redhat.com>
298
299 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
300 * configure: Rebuild.
301
513487e1
KB
3022020-07-23 Kevin Buettner <kevinb@redhat.com>
303
304 PR corefiles/26294
305 * corelow.c (_initialize_corelow): Add period to help text
306 for "maintenance print core-file-backed-mappings".
307
e7bc9db8
PA
3082020-07-23 Pedro Alves <pedro@palves.net>
309
310 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
311 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
312 meanwhile.
313 * frame.c (frame_cache_generation, get_frame_cache_generation):
314 New.
315 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
316 (get_prev_frame_if_no_cycle): On exception, don't touch
317 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
318 * frame.h (get_frame_cache_generation): Declare.
319
90fcc466
TV
3202020-07-23 Tom de Vries <tdevries@suse.de>
321
322 PR tui/26282
323 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
324 New default constructor.
325
78344df7
AB
3262020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
327
328 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
329 exclude non-statement entries.
330
b089853a
KB
3312020-07-22 Kevin Buettner <kevinb@redhat.com>
332
333 * NEWS (New commands): Mention new command
334 "maintenance print core-file-backed-mappings".
335
09c2f5d4
KB
3362020-07-22 Kevin Buettner <kevinb@redhat.com>
337
338 * corelow.c (gdbcmd.h): Include.
339 (core_target::info_proc_mappings): New method.
340 (get_current_core_target): New function.
341 (maintenance_print_core_file_backed_mappings): New function.
342 (_initialize_corelow): Add core-file-backed-mappings to
343 "maint print" commands.
344
9c5ec5c2
KB
3452020-07-22 Kevin Buettner <kevinb@redhat.com>
346
347 * linux-tdep.c (dump_note_entry_p): New function.
348 (linux_dump_mapping_p_ftype): New typedef.
349 (linux_find_memory_regions_full): Add new parameter,
350 should_dump_mapping_p.
351 (linux_find_memory_regions): Adjust call to
352 linux_find_memory_regions_full.
353 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
354 call to linux_find_memory_regions_full.
355
db082f59
KB
3562020-07-22 Kevin Buettner <kevinb@redhat.com>
357
358 * corelow.c (solist.h, unordered_map): Include.
359 (class core_target): Add field m_core_file_mappings and
360 method build_file_mappings.
361 (core_target::core_target): Call build_file_mappings.
362 (core_target::~core_target): Free memory associated with
363 m_core_file_mappings.
364 (core_target::build_file_mappings): New method.
365 (core_target::xfer_partial): Use m_core_file_mappings
366 for memory transfers.
367 * linux-tdep.c (linux_read_core_file_mappings): New
368 function.
369 (linux_core_info_proc_mappings): Rewrite to use
370 linux_read_core_file_mappings.
371 (linux_init_abi): Register linux_read_core_file_mappings.
372
7e183d27
KB
3732020-07-22 Kevin Buettner <kevinb@redhat.com>
374
375 * arch-utils.c (default_read_core_file_mappings): New function.
376 * arch-utils.c (default_read_core_file_mappings): Declare.
377 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
378 * gdbarch.h, gdbarch.c: Regenerate.
379
2735d421
KB
3802020-07-22 Kevin Buettner <kevinb@redhat.com>
381
382 PR corefiles/25631
383 * corelow.c (core_target:xfer_partial): Revise
384 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
385 case after first checking the stratum beneath the core
386 target.
387 (has_all_memory): Return true.
388 * target.c (raw_memory_xfer_partial): Revise comment
389 regarding use of has_all_memory.
390
e56cb451
KB
3912020-07-22 Kevin Buettner <kevinb@redhat.com>
392
393 * exec.h (section_table_xfer_memory): Revise declaration,
394 replacing section name parameter with an optional callback
395 predicate.
396 * exec.c (section_table_xfer_memory): Likewise.
397 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
398 of section_table_xfer_memory.
399
32fa152e
TT
4002020-07-22 Tom Tromey <tromey@adacore.com>
401
402 * mi/mi-cmd-stack.c (list_args_or_locals): Use
403 lookup_symbol_search_name.
404
a67a1c41
AB
4052020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
406
407 * python/py-registers.c (gdbpy_register_object_data_init): Remove
408 redundant local variable.
409 (gdbpy_get_register_descriptor): Extract descriptor vector as a
410 reference, not pointer, update code accordingly.
411
a7b4ff4f
SM
4122020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
413 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
414
415 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
416 * jit.c (jit_breakpoint_re_set_internal): Use the
417 `skip_jit_symbol_lookup` field.
418
2340e834
SM
4192020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
420 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
421
422 * jit.c (jit_read_descriptor): Define the descriptor address once,
423 use twice.
424 (jit_breakpoint_deleted): Move the declaration of the loop variable
425 `iter` into the loop header.
426 (jit_breakpoint_re_set_internal): Move the declaration of the local
427 variable `objf_data` to the first point of definition.
428 (jit_event_handler): Move the declaration of local variables
429 `code_entry`, `entry_addr`, and `objf` to their first point of use.
430 Rename `objf` to `jited`.
431
c1072906
SM
4322020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
433
434 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
435 Remove.
436 * jit.c (get_jiter_objfile_data): Update.
437
c8474dc3
TBA
4382020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
439 Simon Marchi <simon.marchi@polymtl.ca>
440
441 * jit.c (struct jit_program_space_data): Remove.
442 (jit_program_space_key): Remove.
443 (jiter_objfile_data::~jiter_objfile_data): Remove program space
444 stuff.
445 (get_jit_program_space_data): Remove.
446 (jit_breakpoint_deleted): Iterate on all of the program space's
447 objfiles.
448 (jit_inferior_init): Likewise.
449 (jit_breakpoint_re_set_internal): Likewise. Also change return
450 type to void.
451 (jit_breakpoint_re_set): Pass current_program_space to
452 jit_breakpoint_re_set_internal.
453
77208eb7
SM
4542020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
455
456 * jit.h (struct jiter_objfile_data) <cached_code_address,
457 jit_breakpoint>: Move to here from ...
458 * jit.c (jit_program_space_data): ... here.
459 (jiter_objfile_data::~jiter_objfile_data): Update.
460 (jit_breakpoint_deleted): Update.
461 (jit_breakpoint_re_set_internal): Update.
462
8c1c720f
SM
4632020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
464
465 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
466 checks.
467 (jit_read_descriptor): Remove NULL check.
468 (jit_event_handler): Add an assertion.
469
0e74a041
SM
4702020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
471
472 * jit.h (struct jit_objfile_data): Split into...
473 (struct jiter_objfile_data): ... this ...
474 (struct jited_objfile_data): ... and this.
475 * objfiles.h (struct objfile) <jit_data>: Remove.
476 <jiter_data, jited_data>: New fields.
477 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
478 (jiter_objfile_data::~jiter_objfile_data): ... this.
479 (get_jit_objfile_data): Rename to ...
480 (get_jiter_objfile_data): ... this.
481 (add_objfile_entry): Update.
482 (jit_read_descriptor): Use get_jiter_objfile_data.
483 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
484 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
485 (jit_inferior_exit_hook): Use objfile's jited_data field.
486
238b5c9f
SM
4872020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
488
489 * jit.h: Forward-declare `struct minimal_symbol`.
490 (struct jit_objfile_data): Migrate to here from jit.c; also add a
491 constructor, destructor, and an objfile* field.
492 * jit.c (jit_objfile_data): Remove.
493 (struct jit_objfile_data): Migrate from here to jit.h.
494 (jit_objfile_data::~jit_objfile_data): New destructor
495 implementation with code moved from free_objfile_data.
496 (free_objfile_data): Delete.
497 (get_jit_objfile_data): Update to use the jit_data field of objfile.
498 (jit_find_objf_with_entry_addr): Ditto.
499 (jit_inferior_exit_hook): Ditto.
500 (_initialize_jit): Remove the call to
501 register_objfile_data_with_cleanup.
502 * objfiles.h (struct objfile) <jit_data>: New field.
503
fe053b9e
TBA
5042020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
505
506 * jit.h: Forward-declare `struct objfile`.
507 (jit_event_handler): Add a second parameter, the JITer objfile.
508 * jit.c (jit_read_descriptor): Change the signature to take the
509 JITer objfile as an argument instead of the jit_program_space_data.
510 (jit_inferior_init): Update the call to jit_read_descriptor.
511 (jit_event_handler): Use the new JITer objfile argument when calling
512 jit_read_descriptor.
513 * breakpoint.c (handle_jit_event): Update the call to
514 jit_event_handler to pass the JITer objfile.
515
4cec0c66
JB
5162020-07-21 John Baldwin <jhb@FreeBSD.org>
517
518 * gdbarch.c: Regenerate.
519 * gdbarch.h: Regenerate.
520 * gdbarch.sh (handle_segmentation_fault): Remove method.
521 * infrun.c (handle_segmentation_fault): Remove.
522 (print_signal_received_reason): Remove call to
523 handle_segmentation_fault.
524
0e42f66a
JB
5252020-07-21 John Baldwin <jhb@FreeBSD.org>
526
527 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
528 Rename to sparc64_linux_report_signal_info and add siggnal
529 argument.
530 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
531 instead of sparc64_linux_handle_segmentation_fault.
532
77bdfeb2
JB
5332020-07-21 John Baldwin <jhb@FreeBSD.org>
534
535 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
536 i386_linux_report_signal_info instead of
537 i386_linux_handle_segmentation_fault.
538 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
539 to i386_linux_report_signal_info and add siggnal argument.
540 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
541 of i386_linux_handle_segmentation_fault.
542 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
543 to i386_linux_report_signal_info and add siggnal argument.
544
ad97bfc5
JB
5452020-07-21 John Baldwin <jhb@FreeBSD.org>
546
547 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
548 hook if present.
549
272bb05c
JB
5502020-07-21 John Baldwin <jhb@FreeBSD.org>
551
552 * gdbarch.c: Regenerate.
553 * gdbarch.h: Regenerate.
554 * gdbarch.sh (report_signal_info): New method.
555 * infrun.c (print_signal_received_reason): Invoke gdbarch
556 report_signal_info hook if present.
557
baf8791e
AB
5582020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
559
560 * python/py-registers.c : Add 'unordered_map' include.
561 (gdbpy_new_reggroup): Renamed to...
562 (gdbpy_get_reggroup): ...this. Update to only create register
563 group descriptors when needed.
564 (gdbpy_reggroup_iter_next): Update.
565
f7306dac
AB
5662020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
567
568 * python/py-registers.c (gdbpy_register_object_data): New static
569 global.
570 (gdbpy_register_object_data_init): New function.
571 (gdbpy_new_register_descriptor): Renamed to...
572 (gdbpy_get_register_descriptor): ...this, and update to reuse
573 existing register descriptors where possible.
574 (gdbpy_register_descriptor_iter_next): Update.
575 (gdbpy_initialize_registers): Register new gdbarch data.
576
05c309a8
SM
5772020-07-21 Simon Marchi <simon.marchi@efficios.com>
578
579 * linux-nat.c (stopped_pids): Make static.
580
d1fd641e
SM
5812020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
582
583 PR ada/26235
584 * gdbtypes.c (ada_discrete_type_low_bound,
585 ada_discrete_type_high_bound): Handle undefined bounds.
586
1de14d77
KR
5872020-07-21 Kamil Rytarowski <n54@gmx.com>
588
589 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
590 declaration.
591 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
592 function.
593
ed810cc7
JB
5942020-07-20 John Baldwin <jhb@FreeBSD.org>
595
596 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
597 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
598 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
599 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
600 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
601 method.
602
ae5369e7
LC
6032020-07-20 Ludovic Courtès <ludo@gnu.org>
604
605 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
606 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
607 which are deprecated in Guile 3.0.
608 * configure.ac (try_guile_versions): Add "guile-3.0".
609 * configure (try_guile_versions): Regenerate.
610 * NEWS: Update entry.
611
68cf161c
LC
6122020-07-20 Ludovic Courtès <ludo@gnu.org>
613 Doug Evans <dje@google.com>
614
615 PR gdb/21104
616 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
617 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
618 USING_GUILE_BEFORE_2_2.
619 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
620 Change type to 'scm_t_port_type *'.
621 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
622 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
623 parameter and honor it. Update callers.
624 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
625 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
626 functions.
627 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
628 USING_GUILE_BEFORE_2_2.
629 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
630 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
631 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
632 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
633 and 'SCM_PORT_TYPE'.
634 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
635 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
636 (gdbscm_memory_port_read, gdbscm_memory_port_write)
637 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
638 [!USING_GUILE_BEFORE_2_2]: New functions.
639 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
640 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
641 'gdbscm_memory_port_read'.
642 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
643 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
644 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
645 function.
646 (ioscm_init_memory_port): Remove.
647 (ioscm_init_memory_port_stream): New function
648 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
649 function.
650 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
651 Return scm_from_uint (0).
652 (gdbscm_set_memory_port_read_buffer_size_x)
653 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
654 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
655 Return scm_from_uint (0).
656 (gdbscm_set_memory_port_write_buffer_size_x)
657 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
658 * configure.ac (try_guile_versions): Add "guile-2.2".
659 * configure: Regenerate.
660 * NEWS: Add entry.
661
aee91db3
TT
6622020-07-18 Tom Tromey <tom@tromey.com>
663
664 * linux-nat.c (linux_multi_process): Remove.
665 (linux_nat_target::supports_multi_process): Return true.
666
0e267416
AB
6672020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
668
669 * arch/riscv.c (riscv_tdesc_cache): Change map type.
670 (riscv_lookup_target_description): Return pointer out of
671 unique_ptr.
672 * target-descriptions.c (allocate_target_description): Add
673 comment.
674 (target_desc_deleter::operator()): Likewise.
675 * target-descriptions.h (struct target_desc_deleter): Moved to
676 gdbsupport/tdesc.h.
677 (target_desc_up): Likewise.
678
f80c8ec4
TT
6792020-07-17 Tom Tromey <tromey@adacore.com>
680
681 * linux-nat.c (linux_nat_target::supports_non_stop)
682 (linux_nat_target::always_non_stop_p): Use "true".
683 (linux_nat_target::supports_disable_randomization): Use "true" and
684 "false".
685
d0ce17d8
CT
6862020-07-16 Caroline Tice <cmtice@google.com>
687
688 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
689 (RNGLIST_HEADER_SIZE64): New constant definition.
690 (struct dwop_section_names): Add rnglists_dwo.
691 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
692 (struct loclist_header): Rename to 'loclists_rnglists_header'.
693 (struct dwo_sections): Add rnglists field.
694 (read_attribut_reprocess): Add tag parameter.
695 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
696 (cu_debug_rnglists_section): New function (decl & definition).
697 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
698 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
699 die whose range is being checked; get rnglist section from
700 cu_debug_rnglists_section, to get from either objfile or dwo file as
701 appropriate. Add cases for DW_RLE_base_addressx,
702 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
703 the base address to DW_RLE_offset_pairs (not to all ranges), moving
704 test inside if-condition and updating complaint message.
705 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
706 dwarf2_rnglists_process.
707 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
708 dwarf2_ranges_process.
709 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
710 need_ranges_base and update comment appropriately. Also pass die tag
711 to dwarf2_ranges_read.
712 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
713 need_ranges_base and update comment appropriately. Also pass die tag
714 to dwarf2_ranges_process.
715 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
716 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
717 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
718 need_ranges_base and update comment appropriately. Also pass die tag
719 to read_attribute_reprocess and dwarf2_ranges_read.
720 (read_loclist_header): Rename function to read_loclists_rnglists_header,
721 and update function comment appropriately.
722 (read_loclist_index): Call read_loclists_rnglists_header instead of
723 read_loclist_header.
724 (read_rnglist_index): New function.
725 (read_attribute_reprocess): Add tag parameter. Add code for
726 DW_FORM_rnglistx, passing tag to read_rnglist_index.
727 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
728
3dcc261c
AB
7292020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
730
731 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
732 being resolved.
733
ccb9eba6
AB
7342020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
735
736 * arch-utils.c (show_architecture): Update formatting of messages.
737
cf88be68
SM
7382020-07-12 Simon Marchi <simon.marchi@efficios.com>
739
740 * gdbtypes.h (struct type) <bounds>: Handle array and string
741 types.
742 * ada-lang.c (assign_aggregate): Use type::bounds on
743 array/string type.
744 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
745 * c-varobj.c (c_number_of_children): Likewise.
746 (c_describe_child): Likewise.
747 * eval.c (evaluate_subexp_for_sizeof): Likewise.
748 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
749 (f_type_print_base): Likewise.
750 * f-valprint.c (f77_array_offset_tbl): Likewise.
751 (f77_get_upperbound): Likewise.
752 (f77_print_array_1): Likewise.
753 * guile/scm-type.c (gdbscm_type_range): Likewise.
754 * m2-typeprint.c (m2_array): Likewise.
755 (m2_is_long_set_of_type): Likewise.
756 * m2-valprint.c (get_long_set_bounds): Likewise.
757 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
758 * python/py-type.c (typy_range): Likewise.
759 * rust-lang.c (rust_internal_print_type): Likewise.
760 * type-stack.c (type_stack::follow_types): Likewise.
761 * valarith.c (value_subscripted_rvalue): Likewise.
762 * valops.c (value_cast): Likewise.
763
509971ae
SM
7642020-07-12 Simon Marchi <simon.marchi@efficios.com>
765
766 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
767 callers to use the equivalent accessor methods.
768
107406b7
SM
7692020-07-12 Simon Marchi <simon.marchi@efficios.com>
770
771 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
772 (struct type) <bit_stride>: New method.
773 (TYPE_BIT_STRIDE): Remove.
774 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
775
bb789949
SM
7762020-07-12 Simon Marchi <simon.marchi@efficios.com>
777
778 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
779 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
780 callers to use the equivalent accessor methods instead.
781
39498edb
SM
7822020-07-12 Simon Marchi <simon.marchi@efficios.com>
783
784 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
785 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
786 callers to use the equivalent accessor methods instead.
787
3b606f38
SM
7882020-07-12 Simon Marchi <simon.marchi@efficios.com>
789
790 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
791 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
792 to use dynamic_prop::kind.
793
064d9cb9
SM
7942020-07-12 Simon Marchi <simon.marchi@efficios.com>
795
796 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
797 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
798 to get the bound property's kind and check against
799 PROP_UNDEFINED.
800
5537ddd0
SM
8012020-07-12 Simon Marchi <simon.marchi@efficios.com>
802
803 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
804 all callers to use type::range_bounds followed by
805 dynamic_prop::{low,high}.
806
8c2e4e06
SM
8072020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
808
809 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
810 const_val, set_const_val, baton, set_locexpr, set_loclist,
811 set_addr_offset, variant_parts, set_variant_parts,
812 original_type, set_original_type>: New methods.
813 <kind>: Rename to...
814 <m_kind>: ... this. Update all users to use the new methods
815 instead.
816 <data>: Rename to...
817 <m_data>: ... this. Update all users to use the new methods
818 instead.
819
7c6f2712
SM
8202020-07-12 Simon Marchi <simon.marchi@efficios.com>
821
822 * gdbtypes.c (get_discrete_bounds): Return failure if
823 the range type's bounds are not both defined and constant
824 values.
825 (get_array_bounds): Update comment. Remove undefined bound check.
826
599088e3
SM
8272020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
828
829 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
830 the type::bounds method directly.
831
c4dfcb36
SM
8322020-07-12 Simon Marchi <simon.marchi@efficios.com>
833
834 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
835 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
836 are used to set the range type's bounds to use set_bounds.
837
0a278aa7
PW
8382020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
839
840 * exec.c (_initialize_exec): Update exec-file-mismatch help.
841
cce20f10
PA
8422020-07-10 Pedro Alves <pedro@palves.net>
843
844 * gdbthread.h (inferior_ref): Define.
845 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
846 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
847 * thread.c
848 (scoped_restore_current_thread::restore):
849 Adjust to gdb::ref_ptr.
850 (scoped_restore_current_thread::~scoped_restore_current_thread):
851 Remove manual decref handling.
852 (scoped_restore_current_thread::scoped_restore_current_thread):
853 Adjust to use
854 inferior_ref::new_reference/thread_info_ref::new_reference.
855 Incref the thread before calling get_frame_id instead of after.
856 Let TARGET_CLOSE_ERROR propagate.
857
6d7aa592
PA
8582020-07-10 Pedro Alves <pedro@palves.net>
859
860 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
861 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
862 NOT_AVAILABLE_ERROR.
863 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
864 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
865
b3e3a4c1
SM
8662020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
867 Pedro Alves <pedro@palves.net>
868
869 PR gdb/26199
870 * infrun.c (threads_are_resumed_pending_p): Delete.
871 (do_target_wait): Remove threads_are_executing and
872 threads_are_resumed_pending_p checks from the inferior_matches
873 lambda. Update comments.
874
d6cc5d98
PA
8752020-07-10 Pedro Alves <pedro@palves.net>
876
877 PR gdb/26199
878 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
879 executing threads.
880
7d3badc6
PA
8812020-07-10 Pedro Alves <pedro@palves.net>
882
883 PR gdb/26199
884 * infrun.c (handle_no_resumed): Handle multiple targets.
885
42bd97a6
PA
8862020-07-10 Pedro Alves <pedro@palves.net>
887
888 PR gdb/26199
889 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
890 target_is_async_p.
891
43667cc6
PA
8922020-07-10 Pedro Alves <pedro@palves.net>
893
894 PR gdb/26199
895 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
896 threads, not all threads.
897
96118d11
PA
8982020-07-10 Pedro Alves <pedro@palves.net>
899
900 PR gdb/26199
901 * remote.c (remote_target::open_1): Pass remote target pointer as
902 data to create_async_event_handler.
903 (remote_async_inferior_event_handler): Mark async event handler
904 before returning if the remote target still has either pending
905 events or unacknowledged notifications.
906
54904d81
JB
9072020-07-10 John Baldwin <jhb@FreeBSD.org>
908
909 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
910 declaration.
911 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
912 function.
913
f37e5866
JB
9142020-07-09 John Baldwin <jhb@FreeBSD.org>
915
916 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
917 inferior_ptid.
918
fc238d4a
JB
9192020-07-09 John Baldwin <jhb@FreeBSD.org>
920
921 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
922 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
923 AT_FREEBSD_PS_STRINGS.
924
6e2469ff
HD
9252020-07-08 Hannes Domani <ssbssa@yahoo.de>
926
927 * auto-load.c (auto_load_objfile_script_1): Convert drive part
928 of debugfile path on Windows.
929
d1076c41
JB
9302020-07-08 John Baldwin <jhb@FreeBSD.org>
931
932 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
933 argument to 'data'.
934
15f3b077
TT
9352020-07-08 Tom Tromey <tromey@adacore.com>
936
937 * ada-lang.c (ada_exception_message_1): Use read_memory.
938
9fc501fd
AB
9392020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
940
941 PR python/22748
942 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
943 special handling for inline frames.
944 * findvar.c (value_of_register_lazy): Skip inline frames when
945 creating lazy register values.
946 * frame.c (frame_id_computed_p): Delete definition.
947 * frame.h (frame_id_computed_p): Delete declaration.
948
64cb3757
AB
9492020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
950
951 * NEWS: Mention additions to Python API.
952 * python/py-arch.c (archpy_register_groups): New function.
953 (arch_object_methods): Add 'register_groups' method.
954 * python/py-registers.c (reggroup_iterator_object): New struct.
955 (reggroup_object): New struct.
956 (gdbpy_new_reggroup): New function.
957 (gdbpy_reggroup_to_string): New function.
958 (gdbpy_reggroup_name): New function.
959 (gdbpy_reggroup_iter): New function.
960 (gdbpy_reggroup_iter_next): New function.
961 (gdbpy_new_reggroup_iterator): New function
962 (gdbpy_initialize_registers): Register new types.
963 (reggroup_iterator_object_type): Define new Python type.
964 (gdbpy_reggroup_getset): New static global.
965 (reggroup_object_type): Define new Python type.
966 * python/python-internal.h
967
0f767f94
AB
9682020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
969
970 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
971 * python/py-arch.c (archpy_registers): New function.
972 (arch_object_methods): Add 'registers' method.
973 * python/py-registers.c: New file.
974 * python/python-internal.h
975 (gdbpy_new_register_descriptor_iterator): Declare.
976 (gdbpy_initialize_registers): Declare.
977 * python/python.c (do_start_initialization): Call
978 gdbpy_initialize_registers.
979 * NEWS: Mention additions to the Python API.
980
87dbc774
AB
9812020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
982
983 * NEWS: Mention new Python API method.
984 * python/py-unwind.c (pending_framepy_architecture): New function.
985 (pending_frame_object_methods): Add architecture method.
986
3bc98c0c
AB
9872020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
988
989 * gdbarch.c: Regenerate.
990 * gdbarch.h: Regenerate.
991 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
992 (gdbarch_data): Use internal_error for the case where
993 deprecated_set_gdbarch_data was originally needed.
994 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
995 and use passed in obstack.
996 (libunwind_frame_set_descr): Should no longer get back NULL from
997 gdbarch_data.
998 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
999 type.
1000 * user-regs.c (user_regs_init): Update parameters, and use passed
1001 in obstack.
1002 (user_reg_add): Should no longer get back NULL from gdbarch_data.
1003 (_initialize_user_regs): Register as a pre-init gdbarch data type.
1004
d8cc8af6
TV
10052020-07-06 Tom de Vries <tdevries@suse.de>
1006
1007 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
1008 End-Of-Sequence in lte_is_less_than.
1009 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
1010 "gdb: Don't reorder line table entries too much when sorting".
1011
947f7597
TV
10122020-07-06 Tom de Vries <tdevries@suse.de>
1013
1014 PR tui/26205
1015 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
1016
1e7c1b22
TV
10172020-07-05 Tom de Vries <tdevries@suse.de>
1018
1019 PR build/26187
1020 * inferior.h (struct infcall_suspend_state_deleter): If available, use
1021 std::uncaught_exceptions instead of deprecated
1022 std::uncaught_exception.
1023
a36158ec
SM
10242020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1025
1026 * macroexp.h (macro_stringify): Return
1027 gdb::unique_xmalloc_ptr<char>.
1028 * macroexp.c (macro_stringify): Likewise.
1029 * macrotab.c (fixup_definition): Update.
1030
14d960c8
SM
10312020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1032
1033 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
1034 (lex_one_token): Update.
1035 * macroexp.c (struct macro_buffer) <release>: Return
1036 gdb::unique_xmalloc_ptr<char>.
1037 (macro_stringify): Update.
1038 (macro_expand): Update.
1039 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
1040 * macroexp.h (macro_expand_next): Likewise.
1041
211d5b1c
SM
10422020-07-02 Simon Marchi <simon.marchi@efficios.com>
1043
1044 * macroexp.h (macro_lookup_ftype): Remove.
1045 (macro_expand, macro_expand_once, macro_expand_next): Remove
1046 lookup function parameters, add scope parameter.
1047 * macroexp.c (scan, substitute_args, expand, maybe_expand,
1048 macro_expand, macro_expand_once, macro_expand_next): Likewise.
1049 * macroscope.h (standard_macro_lookup): Change parameter type
1050 to macro_scope.
1051 * macroscope.c (standard_macro_lookup): Likewise.
1052 * c-exp.y (lex_one_token): Update.
1053 * macrocmd.c (macro_expand_command): Likewise.
1054 (macro_expand_once_command): Likewise.
1055
b1a35af2
SM
10562020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1057
1058 * inf-loop.c (inferior_event_handler): Remove client_data param.
1059 * inf-loop.h (inferior_event_handler): Likewise.
1060 * infcmd.c (step_1): Adjust.
1061 * infrun.c (proceed): Adjust.
1062 (fetch_inferior_event): Remove client_data param.
1063 (infrun_async_inferior_event_handler): Adjust.
1064 * infrun.h (fetch_inferior_event): Remove `void *` param.
1065 * linux-nat.c (handle_target_event): Adjust.
1066 * record-btrace.c (record_btrace_handle_async_inferior_event):
1067 Adjust.
1068 * record-full.c (record_full_async_inferior_event_handler):
1069 Adjust.
1070 * remote.c (remote_async_inferior_event_handler): Adjust.
1071
1cdf9e33
TT
10722020-07-01 Tom Tromey <tom@tromey.com>
1073
1074 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
1075 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
1076
32c1e210
TT
10772020-07-01 Tom Tromey <tom@tromey.com>
1078
1079 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
1080 tui_gen_win_info.
1081 (tui_win_info::make_window): Merge with
1082 tui_gen_win_info::make_window.
1083 (tui_win_info::make_visible): Move from tui_gen_win_info.
1084 * tui/tui-win.c (tui_win_info::max_width): Move from
1085 tui_gen_win_info.
1086 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
1087 type.
1088 <window_factory>: Likewise.
1089 * tui/tui-layout.c (tui_win_info::resize): Move from
1090 tui_gen_win_info.
1091 (make_standard_window): Change return type.
1092 (get_locator_window, tui_get_window_by_name): Likewise.
1093 (tui_layout_window::apply): Remove a cast.
1094 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
1095 (struct tui_win_info): Merge with tui_gen_win_info.
1096 (struct tui_gen_win_info): Remove.
1097
a30cb6da
TT
10982020-07-01 Tom Tromey <tom@tromey.com>
1099
1100 * tui/tui-stack.h (struct tui_locator_window): Derive from
1101 tui_win_info.
1102 <do_scroll_horizontal, do_scroll_vertical>: New methods.
1103 <can_box>: New method.
1104
1eb2161f
TT
11052020-07-01 Tom Tromey <tom@tromey.com>
1106
1107 * tui/tui-stack.h (struct tui_locator_window): Remove body.
1108
7134f2eb
TT
11092020-07-01 Tom Tromey <tom@tromey.com>
1110
1111 * tui/tui-regs.c (tui_data_window::display_registers_from)
1112 (tui_data_window::display_registers_from)
1113 (tui_data_window::first_data_item_displayed)
1114 (tui_data_window::delete_data_content_windows): Update.
1115 (tui_data_window::refresh_window, tui_data_window::no_refresh):
1116 Remove.
1117 (tui_data_window::check_register_values): Update.
1118 (tui_data_item_window::rerender): Add parameters. Update.
1119 (tui_data_item_window::refresh_window): Remove.
1120 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
1121 virtual.
1122 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
1123 tui_gen_win_info.
1124 <refresh_window, max_height, min_height>: Remove.
1125 <rerender>: Add parameters.
1126 <x, y, visible>: New members.
1127 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
1128 <m_item_width>: New member.
1129
22b7b041
TT
11302020-07-01 Tom Tromey <tom@tromey.com>
1131
1132 * tui/tui-regs.c (tui_data_window::show_register_group)
1133 (tui_data_window::check_register_values): Update.
1134 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
1135 from item_no.
1136
c9753adb
TT
11372020-07-01 Tom Tromey <tom@tromey.com>
1138
1139 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
1140 useless "if".
1141
9ab26b4a
TT
11422020-07-01 Tom Tromey <tom@tromey.com>
1143
1144 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
1145 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
1146
e555083f
TT
11472020-07-01 Tom Tromey <tom@tromey.com>
1148
1149 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
1150 * tui/tui-winsource.h (enum tui_line_or_address_kind)
1151 (struct tui_line_or_address): Move from tui-data.h.
1152 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
1153 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
1154 (tui_cmd_window, tui_source_window_base, tui_source_window)
1155 (tui_disasm_window): Don't declare.
1156 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
1157 to tui-winsource.h.
1158 (SINGLE_KEY): Move to tui-stack.c.
1159
7a02bab7
TT
11602020-07-01 Tom Tromey <tom@tromey.com>
1161
1162 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
1163 std::string.
1164 * tui/tui-regs.c (class tab_expansion_file): New.
1165 (tab_expansion_file::write): New method.
1166 (tui_register_format): Change return type. Use
1167 tab_expansion_file.
1168 (tui_get_register, tui_data_window::display_registers_from)
1169 (tui_data_item_window::rerender): Update.
1170 * tui/tui-io.h (tui_expand_tabs): Don't declare.
1171 * tui/tui-io.c (tui_expand_tabs): Remove.
1172
ea68593b
TT
11732020-07-01 Tom Tromey <tom@tromey.com>
1174
1175 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
1176
a8caed5d
FS
11772020-07-01 Fangrui Song <maskray@google.com>
1178
1179 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
1180
9cdf9820
AKS
11812020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1182
1183 * dwarf2/read.c (set_die_type): Removed conditions to restrict
1184 forms for DW_AT_associated and DW_AT_allocated attributes,
1185 which is already checked in function attr_to_dynamic_prop.
1186
a1520ad8
TT
11872020-06-30 Tom Tromey <tromey@adacore.com>
1188
1189 * dwarf2/read.c (quirk_rust_enum): Correctly call
1190 alloc_rust_variant for default-less enum.
1191
5ac58899
TT
11922020-06-30 Tom Tromey <tromey@adacore.com>
1193
1194 PR build/26183:
1195 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
1196 gdb::to_string.
1197
19b187a9
SM
11982020-06-29 Simon Marchi <simon.marchi@efficios.com>
1199
1200 * gdbarch.sh (displaced_step_copy_insn): Update doc.
1201 * gdbarch.h: Re-generate.
1202
cd4c4c07
TT
12032020-06-28 Tom Tromey <tom@tromey.com>
1204
1205 * command.h (cmd_types): Remove.
1206 (cmd_type): Don't declare.
1207 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
1208 typedef.
1209 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
1210 * cli/cli-decode.c (cmd_type): Remove.
1211
05779d57
PA
12122020-06-27 Pedro Alves <palves@redhat.com>
1213
1214 * fork-child.c (prefork_hook): Adjust.
1215 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
1216 Delete.
1217 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
1218 * inferior.c (inferior::set_tty, inferior::tty): New methods.
1219 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
1220 Remove declarations.
1221 (struct inferior) <set_tty, tty>: New methods.
1222 (struct inferior) <terminal>: Rename to ...
1223 (struct inferior) <m_terminal>: ... this and make private.
1224 * main.c (captured_main_1): Adjust.
1225 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
1226 (mi_cmd_inferior_tty_show): Adjust.
1227 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
1228 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
1229
1776e3e5
NA
12302020-06-26 Nick Alcock <nick.alcock@oracle.com>
1231
1232 * configure.ac: Add --enable-libctf: handle --disable-static
1233 properly.
1234 * acinclude.m4: sinclude ../config/enable.m4.
1235 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
1236 (LIBCTF): Substitute in.
1237 (CTF_DEPS): New, likewise.
1238 (CLIBS): libctf needs symbols from libbfd: move earlier.
1239 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
1240 flags.
1241 * ctfread.c: Surround in ENABLE_LIBCTF.
1242 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
1243 * configure: Regenerate.
1244 * config.in: Likewise.
1245
58373b80
SM
12462020-06-25 Simon Marchi <simon.marchi@efficios.com>
1247
1248 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
1249
277474ee
SM
12502020-06-25 Simon Marchi <simon.marchi@efficios.com>
1251
1252 * inferior.h (struct inferior) <terminal>: Change type to
1253 gdb::unique_xmalloc_ptr<char>.
1254 * inferior.c (inferior::~inferior): Don't free inf->terminal.
1255 * infcmd.c (set_inferior_io_terminal): Don't free terminal
1256 field, adjust to unique pointer.
1257 (get_inferior_io_terminal): Adjust to unique pointer.
1258
6d74da72
AB
12592020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1260
1261 * riscv-tdep.c (riscv_print_registers_info): Loop over all
1262 registers, not just the known core set of registers.
1263
2e52d038
AB
12642020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1265
1266 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
1267 fflags, frm, and fcsr registers.
1268 (riscv_register_reggroup_p): Remove unknown CSRs from save and
1269 restore groups.
1270 (riscv_tdesc_unknown_reg): New function.
1271 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
1272 tdesc_use_registers.
1273 * riscv-tdep.h (struct gdbarch_tdep): Add
1274 unknown_csrs_first_regnum, unknown_csrs_count,
1275 duplicate_fflags_regnum, duplicate_frm_regnum, and
1276 duplicate_fcsr_regnum fields.
1277
be64fd07
AB
12782020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1279
1280 * target-descriptions.c (tdesc_use_registers): Add new parameter a
1281 callback, use the callback (when not null) to help number unknown
1282 registers.
1283 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
1284 (tdesc_use_registers): Add extra parameter to declaration.
1285
3b9fce96
AB
12862020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1287
1288 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
1289 in the file.
1290 (class riscv_pending_register_alias): Likewise.
1291 (riscv_register_feature::register_info): Change 'required_p' field
1292 to 'required', and change its type. Add 'check' member function.
1293 (riscv_register_feature::register_info::check): Define new member
1294 function.
1295 (riscv_xreg_feature): Change initialisation of 'required' field.
1296 (riscv_freg_feature): Likewise.
1297 (riscv_virtual_feature): Likewise.
1298 (riscv_csr_feature): Likewise.
1299 (riscv_check_tdesc_feature): Take extra parameter, the csr
1300 tdesc_feature, rewrite the function to use the new
1301 riscv_register_feature::register_info::check function.
1302 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
1303
865bad26
AB
13042020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1305
1306 * features/Makefile: Remove all references to the deleted files
1307 below.
1308 * features/riscv/32bit-csr.c: Deleted.
1309 * features/riscv/32bit-csr.xml: Deleted.
1310 * features/riscv/64bit-csr.c: Deleted.
1311 * features/riscv/64bit-csr.xml: Deleted.
1312 * features/riscv/rebuild-csr-xml.sh: Deleted.
1313
ed69cbc8
AB
13142020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1315
1316 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
1317 whitespace error for declaration of names member variable.
1318 (struct riscv_register_feature): Add new prefer_first_name member
1319 variable, and fix whitespace error in declaration of registers.
1320 (riscv_xreg_feature): Initialize prefer_first_name field.
1321 (riscv_freg_feature): Likewise.
1322 (riscv_virtual_feature): Likewise.
1323 (riscv_csr_feature): Likewise.
1324 (riscv_register_name): Expand on comments. Remove register name
1325 modifications for CSR and virtual registers.
1326
4445e8f5
AB
13272020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1328
1329 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
1330 errors.
1331
767a879e
AB
13322020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1333
1334 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
1335 riscv-opc.h.
1336 (class riscv_pending_register_alias): New class.
1337 (riscv_check_tdesc_feature): Take vector of pending aliases and
1338 populate it as appropriate.
1339 (riscv_setup_register_aliases): Delete.
1340 (riscv_gdbarch_init): Create vector of pending aliases and pass it
1341 to riscv_check_tdesc_feature in all cases. Use the vector to
1342 create the register aliases.
1343
bb6e55f3
RO
13442020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1345
1346 * sol2-tdep.c (sol2_static_transform_name): Remove.
1347 (sol2_init_abi): Don't register it.
1348 * gdbarch.sh (static_transform_name): Remove.
1349 * gdbarch.c, gdbarch.h: Regenerate.
1350
1351 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
1352 gdbarch_static_transform_name.
1353 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
1354 * stabsread.c (define_symbol) <'X'>: Remove.
1355 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
1356 handling.
1357 <'V'>: Likewise.
1358 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
1359 <'S'>: Remove call to gdbarch_static_transform_name.
1360
c6d36836
RO
13612020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1362
1363 * procfs.c (procfs_pre_trace): New function.
1364 (procfs_target::create_inferior): Pass it to fork_inferior.
1365
a7e6196b
RO
13662020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1367
1368 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
1369 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
1370 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
1371 sol2-tdep.o, sparc-sol2-tdep.o.
1372 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
1373 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
1374 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
1375 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
1376
d412e696
RO
13772020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1378
1379 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
1380 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
1381 Call sol2_init_abi.
1382 Remove calls to set_gdbarch_skip_solib_resolver,
1383 set_gdbarch_core_pid_to_str.
1384 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
1385 (i386_sol2_static_transform_name): Remove.
1386 (i386_sol2_init_abi): Call sol2_init_abi.
1387 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1388 set_gdbarch_static_transform_name,
1389 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1390 Use sol2_sigtramp_p.
1391 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
1392 (sol2_sigtramp_p): New function.
1393 (sol2_static_transform_name): New function.
1394 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
1395 (sol2_init_abi): New function.
1396 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
1397 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
1398 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
1399 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
1400 (sparc_sol2_static_transform_name): Remove.
1401 (sparc32_sol2_init_abi): Call sol2_init_abi.
1402 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1403 set_gdbarch_static_transform_name,
1404 set_gdbarch_skip_solib_resolver,
1405 set_gdbarch_core_pid_to_str.
1406 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
1407 (sparc_sol2_static_transform_name): Remove
1408 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
1409 call sol2_sigtramp_p.
1410 (sparc64_sol2_init_abi): Call sol2_init_abi.
1411 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1412 set_gdbarch_static_transform_name,
1413 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1414
a8654e7d
PW
14152020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1416
1417 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
1418 * exec.c (validate_exec_file): If from_tty, set both
1419 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
1420 * symfile.c (symbol_file_add_with_addrs): if always_confirm
1421 and from_tty, unconditionally ask a confirmation.
1422
caa7fd04
AB
14232020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1424
1425 * target-descriptions.c (tdesc_architecture_name): Protect against
1426 NULL pointer dereference.
1427 (maint_print_xml_tdesc_cmd): New function.
1428 (_initialize_target_descriptions): Register new 'maint print
1429 xml-tdesc' command and give it the filename completer.
1430 * NEWS: Mention new 'maint print xml-tdesc' command.
1431
fbf42f4e
AB
14322020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1433
1434 * target-descriptions.c (class tdesc_compatible_info): New class.
1435 (struct target_desc): Change type of compatible vector.
1436 (tdesc_compatible_p): Update for change in type of
1437 target_desc::compatible.
1438 (tdesc_compatible_info_list): New function.
1439 (tdesc_compatible_info_arch_name): New function.
1440 (tdesc_add_compatible): Update for change in type of
1441 target_desc::compatible.
1442 (print_c_tdesc::visit_pre): Likewise.
1443
20821f4e
AB
14442020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1445
1446 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
1447 whitespace to underscore.
1448 (maint_print_c_tdesc_cmd): Use fake filename for target
1449 descriptions that came from the target.
1450 (_initialize_target_descriptions): Add filename command completion
1451 for 'maint print c-tdesc'.
1452
1fb5ee62
SM
14532020-06-23 Simon Marchi <simon.marchi@efficios.com>
1454
1455 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
1456 lines.
1457
fc3ecb3e
SM
14582020-06-23 Simon Marchi <simon.marchi@efficios.com>
1459
1460 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
1461 lines.
1462 (dwarf2_find_location_expression): Likewise.
1463 (call_site_parameter_matches): Likewise.
1464 (dwarf2_compile_expr_to_ax): Likewise.
1465 (disassemble_dwarf_expression): Likewise.
1466 (loclist_describe_location): Likewise.
1467
236ef034
PA
14682020-06-23 Pedro Alves <palves@redhat.com>
1469
1470 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
1471 progspace-and-thread.h. Include scoped-mock-context.h instead.
1472 (register_to_value_test): Use scoped_mock_context.
1473 * regcache.c: Include "scoped-mock-context.h".
1474 (cooked_read_test): Don't error out if a target is already pushed.
1475 Use scoped_mock_context. Adjust.
1476 * scoped-mock-context.h: New file.
1477
39e7ecca
AB
14782020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1479
1480 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
1481 initializer.
1482 (ada_language::is_string_type_p): New member function.
1483 * c-lang.c (c_language_data): Delete la_is_string_type_p
1484 initializer.
1485 (cplus_language_data): Likewise.
1486 (asm_language_data): Likewise.
1487 (minimal_language_data): Likewise.
1488 * d-lang.c (d_language_data): Likewise.
1489 * f-lang.c (f_is_string_type_p): Delete function, implementation
1490 moved to f_language::is_string_type_p.
1491 (f_language_data): Delete la_is_string_type_p initializer.
1492 (f_language::is_string_type_p): New member function,
1493 implementation from f_is_string_type_p.
1494 * go-lang.c (go_is_string_type_p): Delete function, implementation
1495 moved to go_language::is_string_type_p.
1496 (go_language_data): Delete la_is_string_type_p initializer.
1497 (go_language::is_string_type_p): New member function,
1498 implementation from go_is_string_type_p.
1499 * language.c (language_defn::is_string_type_p): Define new member
1500 function.
1501 (default_is_string_type_p): Make static, add comment copied from
1502 header file.
1503 (unknown_language_data): Delete la_is_string_type_p initializer.
1504 (unknown_language::is_string_type_p): New member function.
1505 (auto_language_data): Delete la_is_string_type_p initializer.
1506 (auto_language::is_string_type_p): New member function.
1507 * language.h (language_data): Delete la_is_string_type_p field.
1508 (language_defn::is_string_type_p): Declare new function.
1509 (default_is_string_type_p): Delete desclaration, move comment to
1510 definition.
1511 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
1512 moved to m2_language::is_string_type_p.
1513 (m2_language_data): Delete la_is_string_type_p initializer.
1514 (m2_language::is_string_type_p): New member function,
1515 implementation from m2_is_string_type_p.
1516 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
1517 initializer.
1518 * opencl-lang.c (opencl_language_data): Likewise.
1519 * p-lang.c (pascal_is_string_type_p): Delete function,
1520 implementation moved to pascal_language::is_string_type_p.
1521 (pascal_language_data): Delete la_is_string_type_p initializer.
1522 (pascal_language::is_string_type_p): New member function,
1523 implementation from pascal_is_string_type_p.
1524 * rust-lang.c (rust_is_string_type_p): Delete function,
1525 implementation moved to rust_language::is_string_type_p.
1526 (rust_language_data): Delete la_is_string_type_p initializer.
1527 (rust_language::is_string_type_p): New member function,
1528 implementation from rust_is_string_type_p.
1529 * valprint.c (val_print_scalar_or_string_type_p): Update call to
1530 is_string_type_p.
1531
4ffc13fb
AB
15322020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1533
1534 * ada-lang.c (ada_language_data): Delete la_print_typedef
1535 initializer.
1536 (ada_language::print_typedef): New member function.
1537 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
1538 (cplus_language_data): Likewise.
1539 (asm_language_data): Likewise.
1540 (minimal_language_data): Likewise.
1541 * d-lang.c (d_language_data): Likewise.
1542 * f-lang.c (f_language_data): Likewise.
1543 (f_language::print_typedef): New member function.
1544 * go-lang.c (go_language_data): Delete la_print_typedef
1545 initializer.
1546 * language.c (language_defn::print_typedef): Define member
1547 function.
1548 (unknown_language_data): Delete la_print_typedef initializer.
1549 (unknown_language::print_typedef): New member function.
1550 (auto_language_data): Delete la_print_typedef initializer.
1551 (auto_language::print_typedef): New member function.
1552 * language.h (language_data): Delete la_print_typedef field.
1553 (language_defn::print_typedef): Declare new member function.
1554 (LA_PRINT_TYPEDEF): Update call to print_typedef.
1555 (default_print_typedef): Delete declaration.
1556 * m2-lang.c (m2_language_data): Delete la_print_typedef
1557 initializer.
1558 (m2_language::print_typedef): New member function.
1559 * objc-lang.c (objc_language_data): Delete la_print_typedef
1560 initializer.
1561 * opencl-lang.c (opencl_language_data): Likewise.
1562 * p-lang.c (pascal_language_data): Likewise.
1563 (pascal_language::print_typedef): New member function.
1564 * rust-lang.c (rust_print_typedef): Delete function,
1565 implementation moved to rust_language::print_typedef.
1566 (rust_language): Delete la_print_typedef initializer.
1567 (rust_language::print_typedef): New member function,
1568 implementation from rust_print_typedef.
1569 * typeprint.c (default_print_typedef): Delete.
1570
d711ee67
AB
15712020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1572
1573 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
1574 (ada_language::printstr): New member function.
1575 * c-lang.c (c_language_data): Delete la_printstr initializer.
1576 (cplus_language_data): Likewise.
1577 (asm_language_data): Likewise.
1578 (minimal_language_data): Likewise.
1579 * d-lang.c (d_language_data): Likewise.
1580 * f-lang.c (f_printstr): Rename to f_language::printstr.
1581 (f_language_data): Delete la_printstr initializer.
1582 (f_language::printstr): New member function, implementation from
1583 f_printstr.
1584 * go-lang.c (go_language_data): Delete la_printstr initializer.
1585 * language.c (language_defn::printstr): Define new member
1586 function.
1587 (unk_lang_printstr): Delete.
1588 (unknown_language_data): Delete la_printstr initializer.
1589 (unknown_language::printstr): New member function.
1590 (auto_language_data): Delete la_printstr initializer.
1591 (auto_language::printstr): New member function.
1592 * language.h (language_data): Delete la_printstr field.
1593 (language_defn::printstr): Declare new member function.
1594 (LA_PRINT_STRING): Update call to printstr.
1595 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
1596 (m2_language_data): Delete la_printstr initializer.
1597 (m2_language::printstr): New member function, implementation from
1598 m2_printstr.
1599 * objc-lang.c (objc_language_data): Delete la_printstr
1600 initializer.
1601 * opencl-lang.c (opencl_language_data): Likewise.
1602 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
1603 (pascal_language_data): Delete la_printstr initializer.
1604 (pascal_language::printstr): New member function, implementation
1605 from pascal_printstr.
1606 * p-lang.h (pascal_printstr): Delete declaration.
1607 * rust-lang.c (rust_printstr): Update header comment.
1608 (rust_language_data): Delete la_printstr initializer.
1609 (rust_language::printstr): New member function.
1610
52b50f2c
AB
16112020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1612
1613 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
1614 (ada_language::printchar): New member function.
1615 * c-lang.c (c_language_data): Delete la_printchar initializer.
1616 (cplus_language_data): Likewise.
1617 (asm_language_data): Likewise.
1618 (minimal_language_data): Likewise.
1619 * d-lang.c (d_language_data): Likewise.
1620 * f-lang.c (f_printchar): Rename to f_language::printchar.
1621 (f_language_data): Delete la_printchar initializer.
1622 (f_language::printchar): New member function, implementation from
1623 f_printchar.
1624 * go-lang.c (go_language_data): Delete la_printchar initializer.
1625 * language.c (unk_lang_printchar): Delete.
1626 (language_defn::printchar): Define new member function.
1627 (unknown_language_data): Delete la_printchar initializer.
1628 (unknown_language::printchar): New member function.
1629 (auto_language_data): Delete la_printchar initializer.
1630 (auto_language::printchar): New member function.
1631 * language.h (language_data): Delete la_printchar field.
1632 (language_defn::printchar): Declare new member function.
1633 (LA_PRINT_CHAR): Update call to printchar.
1634 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
1635 (m2_language::printchar): New member function.
1636 * objc-lang.c (objc_language_data): Delete la_printchar
1637 initializer.
1638 * opencl-lang.c (opencl_language_data): Likewise.
1639 * p-lang.c (pascal_language_data): Delete la_printchar
1640 initializer.
1641 (pascal_language::printchar): New member function.
1642 * rust-lang.c (rust_printchar): Rename to
1643 rust_language::printchar.
1644 (rust_language_data): Delete la_printchar initializer.
1645 (rust_language::printchar): New member function, implementation
1646 from rust_printchar.
1647
ec8cec5b
AB
16482020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1649
1650 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
1651 (ada_language_data): Delete la_emitchar initializer.
1652 (ada_language::emitchar): New member function, implementation from
1653 emit_char.
1654 * c-lang.c (c_language_data): Delete la_emitchar initializer.
1655 (cplus_language_data): Likewise.
1656 (asm_language_data): Likewise.
1657 (minimal_language_data): Likewise.
1658 * d-lang.c (d_language_data): Likewise.
1659 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
1660 (f_language_data): Delete la_emitchar initializer.
1661 (f_language::emitchar): New member function, implementation from
1662 f_emit_char.
1663 * go-lang.c (go_language_data): Delete la_emitchar initializer.
1664 * language.c (unk_lang_emit_char): Delete.
1665 (language_defn::emitchar): New member function definition.
1666 (unknown_language_data): Delete la_emitchar initializer.
1667 (unknown_language::emitchar): New member function.
1668 (auto_language_data): Delete la_emitchar initializer.
1669 (auto_language::emitchar): New member function.
1670 * language.h (language_data): Delete la_emitchar field.
1671 (language_defn::emitchar): New member field declaration.
1672 (LA_EMIT_CHAR): Update call to emitchar.
1673 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
1674 (m2_language_data): Delete la_emitchar initializer.
1675 (m2_language::emitchar): New member function, implementation from
1676 m2_emit_char.
1677 * objc-lang.c (objc_language_data): Delete la_emitchar
1678 initializer.
1679 * opencl-lang.c (opencl_language_data): Likewise.
1680 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
1681 (pascal_language_data): Delete la_emitchar initializer.
1682 (pascal_language::emitchar): New member function, implementation
1683 from pascal_emit_char.
1684 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
1685 (rust_language_data): Delete la_emitchar initializer.
1686 (rust_language::emitchar): New member function, implementation
1687 from rust_emitchar.
1688
1bf9c363
AB
16892020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1690
1691 * ada-lang.c (resolve): Rename to ada_language::post_parser.
1692 (ada_language_data): Delete la_post_parser initializer.
1693 (ada_language::post_parser): New member function.
1694 * c-lang.c (c_language_data): Delete la_post_parser initializer.
1695 (cplus_language_data): Likewise.
1696 (asm_language_data): Likewise.
1697 (minimal_language_data): Likewise.
1698 * d-lang.c (d_language_data): Likewise.
1699 * f-lang.c (f_language_data): Likewise.
1700 * go-lang.c (go_language_data): Likewise.
1701 * language.c (unknown_language_data): Likewise.
1702 (auto_language_data): Likewise.
1703 * language.h (language_data): Delete la_post_parser field.
1704 (language_defn::post_parser): New member function.
1705 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
1706 * objc-lang.c (objc_language_data): Likewise.
1707 * opencl-lang.c (opencl_language_data): Likewise.
1708 * p-lang.c (pascal_language_data): Likewise.
1709 * parse.c (parse_exp_in_context): Update call to post_parser.
1710 (null_post_parser): Delete definition.
1711 * parser-defs.h (null_post_parser): Delete declaration.
1712 * rust-lang.c (rust_language_data): Delete la_post_parser
1713 initializer.
1714
87afa652
AB
17152020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1716
1717 * ada-lang.c (parse): Rename to ada_language::parser.
1718 (ada_language_data): Delete la_parser initializer.
1719 (ada_language::parser): New member function, implementation from
1720 parse.
1721 * c-lang.c (c_language_data): Delete la_parser initializer.
1722 (cplus_language_data): Likewise.
1723 (asm_language_data): Likewise.
1724 (minimal_language_data): Likewise.
1725 * d-lang.c (d_language_data): Likewise.
1726 (d_language::parser): New member function.
1727 * f-lang.c (f_language_data): Delete la_parser initializer.
1728 (f_language::parser): New member function.
1729 * go-lang.c (go_language_data): Delete la_parser initializer.
1730 (go_language::parser): New member function.
1731 * language.c (unk_lang_parser): Delete.
1732 (language_defn::parser): Define new member function.
1733 (unknown_language_data): Delete la_parser initializer.
1734 (unknown_language::parser): New member function.
1735 (auto_language_data): Delete la_parser initializer.
1736 (auto_language::parser): New member function.
1737 * language.h (language_data): Delete la_parser field.
1738 (language_defn::parser): Declare new member function.
1739 * m2-lang.c (m2_language_data): Delete la_parser initializer.
1740 (m2_language::parser): New member function.
1741 * objc-lang.c (objc_language_data): Delete la_parser initializer.
1742 * opencl-lang.c (opencl_language_data): Likewise.
1743 * p-lang.c (pascal_language_data): Likewise.
1744 (pascal_language::parser): New member function.
1745 * parse.c (parse_exp_in_context): Update call to parser.
1746 * rust-lang.c (rust_language_data): Delete la_parser initializer.
1747 (rust_language::parser): New member function.
1748
37825800
AB
17492020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1750
1751 * top.c (print_gdb_configuration): Print --with-python-libdir
1752 configuration value.
1753
5b860c93
PW
17542020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1755
1756 * NEWS: Mention change to the alias command.
1757
cf00cd6f
PW
17582020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1759
1760 * cli/cli-cmds.c (lookup_cmd_for_default_args)
1761 (alias_command_completer)
1762 (make_alias_options_def_group): New functions.
1763 (alias_opts, alias_option_defs): New struct and array.
1764 (alias_usage_error): Update usage.
1765 (alias_command): Handles optional DEFAULT-ARGS... arguments.
1766 Use option framework.
1767 (_initialize_cli_cmds): Update alias command help.
1768 Update aliases command help.
1769 (show_user):
1770 Add NULL for new default_args lookup_cmd argument.
1771 (valid_command_p): Rename to validate_aliased_command.
1772 Add NULL for new default_args lookup_cmd argument. Verify that the
1773 aliased_command has no default args.
1774 * cli/cli-decode.c (help_cmd): Show aliases definitions.
1775 (lookup_cmd_1, lookup_cmd): New argument default_args.
1776 (add_alias_cmd):
1777 Add NULL for new default_args lookup_cmd argument.
1778 (print_help_for_command): Show default args under the layout
1779 alias some_alias = some_aliased_cmd some_alias_default_arg.
1780 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
1781 xfree default_args in destructor.
1782 * cli/cli-script.c (process_next_line, do_define_command):
1783 Add NULL for new default_args lookup_cmd argument.
1784 * command.h: Declare new default_args argument in lookup_cmd
1785 and lookup_cmd_1.
1786 * completer.c (complete_line_internal_1):
1787 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1788 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
1789 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
1790 Likewise.
1791 * infcmd.c (_initialize_infcmd): Likewise.
1792 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
1793 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
1794 * python/py-param.c (add_setshow_generic): Likewise.
1795 * remote.c (_initialize_remote): Likewise.
1796 * top.c (execute_command): Prepend default_args if command has some.
1797 (set_verbose):
1798 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1799 * tracepoint.c (validate_actionline, encode_actions_1):
1800 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1801
bd920864
TBA
18022020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1803
1804 * jit.c (jit_read_descriptor): Use bool as the return type.
1805 (jit_breakpoint_re_set_internal): Use bool as the return type.
1806 Invert the return value logic; return true if the jit breakpoint
1807 has been successfully initialized.
1808 (jit_inferior_init): Update the call to
1809 jit_breakpoint_re_set_internal.
1810
f8098322
PA
18112020-06-22 Pedro Alves <palves@redhat.com>
1812
1813 PR gdb/25939
1814 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
1815 Use the current inferior instead. Don't return
1816 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
1817 wait again.
1818 * sol-thread.c (sol_thread_target::wait): Don't reference
1819 inferior_ptid.
1820 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
1821 (sol_update_thread_list_callback): Use the current inferior's pid
1822 instead of inferior_ptid.
1823
196535a6
RO
18242020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1825
1826 * procfs.c: Cleanup many comments.
1827
1828 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
1829 (AFTER_WATCHFLAG): Replace by value.
1830
1831 (MAIN_PROC_NAME_FORMAT): Inline ...
1832 (create_procinfo): ... here.
1833
1834 (procfs_debug_inferior): Remove SYS_exec handling.
1835 (syscall_is_exec): Likewise.
1836 (procfs_set_exec_trap): Likewise.
1837
1838 (syscall_is_lwp_exit): Inline in callers.
1839 (syscall_is_exit): Likewise.
1840 (syscall_is_exec): Likewise.
1841 (syscall_is_lwp_create): Likewise.
1842
1843 (invalidate_cache): Remove #if 0 code.
1844
1845 (make_signal_thread_runnable): Remove.
1846 (procfs_target::resume): Remove #if 0 code.
1847
cf6f3e86
RO
18482020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1849
1850 PR gdb/25939
1851 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
1852 call ...
1853 (procfs_target::create_inferior): ... here.
1854
48e9cc84
PW
18552020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1856
1857 * exec.c (validate_exec_file): Ensure the build-id is up to
1858 date by calling reopen_exec_file (that checks file timestamp
1859 to decide to re-read the file).
1860
3922b302
PA
18612020-06-18 Pedro Alves <palves@redhat.com>
1862
1863 PR gdb/25412
1864 * gdbthread.h (delete_thread, delete_thread_silent)
1865 (find_thread_ptid): Update comments.
1866 * thread.c (current_thread_): New global.
1867 (is_current_thread): Move higher, and reimplement.
1868 (inferior_thread): Reimplement.
1869 (set_thread_exited): Use bool. Add assertions.
1870 (add_thread_silent): Simplify thread-reuse handling by always
1871 calling delete_thread.
1872 (delete_thread): Remove intro comment.
1873 (find_thread_ptid): Skip exited threads.
1874 (switch_to_thread_no_regs): Write to current_thread_.
1875 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
1876 INFERIOR_PTID. Clear current_thread_.
1877
6dbdab44
PA
18782020-06-18 Pedro Alves <palves@redhat.com>
1879
1880 * aix-thread.c (pd_update): Use switch_to_thread.
1881
2da4b788
PA
18822020-06-18 Pedro Alves <palves@redhat.com>
1883
1884 * ravenscar-thread.c (ravenscar_thread_target): Update.
1885 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
1886 (ravenscar_thread_target::add_active_thread): ... this. Don't
1887 set m_base_ptid here. Update to avoid referencing inferior_ptid.
1888 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
1889
50838d1b
PA
18902020-06-18 Pedro Alves <palves@redhat.com>
1891
1892 * nat/windows-nat.c (current_windows_thread): Remove.
1893 * nat/windows-nat.h (current_windows_thread): Remove.
1894 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
1895 Adjust.
1896 (display_selectors): Adjust to fetch the current
1897 windows_thread_info based on inferior_ptid.
1898 (fake_create_process): No longer write to current_windows_thread.
1899 (windows_nat_target::get_windows_debug_event):
1900 Don't set inferior_ptid or current_windows_thread.
1901 (windows_nat_target::wait): Adjust to not rely on
1902 current_windows_thread.
1903 (do_initial_windows_stuff): Now a method of windows_nat_target.
1904 Switch to the last_ptid thread.
1905 (windows_nat_target::attach): Adjust.
1906 (windows_nat_target::detach): Use switch_to_no_thread instead of
1907 writing to inferior_ptid directly.
1908 (windows_nat_target::create_inferior): Adjust.
1909
31ce04e9
PA
19102020-06-18 Pedro Alves <palves@redhat.com>
1911
1912 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
1913
1ee1a363
PA
19142020-06-18 Pedro Alves <palves@redhat.com>
1915
1916 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
1917 after creating it, instead of writing to inferior_ptid. Don't
1918 write to inferior_ptid.
1919
6d350754
PA
19202020-06-18 Pedro Alves <palves@redhat.com>
1921
1922 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
1923
5d971d48
PA
19242020-06-18 Pedro Alves <palves@redhat.com>
1925
1926 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
1927 it, instead of writing to inferior_ptid.
1928
86e57d1b
PA
19292020-06-18 Pedro Alves <palves@redhat.com>
1930
1931 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
1932 to inferior_ptid.
1933
f2e1c129
PA
19342020-06-18 Pedro Alves <palves@redhat.com>
1935
1936 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
1937 instead of writing to inferior_ptid directly.
1938
60db1b85
PA
19392020-06-18 Pedro Alves <palves@redhat.com>
1940
1941 * corelow.c (core_target::close): Use switch_to_no_thread instead
1942 of writing to inferior_ptid directly.
1943 (add_to_thread_list, core_target_open): Use switch_to_thread
1944 instead of writing to inferior_ptid directly.
1945
fe7d6a8d
PA
19462020-06-18 Pedro Alves <palves@redhat.com>
1947
1948 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
1949 inferior_ptid.
1950 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
1951 inferior_ptid.
1952 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
1953 inferior_ptid directly.
1954 (darwin_nat_target::init_thread_list): Switch to thread, instead
1955 of writing to inferior_ptid.
1956 (darwin_nat_target::attach): Don't write to inferior_ptid.
1957 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
1958
975f8708
PA
19592020-06-18 Pedro Alves <palves@redhat.com>
1960
1961 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
1962 thread.
1963 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
1964 Instead use switch_to_thread.
1965 (gnu_nat_target::detach): Use switch_to_no_thread
1966 instead of writing to inferior_ptid directly. Used passed-in
1967 inferior instead of looking up the inferior by pid.
1968
1a204730
PA
19692020-06-18 Pedro Alves <palves@redhat.com>
1970
1971 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
1972 inferior_ptid.
1973
ebe84f23
PA
19742020-06-18 Pedro Alves <palves@redhat.com>
1975
1976 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
1977 inferior_ptid.
1978 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
1979 thread.
1980 (nto_procfs_target::detach): Avoid referencing
1981 inferior_ptid. Use switch_to_no_thread instead of writing to
1982 inferior_ptid directly.
1983 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
1984 instead of writing to inferior_ptid directly.
1985 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
1986 to thread.
1987
191f02e5
PA
19882020-06-18 Pedro Alves <palves@redhat.com>
1989
1990 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
1991 after creating it, instead of writing to inferior_ptid.
1992 (gdbsim_target_open): Use switch_to_no_thread instead of writing
1993 to inferior_ptid directly.
1994 (gdbsim_target::wait): Don't write to inferior_ptid.
1995
0ac55310
PA
19962020-06-18 Pedro Alves <palves@redhat.com>
1997
1998 * remote.c (remote_target::remote_notice_new_inferior): Use
1999 switch_to_thread instead of writing to inferior_ptid directly.
2000 (remote_target::add_current_inferior_and_thread): Use
2001 switch_to_no_thread instead of writing to inferior_ptid directly.
2002 (extended_remote_target::attach): Use switch_to_inferior_no_thread
2003 and switch_to_thread instead of using set_current_inferior or
2004 writing to inferior_ptid directly.
2005
5233f39b
PA
20062020-06-18 Pedro Alves <palves@redhat.com>
2007
2008 * tracectf.c (ctf_target_open): Switch to added thread instead of
2009 writing to inferior_ptid directly.
2010 (ctf_target::close): Use switch_to_no_thread instead of writing to
2011 inferior_ptid directly.
2012
087e161b
PA
20132020-06-18 Pedro Alves <palves@redhat.com>
2014
2015 * tracefile-tfile.c (tfile_target_open): Don't write to
2016 inferior_ptid directly, instead switch to added thread.
2017 (tfile_target::close): Use switch_to_no_thread instead of writing
2018 to inferior_ptid directly.
2019
7fb43e53
PA
20202020-06-18 Pedro Alves <palves@redhat.com>
2021
2022 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
2023 (procfs_target::detach): Use switch_to_no_thread
2024 instead of writing to inferior_ptid directly.
2025 (do_attach): Change return type to void. Switch to the added
2026 thread.
2027 (procfs_target::create_inferior): Switch to the added thread.
2028 (procfs_do_thread_registers): Don't write to inferior_ptid.
2029
18493a00
PA
20302020-06-18 Pedro Alves <palves@redhat.com>
2031
2032 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
2033 of writing to inferior_ptid.
2034 (scoped_restore_exited_inferior): Delete.
2035 (handle_vfork_child_exec_or_exit): Simplify using
2036 scoped_restore_current_pspace_and_thread. Use switch_to_thread
2037 instead of writing to inferior_ptid.
2038 (THREAD_STOPPED_BY): Delete.
2039 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
2040 (thread_stopped_by_hw_breakpoint): Delete.
2041 (save_waitstatus): Use
2042 scoped_restore_current_thread+switch_to_thread, and call
2043 target_stopped_by_watchpoint instead of
2044 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
2045 instead of thread_stopped_by_sw_breakpoint, and
2046 target_stopped_by_hw_breakpoint instead of
2047 thread_stopped_by_hw_breakpoint.
2048 (handle_inferior_event)
2049 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
2050 inferior_ptid directly, nor
2051 set_current_inferior/set_current_program_space. Use
2052 switch_to_thread / switch_to_inferior_no_thread instead.
2053
a0776b13
PA
20542020-06-18 Pedro Alves <palves@redhat.com>
2055
2056 * target.c (generic_mourn_inferior): Use switch_to_no_thread
2057 instead of writing to inferior_ptid.
2058
6155c136
PA
20592020-06-18 Pedro Alves <palves@redhat.com>
2060
2061 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
2062 added thread.
2063 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
2064 to the added thread.
2065 (inf_ptrace_target::detach_success): Use switch_to_no_thread
2066 instead of writing to inferior_ptid.
2067
c5316fc6
PA
20682020-06-18 Pedro Alves <palves@redhat.com>
2069
2070 * gdbarch-selftests.c: Include "progspace-and-thread.h".
2071 (register_to_value_test): Mock a program_space too. Heap-allocate
2072 the address space. Don't write to inferior_ptid. Use
2073 switch_to_thread instead.
2074
8df01799
PA
20752020-06-18 Pedro Alves <palves@redhat.com>
2076
2077 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
2078 Delete.
2079 (find_signalled_thread()): New, factored out from
2080 linux_make_corefile_notes and adjusted to handle exited threads.
2081 (linux_make_corefile_notes): Adjust to use the new
2082 find_signalled_thread.
2083
41792d68
PA
20842020-06-18 Pedro Alves <palves@redhat.com>
2085
2086 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
2087 of saving/restoring inferior_ptid.
2088
612f258a
TT
20892020-06-17 Tom Tromey <tom@tromey.com>
2090
2091 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
2092 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
2093 declare.
2094 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
2095
efb763a5
SM
20962020-06-15 Simon Marchi <simon.marchi@efficios.com>
2097
2098 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
2099 of partial symtabs.
2100
2951f6c0
SM
21012020-06-17 Simon Marchi <simon.marchi@efficios.com>
2102
2103 * regformats/reg-arm.dat: Remove.
2104 * regformats/reg-bfin.dat: Remove.
2105 * regformats/reg-cris.dat: Remove.
2106 * regformats/reg-crisv32.dat: Remove.
2107 * regformats/reg-m32r.dat: Remove.
2108 * regformats/reg-tilegx.dat: Remove.
2109 * regformats/reg-tilegx32.dat: Remove.
2110
7d458ea5
SM
21112020-06-17 Simon Marchi <simon.marchi@efficios.com>
2112
2113 * features/Makefile (WHICH): Remove arm files.
2114 * regformats/arm/arm-with-iwmmxt.dat: Remove.
2115 * regformats/arm/arm-with-neon.dat: Remove.
2116 * regformats/arm/arm-with-vfpv2.dat: Remove.
2117 * regformats/arm/arm-with-vfpv3.dat: Remove.
2118
3af96c0d
SM
21192020-06-17 Simon Marchi <simon.marchi@efficios.com>
2120
2121 * features/Makefile (XMLTOC): Remove rx.xml.
2122
b25e22fd
PA
21232020-06-17 Pedro Alves <palves@redhat.com>
2124
2125 * gdbthread.h (thread_control_state) <trap_expected> Update
2126 comments.
2127
a78a19b1
AB
21282020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2129
2130 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
2131 ada_language::lookup_symbol_nonlocal.
2132 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
2133 (ada_language::lookup_symbol_nonlocal): New member function,
2134 implementation from ada_lookup_symbol_nonlocal.
2135 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
2136 initializer.
2137 (cplus_language_data): Delete la_lookup_symbol_nonlocal
2138 initializer.
2139 (cplus_language::lookup_symbol_nonlocal): New member function.
2140 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
2141 (minimal_language_data) Likewise.
2142 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
2143 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
2144 initializer.
2145 (d_language::lookup_symbol_nonlocal): New member function.
2146 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
2147 initializer.
2148 (f_language::lookup_symbol_nonlocal): New member function.
2149 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
2150 initializer.
2151 * language.c (unknown_language_data): Likewise.
2152 (auto_language_data): Likewise.
2153 * language.h (language_data): Delete la_lookup_symbol_nonlocal
2154 field.
2155 (language_defn::lookup_symbol_nonlocal): New member function.
2156 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
2157 initializer.
2158 * objc-lang.c (objc_language_data): Likewise.
2159 * opencl-lang.c (opencl_language_data): Likewise.
2160 * p-lang.c (pascal_language_data): Likewise.
2161 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
2162 rust_language::lookup_symbol_nonlocal.
2163 (rust_language_data): Delete la_lookup_symbol_nonlocal
2164 initializer.
2165 (rust_language::lookup_symbol_nonlocal): New member function,
2166 implementation from rust_lookup_symbol_nonlocal.
2167 * symtab.c (lookup_symbol_aux): Update call to
2168 lookup_symbol_nonlocal.
2169 (basic_lookup_symbol_nonlocal): Rename to...
2170 (language_defn::lookup_symbol_nonlocal): ...this, and update
2171 header comment. Remove language_defn parameter, and replace with
2172 uses of `this'.
2173 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
2174
ebe2334e
AB
21752020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2176
2177 * ada-lang.c (ada_language_data): Delete la_value_print_inner
2178 initializer.
2179 (ada_language::value_print_inner): New member function.
2180 * c-lang.c (c_language_data): Delete la_value_print_inner
2181 initializer.
2182 (cplus_language_data): Likewise.
2183 (asm_language_data): Likewise.
2184 (minimal_language_data): Likewise.
2185 * d-lang.c (d_language_data): Likewise.
2186 (d_language::value_print_inner): New member function.
2187 * f-lang.c (f_language_data): Delete la_value_print_inner
2188 initializer.
2189 (f_language::value_print_inner): New member function.
2190 * f-lang.h (f_value_print_innner): Rename to...
2191 (f_value_print_inner): ...this (note spelling of 'inner').
2192 * f-valprint.c (f_value_print_innner): Rename to...
2193 (f_value_print_inner): ...this (note spelling of 'inner').
2194 * go-lang.c (go_language_data): Delete la_value_print_inner
2195 initializer.
2196 (go_language::value_print_inner): New member function.
2197 * language.c (language_defn::value_print_inner): Define new member
2198 function.
2199 (unk_lang_value_print_inner): Delete.
2200 (unknown_language_data): Delete la_value_print_inner initializer.
2201 (unknown_language::value_print_inner): New member function.
2202 (auto_language_data): Delete la_value_print_inner initializer.
2203 (auto_language::value_print_inner): New member function.
2204 * language.h (language_data): Delete la_value_print_inner field.
2205 (language_defn::value_print_inner): Delcare new member function.
2206 * m2-lang.c (m2_language_data): Delete la_value_print_inner
2207 initializer.
2208 (m2_language::value_print_inner): New member function.
2209 * objc-lang.c (objc_language_data): Delete la_value_print_inner
2210 initializer.
2211 * opencl-lang.c (opencl_language_data): Likewise.
2212 * p-lang.c (pascal_language_data): Likewise.
2213 (pascal_language::value_print_inner): New member function.
2214 * rust-lang.c (rust_language_data): Delete la_value_print_inner
2215 initializer.
2216 (rust_language::value_print_inner): New member function.
2217 * valprint.c (do_val_print): Update call to value_print_inner.
2218
a1d1fa3e
AB
22192020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2220
2221 * ada-lang.c (ada_language_data): Delete la_value_print
2222 initializer.
2223 (ada_language::value_print): New member function.
2224 * c-lang.c (c_language_data): Delete la_value_print initializer.
2225 (cplus_language_data): Likewise.
2226 (asm_language_data): Likewise.
2227 (minimal_language_data): Likewise.
2228 * d-lang.c (d_language_data): Likewise.
2229 * f-lang.c (f_language_data): Likewise.
2230 * go-lang.c (go_language_data): Likewise.
2231 * language.c (unk_lang_value_print): Delete.
2232 (language_defn::value_print): Define new member function.
2233 (unknown_language_data): Delete la_value_print initializer.
2234 (unknown_language::value_print): New member function.
2235 (auto_language_data): Delete la_value_print initializer.
2236 (auto_language::value_print): New member function.
2237 * language.h (language_data): Delete la_value_print field.
2238 (language_defn::value_print): Declare new member function.
2239 (LA_VALUE_PRINT): Update call to value_print.
2240 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
2241 * objc-lang.c (objc_language_data): Likewise.
2242 * opencl-lang.c (opencl_language_data): Likewise.
2243 * p-lang.c (pascal_language_data): Likewise.
2244 (pascal_language::value_print): New member function.
2245 * rust-lang.c (rust_language_data): Delete la_value_print
2246 initializer.
2247
f16a9f57
AB
22482020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2249
2250 * ada-lang.c (ada_watch_location_expression): Rename to
2251 ada_language::watch_location_expression.
2252 (ada_language_data): Delete la_watch_location_expression
2253 initializer.
2254 (ada_language::watch_location_expression): New member function,
2255 implementation from ada_watch_location_expression.
2256 * breakpoint.c (watch_command_1): Update call to
2257 watch_location_expression.
2258 * c-lang.c (c_watch_location_expression): Rename to
2259 language_defn::watch_location_expression.
2260 (c_language_data): Delete la_watch_location_expression
2261 initializer.
2262 (cplus_language_data): Likewise.
2263 (asm_language_data): Likewise.
2264 (minimal_language_data): Likewise.
2265 * c-lang.h (c_watch_location_expression): Delete declaration.
2266 * d-lang.c (d_language_data): Delete la_watch_location_expression
2267 initializer.
2268 * f-lang.c (f_language_data): Likewise.
2269 * go-lang.c (go_language_data): Likewise.
2270 * language.c (language_defn::watch_location_expression): Member
2271 function implementation from c_watch_location_expression.
2272 (unknown_language_data): Delete la_watch_location_expression
2273 initializer.
2274 (auto_language_data): Likewise.
2275 * language.h (language_data): Delete la_watch_location_expression
2276 field.
2277 (language_defn::watch_location_expression): Declare new member
2278 function.
2279 * m2-lang.c (m2_language_data): Delete
2280 la_watch_location_expression initializer.
2281 * objc-lang.c (objc_language_data): Likewise.
2282 * opencl-lang.c (opencl_language_data): Likewise.
2283 * p-lang.c (pascal_language_data): Likewise.
2284 * rust-lang.c (rust_watch_location_expression): Rename to
2285 rust_language::watch_location_expression.
2286 (rust_language_data): Delete la_watch_location_expression
2287 initializer.
2288 (rust_language::watch_location_expression): New member function,
2289 implementation from rust_watch_location_expression.
2290
7e56227d
AB
22912020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2292
2293 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
2294 ada_language::collect_symbol_completion_matches.
2295 (ada_language_data): Delete la_collect_symbol_completion_matches
2296 initializer.
2297 (ada_language::collect_symbol_completion_matches): New member
2298 function, implementation from
2299 ada_collect_symbol_completion_matches.
2300 * c-lang.c (c_language_data): Delete
2301 la_collect_symbol_completion_matches initializer.
2302 (cplus_language_data): Likewise.
2303 (asm_language_data): Likewise.
2304 (minimal_language_data): Likewise.
2305 * d-lang.c (d_language_data): Likewise.
2306 * f-lang.c (f_collect_symbol_completion_matches): Rename to
2307 f_language::collect_symbol_completion_matches.
2308 (f_language_data): Delete la_collect_symbol_completion_matches
2309 initializer.
2310 (f_language::collect_symbol_completion_matches) New member
2311 function, implementation from f_collect_symbol_completion_matches.
2312 * go-lang.c (go_language_data): Delete
2313 la_collect_symbol_completion_matches initializer.
2314 * language.c (unknown_language_data): Likewise.
2315 (auto_language_data): Likewise.
2316 * language.h (language_data): Delete
2317 la_collect_symbol_completion_matches field.
2318 (language_defn::collect_symbol_completion_matches): New member
2319 function.
2320 * m2-lang.c (m2_language_data): Delete
2321 la_collect_symbol_completion_matches initializer.
2322 * objc-lang.c (objc_language_data): Likewise.
2323 * opencl-lang.c (opencl_language_data): Likewise.
2324 * p-lang.c (pascal_language_data): Likewise.
2325 * rust-lang.c (rust_language_data): Likewise.
2326 * symtab.c (default_collect_symbol_completion_matches): Delete.
2327 (collect_symbol_completion_matches): Update call to
2328 collect_symbol_completion_matches.
2329 (collect_symbol_completion_matches_type): Likewise.
2330 * symtab.h (default_collect_symbol_completion_matches): Delete
2331 declaration.
2332
53fc67f8
AB
23332020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2334
2335 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
2336 (ada_language_data): Delete la_word_break_characters initializer.
2337 (ada_language::word_break_characters): New member function.
2338 * c-lang.c (c_language_data): Delete la_word_break_characters
2339 initializer.
2340 (cplus_language_data): Likewise.
2341 (asm_language_data): Likewise.
2342 (minimal_language_data): Likewise.
2343 * completer.c: Update global comment.
2344 (advance_to_expression_complete_word_point): Update call to
2345 word_break_characters.
2346 (complete_files_symbols): Likewise.
2347 (complete_line_internal_1): Likewise.
2348 (default_completer_handle_brkchars): Likewise.
2349 (skip_quoted_chars): Likewise.
2350 * d-lang.c (d_language_data): Delete la_word_break_characters
2351 initializer.
2352 * f-lang.c (f_word_break_characters): Delete.
2353 (f_language_data): Delete la_word_break_characters initializer.
2354 (f_language::word_break_characters): New member function.
2355 * go-lang.c (go_language_data): Delete la_word_break_characters
2356 initializer.
2357 * language.c (unknown_language_data): Likewise.
2358 (auto_language_data): Likewise.
2359 * language.h (default_word_break_characters): Move declaration to
2360 earlier in the file.
2361 (language_data): Delete la_word_break_characters field.
2362 (language_defn::word_break_characters): New member function.
2363 * m2-lang.c (m2_language_data): Delete la_word_break_characters
2364 initializer.
2365 * objc-lang.c (objc_language_data): Likewise.
2366 * opencl-lang.c (opencl_language_data): Likewise.
2367 * p-lang.c (pascal_language_data): Likewise.
2368 * rust-lang.c (rust_language_data): Likewise.
2369
c9debfb9
AB
23702020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2371
2372 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
2373 (ada_language_data): Delete la_get_symbol_name_matcher
2374 initializer.
2375 (language_defn::get_symbol_name_matcher_inner): New member
2376 function.
2377 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
2378 initializer.
2379 (cplus_language_data): Likewise.
2380 (cplus_language::get_symbol_name_matcher_inner): New member
2381 function.
2382 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
2383 (minimal_language_data): Likewise.
2384 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
2385 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
2386 initializer.
2387 * dictionary.c (iter_match_first_hashed): Update call to
2388 get_symbol_name_matcher.
2389 (iter_match_next_hashed): Likewise.
2390 (iter_match_next_linear): Likewise.
2391 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
2392 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
2393 initializer.
2394 (f_language::get_symbol_name_matcher_inner): New member function.
2395 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
2396 initializer.
2397 * language.c (default_symbol_name_matcher): Update header comment,
2398 make static.
2399 (language_defn::get_symbol_name_matcher): New definition.
2400 (language_defn::get_symbol_name_matcher_inner): Likewise.
2401 (get_symbol_name_matcher): Delete.
2402 (unknown_language_data): Delete la_get_symbol_name_matcher
2403 initializer.
2404 (auto_language_data): Likewise.
2405 * language.h (language_data): Delete la_get_symbol_name_matcher
2406 field.
2407 (language_defn::get_symbol_name_matcher): New member function.
2408 (language_defn::get_symbol_name_matcher_inner): Likewise.
2409 (default_symbol_name_matcher): Delete declaration.
2410 * linespec.c (find_methods): Update call to
2411 get_symbol_name_matcher.
2412 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
2413 initializer.
2414 * minsyms.c (lookup_minimal_symbol): Update call to
2415 get_symbol_name_matcher.
2416 (iterate_over_minimal_symbols): Likewise.
2417 * objc-lang.c (objc_language_data): Delete
2418 la_get_symbol_name_matcher initializer.
2419 * opencl-lang.c (opencl_language_data): Likewise.
2420 * p-lang.c (pascal_language_data): Likewise.
2421 * psymtab.c (psymbol_name_matches): Update call to
2422 get_symbol_name_matcher.
2423 * rust-lang.c (rust_language_data): Delete
2424 la_get_symbol_name_matcher initializer.
2425 * symtab.c (symbol_matches_search_name): Update call to
2426 get_symbol_name_matcher.
2427 (compare_symbol_name): Likewise.
2428
9a49ad8c
AB
24292020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2430
2431 * ada-lang.c (ada_language_data): Delete la_compute_program
2432 initializer.
2433 * c-lang.c (c_language_data): Likewise.
2434 (c_language::compute_program): New member function.
2435 (cplus_language_data): Delete la_compute_program initializer.
2436 (cplus_language::compute_program): New member function.
2437 (asm_language_data): Delete la_compute_program initializer.
2438 (minimal_language_data): Likewise.
2439 * c-lang.h (c_compute_program): Update comment.
2440 (cplus_compute_program): Likewise.
2441 * compile/compile-c-support.c (c_compute_program): Likewise.
2442 (cplus_compute_program): Likewise.
2443 * compile/compile.c (compile_to_object): Update call to
2444 la_compute_program.
2445 * d-lang.c (d_language_data): Delete la_compute_program
2446 initializer.
2447 * f-lang.c (f_language_data): Likewise.
2448 * go-lang.c (go_language_data): Likewise.
2449 * language.c (unknown_language_data): Likewise.
2450 (auto_language_data): Likewise.
2451 * language.h (language_data): Delete la_compute_program field.
2452 (language_defn::compute_program): New member function.
2453 * m2-lang.c (m2_language_data): Delete la_compute_program
2454 initializer.
2455 * objc-lang.c (objc_language_data): Likewise.
2456 * opencl-lang.c (opencl_language_data): Likewise.
2457 * p-lang.c (pascal_language_data): Likewise.
2458 * rust-lang.c (rust_language_data): Likewise.
2459
eff93b4d
AB
24602020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2461
2462 * ada-lang.c (ada_language_data) Delete
2463 la_class_name_from_physname initializer.
2464 * c-lang.c (c_language_data): Likewise.
2465 (cplus_language_data): Likewise.
2466 (cplus_language::class_name_from_physname): New member function.
2467 (asm_language_data): Delete la_class_name_from_physname
2468 initializer.
2469 (minimal_language_data): Likewise.
2470 * d-lang.c (d_language_data): Likewise.
2471 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
2472 method on language_defn class.
2473 (guess_full_die_structure_name): Likewise.
2474 * f-lang.c (f_language_data): Delete la_class_name_from_physname
2475 initializer.
2476 * go-lang.c (go_language_data): Likewise.
2477 * language.c (language_class_name_from_physname): Delete.
2478 (unk_lang_class_name): Delete.
2479 (unknown_language_data): Delete la_class_name_from_physname
2480 initializer.
2481 (auto_language_data): Likewise.
2482 * language.h (language_data): Delete la_class_name_from_physname
2483 field.
2484 (language_defn::class_name_from_physname): New function.
2485 (language_class_name_from_physname): Delete declaration.
2486 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
2487 initializer.
2488 * objc-lang.c (objc_language_data): Likewise.
2489 * opencl-lang.c (opencl_language_data): Likewise.
2490 * p-lang.c (pascal_language_data): Likewise.
2491 * rust-lang.c (rust_language_data): Likewise.
2492
de543742
TT
24932020-06-16 Tom Tromey <tom@tromey.com>
2494
2495 * tui/tui-data.h (STATUS_NAME): New macro.
2496 * tui/tui-layout.c (tui_remove_some_windows)
2497 (initialize_known_windows, tui_register_window)
2498 (tui_layout_split::remove_windows, initialize_layouts)
2499 (tui_new_layout_command): Don't use hard-coded window names.
2500
a350efd4
TT
25012020-06-16 Tom Tromey <tom@tromey.com>
2502
2503 PR tui/25348:
2504 * tui/tui.c (tui_ensure_readline_initialized): Rename from
2505 tui_initialize_readline. Only run once. Call rl_initialize.
2506 * tui/tui.h (tui_ensure_readline_initialized): Rename from
2507 tui_initialize_readline.
2508 * tui/tui-io.c (tui_setup_io): Call
2509 tui_ensure_readline_initialized.
2510 * tui/tui-interp.c (tui_interp::init): Update.
2511
39ec0490
TT
25122020-06-16 Tom Tromey <tom@tromey.com>
2513
2514 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
2515 Also preserve the status window.
2516
d2d1ea20
TT
25172020-06-16 Tom Tromey <tom@tromey.com>
2518
2519 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
2520 where m_window==nullptr.
2521
66920317
TT
25222020-06-15 Tom Tromey <tromey@adacore.com>
2523
2524 * windows-nat.c (windows_nat::handle_output_debug_string):
2525 Update.
2526 (windows_nat::handle_ms_vc_exception): Update.
2527 * target.h (target_read_string): Change API.
2528 * target.c (target_read_string): Change API.
2529 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
2530 Update.
2531 * solib-frv.c (frv_current_sos): Update.
2532 * solib-dsbt.c (dsbt_current_sos): Update.
2533 * solib-darwin.c (darwin_current_sos): Update.
2534 * linux-thread-db.c (inferior_has_bug): Update.
2535 * expprint.c (print_subexp_standard): Update.
2536 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
2537 (ada_exception_message_1): Update.
2538
a5d871dd
TT
25392020-06-15 Tom Tromey <tromey@adacore.com>
2540
2541 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
2542
670e35fa
TT
25432020-06-15 Tom Tromey <tromey@adacore.com>
2544
2545 * valprint.c (read_string): Update comment.
2546 * target.c (MIN): Remove.
2547 (target_read_string): Rewrite.
2548
f5272a3b
TT
25492020-06-15 Tom Tromey <tromey@adacore.com>
2550
2551 * corefile.c (read_memory_string): Remove.
2552 * ada-valprint.c (ada_value_print_ptr): Update.
2553 * ada-lang.h (ada_tag_name): Change return type.
2554 * ada-lang.c (type_from_tag): Update.
2555 (ada_tag_name_from_tsd): Change return type. Use
2556 target_read_string.
2557 (ada_tag_name): Likewise.
2558 * gdbcore.h (read_memory_string): Don't declare.
2559
2c074f49
HD
25602020-06-14 Hannes Domani <ssbssa@yahoo.de>
2561
2562 * symtab.c (rbreak_command): Ignore Windows drive colon.
2563
6a17d503
SM
25642020-06-12 Simon Marchi <simon.marchi@efficios.com>
2565
2566 * NEWS: Mention removed GDBserver host support.
2567
453c733f
NC
25682020-06-12 Nelson Chu <nelson.chu@sifive.com>
2569
2570 * features/riscv/rebuild-csr-xml.sh: Updated.
2571
2b4e6a3f
TT
25722020-06-11 Tom Tromey <tom@tromey.com>
2573
2574 PR gdb/18318:
2575 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
2576
4412332f
JG
25772020-06-09 Jonny Grant <jg@jguk.org>
25782020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
2579
2580 * main.c (captured_main_1): Don't print new line after help.
2581 (print_gdb_help): add mailing list and IRC channel information
2582 to --help. Add new lines between items in the footer. Remove
2583 quotes around bug url.
2584
2f33032a
KS
25852020-06-11 Keith Seitz <keiths@redhat.com>
2586
2587 PR gdb/21356
2588 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
2589 Resolve typedefs for type length calculations.
2590
7ab96794
TV
25912020-06-10 Tom de Vries <tdevries@suse.de>
2592
2593 PR ada/24713
2594 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
2595 (write_psymbols): Enable .gdb_index for ada.
2596 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
2597 ada.
2598
e5f3ece2
TV
25992020-06-10 Tom de Vries <tdevries@suse.de>
2600
2601 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
2602 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
2603 namei" instead of "const char *name" argument.
2604 (dw2_map_matching_symbols): Use "offset_type namei" variant of
2605 dw2_symtab_iter_init.
2606
940da03e
SM
26072020-06-08 Simon Marchi <simon.marchi@efficios.com>
2608
2609 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
2610 to use type::field and field::type instead.
2611
b6cdac4b
SM
26122020-06-08 Simon Marchi <simon.marchi@efficios.com>
2613
2614 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
2615 to use field::type instead.
2616
5d14b6e5
SM
26172020-06-08 Simon Marchi <simon.marchi@efficios.com>
2618
2619 * gdbtypes.h (struct field) <type, set_type>: New methods.
2620 Rename `type` field to...
2621 <m_type>: ... this. Change references throughout to use type or
2622 set_type methods.
2623 (FIELD_TYPE): Use field::type. Change call sites that modify
2624 the field's type to use field::set_type instead.
2625
3d967001
SM
26262020-06-08 Simon Marchi <simon.marchi@efficios.com>
2627
2628 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
2629 to use type::index_type instead.
2630
262abc0d
SM
26312020-06-08 Simon Marchi <simon.marchi@efficios.com>
2632
2633 * gdbtypes.h (struct type) <index_type, set_index_type>: New
2634 methods.
2635 (TYPE_INDEX_TYPE): Use type::index_type.
2636 * gdbtypes.c (create_array_type_with_stride): Likewise.
2637
82836c92
TT
26382020-06-07 Tom Tromey <tom@tromey.com>
2639
2640 * valprint.c (generic_val_print_float): Remove "embedded_offset"
2641 parameter.
2642 (generic_value_print): Update.
2643
940dace9
AB
26442020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2645
2646 Revert commit 982a38f60b0.
2647 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
2648
982a38f6
AB
26492020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2650
2651 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
2652 avoid use after free.
2653
82f06518
TV
26542020-06-05 Tom de Vries <tdevries@suse.de>
2655
2656 * NEWS: Fix typos.
2657
f8c41851
SM
26582020-06-04 Simon Marchi <simon.marchi@efficios.com>
2659
2660 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
2661 the per_bfd object.
2662 (dwarf2_read_debug_names): Likewise.
2663 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
2664 object when re-using a per_bfd object with an index.
2665
f9b5d5ea
TV
26662020-06-03 Tom de Vries <tdevries@suse.de>
2667
2668 PR symtab/26046
2669 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
2670 children for C++.
2671 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
2672 DW_TAG_subprogram.
2673
f6eee2d0
AB
26742020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2675
2676 * ada-lang.c (ada_language_data): Delete skip_trampoline
2677 initializer.
2678 * c-lang.c (c_language_data): Likewise.
2679 (cplus_language_data): Likewise.
2680 (cplus_language::skip_trampoline): New member function.
2681 (asm_language_data): Delete skip_trampoline initializer.
2682 (minimal_language_data): Likewise.
2683 * d-lang.c (d_language_data): Likewise.
2684 * f-lang.c (f_language_data): Likewise.
2685 * go-lang.c (go_language_data): Likewise.
2686 * language.c (unk_lang_trampoline): Delete function.
2687 (skip_language_trampoline): Update.
2688 (unknown_language_data): Delete skip_trampoline initializer.
2689 (auto_language_data): Likewise.
2690 * language.h (language_data): Delete skip_trampoline field.
2691 (language_defn::skip_trampoline): New function.
2692 * m2-lang.c (m2_language_data): Delete skip_trampoline
2693 initializer.
2694 * objc-lang.c (objc_skip_trampoline): Delete function, move
2695 implementation to objc_language::skip_trampoline.
2696 (objc_language_data): Delete skip_trampoline initializer.
2697 (objc_language::skip_trampoline): New member function with
2698 implementation from objc_skip_trampoline.
2699 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
2700 initializer.
2701 * p-lang.c (pascal_language_data): Likewise.
2702 * rust-lang.c (rust_language_data): Likewise.
2703
0a50df5d
AB
27042020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2705
2706 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
2707 (ada_language::demangle): New member function.
2708 * c-lang.c (c_language_data): Delete la_demangle initializer.
2709 (cplus_language_data): Delete la_demangle initializer.
2710 (cplus_language::demangle): New member function.
2711 (asm_language_data): Delete la_demangle initializer.
2712 (minimal_language_data): Delete la_demangle initializer.
2713 * d-lang.c (d_language_data): Delete la_demangle initializer.
2714 (d_language::demangle): New member function.
2715 * f-lang.c (f_language_data): Delete la_demangle initializer.
2716 (f_language::demangle): New member function.
2717 * go-lang.c (go_language_data): Delete la_demangle initializer.
2718 (go_language::demangle): New member function.
2719 * language.c (language_demangle): Update.
2720 (unk_lang_demangle): Delete.
2721 (unknown_language_data): Delete la_demangle initializer.
2722 (unknown_language::demangle): New member function.
2723 (auto_language_data): Delete la_demangle initializer.
2724 (auto_language::demangle): New member function.
2725 * language.h (language_data): Delete la_demangle field.
2726 (language_defn::demangle): New function.
2727 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
2728 * objc-lang.c (objc_language_data): Delete la_demangle
2729 initializer.
2730 (objc_language::demangle): New member function.
2731 * opencl-lang.c (opencl_language_data): Delete la_demangle
2732 initializer.
2733 * p-lang.c (pascal_language_data): Likewise.
2734 * rust-lang.c (rust_language_data): Likewise.
2735 (rust_language::demangle): New member function.
2736
fbfb0a46
AB
27372020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2738
2739 * ada-lang.c (ada_language_data): Delete la_print_type
2740 initializer.
2741 (ada_language::print_type): New member function.
2742 * c-lang.c (c_language_data): Delete la_print_type initializer.
2743 (c_language::print_type): New member function.
2744 (cplus_language_data): Delete la_print_type initializer.
2745 (cplus_language::print_type): New member function.
2746 (asm_language_data): Delete la_print_type initializer.
2747 (asm_language::print_type): New member function.
2748 (minimal_language_data): Delete la_print_type initializer.
2749 (minimal_language::print_type): New member function.
2750 * d-lang.c (d_language_data): Delete la_print_type initializer.
2751 (d_language::print_type): New member function.
2752 * f-lang.c (f_language_data): Delete la_print_type initializer.
2753 (f_language::print_type): New member function.
2754 * go-lang.c (go_language_data): Delete la_print_type initializer.
2755 (go_language::print_type): New member function.
2756 * language.c (unk_lang_print_type): Delete.
2757 (unknown_language_data): Delete la_print_type initializer.
2758 (unknown_language::print_type): New member function.
2759 (auto_language_data): Delete la_print_type initializer.
2760 (auto_language::print_type): New member function.
2761 * language.h (language_data): Delete la_print_type field.
2762 (language_defn::print_type): New function.
2763 (LA_PRINT_TYPE): Update.
2764 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
2765 (m2_language::print_type): New member function.
2766 * objc-lang.c (objc_language_data): Delete la_print_type
2767 initializer.
2768 (objc_language::print_type): New member function.
2769 * opencl-lang.c (opencl_print_type): Delete, implementation moved
2770 to opencl_language::print_type.
2771 (opencl_language_data): Delete la_print_type initializer.
2772 (opencl_language::print_type): New member function, implementation
2773 from opencl_print_type.
2774 * p-lang.c (pascal_language_data): Delete la_print_type
2775 initializer.
2776 (pascal_language::print_type): New member function.
2777 * rust-lang.c (rust_print_type): Delete, implementation moved to
2778 rust_language::print_type.
2779 (rust_language_data): Delete la_print_type initializer.
2780 (rust_language::print_type): New member function, implementation
2781 from rust_print_type.
2782
6f827019
AB
27832020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2784
2785 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
2786 implementation moves to...
2787 (ada_language::sniff_from_mangled_name): ...here. Update return
2788 type.
2789 (ada_language_data): Delete la_sniff_from_mangled_name
2790 initializer.
2791 * c-lang.c (c_language_data): Likewise.
2792 (cplus_language_data): Likewise.
2793 (cplus_language::sniff_from_mangled_name): New member function,
2794 implementation taken from gdb_sniff_from_mangled_name.
2795 (asm_language_data): Delete la_sniff_from_mangled_name
2796 initializer.
2797 (minimal_language_data): Likewise.
2798 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
2799 implementation moves to cplus_language::sniff_from_mangled_name.
2800 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
2801 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
2802 moves to...
2803 (d_language::sniff_from_mangled_name): ...here.
2804 (d_language_data): Delete la_sniff_from_mangled_name initializer.
2805 * f-lang.c (f_language_data): Likewise.
2806 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
2807 moves to...
2808 (go_language::sniff_from_mangled_name): ...here.
2809 (go_language_data): Delete la_sniff_from_mangled_name initializer.
2810 * language.c (language_sniff_from_mangled_name): Delete.
2811 (unknown_language_data): Delete la_sniff_from_mangled_name
2812 initializer.
2813 (auto_language_data): Likewise.
2814 * language.h (language_data): Delete la_sniff_from_mangled_name
2815 field.
2816 (language_defn::sniff_from_mangled_name): New function.
2817 (language_sniff_from_mangled_name): Delete declaration.
2818 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
2819 field.
2820 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
2821 implementation moves to...
2822 (objc_language::sniff_from_mangled_name): ...here.
2823 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
2824 * opencl-lang.c (opencl_language_data): Likewise.
2825 * p-lang.c (pascal_language_data): Likewise.
2826 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
2827 implementation moves to...
2828 (rust_language::sniff_from_mangled_name): ...here.
2829 (rust_language_data): Delete la_sniff_from_mangled_name
2830 initializer.
2831 * symtab.c (symbol_find_demangled_name): Call
2832 sniff_from_mangled_name member function.
2833
fb8006fd
AB
28342020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2835
2836 * ada-lang.c (ada_language_data): Delete la_search_name_hash
2837 initializer.
2838 * c-lang.c (c_language_data): Likewise.
2839 (cplus_language_data): Likewise.
2840 (cplus_language::search_name_hash): New member function.
2841 (asm_language_data): Delete la_search_name_hash initializer.
2842 (minimal_language_data): Likewise.
2843 * d-lang.c (d_language_data): Likewise.
2844 * dictionary.c (default_search_name_hash): Rename to...
2845 (language_defn::search_name_hash): ...this.
2846 * f-lang.c (f_language_data): Likewise.
2847 (f_language::search_name_hash): New member function.
2848 * go-lang.c (go_language_data): Delete la_search_name_hash
2849 initializer.
2850 * language.c (unknown_language_data): Likewise.
2851 (auto_language_data): Likewise.
2852 * language.h (struct language_data): Delete la_search_name_hash
2853 field.
2854 (language_defn::search_name_hash): Declare new member function.
2855 (default_search_name_hash): Delete declaration.
2856 * m2-lang.c (m2_language_data): Delete la_search_name_hash
2857 initializer.
2858 * objc-lang.c (objc_language_data): Likewise.
2859 * opencl-lang.c (opencl_language_data): Likewise.
2860 * p-lang.c (pascal_language_data): Likewise.
2861 * rust-lang.c (rust_language_data): Likewise.
2862 * symtab.c (search_name_hash): Update call.
2863
8e25bafe
AB
28642020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2865
2866 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
2867 initializer.
2868 * c-lang.c (class compile_instance): Declare.
2869 (c_language_data): Delete la_get_compile_instance initializer.
2870 (c_language::get_compile_instance): New member function.
2871 (cplus_language_data): Delete la_get_compile_instance initializer.
2872 (cplus_language::get_compile_instance): New member function.
2873 (asm_language_data): Delete la_get_compile_instance initializer.
2874 (minimal_language_data): Likewise.
2875 * c-lang.h (c_get_compile_context): Update comment.
2876 (cplus_get_compile_context): Update comment.
2877 * compile/compile.c (compile_to_object): Update calls, don't rely
2878 on function pointer being NULL.
2879 * d-lang.c (d_language_data): Delete la_get_compile_instance
2880 initializer.
2881 * f-lang.c (f_language_data): Likewise.
2882 * go-lang.c (go_language_data): Likewise.
2883 * language.c (unknown_language_data): Likewise.
2884 (auto_language_data): Likewise.
2885 * language.h (language_data): Delete la_get_compile_instance field.
2886 (language_defn::get_compile_instance): New member function.
2887 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
2888 initializer.
2889 * objc-lang.c (objc_language_data): Likewise.
2890 * opencl-lang.c (opencl_language_data): Likewise.
2891 * p-lang.c (pascal_language_data): Likewise.
2892 * rust-lang.c (rust_language_data): Likewise.
2893
4009ee92
AB
28942020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2895
2896 * ada-lang.c (ada_add_all_symbols): Update comment.
2897 (ada_iterate_over_symbols): Delete, move implementation to...
2898 (ada_language::iterate_over_symbols): ...here, a new member
2899 function, rewrite to use range based for loop.
2900 (ada_language_data): Delete la_iterate_over_symbols initializer.
2901 * c-lang.c (c_language_data): Likewise.
2902 (cplus_language_data): Likewise.
2903 (asm_language_data): Likewise.
2904 (minimal_language_data): Likewise.
2905 * d-lang.c (d_language_data): Likewise.
2906 * f-lang.c (f_language_data): Likewise.
2907 * go-lang.c (go_language_data): Likewise.
2908 * language.c (unknown_language_data): Likewise.
2909 (auto_language_data): Likewise.
2910 * language.h (language_data): Delete la_iterate_over_symbols field.
2911 (language_defn::iterate_over_symbols): New member function.
2912 (LA_ITERATE_OVER_SYMBOLS): Update.
2913 * linespec.c (iterate_over_all_matching_symtabs): Update.
2914 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
2915 initializer.
2916 * objc-lang.c (objc_language_data): Likewise.
2917 * opencl-lang.c (opencl_language_data): Likewise.
2918 * p-lang.c (pascal_language_data): Likewise.
2919 * rust-lang.c (rust_language_data): Likewise.
2920
54f4ca46
AB
29212020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2922
2923 * ada-lang.c (ada_language_data): Delete
2924 la_lookup_transparent_type initializer.
2925 * c-lang.c (c_language_data): Likewise.
2926 (cplus_language_data): Likewise.
2927 (cplus_language::lookup_transparent_type): New member function.
2928 (asm_language_data): Delete la_lookup_transparent_type
2929 initializer.
2930 (minimal_language_data): Likewise.
2931 * d-lang.c (d_language_data): Likewise.
2932 * f-lang.c (f_language_data): Likewise.
2933 * go-lang.c (go_language_data): Likewise.
2934 * language.c (unknown_language_data): Likewise.
2935 (auto_language_data): Likewise.
2936 * language.h (struct language_data): Delete
2937 la_lookup_transparent_type field.
2938 (language_defn::lookup_transparent_type): New member function.
2939 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
2940 initializer.
2941 * objc-lang.c (objc_language_data): Likewise.
2942 * opencl-lang.c (opencl_language_data): Likewise.
2943 * p-lang.c (pascal_language_data): Likewise.
2944 * rust-lang.c (rust_language_data): Likewise.
2945 * symtab.c (symbol_matches_domain): Update call.
2946
1fb314aa
AB
29472020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2948
2949 * ada-lang.c (ada_language_arch_info): Delete function, move
2950 implementation to...
2951 (ada_language::language_arch_info): ...here, a new member
2952 function.
2953 (ada_language_data): Delete la_language_arch_info.
2954 * c-lang.c (c_language_data): Likewise.
2955 (c_language::language_arch_info): New member function.
2956 (cplus_language_arch_info): Delete function, move
2957 implementation to...
2958 (cplus_language::language_arch_info): ...here, a new member
2959 function.
2960 (cplus_language_data): Delete la_language_arch_info.
2961 (asm_language_data): Likewise.
2962 (asm_language::language_arch_info): New member function.
2963 (minimal_language_data): Delete la_language_arch_info.
2964 (minimal_language::language_arch_info): New member function.
2965 * d-lang.c (d_language_arch_info): Delete function, move
2966 implementation to...
2967 (d_language::language_arch_info): ...here, a new member
2968 function.
2969 (d_language_data): Delete la_language_arch_info.
2970 * f-lang.c (f_language_arch_info): Delete function, move
2971 implementation to...
2972 (f_language::language_arch_info): ...here, a new member
2973 function.
2974 (f_language_data): Delete la_language_arch_info.
2975 * go-lang.c (go_language_arch_info): Delete function, move
2976 implementation to...
2977 (go_language::language_arch_info): ...here, a new member
2978 function.
2979 (go_language_data): Delete la_language_arch_info.
2980 * language.c (unknown_language_data): Likewise.
2981 (unknown_language::language_arch_info): New member function.
2982 (auto_language_data): Delete la_language_arch_info.
2983 (auto_language::language_arch_info): New member function.
2984 (language_gdbarch_post_init): Update call to
2985 la_language_arch_info.
2986 * language.h (language_data): Delete la_language_arch_info
2987 function pointer.
2988 (language_defn::language_arch_info): New function.
2989 * m2-lang.c (m2_language_arch_info): Delete function, move
2990 implementation to...
2991 (m2_language::language_arch_info): ...here, a new member
2992 function.
2993 (m2_language_data): Delete la_language_arch_info.
2994 * objc-lang.c (objc_language_arch_info): Delete function, move
2995 implementation to...
2996 (objc_language::language_arch_info): ...here, a new member
2997 function.
2998 (objc_language_data): Delete la_language_arch_info.
2999 * opencl-lang.c (opencl_language_arch_info): Delete function, move
3000 implementation to...
3001 (opencl_language::language_arch_info): ...here, a new member
3002 function.
3003 (opencl_language_data): Delete la_language_arch_info.
3004 * p-lang.c (pascal_language_arch_info): Delete function, move
3005 implementation to...
3006 (pascal_language::language_arch_info): ...here, a new member
3007 function.
3008 (pascal_language_data): Delete la_language_arch_info.
3009 * rust-lang.c (rust_language_arch_info): Delete function, move
3010 implementation to...
3011 (rust_language::language_arch_info): ...here, a new member
3012 function.
3013 (rust_language_data): Delete la_language_arch_info.
3014
48448202
AB
30152020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3016
3017 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
3018 initializer.
3019 * c-lang.c (c_language_data): Likewise.
3020 (cplus_language_data): Likewise.
3021 (cplus_language::pass_by_reference_info): New method.
3022 (asm_language_data): Delete la_pass_by_reference initializer.
3023 (minimal_language_data): Likewise.
3024 * cp-abi.c (cp_pass_by_reference): Remove use of
3025 default_pass_by_reference.
3026 * d-lang.c (d_language_data): Likewise.
3027 * f-lang.c (f_language_data): Likewise.
3028 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
3029 default_pass_by_reference.
3030 * go-lang.c (go_language_data): Likewise.
3031 * language.c (language_pass_by_reference): Update.
3032 (default_pass_by_reference): Delete.
3033 (unknown_language_data): Delete la_pass_by_reference
3034 initializer.
3035 (auto_language_data): Likewise.
3036 * language.h (struct language_data): Delete la_pass_by_reference
3037 field.
3038 (language_defn::pass_by_reference_info): New member function.
3039 (default_pass_by_reference): Delete declaration.
3040 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
3041 initializer.
3042 * objc-lang.c (objc_language_data): Likewise.
3043 * opencl-lang.c (opencl_language_data): Likewise.
3044 * p-lang.c (pascal_language_data): Likewise.
3045 * rust-lang.c (rust_language_data): Likewise.
3046
15e5fd35
AB
30472020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3048
3049 * ada-lang.c (ada_read_var_value): Delete function, move
3050 implementation to...
3051 (ada_language::read_var_value): ...here.
3052 (ada_language_data): Delete la_read_var_value initializer.
3053 * c-lang.c (c_language_data): Likewise.
3054 (cplus_language_data): Likewise.
3055 (minimal_language_data): Likewise.
3056 * d-lang.c (d_language_data): Likewise.
3057 * f-lang.c (f_language_data): Likewise.
3058 * findvar.c (default_read_var_value): Rename to...
3059 (language_defn::read_var_value): ...this.
3060 * findvar.c (read_var_value): Update header comment, and change to
3061 call member function instead of function pointer.
3062 * go-lang.c (go_language_data): Likewise.
3063 * language.c (unknown_language_data): Delete la_read_var_value
3064 initializer.
3065 (auto_language_data): Likewise.
3066 * language.h (struct language_data): Delete la_read_var_value
3067 field.
3068 (language_defn::read_var_value): New member function.
3069 (default_read_var_value): Delete declaration.
3070 * m2-lang.c (m2_language_data): Delete la_read_var_value
3071 initializer.
3072 * objc-lang.c (objc_language_data): Likewise.
3073 * opencl-lang.c (opencl_language_data): Likewise.
3074 * p-lang.c (pascal_language_data): Likewise.
3075 * rust-lang.c (rust_language_data): Likewise.
3076 * value.h (default_read_var_value): Delete declaration.
3077
5bd40f2a
AB
30782020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3079
3080 * ada-lang.c (ada_print_array_index): Delete function, move
3081 implementation to...
3082 (ada_language::print_array_index): ...here.
3083 (ada_language_data): Delete la_print_array_index initializer.
3084 * c-lang.c (c_language_data): Likewise.
3085 (cplus_language_data): Likewise.
3086 (minimal_language_data): Likewise.
3087 * d-lang.c (d_language_data): Likewise.
3088 * f-lang.c (f_language_data): Likewise.
3089 * go-lang.c (go_language_data): Likewise.
3090 * language.c (default_print_array_index): Delete function, move
3091 implementation to...
3092 (language_defn::print_array_index): ...here.
3093 (unknown_language_data): Delete la_print_array_index initializer.
3094 (auto_language_data): Likewise.
3095 * language.h (struct language_data): Delete la_print_array_index
3096 field.
3097 (language_defn::print_array_index): New member function.
3098 (LA_PRINT_ARRAY_INDEX): Update.
3099 (default_print_array_index): Delete declaration.
3100 * m2-lang.c (m2_language_data): Delete la_print_array_index
3101 initializer.
3102 * objc-lang.c (objc_language_data): Likewise.
3103 * opencl-lang.c (opencl_language_data): Likewise.
3104 * p-lang.c (pascal_language_data): Likewise.
3105 * rust-lang.c (rust_language_data): Likewise.
3106
0874fd07
AB
31072020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3108
3109 * gdb/ada-lang.c (ada_language_defn): Convert to...
3110 (ada_language_data): ...this.
3111 (class ada_language): New class.
3112 (ada_language_defn): New static global.
3113 * gdb/c-lang.c (c_language_defn): Convert to...
3114 (c_language_data): ...this.
3115 (class c_language): New class.
3116 (c_language_defn): New static global.
3117 (cplus_language_defn): Convert to...
3118 (cplus_language_data): ...this.
3119 (class cplus_language): New class.
3120 (cplus_language_defn): New static global.
3121 (asm_language_defn): Convert to...
3122 (asm_language_data): ...this.
3123 (class asm_language): New class.
3124 (asm_language_defn): New static global.
3125 (minimal_language_defn): Convert to...
3126 (minimal_language_data): ...this.
3127 (class minimal_language): New class.
3128 (minimal_language_defn): New static global.
3129 * gdb/d-lang.c (d_language_defn): Convert to...
3130 (d_language_data): ...this.
3131 (class d_language): New class.
3132 (d_language_defn): New static global.
3133 * gdb/f-lang.c (f_language_defn): Convert to...
3134 (f_language_data): ...this.
3135 (class f_language): New class.
3136 (f_language_defn): New static global.
3137 * gdb/go-lang.c (go_language_defn): Convert to...
3138 (go_language_data): ...this.
3139 (class go_language): New class.
3140 (go_language_defn): New static global.
3141 * gdb/language.c (unknown_language_defn): Remove declaration.
3142 (current_language): Initialize to nullptr, real initialization is
3143 moved to _initialize_language.
3144 (languages): Delete global.
3145 (language_defn::languages): Define.
3146 (set_language_command): Use language_defn::languages.
3147 (set_language): Likewise.
3148 (range_error): Likewise.
3149 (language_enum): Likewise.
3150 (language_def): Likewise.
3151 (add_set_language_command): Use language_def::languages for the
3152 language list, and language_def to lookup language pointers.
3153 (skip_language_trampoline): Use language_defn::languages.
3154 (unknown_language_defn): Convert to...
3155 (unknown_language_data): ...this.
3156 (class unknown_language): New class.
3157 (unknown_language_defn): New static global.
3158 (auto_language_defn): Convert to...
3159 (auto_language_data): ...this.
3160 (class auto_language): New class.
3161 (auto_language_defn): New static global.
3162 (language_gdbarch_post_init): Use language_defn::languages.
3163 (_initialize_language): Initialize current_language.
3164 * gdb/language.h (struct language_defn): Rename to...
3165 (struct language_data): ...this.
3166 (struct language_defn): New.
3167 (auto_language_defn): Delete.
3168 (unknown_language_defn): Delete.
3169 (minimal_language_defn): Delete.
3170 (ada_language_defn): Delete.
3171 (asm_language_defn): Delete.
3172 (c_language_defn): Delete.
3173 (cplus_language_defn): Delete.
3174 (d_language_defn): Delete.
3175 (f_language_defn): Delete.
3176 (go_language_defn): Delete.
3177 (m2_language_defn): Delete.
3178 (objc_language_defn): Delete.
3179 (opencl_language_defn): Delete.
3180 (pascal_language_defn): Delete.
3181 (rust_language_defn): Delete.
3182 * gdb/m2-lang.c (m2_language_defn): Convert to...
3183 (m2_language_data): ...this.
3184 (class m2_language): New class.
3185 (m2_language_defn): New static global.
3186 * gdb/objc-lang.c (objc_language_defn): Convert to...
3187 (objc_language_data): ...this.
3188 (class objc_language): New class.
3189 (objc_language_defn): New static global.
3190 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
3191 (opencl_language_data): ...this.
3192 (class opencl_language): New class.
3193 (opencl_language_defn): New static global.
3194 * gdb/p-lang.c (pascal_language_defn): Convert to...
3195 (pascal_language_data): ...this.
3196 (class pascal_language): New class.
3197 (pascal_language_defn): New static global.
3198 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
3199 language pointer, update comment format.
3200 * gdb/rust-lang.c (rust_language_defn): Convert to...
3201 (rust_language_data): ...this.
3202 (class rust_language): New class.
3203 (rust_language_defn): New static global.
3204
1313c56e
AB
32052020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
3206
3207 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
3208 member variable.
3209 <m_stmt_at_address>: New member variable.
3210 (lnp_state_machine::record_line): Don't record some lines, update
3211 tracking of is_stmt at the same address.
3212 (lnp_state_machine::lnp_state_machine): Initialise new member
3213 variables.
3214
b7ed9f3d
ST
32152020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
3216
3217 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
3218 "-include gnu-nat-mig.h".
3219 * gnu-nat-mig.h: New file.
3220 * gnu-nat.c: Include "gnu-nat-mig.h".
3221 (exc_server, msg_reply_server, notify_server,
3222 process_reply_server): Remove declarations.
3223
14a8ad62
ST
32242020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3225
3226 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
3227 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
3228 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
3229 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
3230 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
3231 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
3232 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
3233 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
3234 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
3235 to gnu_nat_target class.
3236 * gnu-nat.c: Likewise.
3237 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
3238 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
3239 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
3240 object.
3241 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
3242 instead of `gnu_target'.
3243
0af5e106
ST
32442020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3245
3246 * i386-gnu-tdep.c: Include "gdbcore.h"
3247 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
3248 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
3249 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
3250 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
3251 i386_gnu_sigcontext_addr): New functions
3252 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
3253 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
3254 tdep.
3255
078f2fc9
ST
32562020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3257
3258 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
3259 before fork_inferior call. Avoid calling it if target_is_pushed returns
3260 true.
3261
53dff92c
ST
32622020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3263
3264 * gnu-nat.h (gnu_target): New variable declaration.
3265 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
3266 gnu_target.
3267 * gnu-nat.c (gnu_target): New variable.
3268 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
3269 add_thread_silent, and add_thread calls.
3270 (gnu_nat_target::create_inferior): Pass gnu_target to
3271 add_thread_silent, thread_change_ptid call.
3272 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
3273 call.
3274
5a8b8627
ST
32752020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3276
3277 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
3278 (gnu_nat_target::find_memory_regions): Remove unused
3279 `old_address' variable.
3280
366f550a
ST
32812020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3282
3283 * gnu-nat.c: Include "gdbarch.h".
3284
f14871bf
ST
32852020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3286
3287 * reply_mig_hack.awk (Error return): Cast function through
3288 void *, to bypass compiler function call check.
3289
c6887cfb
ST
32902020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3291
3292 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
3293 $(srcdir)/reply_mig_hack.awk.
3294
6930bffe
ST
32952020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3296
3297 * gnu-nat.h (gnu_debug_flag): Set type to bool.
3298
112c22ed
JG
32992020-05-30 Jonny Grant <jg@jguk.org>
3300
3301 * configure.ac (ACX_BUGURL): change bug URL to https.
3302
f68f85b5
PA
33032020-05-30 Pedro Alves <palves@redhat.com>
3304
3305 * cp-support.c (replace_typedefs_template): New.
3306 (replace_typedefs_qualified_name): Handle
3307 DEMANGLE_COMPONENT_TEMPLATE.
3308
976ca316
SM
33092020-05-29 Simon Marchi <simon.marchi@efficios.com>
3310
3311 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
3312 dwarf2/index-cache.h, dwarf2/index-write.c,
3313 dwarf2/index-write.h, dwarf2/line-header.c,
3314 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
3315 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
3316 variables and fields from `dwarf2_per_objfile` to just
3317 `per_objfile` throughout.
3318
989ade05
SM
33192020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
3320
3321 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3322 <push_dwarf_reg_entry_value>: Add comment.
3323
c47bae85
KB
33242020-05-28 Kevin Buettner <kevinb@redhat.com>
3325 Keith Seitz <keiths@redhat.com>
3326
3327 * python/python.c (do_start_initialization): Call PyEval_SaveThread
3328 instead of PyEval_ReleaseLock.
3329 (class gdbpy_gil): Move to earlier in file.
3330 (finalize_python): Set gdb_python_initialized.
3331 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
3332 when not initialized.
3333
44486dcf
SM
33342020-05-28 Simon Marchi <simon.marchi@efficios.com>
3335
3336 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3337 <push_dwarf_reg_entry_value>: Remove assert. Override
3338 per_objfile with caller_per_objfile.
3339
f030440d
TV
33402020-05-28 Tom de Vries <tdevries@suse.de>
3341
3342 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
3343 PR gold/15646 workaround to symbol kind "type".
3344
f0fbb768
TT
33452020-05-27 Tom Tromey <tromey@adacore.com>
3346
3347 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
3348
af0b2a3e
TT
33492020-05-27 Tom Tromey <tromey@adacore.com>
3350
3351 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
3352 Use htab_find_with_hash.
3353 <add_abbrev>: Remove "abbrev_number" parameter.
3354 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
3355 "abbrev_number" parameter. Use htab_find_slot_with_hash.
3356 (hash_abbrev): Add comment.
3357 (abbrev_table::lookup_abbrev): Move to header file.
3358 (abbrev_table::read): Update.
3359
7d00ffec
TT
33602020-05-27 Tom Tromey <tromey@adacore.com>
3361
3362 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
3363 method.
3364 <canonical_name>: New member.
3365 <raw_name>: Rename from "name".
3366 (partial_die_info): Initialize canonical_name.
3367 (scan_partial_symbols): Check raw_name.
3368 (partial_die_parent_scope, partial_die_full_name)
3369 (add_partial_symbol, add_partial_subprogram)
3370 (add_partial_enumeration, load_partial_dies): Use "name" method.
3371 (partial_die_info::name): New method.
3372 (partial_die_info::read, guess_partial_die_structure_name)
3373 (partial_die_info::fixup): Update.
3374
697bba18
TT
33752020-05-27 Tom Tromey <tromey@adacore.com>
3376
3377 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
3378 <get_ref_die_offset>: Inline.
3379 <get_ref_die_offset_complaint>: New method.
3380 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
3381 (attribute::get_ref_die_offset_complaint): Rename from
3382 get_ref_die_offset. Just issue complaint.
3383
c17ace43
HD
33842020-05-27 Hannes Domani <ssbssa@yahoo.de>
3385
3386 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
3387
96445f0b
HD
33882020-05-27 Hannes Domani <ssbssa@yahoo.de>
3389
3390 * exec.c (exec_file_attach): Use errno value of first openp failure.
3391
ac637ec3
HD
33922020-05-27 Hannes Domani <ssbssa@yahoo.de>
3393
3394 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
3395 Don't close thread handle.
3396
17ee85fc
TT
33972020-05-27 Tom Tromey <tom@tromey.com>
3398 Simon Marchi <simon.marchi@efficios.com>
3399
3400 * objfiles.h (struct objfile) <partial_symtabs>: Now a
3401 shared_ptr.
3402 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
3403 member.
3404 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
3405 dwarf2_per_bfd_objfile_data_key>: New globals.
3406 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
3407 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
3408 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
3409 shared.
3410 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
3411 short-circuit when sharing.
3412 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
3413 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
3414
39b16f87
SM
34152020-05-27 Simon Marchi <simon.marchi@efficios.com>
3416
3417 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
3418 to...
3419 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
3420 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
3421
fcf23d5b
SM
34222020-05-27 Simon Marchi <simon.marchi@efficios.com>
3423
3424 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
3425 build_name_components, find_name_components_bounds>:
3426 Add per_objfile parameter.
3427 (struct mapped_index) <symbol_name_at>: Likewise.
3428 (struct mapped_debug_names): Remove constructor.
3429 <dwarf2_per_objfile>: Remove field.
3430 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
3431 (mapped_index_base::find_name_components_bounds,
3432 mapped_index_base::build_name_components,
3433 dw2_expand_symtabs_matching_symbol): Likewise.
3434 (class mock_mapped_index) <symbol_name_at>: Likewise.
3435 (check_match): Likewise.
3436 (check_find_bounds_finds): Likewise.
3437 (test_mapped_index_find_name_component_bounds): Update.
3438 (CHECK_MATCH): Update.
3439 (dw2_expand_symtabs_matching): Update.
3440 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
3441 per_objfile parameter.
3442 <find_vec_in_debug_names>: Likewise.
3443 <m_per_objfile>: New field.
3444 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
3445 parameter.
3446 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
3447 (dw2_debug_names_iterator::next): Update.
3448 (dw2_debug_names_lookup_symbol): Update.
3449 (dw2_debug_names_expand_symtabs_for_function): Update.
3450 (dw2_debug_names_map_matching_symbols): Update.
3451 (dw2_debug_names_expand_symtabs_matching): Update.
3452 (dwarf2_read_debug_names): Update.
3453
7188ed02
SM
34542020-05-27 Simon Marchi <simon.marchi@efficios.com>
3455
3456 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
3457 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
3458 move to dwarf2_per_objfile.
3459 <read_in_chain>: Remove.
3460 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
3461 remove_all_cus, age_comp_units>: New methods.
3462 <m_dwarf2_cus>: New member.
3463 (struct dwarf2_per_cu_data) <cu>: Remove.
3464 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
3465 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
3466 moved to methods of dwarf2_per_objfile.
3467 (dwarf2_clear_marks): Remove.
3468 (dwarf2_queue_item::~dwarf2_queue_item): Update.
3469 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
3470 (dwarf2_per_bfd::free_cached_comp_units): Remove.
3471 (dwarf2_per_objfile::remove_all_cus): New.
3472 (class free_cached_comp_units) <~free_cached_comp_units>:
3473 Update.
3474 (load_cu): Update.
3475 (dw2_do_instantiate_symtab): Adjust.
3476 (fill_in_sig_entry_from_dwo_entry): Adjust.
3477 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3478 (cutu_reader::cutu_reader): Likewise.
3479 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
3480 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
3481 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
3482 and dwarf2_per_objfile::age_comp_units.
3483 (load_partial_comp_unit): Update.
3484 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
3485 (process_queue): Likewise.
3486 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
3487 backlink.
3488 (dwarf2_read_addr_index): Likewise.
3489 (follow_die_offset): Likewise.
3490 (dwarf2_fetch_die_loc_sect_off): Likewise.
3491 (dwarf2_fetch_constant_bytes): Likewise.
3492 (dwarf2_fetch_die_type_sect_off): Likewise.
3493 (follow_die_sig_1): Likewise.
3494 (load_full_type_unit): Likewise.
3495 (read_signatured_type): Likewise.
3496 (dwarf2_cu::dwarf2_cu): Don't set cu field.
3497 (dwarf2_cu::~dwarf2_cu): Remove.
3498 (dwarf2_per_objfile::get_cu): New.
3499 (dwarf2_per_objfile::set_cu): New.
3500 (age_cached_comp_units): Rename to...
3501 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
3502 to std::unordered_map.
3503 (free_one_cached_comp_unit): Rename to...
3504 (dwarf2_per_objfile::remove_cu): ... this. Adjust
3505 to std::unordered_map.
3506 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
3507 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
3508 a dwarf2_per_objfile in data.
3509 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
3510 (dwarf2_clear_marks): Remove.
3511
2e671100
SM
35122020-05-27 Simon Marchi <simon.marchi@efficios.com>
3513
3514 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
3515 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
3516 (init_tu_and_read_dwo_dies): Likewise.
3517 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
3518 (cutu_reader::cutu_reader): Likewise.
3519 (load_partial_comp_unit): Likewise.
3520 (process_psymtab_comp_unit): Update.
3521 (build_type_psymtabs_1): Update.
3522 (process_skeletonless_type_unit): Update.
3523 (load_full_comp_unit): Update.
3524 (find_partial_die): Update.
3525 (dwarf2_read_addr_index): Update.
3526 (read_signatured_type): Update.
3527
2e6a9f79
SM
35282020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3529
3530 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
3531 m_header_read_in>: New fields.
3532 <get_header>: New method.
3533 * dwarf2/read.c (per_cu_header_read_in): Remove.
3534 (dwarf2_per_cu_data::get_header): New.
3535 (dwarf2_per_cu_data::addr_size): Update.
3536 (dwarf2_per_cu_data::offset_size): Update.
3537 (dwarf2_per_cu_data::ref_addr_size): Update.
3538
1b555f17
SM
35392020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3540
3541 * dwarf2/read.c (load_cu): Return dwarf2_cu.
3542 (dw2_do_instantiate_symtab): Update.
3543 (queue_and_load_all_dwo_tus): Change parameter from
3544 dwarf2_per_cu_data to dwarf2_cu.
3545 (dwarf2_fetch_die_loc_sect_off): Update.
3546 (dwarf2_fetch_constant_bytes): Update.
3547 (dwarf2_fetch_die_type_sect_off): Update.
3548
8fc0b21d
SM
35492020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3550
3551 * dwarf2/read.c (process_full_comp_unit,
3552 process_full_type_unit): Remove per_cu, per_objfile paramters.
3553 Add dwarf2_cu parameter.
3554 (process_queue): Update.
3555
168c9250
SM
35562020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3557
3558 * dwarf2/read.c (create_cu_from_index_list): Replace
3559 dwarf2_per_objfile parameter with dwarf2_per_bfd.
3560 (create_cus_from_index_list): Likewise.
3561 (create_cus_from_index): Likewise.
3562 (create_signatured_type_table_from_index): Likewise.
3563 (create_cus_from_debug_names_list): Likewise.
3564 (create_cus_from_debug_names): Likewise.
3565 (dwarf2_read_gdb_index): Update.
3566 (dwarf2_read_debug_names): Update.
3567
e286671b
TT
35682020-05-27 Tom Tromey <tom@tromey.com>
3569 Simon Marchi <simon.marchi@efficios.com>
3570
3571 * dwarf2/read.h (struct dwarf2_per_objfile)
3572 <get_type_for_signatured_type, set_type_for_signatured_type>:
3573 New methods.
3574 <m_type_map>: New member.
3575 (struct signatured_type) <type>: Remove.
3576 * dwarf2/read.c
3577 (dwarf2_per_objfile::get_type_for_signatured_type,
3578 dwarf2_per_objfile::set_type_for_signatured_type): New.
3579 (get_signatured_type): Use new methods.
3580
8adb8487
TT
35812020-05-27 Tom Tromey <tom@tromey.com>
3582 Simon Marchi <simon.marchi@efficios.com>
3583
3584 * dwarf2/read.h (struct type_unit_group_unshareable): New.
3585 (struct dwarf2_per_objfile) <type_units>: New member.
3586 <get_type_unit_group_unshareable>: New method.
3587 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
3588 num_symtabs, symtabs>: Remove; move to
3589 type_unit_group_unshareable.
3590 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
3591 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
3592 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
3593
127bbf4b
SM
35942020-05-27 Simon Marchi <simon.marchi@efficios.com>
3595
3596 * dwarf2/read.h (struct dwarf2_per_cu_data):
3597 <dwarf2_per_objfile>: Remove.
3598 * dwarf2/read.c (create_cu_from_index_list): Don't assign
3599 dwarf2_per_objfile.
3600 (create_signatured_type_table_from_index): Likewise.
3601 (create_signatured_type_table_from_debug_names): Likewise.
3602 (create_debug_type_hash_table): Likewise.
3603 (fill_in_sig_entry_from_dwo_entry): Likewise.
3604 (create_type_unit_group): Likewise.
3605 (read_comp_units_from_section): Likewise.
3606 (create_cus_hash_table): Likewise.
3607
f6e649dd
SM
36082020-05-27 Simon Marchi <simon.marchi@efficios.com>
3609
3610 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
3611 dwarf2_per_cu_data::dwarf2_per_objfile.
3612 (compute_compunit_symtab_includes): Likewise.
3613 (dwarf2_cu::start_symtab): Likewise.
3614
aa66c379
SM
36152020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3616
3617 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
3618 parameter.
3619 * dwarf2/read.c (get_die_type_at_offset): Likewise.
3620 (read_namespace_alias): Update.
3621 (lookup_die_type): Update.
3622 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
3623 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
3624 Update.
3625 (disassemble_dwarf_expression): Update.
3626
120ce1b5
SM
36272020-05-27 Simon Marchi <simon.marchi@efficios.com>
3628
3629 * dwarf2/read.h (struct dwarf2_queue_item): Add
3630 dwarf2_per_objfile parameter, assign new parameter.
3631 <per_objfile>: New field.
3632 * dwarf2/read.c (free_one_cached_comp_unit): Add
3633 dwarf2_per_objfile parameter.
3634 (queue_comp_unit): Likewise.
3635 (dw2_do_instantiate_symtab): Update.
3636 (process_psymtab_comp_unit): Update.
3637 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
3638 (process_imported_unit_die): Update.
3639 (queue_and_load_dwo_tu): Update.
3640 (follow_die_offset): Update.
3641 (follow_die_sig_1): Update.
3642
9f47c707
SM
36432020-05-27 Simon Marchi <simon.marchi@efficios.com>
3644
3645 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
3646 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
3647 (read_call_site_scope): Assign per_objfile.
3648 (dwarf2_per_cu_data::objfile): Remove.
3649 * gdbtypes.h (struct call_site) <per_objfile>: New member.
3650 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
3651 dwarf2_per_objfile parameter.
3652 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
3653 dwarf2_per_objfile parameter.
3654 (dwarf_expr_reg_to_entry_parameter): Add output
3655 dwarf2_per_objfile parameter.
3656 (locexpr_get_frame_base): Update.
3657 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
3658 <push_dwarf_reg_entry_value>: Update.
3659 <call_site_to_target_addr>: Update.
3660 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
3661 parameter.
3662 (value_of_dwarf_reg_entry): Update.
3663 (rw_pieced_value): Update.
3664 (indirect_synthetic_pointer): Update.
3665 (dwarf2_evaluate_property): Update.
3666 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
3667 parameter.
3668 (locexpr_read_variable): Update.
3669 (locexpr_get_symbol_read_needs): Update.
3670 (loclist_read_variable): Update.
3671
14095eb3
SM
36722020-05-27 Simon Marchi <simon.marchi@efficios.com>
3673
3674 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
3675 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3676 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
3677 parameter.
3678 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
3679 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3680 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
3681 parameter.
3682 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
3683 sect_variable_value): Add dwarf2_per_objfile parameter.
3684 (class dwarf_evaluate_loc_desc) <dwarf_call,
3685 dwarf_variable_value>: Update.
3686 (fetch_const_value_from_synthetic_pointer): Add
3687 dwarf2_per_objfile parameter.
3688 (fetch_const_value_from_synthetic_pointer): Update.
3689 (coerced_pieced_ref): Update.
3690 (class symbol_needs_eval_context) <dwarf_call,
3691 dwarf_variable_value>: Update.
3692 (dwarf2_compile_expr_to_ax): Update.
3693
3c3cd3d4
SM
36942020-05-27 Simon Marchi <simon.marchi@efficios.com>
3695
3696 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
3697 parameter.
3698 (dwarf2_evaluate_loc_desc_full): Update.
3699
82ca3f51
SM
37002020-05-27 Simon Marchi <simon.marchi@efficios.com>
3701
3702 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
3703 parameter.
3704 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
3705 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
3706 dwarf2_per_objfile parameter.
3707 (decode_debug_loc_dwo_addresses): Likewise.
3708 (dwarf2_find_location_expression): Update.
3709 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
3710 (locexpr_describe_location_piece): Add dwarf2_per_objfile
3711 parameter.
3712 (disassemble_dwarf_expression): Add dwarf2_per_objfile
3713 parameter.
3714 (locexpr_describe_location_1): Likewise.
3715 (locexpr_describe_location): Update.
3716
4b167ea1
SM
37172020-05-27 Simon Marchi <simon.marchi@efficios.com>
3718
3719 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
3720 Remove.
3721 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
3722 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
3723 (dwarf2_compile_property_to_c): Update.
3724 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
3725 use text offset from objfile.
3726 (locexpr_tracepoint_var_ref): Update.
3727 (locexpr_generate_c_location): Update.
3728 (loclist_describe_location): Update.
3729 (loclist_tracepoint_var_ref): Update.
3730 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
3731 dwarf2_per_objfile parameter.
3732 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
3733 use text offset from objfile.
3734 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
3735
89b07335
SM
37362020-05-27 Simon Marchi <simon.marchi@efficios.com>
3737
3738 * dwarf2/expr.h (struct dwarf_expr_context)
3739 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
3740 <offset>: Remove.
3741 <per_objfile>: New member.
3742 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
3743 dwarf2_per_objfile parameter. Don't set offset, set
3744 per_objfile.
3745 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
3746 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
3747 a dwarf2_per_objfile object instead of an offset.
3748 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
3749 constructor.
3750 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
3751 to dwarf2_expr_executor constructor. Don't set offset.
3752 (dwarf2_fetch_cfa_info): Update.
3753 (struct dwarf2_frame_cache) <text_offset>: Remove.
3754 <per_objfile>: New field.
3755 (dwarf2_frame_cache): Update.
3756 (dwarf2_frame_prev_register): Update.
3757 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3758 <dwarf_evaluate_loc_desc>: Add constructor.
3759 (dwarf2_evaluate_loc_desc_full): Update.
3760 (dwarf2_locexpr_baton_eval): Update.
3761 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
3762 Add constructor.
3763 (dwarf2_loc_desc_get_symbol_read_needs): Update.
3764
293e7e51
SM
37652020-05-27 Simon Marchi <simon.marchi@efficios.com>
3766
3767 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
3768 addr_sized_int_type>: Move to dwarf2_cu.
3769 <int_type>: Move to dwarf2_per_objfile.
3770 (struct dwarf2_per_objfile) <int_type>: Move here.
3771 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
3772 addr_sized_int_type>: Move here.
3773 (read_func_scope): Update.
3774 (read_array_type): Update.
3775 (read_tag_string_type): Update.
3776 (attr_to_dynamic_prop): Update.
3777 (dwarf2_per_cu_data::int_type): Rename to...
3778 (dwarf2_per_objfile::int_type): ... this.
3779 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
3780 (dwarf2_cu::addr_sized_int_type): ... this.
3781 (read_subrange_type): Update.
3782 (dwarf2_per_cu_data::addr_type): Rename to...
3783 (dwarf2_cu::addr_type): ... this.
3784 (set_die_type): Update.
3785
64874a40
SM
37862020-05-27 Simon Marchi <simon.marchi@efficios.com>
3787
3788 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
3789 data through per_cu->cu.
3790
4ab09049
SM
37912020-05-27 Simon Marchi <simon.marchi@efficios.com>
3792
3793 * dwarf2/read.c (lookup_dwo_comp_unit): Change
3794 dwarf2_per_cu_data parameter fo dwarf2_cu.
3795 (lookup_dwo_type_unit): Likewise.
3796 (read_cutu_die_from_dwo): Likewise.
3797 (lookup_dwo_unit): Likewise.
3798 (open_and_init_dwo_file): Likewise.
3799 (lookup_dwo_cutu): Likewise.
3800 (lookup_dwo_comp_unit): Likewise.
3801 (lookup_dwo_type_unit): Likewise.
3802 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3803 (cutu_reader::cutu_reader): Update.
3804
47b14e86
SM
38052020-05-27 Simon Marchi <simon.marchi@efficios.com>
3806
3807 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
3808 parameter.
3809 (process_full_type_unit): Likewise.
3810 (process_queue): Update.
3811
43182c09
SM
38122020-05-27 Simon Marchi <simon.marchi@efficios.com>
3813
3814 * dwarf2/read.c (recursively_compute_inclusions): Add
3815 dwarf2_per_objfile parameter.
3816 (compute_compunit_symtab_includes): Likewise.
3817 (process_cu_includes): Update.
3818
7aa104c4
SM
38192020-05-27 Simon Marchi <simon.marchi@efficios.com>
3820
3821 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
3822 parameter.
3823 (create_type_unit_group): Update.
3824 (process_psymtab_comp_unit_reader): Update.
3825 (build_type_psymtabs_reader): Update.
3826
e3beb21d
SM
38272020-05-27 Simon Marchi <simon.marchi@efficios.com>
3828
3829 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
3830 object through m_this_cu->cu.
3831
d460f660
SM
38322020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3833
3834 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
3835 the info parameter.
3836 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
3837
ab432490
SM
38382020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3839
3840 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
3841 per_objfile parameter.
3842 (load_full_type_unit): Add per_objfile parameter.
3843 (read_signatured_type): Likewise.
3844 (load_full_comp_unit): Likewise.
3845 (load_cu): Likewise.
3846 (dw2_do_instantiate_symtab): Likewise.
3847 (dw2_get_file_names): Likewise.
3848 (dw2_map_symtabs_matching_filename): Update.
3849 (dw_expand_symtabs_matching_file_matcher): Update.
3850 (dw2_map_symbol_filenames): Update.
3851 (process_psymtab_comp_unit): Add per_objfile parameter.
3852 (build_type_psymtabs_1): Update.
3853 (process_skeletonless_type_unit): Update.
3854 (dwarf2_build_psymtabs_hard): Update.
3855 (load_partial_comp_unit): Add per_objfile parameter.
3856 (scan_partial_symbols): Update.
3857 (load_full_comp_unit): Add per_objfile parameter.
3858 (process_imported_unit_die): Update.
3859 (create_cus_hash_table): Update.
3860 (find_partial_die): Update.
3861 (dwarf2_read_addr_index): Update.
3862 (follow_die_offset): Update.
3863 (dwarf2_fetch_die_loc_sect_off): Update.
3864 (dwarf2_fetch_constant_bytes): Update.
3865 (dwarf2_fetch_die_type_sect_off): Update.
3866 (follow_die_sig_1): Update.
3867 (load_full_type_unit): Add per_objfile parameter.
3868 (read_signatured_type): Likewise.
3869
313bad1b
SM
38702020-05-27 Simon Marchi <simon.marchi@efficios.com>
3871
3872 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
3873 of objfile_name.
3874
c3699833
SM
38752020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3876
3877 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
3878 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
3879 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
3880 field.
3881 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
3882 (create_cus_from_index): Update.
3883 (dwarf2_read_gdb_index): Update.
3884 (create_cus_from_debug_names): Update.
3885 (dwarf2_read_debug_names): Update.
3886 (get_abbrev_section_for_cu): Update.
3887 (create_all_comp_units): Update.
3888 (read_attribute_value): Update.
3889 (get_debug_line_section): Update.
3890 * dwarf2/index-cache.c (index_cache::store): Update.
3891 * dwarf2/index-write.c (save_gdb_index_command): Update.
3892 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
3893
1859c670
SM
38942020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3895
3896 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
3897 member.
3898 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
3899 dwarf2_per_cu_data::per_bfd.
3900 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
3901 (create_type_unit_group): Likewise.
3902 (queue_comp_unit): Remove reference to
3903 per_cu->dwarf2_per_objfile.
3904 (maybe_queue_comp_unit): Likewise.
3905 (fill_in_sig_entry_from_dwo_entry): Assign new field.
3906 (create_cus_hash_table): Assign new field.
3907
5e22e966
SM
39082020-05-27 Simon Marchi <simon.marchi@efficios.com>
3909
3910 * dwarf2/read.c: Replace
3911 dwarf2_cu->per_cu->dwarf2_per_objfile references with
3912 dwarf2_cu->per_objfile throughout.
3913
97a1449a
SM
39142020-05-27 Simon Marchi <simon.marchi@efficios.com>
3915
3916 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
3917 parameter, don't use per_cu->dwarf2_per_objfile.
3918 (dw2_instantiate_symtab): Likewise.
3919 (dw2_find_last_source_symtab): Update.
3920 (dw2_map_expand_apply): Update.
3921 (dw2_lookup_symbol): Update.
3922 (dw2_expand_symtabs_for_function): Update.
3923 (dw2_expand_all_symtabs): Update.
3924 (dw2_expand_symtabs_with_fullname): Update.
3925 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
3926 don't use per_cu->dwarf2_per_objfile.
3927 (dw2_expand_marked_cus): Update.
3928 (dw2_find_pc_sect_compunit_symtab): Update.
3929 (dw2_debug_names_lookup_symbol): Update.
3930 (dw2_debug_names_expand_symtabs_for_function): Update.
3931 (dw2_debug_names_map_matching_symbols): Update.
3932 (dwarf2_psymtab::expand_psymtab): Update.
3933
9e021579
SM
39342020-05-27 Simon Marchi <simon.marchi@efficios.com>
3935
3936 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
3937 <per_objfile>: New member.
3938 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
3939 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
3940 call to dwarf2_cu.
3941 (cutu_reader::cutu_reader): Update.
3942 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
3943
ae090bdb
SM
39442020-05-27 Simon Marchi <simon.marchi@efficios.com>
3945
3946 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
3947 struct dwarf2_per_objfile.
3948 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
3949 dwarf2_per_bfd.
3950 * dwarf2/read.c (set_die_type): Update.
3951 (get_die_type_at_offset): Update.
3952
af758d11
SM
39532020-05-27 Tom Tromey <tom@tromey.com>
3954 Simon Marchi <simon.marchi@efficios.com>
3955
3956 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
3957 method.
3958 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
3959 get_symtab, set_symtab>: New methods.
3960 <m_symtabs>: New field.
3961 (struct dwarf2_psymtab): Derive from partial_symtab.
3962 <readin_p, get_compunit_symtab>: Declare methods.
3963 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
3964 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
3965 New methods.
3966 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
3967 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
3968 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
3969 (dw2_symtab_iter_next, dw2_print_stats)
3970 (dw2_expand_symtabs_with_fullname)
3971 (dw2_expand_symtabs_matching_one)
3972 (dw_expand_symtabs_matching_file_matcher)
3973 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
3974 (dw2_debug_names_iterator::next)
3975 (dw2_debug_names_map_matching_symbols)
3976 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
3977 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
3978 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
3979 New methods.
3980 (get_compunit_symtab, process_full_comp_unit)
3981 (process_full_type_unit): Update.
3982 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
3983
5989a64e
SM
39842020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3985
3986 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
3987 then introduce a new dwarf2_per_objfile type.
3988 <read_line_string>: Move to the new dwarf2_per_objfile type.
3989 <objfile>: Likewise.
3990 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
3991 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
3992 dwarf2_per_objfile->per_bfd.
3993 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
3994 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
3995 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
3996 (dwarf2_per_bfd::free_cached_comp_units): ... this.
3997 (dwarf2_has_info): Allocate dwarf2_per_bfd.
3998 (dwarf2_per_objfile::locate_sections): Rename to...
3999 (dwarf2_per_bfd::locate_sections): ... this.
4000 (dwarf2_per_objfile::get_cutu): Rename to...
4001 (dwarf2_per_bfd::get_cutu): ... this.
4002 (dwarf2_per_objfile::get_cu): Rename to...
4003 (dwarf2_per_bfd::get_cu): ... this.
4004 (dwarf2_per_objfile::get_tu): Rename to...
4005 (dwarf2_per_bfd::get_tu): ... this.
4006 (dwarf2_per_objfile::allocate_per_cu): Rename to...
4007 (dwarf2_per_bfd::allocate_per_cu): ... this.
4008 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
4009 (dwarf2_per_bfd::allocate_signatured_type): ... this.
4010 (get_gdb_index_contents_ftype): Change parameter from
4011 dwarf2_per_objfile to dwarf2_per_bfd.
4012 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
4013 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
4014
a50264ba
TT
40152020-05-27 Tom Tromey <tom@tromey.com>
4016 Simon Marchi <simon.marchi@efficios.com>
4017
4018 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
4019 (allocate_piece_closure): Set "per_objfile" member.
4020 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
4021 (locexpr_describe_location, loclist_describe_location): Use new
4022 member.
4023 * dwarf2/read.c (read_call_site_scope)
4024 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
4025 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
4026 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
4027 handle_data_member_location): Set per_objfile member.
4028 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
4029 member.
4030 (struct dwarf2_loclist_baton) <per_objfile>: New member.
4031
d3473f0c
TT
40322020-05-27 Tom Tromey <tom@tromey.com>
4033
4034 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
4035 allocate_signatured_type>: Declare new methods.
4036 <m_num_psymtabs>: New member.
4037 (struct dwarf2_per_cu_data) <index>: New member.
4038 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
4039 (dwarf2_per_objfile::allocate_signatured_type): New methods.
4040 (create_cu_from_index_list): Use allocate_per_cu.
4041 (create_signatured_type_table_from_index)
4042 (create_signatured_type_table_from_debug_names)
4043 (create_debug_type_hash_table, add_type_unit)
4044 (read_comp_units_from_section): Use allocate_signatured_type.
4045
5717c425
TT
40462020-05-27 Tom Tromey <tom@tromey.com>
4047
4048 * psymtab.c (partial_map_expand_apply)
4049 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
4050 (psym_lookup_global_symbol_language)
4051 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
4052 (psym_print_stats, psym_expand_symtabs_for_function)
4053 (psym_map_symbol_filenames, psym_map_matching_symbols)
4054 (psym_expand_symtabs_matching)
4055 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
4056 (maintenance_check_psymtabs): Update.
4057 * psympriv.h (struct partial_symtab) <readin_p,
4058 get_compunit_symtab>: Add objfile parameter.
4059 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
4060 Likewise.
4061 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
4062 get_compunit_symtab>: Likewise.
4063 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
4064
45940949
TT
40652020-05-27 Tom Tromey <tom@tromey.com>
4066
4067 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
4068 member.
4069 * dwarf2/read.c (delete_file_name_entry): Fix comment.
4070 (create_cu_from_index_list)
4071 (create_signatured_type_table_from_index)
4072 (create_signatured_type_table_from_debug_names)
4073 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
4074 (dwarf2_create_include_psymtab)
4075 (create_debug_type_hash_table, add_type_unit)
4076 (create_type_unit_group, read_comp_units_from_section)
4077 (dwarf2_compute_name, create_cus_hash_table)
4078 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
4079 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
4080 obstack.
4081 (dw2_get_real_path): Likewise. Change argument to
4082 dwarf2_per_objfile.
4083
f8c6d152
LM
40842020-05-27 Luis Machado <luis.machado@linaro.org>
4085
4086 PR tdep/26000
4087 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
4088 for ldrd (immediate).
4089
e98d2e6d
PW
40902020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4091
4092 * command.h: Add comment giving the name of class_tui.
4093 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
4094 create the fake command for the help for class_tui.
4095
53a47a3e
TT
40962020-05-26 Tom Tromey <tromey@adacore.com>
4097
4098 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
4099 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
4100 (val_atr): New function.
4101 (value_val_atr): Use it.
4102 * ada-valprint.c (print_optional_low_bound): Change low bound
4103 handling for enums.
4104 (val_print_packed_array_elements): Don't call discrete_position.
4105 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
4106 discrete_position for enum types.
4107 * language.c (default_print_array_index): Change type.
4108 * language.h (struct language_defn) <la_print_array_index>: Add
4109 index_type parameter, change type of index_value.
4110 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
4111 (default_print_array_index): Update.
4112 * valprint.c (maybe_print_array_index): Don't call
4113 value_from_longest. Update.
4114 (value_print_array_elements): Don't call discrete_position.
4115
0bc2354b
TT
41162020-05-26 Tom Tromey <tromey@adacore.com>
4117
4118 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
4119 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
4120
1218a4bf
CDA
41212020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
4122
4123 PR gdb/13519
4124 * avr-tdep.c (avr_integer_to_address): Return data or code
4125 address accordingly to the second 'type' argument of the
4126 function.
4127
92651b1d
MW
41282020-05-25 Michael Weghorn <m.weghorn@posteo.de>
4129
4130 * infcmd.c, inferior.h: (construct_inferior_arguments):
4131 Moved function from here to gdbsupport/common-inferior.{h,cc}
4132
0a4f5f8c
TT
41332020-05-23 Tom Tromey <tom@tromey.com>
4134
4135 Revert commit eca1f90c:
4136 * NEWS: Remove entry for completion styling.
4137 * completer.c (_rl_completion_prefix_display_length): Move
4138 declaration later.
4139 (gdb_fnprint): Revert.
4140 (gdb_display_match_list_1): Likewise.
4141 * cli/cli-style.c (completion_prefix_style)
4142 (completion_difference_style, completion_suffix_style): Remove.
4143 (_initialize_cli_style): Revert.
4144 * cli/cli-style.h (completion_prefix_style)
4145 (completion_difference_style, completion_suffix_style): Don't
4146 declare.
4147
e08bd6c5
PA
41482020-05-24 Pedro Alves <palves@redhat.com>
4149
4150 * symtab.c (completion_list_add_name): Return boolean indication
4151 of whether the symbol matched.
4152 (completion_list_add_symbol): Don't try to remove C++ aliases if
4153 the symbol didn't match in the first place.
4154 * symtab.h (completion_list_add_name): Return bool.
4155
ceacbf6e
SM
41562020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
4157
4158 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
4159 type::field.
4160
26f16254
JB
41612020-05-23 Joel Brobecker <brobecker@adacore.com>
4162
4163 GDB 9.2 released.
4164
eca1f90c
TT
41652020-05-23 Tom Tromey <tom@tromey.com>
4166
4167 * NEWS: Add entry for completion styling.
4168 * completer.c (_rl_completion_prefix_display_length): Move
4169 declaration earlier.
4170 (gdb_fnprint): Use completion_style.
4171 (gdb_display_match_list_1): Likewise.
4172 * cli/cli-style.c (completion_prefix_style)
4173 (completion_difference_style, completion_suffix_style): New
4174 globals.
4175 (_initialize_cli_style): Register new globals.
4176 * cli/cli-style.h (completion_prefix_style)
4177 (completion_difference_style, completion_suffix_style): Declare.
4178
51e2cfa2
PA
41792020-05-23 Pedro Alves <palves@redhat.com>
4180
4181 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
4182 (parse_escape): Use ISDIGIT instead of isdigit.
4183 (puts_debug): Use gdb_isprint instead of isprint.
4184 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
4185 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
4186 ISSPACE instead of isspace.
4187 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
4188 instead of isspace.
4189 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
4190 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
4191 instead of isxdigit and ISDIGIT instead of isdigit.
4192
80fc5e77
SM
41932020-05-22 Simon Marchi <simon.marchi@efficios.com>
4194
4195 * gdbtypes.h (struct type) <field>: New method.
4196 (TYPE_FIELDS): Remove, replace all uses with either type::fields
4197 or type::field.
4198
3cabb6b0
SM
41992020-05-22 Simon Marchi <simon.marchi@efficios.com>
4200
4201 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
4202 (TYPE_FIELDS): Use type::fields. Change all call sites that
4203 modify the propery to use type::set_fields instead.
4204
1f704f76
SM
42052020-05-22 Simon Marchi <simon.marchi@efficios.com>
4206
4207 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
4208 type::num_fields instead.
4209
5e33d5f4
SM
42102020-05-22 Simon Marchi <simon.marchi@efficios.com>
4211
4212 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
4213 methods.
4214 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
4215 that modify the number of fields to use type::set_num_fields
4216 instead.
4217
9392ebb3
TT
42182020-05-22 Tom Tromey <tromey@adacore.com>
4219
4220 * compile/compile-object-load.h (munmap_list_free): Don't
4221 declare.
4222
7c13f4e8
AB
42232020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
4224
4225 * annotate.c (annotate_source_line): Update return type, add call
4226 to update current symtab and line.
4227 * annotate.h (annotate_source_line): Update return type, and
4228 extend header comment.
4229 * source.c (info_line_command): Check annotation_level before
4230 calling annotate_source_line.
4231 * stack.c (print_frame_info): If calling annotate_source_line
4232 returns true, then don't print any other source line information.
4233
aa370940
SM
42342020-05-21 Simon Marchi <simon.marchi@efficios.com>
4235
4236 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
4237
84d53fa9
SM
42382020-05-21 Simon Marchi <simon.marchi@efficios.com>
4239
4240 * coffread.c (patch_type): Remove NULL check before xfree.
4241 * corefile.c (set_gnutarget): Likewise.
4242 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
4243 * exec.c (build_section_table): Likewise.
4244 * remote.c (remote_target::pass_signals): Likewise.
4245 * utils.c (n_spaces): Likewise.
4246 * cli/cli-script.c (document_command): Likewise.
4247 * i386-windows-tdep.c (core_process_module_section): Likewise.
4248 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
4249
9d428aae
SM
42502020-05-20 Simon Marchi <simon.marchi@efficios.com>
4251
4252 * symfile.c (reread_symbols): Clear objfile's section_offsets
4253 vector and section indices, re-compute them by calling
4254 sym_offsets.
4255
250106a7
TT
42562020-05-20 Tom Tromey <tromey@adacore.com>
4257
4258 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 4259 (desc_one_bound, desc_index_type): Compute field name.
250106a7 4260
9a0bacfb
TV
42612020-05-20 Tom de Vries <tdevries@suse.de>
4262
4263 PR symtab/25833
4264 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
4265
7b958a48
AM
42662020-05-20 Alan Modra <amodra@gmail.com>
4267
4268 PR 25993
4269 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
4270 bfd_set_filename.
4271 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
4272 passed to bfd_set_filename.
4273 * symfile-mem.c (add_vsyscall_page): Likewise for string
4274 passed to symbol_file_add_from_memory.
4275 (symbol_file_add_from_memory): Make name param a const char* and
4276 don't strdup.
4277
c7e97679
AM
42782020-05-20 Alan Modra <amodra@gmail.com>
4279
4280 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
4281 rather than accessing bfd->filename directly.
4282 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
4283 and use bfd_section_name.
4284 * dwarf2/frame.c (decode_frame_entry): Likewise.
4285 * exec.c (exec_set_section_address): Likewise.
4286 * solib-aix.c (solib_aix_bfd_open): Likewise.
4287 * stap-probe.c (get_stap_base_address): Likewise.
4288 * symfile.c (reread_symbols): Likewise.
4289
563c591b
TT
42902020-05-19 Tom Tromey <tromey@adacore.com>
4291
4292 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
4293
f408d82c
SM
42942020-05-19 Simon Marchi <simon.marchi@efficios.com>
4295
4296 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
4297
98c59b52
PA
42982020-05-19 Pedro Alves <palves@redhat.com>
4299
4300 * NEWS (set exec-file-mismatch): Adjust entry.
4301 * exec.c: Include "build-id.h".
4302 (validate_exec_file): Try to match build IDs instead of filenames.
4303 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
4304 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
4305 and pass down 'warn_if_slow'.
4306 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
4307 gdb_bfd_open_closure to pass it down.
4308 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
4309
4111f652
PA
43102020-05-19 Pedro Alves <palves@redhat.com>
4311
4312 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
4313 * target.c (target_fileio_open_1): Rename to target_fileio_open
4314 and make extern. Use bool.
4315 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
4316 (target_fileio_read_alloc_1): Adjust.
4317 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
4318 (target_fileio_open_warn_if_slow): Delete declaration.
4319
ad80db5b
PA
43202020-05-19 Pedro Alves <palves@redhat.com>
4321
4322 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
4323 Adjust all callers.
4324
1d6ce4d3
YS
43252020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
4326
4327 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
4328 whether disp is negative.
4329
9005fbbb
SM
43302020-05-19 Simon Marchi <simon.marchi@efficios.com>
4331
4332 * symfile.h (struct symfile_segment_data)
4333 <~symfile_segment_data>: Remove.
4334 <segment_info>: Change to std::vector.
4335 * symfile.c (default_symfile_segments): Update.
4336 * elfread.c (elf_symfile_segments): Update.
4337
68b888ff
SM
43382020-05-19 Simon Marchi <simon.marchi@efficios.com>
4339
4340 * symfile.h (struct symfile_segment_data) <struct segment>: New.
4341 <segments>: New.
4342 <segment_bases, segment_sizes>: Remove.
4343 * symfile.c (default_symfile_segments): Update.
4344 * elfread.c (elf_symfile_segments): Update.
4345 * remote.c (remote_target::get_offsets): Update.
4346 * solib-target.c (solib_target_relocate_section_addresses):
4347 Update.
4348
62982abd
SM
43492020-05-19 Simon Marchi <simon.marchi@efficios.com>
4350
4351 * symfile.h (struct symfile_segment_data): Initialize fields.
4352 <~symfile_segment_data>: Add.
4353 (symfile_segment_data_up): New.
4354 (struct sym_fns) <sym_segments>: Return a
4355 symfile_segment_data_up.
4356 (default_symfile_segments): Return a symfile_segment_data_up.
4357 (free_symfile_segment_data): Remove.
4358 (get_symfile_segment_data): Return a symfile_segment_data_up.
4359 * symfile.c (default_symfile_segments): Likewise.
4360 (get_symfile_segment_data): Likewise.
4361 (free_symfile_segment_data): Remove.
4362 (symfile_find_segment_sections): Update.
4363 * elfread.c (elf_symfile_segments): Return a
4364 symfile_segment_data_up.
4365 * remote.c (remote_target::get_offsets): Update.
4366 * solib-target.c (solib_target_relocate_section_addresses):
4367 Update.
4368 * symfile-debug.c (debug_sym_segments): Return a
4369 symfile_segment_data_up.
4370
7f204339
RO
43712020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4372
e52a0f1b
RO
4373 PR build/25981
4374 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
4375 Hardcode register numbers.
4376
7f204339
RO
4377 PR build/25981
4378 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
4379 procfs_find_LDT_entry): Remove.
4380 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
4381 procfs_find_LDT_entry): Remove.
4382 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
4383 Remove.
4384
7f32a4d5
PA
43852020-05-17 Pedro Alves <palves@redhat.com>
4386 Andrew Burgess <andrew.burgess@embecosm.com>
4387 Keno Fischer <keno@juliacomputing.com>
4388
4389 PR gdb/25741
4390 * breakpoint.c (build_target_condition_list): Update comments.
4391 (build_target_command_list): Update comments and skip matching
4392 locations.
4393 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
4394 a separate function. Simplify "set breakpoint auto-hw off"
4395 handling.
4396 (insert_breakpoints): Update comment.
4397 (tracepoint_locations_match): New parameter. For breakpoints,
4398 compare location types too, if the caller wants to.
4399 (handle_automatic_hardware_breakpoints): New functions.
4400 (bp_location_is_less_than): Also sort by location type and
4401 hardware breakpoint length.
4402 (update_global_location_list): Handle "set breakpoint auto-hw on"
4403 here.
4404 (update_breakpoint_locations): Ask breakpoint_locations_match to
4405 ignore location types.
4406
7d93a1e0
SM
44072020-05-16 Simon Marchi <simon.marchi@efficios.com>
4408
4409 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
4410 type::name instead.
4411
d0e39ea2
SM
44122020-05-16 Simon Marchi <simon.marchi@efficios.com>
4413
4414 * gdbtypes.h (struct type) <name, set_name>: New methods.
4415 (TYPE_CODE): Use type::name. Change all call sites used to set
4416 the name to use type::set_name instead.
4417
2dab0c7b
TT
44182020-05-16 Tom Tromey <tom@tromey.com>
4419
4420 * top.c (quit_force): Update.
4421 * infrun.c (handle_no_resumed): Update.
4422 * top.h (all_uis): New function.
4423 (ALL_UIS): Remove.
4424
59f7bd8d
SM
44252020-05-16 Simon Marchi <simon.marchi@efficios.com>
4426
4427 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
4428
9bf058f0
PA
44292020-05-16 Pedro Alves <palves@redhat.com>
4430
4431 * ia64-linux-nat.c
4432 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
4433 Declare method.
4434 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
4435
8f86ae1a
SM
44362020-05-15 Simon Marchi <simon.marchi@efficios.com>
4437
4438 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
4439 (sparc64_adi_info): Likewise.
4440
d6bc0792
TT
44412020-05-15 Tom Tromey <tom@tromey.com>
4442
4443 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
4444 block_objfile.
4445 (lookup_objfile_from_block): Remove.
4446 (lookup_symbol_in_block, lookup_symbol_in_static_block)
4447 (lookup_global_symbol): Use block_objfile.
4448 * symtab.h (lookup_objfile_from_block): Don't declare.
4449 * printcmd.c (clear_dangling_display_expressions): Use
4450 block_objfile.
4451 * parse.c (operator_check_standard): Use block_objfile.
4452
8c14c3a3
TT
44532020-05-15 Tom Tromey <tom@tromey.com>
4454
4455 * language.c (language_alloc_type_symbol): Set
4456 SYMBOL_SECTION.
4457 * symtab.c (initialize_objfile_symbol): Remove.
4458 (allocate_symbol): Remove.
4459 (allocate_template_symbol): Remove.
4460 * dwarf2/read.c (fixup_go_packaging): Use "new".
4461 (new_symbol): Use "new".
4462 (read_variable): Don't call initialize_objfile_symbol. Use
4463 "new".
4464 (read_func_scope): Use "new".
4465 * xcoffread.c (process_xcoff_symbol): Don't call
4466 initialize_objfile_symbol.
4467 (SYMBOL_DUP): Remove.
4468 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
4469 "new".
4470 * symtab.h (allocate_symbol, initialize_objfile_symbol)
4471 (allocate_template_symbol): Don't declare.
4472 (struct symbol): Add copy constructor. Change defaults.
4473 * jit.c (finalize_symtab): Use "new".
4474 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
4475 Use "new".
4476 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
4477 (common_block_end): Use "new".
4478 * mdebugread.c (parse_symbol): Use "new".
4479 (new_symbol): Likewise.
4480
5b4a1a8d
PW
44812020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4482
4483 * NEWS: Mention changes to help and apropos.
4484
57b4f16e
PW
44852020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4486
4487 * command.h (enum command_class): Improve comments, document
4488 that class_alias is for user-defined aliases, give the class
4489 name for each class, remove unused class_xdb.
4490 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
4491 * breakpoint.c (_initialize_breakpoint): Replace class_alias
4492 by a precise class.
4493 * infcmd.c (_initialize_infcmd): Likewise.
4494 * reverse.c (_initialize_reverse): Likewise.
4495 * stack.c (_initialize_stack): Likewise.
4496 * symfile.c (_initialize_symfile): Likewise.
4497 * tracepoint.c (_initialize_tracepoint): Likewise.
4498
7c05caf7
PW
44992020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4500
4501 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
4502 when their aliased command is traversed.
4503 (help_cmd): Add fput_command_names_styled call to
4504 output command name and aliases when command has an alias.
4505
3b3aaacb
PW
45062020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4507
4508 * cli/cli-decode.h (help_cmd_list): Remove declaration.
4509 * cli/cli-decode.c (help_cmd_list): Declare as static,
4510 remove prefix argument, use bool for recurse arg, rework to show the aliases of
4511 a command together with the command.
4512 (fput_command_name_styled, fput_command_names_styled): New functions.
4513 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
4514 fput_command_name_styled.
4515 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
4516 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
4517
7aa1b46f
PW
45182020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4519
4520 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
4521 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
4522 * command.h (cmd_show_list): Likewise.
4523 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
4524 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
4525
89bcba74
PW
45262020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4527
4528 * unittests/command-def-selftests.c (traverse_command_structure):
4529 Verify all commands of a list have the same prefix command and
4530 that only the top cmdlist commands have a null prefix.
4531
3f4d92eb
PW
45322020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4533
4534 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
4535 as prefix, not one of its aliases.
4536 (set_cmd_prefix): Remove.
4537 (do_add_cmd): Centralize the setting of the prefix of a command, when
4538 command is defined after its full chain of prefix commands.
4539 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
4540 (add_setshow_cmd_full): Likewise.
4541 (update_prefix_field_of_prefixed_commands): New function.
4542 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
4543 update_prefix_field_of_prefixed_commands.
4544 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
4545 addresses of remote_set_cmdlist and remote_show_cmdlist given
4546 as argument, not the address of an argument.
4547 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
4548 * gdb/remote.c (_initialize_remote): Likewise.
4549
0605465f
PW
45502020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4551
4552 * cli/cli-cmds.c (alias_command): Check for an existing alias
4553 using lookup_cmd_composition, as valid_command_p is too strict
4554 and forbids aliases that are the prefix of an existing alias
4555 or command.
4556 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
4557 command is properly recognised as a valid command.
4558
58e6ac70
PW
45592020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4560
4561 * unittests/help-doc-selftests.c: Rename to
4562 unittests/command-def-selftests.c
4563 * unittests/command-def-selftests.c (help_doc_tests): Update some
4564 comments.
4565 (command_structure_tests, traverse_command_structure): New namespace
4566 and function.
4567 (command_structure_invariants_tests): New function.
4568 (_initialize_command_def_selftests) Renamed from
4569 _initialize_help_doc_selftests, register command_structure_invariants
4570 selftest.
4571
a7b9ceb8
PW
45722020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4573
4574 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
4575 an alias of 'show'.
4576
b2188a06
JB
45772020-05-15 Joel Brobecker <brobecker@adacore.com>
4578
4579 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
4580 ada_is_fixed_point_type. Update all callers.
4581 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
4582 all callers.
4583 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
4584 Update all callers.
4585 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
4586 print_fixed_point_type. Update all callers.
4587 * ada-valprint.c (ada_value_print_num): Replace call to
4588 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
4589
a51951c2
KB
45902020-05-14 Kevin Buettner <kevinb@redhat.com>
4591
4592 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
4593 processors.
4594 (cpu_supports_bts): Add CV_AMD case.
4595
29d6859f
LM
45962020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
4597 Simon Marchi <simon.marchi@efficios.com>
4598
4599 * infrun.c (stop_all_threads): Collect multiple wait events at
4600 each pass.
4601
78134374
SM
46022020-05-14 Simon Marchi <simon.marchi@efficios.com>
4603
4604 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
4605 type::code instead.
4606
67607e24
SM
46072020-05-14 Simon Marchi <simon.marchi@efficios.com>
4608
4609 * gdbtypes.h (struct type) <code, set_code>: New methods.
4610 (TYPE_CODE): Use type::code. Change all call sites used to set
4611 the code to use type::set_code instead.
4612
a05575d3
TBA
46132020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4614 Tom de Vries <tdevries@suse.de>
4615 Pedro Alves <palves@redhat.com>
4616
4617 PR threads/25478
4618 * infrun.c (stop_all_threads): Do NOT ignore
4619 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
4620 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
4621 received.
4622 (handle_no_resumed): Remove code handling a live inferior with no
4623 threads.
4624 * remote.c (has_single_non_exited_thread): New.
4625 (remote_target::update_thread_list): Do not delete a thread if is
4626 the last thread of the process.
4627 * thread.c (thread_select): Call delete_exited_threads instead of
4628 prune_threads.
4629
6ad82919
TBA
46302020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4631
4632 * infrun.c (stop_all_threads): Enable/disable thread events of all
4633 targets. Move a debug message denoting the end of the function
4634 into the SCOPED_EXIT block.
4635
d890404b
TBA
46362020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4637
4638 * process-stratum-target.h: Include <set>.
4639 (all_non_exited_process_targets, switch_to_target_no_thread): New
4640 function declarations.
4641 * process-stratum-target.c (all_non_exited_process_targets)
4642 (switch_to_target_no_thread): New function implementations.
4643
293b3ebc
TBA
46442020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4645
4646 * infrun.c (handle_inferior_event): Extract out a piece of code
4647 into...
4648 (mark_non_executing_threads): ...this new function.
4649
7ca9b62a
TBA
46502020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4651
4652 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
4653 use.
4654
fc75c28b
TBA
46552020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4656
4657 * regcache.c (regcache_read_pc_protected): New function
4658 implementation that returns 0 if the PC cannot read via
4659 'regcache_read_pc'.
4660 * infrun.c (proceed): Call 'regcache_read_pc_protected'
4661 instead of 'regcache_read_pc'.
4662 (keep_going_pass_signal): Ditto.
4663
a89febbd
TT
46642020-05-13 Tom Tromey <tromey@adacore.com>
4665
4666 * ada-lang.c (align_value): Remove.
4667 (ada_template_to_fixed_record_type_1): Use align_up.
4668
f7e23710
TBA
46692020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4670
4671 * async-event.c: Update the copyright year.
4672 * async-event.h: Update the copyright year.
4673
02ff80c2
SM
46742020-05-12 Simon Marchi <simon.marchi@efficios.com>
4675
4676 * objfiles.h (is_addr_in_objfile,
4677 shared_objfile_contains_address_p): Return bool.
4678 * objfile.c (is_addr_in_objfile,
4679 shared_objfile_contains_address_p): Return bool.
4680
4fd6c7e8
TT
46812020-05-11 Tom Tromey <tromey@adacore.com>
4682
4683 * cli/cli-cmds.c (info_command): Restore.
4684 (_initialize_cli_cmds): Use add_prefix_command for "info".
4685 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
4686
5eb68a39
TT
46872020-05-11 Tom Tromey <tromey@adacore.com>
4688
4689 * ada-lang.c (ada_value_primitive_field): Now public.
4690 * ada-lang.h (ada_value_primitive_field): Declare.
4691 * ada-valprint.c (print_field_values): Use
4692 ada_value_primitive_field for wrapper fields.
4693
7666722f
TV
46942020-05-11 Tom de Vries <tdevries@suse.de>
4695
4696 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
4697 MODULE_DOMAIN.
4698
3ee6bb11
TV
46992020-05-11 Tom de Vries <tdevries@suse.de>
4700
4701 PR symtab/25941
4702 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
4703 with length 0, if not gdb-produced.
4704 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
4705
43434996
TV
47062020-05-09 Tom de Vries <tdevries@suse.de>
4707
4708 PR gdb/25955
4709 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
4710 calculation.
4711
2f78cffc
TT
47122020-05-09 Tom Tromey <tom@tromey.com>
4713
4714 * top.c (server_command): Now bool.
4715 * top.h (server_command): Now bool.
4716
4f7bc5ed
TT
47172020-05-08 Tom Tromey <tromey@adacore.com>
4718
4719 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
4720 already being processed.
4721
8be4b118
TT
47222020-05-08 Tom Tromey <tom@tromey.com>
4723
4724 * printcmd.c (struct display) <next>: Remove.
4725 <display>: New constructor.
4726 <exp_string>: Now a std::string.
4727 <enabled_p>: Now a bool.
4728 (display_number): Move definition earlier.
4729 (displays): Rename from display_chain. Now a std::vector.
4730 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
4731 (display_command): Update.
4732 (do_one_display, disable_display)
4733 (enable_disable_display_command, do_enable_disable_display):
4734 Update.
4735 (free_display): Remove.
4736 (clear_displays): Rewrite.
4737 (delete_display): Update.
4738 (map_display_numbers): Use function_view. Remove "data"
4739 parameter. Update.
4740 (do_delete_display): Remove.
4741 (undisplay_command): Update.
4742 (do_one_display, do_displays, disable_display)
4743 (info_display_command): Update.
4744 (do_enable_disable_display): Remove.
4745 (enable_disable_display_command)
4746 (clear_dangling_display_expressions): Update.
4747
94c93c35
TT
47482020-05-08 Tom Tromey <tom@tromey.com>
4749
4750 * symtab.c (set_symbol_cache_size)
4751 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
4752 (maintenance_print_symbol_cache_statistics): Update.
4753 * symmisc.c (print_symbol_bcache_statistics)
4754 (print_objfile_statistics, maintenance_print_objfiles)
4755 (maintenance_info_symtabs, maintenance_check_symtabs)
4756 (maintenance_expand_symtabs, maintenance_info_line_tables):
4757 Update.
4758 * symfile-debug.c (set_debug_symfile): Update.
4759 * source.c (forget_cached_source_info): Update.
4760 * python/python.c (gdbpy_progspaces): Update.
4761 * psymtab.c (maintenance_info_psymtabs): Update.
4762 * probe.c (parse_probes): Update.
4763 * linespec.c (iterate_over_all_matching_symtabs)
4764 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
4765 * guile/scm-progspace.c (gdbscm_progspaces): Update.
4766 * exec.c (exec_target::close): Update.
4767 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
4768 * breakpoint.c (print_one_breakpoint_location)
4769 (create_longjmp_master_breakpoint)
4770 (create_std_terminate_master_breakpoint): Update.
4771 * progspace.c (program_spaces): Now a std::vector.
4772 (maybe_new_address_space): Update.
4773 (add_program_space): Remove.
4774 (program_space::program_space): Update.
4775 (remove_program_space): Update.
4776 (number_of_program_spaces): Remove.
4777 (print_program_space, update_address_spaces): Update.
4778 * progspace.h (program_spaces): Change type.
4779 (ALL_PSPACES): Remove.
4780 (number_of_program_spaces): Don't declare.
4781 (struct program_space) <next>: Remove.
4782
a1fd1ac9
TT
47832020-05-08 Tom Tromey <tom@tromey.com>
4784
4785 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
4786 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
4787 (enable_break): Update.
4788 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
4789 (frv_fdpic_find_canonical_descriptor): Update.
4790 (frv_fetch_objfile_link_map): Update.
4791 * progspace.c (program_space::free_all_objfiles): Update.
4792 (program_space::solibs): New method.
4793 * progspace.h (struct program_space) <solibs>: New method.
4794 * solist.h (master_so_list): Don't declare.
4795 (ALL_SO_LIBS): Remove.
4796 * solib.h (so_list_head): Remove.
4797 (update_solib_list): Update comment.
4798 * solib.c (master_so_list): Remove.
4799 (solib_used, update_solib_list, solib_add)
4800 (info_sharedlibrary_command, clear_solib)
4801 (reload_shared_libraries_1, remove_user_added_objfile): Update.
4802
38eae084
TT
48032020-05-08 Tom Tromey <tom@tromey.com>
4804
4805 * extension.c (extension_languages): Now a std::array.
4806 (ALL_EXTENSION_LANGUAGES): Remove.
4807 (get_ext_lang_defn, get_ext_lang_of_file)
4808 (eval_ext_lang_from_control_command): Update.
4809 (finish_ext_lang_initialization)
4810 (auto_load_ext_lang_scripts_for_objfile)
4811 (ext_lang_type_printers::ext_lang_type_printers)
4812 (apply_ext_lang_type_printers)
4813 (ext_lang_type_printers::~ext_lang_type_printers)
4814 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
4815 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
4816 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
4817 (get_matching_xmethod_workers, ext_lang_colorize)
4818 (ext_lang_before_prompt): Update.
4819 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
4820
596dc4ad
TT
48212020-05-08 Tom Tromey <tom@tromey.com>
4822
4823 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
4824 overload.
4825 <swap_string, m_string>: Remove.
4826 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
4827 Update.
4828 * stabsread.c (define_symbol, read_type): Update.
4829 * linespec.c (find_linespec_symbols): Update.
4830 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
4831 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
4832 * dbxread.c (read_dbx_symtab): Update.
4833 * cp-support.h (cp_canonicalize_string_full)
4834 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
4835 Return unique_xmalloc_ptr.
4836 * cp-support.c (inspect_type): Update.
4837 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
4838 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
4839 Likewise.
4840 * c-typeprint.c (print_name_maybe_canonical): Update.
4841 * break-catch-throw.c (check_status_exception_catchpoint):
4842 Update.
4843
bf4cb9be
TV
48442020-05-08 Tom de Vries <tdevries@suse.de>
4845
4846 * infrun.c (follow_fork): Copy current_line and current_symtab to
4847 child thread.
4848
a1b68f28
SM
48492020-05-07 Simon Marchi <simon.marchi@efficios.com>
4850
4851 * async-event.c (struct async_signal_handler, struct
4852 async_event_handler): Reformat, remove typedef.
4853
98d48915
SM
48542020-05-07 Simon Marchi <simon.marchi@efficios.com>
4855
4856 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
4857 access thistype->main_type->dyn_prop_list directly.
4858
7aa91313
SM
48592020-05-07 Simon Marchi <simon.marchi@efficios.com>
4860
4861 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
4862 (remove_dyn_prop): Remove. Update all users to use
4863 type::remove_dyn_prop.
4864 * gdbtypes.c (remove_dyn_prop): Rename to...
4865 (type::remove_dyn_prop): ... this.
4866
5c54719c
SM
48672020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
4868
4869 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
4870 (add_dyn_prop): Remove. Update all users to use
4871 type::add_dyn_prop.
4872 * gdbtypes.c (add_dyn_prop): Rename to...
4873 (type::add_dyn_prop): ... this.
4874
24e99c6c
SM
48752020-05-07 Simon Marchi <simon.marchi@efficios.com>
4876
4877 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
4878 (get_dyn_prop): Remove. Update all users to use
4879 type::dyn_prop.
4880 * gdbtypes.c (get_dyn_prop): Rename to...
4881 (type::dyn_prop): ... this.
4882
0d4bf016
SM
48832020-05-06 Simon Marchi <simon.marchi@efficios.com>
4884
4885 * gdbtypes.h (struct main_type) <flag_static>: Remove.
4886
ac4a4f1c
SM
48872020-05-06 Simon Marchi <simon.marchi@efficios.com>
4888
4889 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
4890 instruction, skip it if it's there.
4891
a3bbacc1
SM
48922020-05-05 Simon Marchi <simon.marchi@efficios.com>
4893
4894 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
4895
c3236f84
SM
48962020-05-04 Simon Marchi <simon.marchi@efficios.com>
4897
4898 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
4899 * gdbtypes.c (recursive_dump_type): Remove use of
4900 TYPE_INCOMPLETE.
4901
3b6acaee
TT
49022020-05-03 Tom Tromey <tom@tromey.com>
4903
4904 * breakpoint.c (catch_command, tcatch_command): Remove.
4905 (_initialize_breakpoint): Use add_basic_prefix_cmd,
4906 add_show_prefix_cmd.
4907 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
4908 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
4909 Remove.
4910 (add_internal_problem_command): Use add_basic_prefix_cmd,
4911 add_show_prefix_cmd.
4912 * mips-tdep.c (set_mipsfpu_command): Remove.
4913 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
4914 * dwarf2/index-cache.c (set_index_cache_command): Remove.
4915 (_initialize_index_cache): Use add_basic_prefix_cmd.
4916 * memattr.c (dummy_cmd): Remove.
4917 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
4918 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
4919 (_initialize_tui_win): Use add_basic_prefix_cmd,
4920 add_show_prefix_cmd.
4921 * cli/cli-logging.c (set_logging_command): Remove.
4922 (_initialize_cli_logging): Use add_basic_prefix_cmd,
4923 add_show_prefix_cmd.
4924 (show_logging_command): Remove.
4925 * target.c (target_command): Remove.
4926 (add_target): Use add_basic_prefix_cmd.
4927
a51119cd
HD
49282020-05-02 Hannes Domani <ssbssa@yahoo.de>
4929
4930 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
4931
652fc23a 49322020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 4933
652fc23a
PW
4934 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
4935 info_command.
4936
117539e6
KR
49372020-04-30 Kamil Rytarowski <n54@gmx.com>
4938
4939 * nbsd-nat.c (nbsd_enable_proc_events)
4940 (nbsd_nat_target::post_startup_inferior): Add.
4941 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
4942 (nbsd_nat_target::update_thread_list): Rewrite.
4943 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
4944 "PTRACE_LWP_CREATE".
4945 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
4946
102e38eb 49472020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 4948
102e38eb
PW
4949 * stack.c (_initialize_stack): Remove duplicated creation
4950 of "frame" command and "f" alias.
4951
ee9d1e5f
HD
49522020-04-30 Hannes Domani <ssbssa@yahoo.de>
4953
4954 PR gdb/18706
4955 * gdbtypes.c (check_typedef): Calculate size of array of
4956 stubbed type.
4957
627c7fb8
HD
49582020-04-30 Hannes Domani <ssbssa@yahoo.de>
4959
4960 PR gdb/15559
4961 * i386-tdep.c (i386_push_dummy_call): Call
4962 i386_thiscall_push_dummy_call.
4963 (i386_thiscall_push_dummy_call): New function.
4964 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
4965 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
4966 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
4967
ffc2844e
SM
49682020-04-29 Simon Marchi <simon.marchi@efficios.com>
4969
4970 * gdbarch.sh (do_read): Add shellcheck disable directive for
4971 warning SC2162.
4972
1207375d
SM
49732020-04-29 Simon Marchi <simon.marchi@efficios.com>
4974
4975 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
4976 "referenced but not assigned" warning.
4977
9fdb2916
SM
49782020-04-29 Simon Marchi <simon.marchi@efficios.com>
4979
4980 * gdbarch.sh: Remove code that sets fallbackdefault.
4981
759cea5e
SM
49822020-04-29 Simon Marchi <simon.marchi@efficios.com>
4983
4984 * gdbarch.sh: Use shell operators && and || instead of
4985 -a and -o.
4986
cb02ab24
SM
49872020-04-29 Simon Marchi <simon.marchi@efficios.com>
4988
4989 * gdbarch.sh: Use $(...) instead of `...`.
4990
a6fc5ffc
SM
49912020-04-29 Simon Marchi <simon.marchi@efficios.com>
4992
4993 * gdbarch.sh: Use double quotes around variables.
4994
8d113d13
SM
49952020-04-29 Simon Marchi <simon.marchi@efficios.com>
4996
4997 * gdbarch.sh: Use %s with printf, instead of variables in the
4998 format string.
4999
ed6acedd
TT
50002020-04-29 Tom Tromey <tromey@adacore.com>
5001
5002 PR ada/25875:
5003 * dwarf2/read.c (update_enumeration_type_from_children): Compute
5004 type fields here.
5005 (read_enumeration_type): Call
5006 update_enumeration_type_from_children later. Update comments.
5007 (process_enumeration_scope): Don't create type fields.
5008
b68b1b58
KR
50092020-04-29 Kamil Rytarowski <n54@gmx.com>
5010
5011 * nbsd-tdep.c: Include "xml-syscall.h".
5012 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
5013
f94b2e03
KR
50142020-04-29 Kamil Rytarowski <n54@gmx.com>
5015
5016 * nbsd-nat.c: Include "sys/wait.h".
5017 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
5018 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
5019 (nbsd_nat_target::remove_exec_catchpoint)
5020 (nbsd_nat_target::set_syscall_catchpoint): Add.
5021 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
5022 (nbsd_nat_target::insert_exec_catchpoint)
5023 (nbsd_nat_target::remove_exec_catchpoint)
5024 (nbsd_nat_target::set_syscall_catchpoint): Add.
5025 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
5026 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
5027 `nbsd_get_syscall_number'.
5028
fc49bc72
TT
50292020-04-29 Tom Tromey <tom@tromey.com>
5030
5031 * stack.c (print_block_frame_labels): Remove.
5032
d642b692
HD
50332020-04-29 Hannes Domani <ssbssa@yahoo.de>
5034
5035 PR gdb/17320
5036 * ada-valprint.c (val_print_packed_array_elements): Move array
5037 end bracket to new line.
5038 (ada_val_print_string): Remove extra spaces before first array
5039 element.
5040 * c-valprint.c (c_value_print_array): Likewise.
5041 * m2-valprint.c (m2_print_array_contents): Likewise.
5042 (m2_value_print_inner): Likewise.
5043 * p-valprint.c (pascal_value_print_inner): Likewise.
5044 * valprint.c (generic_val_print_array): Likewise.
5045 (value_print_array_elements): Move first array element and array
5046 end bracket to new line.
5047
ea90f227
TV
50482020-04-29 Tom de Vries <tdevries@suse.de>
5049
5050 PR symtab/25889
5051 * linespec.c (find_method): Fix ix calculation.
5052
4498ef4f
KR
50532020-04-28 Kamil Rytarowski <n54@gmx.com>
5054
5055 * syscalls/update-netbsd.sh: New file.
5056 * syscalls/netbsd.xml: Regenerate.
5057 * data-directory/Makefile.in: Register `netbsd.xml' in
5058 `SYSCALLS_FILES'.
5059
a55e30b5
SM
50602020-04-28 Simon Marchi <simon.marchi@efficios.com>
5061
5062 * syscalls/update-freebsd.sh: Add double quotes.
5063
2b2fbab8
TT
50642020-04-28 Tom Tromey <tom@tromey.com>
5065
5066 * NEWS: Update.
5067 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
5068 (cmdpy_init): Allow class_tui.
5069
a65189c9
TV
50702020-04-28 Mark Williams <mark@myosotissp.com>
5071
5072 PR gdb/24480
5073 * dwarf2read.c: Add missing assingments to list_in_scope when
5074 start_symtab was already called.
5075
1b95cdb7
SM
50762020-04-28 Simon Marchi <simon.marchi@efficios.com>
5077
5078 PR gdb/25881
5079 * dwarf2/read.c (offset_map_type): Use
5080 gdb:hash_enum<sect_offset> as hash function.
5081
15cd93d0
TV
50822020-04-28 Tom de Vries <tdevries@suse.de>
5083
5084 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
5085 with DW_AT_signature.
5086
1eb39914
SM
50872020-04-27 Simon Marchi <simon.marchi@efficios.com>
5088
5089 * configure.ac: Remove check for fs_base/gs_base in
5090 user_regs_struct.
5091 * configure: Re-generate.
5092 * config.in: Re-generate.
5093 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
5094 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
5095 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
5096
991a3e2e
LM
50972020-04-27 Luis Machado <luis.machado@linaro.org>
5098
5099 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
5100 problematic inline frame unwinding situation.
5101 * frame.c (frame_id_computed_p): New function.
5102 * frame.h (frame_id_computed_p): New prototype.
5103
361ba0e8
TT
51042020-04-26 Tom Tromey <tom@tromey.com>
5105
5106 * command.h (enum command_class) <class_pseudo>: Remove.
5107
bc3609fd
PW
51082020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5109
5110 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
5111 and whitespace.
5112
b9771db7
KR
51132020-04-25 Kamil Rytarowski <n54@gmx.com>
5114
ec16513e
SM
5115 * inf-ptrace.c (inf_ptrace_target::wait): Remove
5116 `PT_GET_PROCESS_STATE' block.
b9771db7 5117
7151c1af
TT
51182020-04-24 Tom Tromey <tom@tromey.com>
5119
5120 * symtab.h (symbol_get_demangled_name): Don't declare.
5121 * symtab.c (symbol_get_demangled_name): Remove.
5122 (general_symbol_info::natural_name)
5123 (general_symbol_info::demangled_name): Update.
5124
906bb4c5
TT
51252020-04-24 Tom Tromey <tom@tromey.com>
5126
5127 PR rust/25025:
5128 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
5129
bcfe6157
TT
51302020-04-24 Tom Tromey <tom@tromey.com>
5131
5132 PR symtab/12707:
5133 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
5134 exists.
5135 (new_symbol): Likewise.
5136 * compile/compile-object-load.c (get_out_value_type): Use
5137 symbol_matches_search_name.
5138
f049a313
TT
51392020-04-24 Tom Tromey <tom@tromey.com>
5140
5141 * dwarf2/read.c (add_partial_symbol): Do not call
5142 compute_and_set_names.
5143
76e288d1
TT
51442020-04-24 Tom Tromey <tom@tromey.com>
5145
5146 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
5147 overload.
5148
2467f4f6
TT
51492020-04-24 Tom Tromey <tom@tromey.com>
5150
5151 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
5152 (add_psymbol_to_list): New overload. Make old overload call new
5153 one.
5154 * psympriv.h (add_psymbol_to_list): New overload.
5155
e61108c9
TT
51562020-04-24 Tom Tromey <tom@tromey.com>
5157
5158 * dwarf2/read.c (partial_die_info::read) <case
5159 DW_AT_linkage_name>: Use value_as_string.
5160 (dwarf2_string_attr): Use value_as_string.
5161 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
5162 method.
5163 * dwarf2/attribute.c (attribute::value_as_string): New method.
5164
8c87a452
TT
51652020-04-24 Tom Tromey <tom@tromey.com>
5166
5167 * symtab.c (general_symbol_info::natural_name)
5168 (general_symbol_info::demangled_name): Check for language_rust.
5169
787de330
TT
51702020-04-24 Tom Tromey <tom@tromey.com>
5171
5172 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
5173 (dwarf2_physname): ... from here.
5174 (partial_die_info::read): Add Rust "{" hack.
5175
ff985671
TT
51762020-04-24 Tom Tromey <tom@tromey.com>
5177
5178 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
5179 method.
5180 (symbol_set_demangled_name): Don't declare.
5181 * symtab.c (general_symbol_info::set_demangled_name): Rename from
5182 symbol_set_demangled_name.
5183 (general_symbol_info::set_language)
5184 (general_symbol_info::compute_and_set_names): Update.
5185 * minsyms.c (minimal_symbol_reader::install): Update.
5186 * dwarf2/read.c (new_symbol): Update.
5187
1acda803
TT
51882020-04-24 Tom Tromey <tromey@adacore.com>
5189
5190 PR python/23662:
5191 * python/py-type.c (convert_field): Handle
5192 FIELD_LOC_KIND_DWARF_BLOCK.
5193 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
5194 (typy_get_dynamic): Nw function.
5195 (type_object_getset): Add "dynamic".
5196 * NEWS: Add entry.
5197
d656f129
TT
51982020-04-24 Tom Tromey <tromey@adacore.com>
5199
5200 * ada-typeprint.c (print_choices, print_variant_part)
5201 (print_record_field_types_dynamic): New functions.
5202 (print_record_field_types): Use print_record_field_types_dynamic.
5203
7d79de9a
TT
52042020-04-24 Tom Tromey <tromey@adacore.com>
5205
5206 * dwarf2/read.c (handle_data_member_location): New overload.
5207 (dwarf2_add_field): Use it.
5208 (decode_locdesc): Add "computed" parameter. Update comment.
5209 * gdbtypes.c (is_dynamic_type_internal): Also look for
5210 FIELD_LOC_KIND_DWARF_BLOCK.
5211 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
5212 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
5213 virtual base classes.
5214 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
5215 FIELD_LOC_KIND_DWARF_BLOCK.
5216
f8e89861
TT
52172020-04-24 Tom Tromey <tromey@adacore.com>
5218
5219 * dwarf2/read.c (read_structure_type): Handle dynamic length.
5220 * gdbtypes.c (is_dynamic_type_internal): Check
5221 TYPE_HAS_DYNAMIC_LENGTH.
5222 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
5223 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
5224 New macros.
5225 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
5226 constant.
5227
9c6a1327
TT
52282020-04-24 Tom Tromey <tromey@adacore.com>
5229
5230 * dwarf2/read.c (struct variant_field): Rewrite.
5231 (struct variant_part_builder): New.
5232 (struct nextfield): Remove "variant" field. Add "offset".
5233 (struct field_info): Add "current_variant_part" and
5234 "variant_parts".
5235 (alloc_discriminant_info): Remove.
5236 (alloc_rust_variant): New function.
5237 (quirk_rust_enum): Update.
5238 (dwarf2_add_field): Set "offset" member. Don't handle
5239 DW_TAG_variant_part.
5240 (offset_map_type): New typedef.
5241 (convert_variant_range, create_one_variant)
5242 (create_one_variant_part, create_variant_parts)
5243 (add_variant_property): New functions.
5244 (dwarf2_attach_fields_to_type): Call add_variant_property.
5245 (read_structure_type): Don't handle DW_TAG_variant_part.
5246 (handle_variant_part, handle_variant): New functions.
5247 (handle_struct_member_die): Use them.
5248 (process_structure_scope): Don't handle variant parts.
5249 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
5250 (struct discriminant_info): Remove.
5251 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
5252 (struct main_type) <flag_discriminated_union>: Remove.
5253 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
5254 (rust_enum_variant): Return int. Remove "contents". Rewrite.
5255 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
5256 Update.
5257 * valops.c (value_union_variant): Remove.
5258 * value.h (value_union_variant): Don't declare.
5259
b249d2c2
TT
52602020-04-24 Tom Tromey <tromey@adacore.com>
5261
5262 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
5263 (ada_value_primitive_packed_val): Update.
5264 * ada-valprint.c (ada_value_print_1): Update.
5265 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
5266 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
5267 just an address. Use evaluate_for_locexpr_baton.
5268 (dwarf2_evaluate_property): Update.
5269 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
5270 array_view.
5271 * findvar.c (default_read_var_value): Update.
5272 * gdbtypes.c (compute_variant_fields_inner)
5273 (resolve_dynamic_type_internal): Update.
5274 (resolve_dynamic_type): Change type of valaddr parameter.
5275 * gdbtypes.h (resolve_dynamic_type): Update.
5276 * valarith.c (value_subscripted_rvalue): Update.
5277 * value.c (value_from_contents_and_address): Update.
5278
61122aa9
TT
52792020-04-24 Tom Tromey <tromey@adacore.com>
5280
5281 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
5282 "push_initial_value" parameter.
5283 (dwarf2_evaluate_property): Likewise.
5284 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
5285
ef83a141
TT
52862020-04-24 Tom Tromey <tromey@adacore.com>
5287
5288 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
5289 (variant::matches, compute_variant_fields_recurse)
5290 (compute_variant_fields_inner, compute_variant_fields): New
5291 functions.
5292 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
5293 Use resolved_type after type is made.
5294 (operator==): Add new cases.
5295 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
5296 (struct discriminant_range, struct variant, struct variant_part):
5297 New.
5298 (union dynamic_prop_data) <variant_parts, original_type>: New
5299 members.
5300 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
5301 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
5302 constants.
5303 * value.c (unpack_bits_as_long): Now public.
5304 * value.h (unpack_bits_as_long): Declare.
5305
675127ec
TT
53062020-04-24 Tom Tromey <tromey@adacore.com>
5307
5308 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
5309 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
5310
9852ceef
HD
53112020-04-24 Hannes Domani <ssbssa@yahoo.de>
5312
5313 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
5314
7632c6ce
KR
53152020-04-24 Kamil Rytarowski <n54@gmx.com>
5316
5317 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
5318 (remove_fork_catchpoint, post_startup_inferior)
5319 (post_attach): Move...
5320 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
5321 (remove_fork_catchpoint, post_startup_inferior)
5322 (post_attach): ...here.
5323 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
5324 (remove_fork_catchpoint, post_startup_inferior)
5325 (post_attach): Move...
5326 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
5327 (remove_fork_catchpoint, post_startup_inferior)
5328 (post_attach): ...here.
5329
7be2bb4f
TT
53302020-04-24 Tom Tromey <tromey@adacore.com>
5331
5332 * nat/windows-nat.h (struct windows_thread_info)
5333 <pc_adjusted>: New member.
5334 * windows-nat.c (windows_fetch_one_register): Check
5335 pc_adjusted.
5336 (windows_nat_target::get_windows_debug_event)
5337 (windows_nat_target::wait): Set pc_adjusted.
5338
f80cb3b4
TV
53392020-04-24 Tom de Vries <tdevries@suse.de>
5340
5341 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
5342 Run gdb-add-index inside temp dir.
5343
29514b87
TT
53442020-04-23 Tom Tromey <tromey@adacore.com>
5345
5346 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
5347 in loop.
5348
5939967b
LM
53492020-04-23 Luis Machado <luis.machado@linaro.org>
5350
5351 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
5352 get_frame_register instead of gdbarch_unwind_pc.
5353
70bc38f5
TV
53542020-04-23 Tom de Vries <tdevries@suse.de>
5355
5356 * symtab.c (lookup_global_symbol): Prefer def over decl.
5357
de82891c
TV
53582020-04-23 Tom de Vries <tdevries@suse.de>
5359
5360 PR symtab/25807
5361 * block.c (best_symbol, better_symbol): Promote to external.
5362 * block.h (best_symbol, better_symbol): Declare.
5363 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
5364 decl.
5365
ecc6c606
TT
53662020-04-23 Tom Tromey <tromey@adacore.com>
5367
5368 PR ada/25837:
5369 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
5370 "const char *", not a "const std::string &".
5371 <name_and_matcher::operator==>: Update.
5372 * unittests/lookup_name_info-selftests.c: Change type of
5373 "result".
5374
740480b8
TT
53752020-04-23 Tom Tromey <tom@tromey.com>
5376
5377 * inferior.h (iterate_over_inferiors): Don't declare.
5378 * inferior.c (iterate_over_inferiors): Remove.
5379 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
5380 Remove.
5381 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
5382 use iterate_over_inferiors.
5383 (darwin_resume_inferior_it)
5384 (struct resume_inferior_threads_param)
5385 (darwin_resume_inferior_threads_it): Remove.
5386 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
5387
ae3ab1f0
TV
53882020-04-23 Tom de Vries <tdevries@suse.de>
5389
5390 * blockframe.c (find_pc_partial_function): Use
5391 find_pc_sect_compunit_symtab rather than
5392 objfile->sf->qf->find_pc_sect_compunit_symtab.
5393
317d2668
TV
53942020-04-22 Tom de Vries <tdevries@suse.de>
5395
5396 PR symtab/25764
5397 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
5398 in psymtabs.
5399
eea9e357
TV
54002020-04-22 Tom de Vries <tdevries@suse.de>
5401
5402 PR symtab/25801
5403 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
5404 symtabs.
5405
3d5afab3
TV
54062020-04-22 Tom de Vries <tdevries@suse.de>
5407
5408 PR symtab/25700
5409 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
5410 CU if already created.
5411
d43b7a2d
TBA
54122020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5413
5414 * infrun.c (displaced_step_fixup): Switch to the event_thread
5415 before calling displaced_step_restore, not after.
5416
d89edf9b
MM
54172020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5418
5419 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
5420 its inferior is not recorded by us.
5421 (record_btrace_target_open): Replace call to
5422 all_non_exited_threads () with call to current_inferior
5423 ()->non_exited_threads ().
5424 (record_btrace_target::stop_recording): Likewise.
5425 (record_btrace_target::close): Likewise.
5426 (record_btrace_target::wait): Likewise.
5427 (record_btrace_target::record_stop_replaying): Likewise.
5428
5897fd49
MM
54292020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5430
5431 * btrace.c (btrace_enable): Throw an error on double enables and
5432 when enabling recording fails.
5433 (btrace_disable): Throw an error if the thread is not recorded.
5434
1a476b6d
MM
54352020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5436
5437 * record-btrace.c (record_btrace_target::fetch_registers): Forward
5438 request if we do not have a thread_info.
5439
4778a5f8
TV
54402020-04-21 Tom de Vries <tdevries@suse.de>
5441
5442 PR gdb/25471
5443 * thread.c
5444 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
5445 exception in get_frame_id.
5446
0fa7617d
TT
54472020-04-20 Tom Tromey <tromey@adacore.com>
5448
5449 * python/python.c (struct gdbpy_event): Mark move constructor as
5450 noexcept.
5451 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
5452 constructor as noexcept.
5453 * completer.h (struct completion_result): Mark move constructor as
5454 noexcept.
5455 * completer.c (completion_result::completion_result): Use
5456 initialization style. Don't call reset_match_list.
5457
ad23bda0
MS
54582020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
5459
5460 * MAINTAINERS (Write After Approval): Add myself.
5461
45e1f031
TT
54622020-04-18 Tom Tromey <tom@tromey.com>
5463
5464 * windows-tdep.c (init_w32_command_list)
5465 (w32_prefix_command_valid): Restore.
5466 (_initialize_windows_tdep): Call init_w32_command_list.
5467
08feed99
TT
54682020-04-18 Tom Tromey <tom@tromey.com>
5469
5470 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
5471 * value.c (value_fn_field): Update.
5472 * valops.c (find_function_in_inferior)
5473 (value_allocate_space_in_inferior): Update.
5474 * tui/tui-winsource.c (tui_update_source_windows_with_line):
5475 Update.
5476 * tui/tui-source.c (tui_source_window::set_contents): Update.
5477 * symtab.c (lookup_global_or_static_symbol)
5478 (find_function_start_sal_1, skip_prologue_sal)
5479 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
5480 * symmisc.c (dump_msymbols, dump_symtab_1)
5481 (maintenance_print_one_line_table): Update.
5482 * symfile.c (init_entry_point_info, section_is_mapped)
5483 (list_overlays_command, simple_read_overlay_table)
5484 (simple_overlay_update_1): Update.
5485 * stap-probe.c (handle_stap_probe): Update.
5486 * stabsread.c (dbx_init_float_type, define_symbol)
5487 (read_one_struct_field, read_enum_type, read_range_type): Update.
5488 * source.c (info_line_command): Update.
5489 * python/python.c (gdbpy_source_objfile_script)
5490 (gdbpy_execute_objfile_script): Update.
5491 * python/py-type.c (save_objfile_types): Update.
5492 * python/py-objfile.c (py_free_objfile): Update.
5493 * python/py-inferior.c (python_new_objfile): Update.
5494 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
5495 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
5496 (maintenance_check_psymtabs): Update.
5497 * printcmd.c (info_address_command): Update.
5498 * objfiles.h (struct objfile) <arch>: New method, from
5499 get_objfile_arch.
5500 (get_objfile_arch): Don't declare.
5501 * objfiles.c (get_objfile_arch): Remove.
5502 (filter_overlapping_sections): Update.
5503 * minsyms.c (msymbol_is_function): Update.
5504 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
5505 (output_nondebug_symbol): Update.
5506 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
5507 (mdebug_expand_psymtab): Update.
5508 * machoread.c (macho_add_oso_symfile): Update.
5509 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
5510 Update.
5511 * linux-fork.c (checkpoint_command): Update.
5512 * linespec.c (convert_linespec_to_sals): Update.
5513 * jit.c (finalize_symtab): Update.
5514 * infrun.c (insert_exception_resume_from_probe): Update.
5515 * ia64-tdep.c (ia64_find_unwind_table): Update.
5516 * hppa-tdep.c (internalize_unwinds): Update.
5517 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
5518 Update.
5519 * gcore.c (call_target_sbrk): Update.
5520 * elfread.c (record_minimal_symbol, elf_symtab_read)
5521 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
5522 (elf_gnu_ifunc_resolve_by_got): Update.
5523 * dwarf2/read.c (create_addrmap_from_index)
5524 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
5525 (read_debug_names_from_section)
5526 (process_psymtab_comp_unit_reader, add_partial_symbol)
5527 (add_partial_subprogram, process_full_comp_unit)
5528 (read_file_scope, read_func_scope, read_lexical_block_scope)
5529 (read_call_site_scope, dwarf2_ranges_read)
5530 (dwarf2_record_block_ranges, dwarf2_add_field)
5531 (mark_common_block_symbol_computed, read_tag_pointer_type)
5532 (read_tag_string_type, dwarf2_init_float_type)
5533 (dwarf2_init_complex_target_type, read_base_type)
5534 (partial_die_info::read, partial_die_info::read)
5535 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
5536 (dwarf2_fetch_die_loc_sect_off): Update.
5537 * dwarf2/loc.c (dwarf2_find_location_expression)
5538 (class dwarf_evaluate_loc_desc, rw_pieced_value)
5539 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
5540 (dwarf2_loc_desc_get_symbol_read_needs)
5541 (locexpr_describe_location_piece, locexpr_describe_location_1)
5542 (loclist_describe_location): Update.
5543 * dwarf2/index-write.c (write_debug_names): Update.
5544 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
5545 * dtrace-probe.c (dtrace_process_dof): Update.
5546 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
5547 (process_one_symbol): Update.
5548 * ctfread.c (ctf_init_float_type, read_base_type): Update.
5549 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
5550 (coff_read_enum_type): Update.
5551 * cli/cli-cmds.c (edit_command, list_command): Update.
5552 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
5553 * breakpoint.c (create_overlay_event_breakpoint)
5554 (create_longjmp_master_breakpoint)
5555 (create_std_terminate_master_breakpoint)
5556 (create_exception_master_breakpoint, get_sal_arch): Update.
5557 * block.c (block_gdbarch): Update.
5558 * annotate.c (annotate_source_line): Update.
5559
0743fc83
TT
55602020-04-17 Tom Tromey <tromey@adacore.com>
5561
5562 * auto-load.c (show_auto_load_cmd): Remove.
5563 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
5564 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
5565 (maintenance_print_arc_command): Remove.
5566 * tui/tui-win.c (tui_command): Remove.
5567 (tui_get_cmd_list): Use add_basic_prefix_cmd.
5568 * tui/tui-layout.c (tui_layout_command): Remove.
5569 (_initialize_tui_layout): Use add_basic_prefix_cmd.
5570 * python/python.c (user_set_python, user_show_python): Remove.
5571 (_initialize_python): Use add_basic_prefix_cmd,
5572 add_show_prefix_cmd.
5573 * guile/guile.c (set_guile_command, show_guile_command): Remove.
5574 (install_gdb_commands): Use add_basic_prefix_cmd,
5575 add_show_prefix_cmd.
5576 (info_guile_command): Remove.
5577 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
5578 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
5579 add_show_prefix_cmd.
5580 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
5581 Remove do_set and do_show parameters.
5582 * cli/cli-style.c (set_style, show_style): Remove.
5583 (_initialize_cli_style): Use add_basic_prefix_cmd,
5584 add_show_prefix_cmd.
5585 (cli_style_option::add_setshow_commands): Remove do_set and
5586 do_show parameters.
5587 (cli_style_option::add_setshow_commands): Use
5588 add_basic_prefix_cmd, add_show_prefix_cmd.
5589 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
5590 (set_style_name): Remove.
5591 * cli/cli-dump.c (dump_command, append_command): Remove.
5592 (srec_dump_command, ihex_dump_command, verilog_dump_command)
5593 (tekhex_dump_command, binary_dump_command)
5594 (binary_append_command): Remove.
5595 (_initialize_cli_dump): Use add_basic_prefix_cmd.
5596 * windows-tdep.c (w32_prefix_command_valid): Remove global.
5597 (init_w32_command_list): Remove; move into ...
5598 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
5599 * valprint.c (set_print, show_print, set_print_raw)
5600 (show_print_raw): Remove.
5601 (_initialize_valprint): Use add_basic_prefix_cmd,
5602 add_show_prefix_cmd.
5603 * typeprint.c (set_print_type, show_print_type): Remove.
5604 (_initialize_typeprint): Use add_basic_prefix_cmd,
5605 add_show_prefix_cmd.
5606 * record.c (set_record_command, show_record_command): Remove.
5607 (_initialize_record): Use add_basic_prefix_cmd,
5608 add_show_prefix_cmd.
5609 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
5610 add_show_prefix_cmd.
5611 (info_command, show_command, set_debug, show_debug): Remove.
5612 * top.h (set_history, show_history): Don't declare.
5613 * top.c (set_history, show_history): Remove.
5614 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
5615 (unset_tdesc_cmd): Remove.
5616 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
5617 add_show_prefix_cmd.
5618 * symtab.c (info_module_command): Remove.
5619 (_initialize_symtab): Use add_basic_prefix_cmd.
5620 * symfile.c (overlay_command): Remove.
5621 (_initialize_symfile): Use add_basic_prefix_cmd.
5622 * sparc64-tdep.c (info_adi_command): Remove.
5623 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
5624 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
5625 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
5626 add_show_prefix_cmd.
5627 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
5628 (_initialize_serial): Use add_basic_prefix_cmd,
5629 add_show_prefix_cmd.
5630 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
5631 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
5632 add_show_prefix_cmd.
5633 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
5634 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
5635 add_show_prefix_cmd.
5636 * riscv-tdep.c (show_riscv_command, set_riscv_command)
5637 (show_debug_riscv_command, set_debug_riscv_command): Remove.
5638 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
5639 add_show_prefix_cmd.
5640 * remote.c (remote_command, set_remote_cmd): Remove.
5641 (_initialize_remote): Use add_basic_prefix_cmd.
5642 * record-full.c (set_record_full_command)
5643 (show_record_full_command): Remove.
5644 (_initialize_record_full): Use add_basic_prefix_cmd,
5645 add_show_prefix_cmd.
5646 * record-btrace.c (cmd_set_record_btrace)
5647 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
5648 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
5649 (cmd_show_record_btrace_pt): Remove.
5650 (_initialize_record_btrace): Use add_basic_prefix_cmd,
5651 add_show_prefix_cmd.
5652 * ravenscar-thread.c (set_ravenscar_command)
5653 (show_ravenscar_command): Remove.
5654 (_initialize_ravenscar): Use add_basic_prefix_cmd,
5655 add_show_prefix_cmd.
5656 * mips-tdep.c (show_mips_command, set_mips_command)
5657 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
5658 add_show_prefix_cmd.
5659 * maint.c (maintenance_command, maintenance_info_command)
5660 (maintenance_check_command, maintenance_print_command)
5661 (maintenance_set_cmd, maintenance_show_cmd): Remove.
5662 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
5663 add_show_prefix_cmd.
5664 (show_per_command_cmd): Remove.
5665 * maint-test-settings.c (maintenance_set_test_settings_cmd):
5666 Remove.
5667 (maintenance_show_test_settings_cmd): Remove.
5668 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
5669 add_show_prefix_cmd.
5670 * maint-test-options.c (maintenance_test_options_command):
5671 Remove.
5672 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
5673 * macrocmd.c (macro_command): Remove
5674 (_initialize_macrocmd): Use add_basic_prefix_cmd.
5675 * language.c (set_check, show_check): Remove.
5676 (_initialize_language): Use add_basic_prefix_cmd,
5677 add_show_prefix_cmd.
5678 * infcmd.c (unset_command): Remove.
5679 (_initialize_infcmd): Use add_basic_prefix_cmd.
5680 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
5681 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
5682 add_show_prefix_cmd.
5683 * go32-nat.c (go32_info_dos_command): Remove.
5684 (_initialize_go32_nat): Use add_basic_prefix_cmd.
5685 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
5686 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
5687 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
5688 (_initialize_frame): Use add_basic_prefix_cmd,
5689 add_show_prefix_cmd.
5690 * dcache.c (set_dcache_command, show_dcache_command): Remove.
5691 (_initialize_dcache): Use add_basic_prefix_cmd,
5692 add_show_prefix_cmd.
5693 * cp-support.c (maint_cplus_command): Remove.
5694 (_initialize_cp_support): Use add_basic_prefix_cmd.
5695 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
5696 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
5697 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
5698 add_basic_prefix_cmd, add_show_prefix_cmd.
5699 * breakpoint.c (save_command): Remove.
5700 (_initialize_breakpoint): Use add_basic_prefix_cmd.
5701 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
5702 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
5703 add_show_prefix_cmd.
5704 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
5705 (set_ada_command, show_ada_command): Remove.
5706 (_initialize_ada_language): Use add_basic_prefix_cmd,
5707 add_show_prefix_cmd.
5708 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
5709
3557f442
KR
57102020-04-16 Kamil Rytarowski <n54@gmx.com>
5711
5712 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
5713 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
5714
16197208
SM
57152020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
5716
5717 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
5718 warning messages.
5719
00ac85d3
SM
57202020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
5721
5722 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
5723 import table is not at beginning of .idata section.
5724
381ce63f
PA
57252020-04-16 Pedro Alves <palves@redhat.com>
5726
5727 * inferior.c (delete_inferior): Use delete operator directly
5728 instead of delete_program_space.
5729 * progspace.c (add_program_space): New, factored out from
5730 program_space::program_space.
5731 (remove_program_space): New, factored out from
5732 delete_program_space.
5733 (program_space::program_space): Remove intro comment. Rewrite.
5734 (program_space::~program_space): Remove intro comment. Call
5735 remove_program_space.
5736 (delete_program_space): Delete.
5737 * progspace.h (program_space::program_space): Make explicit. Move
5738 intro comment here, adjusted.
5739 (program_space::~program_space): Move intro comment here,
5740 adjusted.
5741 (delete_program_space): Remove.
5742
a010605f
TT
57432020-04-16 Tom Tromey <tromey@adacore.com>
5744
5745 * windows-nat.c (windows_nat::handle_access_violation): New
5746 function.
5747 * nat/windows-nat.h (handle_access_violation): Declare.
5748 * nat/windows-nat.c (handle_exception): Move Cygwin code to
5749 windows-nat.c. Call handle_access_violation.
5750
efba5c23
TV
57512020-04-16 Tom de Vries <tdevries@suse.de>
5752
5753 PR symtab/25791
5754 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
5755 CUs without psymtab.
5756
97ed802d
KB
57572020-04-16 Kevin Buettner <kevinb@redhat.com>
5758
5759 * python/python.c (do_start_initialization): Don't call
5760 PyEval_InitThreads for Python 3.9 and beyond.
5761
c7d64809
KR
57622020-04-15 Kamil Rytarowski <n54@gmx.com>
5763
5764 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
5765 thread functions.
5766 (obsd_nat_target::wait): Likewise.
5767
ce127a96
TT
57682020-04-15 Tom Tromey <tromey@adacore.com>
5769
5770 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
5771 (DEBUG_EXCEPT): Use debug_printf.
5772
99f1bc6a
AB
57732020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
5774
5775 * completer.c (class completion_tracker::completion_hash_entry)
5776 <hash_name>: New member function.
5777 (completion_tracker::discard_completions): New callback to hash a
5778 completion_hash_entry, pass this to htab_create_alloc.
5779
a0e9b532
JT
57802016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
5781
5782 * windows-nat.c (windows_make_so): Warn rather than stopping with
5783 an error if realpath() fails.
5784
06ca5dd4
KR
57852020-04-14 Kamil Rytarowski <n54@gmx.com>
5786
5787 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
5788 (nbsd_nat_target::info_proc): Add do_status.
5789
194d088f
TV
57902020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
5791 Tom de Vries <tdevries@suse.de>
5792
5793 PR symtab/25718
5794 * psympriv.h (struct partial_symtab::read_symtab)
5795 (struct partial_symtab::expand_psymtab)
5796 (struct partial_symtab::read_dependencies): Update comments.
5797 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
5798 read_symtab for includer.
5799 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
5800 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
5801 (struct dwarf2_include_psymtab::m_readin): Remove.
5802 (struct dwarf2_include_psymtab::includer): New member function.
5803 (dwarf2_psymtab::expand_psymtab): Assert !readin.
5804
c1a66c06
TV
58052020-04-14 Tom de Vries <tdevries@suse.de>
5806
5807 PR symtab/25720
5808 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
5809 with NULL symbol_matcher and lookup_name.
5810 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
5811 and lookup_name.
5812 * dwarf2/read.c (dw2_expand_symtabs_matching)
5813 (dw2_debug_names_expand_symtabs_matching): Same.
5814 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
5815 Make lookup_name a pointer. Update comment.
5816 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
5817 lookup_name being a pointer.
5818 * symfile.c (expand_symtabs_matching): Same.
5819 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
5820 * linespec.c (iterate_over_all_matching_symtabs): Same.
5821
400b5eca
TT
58222020-04-13 Tom Tromey <tom@tromey.com>
5823
5824 * run-on-main-thread.c: Update include.
5825 * unittests/main-thread-selftests.c: Update include.
5826 * tui/tui-win.c: Update include.
5827 * tui/tui-io.c: Update include.
5828 * tui/tui-interp.c: Update include.
5829 * tui/tui-hooks.c: Update include.
5830 * top.h: Update include.
5831 * top.c: Update include.
5832 * ser-base.c: Update include.
5833 * remote.c: Update include.
5834 * remote-notif.c: Update include.
5835 * remote-fileio.c: Update include.
5836 * record-full.c: Update include.
5837 * record-btrace.c: Update include.
5838 * python/python.c: Update include.
5839 * posix-hdep.c: Update include.
5840 * mingw-hdep.c: Update include.
5841 * mi/mi-main.c: Update include.
5842 * mi/mi-interp.c: Update include.
5843 * main.c: Update include.
5844 * linux-nat.c: Update include.
5845 * interps.c: Update include.
5846 * infrun.c: Update include.
5847 * inf-loop.c: Update include.
5848 * event-top.c: Update include.
5849 * event-loop.c: Move to ../gdbsupport/.
5850 * event-loop.h: Move to ../gdbsupport/.
5851 * async-event.h: Update include.
5852 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
5853
93b54c8e
TT
58542020-04-13 Tom Tromey <tom@tromey.com>
5855
5856 * tui/tui-win.c: Include async-event.h.
5857 * remote.c: Include async-event.h.
5858 * remote-notif.c: Include async-event.h.
5859 * record-full.c: Include async-event.h.
5860 * record-btrace.c: Include async-event.h.
5861 * infrun.c: Include async-event.h.
5862 * event-top.c: Include async-event.h.
5863 * event-loop.h: Move some declarations to async-event.h.
5864 * event-loop.c: Don't include ser-event.h or top.h. Move some
5865 code to async-event.c.
5866 * async-event.h: New file.
5867 * async-event.c: New file.
5868 * Makefile.in (COMMON_SFILES): Add async-event.c.
5869 (HFILES_NO_SRCDIR): Add async-event.h.
5870
c1cd3163
TT
58712020-04-13 Tom Tromey <tom@tromey.com>
5872
5873 * utils.c (flush_streams): New function.
5874 * event-loop.c (gdb_wait_for_event): Call flush_streams.
5875
29f2bf4f
TT
58762020-04-13 Tom Tromey <tom@tromey.com>
5877
5878 * event-loop.c (handle_file_event): Use warning, not
5879 printf_unfiltered.
5880
98029d02
TT
58812020-04-13 Tom Tromey <tom@tromey.com>
5882
5883 * event-loop.c: Include <chrono>.
5884
06cc9596
TT
58852020-04-13 Tom Tromey <tom@tromey.com>
5886
5887 * gdb_select.h: Move to ../gdbsupport/.
5888 * event-loop.c: Update include path.
5889 * top.c: Update include path.
5890 * ser-base.c: Update include path.
5891 * ui-file.c: Update include path.
5892 * ser-tcp.c: Update include path.
5893 * guile/scm-ports.c: Update include path.
5894 * posix-hdep.c: Update include path.
5895 * ser-unix.c: Update include path.
5896 * gdb_usleep.c: Update include path.
5897 * mingw-hdep.c: Update include path.
5898 * inflow.c: Update include path.
5899 * infrun.c: Update include path.
5900 * event-top.c: Update include path.
5901
8ae8e197
TT
59022020-04-13 Tom Tromey <tom@tromey.com>
5903
5904 * configure: Rebuild.
5905 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
5906
58cf28e8
TT
59072020-04-13 Tom Tromey <tom@tromey.com>
5908
5909 * event-loop.h (start_event_loop): Don't declare.
5910 * event-loop.c (start_event_loop): Move...
5911 * main.c (start_event_loop): ...here. Now static.
5912
b7f999ae
SDJ
59132020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
5914
5915 * MAINTAINERS: Update my email address.
5916
1085dfd4
KR
59172020-04-12 Kamil Rytarowski <n54@gmx.com>
5918
5919 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
5920 IP_ALL.
5921
49d1d1f5
KR
59222020-04-12 Kamil Rytarowski <n54@gmx.com>
5923
5924 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 5925 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 5926
b4848d2a
KR
59272020-04-12 Kamil Rytarowski <n54@gmx.com>
5928
5929 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 5930 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 5931
51c133d5
KR
59322020-04-12 Kamil Rytarowski <n54@gmx.com>
5933
5934 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
5935
54b8cbd0
KR
59362020-04-11 Kamil Rytarowski <n54@gmx.com>
5937
5938 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
5939 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
5940 (nbsd_nat_target::info_proc): New functions.
5941 * nbsd-nat.c (kinfo_get_vmmap): New function.
5942 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
5943 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
5944 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
5945 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
5946 functions.
5947 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
5948 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
5949 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
5950 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
5951 (KINFO_VME_FLAG_GROWS_DOWN): New.
5952
cf83625d
AS
59532020-04-10 Artur Shepilko <nomadbyte@gmail.com>
5954
5955 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
5956 bit shift.
5957
0c4311ab
TT
59582020-04-10 Tom Tromey <tromey@adacore.com>
5959
5960 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
5961
3e65b3e9
TT
59622020-04-10 Tom Tromey <tromey@adacore.com>
5963
5964 * symtab.c (get_symbol_address, get_msymbol_address): Skip
5965 separate debug files.
5966
13302e95
HD
59672020-04-10 Hannes Domani <ssbssa@yahoo.de>
5968
5969 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5970 Move to...
5971 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5972 ... here.
5973 * windows-nat.c (windows_nat_target::get_windows_debug_event):
5974 Check for STATUS_WX86_BREAKPOINT.
5975 (windows_nat_target::wait): Same.
5976
bdfc1e8a
TV
59772020-04-10 Tom de Vries <tdevries@suse.de>
5978
5979 PR cli/25808
5980 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
5981
f4460aec
SM
59822020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
5983
5984 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
5985 (Write After Approval): Remove Tom de Vries.
5986
a25198bb
BE
59872020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
5988
5989 revert partially:
5990 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5991
aac66a4c
SM
5992 * buildsym.c (record_line): Fix undefined behavior and preserve
5993 lines at eof.
a25198bb 5994
206c98a6
KR
59952020-04-09 Kamil Rytarowski <n54@gmx.com>
5996
5997 * auxv.h (svr4_auxv_parse): New.
5998 * auxv.c (default_auxv_parse): Split into default_auxv_parse
5999 and generic_auxv_parse.
6000 (svr4_auxv_parse): Add.
6001 * obsd-tdep.c: Include "auxv.h".
6002 (obsd_auxv_parse): Remove.
6003 (obsd_init_abi): Remove comment.
6004 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
6005 from `obsd_auxv_parse' to `svr4_auxv_parse'.
6006 * nbsd-tdep.c: Include "auxv.h".
6007 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
6008
71fbdbaf
TT
60092020-04-08 Tom Tromey <tromey@adacore.com>
6010
6011 * nat/windows-nat.h (last_wait_event): Don't declare.
6012 (wait_for_debug_event): Update comment.
6013 * nat/windows-nat.c (last_wait_event): Now static.
6014
2c1d95e8
TT
60152020-04-08 Tom Tromey <tromey@adacore.com>
6016
6017 * windows-nat.c (wait_for_debug_event): Move to
6018 nat/windows-nat.c.
6019 * nat/windows-nat.h (wait_for_debug_event): Declare.
6020 * nat/windows-nat.c (wait_for_debug_event): Move from
6021 windows-nat.c. No longer static.
6022
d2977bc4
TT
60232020-04-08 Tom Tromey <tromey@adacore.com>
6024
6025 * windows-nat.c (get_windows_debug_event): Use
6026 fetch_pending_stop.
6027 * nat/windows-nat.h (fetch_pending_stop): Declare.
6028 * nat/windows-nat.c (fetch_pending_stop): New function.
6029
e758e19c
TT
60302020-04-08 Tom Tromey <tromey@adacore.com>
6031
6032 * windows-nat.c (windows_continue): Use matching_pending_stop and
6033 continue_last_debug_event.
6034 * nat/windows-nat.h (matching_pending_stop)
6035 (continue_last_debug_event): Declare.
6036 * nat/windows-nat.c (DEBUG_EVENTS): New define.
6037 (matching_pending_stop, continue_last_debug_event): New
6038 functions.
6039
8d30e395
TT
60402020-04-08 Tom Tromey <tromey@adacore.com>
6041
6042 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
6043 (handle_exception_result): Move to nat/windows-nat.h.
6044 (DEBUG_EXCEPTION_SIMPLE): Remove.
6045 (windows_nat::handle_ms_vc_exception): New function.
6046 (handle_exception): Move to nat/windows-nat.c.
6047 (get_windows_debug_event): Update.
6048 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
6049 nat/windows-nat.c.
6050 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
6051 (handle_exception_result): Move from windows-nat.c.
6052 (handle_exception): Declare.
6053 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
6054 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
6055 windows-nat.c.
6056
29de418d
TT
60572020-04-08 Tom Tromey <tromey@adacore.com>
6058
6059 * windows-nat.c (exception_count, event_count): Remove.
6060 (handle_exception, get_windows_debug_event)
6061 (do_initial_windows_stuff): Update.
6062
a816ba18
TT
60632020-04-08 Tom Tromey <tromey@adacore.com>
6064
6065 * windows-nat.c (windows_nat::handle_load_dll)
6066 (windows_nat::handle_unload_dll): Rename. No longer static.
6067 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
6068 Declare.
6069
a00caa12
TT
60702020-04-08 Tom Tromey <tromey@adacore.com>
6071
6072 * complaints.h (stop_whining): Declare at top-level.
6073 (complaint): Don't declare stop_whining.
6074
d41b524f
TT
60752020-04-08 Tom Tromey <tromey@adacore.com>
6076
6077 * windows-nat.c (windows_nat::handle_output_debug_string):
6078 Rename. No longer static.
6079 * nat/windows-nat.h (handle_output_debug_string): Declare.
6080
3c76026d
TT
60812020-04-08 Tom Tromey <tromey@adacore.com>
6082
6083 * windows-nat.c (current_process_handle, current_process_id)
6084 (main_thread_id, last_sig, current_event, last_wait_event)
6085 (current_windows_thread, desired_stop_thread_id, pending_stops)
6086 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
6087 (display_selectors, fake_create_process)
6088 (get_windows_debug_event): Update.
6089 * nat/windows-nat.h (current_process_handle, current_process_id)
6090 (main_thread_id, last_sig, current_event, last_wait_event)
6091 (current_windows_thread, desired_stop_thread_id, pending_stops)
6092 (struct pending_stop, siginfo_er): Move from windows-nat.c.
6093 * nat/windows-nat.c (current_process_handle, current_process_id)
6094 (main_thread_id, last_sig, current_event, last_wait_event)
6095 (current_windows_thread, desired_stop_thread_id, pending_stops)
6096 (siginfo_er): New globals. Move from windows-nat.c.
6097
9d8679cc
TT
60982020-04-08 Tom Tromey <tromey@adacore.com>
6099
6100 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
6101 (handle_load_dll): Update.
6102 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
6103
28688adf
TT
61042020-04-08 Tom Tromey <tromey@adacore.com>
6105
6106 * windows-nat.c (enum thread_disposition_type): Move to
6107 nat/windows-nat.h.
6108 (windows_nat::thread_rec): Rename from thread_rec. No longer
6109 static.
6110 (windows_add_thread, windows_nat_target::fetch_registers)
6111 (windows_nat_target::store_registers, handle_exception)
6112 (windows_nat_target::resume, get_windows_debug_event)
6113 (windows_nat_target::get_tib_address)
6114 (windows_nat_target::thread_name)
6115 (windows_nat_target::thread_alive): Update.
6116 * nat/windows-nat.h (enum thread_disposition_type): Move from
6117 windows-nat.c.
6118 (thread_rec): Declare.
6119
4834dad0
TT
61202020-04-08 Tom Tromey <tromey@adacore.com>
6121
6122 * windows-nat.c: Add "using namespace".
6123 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
6124 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
6125
65bafd5b
TT
61262020-04-08 Tom Tromey <tromey@adacore.com>
6127
6128 * nat/windows-nat.h (struct windows_thread_info): Declare
6129 destructor.
6130 * nat/windows-nat.c (~windows_thread_info): New.
6131
0a4afda3
TT
61322020-04-08 Tom Tromey <tromey@adacore.com>
6133
6134 PR gdb/22992
6135 * windows-nat.c (current_event): Update comment.
6136 (last_wait_event, desired_stop_thread_id): New globals.
6137 (struct pending_stop): New.
6138 (pending_stops): New global.
6139 (windows_nat_target) <stopped_by_sw_breakpoint>
6140 <supports_stopped_by_sw_breakpoint>: New methods.
6141 (windows_fetch_one_register): Add assertions. Adjust PC.
6142 (windows_continue): Handle pending stops. Suspend other threads
6143 when stepping. Use last_wait_event
6144 (wait_for_debug_event): New function.
6145 (get_windows_debug_event): Use wait_for_debug_event. Handle
6146 pending stops. Queue spurious stops.
6147 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
6148 (windows_nat_target::kill): Use wait_for_debug_event.
6149 * nat/windows-nat.h (struct windows_thread_info)
6150 <stopped_at_software_breakpoint>: New field.
6151 * nat/windows-nat.c (windows_thread_info::resume): Clear
6152 stopped_at_software_breakpoint.
6153
8e61ebec
TT
61542020-04-08 Tom Tromey <tromey@adacore.com>
6155
6156 * windows-nat.c (enum thread_disposition_type): New.
6157 (thread_rec): Replace "get_context" parameter with "disposition";
6158 change type.
6159 (windows_add_thread, windows_nat_target::fetch_registers)
6160 (windows_nat_target::store_registers, handle_exception)
6161 (windows_nat_target::resume, get_windows_debug_event)
6162 (windows_nat_target::get_tib_address)
6163 (windows_nat_target::thread_name)
6164 (windows_nat_target::thread_alive): Update.
6165
98a03287
TT
61662020-04-08 Tom Tromey <tromey@adacore.com>
6167
6168 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
6169 (windows_continue): Use windows_continue::resume.
6170 * nat/windows-nat.h (struct windows_thread_info) <suspend,
6171 resume>: Declare new methods.
6172 * nat/windows-nat.c: New file.
6173 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
6174
7c7411bc
TT
61752020-04-08 Tom Tromey <tromey@adacore.com>
6176
6177 * windows-nat.c (windows_add_thread, windows_delete_thread)
6178 (windows_nat_target::fetch_registers)
6179 (windows_nat_target::store_registers, fake_create_process)
6180 (windows_nat_target::resume, windows_nat_target::resume)
6181 (get_windows_debug_event, windows_nat_target::wait)
6182 (windows_nat_target::pid_to_str)
6183 (windows_nat_target::get_tib_address)
6184 (windows_nat_target::get_ada_task_ptid)
6185 (windows_nat_target::thread_name)
6186 (windows_nat_target::thread_alive): Use lwp, not tid.
6187
2950fdf7
TT
61882020-04-08 Tom Tromey <tromey@adacore.com>
6189
6190 * windows-nat.c (handle_exception)
6191 (windows_nat_target::thread_name): Update.
6192 * nat/windows-nat.h (windows_thread_info): Remove destructor.
6193 <name>: Now unique_xmalloc_ptr.
6194
62fe396b
TT
61952020-04-08 Tom Tromey <tromey@adacore.com>
6196
6197 * windows-nat.c (thread_rec)
6198 (windows_nat_target::fetch_registers): Update.
6199 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
6200 Update comment.
6201 <debug_registers_changed, reload_context>: Now bool.
6202
e9534bd2
TT
62032020-04-08 Tom Tromey <tromey@adacore.com>
6204
6205 * windows-nat.c (windows_add_thread): Use new.
6206 (windows_init_thread_list, windows_delete_thread): Use delete.
6207 (get_windows_debug_event): Update.
6208 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
6209 destructor, and initializers.
6210
ae1f8880
TT
62112020-04-08 Tom Tromey <tromey@adacore.com>
6212
6213 * windows-nat.c (struct windows_thread_info): Remove.
6214 * nat/windows-nat.h: New file.
6215
55a1e039
TT
62162020-04-08 Tom Tromey <tromey@adacore.com>
6217
6218 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
6219 (thread_rec, windows_add_thread, windows_delete_thread)
6220 (windows_continue): Update.
6221
93366324
TT
62222020-04-08 Tom Tromey <tromey@adacore.com>
6223
6224 * windows-nat.c (struct windows_thread_info): Remove typedef.
6225 (thread_head): Remove.
6226 (thread_list): New global.
6227 (thread_rec, windows_add_thread, windows_init_thread_list)
6228 (windows_delete_thread, windows_continue): Update.
6229
0f2265e2
SM
62302020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6231
6232 * windows-tdep.h (windows_init_abi): Add comment.
6233 (cygwin_init_abi): New declaration.
6234 * windows-tdep.c: Split signal enumeration in two, one for
6235 Windows and one for Cygwin.
6236 (windows_gdb_signal_to_target): Only deal with signal of the
6237 Windows OS ABI.
6238 (cygwin_gdb_signal_to_target): New function.
6239 (windows_init_abi): Rename to windows_init_abi_common, don't set
6240 gdb_signal_to_target gdbarch method. Add new new function with
6241 this name.
6242 (cygwin_init_abi): New function.
6243 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
6244 comment. Don't call windows_init_abi.
6245 (amd64_windows_init_abi): Add comment, call windows_init_abi.
6246 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
6247 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
6248 i386_windows_init_abi_common, don't call windows_init_abi. Add
6249 a new function of this name.
6250 (i386_cygwin_init_abi): New function.
6251 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
6252 OS ABI Cygwin.
6253
3810f182
SM
62542020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6255
6256 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
6257 parameter.c.
6258 (dwarf2_read_gdb_index): Update.
6259
063f8e80
KR
62602020-04-07 Kamil Rytarowski <n54@gmx.com>
6261
6262 * nbsd-tdep.c: Include "objfiles.h".
6263 (nbsd_skip_solib_resolver): New.
6264 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
6265
85a9510c 62662020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6267
6268 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
6269 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
6270 with DW_LLE_base_addressx are being emitted in DWARFv5.
6271 Add the newly added kind DW_LOC_OFFSET_PAIR also.
6272 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
6273 unsigned integer.
6274
9fc3eaae 62752020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6276
6277 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
6278 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
6279 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
6280 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
6281 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
6282 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
6283 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
6284
6285
41144253 62862020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6287
6288 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
6289 (read_loclist_index): New function definition.
6290 (lookup_loclist_base): New function definition.
6291 (read_loclist_header): New function definition.
6292 (dwarf2_cu): Add loclist_base and loclist_header field.
6293 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
6294 (read_full_die_1): Read the value of DW_AT_loclists_base.
6295 (read_attribute_reprocess): Handle DW_FORM_loclistx.
6296 (read_attribute_value): Handle DW_FORM_loclistx.
6297 (skip_one_die): Handle DW_FORM_loclistx.
6298 (loclist_header): New structure declaration.
6299 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
6300
9f4e76a4
SM
63012020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
6302
6303 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
6304 constructor. Remove `addr` parameter from other constructor and
6305 add `per_cu` parameter.
6306 * dwarf2/read.c (create_partial_symtab): Update.
6307
25c11aca
TV
63082020-04-07 Tom de Vries <tdevries@suse.de>
6309
6310 PR symtab/25796
6311 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
6312 (partial_die_info::fixup): Inherit has_const_value.
6313
5707e24b
TV
63142020-04-07 Tom de Vries <tdevries@suse.de>
6315
6316 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
6317 symbols without address.
6318
05f00e22
KR
63192020-04-06 Kamil Rytarowski <n54@gmx.com>
6320
6321 * nbsd-nat.h (struct thread_info): Add forward declaration.
6322 (nbsd_nat_target::thread_alive): Add.
6323 (nbsd_nat_target::thread_name): Likewise.
6324 (nbsd_nat_target::update_thread_list): Likewise.
6325 (update_thread_list::post_attach): Likewise.
6326 (post_attach::pid_to_str): Likewise.
6327 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
6328 (nbsd_thread_lister): Add.
6329 (nbsd_nat_target::thread_alive): Likewise.
6330 (nbsd_nat_target::thread_name): Likewise.
6331 (nbsd_add_threads): Likewise.
6332 (update_thread_list::post_attach): Likewise.
6333 (nbsd_nat_target::update_thread_list): Likewise.
6334 (post_attach::pid_to_str): Likewise.
6335
6ee448cc
TT
63362020-04-06 Tom Tromey <tromey@adacore.com>
6337
6338 * ada-valprint.c (print_variant_part): Extract the variant field.
6339 (print_field_values): Use the field as the outer value when
6340 recursing.
6341
dea34e8c
TT
63422020-04-06 Tom Tromey <tromey@adacore.com>
6343
6344 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
6345 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
6346 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
6347 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
6348 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
6349
93689ce9
TT
63502020-04-06 Tom Tromey <tromey@adacore.com>
6351
6352 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
6353 TYPE_CODE_ERROR.
6354
79743962
KR
63552020-04-06 Kamil Rytarowski <n54@gmx.com>
6356
6357 * nbsd-tdep.c: Include "gdbarch.h".
6358 Define enum with NetBSD signal numbers.
6359 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
6360 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
6361 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
6362 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
6363 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
6364 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
6365 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
6366 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
6367 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
6368 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
6369 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
6370 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
6371
9e7c9a03
HD
63722020-04-03 Hannes Domani <ssbssa@yahoo.de>
6373
6374 PR gdb/25325
6375 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
6376
d9e49b61
TT
63772020-04-03 Tom Tromey <tromey@adacore.com>
6378
6379 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
6380 Read constant block.
6381
e0fc5c3f
SM
63822020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6383
6384 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
6385 (gdb_bfd_get_full_section_contents): New declaration.
6386 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
6387 * windows-tdep.c (is_linked_with_cygwin_dll): Use
6388 gdb_bfd_get_full_section_contents.
6389
e2ff18a0
SM
63902020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6391
6392 * exec.c (build_section_table): Replace internal_error with
6393 gdb_assert.
6394 (section_table_xfer_memory_partial): Likewise.
6395 * mdebugread.c (parse_partial_symbols): Likewise.
6396 * psymtab.c (lookup_partial_symbol): Likewise.
6397 * utils.c (wrap_here): Likewise.
6398
0830d301
TT
63992020-04-02 Tom Tromey <tromey@adacore.com>
6400
6401 * f-lang.c (build_fortran_types): Use arch_type to initialize
6402 builtin_complex_s32 in the TYPE_CODE_ERROR case.
6403
e7da7f8f
TT
64042020-04-02 Tom Tromey <tromey@adacore.com>
6405
6406 * dwarf2/read.c (partial_die_info::read): Do not create a vector
6407 of attributes.
6408
c90d28ac
AB
64092020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
6410 Bernd Edlinger <bernd.edlinger@hotmail.de>
6411 Tom Tromey <tromey@adacore.com>
6412
6413 * buildsym.c (buildsym_compunit::record_line): Remove
6414 deduplication code.
6415
1aa98955
TV
64162020-04-02 Tom de Vries <tdevries@suse.de>
6417
6418 PR ada/24671
6419 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
6420
d3214198
TV
64212020-04-02 Tom de Vries <tdevries@suse.de>
6422
6423 * dwarf2/read.c (dwarf2_gdb_index_functions,
6424 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
6425 NULL.
6426 * psymtab.c (psym_lookup_global_symbol_language): New function.
6427 (psym_functions): Init psym_lookup_global_symbol_language with
6428 psym_lookup_global_symbol_language.
6429 * symfile-debug.c (debug_sym_quick_functions): Init
6430 lookup_global_symbol_language with NULL.
6431 * symfile.c (set_initial_language): Remove fixme comment.
6432 * symfile.h (struct quick_symbol_functions): Add
6433 lookup_global_symbol_language.
6434 * symtab.c (find_quick_global_symbol_language): New function.
6435 (find_main_name): Use find_quick_global_symbol_language.
6436
2836752f
SM
64372020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
6438
6439 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
6440
64dc2d4b
BE
64412020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6442
6443 * buildsym.c (record_line): Fix undefined behavior and preserve
6444 lines at eof.
6445
bbe3dc41
BE
64462020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6447
6448 * buildsym.c (record_line): Fix the resizing condition.
6449
6b4a335b
TT
64502020-04-01 Tom Tromey <tom@tromey.com>
6451
6452 * value.h (value_literal_complex): Add comment.
6453 * valops.c (value_literal_complex): Refer to value.h.
6454
3638a098
TT
64552020-04-01 Tom Tromey <tom@tromey.com>
6456
6457 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
6458 (scalar_type): New rule, from typebase.
6459 (typebase): Use scalar_type. Recognize complex types.
6460 (field_name): Handle FLOAT_KEYWORD.
6461 (ident_tokens): Add _Complex and __complex__.
6462
c34e8714
TT
64632020-04-01 Tom Tromey <tom@tromey.com>
6464
6465 PR exp/25299:
6466 * valarith.c (promotion_type, complex_binop): New functions.
6467 (scalar_binop): Handle complex numbers. Use promotion_type.
6468 (value_pos, value_neg, value_complement): Handle complex numbers.
6469
fa649bb7
TT
64702020-04-01 Tom Tromey <tom@tromey.com>
6471
6472 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
6473 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
6474 (parse_number): Handle complex numbers.
6475
981c08ce
TT
64762020-04-01 Tom Tromey <tom@tromey.com>
6477
6478 * c-valprint.c (c_decorations): Change complex suffix to "i".
6479
4c99290d
TT
64802020-04-01 Tom Tromey <tom@tromey.com>
6481
6482 * valprint.c (generic_value_print_complex): Use accessors.
6483 * value.h (value_real_part, value_imaginary_part): Declare.
6484 * valops.c (value_real_part, value_imaginary_part): New
6485 functions.
6486 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
6487
5b930b45
TT
64882020-04-01 Tom Tromey <tom@tromey.com>
6489
6490 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
6491 (read_range_type): Update.
6492 * mdebugread.c (basic_type): Update.
6493 * go-lang.c (build_go_types): Use init_complex_type.
6494 * gdbtypes.h (struct main_type) <complex_type>: New member.
6495 (init_complex_type): Update.
6496 (arch_complex_type): Don't declare.
6497 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
6498 Make name if none given. Use alloc_type_copy. Look for cached
6499 complex type.
6500 (arch_complex_type): Remove.
6501 (gdbtypes_post_init): Use init_complex_type.
6502 * f-lang.c (build_fortran_types): Use init_complex_type.
6503 * dwarf2/read.c (read_base_type): Update.
6504 * d-lang.c (build_d_types): Use init_complex_type.
6505 * ctfread.c (read_base_type): Update.
6506
53cccef1
TBA
65072020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6508
6509 * infrun.c (stop_all_threads): Update assertion, plus when
6510 stopping threads, take into account that we might be trying
6511 to stop an all-stop target.
6512 (stop_waiting): Call 'stop_all_threads' if there exists a
6513 non-stop target.
6514
a0714d30
TBA
65152020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6516
6517 * target.h (exists_non_stop_target): New function declaration.
6518 * target.c (exists_non_stop_target): New function.
6519
60e22c1e
HD
65202020-04-01 Hannes Domani <ssbssa@yahoo.de>
6521
6522 PR gdb/24789
6523 * eval.c (is_integral_or_integral_reference): New function.
6524 (evaluate_subexp_standard): Allow integer references in
6525 pointer arithmetic.
6526
e139a727
TBA
65272020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6528
6529 * remote.c (remote_target::remote_parse_stop_reply): Remove the
6530 check for no ptid in the stop reply when the target is non-stop.
6531
e0802d59
TT
65322020-04-01 Tom Tromey <tromey@adacore.com>
6533
6534 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
6535 "name" parameter to rvalue reference. Initialize m_name_holder.
6536 <lookup_name_info>: New overloads.
6537 <name>: Return gdb::string_view.
6538 <c_str>: New method.
6539 <make_ignore_params>: Update.
6540 <search_name_hash>: Update.
6541 <language_lookup_name>: Return const char *.
6542 <m_name>: Change type.
6543 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
6544 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
6545 (lookup_name_info::match_any): Update.
6546 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
6547 Update.
6548 * minsyms.c (linkage_name_str): Update.
6549 * language.c (default_symbol_name_matcher): Update.
6550 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
6551 Update.
6552 * ada-lang.c (ada_fold_name): Change parameter to string_view.
6553 (ada_lookup_name_info::ada_lookup_name_info): Update.
6554 (literal_symbol_name_matcher): Update.
6555
8c072cb6
TT
65562020-04-01 Tom Tromey <tromey@adacore.com>
6557
6558 * psymtab.c (psymtab_search_name): Remove function.
6559 (psym_lookup_symbol): Create search name and lookup name here.
6560 (lookup_partial_symbol): Remove "name" parameter; add
6561 lookup_name.
6562 (psym_expand_symtabs_for_function): Update.
6563
6f29a534
TT
65642020-03-31 Joel Jones <joelkevinjones@gmail.com>
6565
6566 PR tui/25597:
6567 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
6568
af62665e
TT
65692020-03-31 Tom Tromey <tromey@adacore.com>
6570
6571 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
6572 memcpy.
6573
d1a89da5
NC
65742020-03-30 Nelson Chu <nelson.chu@sifive.com>
6575
6576 * features/riscv/32bit-csr.xml: Regenerated.
6577 * features/riscv/64bit-csr.xml: Regenerated.
6578
d8af9068
TT
65792020-03-30 Tom Tromey <tromey@adacore.com>
6580
6581 * ada-valprint.c (print_variant_part): Update.
6582 * ada-lang.h (ada_which_variant_applies): Update.
6583 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
6584 outer_valaddr parameters; replace with "outer" value parameter.
6585 (to_fixed_variant_branch_type): Update.
6586
227c0bf4
PFC
65872020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6588
6589 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
6590 <list>. Remove inclusion of observable.h.
6591 (PPC_DEBUG_CURRENT_VERSION): Move up define.
6592 (struct arch_lwp_info): New struct.
6593 (class ppc_linux_dreg_interface): New class.
6594 (struct ppc_linux_process_info): New struct.
6595 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
6596 <low_new_clone, low_forget_process, low_prepare_to_resume>
6597 <copy_thread_dreg_state, mark_thread_stale>
6598 <mark_debug_registers_changed, register_hw_breakpoint>
6599 <clear_hw_breakpoint, register_wp, clear_wp>
6600 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
6601 <num_memory_accesses, get_trigger_type>
6602 <create_watchpoint_request, hwdebug_point_cmp>
6603 <init_arch_lwp_info, get_arch_lwp_info>
6604 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
6605 methods.
6606 <struct ptid_hash>: New inner struct.
6607 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
6608 members.
6609 (saved_dabr_value, hwdebug_info, max_slots_number)
6610 (struct hw_break_tuple, struct thread_points, ppc_threads)
6611 (have_ptrace_hwdebug_interface)
6612 (hwdebug_find_thread_points_by_tid)
6613 (hwdebug_insert_point, hwdebug_remove_point): Remove.
6614 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
6615 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
6616 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
6617 use m_dreg_interface.
6618 (hwdebug_point_cmp): Change to...
6619 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
6620 reference arguments instead of pointers.
6621 (ppc_linux_nat_target::ranged_break_num_registers): Use
6622 m_dreg_interface.
6623 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
6624 m_dreg_interface. Call register_hw_breakpoint.
6625 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
6626 m_dreg_interface. Call clear_hw_breakpoint.
6627 (get_trigger_type): Change to...
6628 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
6629 comment.
6630 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
6631 use m_dreg_interface. Call register_hw_breakpoint.
6632 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
6633 use m_dreg_interface. Call clear_hw_breakpoint.
6634 (can_use_watchpoint_cond_accel): Change to...
6635 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
6636 method. Update comment, use m_dreg_interface and
6637 m_process_info.
6638 (calculate_dvc): Change to...
6639 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
6640 m_dreg_interface.
6641 (num_memory_accesses): Change to...
6642 (ppc_linux_nat_target::num_memory_accesses): ...this method.
6643 (check_condition): Change to...
6644 (ppc_linux_nat_target::check_condition): ...this method.
6645 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
6646 comment, use m_dreg_interface.
6647 (create_watchpoint_request): Change to...
6648 (ppc_linux_nat_target::create_watchpoint_request): ...this
6649 method. Use m_dreg_interface.
6650 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
6651 m_dreg_interface. Call register_hw_breakpoint or register_wp.
6652 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
6653 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
6654 (ppc_linux_nat_target::low_forget_process)
6655 (ppc_linux_nat_target::low_new_fork)
6656 (ppc_linux_nat_target::low_new_clone)
6657 (ppc_linux_nat_target::low_delete_thread)
6658 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
6659 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
6660 only call mark_thread_stale.
6661 (ppc_linux_thread_exit): Remove.
6662 (ppc_linux_nat_target::stopped_data_address): Change to...
6663 (ppc_linux_nat_target::low_stopped_data_address): This. Add
6664 comment, use m_dreg_interface and m_thread_hw_breakpoints.
6665 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
6666 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
6667 comment. Call low_stopped_data_address.
6668 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
6669 m_dreg_interface.
6670 (ppc_linux_nat_target::masked_watch_num_registers): Use
6671 m_dreg_interface.
6672 (ppc_linux_nat_target::copy_thread_dreg_state)
6673 (ppc_linux_nat_target::mark_thread_stale)
6674 (ppc_linux_nat_target::mark_debug_registers_changed)
6675 (ppc_linux_nat_target::register_hw_breakpoint)
6676 (ppc_linux_nat_target::clear_hw_breakpoint)
6677 (ppc_linux_nat_target::register_wp)
6678 (ppc_linux_nat_target::clear_wp)
6679 (ppc_linux_nat_target::init_arch_lwp_info)
6680 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
6681 (_initialize_ppc_linux_nat): Remove observer callback.
6682
4db10d8f
PFC
66832020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6684
6685 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
6686 (ppc_linux_nat_target::auxv_parse)
6687 (ppc_linux_nat_target::read_description)
6688 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
6689 Move up.
6690
1310c1b0
PFC
66912020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6692
6693 * linux-nat.h (low_new_clone): New method.
6694 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
6695
69b037c3
SM
66962020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6697
6698 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
6699 (dbx_expand_psymtab): ... this.
6700 (start_psymtab): Update.
6701 * mdebugread.c (psymtab_to_symtab_1): Rename to...
6702 (mdebug_expand_psymtab): ... this.
6703 (parse_partial_symbols): Update.
6704 (new_psymtab): Update.
6705 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
6706 (xcoff_expand_psymtab): ... this.
6707 (xcoff_start_psymtab): Update.
6708
48993951
SM
67092020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6710
6711 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
6712 <expand_dependencies>: ... this.
6713 * psymtab.c (partial_symtab::read_dependencies): Rename to...
6714 (partial_symtab::expand_dependencies): ... this.
6715 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
6716 Update.
6717 (dwarf2_psymtab::expand_psymtab): Update.
6718 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
6719 * mdebugread.c (psymtab_to_symtab_1): Update.
6720 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
6721
3ad83046
SM
67222020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6723
6724 * psympriv.h (discard_psymtab): Remove.
6725 * dbxread.c (dbx_end_psymtab): Update.
6726 * xcoffread.c (xcoff_end_psymtab): Update.
6727
4d1b9ab6
TT
67282020-03-28 Tom Tromey <tom@tromey.com>
6729
6730 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
6731 comment.
6732
f1749218
TT
67332020-03-28 Tom Tromey <tom@tromey.com>
6734
6735 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
6736
ebea7626
HD
67372020-03-27 Hannes Domani <ssbssa@yahoo.de>
6738
6739 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
6740
a879b4d5
JB
67412020-03-26 John Baldwin <jhb@FreeBSD.org>
6742
6743 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
6744
0826b30a
TT
67452020-03-26 Tom Tromey <tom@tromey.com>
6746
6747 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
6748 (mark_common_block_symbol_computed, read_tag_string_type)
6749 (attr_to_dynamic_prop, read_subrange_type): Update.
6750 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
6751 to be methods on struct attribute.
6752 (skip_one_die, process_imported_unit_die, read_namespace_alias)
6753 (read_call_site_scope, partial_die_info::read)
6754 (partial_die_info::read, lookup_die_type, follow_die_ref):
6755 Update.
6756 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
6757 from dwarf2_get_ref_die_offset.
6758 (attribute::constant_value): New method, from
6759 dwarf2_get_attr_constant_value.
6760 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
6761 Declare method.
6762 <constant_value>: New method.
6763
2b2558bf
TT
67642020-03-26 Tom Tromey <tom@tromey.com>
6765
6766 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
6767 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
6768 (dwarf_type_encoding_name): Move to stringify.c.
6769 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
6770 * dwarf2/stringify.c: New file.
6771 * dwarf2/stringify.h: New file.
6772
eeb64781
TT
67732020-03-26 Tom Tromey <tom@tromey.com>
6774
6775 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
6776 Rewrite.
6777
a39fdb41
TT
67782020-03-26 Tom Tromey <tom@tromey.com>
6779
6780 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
6781 methods.
6782 * dwarf2/read.c (lookup_addr_base): Move to die.h.
6783 (lookup_ranges_base): Likewise.
6784 (read_cutu_die_from_dwo, read_full_die_1): Update.
6785
436c571c
TT
67862020-03-26 Tom Tromey <tom@tromey.com>
6787
6788 * dwarf2/read.c (read_import_statement, read_file_scope)
6789 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
6790 (read_lexical_block_scope, read_call_site_scope)
6791 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
6792 (handle_struct_member_die, process_structure_scope)
6793 (update_enumeration_type_from_children)
6794 (process_enumeration_scope, read_array_type, read_common_block)
6795 (read_namespace, read_module, read_subroutine_type): Update.
6796 (sibling_die): Remove.
6797
052c8bb8
TT
67982020-03-26 Tom Tromey <tom@tromey.com>
6799
6800 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
6801 (build_type_psymtabs_reader, read_structure_type)
6802 (read_enumeration_type, read_full_die_1): Update.
6803 (dwarf2_attr_no_follow): Move to die.h.
6804 * dwarf2/die.h (struct die_info) <attr>: New method.
6805
2b24b6e4
TT
68062020-03-26 Tom Tromey <tom@tromey.com>
6807
6808 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
6809 <base_address>: Now an optional.
6810 (dwarf2_find_base_address, dwarf2_rnglists_process)
6811 (dwarf2_ranges_process, fill_in_loclist_baton)
6812 (dwarf2_symbol_mark_computed): Update.
6813
c2d50fd0
TT
68142020-03-26 Tom Tromey <tom@tromey.com>
6815
6816 * dwarf2/read.c (struct die_info): Move to die.h.
6817 * dwarf2/die.h: New file.
6818
0df7ad3a
TT
68192020-03-26 Tom Tromey <tom@tromey.com>
6820
6821 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
6822 * dwarf2/read.c
6823 (dwarf2_statement_list_fits_in_line_number_section_complaint):
6824 Move to line-header.c.
6825 (read_checked_initial_length_and_offset, read_formatted_entries):
6826 Likewise.
6827 (dwarf_decode_line_header): Split into two.
6828 * dwarf2/line-header.c
6829 (dwarf2_statement_list_fits_in_line_number_section_complaint):
6830 Move from read.c.
6831 (read_checked_initial_length_and_offset, read_formatted_entries):
6832 Likewise.
6833 (dwarf_decode_line_header): New function, split from read.c.
6834
86c0bb4c
TT
68352020-03-26 Tom Tromey <tom@tromey.com>
6836
6837 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
6838 Declare method.
6839 * dwarf2/read.c (read_attribute_value): Update.
6840 (dwarf2_per_objfile::read_line_string): Rename from
6841 read_indirect_line_string.
6842 (read_formatted_entries): Update.
6843
2ef46c2f
TT
68442020-03-26 Tom Tromey <tom@tromey.com>
6845
6846 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
6847 variable.
6848
4f9c1eda
TT
68492020-03-26 Tom Tromey <tom@tromey.com>
6850
6851 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
6852 const.
6853 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
6854 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
6855 parameter const.
6856
5a0e026f
TT
68572020-03-26 Tom Tromey <tom@tromey.com>
6858
6859 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
6860 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
6861 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
6862 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
6863
8844c11b
TT
68642020-03-26 Tom Tromey <tom@tromey.com>
6865
6866 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
6867 file_names_size, file_full_name, file_file_name>: Use const.
6868 <file_name_at, file_names>: Add const overload.
6869 * dwarf2/line-header.c (line_header::file_file_name)
6870 (line_header::file_full_name): Update.
6871
c90ec28a
TT
68722020-03-26 Tom Tromey <tom@tromey.com>
6873
6874 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
6875 (macro_start_file, consume_improper_spaces)
6876 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
6877 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
6878 (dwarf_decode_macros): Move to macro.c.
6879 * dwarf2/macro.c: New file.
6880 * dwarf2/macro.h: New file.
6881 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
6882
4f44ae6c
TT
68832020-03-26 Tom Tromey <tom@tromey.com>
6884
6885 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
6886 method.
6887 * dwarf2/section.c: New method. From
6888 read_indirect_string_at_offset_from.
6889 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
6890 (read_indirect_string_at_offset_from): Move to section.c.
6891 (read_indirect_string_at_offset): Rewrite.
6892 (read_indirect_line_string_at_offset): Remove.
6893 (read_indirect_string, read_indirect_line_string)
6894 (dwarf_decode_macro_bytes): Update.
6895
a0194fa8
TT
68962020-03-26 Tom Tromey <tom@tromey.com>
6897
6898 * dwarf2/section.h (struct dwarf2_section_info)
6899 <overload_complaint>: Declare.
6900 (dwarf2_section_buffer_overflow_complaint): Don't declare.
6901 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
6902 Rename from dwarf2_section_buffer_overflow_complaint.
6903 * dwarf2/read.c (skip_one_die, partial_die_info::read)
6904 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
6905
3d27bbdb
TT
69062020-03-26 Tom Tromey <tom@tromey.com>
6907
6908 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
6909 Declare.
6910 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
6911 Move from read.c.
6912 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
6913 to section.c.
6914
9eac9650
TT
69152020-03-26 Tom Tromey <tom@tromey.com>
6916
6917 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
6918
bf80d710
TT
69192020-03-26 Tom Tromey <tom@tromey.com>
6920
6921 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
6922 "builder".
6923 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
6924 parameter.
6925 (dwarf_decode_macros): Update.
6926
0314b390
TT
69272020-03-26 Tom Tromey <tom@tromey.com>
6928
6929 * dwarf2/read.c (read_attribute_value): Update.
6930 (read_indirect_string_from_dwz): Move to dwz.c; change into
6931 method.
6932 (dwarf_decode_macro_bytes): Update.
6933 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
6934 * dwarf2/dwz.c: New file.
6935 * Makefile.in (COMMON_SFILES): Add dwz.c.
6936
9fda78b6
TT
69372020-03-26 Tom Tromey <tom@tromey.com>
6938
6939 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
6940 * dwarf2/read.c: Add include.
6941 * dwarf2/index-write.c: Add include.
6942 * dwarf2/index-cache.c: Add include.
6943 * dwarf2/dwz.h: New file.
6944
33aa3c10
TT
69452020-03-25 Tom Tromey <tom@tromey.com>
6946
6947 * compile/compile-object-load.c (get_out_value_type): Mention
6948 correct symbol name in error message.
6949
d503b685
HD
69502020-03-25 Hannes Domani <ssbssa@yahoo.de>
6951
6952 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
6953
7b1eff95
TV
69542020-03-25 Tom de Vries <tdevries@suse.de>
6955
6956 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
6957 * symmisc.c (dump_symtab_1): Print user and includes fields.
6958 (maintenance_info_symtabs): Same.
6959
dd895392
AB
69602020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
6961
6962 PR gdb/25534
6963 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
6964 (riscv_regcache_cooked_write): New function.
6965 (riscv_push_dummy_call): Use new function.
6966 (riscv_return_value): Likewise.
6967
5ab2fbf1
SM
69682020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
6969
6970 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
6971 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
6972 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
6973 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
6974 * infrun.c (follow_fork): Likewise.
6975 (follow_fork_inferior): Likewise.
6976 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
6977 * linux-nat.h (class linux_nat_target): Likewise.
6978 * remote.c (class remote_target) <follow_fork>: Likewise.
6979 (remote_target::follow_fork): Likewise.
6980 * target-delegates.c: Re-generate.
6981 * target.c (default_follow_fork): Likewise.
6982 (target_follow_fork): Likewise.
6983 * target.h (struct target_ops) <follow_fork>: Likewise.
6984 (target_follow_fork): Likewise.
6985
a64fafb5
TV
69862020-03-24 Tom de Vries <tdevries@suse.de>
6987
6988 * psymtab.c (maintenance_info_psymtabs): Print user field.
6989
fe26d3a3
TT
69902020-03-20 Tom Tromey <tromey@adacore.com>
6991
6992 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
6993 const.
6994 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
6995 const.
6996
c884cc46
SM
69972020-03-20 Simon Marchi <simon.marchi@efficios.com>
6998
6999 * ptrace.m4: Don't check for ptrace declaration.
7000 * config.in: Re-generate.
7001 * configure: Re-generate.
7002 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
7003 not defined.
7004
1ff700c2
KR
70052020-03-20 Kamil Rytarowski <n54@gmx.com>
7006
7007 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
7008 `PTRACE_TYPE_RET'.
7009 * i386-bsd-nat.c (gdb_ptrace): Likewise.
7010 * sparc-nat.c (gdb_ptrace): Likewise.
7011 * x86-bsd-nat.c (gdb_ptrace): Likewise.
7012
f7d4f0b1
TT
70132020-03-20 Tom Tromey <tromey@adacore.com>
7014
7015 * c-exp.y (lex_one_token): Fix assert.
7016
f67210ff
TT
70172020-03-20 Tom Tromey <tromey@adacore.com>
7018
7019 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
7020 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
7021 strncpy call.
7022
1773be9e
TT
70232020-03-20 Tom Tromey <tromey@adacore.com>
7024
7025 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
7026
70304be9
TT
70272020-03-20 Tom Tromey <tromey@adacore.com>
7028
7029 * ada-valprint.c (print_variant_part): Remove parameters; switch
7030 to value-based API.
7031 (print_field_values): Likewise.
7032 (ada_val_print_struct_union): Likewise.
7033 (ada_value_print_1): Update.
7034
9faa006d
KR
70352020-03-20 Kamil Rytarowski <n54@gmx.com>
7036
7037 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
7038 nbsd_nat_target instead of inf_ptrace_target.
7039 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7040 nbsd_nat_target.
7041
4a90f062
KR
70422020-03-20 Kamil Rytarowski <n54@gmx.com>
7043
7044 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
7045 it to the ptrace call.
7046 * (store_registers): Likewise.
7047
70482020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
7049
7050 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
7051 it to the ptrace call.
7052 * (store_registers): Likewise.
7053
2d07da27
LM
70542020-03-19 Luis Machado <luis.machado@linaro.org>
7055
7056 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
7057 valid, fetch vg value from ptrace.
7058
f09db380
KR
70592020-03-19 Kamil Rytarowski <n54@gmx.com>
7060 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
7061 * inf-ptrace.c: Likewise.
7062 * (gdb_ptrace): Add.
7063 * (inf_ptrace_target::resume): Update.
7064 * (inf_ptrace_target::xfer_partial): Likewise.
7065 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
7066 * (inf_ptrace_peek_poke): Update.
7067
fcc7376e
KR
70682020-03-19 Kamil Rytarowski <n54@gmx.com>
7069
7070 * x86-bsd-nat.c (gdb_ptrace): New.
7071 * (x86bsd_dr_set): Add new argument `ptid'.
7072 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
7073 x86bsd_dr_set_addr): Update.
7074
cada5fc9
AB
70752020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7076
7077 * remote.c (remote_target::process_stop_reply): Handle events for
7078 all threads differently.
7079
19a2740f
AB
70802020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7081
7082 * completer.c (completion_tracker::remove_completion): Define new
7083 function.
7084 * completer.h (completion_tracker::remove_completion): Declare new
7085 function.
7086 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
7087 when adding a C++ function symbol.
7088
724fd9ba
AB
70892020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7090
7091 * completer.c (completion_tracker::completion_hash_entry): Define
7092 new class.
7093 (advance_to_filename_complete_word_point): Call
7094 recompute_lowest_common_denominator.
7095 (completion_tracker::completion_tracker): Call discard_completions
7096 to setup the hash table.
7097 (completion_tracker::discard_completions): Allow for being called
7098 from the constructor, pass new equal function, and element deleter
7099 when constructing the hash table. Initialise new class member
7100 variables.
7101 (completion_tracker::maybe_add_completion): Remove use of
7102 m_entries_vec, and store more information into m_entries_hash.
7103 (completion_tracker::recompute_lcd_visitor): New function, most
7104 content taken from...
7105 (completion_tracker::recompute_lowest_common_denominator):
7106 ...here, this now just visits each item in the hash calling the
7107 above visitor.
7108 (completion_tracker::build_completion_result): Remove use of
7109 m_entries_vec, call recompute_lowest_common_denominator.
7110 * completer.h (completion_tracker::have_completions): Remove use
7111 of m_entries_vec.
7112 (completion_tracker::completion_hash_entry): Declare new class.
7113 (completion_tracker::recompute_lowest_common_denominator): Change
7114 function signature.
7115 (completion_tracker::recompute_lcd_visitor): Declare new function.
7116 (completion_tracker::m_entries_vec): Delete.
7117 (completion_tracker::m_entries_hash): Initialize to NULL.
7118 (completion_tracker::m_lowest_common_denominator_valid): New
7119 member variable.
7120 (completion_tracker::m_lowest_common_denominator_max_length): New
7121 member variable.
7122
5a82b8a1
KR
71232020-03-17 Kamil Rytarowski <n54@gmx.com>
7124
7125 * regformats/regdef.h: Put reg in gdb namespace.
7126
fb516a69
KR
71272020-03-17 Kamil Rytarowski <n54@gmx.com>
7128
7129 * i386-bsd-nat.c (gdb_ptrace): New.
7130 * (i386bsd_fetch_inferior_registers,
7131 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7132 * (i386bsd_fetch_inferior_registers,
7133 i386bsd_store_inferior_registers) Use gdb_ptrace.
7134
1c0aa1fb
KR
71352020-03-17 Kamil Rytarowski <n54@gmx.com>
7136
7137 * amd64-bsd-nat.c (gdb_ptrace): New.
7138 * (amd64bsd_fetch_inferior_registers,
7139 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7140 * (amd64bsd_fetch_inferior_registers,
7141 amd64bsd_store_inferior_registers) Use gdb_ptrace.
7142
5ccd2fb7
KR
71432020-03-17 Kamil Rytarowski <n54@gmx.com>
7144
7145 * user-regs.c (user_reg::read): Rename to...
7146 (user_reg::xread): ...this.
7147 * (append_user_reg): Rename argument `read' to `xread'.
7148 * (user_reg_add_builtin): Likewise.
7149 * (user_reg_add): Likewise.
7150 * (value_of_user_reg): Likewise.
7151
2108a63a
KR
71522020-03-17 Kamil Rytarowski <n54@gmx.com>
7153
7154 * sparc-nat.c (gdb_ptrace): New.
7155 * sparc-nat.c (sparc_fetch_inferior_registers)
7156 (sparc_store_inferior_registers) Remove obsolete comment.
7157 * sparc-nat.c (sparc_fetch_inferior_registers)
7158 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
7159 * sparc-nat.c (sparc_fetch_inferior_registers)
7160 (sparc_store_inferior_registers) Use gdb_ptrace.
7161
a225c9a8
KR
71622020-03-17 Kamil Rytarowski <n54@gmx.com>
7163
7164 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
7165 it to the ptrace call.
7166 * sh-nbsd-nat.c (store_registers): Likewise.
7167
98097623
KR
71682020-03-17 Kamil Rytarowski <n54@gmx.com>
7169
7170 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
7171 nbsd_nat_target instead of inf_ptrace_target.
7172 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7173 nbsd_nat_target.
7174
9e38d619
KR
71752020-03-17 Kamil Rytarowski <n54@gmx.com>
7176
7177 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
7178
a2ecbe9f
KR
71792020-03-17 Kamil Rytarowski <n54@gmx.com>
7180
7181 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
7182 <sys/sysctl.h>.
7183 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
7184
58990295
TV
71852020-03-17 Tom de Vries <tdevries@suse.de>
7186
7187 PR gdb/23710
7188 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
7189 fields.
7190 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
7191 fields.
7192 (process_imported_unit_die): Skip import of c++ CUs.
7193
771dd3a8
TT
71942020-03-16 Tom Tromey <tom@tromey.com>
7195
7196 * p-valprint.c (pascal_object_print_value): Initialize
7197 base_value.
7198
817a7585
AK
71992020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
7200 Shahab Vahedi <shahab@synopsys.com>
7201
7202 * Makefile.in: Add arch/arc.o
7203 * configure.tgt: Likewise.
7204 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
7205 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 7206 (arc_read_description): New function to cache target descriptions.
817a7585
AK
7207 * arc-tdep.h (arc_read_description): Add proto type.
7208 * arch/arc.c: New file.
7209 * arch/arc.h: Likewise.
7210 * features/Makefile: Replace old target descriptions with new.
7211 * features/arc-arcompact.c: Remove.
7212 * features/arc-arcompact.xml: Likewise.
7213 * features/arc-v2.c: Likewise
7214 * features/arc-v2.xml: Likewise
7215 * features/arc/aux-arcompact.xml: New file.
7216 * features/arc/aux-v2.xml: Likewise.
7217 * features/arc/core-arcompact.xml: Likewise.
7218 * features/arc/core-v2.xml: Likewise.
7219 * features/arc/aux-arcompact.c: Generate.
7220 * features/arc/aux-v2.c: Likewise.
7221 * features/arc/core-arcompact.c: Likewise.
7222 * features/arc/core-v2.c: Likewise.
7223 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
7224
67430cd0
TT
72252020-03-16 Tom Tromey <tromey@adacore.com>
7226
7227 PR gdb/25663:
7228 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
7229 putting value into bcache.
7230
30efb6c7
SM
72312020-03-16 Simon Marchi <simon.marchi@efficios.com>
7232
7233 PR gdb/21500
7234 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
7235 to...
7236 (amd64_windows_init_abi_common): ... this. Don't set size of
7237 long type.
7238 (amd64_windows_init_abi): New function.
7239 (amd64_cygwin_init_abi): New function.
7240 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
7241 the Cygwin OS ABI.
7242 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
7243 comment.
7244
8db52437
SM
72452020-03-16 Simon Marchi <simon.marchi@efficios.com>
7246
7247 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
7248 * windows-tdep.c (CYGWIN_DLL_NAME): New.
7249 (pe_import_directory_entry): New struct type.
7250 (is_linked_with_cygwin_dll): New function.
7251 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
7252 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
7253 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
7254
5982a56a
SM
72552020-03-16 Simon Marchi <simon.marchi@efficios.com>
7256
7257 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
7258 i386_cygwin_core_osabi_sniffer.
7259
7a1998df
SM
72602020-03-16 Simon Marchi <simon.marchi@efficios.com>
7261
7262 * i386-cygwin-tdep.c: Rename to...
7263 * i386-windows-tdep.c: ... this.
7264 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
7265 i386-windows-tdep.c.
7266 * configure.tgt: Likewise.
7267
053205cc
SM
72682020-03-16 Simon Marchi <simon.marchi@efficios.com>
7269
7270 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
7271 * osabi.c (gdb_osabi_names): Add "Windows".
7272 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
7273 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
7274 (i386_cygwin_core_osabi_sniffer): New function, extracted from
7275 i386_cygwin_osabi_sniffer.
7276 (_initialize_i386_cygwin_tdep): Register OS ABI
7277 GDB_OSABI_WINDOWS for i386.
7278 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
7279 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
7280 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
7281 for x86-64.
7282 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
7283 when the target matches '*-*-mingw*'.
7284
fe4b2ee6
SM
72852020-03-16 Simon Marchi <simon.marchi@efficios.com>
7286
7287 * defs.h (enum gdb_osabi): Move to...
7288 * osabi.h (enum gdb_osabi): ... here.
7289 * gdbarch.sh: Include osabi.h in gdbarch.h.
7290 * gdbarch.h: Re-generate.
7291
cb9b645d
SM
72922020-03-16 Simon Marchi <simon.marchi@efficios.com>
7293
7294 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
7295 function.
7296 (_initialize_amd64_windows_tdep): Register osabi sniffer.
7297
3293bbaf
TT
72982020-03-14 Tom Tromey <tom@tromey.com>
7299
7300 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
7301 for C++.
7302 (c_type_print_modifier): Likewise. Add "language" parameter.
7303 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
7304 (c_type_print_base_1): Update.
7305 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
7306 constants.
7307 * type-stack.c (type_stack::insert): Handle tp_atomic and
7308 tp_restrict.
7309 (type_stack::follow_type_instance_flags): Likewise.
7310 (type_stack::follow_types): Likewise. Merge type-following code.
7311 * c-exp.y (RESTRICT, ATOMIC): New tokens.
7312 (space_identifier, cv_with_space_id)
7313 (const_or_volatile_or_space_identifier_noopt)
7314 (const_or_volatile_or_space_identifier): Remove.
7315 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
7316 rules.
7317 (ptr_operator, typebase): Update.
7318 (enum token_flag) <FLAG_C>: New constant.
7319 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
7320 "_Atomic".
7321 (lex_one_token): Handle FLAG_C.
7322
154151a6
KR
73232020-03-14 Kamil Rytarowski <n54@gmx.com>
7324
7325 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
7326 it to the ptrace call.
7327 * m68k-bsd-nat.c (store_registers): Likewise.
7328
bc107784
KR
73292020-03-14 Kamil Rytarowski <n54@gmx.com>
7330
7331 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
7332 gdb_byte *.
7333 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
7334 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
7335 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
7336
01a80117
KR
73372020-03-14 Kamil Rytarowski <n54@gmx.com>
7338
7339 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
7340 nbsd_nat_target instead of inf_ptrace_target.
7341 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7342 nbsd_nat_target.
7343
f90280ca
KR
73442020-03-14 Kamil Rytarowski <n54@gmx.com>
7345
7346 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
7347 register_t.
7348
6def66f1
KR
73492020-03-14 Kamil Rytarowski <n54@gmx.com>
7350
7351 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
7352 it to the ptrace call.
7353 * alpha-bsd-nat.c (store_registers): Likewise.
7354
66eaca97
KR
73552020-03-14 Kamil Rytarowski <n54@gmx.com>
7356
7357 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
7358 includes.
7359 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
7360 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
7361 fill_fpregset): Likewise.
7362
4fed520b
KR
73632020-03-14 Kamil Rytarowski <n54@gmx.com>
7364
7365 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
7366 nbsd_nat_target instead of inf_ptrace_target.
7367 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7368 nbsd_nat_target.
7369
2190cf06
KR
73702020-03-14 Kamil Rytarowski <n54@gmx.com>
7371
7372 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
7373 register_t.
7374
75c56d3d
KR
73752020-03-14 Kamil Rytarowski <n54@gmx.com>
7376
7377 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
7378 it to the ptrace call.
7379 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
7380 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
7381 * arm-nbsd-nat.c (store_register): Likewise.
7382 * arm-nbsd-nat.c (store_regs): Likewise.
7383 * arm-nbsd-nat.c (store_fp_register): Likewise.
7384 * arm-nbsd-nat.c (store_fp_regs): Likewise.
7385
6018d381
KR
73862020-03-14 Kamil Rytarowski <n54@gmx.com>
7387
7388 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
7389 nbsd_nat_target instead of inf_ptrace_target.
7390 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7391 nbsd_nat_target.
7392
013f99f0
KR
73932020-03-14 Kamil Rytarowski <n54@gmx.com>
7394
7395 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
7396 it to the ptrace call.
7397 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
7398
12753073
KR
73992020-03-14 Kamil Rytarowski <n54@gmx.com>
7400
6227b330
KR
7401 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
7402 it to the ptrace call.
7403 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
7404
74052020-03-14 Kamil Rytarowski <n54@gmx.com>
7406
7407 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
7408 gdb_byte *.
12753073
KR
7409 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
7410
d5be5fa4
KR
74112020-03-14 Kamil Rytarowski <n54@gmx.com>
7412
7413 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
7414 instead of inf_ptrace_target.
7415 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7416 nbsd_nat_target.
7417
8110f842
KR
74182020-03-14 Kamil Rytarowski <n54@gmx.com>
7419
7420 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7421 register_t.
7422
52feded7
KR
74232020-03-14 Kamil Rytarowski <n54@gmx.com>
7424
7425 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7426 register_t.
7427
25567eee
KR
74282020-03-14 Kamil Rytarowski <n54@gmx.com>
7429
7430 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
7431 register_t.
7432
426a9c18
TT
74332020-03-13 Tom Tromey <tom@tromey.com>
7434
7435 * value.h (val_print): Don't declare.
7436 * valprint.h (val_print_array_elements)
7437 (val_print_scalar_formatted, generic_val_print): Don't declare.
7438 * valprint.c (generic_val_print_array): Take a struct value.
7439 (generic_val_print_ptr, generic_val_print_memberptr)
7440 (generic_val_print_bool, generic_val_print_int)
7441 (generic_val_print_char, generic_val_print_complex)
7442 (generic_val_print): Remove.
7443 (generic_value_print): Update.
7444 (do_val_print): Remove unused parameters. Don't call
7445 la_val_print.
7446 (val_print): Remove.
7447 (common_val_print): Update. Don't call value_check_printable.
7448 (val_print_scalar_formatted, val_print_array_elements): Remove.
7449 * rust-lang.c (rust_val_print): Remove.
7450 (rust_language_defn): Update.
7451 * p-valprint.c (pascal_val_print): Remove.
7452 (pascal_value_print_inner): Update.
7453 (pascal_object_print_val_fields, pascal_object_print_val):
7454 Remove.
7455 (pascal_object_print_static_field): Update.
7456 * p-lang.h (pascal_val_print): Don't declare.
7457 * p-lang.c (pascal_language_defn): Update.
7458 * opencl-lang.c (opencl_language_defn): Update.
7459 * objc-lang.c (objc_language_defn): Update.
7460 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
7461 * m2-lang.h (m2_val_print): Don't declare.
7462 * m2-lang.c (m2_language_defn): Update.
7463 * language.h (struct language_defn) <la_val_print>: Remove.
7464 * language.c (unk_lang_value_print_inner): Rename. Change
7465 argument types.
7466 (unknown_language_defn, auto_language_defn): Update.
7467 * go-valprint.c (go_val_print): Remove.
7468 * go-lang.h (go_val_print): Don't declare.
7469 * go-lang.c (go_language_defn): Update.
7470 * f-valprint.c (f_val_print): Remove.
7471 * f-lang.h (f_value_print): Don't declare.
7472 * f-lang.c (f_language_defn): Update.
7473 * d-valprint.c (d_val_print): Remove.
7474 * d-lang.h (d_value_print): Don't declare.
7475 * d-lang.c (d_language_defn): Update.
7476 * cp-valprint.c (cp_print_value_fields)
7477 (cp_print_value_fields_rtti, cp_print_value): Remove.
7478 (cp_print_static_field): Update.
7479 * c-valprint.c (c_val_print_array, c_val_print_ptr)
7480 (c_val_print_struct, c_val_print_union, c_val_print_int)
7481 (c_val_print_memberptr, c_val_print): Remove.
7482 * c-lang.h (c_val_print_array, cp_print_value_fields)
7483 (cp_print_value_fields_rtti): Don't declare.
7484 * c-lang.c (c_language_defn, cplus_language_defn)
7485 (asm_language_defn, minimal_language_defn): Update.
7486 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
7487 (ada_val_print_enum): Take a struct value.
7488 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
7489 (ada_val_print): Remove.
7490 (ada_value_print_1): Update.
7491 (printable_val_type): Remove.
7492 * ada-lang.h (ada_val_print): Don't declare.
7493 * ada-lang.c (ada_language_defn): Update.
7494
42331a1e
TT
74952020-03-13 Tom Tromey <tom@tromey.com>
7496
7497 * valprint.c (do_val_print): Update.
7498 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
7499 a struct value.
7500 (value_to_value_object_no_release): Declare.
7501 * python/py-value.c (value_to_value_object_no_release): New
7502 function.
7503 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
7504 struct value.
7505 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
7506 function.
7507 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
7508 a struct value.
7509 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
7510 Declare.
7511 (gdbscm_apply_val_pretty_printer): Take a struct value.
7512 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
7513 value.
7514 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
7515 value.
7516 * extension-priv.h (struct extension_language_ops)
7517 <apply_val_pretty_printer>: Take a struct value.
7518 * cp-valprint.c (cp_print_value): Create a struct value.
7519 (cp_print_value): Update.
7520
3a916a97
TT
75212020-03-13 Tom Tromey <tom@tromey.com>
7522
7523 * ada-valprint.c (print_field_values): Call common_val_print.
7524
b59eac37
TT
75252020-03-13 Tom Tromey <tom@tromey.com>
7526
7527 * ada-valprint.c (val_print_packed_array_elements): Remove
7528 bitoffset and val parameters. Call common_val_print.
7529 (ada_val_print_string): Remove offset, address, and original_value
7530 parameters.
7531 (ada_val_print_array): Update.
7532 (ada_value_print_array): New function.
7533 (ada_value_print_1): Call it.
7534
03371129
TT
75352020-03-13 Tom Tromey <tom@tromey.com>
7536
7537 * ada-valprint.c (ada_value_print): Use common_val_print.
7538
2e088f8b
TT
75392020-03-13 Tom Tromey <tom@tromey.com>
7540
7541 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
7542
39ef85a8
TT
75432020-03-13 Tom Tromey <tom@tromey.com>
7544
7545 * ada-valprint.c (ada_value_print_num): New function.
7546 (ada_value_print_1): Use it.
7547
b9fa6e07
TT
75482020-03-13 Tom Tromey <tom@tromey.com>
7549
7550 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
7551
416595d6
TT
75522020-03-13 Tom Tromey <tom@tromey.com>
7553
7554 * ada-valprint.c (ada_value_print_ptr): New function.
7555 (ada_value_print_1): Use it.
7556
5b5e15ec
TT
75572020-03-13 Tom Tromey <tom@tromey.com>
7558
7559 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
7560 call common_val_print.
7561 (ada_val_print_1): Update.
7562 (ada_value_print_1): New function.
7563 (ada_value_print_inner): Rewrite.
7564
fbf54e75
TT
75652020-03-13 Tom Tromey <tom@tromey.com>
7566
7567 * cp-valprint.c (cp_print_value_fields): Update.
7568 (cp_print_value): New function.
7569
64b653ca
TT
75702020-03-13 Tom Tromey <tom@tromey.com>
7571
7572 * m2-valprint.c (m2_value_print_inner): Use
7573 cp_print_value_fields.
7574 * cp-valprint.c (cp_print_value_fields): New function.
7575 * c-valprint.c (c_value_print_struct): New function.
7576 (c_value_print_inner): Use c_value_print_struct.
7577 * c-lang.h (cp_print_value_fields): Declare.
7578
6999f067
TT
75792020-03-13 Tom Tromey <tom@tromey.com>
7580
7581 * c-valprint.c (c_value_print_array): New function.
7582 (c_value_print_inner): Use it.
7583
ce80b8bd
TT
75842020-03-13 Tom Tromey <tom@tromey.com>
7585
7586 * c-valprint.c (c_value_print_memberptr): New function.
7587 (c_value_print_inner): Use it.
7588
2faac269
TT
75892020-03-13 Tom Tromey <tom@tromey.com>
7590
7591 * c-valprint.c (c_value_print_int): New function.
7592 (c_value_print_inner): Use it.
7593
da3e2c29
TT
75942020-03-13 Tom Tromey <tom@tromey.com>
7595
7596 * c-valprint.c (c_value_print_ptr): New function.
7597 (c_value_print_inner): Use it.
7598
50836231
TT
75992020-03-13 Tom Tromey <tom@tromey.com>
7600
7601 * c-valprint.c (c_value_print_inner): Rewrite.
7602
4f412b6e
TT
76032020-03-13 Tom Tromey <tom@tromey.com>
7604
7605 * valprint.c (generic_value_print_complex): New function.
7606 (generic_value_print): Use it.
7607
f5354008
TT
76082020-03-13 Tom Tromey <tom@tromey.com>
7609
7610 * valprint.c (generic_val_print_float): Don't call
7611 val_print_scalar_formatted.
7612 (generic_val_print, generic_value_print): Update.
7613
3eec3b05
TT
76142020-03-13 Tom Tromey <tom@tromey.com>
7615
7616 * valprint.c (generic_value_print_char): New function
7617 (generic_value_print): Use it.
7618
fdddfccb
TT
76192020-03-13 Tom Tromey <tom@tromey.com>
7620
7621 * valprint.c (generic_value_print_int): New function.
7622 (generic_value_print): Use it.
7623
6dde7521
TT
76242020-03-13 Tom Tromey <tom@tromey.com>
7625
7626 * valprint.c (generic_value_print_bool): New function.
7627 (generic_value_print): Use it.
7628
4112d2e6
TT
76292020-03-13 Tom Tromey <tom@tromey.com>
7630
7631 * valprint.c (generic_val_print_func): Simplify.
7632 (generic_val_print, generic_value_print): Update.
7633
65786af6
TT
76342020-03-13 Tom Tromey <tom@tromey.com>
7635
7636 * valprint.c (generic_val_print_flags): Remove.
7637 (generic_val_print, generic_value_print): Update.
7638 (val_print_type_code_flags): Add original_value parameter.
7639
40f3ce18
TT
76402020-03-13 Tom Tromey <tom@tromey.com>
7641
7642 * valprint.c (generic_val_print): Update.
7643 (generic_value_print): Update.
7644 * valprint.c (generic_val_print_enum): Don't call
7645 val_print_scalar_formatted.
7646
2a5b130b
TT
76472020-03-13 Tom Tromey <tom@tromey.com>
7648
7649 * valprint.c (generic_value_print): Call generic_value_print_ptr.
7650 * valprint.c (generic_value_print_ptr): New function.
7651
abc66ce9
TT
76522020-03-13 Tom Tromey <tom@tromey.com>
7653
7654 * valprint.c (generic_value_print): Rewrite.
7655
07a32858
TT
76562020-03-13 Tom Tromey <tom@tromey.com>
7657
7658 * p-valprint.c (pascal_object_print_value_fields)
7659 (pascal_object_print_value): New functions.
7660
64d64d3a
TT
76612020-03-13 Tom Tromey <tom@tromey.com>
7662
7663 * p-valprint.c (pascal_value_print_inner): Rewrite.
7664
6a95a1f5
TT
76652020-03-13 Tom Tromey <tom@tromey.com>
7666
7667 * f-valprint.c (f_value_print_innner): Rewrite.
7668
59fcdac6
TT
76692020-03-13 Tom Tromey <tom@tromey.com>
7670
7671 * m2-valprint.c (m2_print_unbounded_array): New overload.
7672 (m2_print_unbounded_array): Update.
7673 (m2_print_array_contents): Take a struct value.
7674 (m2_value_print_inner): Rewrite.
7675
d133c3e1
TT
76762020-03-13 Tom Tromey <tom@tromey.com>
7677
7678 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
7679 (d_value_print_inner): New function.
7680 * d-lang.h (d_value_print_inner): Declare.
7681 * d-lang.c (d_language_defn): Use d_value_print_inner.
7682
23b0f06b
TT
76832020-03-13 Tom Tromey <tom@tromey.com>
7684
7685 * go-valprint.c (go_value_print_inner): New function.
7686 * go-lang.h (go_value_print_inner): Declare.
7687 * go-lang.c (go_language_defn): Use go_value_print_inner.
7688
5f56f7cb
TT
76892020-03-13 Tom Tromey <tom@tromey.com>
7690
7691 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
7692 API.
7693 (rust_val_print): Rewrite.
7694 (rust_value_print_inner): New function, from rust_val_print.
7695 (rust_language_defn): Use rust_value_print_inner.
7696
26792ee0
TT
76972020-03-13 Tom Tromey <tom@tromey.com>
7698
7699 * ada-valprint.c (ada_value_print_inner): New function.
7700 * ada-lang.h (ada_value_print_inner): Declare.
7701 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
7702
24051bbe
TT
77032020-03-13 Tom Tromey <tom@tromey.com>
7704
7705 * f-valprint.c (f_value_print_innner): New function.
7706 * f-lang.h (f_value_print_innner): Declare.
7707 * f-lang.c (f_language_defn): Use f_value_print_innner.
7708
c0941be6
TT
77092020-03-13 Tom Tromey <tom@tromey.com>
7710
7711 * p-valprint.c (pascal_value_print_inner): New function.
7712 * p-lang.h (pascal_value_print_inner): Declare.
7713 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
7714
62c4663d
TT
77152020-03-13 Tom Tromey <tom@tromey.com>
7716
7717 * m2-valprint.c (m2_value_print_inner): New function.
7718 * m2-lang.h (m2_value_print_inner): Declare.
7719 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
7720
62182190
TT
77212020-03-13 Tom Tromey <tom@tromey.com>
7722
7723 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
7724 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
7725 * c-valprint.c (c_value_print_inner): New function.
7726 * c-lang.h (c_value_print_inner): Declare.
7727 * c-lang.c (c_language_defn, cplus_language_defn)
7728 (asm_language_defn, minimal_language_defn): Use
7729 c_value_print_inner.
7730
1e592a8a
TT
77312020-03-13 Tom Tromey <tom@tromey.com>
7732
7733 * p-valprint.c (pascal_object_print_value_fields): Now static.
7734 * p-lang.h (pascal_object_print_value_fields): Don't declare.
7735
7fe471e9
TT
77362020-03-13 Tom Tromey <tom@tromey.com>
7737
7738 * c-valprint.c (c_val_print_array): Simplify.
7739
d121c6ce
TT
77402020-03-13 Tom Tromey <tom@tromey.com>
7741
7742 * valprint.c (value_print_array_elements): New function.
7743 * valprint.h (value_print_array_elements): Declare.
7744
4dba70ee
TT
77452020-03-13 Tom Tromey <tom@tromey.com>
7746
7747 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
7748 * mips-tdep.c (mips_print_register): Use
7749 value_print_scalar_formatted.
7750
4f9ae810
TT
77512020-03-13 Tom Tromey <tom@tromey.com>
7752
7753 * valprint.h (value_print_scalar_formatted): Declare.
7754 * valprint.c (value_print_scalar_formatted): New function.
7755
156bfec9
TT
77562020-03-13 Tom Tromey <tom@tromey.com>
7757
7758 * valprint.h (generic_value_print): Declare.
7759 * valprint.c (generic_value_print): New function.
7760
2b4e573d
TT
77612020-03-13 Tom Tromey <tom@tromey.com>
7762
7763 * valprint.c (do_val_print): Call la_value_print_inner, if
7764 available.
7765 * rust-lang.c (rust_language_defn): Update.
7766 * p-lang.c (pascal_language_defn): Update.
7767 * opencl-lang.c (opencl_language_defn): Update.
7768 * objc-lang.c (objc_language_defn): Update.
7769 * m2-lang.c (m2_language_defn): Update.
7770 * language.h (struct language_defn) <la_value_print_inner>: New
7771 member.
7772 * language.c (unknown_language_defn, auto_language_defn): Update.
7773 * go-lang.c (go_language_defn): Update.
7774 * f-lang.c (f_language_defn): Update.
7775 * d-lang.c (d_language_defn): Update.
7776 * c-lang.c (c_language_defn, cplus_language_defn)
7777 (asm_language_defn, minimal_language_defn): Update.
7778 * ada-lang.c (ada_language_defn): Update.
7779
a1f6a07c
TT
77802020-03-13 Tom Tromey <tom@tromey.com>
7781
7782 * c-valprint.c (c_value_print): Use common_val_print.
7783
410cf315
TT
77842020-03-13 Tom Tromey <tom@tromey.com>
7785
7786 * cp-valprint.c (cp_print_static_field): Use common_val_print.
7787
72a45c93
TT
77882020-03-13 Tom Tromey <tom@tromey.com>
7789
7790 * f-valprint.c (f77_print_array_1, f_val_print): Use
7791 common_val_print.
7792
040f66bd
TT
77932020-03-13 Tom Tromey <tom@tromey.com>
7794
7795 * riscv-tdep.c (riscv_print_one_register_info): Use
7796 common_val_print.
7797
a6e05a6c
TT
77982020-03-13 Tom Tromey <tom@tromey.com>
7799
7800 * mi/mi-main.c (output_register): Use common_val_print.
7801
3444c526
TT
78022020-03-13 Tom Tromey <tom@tromey.com>
7803
7804 * infcmd.c (default_print_one_register_info): Use
7805 common_val_print.
7806
c2a44efe
TT
78072020-03-13 Tom Tromey <tom@tromey.com>
7808
7809 * valprint.h (common_val_print_checked): Declare.
7810 * valprint.c (common_val_print_checked): New function.
7811 * stack.c (print_frame_arg): Use common_val_print_checked.
7812
b0c26e99
TT
78132020-03-13 Tom Tromey <tom@tromey.com>
7814
7815 * valprint.c (do_val_print): New function, from val_print.
7816 (val_print): Use do_val_print.
7817 (common_val_print): Use do_val_print.
7818
ce3acbe9
TT
78192020-03-13 Tom Tromey <tom@tromey.com>
7820
7821 * valprint.c (value_print): Use scoped_value_mark.
7822
96c7f873
TV
78232020-03-13 Tom de Vries <tdevries@suse.de>
7824
7825 PR symtab/25646
7826 * psymtab.c (partial_symtab::partial_symtab): Don't set
7827 globals_offset and statics_offset. Push element onto
7828 current_global_psymbols and current_static_psymbols stacks.
7829 (concat): New function.
7830 (end_psymtab_common): Set globals_offset and statics_offset. Pop
7831 element from current_global_psymbols and current_static_psymbols
7832 stacks. Concat popped elements to global_psymbols and
7833 static_symbols.
7834 (add_psymbol_to_list): Use current_global_psymbols and
7835 current_static_psymbols stacks.
7836 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
7837 current_static_psymbols fields.
7838
6ba0a321
CB
78392020-03-12 Christian Biesinger <cbiesinger@google.com>
7840
7841 * corelow.c (sniff_core_bfd): Remove.
7842 (class core_target) <m_core_vec>: Remove.
7843 (core_target::core_target): Update.
7844 (core_file_fns): Remove.
7845 (deprecated_add_core_fns): Remove.
7846 (default_core_sniffer): Remove.
7847 (sniff_core_bfd): Remove.
7848 (default_check_format): Remove.
7849 (gdb_check_format): Remove.
7850 (core_target_open): Update.
7851 (core_target::get_core_register_section): Update.
7852 (get_core_registers_cb): Update.
7853 (core_target::fetch_registers): Update.
7854 * gdbcore.h (struct core_fns): Remove.
7855 (deprecated_add_core_fns): Remove.
7856 (default_core_sniffer): Remove.
7857 (default_check_format): Remove.
7858
227031b2
TT
78592020-03-12 Tom Tromey <tom@tromey.com>
7860
7861 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
7862 CORE_ADDR.
7863 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
7864
53807e9f
TT
78652020-03-12 Tom Tromey <tom@tromey.com>
7866
7867 * remote.c (remote_target::download_tracepoint)
7868 (remote_target::enable_tracepoint)
7869 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
7870 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
7871 sprintf_vma.
7872
64f25102
TT
78732020-03-12 Tom Tromey <tom@tromey.com>
7874
7875 * symfile-mem.c: Update CORE_ADDR size assert.
7876
272cd5a3
SM
78772020-03-12 Simon Marchi <simon.marchi@efficios.com>
7878
7879 * selftest.m4: Move to gdbsupport/.
7880 * acinclude.m4: Update path to selftest.m4.
7881
74cd3f9d
SM
78822020-03-12 Simon Marchi <simon.marchi@efficios.com>
7883
7884 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
7885 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
7886 gdbarch-selfselftests.c and selftest-arch.c.
7887 (SUBDIR_UNITTESTS_OBS): Rename to...
7888 (SELFTESTS_OBS): ... this.
7889 (COMMON_SFILES): Remove disasm-selftests.c and
7890 gdbarch-selftests.c.
7891 * configure.ac: Don't add selftest-arch.{c,o} to
7892 CONFIG_{SRCS,OBS}.
7893 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
7894 preprocessor conditions.
7895
db6878ac
SM
78962020-03-12 Simon Marchi <simon.marchi@efficios.com>
7897
7898 * configure.ac: Don't source bfd/development.sh.
7899 * selftest.m4: Modify comment.
7900 * configure: Re-generate.
7901
4d696a5c
SM
79022020-03-12 Simon Marchi <simon.marchi@efficios.com>
7903
7904 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
7905 not "true" or "false".
7906 * configure: Re-generate.
7907
8dd8e1c7
CB
79082020-03-12 Christian Biesinger <cbiesinger@google.com>
7909
7910 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
7911 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
7912 renamed to arm_nbsd_supply_gregset.
7913 (fetch_register): Update to call arm_nbsd_supply_gregset.
7914 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
7915 (arm_netbsd_nat_target::fetch_registers): Update.
7916 (fetch_elfcore_registers): Removed.
7917 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
7918 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
7919 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
7920 not require NetBSD system headers.
7921 (arm_nbsd_regset): New struct.
7922 (arm_nbsd_iterate_over_regset_sections): New function.
7923 (arm_netbsd_init_abi_common): Updated to call
7924 set_gdbarch_iterate_over_regset_sections.
7925 * arm-nbsd-tdep.h: New file.
7926
dd69bf7a
KB
79272020-03-11 Kevin Buettner <kevinb@redhat.com>
7928
7929 * symtab.c (find_pc_sect_line): Add check which prevents infinite
7930 recursion.
7931
a0761e34
SM
79322020-03-11 Simon Marchi <simon.marchi@efficios.com>
7933
7934 * configure: Re-generate.
7935
e7a82140
TT
79362020-03-11 Tom Tromey <tromey@adacore.com>
7937
7938 * ada-typeprint.c (print_choices): Fix comment.
7939
dcc050c8
AB
79402020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
7941
7942 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
7943 previous item in the list, when the list has no items.
7944
1c33af77
TV
79452020-03-11 Tom de Vries <tdevries@suse.de>
7946
7947 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
7948 PROP_LOCLIST handling code.
7949
8c95582d
AB
79502020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
7951
7952 * buildsym-legacy.c (record_line): Pass extra parameter to
7953 record_line.
7954 * buildsym.c (buildsym_compunit::record_line): Take an extra
7955 parameter, reduce duplication in the line table, and record the
7956 is_stmt flag in the line table.
7957 * buildsym.h (buildsym_compunit::record_line): Add extra
7958 parameter.
7959 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
7960 non-statement lines.
7961 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
7962 this to the symtab builder.
7963 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
7964 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
7965 through to dwarf_record_line_1.
7966 * infrun.c (process_event_stop_test): When stepping, don't stop at
7967 a non-statement instruction, and only refresh the step info when
7968 we land in the middle of a line's range. Also add an extra
7969 comment.
7970 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
7971 field.
7972 * record-btrace.c (btrace_find_line_range): Only record lines
7973 marked as is-statement.
7974 * stack.c (frame_show_address): Show the frame address if we are
7975 in a non-statement sal.
7976 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
7977 (maintenance_print_one_line_table): Print a header for the is_stmt
7978 column, and include is_stmt information in the output.
7979 * symtab.c (find_pc_sect_line): Find lines marked as statements in
7980 preference to non-statements.
7981 (find_pcs_for_symtab_line): Prefer is-statement entries.
7982 (find_line_common): Likewise.
7983 * symtab.h (struct linetable_entry): Add is_stmt field.
7984 (struct symtab_and_line): Likewise.
7985 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
7986 arranging the line table.
7987
e4003a34
TV
79882020-03-07 Tom de Vries <tdevries@suse.de>
7989
7990 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
7991 DIE.
7992
e8932576
TT
79932020-03-07 Tom Tromey <tom@tromey.com>
7994
7995 * valops.c (value_literal_complex): Remove obsolete comment.
7996 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
7997 comment.
7998
29734269
SM
79992020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
8000
8001 * infrun.h: Forward-declare thread_info.
8002 (set_step_info): Add thread_info parameter, add doc.
8003 * infrun.c (set_step_info): Add thread_info parameter, move doc
8004 to header.
8005 * infrun.c (process_event_stop_test): Pass thread to
8006 set_step_info call.
8007 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
8008 set_step_info.
8009 (prepare_one_step): Add thread_info parameter, pass it to
8010 set_step_frame and prepare_one_step (recursive) call.
8011 (step_1): Pass thread to prepare_one_step call.
8012 (step_command_fsm::should_stop): Pass thread to
8013 prepare_one_step.
8014 (until_next_fsm): Pass thread to set_step_frame call.
8015 (finish_command): Pass thread to set_step_info call.
8016
b7d64b29
HD
80172020-03-06 Hannes Domani <ssbssa@yahoo.de>
8018
8019 * windows-tdep.c (windows_solib_create_inferior_hook):
8020 Check if inferior is running.
8021
09f2921c
TV
80222020-03-06 Tom de Vries <tdevries@suse.de>
8023
8024 * NEWS: Fix "the the".
8025 * ctfread.c: Same.
8026
fd760e79
TV
80272020-03-06 Tom de Vries <tdevries@suse.de>
8028
8029 * psymtab.c (psymtab_to_symtab): Don't print "done.".
8030
20ea4a60
AB
80312020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8032
8033 * .dir-locals.el: Add a comment referencing the other copies of
8034 this file.
8035
0afbabf0
JB
80362020-03-05 John Baldwin <jhb@FreeBSD.org>
8037
8038 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
8039 psargs.
8040
842806cb
TBA
80412020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8042
8043 * .gitattributes: New file.
8044
be1e3d3e
TT
80452020-03-04 Tom Tromey <tom@tromey.com>
8046
8047 * symmisc.c (print_symbol_bcache_statistics)
8048 (print_objfile_statistics): Update.
8049 * symfile.c (allocate_symtab): Use intern.
8050 * psymtab.c (partial_symtab::partial_symtab): Use intern.
8051 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
8052 macro_cache>: Remove.
8053 <string_cache>: New member.
8054 (struct objfile) <intern>: New methods.
8055 * elfread.c (elf_symtab_read): Use intern.
8056 * dwarf2/read.c (fixup_go_packaging): Intern package name.
8057 (dwarf2_compute_name, dwarf2_physname)
8058 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
8059 names.
8060 (guess_partial_die_structure_name): Update.
8061 (partial_die_info::fixup): Intern name.
8062 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
8063 name.
8064 (dwarf2_name): Intern name. Update.
8065 * buildsym.c (buildsym_compunit::get_macro_table): Use
8066 string_cache.
8067
4e7625fd
TT
80682020-03-04 Tom Tromey <tom@tromey.com>
8069
8070 * jit.c (bfd_open_from_target_memory): Make "target" const.
8071 * corefile.c (gnutarget): Now const.
8072 * gdbcore.h (gnutarget): Now const.
8073
46f9f931
HD
80742020-03-04 Hannes Domani <ssbssa@yahoo.de>
8075
8076 * NEWS: Mention support for WOW64 processes.
8077 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
8078 (amd64_windows_segment_register_p): Remove static.
8079 (_initialize_amd64_windows_nat): Update.
8080 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
8081 * i386-windows-nat.c (context_offset): Update.
8082 (i386_mappings): Rename and remove static.
8083 (i386_windows_segment_register_p): Remove static.
8084 (_initialize_i386_windows_nat): Update.
8085 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
8086 (STATUS_WX86_SINGLE_STEP): New macro.
8087 (EnumProcessModulesEx): New macro.
8088 (Wow64SuspendThread): New macro.
8089 (Wow64GetThreadContext): New macro.
8090 (Wow64SetThreadContext): New macro.
8091 (Wow64GetThreadSelectorEntry): New macro.
8092 (windows_set_context_register_offsets): Add static.
8093 (windows_set_segment_register_p): Likewise.
8094 (windows_add_thread): Adapt for WOW64 processes.
8095 (windows_fetch_one_register): Likewise.
8096 (windows_nat_target::fetch_registers): Likewise.
8097 (windows_store_one_register): Likewise.
8098 (display_selector): Likewise.
8099 (display_selectors): Likewise.
8100 (handle_exception): Likewise.
8101 (windows_continue): Likewise.
8102 (windows_nat_target::resume): Likewise.
8103 (windows_add_all_dlls): Likewise.
8104 (do_initial_windows_stuff): Likewise.
8105 (windows_nat_target::attach): Likewise.
8106 (windows_get_exec_module_filename): Likewise.
8107 (windows_nat_target::create_inferior): Likewise.
8108 (windows_xfer_siginfo): Likewise.
8109 (_initialize_loadable): Initialize Wow64SuspendThread,
8110 Wow64GetThreadContext, Wow64SetThreadContext,
8111 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
8112 * windows-nat.h (windows_set_context_register_offsets):
8113 Remove declaration.
8114 (windows_set_segment_register_p): Likewise.
8115 (i386_windows_segment_register_p): Add declaration.
8116 (amd64_windows_segment_register_p): Likewise.
8117
440cf44e
LM
81182020-03-04 Luis Machado <luis.machado@linaro.org>
8119
8120 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
8121 in "info registers" for AArch64/ARM.
8122
8123 The change caused "info registers" to not print GPR's.
8124
8125 gdb/ChangeLog:
8126
8127 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
8128
8129 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
8130 when reg->group is empty and reggroup is not.
8131
1009d92f
TT
81322020-03-03 Tom Tromey <tromey@adacore.com>
8133
8134 * dwarf2/frame.c (struct dwarf2_frame_cache)
8135 <checked_tailcall_bottom, entry_cfa_sp_offset,
8136 entry_cfa_sp_offset_p>: Remove members.
8137 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
8138 (dwarf2_frame_prev_register): Don't call
8139 dwarf2_tailcall_sniffer_first.
8140 (dwarf2_append_unwinders): Don't append tailcall unwinder.
8141 * frame-unwind.c (add_unwinder): New fuction.
8142 (frame_unwind_init): Use it. Add tailcall unwinder.
8143
5e5d66b6
AB
81442020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
8145 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8146
8147 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
8148 value should be printed as true.
8149
584cf46d
HD
81502020-03-03 Hannes Domani <ssbssa@yahoo.de>
8151
8152 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
8153 (windows_init_abi): Set and use windows_so_ops.
8154
7b973adc
SDJ
81552020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
8156
8157 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
8158 when verifying if dealing with a convenience variable.
8159
bb7b70ab
LM
81602020-03-03 Luis Machado <luis.machado@linaro.org>
8161
8162 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
8163
9822cb57
SM
81642020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
8165
8166 * infrun.c (gdbarch_supports_displaced_stepping): New.
8167 (use_displaced_stepping): Break up conditions in smaller pieces.
8168 Use gdbarch_supports_displaced_stepping.
8169 (displaced_step_prepare_throw): Use
8170 gdbarch_supports_displaced_stepping.
8171
63e163f2
AB
81722020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8173
8174 * NEWS: Mention new behaviour of the history filename.
8175 * top.c (write_history_p): Add comment.
8176 (show_write_history_p): Add header comment, give a different
8177 message when history writing is on, but the history filename is
8178 empty.
8179 (history_filename): Add comment.
8180 (history_filename_empty): New function.
8181 (show_history_filename): Add header comment, give a different
8182 message when the filename is empty.
8183 (init_history): Compare history_filename against nullptr, and only
8184 read history if the filename is not empty.
8185 (set_history_filename): Add header comment, and only make
8186 non-empty filenames absolute.
8187 (init_main): Make the filename argument to 'set history filename'
8188 optional.
8189
81b86b97
CB
81902020-03-02 Christian Biesinger <cbiesinger@google.com>
8191
8192 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
8193 (arm_supply_vfpregset): ...this, and update to use VFP registers.
8194 (fetch_fp_register): Update.
8195 (fetch_fp_regs): Update.
8196 (store_fp_register): Update.
8197 (store_fp_regs): Update.
8198 (arm_netbsd_nat_target::read_description): New function.
8199 (fetch_elfcore_registers): Update.
8200
24ed6739
AB
82012020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8202
8203 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
8204 general_thread if the stop reply is missing a thread-id.
8205 (remote_target::process_stop_reply): Use the first non-exited
8206 thread if the target didn't pass a thread-id.
8207 * infrun.c (do_target_wait): Move call to
8208 switch_to_inferior_no_thread to ....
8209 (do_target_wait_1): ... here.
8210
a84bb2a0
JT
82112020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
8212
8213 * debuginfod-support.c: Include defs.h first.
8214
658dadf0
TV
82152020-02-28 Tom de Vries <tdevries@suse.de>
8216
8217 * symfile.c (set_initial_language): Use default language for lookup.
8218
4ebe4877
SM
82192020-02-28 Simon Marchi <simon.marchi@efficios.com>
8220
8221 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
8222 reader variable, pass `this` to read_cutu_die_from_dwo.
8223
e5da1139
AM
82242020-02-27 Aaron Merey <amerey@redhat.com>
8225
8226 * source.c (open_source_file): Check for nullptr when computing
8227 srcpath.
8228
317f7127
TT
82292020-02-27 Tom Tromey <tromey@adacore.com>
8230
8231 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
8232 member.
8233 (dwarf2_add_field): Don't update nfields.
8234 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
8235
3104d9ee
AB
82362020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8237
8238 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
8239 abs.
8240
b83470bf
TT
82412020-02-26 Tom Tromey <tom@tromey.com>
8242
8243 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
8244 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
8245 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
8246 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
8247 per_cu_data.
8248
edfe0a0c
TT
82492020-02-26 Tom Tromey <tom@tromey.com>
8250
8251 * dwarf2/index-write.c (psym_index_map): Change type.
8252 (add_address_entry_worker, write_one_signatured_type)
8253 (recursively_count_psymbols, recursively_write_psymbols)
8254 (class debug_names, psyms_seen_size, write_gdbindex)
8255 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
8256
0d79cdc4
AM
82572020-02-26 Aaron Merey <amerey@redhat.com>
8258
8259 * Makefile.in: Handle optional debuginfod support.
8260 * NEWS: Update.
8261 * README: Add --with-debuginfod summary.
8262 * config.in: Regenerate.
8263 * configure: Regenerate.
8264 * configure.ac: Handle optional debuginfod support.
8265 * debuginfod-support.c: debuginfod helper functions.
8266 * debuginfod-support.h: Ditto.
8267 * doc/gdb.texinfo: Add --with-debuginfod to configure options
8268 summary.
8269 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
8270 when a dwz file cannot be found.
8271 * elfread.c (elf_symfile_read): Query debuginfod servers when a
8272 debuginfo file cannot be found.
8273 * source.c (open_source_file): Query debuginfod servers when a
8274 source file cannot be found.
8275 * top.c (print_gdb_configuration): Include
8276 --{with,without}-debuginfod in the output.
8277
b65ce565
JG
82782020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
8279
8280 * thread.c (thr_try_catch_cmd): Print thread name.
8281
d4c9a4f8
SM
82822020-02-26 Simon Marchi <simon.marchi@efficios.com>
8283
8284 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
8285 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8286 dwarf2_fetch_die_type_sect_off): Move to...
8287 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
8288 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8289 dwarf2_fetch_die_type_sect_off): ... here.
8290 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
8291 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8292 dwarf2_fetch_die_type_sect_off): Move doc to header file.
8293
0dce4280
TV
82942020-02-26 Tom de Vries <tdevries@suse.de>
8295
8296 PR gdb/25603
8297 * symfile.c (set_initial_language): Exit-early if
8298 language_mode == language_mode_manual.
8299
450a1bfc
SM
83002020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8301
8302 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
8303 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
8304 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
8305
9e80cfa1
AB
83062020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
8307
8308 * gdbtypes.c (create_array_type_with_stride): Handle negative
8309 array strides.
8310 * valarith.c (value_subscripted_rvalue): Likewise.
8311
09624f1f
LM
83122020-02-25 Luis Machado <luis.machado@linaro.org>
8313
8314 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
8315
8cb5117c
SM
83162020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8317
8318 * loc.h (dwarf2_get_die_type): Move to...
8319 * read.h (dwarf2_get_die_type): ... here.
8320 * read.c (dwarf2_get_die_type): Move doc to header.
8321
c325c44e
JB
83222020-02-25 Joel Brobecker <brobecker@adacore.com>
8323
8324 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
8325 'gnulib/Makefile.in' to the list.
8326
4ac93832
TT
83272020-02-24 Tom Tromey <tom@tromey.com>
8328
8329 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
8330 Remove.
8331 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
8332 XOBNEWVEC.
8333
197400e8
TT
83342020-02-24 Tom Tromey <tom@tromey.com>
8335
8336 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
8337 New method.
8338 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
8339 (dw2_do_instantiate_symtab, dw2_get_file_names)
8340 (build_type_psymtab_dependencies, load_full_type_unit): Update.
8341
76935768
TT
83422020-02-24 Tom Tromey <tom@tromey.com>
8343
8344 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
8345 make_scoped_restore.
8346 (dwarf2_psymtab::read_symtab): Don't clear
8347 reading_partial_symbols.
8348
a88ef40d
TV
83492020-02-24 Tom de Vries <tdevries@suse.de>
8350
8351 PR gdb/25592
8352 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
8353
c9af6521
TV
83542020-02-24 Tom de Vries <tdevries@suse.de>
8355
8356 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
8357 commands layout next/prev/regs.
8358
5707a07a
TT
83592020-02-22 Tom Tromey <tom@tromey.com>
8360
8361 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
8362 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
8363
3b0fb49e
TT
83642020-02-22 Tom Tromey <tom@tromey.com>
8365
8366 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
8367
283be8bf
TT
83682020-02-22 Tom Tromey <tom@tromey.com>
8369
8370 * tui/tui-win.c (_initialize_tui_win): Add usage text.
8371 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
8372 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
8373 * tui/tui.c (_initialize_tui): Add usage text.
8374
ca793b96
TT
83752020-02-22 Tom Tromey <tom@tromey.com>
8376
8377 * tui/tui-win.c (tui_set_focus_command)
8378 (tui_set_win_height_command): Use error_no_arg.
8379 (_initialize_tui_win): Update help text.
8380 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
8381
432b5c40
TT
83822020-02-22 Tom Tromey <tom@tromey.com>
8383
8384 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
8385 * tui/tui-disasm.h (struct tui_disasm_window)
8386 <display_start_addr>: Declare.
8387 * tui/tui-source.h (struct tui_source_window)
8388 <display_start_addr>: Declare.
8389 * tui/tui-winsource.h (struct tui_source_window_base)
8390 <show_source_line, display_start_addr>: New methods.
8391 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
8392 Rename and move to protected section.
8393 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
8394 (tui_source_window_base::do_erase_source_content): Update.
8395 (tui_source_window_base::show_source_line): Now a method.
8396 (tui_source_window_base::show_source_content)
8397 (tui_source_window_base::tui_source_window_base)
8398 (tui_source_window_base::rerender)
8399 (tui_source_window_base::refill)
8400 (tui_source_window_base::do_scroll_horizontal)
8401 (tui_source_window_base::set_is_exec_point_at)
8402 (tui_source_window_base::update_breakpoint_info)
8403 (tui_source_window_base::update_exec_info): Update.
8404 * tui/tui-source.c (tui_source_window::set_contents)
8405 (tui_source_window::showing_source_p)
8406 (tui_source_window::do_scroll_vertical)
8407 (tui_source_window::location_matches_p)
8408 (tui_source_window::line_is_displayed): Update.
8409 (tui_source_window::display_start_addr): New method.
8410 * tui/tui-disasm.c (tui_disasm_window::set_contents)
8411 (tui_disasm_window::do_scroll_vertical)
8412 (tui_disasm_window::location_matches_p): Update.
8413 (tui_disasm_window::display_start_addr): New method.
8414
01b1af32
TT
84152020-02-22 Tom Tromey <tom@tromey.com>
8416
8417 * NEWS: Add entry for gdb.register_window_type.
8418 * tui/tui-layout.h (window_factory): New typedef.
8419 (tui_register_window): Declare.
8420 * tui/tui-layout.c (saved_tui_windows): New global.
8421 (tui_apply_current_layout): Use it.
8422 (tui_register_window): New function.
8423 * python/python.c (do_start_initialization): Call
8424 gdbpy_initialize_tui.
8425 (python_GdbMethods): Add "register_window_type" function.
8426 * python/python-internal.h (gdbpy_register_tui_window)
8427 (gdbpy_initialize_tui): Declare.
8428 * python/py-tui.c: New file.
8429 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
8430
fc96d20b
TT
84312020-02-22 Tom Tromey <tom@tromey.com>
8432
8433 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
8434
935c78c0
TT
84352020-02-22 Tom Tromey <tom@tromey.com>
8436
8437 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
8438 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
8439 * tui/tui-data.c (tui_set_win_with_focus): Remove.
8440 (tui_set_win_focus_to): Move from tui-win.c.
8441
0240c8f1
TT
84422020-02-22 Tom Tromey <tom@tromey.com>
8443
8444 * tui/tui-layout.c (make_standard_window, get_locator_window): New
8445 functions.
8446 (known_window_types): New global.
8447 (tui_get_window_by_name): Reimplement.
8448 (initialize_known_windows): New function.
8449 (validate_window_name): Rewrite.
8450 (_initialize_tui_layout): Call initialize_known_windows.
8451
fdb01f0c
TT
84522020-02-22 Tom Tromey <tom@tromey.com>
8453
8454 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
8455 Remove constants.
8456 * tui/tui-winsource.h (struct tui_source_window_base)
8457 <tui_source_window_base>: Remove parameter.
8458 * tui/tui-winsource.c
8459 (tui_source_window_base::tui_source_window_base): Remove
8460 parameter.
8461 (tui_source_window_base::refill): Update.
8462 * tui/tui-stack.h (struct tui_locator_window)
8463 <tui_locator_window>: Update.
8464 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
8465 Default the constructor.
8466 * tui/tui-regs.h (struct tui_data_item_window)
8467 <tui_data_item_window>: Default the constructor.
8468 (struct tui_data_window) <tui_data_window>: Likewise.
8469 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
8470 Default the constructor.
8471 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
8472 Default the constructor.
8473 <type>: Remove.
8474 (struct tui_win_info) <tui_win_info>: Default the constructor.
8475 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
8476 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
8477 Default the constructor.
8478
865a5aec
TT
84792020-02-22 Tom Tromey <tom@tromey.com>
8480
8481 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
8482 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
8483 * tui/tui-win.c (tui_resize_all): Don't call
8484 tui_delete_invisible_windows.
8485 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
8486 done.
8487 (tui_set_layout): Update.
8488 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
8489 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
8490 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
8491
e098d18c
TT
84922020-02-22 Tom Tromey <tom@tromey.com>
8493
8494 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
8495 correctly.
8496
eb9c8874
TT
84972020-02-22 Tom Tromey <tom@tromey.com>
8498
8499 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
8500
7eed1a8e
TT
85012020-02-22 Tom Tromey <tom@tromey.com>
8502
8503 * tui/tui-winsource.h (struct tui_source_window_iterator)
8504 <inner_iterator>: New etytypedef.
8505 <tui_source_window_iterator>: Take "end" parameter.
8506 <tui_source_window_iterator>: Take iterator.
8507 <operator*, advance>: Update.
8508 <m_iter>: Change type.
8509 <m_end>: New field.
8510 (struct tui_source_windows) <begin, end>: Update.
8511 * tui/tui-layout.c (tui_windows): New global.
8512 (tui_apply_current_layout): Clear tui_windows.
8513 (tui_layout_window::apply): Update tui_windows.
8514 * tui/tui-data.h (tui_windows): Declare.
8515 (all_tui_windows): Now inline function.
8516 (class tui_window_iterator, struct all_tui_windows): Remove.
8517
7c043ba6
TT
85182020-02-22 Tom Tromey <tom@tromey.com>
8519
8520 PR tui/17850:
8521 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
8522 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
8523 "height" argument.
8524 (class tui_layout_window) <get_sizes>: Likewise.
8525 (class tui_layout_split) <tui_layout_split>: Add "vertical"
8526 argument.
8527 <get_sizes>: Add "height" argument.
8528 <m_vertical>: New field.
8529 * tui/tui-layout.c (tui_layout_split::clone): Update.
8530 (tui_layout_split::get_sizes): Add "height" argument.
8531 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
8532 (tui_new_layout_command): Parse "-horizontal".
8533 (_initialize_tui_layout): Update help string.
8534 (tui_layout_split::specification): Add "-horizontal" when needed.
8535 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
8536 argument.
8537 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
8538 New methods.
8539
6bc56648
TT
85402020-02-22 Tom Tromey <tom@tromey.com>
8541
8542 * tui/tui-layout.h (enum tui_adjust_result): New.
8543 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
8544 (class tui_layout_window) <adjust_size>: Return
8545 tui_adjust_result. Rewrite.
8546 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
8547 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
8548
c22fef7e
TT
85492020-02-22 Tom Tromey <tom@tromey.com>
8550
8551 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
8552 parameter and return types.
8553 (class tui_layout_base) <specification>: Add "depth".
8554 (class tui_layout_window) <specification>: Add "depth".
8555 (class tui_layout_split) <specification>: Add "depth".
8556 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
8557 and return types.
8558 (tui_new_layout_command): Parse sub-layouts.
8559 (_initialize_tui_layout): Update help string.
8560 (tui_layout_window::specification): Add "depth".
8561 (add_layout_command): Update.
8562
ee325b61
TT
85632020-02-22 Tom Tromey <tom@tromey.com>
8564
8565 * NEWS: Add "tui new-layout" item.
8566 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
8567 Add new-layout command to help text.
8568 (validate_window_name): New function.
8569 (tui_new_layout_command): New function.
8570 (_initialize_tui_layout): Register "new-layout".
8571 (tui_layout_window::specification): New method.
8572 (tui_layout_window::specification): New method.
8573 * tui/tui-layout.h (class tui_layout_base) <specification>: New
8574 method.
8575 (class tui_layout_window) <specification>: New method.
8576 (class tui_layout_split) <specification>: New method.
8577
416eb92d
TT
85782020-02-22 Tom Tromey <tom@tromey.com>
8579
8580 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
8581 * tui/tui-win.c (window_name_completer): Update comment.
8582 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
8583 Declare method.
8584 (class tui_layout_window) <replace_window>: Likewise.
8585 (class tui_layout_split) <replace_window>: Likewise.
8586 (tui_set_layout): Don't declare.
8587 (tui_set_initial_layout): Declare function.
8588 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
8589 (asm_regs_layout): New globals.
8590 (tui_current_layout, show_layout): Remove.
8591 (tui_set_layout, tui_add_win_to_layout): Rewrite.
8592 (find_layout, tui_apply_layout): New function.
8593 (layout_completer): Remove.
8594 (tui_next_layout): Reimplement.
8595 (tui_next_layout_command): New function.
8596 (tui_set_initial_layout, tui_prev_layout_command): New functions.
8597 (tui_regs_layout): Reimplement.
8598 (tui_regs_layout_command): New function.
8599 (extract_display_start_addr): Rewrite.
8600 (next_layout, prev_layout): Remove.
8601 (tui_layout_window::replace_window): New method.
8602 (tui_layout_split::replace_window): New method.
8603 (destroy_layout): New function.
8604 (layout_list): New global.
8605 (add_layout_command): New function.
8606 (initialize_layouts): Update.
8607 (tui_layout_command): New function.
8608 (_initialize_tui_layout): Install "layout" commands.
8609 * tui/tui-data.h (enum tui_layout_type): Remove.
8610 (tui_current_layout): Don't declare.
8611
0dbc2fc7
TT
86122020-02-22 Tom Tromey <tom@tromey.com>
8613
8614 * tui/tui-regs.c (tui_reg_layout): Remove.
8615 (tui_reg_command): Use tui_regs_layout.
8616 * tui/tui-layout.h (tui_reg_command): Declare.
8617 * tui/tui-layout.c (tui_reg_command): New function.
8618
5afe342e
TT
86192020-02-22 Tom Tromey <tom@tromey.com>
8620
8621 * tui/tui.c (tui_rl_delete_other_windows): Call
8622 tui_remove_some_windows.
8623 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
8624 Declare method.
8625 (class tui_layout_window) <remove_windows>: New method.
8626 (class tui_layout_split) <remove_windows>: Declare.
8627 (tui_remove_some_windows): Declare.
8628 * tui/tui-layout.c (tui_remove_some_windows): New function.
8629 (tui_layout_split::remove_windows): New method.
8630
427326a8
TT
86312020-02-22 Tom Tromey <tom@tromey.com>
8632
8633 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
8634 * tui/tui-layout.h (tui_next_layout): Declare.
8635 * tui/tui-layout.c (tui_next_layout): New function.
8636
3fe12b6d
TT
86372020-02-22 Tom Tromey <tom@tromey.com>
8638
8639 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
8640 correct coordinates.
8641
59b8b5d2
TT
86422020-02-22 Tom Tromey <tom@tromey.com>
8643
8644 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
8645 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
8646 DATA_WIN case.
8647
2a3d458b
TT
86482020-02-22 Tom Tromey <tom@tromey.com>
8649
8650 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
8651 TUI_DISASM_WIN, not tui_win_list.
8652
3f0cbb04
TT
86532020-02-22 Tom Tromey <tom@tromey.com>
8654
8655 * valprint.c (generic_val_print_enum_1)
8656 (val_print_type_code_flags): Style member names.
8657 * rust-lang.c (val_print_struct, rust_print_enum)
8658 (rust_print_struct_def, rust_internal_print_type): Style member
8659 names.
8660 * p-valprint.c (pascal_object_print_value_fields): Style member
8661 names. Only call fprintf_symbol_filtered for static members.
8662 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
8663 * f-valprint.c (f_val_print): Style member names.
8664 * f-typeprint.c (f_type_print_base): Style member names.
8665 * cp-valprint.c (cp_print_value_fields): Style member names. Only
8666 call fprintf_symbol_filtered for static members.
8667 (cp_print_class_member): Style member names.
8668 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
8669 member names.
8670 * ada-valprint.c (ada_print_scalar): Style enum names.
8671 (ada_val_print_enum): Likewise.
8672 * ada-typeprint.c (print_enum_type): Style enum names.
8673
d4d947ae
TT
86742020-02-21 Tom Tromey <tom@tromey.com>
8675
8676 * psympriv.h (struct partial_symtab): Update comment.
8677
e94e944b
TT
86782020-02-21 Tom Tromey <tromey@adacore.com>
8679
8680 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
8681 type is CORE_ADDR.
8682
1eb73179
TV
86832020-02-21 Tom de Vries <tdevries@suse.de>
8684
8685 PR gdb/25534
8686 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
8687 if dependencies[i]->user != NULL.
8688
4f180d53
AT
86892020-02-21 Ali Tamur <tamur@google.com>
8690
8691 * dwarf2/read.c (dwarf2_name): Add null check.
8692
22b6cd70
TT
86932020-02-20 Tom Tromey <tom@tromey.com>
8694
8695 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
8696 ">=", in binary search.
8697 (dwarf2_find_containing_comp_unit): New overload.
8698 (run_test): New self-test.
8699 (_initialize_dwarf2_read): Register new test.
8700
bd0cf5a6
NC
87012020-02-20 Nelson Chu <nelson.chu@sifive.com>
8702
8703 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
8704 * riscv-tdep.h: Likewise.
8705 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
8706 rv32-only CSR.
8707 * features/riscv/64bit-csr.xml: Regenerated.
8708
3f702acd
SDJ
87092020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
8710 Tom Tromey <tom@tromey.com>
8711
8712 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
8713 of 'fputc_unfiltered'.
8714 (putchar_unfiltered): Call 'fputc_unfiltered'.
8715 (fputc_unfiltered): Call 'fputs_unfiltered'.
8716
d13c7322
AB
87172020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
8718
8719 * config.in: Regenerate.
8720 * configure: Regenerate.
8721 * configure.ac: Add --with-python-libdir option.
8722 * main.c: Use WITH_PYTHON_LIBDIR.
8723
869d8950
TT
87242020-02-19 Tom Tromey <tom@tromey.com>
8725
8726 * symtab.c (general_symbol_info::compute_and_set_names): Use
8727 obstack_strndup. Simplify call to symbol_set_demangled_name.
8728
298e9637
SM
87292020-02-19 Simon Marchi <simon.marchi@efficios.com>
8730
8731 * dwarf2/read.c (allocate_signatured_type_table,
8732 allocate_dwo_unit_table, allocate_type_unit_groups_table,
8733 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
8734 Remove objfile parameter, update all callers.
8735
08410482
DE
87362020-02-19 Doug Evans <dje@google.com>
8737
8738 PR rust/25535
8739 * rust-lang.c (rust_print_enum): Apply embedded_offset to
8740 rust_enum_variant calculation.
8741
dfdeeca1
TT
87422020-02-19 Tom Tromey <tromey@adacore.com>
8743
8744 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
8745
2ef5453b
TT
87462020-02-19 Tom Tromey <tromey@adacore.com>
8747
8748 * ada-lang.c (cache_symbol): Use obstack_strdup.
8749
9f1528a1
AB
87502020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
8751
8752 * configure: Regenerate.
8753
d3c22fa8
TT
87542020-02-19 Tom Tromey <tromey@adacore.com>
8755
8756 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
8757 NULL check.
8758
bf84f706
MR
87592020-02-19 Maciej W. Rozycki <macro@wdc.com>
8760
8761 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
8762
d1c9b20f
AB
87632020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
8764
8765 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
8766 if GDBSERVER is not defined.
8767 (riscv_tdesc_cache): Likewise, also store const target_desc.
8768 (STATIC_IN_GDB): Define.
8769 (riscv_create_target_description): Update declaration with
8770 STATIC_IN_GDB.
8771 (riscv_lookup_target_description): New function, only define if
8772 GDBSERVER is not defined.
8773 * arch/riscv.h (riscv_create_target_description): Declare only
8774 when GDBSERVER is defined.
8775 (riscv_lookup_target_description): New declaration when GDBSERVER
8776 is not defined.
8777 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
8778 (riscv_linux_read_features): ...this, and return
8779 riscv_gdbarch_features instead of target_desc.
8780 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
8781 (riscv_linux_read_description): Rename to...
8782 (riscv_linux_read_features): ...this.
8783 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
8784 Update to use riscv_gdbarch_features and
8785 riscv_lookup_target_description.
8786 * riscv-tdep.c (riscv_find_default_target_description): Use
8787 riscv_lookup_target_description instead of
8788 riscv_create_target_description.
8789
373d7ac0
SM
87902020-02-18 Simon Marchi <simon.marchi@efficios.com>
8791
8792 * valprint.c (generic_val_print_enum_1): When printing a flag
8793 enum with value 0 and there is no enumerator with value 0, print
8794 just "0" instead of "(unknown: 0x0)".
8795
b29a2df0
SM
87962020-02-18 Simon Marchi <simon.marchi@efficios.com>
8797
8798 * valprint.c (generic_val_print_enum_1): Print unknown part of
8799 flag enum in hex.
8800
6740f0cc
SM
88012020-02-18 Simon Marchi <simon.marchi@efficios.com>
8802
8803 * dwarf2/read.c (update_enumeration_type_from_children): Allow
8804 flag enums to contain duplicate enumerators.
8805 * valprint.c (generic_val_print_enum_1): Update comment.
8806
edd45eb0
SM
88072020-02-18 Simon Marchi <simon.marchi@efficios.com>
8808
8809 * dwarf2/read.c: Include "count-one-bits.h".
8810 (update_enumeration_type_from_children): If an enumerator has
8811 multiple bits set, don't treat the enumeration as a "flag enum".
8812 * valprint.c (generic_val_print_enum_1): Assert that enumerators
8813 of flag enums have 0 or 1 bit set.
8814
6d0cf446
BE
88152020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
8816
8817 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
8818 conversion.
8819 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8820 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
8821 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8822 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
8823 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8824
7001c1b7
SM
88252020-02-18 Simon Marchi <simon.marchi@efficios.com>
8826
8827 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
8828
fdb61c6c
SM
88292020-02-14 Simon Marchi <simon.marchi@efficios.com>
8830
8831 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
8832 displaced_step_closure_up.
8833 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
8834 (struct displaced_step_closure_up):
8835 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8836 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
8837 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
8838 Likewise.
8839 * gdbarch.sh (displaced_step_copy_insn): Likewise.
8840 * gdbarch.c, gdbarch.h: Re-generate.
8841 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
8842 displaced_step_closure_up.
8843 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8844 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
8845 * infrun.h (displaced_step_closure_up): New type alias.
8846 (struct displaced_step_inferior_state) <step_closure>: Change
8847 type to displaced_step_closure_up.
8848 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
8849 displaced_step_closure_up.
8850 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8851
a4a38eb4
TT
88522020-02-14 Tom Tromey <tom@tromey.com>
8853
8854 * minidebug.c (gnu_debug_key): New global.
8855 (find_separate_debug_file_in_section): Use it.
8856
e8217e61
SM
88572020-02-14 Simon Marchi <simon.marchi@efficios.com>
8858
8859 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
8860 std::unique_ptr.
8861 * gdbarch.c: Re-generate.
8862 * gdbarch.h: Re-generate.
8863 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
8864 change.
8865 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
8866 type to std::unique_ptr.
8867 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
8868 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8869 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
8870 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
8871 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
8872 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8873 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
8874 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
8875 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8876
d8d83535
SM
88772020-02-14 Simon Marchi <simon.marchi@efficios.com>
8878
8879 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
8880 std::unique_ptr.
8881 (displaced_step_clear): Rename to...
8882 (displaced_step_reset): ... this. Just call displaced->reset ().
8883 (displaced_step_clear_cleanup): Rename to...
8884 (displaced_step_reset_cleanup): ... this.
8885 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
8886 (displaced_step_fixup): Likewise.
8887 (resume_1): Likewise.
8888 (handle_inferior_event): Restore child's memory before calling
8889 displaced_step_fixup on the parent.
8890 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
8891 to std::unique_ptr.
8892 <step_closure>: Change type to std::unique_ptr.
8893
5f661e03
SM
88942020-02-14 Simon Marchi <simon.marchi@efficios.com>
8895
8896 * arm-tdep.c: Include count-one-bits.h.
8897 (cleanup_block_store_pc): Use count_one_bits.
8898 (cleanup_block_load_pc): Use count_one_bits.
8899 (arm_copy_block_xfer): Use count_one_bits.
8900 (thumb2_copy_block_xfer): Use count_one_bits.
8901 (thumb_copy_pop_pc_16bit): Use count_one_bits.
8902 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
8903 (thumb_get_next_pcs_raw): Use count_one_bits.
8904 (arm_get_next_pcs_raw): Use count_one_bits_l.
8905 * arch/arm.c (bitcount): Remove.
8906 * arch/arm.h (bitcount): Remove.
8907
8084e579
TT
89082020-02-14 Tom Tromey <tromey@adacore.com>
8909
8910 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
8911 Update.
8912 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
8913 * dwarf2/loc.c (call_site_find_chain_1): Return
8914 unique_xmalloc_ptr.
8915 (call_site_find_chain): Likewise.
8916
258bf0ee
RB
89172020-02-14 Richard Biener <rguenther@suse.de>
8918
8919 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
8920 on expression with division operators.
8921
f98a8458
AKS
89222020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8923
8924 * MAINTAINERS (Write After Approval): Adding myself.
8925
d1437c0e
TT
89262020-02-12 Tom Tromey <tom@tromey.com>
8927
8928 * event-loop.c (event_data, gdb_event, event_handler_func):
8929 Remove.
8930
3d4560f7
TT
89312020-02-12 Tom Tromey <tom@tromey.com>
8932
8933 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
8934 (dwarf2_frame_objfile_data): Add comment.
8935 (find_comp_unit, set_comp_unit): New functions.
8936 (dwarf2_frame_find_fde): Use find_comp_unit.
8937 (dwarf2_build_frame_info): Use set_comp_unit.
8938
21982304
TT
89392020-02-12 Tom Tromey <tom@tromey.com>
8940
8941 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
8942 (comp_unit): Don't initialize objfile.
8943 (execute_cfa_program): Add text_offset parameter.
8944 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
8945 (dwarf2_frame_cache): Update.
8946 (dwarf2_build_frame_info): Don't set "objfile" member.
8947
4debb237
TT
89482020-02-12 Tom Tromey <tom@tromey.com>
8949
8950 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
8951 (decode_frame_entry): Likewise.
8952 (dwarf2_build_frame_info): Update.
8953
0d404d44
TT
89542020-02-12 Tom Tromey <tom@tromey.com>
8955
8956 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
8957 (decode_frame_entry_1): Use the comp_unit obstack.
8958
a7a3ae5c
TT
89592020-02-12 Tom Tromey <tom@tromey.com>
8960
8961 * dwarf2/frame.c (struct comp_unit): Add initializers and
8962 constructor.
8963 (dwarf2_frame_objfile_data): Store a comp_unit.
8964 (dwarf2_frame_find_fde): Update.
8965 (dwarf2_build_frame_info): Use "new".
8966
a9d65418
TT
89672020-02-12 Tom Tromey <tom@tromey.com>
8968
8969 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
8970 (dwarf2_fde_table): Typedef for std::vector.
8971 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
8972 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
8973 (decode_frame_entry): Update.
8974 (dwarf2_build_frame_info): Use "new".
8975
7559c217
CB
89762020-02-12 Christian Biesinger <cbiesinger@google.com>
8977
8978 * arm-tdep.c (arm_gdbarch_init): Update.
8979 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
8980 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
8981 have_neon, is_m>: Change to bool.
8982
aeefc73c
CB
89832020-02-12 Christian Biesinger <cbiesinger@google.com>
8984
8985 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
8986
d27b8e5f
TT
89872020-02-12 Tom Tromey <tom@tromey.com>
8988
8989 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
8990
cd5900f3
HD
89912020-02-12 Hannes Domani <ssbssa@yahoo.de>
8992
8993 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
8994 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
8995
f056b22b
TT
89962020-02-11 Tom Tromey <tom@tromey.com>
8997
8998 * psymtab.h: Update comment.
8999
f92ff6b5
TT
90002020-02-11 Tom Tromey <tom@tromey.com>
9001
9002 * gdb_obstack.h (struct auto_obstack): Use
9003 DISABLE_COPY_AND_ASSIGN.
9004
3fd6912b
TT
90052020-02-11 Tom Tromey <tom@tromey.com>
9006
9007 * dwarf2/frame.h (struct objfile): Don't forward declare.
9008
69ed9b74
CB
90092020-02-11 Christian Biesinger <cbiesinger@google.com>
9010
9011 * cris-tdep.c (cris_supply_gregset): Change signature to match
9012 what struct regset expects.
9013 (cris_regset): New struct.
9014 (fetch_core_registers): Remove.
9015 (cris_iterate_over_regset_sections): New function.
9016 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
9017 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
9018
bda874f6
CB
90192020-02-11 Christian Biesinger <cbiesinger@google.com>
9020
9021 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
9022 registers.
9023
754e1564
CB
90242020-02-11 Christian Biesinger <cbiesinger@google.com>
9025
9026 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
9027
8ddd8e0e
SM
90282020-02-11 Simon Marchi <simon.marchi@efficios.com>
9029
9030 * configure: Re-generate.
9031
898e7f60
SM
90322020-02-11 Simon Marchi <simon.marchi@efficios.com>
9033
9034 * configure: Re-generate.
9035
58df732b
SM
90362020-02-11 Simon Marchi <simon.marchi@efficios.com>
9037
9038 * acinclude: Update warning.m4 path.
9039 * warning.m4: Move to gdbsupport.
9040
da5bd37e
TT
90412020-02-11 Tom Tromey <tromey@adacore.com>
9042
9043 * remote.c (remote_console_output): Update.
9044 * printcmd.c (printf_command): Update.
9045 * event-loop.c (gdb_wait_for_event): Update.
9046 * linux-nat.c (sigchld_handler): Update.
9047 * remote-sim.c (gdb_os_write_stdout): Update.
9048 (gdb_os_flush_stdout): Update.
9049 (gdb_os_flush_stderr): Update.
9050 (gdb_os_write_stderr): Update.
9051 * exceptions.c (print_exception): Update.
9052 * remote-fileio.c (remote_fileio_func_read): Update.
9053 (remote_fileio_func_write): Update.
9054 * tui/tui.c (tui_enable): Update.
9055 * tui/tui-interp.c (tui_interp::init): Update.
9056 * utils.c (init_page_info): Update.
9057 (putchar_unfiltered, fputc_unfiltered): Update.
9058 (gdb_flush): Update.
9059 (emit_style_escape): Update.
9060 (flush_wrap_buffer, fputs_maybe_filtered): Update.
9061 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
9062 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
9063 (stderr_file::write): Update.
9064 (stderr_file::puts): Update.
9065 * ui-file.h (ui_file_isatty, ui_file_write)
9066 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
9067 (ui_file_puts): Don't declare.
9068
85f0dd3c
TV
90692020-02-10 Tom de Vries <tdevries@suse.de>
9070
9071 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
9072 sentinel to char *.
9073
2e927613
TV
90742020-02-09 Tom de Vries <tdevries@suse.de>
9075
9076 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
9077 filename if it matches "<artificial>".
9078
6bafc845
HD
90792020-02-09 Hannes Domani <ssbssa@yahoo.de>
9080
9081 * windows-tdep.c (struct enum_value_name): New struct.
9082 (create_enum): New function.
9083 (windows_get_siginfo_type): Create and use enum types.
9084
7928d571
HD
90852020-02-09 Hannes Domani <ssbssa@yahoo.de>
9086
9087 * NEWS: Mention $_siginfo support for Windows.
9088 * windows-nat.c (handle_exception): Set siginfo_er.
9089 (windows_nat_target::mourn_inferior): Reset siginfo_er.
9090 (windows_xfer_siginfo): New function.
9091 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
9092 * windows-tdep.c (struct windows_gdbarch_data): New struct.
9093 (init_windows_gdbarch_data): New function.
9094 (get_windows_gdbarch_data): New function.
9095 (windows_get_siginfo_type): New function.
9096 (windows_init_abi): Register windows_get_siginfo_type.
9097 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
9098
6751ebae
TT
90992020-02-08 Tom Tromey <tom@tromey.com>
9100
9101 * dwarf2/read.c (class cutu_reader) <cutu_reader,
9102 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
9103 <keep>: Declare method.
9104 <m_keep>: Remove member.
9105 <~cutu_reader>: Remove.
9106 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9107 (cutu_reader::cutu_reader): Update.
9108 (cutu_reader::keep): Rename from ~cutu_reader.
9109 (process_psymtab_comp_unit, build_type_psymtabs_1)
9110 (process_skeletonless_type_unit, load_partial_comp_unit)
9111 (load_full_comp_unit, dwarf2_read_addr_index)
9112 (read_signatured_type): Update.
9113
135f5437
TT
91142020-02-08 Tom Tromey <tom@tromey.com>
9115
9116 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
9117 "want_partial_unit" parameter.
9118 (process_psymtab_comp_unit): Change want_partial_unit to bool.
9119 Inline check for DW_TAG_partial_unit.
9120 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
9121
9f66ff1c
TT
91222020-02-08 Tom Tromey <tom@tromey.com>
9123
9124 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
9125 read.c.
9126 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
9127 read.c.
9128
c8a7a66f
TT
91292020-02-08 Tom Tromey <tom@tromey.com>
9130
9131 * dwarf2/read.c (read_address): Move to comp-unit.c.
9132 (dwarf2_rnglists_process, dwarf2_ranges_process)
9133 (read_attribute_value, dwarf_decode_lines_1)
9134 (var_decode_location, decode_locdesc): Update.
9135 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
9136 read.c. Remove "cu" parameter.
9137 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
9138 method.
9139
8266302d
TT
91402020-02-08 Tom Tromey <tom@tromey.com>
9141
9142 * dwarf2/read.c (read_attribute_value, read_indirect_string)
9143 (read_indirect_line_string): Update.
9144 * dwarf2/comp-unit.c (read_offset): Remove.
9145 (read_comp_unit_head): Update.
9146 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
9147 method.
9148 (read_offset): Don't declare.
9149
4057dfde
TT
91502020-02-08 Tom Tromey <tom@tromey.com>
9151
9152 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
9153 * dwarf2/read.c (struct comp_unit_head): Move to
9154 dwarf2/comp-unit.h.
9155 (enum class rcuh_kind): Move to comp-unit.h.
9156 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
9157 (read_comp_unit_head, error_check_comp_unit_head)
9158 (read_and_check_comp_unit_head): Move to comp-unit.c.
9159 (read_offset, dwarf_unit_type_name): Likewise.
9160 (create_debug_type_hash_table, read_cutu_die_from_dwo)
9161 (cutu_reader::cutu_reader, read_call_site_scope)
9162 (find_partial_die, follow_die_offset): Update.
9163 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
9164
24aa364d
TT
91652020-02-08 Tom Tromey <tom@tromey.com>
9166
9167 * dwarf2/read.c (read_offset_1): Move to leb.c.
9168 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
9169 (dwarf_decode_macro_bytes): Update.
9170 * dwarf2/leb.c (read_offset): Rename; move from read.c.
9171 * dwarf2/leb.h (read_offset): Declare.
9172
2c7d5afc
TT
91732020-02-08 Tom Tromey <tom@tromey.com>
9174
9175 * dwarf2/read.c (dwarf2_section_size): Remove.
9176 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
9177 Update.
9178 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
9179
4075cb26
TT
91802020-02-08 Tom Tromey <tom@tromey.com>
9181
9182 * dwarf2/read.c (read_initial_length): Move to leb.c.
9183 * dwarf2/leb.h (read_initial_length): Declare.
9184 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
9185 handle_nonstd parameter.
9186 * dwarf2/frame.c (read_initial_length): Remove.
9187 (decode_frame_entry_1): Update.
9188
09ba997f
TT
91892020-02-08 Tom Tromey <tom@tromey.com>
9190
9191 * dwarf2/loc.c (dwarf2_find_location_expression)
9192 (dwarf_evaluate_loc_desc::get_tls_address)
9193 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
9194 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
9195 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
9196 (dwarf2_compile_property_to_c)
9197 (dwarf2_loc_desc_get_symbol_read_needs)
9198 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
9199 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
9200 (loclist_describe_location, loclist_tracepoint_var_ref)
9201 (loclist_generate_c_location): Update.
9202 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
9203 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
9204 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
9205 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
9206 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
9207 (dwarf2_per_cu_data::addr_size)
9208 (dwarf2_per_cu_data::ref_addr_size)
9209 (dwarf2_per_cu_data::text_offset)
9210 (dwarf2_per_cu_data::addr_type): Now methods.
9211 (per_cu_header_read_in): Make per_cu "const".
9212 (dwarf2_version): Remove.
9213 (dwarf2_per_cu_data::int_type): Now a method.
9214 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
9215 (set_die_type, read_array_type, read_subrange_index_type)
9216 (read_tag_string_type, read_subrange_type): Update.
9217 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
9218 offset_size, ref_addr_size, text_offset, addr_type, version,
9219 objfile, int_type, addr_sized_int_type>: Declare methods.
9220
96c738c0
TT
92212020-02-08 Tom Tromey <tom@tromey.com>
9222
9223 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
9224 Move earlier.
9225
8fdd972c
TT
92262020-02-08 Tom Tromey <tom@tromey.com>
9227
9228 * dwarf2/read.h (dwarf_line_debug): Declare.
9229 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
9230 * dwarf2/read.c: Move line_header code to new files.
9231 (dwarf_line_debug): No longer static.
9232 * dwarf2/line-header.c: New file.
9233 * dwarf2/line-header.h: New file.
9234
03075812
TT
92352020-02-08 Tom Tromey <tom@tromey.com>
9236
9237 * dwarf2/read.c (struct line_header) <file_full_name,
9238 file_file_name>: Return unique_xmalloc_ptr.
9239 (line_header::file_file_name): Update.
9240 (line_header::file_full_name): Update.
9241 (dw2_get_file_names_reader): Update.
9242 (macro_start_file): Update.
9243
bb822404
TT
92442020-02-08 Tom Tromey <tom@tromey.com>
9245
9246 * dwarf2/read.c (struct line_header) <file_full_name,
9247 file_file_name>: Declare methods.
9248 (dw2_get_file_names_reader): Update.
9249 (file_file_name): Now a method.
9250 (file_full_name): Likewise.
9251 (macro_start_file): Update.
9252
009b64fc
TT
92532020-02-08 Tom Tromey <tom@tromey.com>
9254
9255 * dwarf2/read.c (dwarf_always_disassemble)
9256 (show_dwarf_always_disassemble): Move to loc.c.
9257 (_initialize_dwarf2_read): Move "always-disassemble" registration
9258 to loc.c.
9259 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
9260 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
9261 static.
9262 (show_dwarf_always_disassemble): Move from read.c.
9263 (_initialize_dwarf2loc): Move always-disassemble from read.c.
9264
5895093f
TT
92652020-02-08 Tom Tromey <tom@tromey.com>
9266
9267 * dwarf2/read.c (~dwarf2_per_objfile): Update.
9268 (create_quick_file_names_table): Return htab_up.
9269 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
9270 Update.
9271 * dwarf2/read.h (struct dwarf2_per_objfile)
9272 <quick_file_names_table>: Now htab_up.
9273
b3b32279
TT
92742020-02-08 Tom Tromey <tom@tromey.com>
9275
9276 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
9277
1d33d811
TT
92782020-02-08 Tom Tromey <tom@tromey.com>
9279
9280 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
9281 Rewrite.
9282 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
9283 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
9284 (abbrev_table::abbrev_table): No longer inline.
9285 (ABBREV_HASH_SIZE): Remove.
9286 (abbrev_table::m_abbrevs): Now an htab_up.
9287
86de1d91
TT
92882020-02-08 Tom Tromey <tom@tromey.com>
9289
9290 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
9291 (cutu_reader): Update.
9292 (build_type_psymtabs_1): Update.
9293 * dwarf2/abbrev.c (abbrev_table::read): Rename.
9294 (abbrev_table::alloc_abbrev): Update.
9295 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
9296 (abbrev_table::read): New static method, renamed from
9297 abbrev_table_read_table.
9298 (abbrev_table::alloc_abbrev)
9299 (abbrev_table::add_abbrev): Now private.
9300 (abbrev_table::abbrev_table): Now private.
9301 (abbrev_table::m_abbrev_obstack): Now private. Rename.
9302
0335378b
TT
93032020-02-08 Tom Tromey <tom@tromey.com>
9304
9305 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
9306 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
9307 htab_up.
9308
48b490f2
TT
93092020-02-08 Tom Tromey <tom@tromey.com>
9310
9311 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
9312 htab_up.
9313 (lookup_dwo_unit_in_dwp): Update.
9314 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
9315 on obstack.
9316
bc68fb19
TT
93172020-02-08 Tom Tromey <tom@tromey.com>
9318
9319 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
9320 obstack.
9321
d15acc42
TT
93222020-02-08 Tom Tromey <tom@tromey.com>
9323
9324 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
9325 line_header_hash.
9326 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
9327 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
9328 Change type to htab_up.
9329
eaa5fa8b
TT
93302020-02-08 Tom Tromey <tom@tromey.com>
9331
9332 * dwarf2/read.c (allocate_type_unit_groups_table): Return
9333 htab_up. Don't allocate on obstack.
9334 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
9335 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
9336 Change type to htab_up.
9337
b0b6a987
TT
93382020-02-08 Tom Tromey <tom@tromey.com>
9339
9340 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
9341 Change type to htab_up.
9342 * dwarf2/read.c (create_signatured_type_table_from_index)
9343 (create_signatured_type_table_from_debug_names)
9344 (create_all_type_units, add_type_unit)
9345 (lookup_dwo_signatured_type, lookup_signatured_type)
9346 (process_skeletonless_type_unit): Update.
9347 (create_debug_type_hash_table, create_debug_types_hash_table):
9348 Change type of types_htab.
9349 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
9350 htab_up. Don't allocate on obstack.
9351 (create_cus_hash_table): Change type of cus_htab parameter.
9352 (struct dwo_file) <cus, tus>: Now htab_up.
9353 (lookup_dwo_signatured_type, lookup_dwo_cutu)
9354 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
9355 (queue_and_load_all_dwo_tus): Update.
9356 * dwarf2/index-write.c (write_gdbindex): Update.
9357 (write_debug_names): Update.
9358
39856def
TT
93592020-02-08 Tom Tromey <tom@tromey.com>
9360
9361 * dwarf2/read.h (struct dwarf2_queue_item): Move from
9362 dwarf2/read.c. Remove "next" member. Add constructor ntad
9363 destructor.
9364 (struct dwarf2_per_objfile) <queue>: New member.
9365 * dwarf2/read.c (struct dwarf2_queue_item): Move to
9366 dwarf2/read.h.
9367 (dwarf2_queue, dwarf2_queue_tail): Remove.
9368 (class dwarf2_queue_guard): Add parameter to constructor. Use
9369 DISABLE_COPY_AND_ASSIGN.
9370 <m_per_objfile>: New member.
9371 <~dwarf2_queue_guard>: Rewrite.
9372 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
9373 Update.
9374 (~dwarf2_queue_item): New.
9375
3e225074
TT
93762020-02-08 Tom Tromey <tom@tromey.com>
9377
9378 * dwarf2/read.c (struct die_info) <has_children>: New member.
9379 (dw2_get_file_names_reader): Remove has_children.
9380 (dw2_get_file_names): Update.
9381 (read_cutu_die_from_dwo): Remove has_children.
9382 (cutu_reader::init_tu_and_read_dwo_dies)
9383 (cutu_reader::cutu_reader): Update.
9384 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
9385 Remove has_children.
9386 (build_type_psymtabs_1, process_skeletonless_type_unit)
9387 (load_partial_comp_unit, load_full_comp_unit): Update.
9388 (create_dwo_cu_reader): Remove has_children.
9389 (create_cus_hash_table, read_die_and_children): Update.
9390 (read_full_die_1,read_full_die): Remove has_children.
9391 (read_signatured_type): Update.
9392 (class cutu_reader) <has_children>: Remove.
9393
82ca8957
TT
93942020-02-08 Tom Tromey <tom@tromey.com>
9395
9396 * dwarf2/expr.c: Rename from dwarf2expr.c.
9397 * dwarf2/expr.h: Rename from dwarf2expr.h.
9398 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
9399 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
9400 * dwarf2/frame.c: Rename from dwarf2-frame.c.
9401 * dwarf2/frame.h: Rename from dwarf2-frame.h.
9402 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
9403 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
9404 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
9405 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
9406 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
9407 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
9408 * dwarf2/loc.c: Rename from dwarf2loc.c.
9409 * dwarf2/loc.h: Rename from dwarf2loc.h.
9410 * dwarf2/read.c: Rename from dwarf2read.c.
9411 * dwarf2/read.h: Rename from dwarf2read.h.
9412 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
9413 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
9414 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
9415 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
9416 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
9417 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
9418 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
9419 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
9420 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
9421 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
9422 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
9423 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
9424 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
9425 Update.
9426 * Makefile.in (COMMON_SFILES): Update.
9427 (HFILES_NO_SRCDIR): Update.
9428
9e35d499
TT
94292020-02-08 Tom Tromey <tom@tromey.com>
9430
9431 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
9432 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
9433
1eba2311
TT
94342020-02-08 Tom Tromey <tom@tromey.com>
9435
9436 * dwarf2read.h (struct die_info): Don't declare.
9437
e41c2da2
TT
94382020-02-08 Tom Tromey <tom@tromey.com>
9439
9440 * dwarf2read.h (die_info_ptr): Remove typedef.
9441
4fc6c0d5
TT
94422020-02-08 Tom Tromey <tom@tromey.com>
9443
9444 * dwarf2read.c (read_call_site_scope)
9445 (handle_data_member_location, dwarf2_add_member_fn)
9446 (mark_common_block_symbol_computed, read_common_block)
9447 (attr_to_dynamic_prop, partial_die_info::read)
9448 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
9449 (dwarf2_symbol_mark_computed, set_die_type): Update.
9450 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
9451 method.
9452 (attr_form_is_block): Don't declare.
9453 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
9454
cd6c91b4
TT
94552020-02-08 Tom Tromey <tom@tromey.com>
9456
9457 * dwarf2read.c (dwarf2_find_base_address, )
9458 (read_call_site_scope, rust_containing_type)
9459 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
9460 (handle_data_member_location, dwarf2_add_member_fn)
9461 (get_alignment, read_structure_type, process_structure_scope)
9462 (mark_common_block_symbol_computed, read_common_block)
9463 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
9464 (partial_die_info::read, read_attribute_value, new_symbol)
9465 (lookup_die_type, dwarf2_get_ref_die_offset)
9466 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
9467 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
9468 (dwarf2_symbol_mark_computed): Update.
9469 * dwarf2/attribute.h (struct attribute) <value_as_address,
9470 form_is_section_offset, form_is_constant, form_is_ref>: Declare
9471 methods.
9472 (value_as_address, attr_form_is_section_offset)
9473 (attr_form_is_constant, attr_form_is_ref): Don't declare.
9474 * dwarf2/attribute.c (attribute::value_as_address)
9475 (attribute::form_is_section_offset, attribute::form_is_constant)
9476 (attribute::form_is_ref): Now methods.
9477
162dce55
TT
94782020-02-08 Tom Tromey <tom@tromey.com>
9479
9480 * dwarf2read.c (struct attribute, DW_STRING)
9481 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
9482 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
9483 (attr_form_is_block, attr_form_is_section_offset)
9484 (attr_form_is_constant, attr_form_is_ref): Move.
9485 * dwarf2/attribute.h: New file.
9486 * dwarf2/attribute.c: New file, from dwarf2read.c.
9487 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
9488
3054dd54
TT
94892020-02-08 Tom Tromey <tom@tromey.com>
9490
9491 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
9492 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
9493 Move.
9494 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
9495 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
9496 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
9497 abbrev.c.
9498 * dwarf2/abbrev.h: New file.
9499 * dwarf2/abbrev.c: New file, from dwarf2read.c.
9500 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
9501
96b79293
TT
95022020-02-08 Tom Tromey <tom@tromey.com>
9503
9504 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
9505 (dwarf2_section_size, dwarf2_get_section_info)
9506 (create_signatured_type_table_from_debug_names)
9507 (create_addrmap_from_aranges, read_debug_names_from_section)
9508 (get_gdb_index_contents_from_section, read_comp_unit_head)
9509 (error_check_comp_unit_head, read_abbrev_offset)
9510 (create_debug_type_hash_table, init_cu_die_reader)
9511 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
9512 (read_comp_units_from_section, create_cus_hash_table)
9513 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
9514 (create_dwp_v2_section, dwarf2_rnglists_process)
9515 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
9516 (abbrev_table_read_table, read_indirect_string_at_offset_from)
9517 (read_indirect_string_from_dwz, read_addr_index_1)
9518 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
9519 (dwarf_decode_macro_bytes, dwarf_decode_macros)
9520 (fill_in_loclist_baton): Update.
9521 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
9522 get_containing_section, get_bfd_owner, get_bfd_section,
9523 get_file_name, get_id, get_flags, empty, read>: Declare methods.
9524 (dwarf2_read_section, get_section_name, get_section_file_name)
9525 (get_containing_section, get_section_bfd_owner)
9526 (get_section_bfd_section, get_section_name, get_section_file_name)
9527 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
9528 declare.
9529 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
9530 (dwarf2_section_info::get_bfd_owner)
9531 (dwarf2_section_info::get_bfd_section)
9532 (dwarf2_section_info::get_name)
9533 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
9534 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
9535 (dwarf2_section_info::read): Now methods.
9536 * dwarf-index-write.c (class debug_names): Update.
9537
2c86cff9
TT
95382020-02-08 Tom Tromey <tom@tromey.com>
9539
9540 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
9541 Move to dwarf2/section.h.
9542 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
9543 (get_section_bfd_section, get_section_name)
9544 (get_section_file_name, get_section_id, get_section_flags)
9545 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
9546 dwarf2/section.c.
9547 * dwarf2/section.h: New file.
9548 * dwarf2/section.c: New file, from dwarf2read.c.
9549 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
9550
f4382c45
TT
95512020-02-08 Tom Tromey <tom@tromey.com>
9552
9553 * dwarf2read.h (read_unsigned_leb128): Don't declare.
9554 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
9555 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
9556 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
9557 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
9558 * dwarf2/leb.h: New file, from dwarf2read.c.
9559 * dwarf2/leb.c: New file, from dwarf2read.c.
9560 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
9561 Remove.
9562 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
9563 (COMMON_SFILES): Add dwarf2/leb.c.
9564
01840b7a
JB
95652020-02-08 Joel Brobecker <brobecker@adacore.com>
9566
9567 GDB 9.1 released.
9568
dfcb27e4
IB
95692020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9570
9571 PR gdb/25190:
aac66a4c
SM
9572 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
9573 * gdb/remote.c (remote_console_output): Update.
9574 * gdb/ui-file.c (fputs_unfiltered): Rename to...
9575 (ui_file_puts): ...this.
9576 * gdb/ui-file.h (ui_file_puts): Add declaration.
9577 * gdb/utils.c (emit_style_escape): Update.
9578 (flush_wrap_buffer): Update.
9579 (fputs_maybe_filtered): Update.
9580 (fputs_unfiltered): Add function.
dfcb27e4 9581
faa17681
IB
95822020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9583
aac66a4c
SM
9584 * gdb/event-loop.c (gdb_wait_for_event): Update.
9585 * gdb/printcmd.c (printf_command): Update.
9586 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
9587 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
9588 (gdb_os_flush_stderr): Update.
9589 * gdb/remote.c (remote_console_output): Update.
9590 * gdb/ui-file.c (gdb_flush): Rename to...
9591 (ui_file_flush): ...this.
9592 (stderr_file::write): Update.
9593 (stderr_file::puts): Update.
9594 * gdb/ui-file.h (gdb_flush): Rename to...
9595 (ui_file_flush): ...this.
9596 * gdb/utils.c (gdb_flush): Add function.
9597 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 9598
5abbbe1d
TT
95992020-02-07 Tom Tromey <tromey@adacore.com>
9600
9601 PR breakpoints/24915:
9602 * source.c (find_and_open_source): Do not check basenames_may_differ.
9603
919adfe8
TT
96042020-02-07 Tom Tromey <tom@tromey.com>
9605
9606 * README: Update gdbserver documentation.
9607 * gdbserver: Move to top level.
9608 * configure.tgt (build_gdbserver): Remove.
9609 * configure.ac: Remove --enable-gdbserver.
9610 * configure: Rebuild.
9611 * Makefile.in (distclean): Don't mention gdbserver.
9612
1d5d29e7
SV
96132020-02-06 Shahab Vahedi <shahab@synopsys.com>
9614
9615 * source-cache.c (source_cache::ensure): Surround
9616 get_plain_source_lines with a try/catch.
9617 (source_cache::get_line_charpos): Get rid of try/catch
9618 and only check for the return value of "ensure".
9619 * tui/tui-source.c (tui_source_window::set_contents):
9620 Simplify "nlines" calculation.
9621
6eb1129c
SV
96222020-02-06 Shahab Vahedi <shahab@synopsys.com>
9623
9624 * MAINTAINERS (Write After Approval): Add myself.
9625
c6a42d11
CB
96262020-02-05 Christian Biesinger <cbiesinger@google.com>
9627
9628 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
9629 function call.
9630
c8ecdda6
CB
96312020-02-05 Christian Biesinger <cbiesinger@google.com>
9632
9633 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
9634
f6480e70
MR
96352020-02-05 Maciej W. Rozycki <macro@wdc.com>
9636
9637 * nat/riscv-linux-tdesc.h: New file.
9638 * nat/riscv-linux-tdesc.c: New file, taking code from...
9639 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9640 ... here.
9641 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
9642 NATDEPFILES.
9643
dcc9fbc6
AB
96442020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
9645
9646 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
9647 we don't set the fake simulator ptid to the null_ptid.
9648
719546c4
SM
96492020-02-03 Simon Marchi <simon.marchi@efficios.com>
9650
9651 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
9652 * gdbthread.h (class thread_info) <resumed>: Likewise.
9653 * infrun.c (resume_1): Likewise.
9654 (proceed): Likewise.
9655 (infrun_thread_stop_requested): Likewise.
9656 (stop_all_threads): Likewise.
9657 (handle_inferior_event): Likewise.
9658 (restart_threads): Likewise.
9659 (finish_step_over): Likewise.
9660 (keep_going_stepped_thread): Likewise.
9661 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
9662 (linux_handle_extended_wait): Likewise.
9663 * record-btrace.c (get_thread_current_frame_id): Likewise.
9664 * record-full.c (record_full_wait_1): Likewise.
9665 * remote.c (remote_target::process_initial_stop_replies): Likewise.
9666 * target.c (target_resume): Likewise.
9667 * thread.c (set_running_thread): Likewise.
9668
e409c542
AKS
96692020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9670
9671 * f-valprint.c (f77_print_array_1): Changed datatype of index
9672 variable to LONGEST from int to enable it to contain bound
9673 values correctly.
9674
ee98c0da
MR
96752020-02-03 Maciej W. Rozycki <macro@wdc.com>
9676
9677 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
9678 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
9679 offsets according to FLEN determined.
9680 (riscv_linux_nat_target::read_description): Determine FLEN
9681 dynamically.
9682 (riscv_linux_nat_target::fetch_registers): Size regset buffer
9683 according to FLEN determined.
9684 (riscv_linux_nat_target::store_registers): Likewise.
9685
aa66aac4
SV
96862020-02-01 Shahab Vahedi <shahab@synopsys.com>
9687
9688 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
9689 when reg->group is empty and reggroup is not.
9690
fd9faca8
TT
96912020-01-31 Tom Tromey <tromey@adacore.com>
9692
9693 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
9694 Call beneath target's mourn_inferior after unpushing.
9695
42330a68
AB
96962020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
9697
9698 PR tui/9765
9699 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
9700 have enough lines to fill the screen, still return the lowest
9701 address we found.
9702
7a27a45b
AB
97032020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
9704
9705 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
9706 '-', '<', and '>' commands.
9707
c47f70e2
PA
97082020-01-29 Pedro Alves <palves@redhat.com>
9709 Sergio Durigan Junior <sergiodj@redhat.com>
9710
9711 * infcmd.c (construct_inferior_arguments): Assert that
9712 'argc' is greater than 0.
9713
5133a315
LM
97142020-01-29 Luis Machado <luis.machado@linaro.org>
9715
9716 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
9717 (BRK_INSN_MASK): Define to 0xd4200000.
9718 (aarch64_program_breakpoint_here_p): New function.
9719 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
9720 * arch-utils.c (default_program_breakpoint_here_p): Moved from
9721 breakpoint.c.
9722 * arch-utils.h (default_program_breakpoint_here_p): Moved from
9723 breakpoint.h
9724 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
9725 call gdbarch_program_breakpoint_here_p.
9726 (program_breakpoint_here): Moved to arch-utils.c, renamed to
9727 default_program_breakpoint_here_p, changed return type to bool and
9728 simplified.
9729 * breakpoint.h (program_breakpoint_here): Moved prototype to
9730 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
9731 return type to bool.
9732 * gdbarch.c: Regenerate.
9733 * gdbarch.h: Regenerate.
9734 * gdbarch.sh (program_breakpoint_here_p): New method.
9735 * infrun.c (handle_signal_stop): Call
9736 gdbarch_program_breakpoint_here_p.
9737
168f8c6b
TT
97382020-01-26 Tom Tromey <tom@tromey.com>
9739
9740 * ctfread.c (struct ctf_fp_info): Reindent.
9741 (_initialize_ctfread): Remove.
9742
128a391f
TT
97432020-01-26 Tom Tromey <tom@tromey.com>
9744
9745 * psymtab.c (partial_map_expand_apply)
9746 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
9747 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
9748 (psym_print_stats, psym_expand_symtabs_for_function)
9749 (psym_map_symbol_filenames, psym_map_matching_symbols)
9750 (psym_expand_symtabs_matching)
9751 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
9752 (maintenance_check_psymtabs): Use new methods.
9753 * psympriv.h (struct partial_symtab) <readin_p,
9754 get_compunit_symtab>: New methods.
9755 <readin, compunit_symtab>: Remove members.
9756 (struct standard_psymtab): New.
9757 (struct legacy_psymtab): Derive from standard_psymtab.
9758 * dwarf2read.h (struct dwarf2_psymtab): Derive from
9759 standard_psymtab.
9760 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
9761
0494dbec
TT
97622020-01-26 Tom Tromey <tom@tromey.com>
9763
9764 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
9765 read_dependencies. Add assert.
9766 * psymtab.c (partial_symtab::read_dependencies): New method.
9767 * psympriv.h (struct partial_symtab) <read_dependencies>: New
9768 method.
9769 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
9770 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
9771 read_dependencies.
9772 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
9773 Add assert.
9774
8566b89b
TT
97752020-01-26 Tom Tromey <tom@tromey.com>
9776
9777 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
9778 Call expand_psymtab.
9779 (xcoff_read_symtab): Call expand_psymtab.
9780 (xcoff_start_psymtab, xcoff_end_psymtab): Set
9781 legacy_expand_psymtab.
9782 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
9783 method.
9784 (struct legacy_psymtab) <expand_psymtab>: Implement.
9785 <legacy_expand_psymtab>: New member.
9786 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
9787 (parse_partial_symbols): Set legacy_expand_psymtab.
9788 (psymtab_to_symtab_1): Change argument order. Call
9789 expand_psymtab.
9790 (new_psymtab): Set legacy_expand_psymtab.
9791 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
9792 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
9793 expand_psymtab.
9794 (dwarf2_psymtab::expand_psymtab): Rename from
9795 psymtab_to_symtab_1. Call expand_psymtab.
9796 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
9797 (dbx_end_psymtab): Likewise.
9798 (dbx_psymtab_to_symtab_1): Change argument order. Call
9799 expand_psymtab.
9800 (dbx_read_symtab): Call expand_psymtab.
9801 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
9802 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
9803 (ctf_psymtab::read_symtab): Call expand_psymtab.
9804
077cbab2
TT
98052020-01-26 Tom Tromey <tom@tromey.com>
9806
9807 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
9808 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
9809 messages.
9810 * mdebugread.c (mdebug_read_symtab): Remove prints.
9811 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
9812 assert.
9813 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
9814
891813be
TT
98152020-01-26 Tom Tromey <tom@tromey.com>
9816
9817 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
9818 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
9819 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
9820 legacy_symtab.
9821 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
9822 * psymtab.c (psymtab_to_symtab): Call method.
9823 (dump_psymtab): Update.
9824 * psympriv.h (struct partial_symtab): Add virtual destructor.
9825 <read_symtab>: New method.
9826 (struct legacy_symtab): New.
9827 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
9828 (struct pst_map) <pst>: Now a legacy_psymtab.
9829 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
9830 (new_psymtab): Use legacy_psymtab.
9831 * dwarf2read.h (struct dwarf2_psymtab): New.
9832 (struct dwarf2_per_cu_data) <psymtab>: Use it.
9833 * dwarf2read.c (dwarf2_create_include_psymtab)
9834 (dwarf2_build_include_psymtabs, create_type_unit_group)
9835 (create_partial_symtab, process_psymtab_comp_unit_reader)
9836 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
9837 (set_partial_user): Use dwarf2_psymtab.
9838 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
9839 (psymtab_to_symtab_1, process_full_comp_unit)
9840 (process_full_type_unit, dwarf2_ranges_read)
9841 (dwarf2_get_pc_bounds, psymtab_include_file_name)
9842 (dwarf_decode_lines): Use dwarf2_psymtab.
9843 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
9844 (add_address_entry_worker, write_one_signatured_type)
9845 (recursively_count_psymbols, recursively_write_psymbols)
9846 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
9847 (write_debug_names): Likewise.
9848 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
9849 <pst>: Now a legacy_psymtab.
9850 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
9851 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
9852 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
9853 * ctfread.c (struct ctf_psymtab): New.
9854 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
9855 ctf_psymtab.
9856 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
9857 (create_partial_symtab): Return a ctf_psymtab.
9858 (scan_partial_symbols): Update.
9859
c3693a1d
TT
98602020-01-26 Tom Tromey <tom@tromey.com>
9861
9862 * xcoffread.c (xcoff_start_psymtab): Use new.
9863 * psymtab.c (partial_symtab::partial_symtab): New constructor,
9864 renamed from start_psymtab_common.
9865 * psympriv.h (struct partial_symtab): Add new constructor.
9866 (start_psymtab_common): Don't declare.
9867 * mdebugread.c (parse_partial_symbols): Use new.
9868 * dwarf2read.c (create_partial_symtab): Use new.
9869 * dbxread.c (start_psymtab): Use new.
9870 * ctfread.c (create_partial_symtab): Use new.
9871
32caafd0
TT
98722020-01-26 Tom Tromey <tom@tromey.com>
9873
9874 * xcoffread.c (xcoff_end_psymtab): Use new.
9875 * psymtab.c (start_psymtab_common): Use new.
9876 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
9877 Update.
9878 * psympriv.h (struct partial_symtab): Add parameters to
9879 constructor. Don't inline.
9880 (allocate_psymtab): Don't declare.
9881 * mdebugread.c (new_psymtab): Use new.
9882 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
9883 * dbxread.c (dbx_end_psymtab): Use new.
9884
abaa2f23
TT
98852020-01-26 Tom Tromey <tom@tromey.com>
9886
9887 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
9888 allocate_psymtab. Update documentation.
9889 * psymtab.c (psymtab_storage::install_psymtab): Rename from
9890 allocate_psymtab. Do not use new.
9891 (allocate_psymtab): Use new. Update.
9892
6d94535f
TT
98932020-01-26 Tom Tromey <tom@tromey.com>
9894
9895 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
9896 * psymtab.c (psym_print_stats): Update.
9897 * psympriv.h (struct partial_symtab) <readin,
9898 psymtabs_addrmap_supported, anonymous>: Now bool.
9899 * mdebugread.c (psymtab_to_symtab_1): Update.
9900 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
9901 (build_type_psymtabs_reader, psymtab_to_symtab_1)
9902 (process_full_comp_unit, process_full_type_unit): Update.
9903 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
9904 * ctfread.c (psymtab_to_symtab): Update.
9905
6f17252b
TT
99062020-01-26 Tom Tromey <tom@tromey.com>
9907
9908 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
9909 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
9910 * psymtab.c (psymtab_storage): Delete psymtabs.
9911 (psymtab_storage::allocate_psymtab): Use new.
9912 (psymtab_storage::discard_psymtab): Use delete.
9913 * psympriv.h (struct partial_symtab): Add constructor and
9914 initializers.
9915
f6f1cebc
TT
99162020-01-26 Tom Tromey <tom@tromey.com>
9917
9918 * machoread.c: Do not include psympriv.h.
9919
e47e48f6
PW
99202020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9921
9922 * NEWS: Mention the new option and the set/show commands.
9923
a2fedca9
PW
99242020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9925
9926 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
9927 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
9928 (validate_exec_file): New variables, enums, functions.
9929 (exec_file_locate_attach, print_section_info): Style the filenames.
9930 (_initialize_exec): Install show_exec_file_mismatch_command and
9931 set_exec_file_mismatch_command.
9932 * gdbcore.h (validate_exec_file): Declare.
9933 * infcmd.c (attach_command): Call validate_exec_file.
9934 * remote.c ( remote_target::remote_add_inferior): Likewise.
9935
7ffa82e1
AB
99362020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9937
9938 * frame.c (find_frame_sal): Move call to get_next_frame into more
9939 inner scope.
9940 * inline-frame.c (inilne_state) <inline_state>: Update argument
9941 types.
9942 (inilne_state) <skipped_symbol>: Rename to...
9943 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
9944 (skip_inline_frames): Build vector of skipped symbols and use this
9945 to reate the inline_state.
9946 (inline_skipped_symbol): Add a comment and some assertions, fetch
9947 skipped symbol from the list.
9948
3d92a3e3
AB
99492020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9950
9951 * buildsym.c (lte_is_less_than): Delete.
9952 (buildsym_compunit::end_symtab_with_blockvector): Create local
9953 lambda function to sort line table entries, and use
9954 std::stable_sort instead of std::sort.
9955 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
9956 markers when looking for a previous line.
9957
94a72be7
AB
99582020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9959
9960 * dwarf2read.c (lnp_state_machine::record_line): Include
9961 end_sequence parameter in debug print out. Record the line if we
9962 are at an end_sequence marker even if it's not the start of a
9963 statement.
9964 * symmisc.c (maintenance_print_one_line_table): Print end of
9965 sequence markers with 'END' not '0'.
9966
53af73bf
PA
99672020-01-24 Pedro Alves <palves@redhat.com>
9968
9969 PR gdb/25410
9970 * thread.c (scoped_restore_current_thread::restore): Use
9971 switch_to_inferior_no_thread.
9972 * exec.c: Include "progspace-and-thread.h".
9973 (add_target_sections, remove_target_sections):
9974 scoped_restore_current_pspace_and_thread instead of
9975 scoped_restore_current_thread.
9976 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
9977 and aspace to the inferior before calling clone_program_space.
9978 Remove stale comment.
9979
3050c6f4
CB
99802020-01-24 Christian Biesinger <cbiesinger@google.com>
9981
9982 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
9983 (arm_netbsd_nat_target::fetch_registers): ...this.
9984 (arm_nbsd_nat_target::store_registers): Rename to...
9985 (arm_netbsd_nat_target::store_registers): ...this.
9986
73685c7e
CB
99872020-01-24 Christian Biesinger <cbiesinger@google.com>
9988
9989 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9990 register_t.
9991
89203d40
CB
99922020-01-24 Christian Biesinger <cbiesinger@google.com>
9993
9994 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
9995 Update comment.
9996 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
9997 Likewise.
9998 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
9999 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
10000 the correct replacement (iterate_over_regset_sections).
10001 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
10002 Update comment.
10003
1ba1ac88
AB
100042020-01-24 Graham Markall <graham.markall@embecosm.com>
10005
10006 PR gdb/23718
10007 * gdb/python/python.c (execute_gdb_command): Call
10008 async_enable_stdin in catch block.
10009
f3364a6d
AB
100102020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10011
10012 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
10013 SWITCH_THRU_ALL_UIS.
10014
733d0a67
AB
100152020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10016
10017 PR tui/9765
10018 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
10019 comment, add extra parameter, and update to store previous symbol
10020 when appropriate.
10021 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
10022 add extra parameter.
10023 * tui/tui-disasm.c (tui_disassemble): Update header comment,
10024 remove unneeded parameter, add try/catch around gdb_print_insn,
10025 rewrite to add items to asm_lines vector.
10026 (tui_find_backward_disassembly_start_address): New function.
10027 (tui_find_disassembly_address): Updated throughout.
10028 (tui_disasm_window::set_contents): Update for changes to
10029 tui_disassemble.
10030 (tui_disasm_window::do_scroll_vertical): No need to adjust the
10031 number of lines to scroll.
10032
b3b3bada
SM
100332020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
10034
10035 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
10036 (SECT_OFF_DATA): Likewise.
10037 (SECT_OFF_RODATA): Likewise.
10038 (SECT_OFF_TEXT): Likewise.
10039 (SECT_OFF_BSS): Likewise.
10040 (struct objfile) <text_section_offset, data_section_offset>: New
10041 methods.
10042 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
10043 objfile::text_section_offset.
10044 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
10045 * coffread.c (coff_symtab_read): Likewise.
10046 (enter_linenos): Likewise.
10047 (process_coff_symbol): Likewise.
10048 * ctfread.c (get_objfile_text_range): Likewise.
10049 * dtrace-probe.c (dtrace_probe::get_relocated_address):
10050 Use objfile::data_section_offset.
10051 * dwarf2-frame.c (execute_cfa_program): Use
10052 objfile::text_section_offset.
10053 (dwarf2_frame_find_fde): Likewise.
10054 * dwarf2read.c (create_addrmap_from_index): Likewise.
10055 (create_addrmap_from_aranges): Likewise.
10056 (dw2_find_pc_sect_compunit_symtab): Likewise.
10057 (process_psymtab_comp_unit_reader): Likewise.
10058 (add_partial_symbol): Likewise.
10059 (add_partial_subprogram): Likewise.
10060 (process_full_comp_unit): Likewise.
10061 (read_file_scope): Likewise.
10062 (read_func_scope): Likewise.
10063 (read_lexical_block_scope): Likewise.
10064 (read_call_site_scope): Likewise.
10065 (dwarf2_rnglists_process): Likewise.
10066 (dwarf2_ranges_process): Likewise.
10067 (dwarf2_ranges_read): Likewise.
10068 (dwarf_decode_lines_1): Likewise.
10069 (new_symbol): Likewise.
10070 (dwarf2_fetch_die_loc_sect_off): Likewise.
10071 (dwarf2_per_cu_text_offset): Likewise.
10072 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
10073 * hppa-tdep.c (read_unwind_info): Likewise.
10074 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
10075 * psympriv.h (struct partial_symtab): Likewise.
10076 * psymtab.c (find_pc_sect_psymtab): Likewise.
10077 * solib-svr4.c (enable_break): Likewise.
10078 * stap-probe.c (relocate_address): Use
10079 objfile::data_section_offset.
10080 * xcoffread.c (enter_line_range): Use
10081 objfile::text_section_offset.
10082 (read_xcoff_symtab): Likewise.
10083
ab53f382
SM
100842020-01-23 Simon Marchi <simon.marchi@efficios.com>
10085
10086 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
10087 declaration to narrower scopes.
10088
e7eee665
SM
100892020-01-23 Simon Marchi <simon.marchi@efficios.com>
10090
10091 * darwin-nat.h (struct darwin_exception_msg, enum
10092 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
10093 Move up.
10094 (class darwin_nat_target) <wait_1, check_new_threads,
10095 decode_exception_message, decode_message, stop_inferior,
10096 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
10097 * darwin-nat.c (darwin_check_new_threads): Rename to...
10098 (darwin_nat_target::check_new_threads): ... this.
10099 (darwin_suspend_inferior_it): Remove.
10100 (darwin_decode_exception_message): Rename to...
10101 (darwin_nat_target::decode_exception_message): ... this.
10102 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
10103 (darwin_decode_message): Rename to...
10104 (darwin_nat_target::decode_message): ... this.
10105 (cancel_breakpoint): Rename to...
10106 (darwin_nat_target::cancel_breakpoint): ... this.
10107 (darwin_wait): Rename to...
10108 (darwin_nat_target::wait_1): ... this. Use range-based for loop
10109 instead of iterate_over_inferiors.
10110 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
10111 (darwin_stop_inferior): Rename to...
10112 (darwin_nat_target::stop_inferior): ... this.
10113 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
10114 (darwin_init_thread_list): Rename to...
10115 (darwin_nat_target::init_thread_list): ... this.
10116 (darwin_ptrace_him): Rename to...
10117 (darwin_nat_target::ptrace_him): ... this.
10118 (darwin_nat_target::create_inferior): Pass lambda function to
10119 fork_inferior.
10120 (darwin_nat_target::detach): Call stop_inferior instead of
10121 darwin_stop_inferior.
10122 * fork-inferior.h (fork_inferior): Change init_trace_fun
10123 parameter to gdb::function_view.
10124 * fork-inferior.c (fork_inferior): Likewise.
10125
c162ed3e
HD
101262020-01-23 Hannes Domani <ssbssa@yahoo.de>
10127
10128 * i386-cygwin-tdep.c (core_process_module_section): Update.
10129 * windows-nat.c (struct lm_info_windows): Add text_offset.
10130 (windows_xfer_shared_libraries): Update.
10131 * windows-tdep.c (windows_xfer_shared_library):
10132 Add text_offset_cached argument.
10133 * windows-tdep.h (windows_xfer_shared_library): Update.
10134
a1237872
SM
101352020-01-21 Simon Marchi <simon.marchi@efficios.com>
10136
10137 * gdbarch.sh: Add declaration for _initialize_gdbarch.
10138
b3ee6dd9
SM
101392020-01-21 Simon Marchi <simon.marchi@efficios.com>
10140
10141 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
10142 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
10143 replace with range-based for.
10144 (gdbsim_interrupt_inferior): Remove.
10145 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
10146 with a range-based for. Inline code from
10147 gdbsim_interrupt_inferior.
10148
f9fac3c8
SM
101492020-01-21 Simon Marchi <simon.marchi@efficios.com>
10150
10151 * infrun.c (proceed): Fix indentation.
10152
f6474de9
TT
101532020-01-21 Tom Tromey <tromey@adacore.com>
10154
10155 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
10156 * python/python.c (python_extension_ops): Update.
10157 (gdbpy_colorize): New function.
10158 * python/lib/gdb/__init__.py (colorize): New function.
10159 * extension.h (ext_lang_colorize): Declare.
10160 * extension.c (ext_lang_colorize): New function.
10161 * extension-priv.h (struct extension_language_ops) <colorize>: New
10162 member.
10163 * cli/cli-style.c (_initialize_cli_style): Update help text.
10164
f0c702d4
LM
101652020-01-21 Luis Machado <luis.machado@linaro.org>
10166
10167 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
10168 <cond>: Change type to bool.
10169 (aarch64_displaced_step_b_cond): Update cond to use bool type.
10170 (aarch64_displaced_step_cb): Likewise.
10171 (aarch64_displaced_step_tb): Likewise.
10172
1ab139e5
LM
101732020-01-21 Luis Machado <luis.machado@linaro.org>
10174
10175 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
10176 output.
10177
0c271889
LM
101782020-01-21 Luis Machado <luis.machado@linaro.org>
10179
10180 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
10181 <pc_adjust>: Adjust the documentation.
10182 (aarch64_displaced_step_fixup): Check if PC really moved before
10183 adjusting it.
10184
4d89c1c7
TT
101852020-01-19 Tom Tromey <tom@tromey.com>
10186
10187 * disasm.c (~gdb_disassembler): New destructor.
10188 (gdb_buffered_insn_length): Call disassemble_free_target.
10189 * disasm.h (class gdb_disassembler): Declare destructor. Use
10190 DISABLE_COPY_AND_ASSIGN.
10191
c0ab21c2
TT
101922020-01-19 Tom Tromey <tom@tromey.com>
10193
10194 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
10195 (die_reader_func_ftype): Remove.
10196 (cutu_reader): New class.
10197 (dw2_get_file_names_reader): Remove "data" parameter.
10198 (dw2_get_file_names): Use cutu_reader.
10199 (create_debug_type_hash_table): Update.
10200 (read_cutu_die_from_dwo): Update comment.
10201 (lookup_dwo_unit): Add dwo_name parameter.
10202 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
10203 die_reader_func_ftype and data parameters.
10204 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
10205 Remove die_reader_func_ftype and data parameters.
10206 (~cutu_reader): New; from init_cutu_and_read_dies.
10207 (cutu_reader::cutu_reader): Rename from
10208 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
10209 and data parameters.
10210 (init_cutu_and_read_dies_simple): Remove.
10211 (struct process_psymtab_comp_unit_data): Remove.
10212 (process_psymtab_comp_unit_reader): Remove data parameter; add
10213 want_partial_unit and pretend_language parameters.
10214 (process_psymtab_comp_unit): Use cutu_reader.
10215 (build_type_psymtabs_reader): Remove data parameter.
10216 (build_type_psymtabs_1): Use cutu_reader.
10217 (process_skeletonless_type_unit): Likewise.
10218 (load_partial_comp_unit_reader): Remove.
10219 (load_partial_comp_unit): Use cutu_reader.
10220 (load_full_comp_unit_reader): Remove.
10221 (load_full_comp_unit): Use cutu_reader.
10222 (struct create_dwo_cu_data): Remove.
10223 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
10224 dwo_unit parameters.
10225 (create_cus_hash_table): Use cutu_reader.
10226 (struct dwarf2_read_addr_index_data): Remove.
10227 (dwarf2_read_addr_index_reader): Remove.
10228 (dwarf2_read_addr_index): Use cutu_reader.
10229 (read_signatured_type_reader): Remove.
10230 (read_signatured_type): Use cutu_reader.
10231
45bbae5c
TT
102322020-01-19 Tom Tromey <tom@tromey.com>
10233
10234 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
10235 * tui/tui-wingeneral.h (class tui_suppress_output): New.
10236 (tui_wrefresh): Declare.
10237 * tui/tui-wingeneral.c (suppress_output): New global.
10238 (tui_suppress_output, ~tui_suppress_output): New constructor and
10239 destructor.
10240 (tui_wrefresh): New function.
10241 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
10242 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
10243 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
10244 method.
10245 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
10246 tui_wrefresh.
10247 (tui_data_window::no_refresh): New method.
10248 (tui_data_item_window::refresh_window): Call tui_wrefresh.
10249 (tui_reg_command): Use tui_suppress_output
10250 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
10251 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
10252 method.
10253 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
10254
4f13c1c0
TT
102552020-01-19 Tom Tromey <tom@tromey.com>
10256
10257 * tui/tui-winsource.c (tui_update_source_windows_with_line):
10258 Handle case where symtab is null.
10259
fa47e446
SM
102602020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
10261
10262 * linux-fork.c (one_fork_p): Simplify.
10263
26f42329
SM
102642020-01-17 Simon Marchi <simon.marchi@efficios.com>
10265
10266 * top.c (struct qt_args): Remove.
10267 (kill_or_detach): Change return type to void, replace `void *`
10268 parameter with a proper one.
10269 (print_inferior_quit_action): Likewise.
10270 (quit_confirm): Use range-based for loop to iterate over inferiors.
10271 (quit_force): Likewise.
10272
a9ac81b1
SM
102732020-01-17 Simon Marchi <simon.marchi@efficios.com>
10274
10275 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
10276 `void *` parameter with proper parameters.
10277 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
10278 (print_one_inferior): Change return type to void, replace `void *`
10279 parameter with proper parameters.
10280 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
10281 inferiors.
10282 (get_other_inferior): Remove.
10283 (mi_cmd_remove_inferior): Use range-based loop to iterate over
10284 inferiors.
10285
788eca49
SM
102862020-01-17 Simon Marchi <simon.marchi@efficios.com>
10287
10288 * mi/mi-interp.c (report_initial_inferior): Remove.
10289 (mi_interp::init): Use range-based for to iterate over inferiors.
10290
d9bc85b6
SM
102912020-01-17 Simon Marchi <simon.marchi@efficios.com>
10292
10293 * python/py-inferior.c (build_inferior_list): Remove.
10294 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
10295
40c94099
CB
102962020-01-16 Christian Biesinger <cbiesinger@google.com>
10297
10298 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
10299 (btrace_stitch_trace): Likewise.
10300 * charset.c (intermediate_encoding): Likewise (vaild).
10301 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
10302 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
10303 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
10304
e0cdfe3c
HD
103052020-01-16 Hannes Domani <ssbssa@yahoo.de>
10306
10307 * windows-tdep.c (windows_get_tlb_type):
10308 Add rtl_user_process_parameters type.
10309
790f1718 103102020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 10311 Norbert Lange <nolange79@gmail.com>
790f1718
PA
10312
10313 PR build/24805
10314 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
10315 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
10316 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
10317 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
10318 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
10319 (ps_plog): Redeclare exported functions with default visibility.
10320
3112ed97
NA
103212020-01-16 Nitika Achra <Nitika.Achra@amd.com>
10322
10323 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
10324 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
10325
8dc3273e
SM
103262020-01-15 Simon Marchi <simon.marchi@efficios.com>
10327
10328 * infcmd.c (post_create_inferior): Use get_thread_regcache
10329 instead of get_current_regcache.
10330
ff47f4f0
TT
103312020-01-14 Tom Tromey <tom@tromey.com>
10332
10333 PR symtab/12535:
10334 * python/python.c (gdbpy_decode_line): Treat empty string the same
10335 as no argument.
10336
975f45b7
TT
103372020-01-14 Tom Tromey <tom@tromey.com>
10338
10339 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
10340
25e57356
TT
103412020-01-14 Tom Tromey <tom@tromey.com>
10342
10343 * nat/linux-btrace.c: Don't include <config.h>.
10344 * nat/linux-ptrace.c: Don't include <config.h>.
10345 * nat/x86-linux-dregs.c: Don't include <config.h>.
10346
05ea2a05
TT
103472020-01-14 Tom Tromey <tom@tromey.com>
10348
10349 * configure: Rebuild.
10350 * configure.ac: Move many checks to ../gdbsupport/common.m4.
10351
01027315
TT
103522020-01-14 Tom Tromey <tom@tromey.com>
10353
10354 * nat/x86-linux-dregs.c: Include configh.h.
10355 * nat/linux-ptrace.c: Include configh.h.
10356 * nat/linux-btrace.c: Include configh.h.
10357 * defs.h: Include config.h, bfd.h.
10358 * configure.ac: Don't source common.host.
10359 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
10360 * configure: Rebuild.
10361 * acinclude.m4: Update path.
10362 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
10363 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
10364 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
10365 (CLIBS): Add LIBSUPPORT.
10366 (CDEPS): Likewise.
10367 (COMMON_SFILES): Remove gdbsupport files.
10368 (HFILES_NO_SRCDIR): Likewise.
10369 (stamp-version): Update path to create-version.sh.
10370 (ALLDEPFILES): Remove gdbsupport files.
10371
b2ceabe8
TT
103722020-01-14 Tom Tromey <tom@tromey.com>
10373
10374 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
10375 USE_WIN32API when needed.
10376 * configure.ac (USE_WIN32API): Don't define.
10377 (WIN32LIBS): Use WIN32APILIBS.
10378 * configure: Rebuild.
10379
25c51f71
TT
103802020-01-14 Tom Tromey <tom@tromey.com>
10381
10382 * configure: Rebuild.
10383 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
10384
717c684d
BE
103852020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
10386
10387 * skip.c (skip_function_command): Make skip w/o arguments use the
10388 name of the inlined function if pc is inside any inlined function.
10389
7da6a5b9
LM
103902020-01-14 Luis Machado <luis.machado@linaro.org>
10391
10392 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
10393 * infrun.c (resume_1): Likewise.
10394 (handle_inferior_event): Remove stale comment.
10395 * linux-nat.c (linux_nat_target::resume): Update comments.
10396 (save_stop_reason): Likewise.
10397 (linux_nat_filter_event): Likewise.
10398 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
10399
44e4c775
AB
104002020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10401
10402 * elfread.c (record_minimal_symbol): Set section index to 0 for
10403 non-allocatable sections.
10404
18a8505e
AT
10405
104062020-01-13 Ali Tamur <tamur@google.com>
10407
10408 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
10409 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
10410 to gdb::optional. Update comments.
10411 (dwo_file): Update comments.
10412 (read_attribute): Update API to take an additional out parameter,
10413 need_reprocess. This is used to mark attributes that need other
10414 attributes (e.g. str_offsets_base) for correct computation which may not
10415 have been read yet.
10416 (read_attribute_reprocess): New function declaration.
10417 (read_addr_index): Likewise.
10418 (read_dwo_str_index): Likewise.
10419 (read_stub_str_index): Likewise.
10420 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
10421 (lookup_addr_base): New function definition.
10422 (lookup_ranges_base): Likewise.
10423 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
10424 lookup_ranges_base.
10425 (init_cutu_and_read_dies): Update comments.
10426 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
10427 unit. This is used to inherit parent's str_offsets_base and addr_base.
10428 Update comments.
10429 (init_cutu_and_read_dies_simple): Reflect API changes.
10430 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
10431 (create_cus_hash_table): Change API to take parent compile unit.
10432 Reflect API changes.
10433 (open_and_init_dwo_file): Reflect API changes.
10434 (dwarf2_get_pc_bounds): Update comments.
10435 (dwarf2_record_block_ranges): Likewise.
10436 (read_full_die_1): Change implementation to reprocess attributes that
10437 need str_offsets_base and addr_base.
10438 (partial_die_info::read): Likewise.
10439 (read_attribute_reprocess): New function definition.
10440 (read_attribute_value): Change API to take an additional out parameter,
10441 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
10442 when a non-dwo compile unit has index based attributes.
10443 (read_attribute): Reflect API changes.
10444 (read_addr_index_1): Reflect API changes. Update comments.
10445 (dwarf2_read_addr_index_data): Reflect API changes.
10446 (dwarf2_read_addr_index): Likewise.
10447 (read_str_index): Change API and implementation. This becomes a helper
10448 to be used by the new string index related methods. Update error
10449 message and comments.
10450 (read_dwo_str_index): New function definition.
10451 (read_stub_str_index): Likewise.
10452 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
10453 * symfile.h (dwarf2_debug_sections): Likewise.
10454 * xcoffread.c (dwarf2_debug_sections): Likewise.
10455
0cac9354
SM
104562020-01-13 Simon Marchi <simon.marchi@efficios.com>
10457
10458 * gdbcore.h (struct core_fns) <core_read_registers>: Change
10459 core_reg_sect type to gdb_byte *.
10460 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
10461 * cris-tdep.c (fetch_core_registers): Likewise.
10462 * corelow.c (core_target::get_core_register_section): Change
10463 type of `contents` to gdb::byte_vector.
10464
9a6d629c
AB
104652020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10466
10467 * tui/tui-wingeneral.c (box_win): Position the title in the center
10468 of the border.
10469
d8b2f9e3
SM
104702020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10471
10472 * corelow.c (core_target::get_core_register_section): Use
10473 std::vector instead of alloca.
10474
bb564c58
SM
104752020-01-13 Simon Marchi <simon.marchi@efficios.com>
10476
10477 * warning.m4: Add -Wmissing-declarations to build_warnings.
10478 * configure: Re-generate.
10479
6b366111
SM
104802020-01-13 Simon Marchi <simon.marchi@efficios.com>
10481
10482 * python/python.c (init__gdb_module): Add declaration.
10483
6c265988
SM
104842020-01-13 Simon Marchi <simon.marchi@efficios.com>
10485
10486 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
10487 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
10488 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
10489 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
10490 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
10491 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
10492 * ada-exp.y (_initialize_ada_exp): Add declaration.
10493 * ada-lang.c (_initialize_ada_language): Add declaration.
10494 * ada-tasks.c (_initialize_tasks): Add declaration.
10495 * agent.c (_initialize_agent): Add declaration.
10496 * aix-thread.c (_initialize_aix_thread): Add declaration.
10497 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
10498 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
10499 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
10500 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
10501 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
10502 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
10503 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
10504 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
10505 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
10506 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
10507 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
10508 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
10509 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
10510 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
10511 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
10512 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
10513 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
10514 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
10515 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
10516 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
10517 * annotate.c (_initialize_annotate): Add declaration.
10518 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
10519 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
10520 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
10521 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
10522 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
10523 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
10524 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
10525 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
10526 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
10527 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
10528 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
10529 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
10530 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
10531 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
10532 * auto-load.c (_initialize_auto_load): Add declaration.
10533 * auxv.c (_initialize_auxv): Add declaration.
10534 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
10535 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
10536 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
10537 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
10538 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
10539 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
10540 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
10541 * breakpoint.c (_initialize_breakpoint): Add declaration.
10542 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
10543 * btrace.c (_initialize_btrace): Add declaration.
10544 * charset.c (_initialize_charset): Add declaration.
10545 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
10546 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
10547 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
10548 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
10549 * cli/cli-script.c (_initialize_cli_script): Add declaration.
10550 * cli/cli-style.c (_initialize_cli_style): Add declaration.
10551 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
10552 * coffread.c (_initialize_coffread): Add declaration.
10553 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
10554 * compile/compile.c (_initialize_compile): Add declaration.
10555 * complaints.c (_initialize_complaints): Add declaration.
10556 * completer.c (_initialize_completer): Add declaration.
10557 * copying.c (_initialize_copying): Add declaration.
10558 * corefile.c (_initialize_core): Add declaration.
10559 * corelow.c (_initialize_corelow): Add declaration.
10560 * cp-abi.c (_initialize_cp_abi): Add declaration.
10561 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
10562 * cp-support.c (_initialize_cp_support): Add declaration.
10563 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
10564 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
10565 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
10566 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
10567 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
10568 * ctfread.c (_initialize_ctfread): Add declaration.
10569 * d-lang.c (_initialize_d_language): Add declaration.
10570 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
10571 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
10572 * dbxread.c (_initialize_dbxread): Add declaration.
10573 * dcache.c (_initialize_dcache): Add declaration.
10574 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
10575 * disasm.c (_initialize_disasm): Add declaration.
10576 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
10577 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
10578 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
10579 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
10580 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
10581 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
10582 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
10583 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
10584 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
10585 * elfread.c (_initialize_elfread): Add declaration.
10586 * exec.c (_initialize_exec): Add declaration.
10587 * extension.c (_initialize_extension): Add declaration.
10588 * f-lang.c (_initialize_f_language): Add declaration.
10589 * f-valprint.c (_initialize_f_valprint): Add declaration.
10590 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
10591 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
10592 * filesystem.c (_initialize_filesystem): Add declaration.
10593 * findcmd.c (_initialize_mem_search): Add declaration.
10594 * findvar.c (_initialize_findvar): Add declaration.
10595 * fork-child.c (_initialize_fork_child): Add declaration.
10596 * frame-base.c (_initialize_frame_base): Add declaration.
10597 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
10598 * frame.c (_initialize_frame): Add declaration.
10599 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
10600 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
10601 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
10602 * gcore.c (_initialize_gcore): Add declaration.
10603 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
10604 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
10605 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
10606 * gdbarch.c (_initialize_gdbarch): Add declaration.
10607 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
10608 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
10609 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
10610 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
10611 * go-lang.c (_initialize_go_language): Add declaration.
10612 * go32-nat.c (_initialize_go32_nat): Add declaration.
10613 * guile/guile.c (_initialize_guile): Add declaration.
10614 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
10615 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
10616 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
10617 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
10618 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
10619 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
10620 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
10621 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
10622 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
10623 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
10624 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
10625 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
10626 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
10627 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
10628 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
10629 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
10630 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
10631 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
10632 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
10633 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
10634 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
10635 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
10636 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
10637 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
10638 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
10639 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
10640 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
10641 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
10642 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
10643 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
10644 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
10645 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
10646 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
10647 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
10648 * infcall.c (_initialize_infcall): Add declaration.
10649 * infcmd.c (_initialize_infcmd): Add declaration.
10650 * inflow.c (_initialize_inflow): Add declaration.
10651 * infrun.c (_initialize_infrun): Add declaration.
10652 * interps.c (_initialize_interpreter): Add declaration.
10653 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
10654 * jit.c (_initialize_jit): Add declaration.
10655 * language.c (_initialize_language): Add declaration.
10656 * linux-fork.c (_initialize_linux_fork): Add declaration.
10657 * linux-nat.c (_initialize_linux_nat): Add declaration.
10658 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
10659 * linux-thread-db.c (_initialize_thread_db): Add declaration.
10660 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
10661 * m2-lang.c (_initialize_m2_language): Add declaration.
10662 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
10663 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
10664 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
10665 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
10666 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
10667 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
10668 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
10669 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
10670 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
10671 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
10672 * machoread.c (_initialize_machoread): Add declaration.
10673 * macrocmd.c (_initialize_macrocmd): Add declaration.
10674 * macroscope.c (_initialize_macroscope): Add declaration.
10675 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
10676 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
10677 * maint.c (_initialize_maint_cmds): Add declaration.
10678 * mdebugread.c (_initialize_mdebugread): Add declaration.
10679 * memattr.c (_initialize_mem): Add declaration.
10680 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
10681 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
10682 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
10683 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
10684 * mi/mi-main.c (_initialize_mi_main): Add declaration.
10685 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
10686 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
10687 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
10688 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
10689 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
10690 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
10691 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
10692 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
10693 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
10694 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
10695 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
10696 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
10697 * mipsread.c (_initialize_mipsread): Add declaration.
10698 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
10699 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
10700 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
10701 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
10702 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
10703 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
10704 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
10705 * nto-procfs.c (_initialize_procfs): Add declaration.
10706 * objc-lang.c (_initialize_objc_language): Add declaration.
10707 * observable.c (_initialize_observer): Add declaration.
10708 * opencl-lang.c (_initialize_opencl_language): Add declaration.
10709 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
10710 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
10711 * osabi.c (_initialize_gdb_osabi): Add declaration.
10712 * osdata.c (_initialize_osdata): Add declaration.
10713 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
10714 * parse.c (_initialize_parse): Add declaration.
10715 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
10716 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
10717 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
10718 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
10719 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
10720 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
10721 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
10722 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
10723 * printcmd.c (_initialize_printcmd): Add declaration.
10724 * probe.c (_initialize_probe): Add declaration.
10725 * proc-api.c (_initialize_proc_api): Add declaration.
10726 * proc-events.c (_initialize_proc_events): Add declaration.
10727 * proc-service.c (_initialize_proc_service): Add declaration.
10728 * procfs.c (_initialize_procfs): Add declaration.
10729 * producer.c (_initialize_producer): Add declaration.
10730 * psymtab.c (_initialize_psymtab): Add declaration.
10731 * python/python.c (_initialize_python): Add declaration.
10732 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
10733 * record-btrace.c (_initialize_record_btrace): Add declaration.
10734 * record-full.c (_initialize_record_full): Add declaration.
10735 * record.c (_initialize_record): Add declaration.
10736 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
10737 * regcache.c (_initialize_regcache): Add declaration.
10738 * reggroups.c (_initialize_reggroup): Add declaration.
10739 * remote-notif.c (_initialize_notif): Add declaration.
10740 * remote-sim.c (_initialize_remote_sim): Add declaration.
10741 * remote.c (_initialize_remote): Add declaration.
10742 * reverse.c (_initialize_reverse): Add declaration.
10743 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
10744 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
10745 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
10746 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
10747 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
10748 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
10749 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
10750 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
10751 Add declaration.
10752 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
10753 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
10754 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
10755 * rust-exp.y (_initialize_rust_exp): Add declaration.
10756 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
10757 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
10758 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
10759 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
10760 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
10761 * score-tdep.c (_initialize_score_tdep): Add declaration.
10762 * ser-go32.c (_initialize_ser_dos): Add declaration.
10763 * ser-mingw.c (_initialize_ser_windows): Add declaration.
10764 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
10765 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
10766 * ser-uds.c (_initialize_ser_socket): Add declaration.
10767 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
10768 * serial.c (_initialize_serial): Add declaration.
10769 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
10770 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
10771 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
10772 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
10773 * skip.c (_initialize_step_skip): Add declaration.
10774 * sol-thread.c (_initialize_sol_thread): Add declaration.
10775 * solib-aix.c (_initialize_solib_aix): Add declaration.
10776 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
10777 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
10778 * solib-frv.c (_initialize_frv_solib): Add declaration.
10779 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
10780 * solib-target.c (_initialize_solib_target): Add declaration.
10781 * solib.c (_initialize_solib): Add declaration.
10782 * source-cache.c (_initialize_source_cache): Add declaration.
10783 * source.c (_initialize_source): Add declaration.
10784 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
10785 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
10786 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
10787 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
10788 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
10789 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
10790 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
10791 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
10792 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
10793 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
10794 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
10795 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
10796 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
10797 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
10798 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
10799 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
10800 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
10801 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
10802 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
10803 * stabsread.c (_initialize_stabsread): Add declaration.
10804 * stack.c (_initialize_stack): Add declaration.
10805 * stap-probe.c (_initialize_stap_probe): Add declaration.
10806 * std-regs.c (_initialize_frame_reg): Add declaration.
10807 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
10808 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
10809 * symfile.c (_initialize_symfile): Add declaration.
10810 * symmisc.c (_initialize_symmisc): Add declaration.
10811 * symtab.c (_initialize_symtab): Add declaration.
10812 * target.c (_initialize_target): Add declaration.
10813 * target-connection.c (_initialize_target_connection): Add
10814 declaration.
10815 * target-dcache.c (_initialize_target_dcache): Add declaration.
10816 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
10817 * thread.c (_initialize_thread): Add declaration.
10818 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
10819 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
10820 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
10821 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
10822 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
10823 * tracectf.c (_initialize_ctf): Add declaration.
10824 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
10825 * tracefile.c (_initialize_tracefile): Add declaration.
10826 * tracepoint.c (_initialize_tracepoint): Add declaration.
10827 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
10828 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
10829 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
10830 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
10831 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
10832 * tui/tui-win.c (_initialize_tui_win): Add declaration.
10833 * tui/tui.c (_initialize_tui): Add declaration.
10834 * typeprint.c (_initialize_typeprint): Add declaration.
10835 * ui-style.c (_initialize_ui_style): Add declaration.
10836 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
10837 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
10838 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
10839 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
10840 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
10841 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
10842 * unittests/filtered_iterator-selftests.c
10843 (_initialize_filtered_iterator_selftests): Add declaration.
10844 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
10845 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
10846 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
10847 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
10848 * unittests/main-thread-selftests.c
10849 (_initialize_main_thread_selftests): Add declaration.
10850 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
10851 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
10852 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
10853 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
10854 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
10855 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
10856 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
10857 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
10858 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
10859 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
10860 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
10861 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
10862 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
10863 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
10864 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
10865 declaration.
10866 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
10867 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
10868 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
10869 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
10870 * user-regs.c (_initialize_user_regs): Add declaration.
10871 * utils.c (_initialize_utils): Add declaration.
10872 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
10873 * valops.c (_initialize_valops): Add declaration.
10874 * valprint.c (_initialize_valprint): Add declaration.
10875 * value.c (_initialize_values): Add declaration.
10876 * varobj.c (_initialize_varobj): Add declaration.
10877 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
10878 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
10879 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
10880 * windows-nat.c (_initialize_windows_nat): Add declaration.
10881 (_initialize_check_for_gdb_ini): Add declaration.
10882 (_initialize_loadable): Add declaration.
10883 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
10884 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
10885 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
10886 * xcoffread.c (_initialize_xcoffread): Add declaration.
10887 * xml-support.c (_initialize_xml_support): Add declaration.
10888 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
10889 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
10890 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
10891 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
10892
e2de1eec
SM
108932020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10894
10895 * regformats/regdat.sh: Generate declaration for init function.
10896
e0037b4c
SM
108972020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10898
10899 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
10900 up.
10901 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
10902 close_one_inferior>: New methods.
10903 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
10904 pass down target to find_inferior_pid.
10905 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
10906 Pass down target to find_inferior_ptid.
10907 (gdbsim_target::create_inferior): Pass down target to
10908 add_thread_silent.
10909 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
10910 target down to find_inferior_ptid and switch_to_thread.
10911 (gdbsim_target::close): Update to call close_one_inferior.
10912 (struct resume_data): Remove.
10913 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
10914 directly, rather than through a void pointer.
10915 (gdbsim_target::resume): Update to call resume_one_inferior.
10916
58920b5b
SM
109172020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
10918
10919 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
10920
4ec89149
PA
109212020-01-12 Pedro Alves <palves@redhat.com>
10922
10923 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
10924 directly for the current inferior instead of
10925 discard_all_inferiors.
10926 (discard_all_inferiors): Delete.
10927
7c392d1d
TT
109282020-01-11 Tom Tromey <tom@tromey.com>
10929
10930 * tui/tui-wingeneral.c (box_win): Check cli_styling.
10931 * tui/tui-winsource.c (tui_source_window_base::refill): Use
10932 deprecated_safe_get_selected_frame.
10933
d9ebdab7
TBA
109342020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10935
10936 * inferior.c (print_inferior): Switch inferior before printing it.
10937
f3c469b9
PA
109382020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
10939 Pedro Alves <palves@redhat.com>
10940
10941 * progspace-and-thread.c (switch_to_program_space_and_thread):
10942 Assert there's an inferior for PSPACE. Use
10943 switch_to_inferior_no_thread to switch the inferior too.
10944 * progspace.c (program_space::~program_space): Call
10945 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
10946 (program_space::free_all_objfiles): Don't call clear_symtab_users
10947 here.
10948 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
10949
65c574f6
PA
109502020-01-10 Pedro Alves <palves@redhat.com>
10951
10952 * NEWS: Mention multi-target debugging, "info connections", and
10953 "add-inferior -no-connection".
10954
2f4fcf00
PA
109552020-01-10 Pedro Alves <palves@redhat.com>
10956
10957 * infrun.c: Include "target-connection.h".
10958 (check_multi_target_resumption): New.
10959 (proceed): Call it.
10960 * target-connection.c (make_target_connection_string): Make
10961 extern.
10962 * target-connection.h (make_target_connection_string): Declare.
10963
121b3efd
PA
109642020-01-10 Pedro Alves <palves@redhat.com>
10965
10966 * Makefile.in (COMMON_SFILES): Add target-connection.c.
10967 * inferior.c (uiout_field_connection): New function.
10968 (print_inferior): Add new "connection-id" column.
10969 (add_inferior_command): Show connection number/string of added
10970 inferior.
10971 * process-stratum-target.h
10972 (process_stratum_target::connection_string): New virtual method.
10973 (process_stratum_target::connection_number): New field.
10974 * remote.c (remote_target::connection_string): New override.
10975 * target-connection.c: New file.
10976 * target-connection.h: New file.
10977 * target.c (decref_target): Remove process_stratum targets from
10978 the connection list.
10979 (target_stack::push): Add process_stratum targets to the
10980 connection list.
10981
4f837581
PA
109822020-01-10 Pedro Alves <palves@redhat.com>
10983
10984 Revert:
10985 2016-04-12 Pedro Alves <palves@redhat.com>
10986 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
10987 Remove references to name.
10988 * serial.h (struct serial) <name>: Delete.
10989
f4ec508e
PA
109902020-01-10 Pedro Alves <palves@redhat.com>
10991
10992 * gdbarch-selftests.c (register_to_value_test): Remove "target
10993 already pushed" check.
10994
5b6d1e4f
PA
109952020-01-10 Pedro Alves <palves@redhat.com>
10996 John Baldwin <jhb@FreeBSD.org>
10997
10998 * aarch64-linux-nat.c
10999 (aarch64_linux_nat_target::thread_architecture): Adjust.
11000 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
11001 (task_command_1): Likewise.
11002 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
11003 (aix_thread_target::wait, aix_thread_target::fetch_registers)
11004 (aix_thread_target::store_registers)
11005 (aix_thread_target::thread_alive): Adjust.
11006 * amd64-fbsd-tdep.c: Include "inferior.h".
11007 (amd64fbsd_get_thread_local_address): Pass down target.
11008 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
11009 thread's gdbarch instead of target_gdbarch.
11010 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
11011 get_last_target_status.
11012 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
11013 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
11014 inferiors.
11015 (update_inserted_breakpoint_locations): Skip if inferiors with no
11016 execution.
11017 (update_global_location_list): When handling moribund locations,
11018 find representative inferior for location's pspace, and use thread
11019 count of its process_stratum target.
11020 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
11021 * bsd-uthread.c (bsd_uthread_target::wait): Use
11022 as_process_stratum_target and adjust thread_change_ptid and
11023 add_thread calls.
11024 (bsd_uthread_target::update_thread_list): Use
11025 as_process_stratum_target and adjust find_thread_ptid,
11026 thread_change_ptid and add_thread calls.
11027 * btrace.c (maint_btrace_packet_history_cmd): Adjust
11028 find_thread_ptid call.
11029 * corelow.c (add_to_thread_list): Adjust add_thread call.
11030 (core_target_open): Adjust add_thread_silent and thread_count
11031 calls.
11032 (core_target::pid_to_str): Adjust find_inferior_ptid call.
11033 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
11034 * event-top.c (async_disconnect): Pop targets from all inferiors.
11035 * exec.c (add_target_sections): Push exec target on all inferiors
11036 sharing the program space.
11037 (remove_target_sections): Remove the exec target from all
11038 inferiors sharing the program space.
11039 (exec_on_vfork): New.
11040 * exec.h (exec_on_vfork): Declare.
11041 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
11042 Pass it down.
11043 (fbsd_nat_target::update_thread_list): Adjust.
11044 (fbsd_nat_target::resume): Adjust.
11045 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
11046 down.
11047 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
11048 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
11049 get_thread_arch_regcache call.
11050 * fork-child.c (gdb_startup_inferior): Pass target down to
11051 startup_inferior and set_executing.
11052 * gdbthread.h (struct process_stratum_target): Forward declare.
11053 (add_thread, add_thread_silent, add_thread_with_info)
11054 (in_thread_list): Add process_stratum_target parameter.
11055 (find_thread_ptid(inferior*, ptid_t)): New overload.
11056 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
11057 parameter.
11058 (all_threads()): Delete overload.
11059 (all_threads, all_non_exited_threads): Add process_stratum_target
11060 parameter.
11061 (all_threads_safe): Use brace initialization.
11062 (thread_count): Add process_stratum_target parameter.
11063 (set_resumed, set_running, set_stop_requested, set_executing)
11064 (threads_are_executing, finish_thread_state): Add
11065 process_stratum_target parameter.
11066 (switch_to_thread): Use is_current_thread.
11067 * i386-fbsd-tdep.c: Include "inferior.h".
11068 (i386fbsd_get_thread_local_address): Pass down target.
11069 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
11070 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
11071 have_inferiors check.
11072 * inf-ptrace.c (inf_ptrace_target::create_inferior)
11073 (inf_ptrace_target::attach): Adjust.
11074 * infcall.c (run_inferior_call): Adjust.
11075 * infcmd.c (run_command_1): Pass target to
11076 scoped_finish_thread_state.
11077 (proceed_thread_callback): Skip inferiors with no execution.
11078 (continue_command): Rename 'all_threads' local to avoid hiding
11079 'all_threads' function. Adjust get_last_target_status call.
11080 (prepare_one_step): Adjust set_running call.
11081 (signal_command): Use user_visible_resume_target. Compare thread
11082 pointers instead of inferior_ptid.
11083 (info_program_command): Adjust to pass down target.
11084 (attach_command): Mark target's 'thread_executing' flag.
11085 (stop_current_target_threads_ns): New, factored out from ...
11086 (interrupt_target_1): ... this. Switch inferior before making
11087 target calls.
11088 * inferior-iter.h
11089 (struct all_inferiors_iterator, struct all_inferiors_range)
11090 (struct all_inferiors_safe_range)
11091 (struct all_non_exited_inferiors_range): Filter on
11092 process_stratum_target too. Remove explicit.
11093 * inferior.c (inferior::inferior): Push dummy target on target
11094 stack.
11095 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
11096 Add process_stratum_target parameter, and pass it down.
11097 (have_live_inferiors): Adjust.
11098 (switch_to_inferior_and_push_target): New.
11099 (add_inferior_command, clone_inferior_command): Handle
11100 "-no-connection" parameter. Use
11101 switch_to_inferior_and_push_target.
11102 (_initialize_inferior): Mention "-no-connection" option in
11103 the help of "add-inferior" and "clone-inferior" commands.
11104 * inferior.h: Include "process-stratum-target.h".
11105 (interrupt_target_1): Use bool.
11106 (struct inferior) <push_target, unpush_target, target_is_pushed,
11107 find_target_beneath, top_target, process_target, target_at,
11108 m_stack>: New.
11109 (discard_all_inferiors): Delete.
11110 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
11111 (all_inferiors, all_non_exited_inferiors): Add
11112 process_stratum_target parameter.
11113 * infrun.c: Include "gdb_select.h" and <unordered_map>.
11114 (target_last_proc_target): New global.
11115 (follow_fork_inferior): Push target on new inferior. Pass target
11116 to add_thread_silent. Call exec_on_vfork. Handle target's
11117 reference count.
11118 (follow_fork): Adjust get_last_target_status call. Also consider
11119 target.
11120 (follow_exec): Push target on new inferior.
11121 (struct execution_control_state) <target>: New field.
11122 (user_visible_resume_target): New.
11123 (do_target_resume): Call target_async.
11124 (resume_1): Set target's threads_executing flag. Consider resume
11125 target.
11126 (commit_resume_all_targets): New.
11127 (proceed): Also consider resume target. Skip threads of inferiors
11128 with no execution. Commit resumtion in all targets.
11129 (start_remote): Pass current inferior to wait_for_inferior.
11130 (infrun_thread_stop_requested): Consider target as well. Pass
11131 thread_info pointer to clear_inline_frame_state instead of ptid.
11132 (infrun_thread_thread_exit): Consider target as well.
11133 (random_pending_event_thread): New inferior parameter. Use it.
11134 (do_target_wait): Rename to ...
11135 (do_target_wait_1): ... this. Add inferior parameter, and pass it
11136 down.
11137 (threads_are_resumed_pending_p, do_target_wait): New.
11138 (prepare_for_detach): Adjust calls.
11139 (wait_for_inferior): New inferior parameter. Handle it. Use
11140 do_target_wait_1 instead of do_target_wait.
11141 (fetch_inferior_event): Adjust. Switch to representative
11142 inferior. Pass target down.
11143 (set_last_target_status): Add process_stratum_target parameter.
11144 Save target in global.
11145 (get_last_target_status): Add process_stratum_target parameter and
11146 handle it.
11147 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
11148 (context_switch): Check inferior_ptid == null_ptid before calling
11149 inferior_thread().
11150 (get_inferior_stop_soon): Pass down target.
11151 (wait_one): Rename to ...
11152 (poll_one_curr_target): ... this.
11153 (struct wait_one_event): New.
11154 (wait_one): New.
11155 (stop_all_threads): Adjust.
11156 (handle_no_resumed, handle_inferior_event): Adjust to consider the
11157 event's target.
11158 (switch_back_to_stepped_thread): Also consider target.
11159 (print_stop_event): Update.
11160 (normal_stop): Update. Also consider the resume target.
11161 * infrun.h (wait_for_inferior): Remove declaration.
11162 (user_visible_resume_target): New declaration.
11163 (get_last_target_status, set_last_target_status): New
11164 process_stratum_target parameter.
11165 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11166 process_stratum_target parameter, and use it.
11167 (clear_inline_frame_state (thread_info*)): New.
11168 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11169 process_stratum_target parameter.
11170 (clear_inline_frame_state (thread_info*)): Declare.
11171 * linux-fork.c (delete_checkpoint_command): Pass target down to
11172 find_thread_ptid.
11173 (checkpoint_command): Adjust.
11174 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
11175 instead of just tweaking inferior_ptid.
11176 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
11177 (exit_lwp): Pass target down to find_thread_ptid.
11178 (attach_proc_task_lwp_callback): Pass target down to
11179 add_thread/set_running/set_executing.
11180 (linux_nat_target::attach): Pass target down to
11181 thread_change_ptid.
11182 (get_detach_signal): Pass target down to find_thread_ptid.
11183 Consider last target status's target.
11184 (linux_resume_one_lwp_throw, resume_lwp)
11185 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
11186 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
11187 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
11188 (linux_nat_target::async_wait_fd): New.
11189 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
11190 target down.
11191 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
11192 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
11193 * linux-thread-db.c (struct thread_db_info::process_target): New
11194 field.
11195 (add_thread_db_info): Save target.
11196 (get_thread_db_info): New process_stratum_target parameter. Also
11197 match target.
11198 (delete_thread_db_info): New process_stratum_target parameter.
11199 Also match target.
11200 (thread_from_lwp): Adjust to pass down target.
11201 (thread_db_notice_clone): Pass down target.
11202 (check_thread_db_callback): Pass down target.
11203 (try_thread_db_load_1): Always push the thread_db target.
11204 (try_thread_db_load, record_thread): Pass target down.
11205 (thread_db_target::detach): Pass target down. Always unpush the
11206 thread_db target.
11207 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
11208 target down. Always unpush the thread_db target.
11209 (find_new_threads_callback, thread_db_find_new_threads_2)
11210 (thread_db_target::update_thread_list): Pass target down.
11211 (thread_db_target::pid_to_str): Pass current inferior down.
11212 (thread_db_target::get_thread_local_address): Pass target down.
11213 (thread_db_target::resume, maintenance_check_libthread_db): Pass
11214 target down.
11215 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
11216 * procfs.c (procfs_target::procfs_init_inferior): Declare.
11217 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
11218 (procfs_init_inferior): Rename to ...
11219 (procfs_target::procfs_init_inferior): ... this and adjust.
11220 (procfs_target::create_inferior, procfs_notice_thread)
11221 (procfs_do_thread_registers): Adjust.
11222 * ppc-fbsd-tdep.c: Include "inferior.h".
11223 (ppcfbsd_get_thread_local_address): Pass down target.
11224 * proc-service.c (ps_xfer_memory): Switch current inferior and
11225 program space as well.
11226 (get_ps_regcache): Pass target down.
11227 * process-stratum-target.c
11228 (process_stratum_target::thread_address_space)
11229 (process_stratum_target::thread_architecture): Pass target down.
11230 * process-stratum-target.h
11231 (process_stratum_target::threads_executing): New field.
11232 (as_process_stratum_target): New.
11233 * ravenscar-thread.c
11234 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
11235 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
11236 down.
11237 * record-btrace.c (record_btrace_target::info_record): Adjust.
11238 (record_btrace_target::record_method)
11239 (record_btrace_target::record_is_replaying)
11240 (record_btrace_target::fetch_registers)
11241 (get_thread_current_frame_id, record_btrace_target::resume)
11242 (record_btrace_target::wait, record_btrace_target::stop): Pass
11243 target down.
11244 * record-full.c (record_full_wait_1): Switch to event thread.
11245 Pass target down.
11246 * regcache.c (regcache::regcache)
11247 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
11248 process_stratum_target parameter and handle it.
11249 (current_thread_target): New global.
11250 (get_thread_regcache): Add process_stratum_target parameter and
11251 handle it. Switch inferior before calling target method.
11252 (get_thread_regcache): Pass target down.
11253 (get_thread_regcache_for_ptid): Pass target down.
11254 (registers_changed_ptid): Add process_stratum_target parameter and
11255 handle it.
11256 (registers_changed_thread, registers_changed): Pass target down.
11257 (test_get_thread_arch_aspace_regcache): New.
11258 (current_regcache_test): Define a couple local test_target_ops
11259 instances and use them for testing.
11260 (readwrite_regcache): Pass process_stratum_target parameter.
11261 (cooked_read_test, cooked_write_test): Pass mock_target down.
11262 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
11263 (get_thread_arch_aspace_regcache): Add process_stratum_target
11264 parameter.
11265 (regcache::target): New method.
11266 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
11267 (regcache::registers_changed_ptid): Add process_stratum_target
11268 parameter.
11269 (regcache::m_target): New field.
11270 (registers_changed_ptid): Add process_stratum_target parameter.
11271 * remote.c (remote_state::supports_vCont_probed): New field.
11272 (remote_target::async_wait_fd): New method.
11273 (remote_unpush_and_throw): Add remote_target parameter.
11274 (get_current_remote_target): Adjust.
11275 (remote_target::remote_add_inferior): Push target.
11276 (remote_target::remote_add_thread)
11277 (remote_target::remote_notice_new_inferior)
11278 (get_remote_thread_info): Pass target down.
11279 (remote_target::update_thread_list): Skip threads of inferiors
11280 bound to other targets. (remote_target::close): Don't discard
11281 inferiors. (remote_target::add_current_inferior_and_thread)
11282 (remote_target::process_initial_stop_replies)
11283 (remote_target::start_remote)
11284 (remote_target::remote_serial_quit_handler): Pass down target.
11285 (remote_target::remote_unpush_target): New remote_target
11286 parameter. Unpush the target from all inferiors.
11287 (remote_target::remote_unpush_and_throw): New remote_target
11288 parameter. Pass it down.
11289 (remote_target::open_1): Check whether the current inferior has
11290 execution instead of checking whether any inferior is live. Pass
11291 target down.
11292 (remote_target::remote_detach_1): Pass down target. Use
11293 remote_unpush_target.
11294 (extended_remote_target::attach): Pass down target.
11295 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
11296 (remote_target::append_resumption): Pass down target.
11297 (remote_target::append_pending_thread_resumptions)
11298 (remote_target::remote_resume_with_hc, remote_target::resume)
11299 (remote_target::commit_resume): Pass down target.
11300 (remote_target::remote_stop_ns): Check supports_vCont_probed.
11301 (remote_target::interrupt_query)
11302 (remote_target::remove_new_fork_children)
11303 (remote_target::check_pending_events_prevent_wildcard_vcont)
11304 (remote_target::remote_parse_stop_reply)
11305 (remote_target::process_stop_reply): Pass down target.
11306 (first_remote_resumed_thread): New remote_target parameter. Pass
11307 it down.
11308 (remote_target::wait_as): Pass down target.
11309 (unpush_and_perror): New remote_target parameter. Pass it down.
11310 (remote_target::readchar, remote_target::remote_serial_write)
11311 (remote_target::getpkt_or_notif_sane_1)
11312 (remote_target::kill_new_fork_children, remote_target::kill): Pass
11313 down target.
11314 (remote_target::mourn_inferior): Pass down target. Use
11315 remote_unpush_target.
11316 (remote_target::core_of_thread)
11317 (remote_target::remote_btrace_maybe_reopen): Pass down target.
11318 (remote_target::pid_to_exec_file)
11319 (remote_target::thread_handle_to_thread_info): Pass down target.
11320 (remote_target::async_wait_fd): New.
11321 * riscv-fbsd-tdep.c: Include "inferior.h".
11322 (riscv_fbsd_get_thread_local_address): Pass down target.
11323 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
11324 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
11325 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
11326 Adjust.
11327 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
11328 * solib-svr4.c (enable_break): Pass down target.
11329 * spu-multiarch.c (parse_spufs_run): Pass down target.
11330 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
11331 * target-delegates.c: Regenerate.
11332 * target.c (g_target_stack): Delete.
11333 (current_top_target): Return the current inferior's top target.
11334 (target_has_execution_1): Refer to the passed-in inferior's top
11335 target.
11336 (target_supports_terminal_ours): Check whether the initial
11337 inferior was already created.
11338 (decref_target): New.
11339 (target_stack::push): Incref/decref the target.
11340 (push_target, push_target, unpush_target): Adjust.
11341 (target_stack::unpush): Defref target.
11342 (target_is_pushed): Return bool. Adjust to refer to the current
11343 inferior's target stack.
11344 (dispose_inferior): Delete, and inline parts ...
11345 (target_preopen): ... here. Only dispose of the current inferior.
11346 (target_detach): Hold strong target reference while detaching.
11347 Pass target down.
11348 (target_thread_name): Add assertion.
11349 (target_resume): Pass down target.
11350 (target_ops::beneath, find_target_at): Adjust to refer to the
11351 current inferior's target stack.
11352 (get_dummy_target): New.
11353 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
11354 has a thread running.
11355 (initialize_targets): Rename to ...
11356 (_initialize_target): ... this.
11357 * target.h: Include "gdbsupport/refcounted-object.h".
11358 (struct target_ops): Inherit refcounted_object.
11359 (target_ops::shortname, target_ops::longname): Make const.
11360 (target_ops::async_wait_fd): New method.
11361 (decref_target): Declare.
11362 (struct target_ops_ref_policy): New.
11363 (target_ops_ref): New typedef.
11364 (get_dummy_target): Declare function.
11365 (target_is_pushed): Return bool.
11366 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
11367 (all_matching_threads_iterator::all_matching_threads_iterator):
11368 Handle filter target.
11369 * thread-iter.h (struct all_matching_threads_iterator, struct
11370 all_matching_threads_range, class all_non_exited_threads_range):
11371 Filter by target too. Remove explicit.
11372 * thread.c (threads_executing): Delete.
11373 (inferior_thread): Pass down current inferior.
11374 (clear_thread_inferior_resources): Pass down thread pointer
11375 instead of ptid_t.
11376 (add_thread_silent, add_thread_with_info, add_thread): Add
11377 process_stratum_target parameter. Use it for thread and inferior
11378 searches.
11379 (is_current_thread): New.
11380 (thread_info::deletable): Use it.
11381 (find_thread_ptid, thread_count, in_thread_list)
11382 (thread_change_ptid, set_resumed, set_running): New
11383 process_stratum_target parameter. Pass it down.
11384 (set_executing): New process_stratum_target parameter. Pass it
11385 down. Adjust reference to 'threads_executing'.
11386 (threads_are_executing): New process_stratum_target parameter.
11387 Adjust reference to 'threads_executing'.
11388 (set_stop_requested, finish_thread_state): New
11389 process_stratum_target parameter. Pass it down.
11390 (switch_to_thread): Also match inferior.
11391 (switch_to_thread): New process_stratum_target parameter. Pass it
11392 down.
11393 (update_threads_executing): Reimplement.
11394 * top.c (quit_force): Pop targets from all inferior.
11395 (gdb_init): Don't call initialize_targets.
11396 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
11397 Declare.
11398 (windows_add_thread, windows_delete_thread): Adjust.
11399 (get_windows_debug_event): Rename to ...
11400 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
11401 * tracefile-tfile.c (tfile_target_open): Pass down target.
11402 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
11403 Forward declare.
11404 (switch_to_thread): Add process_stratum_target parameter.
11405 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
11406 parameter. Use it.
11407 (mi_on_resume): Pass target down.
11408 * nat/fork-inferior.c (startup_inferior): Add
11409 process_stratum_target parameter. Pass it down.
11410 * nat/fork-inferior.h (startup_inferior): Add
11411 process_stratum_target parameter.
11412 * python/py-threadevent.c (py_get_event_thread): Pass target down.
11413
75c6c844
PA
114142020-01-10 Pedro Alves <palves@redhat.com>
11415
11416 * remote.c (remote_target::start_remote): Don't set inferior_ptid
11417 directly. Instead find the first thread in the thread list and
11418 use switch_to_thread.
11419
78f2c40a
PA
114202020-01-10 Pedro Alves <palves@redhat.com>
11421
11422 * remote.c (remote_target::remote_add_inferior): Don't bind a
11423 process to the current inferior if the current inferior is already
11424 bound to a process.
11425
e7af6c70
TBA
114262020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11427 Pedro Alves <palves@redhat.com>
11428
11429 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
11430 If no process is specified, return null_ptid instead of
11431 inferior_ptid.
11432 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
11433 TARGET_WAITKIND_SIGNALLED with no pid.
11434
31ba933e
PA
114352020-01-10 Pedro Alves <palves@redhat.com>
11436
11437 * remote.c (first_remote_resumed_thread): New.
11438 (remote_target::wait_as): Use it as default event_ptid instead of
11439 inferior_ptid.
11440
735fc2ca
PA
114412020-01-10 Pedro Alves <palves@redhat.com>
11442
11443 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
11444
c17e02e1
PA
114452020-01-10 Pedro Alves <palves@redhat.com>
11446
11447 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
11448 not -1.
11449
ab1ddbcf
PA
114502020-01-10 Pedro Alves <palves@redhat.com>
11451
11452 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
11453 ptid to get_last_target_status.
11454 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
11455 ptid to get_last_target_status.
11456 * infcmd.c (continue_command): Don't pass a target_waitstatus to
11457 get_last_target_status.
11458 (info_program_command): Don't pass a target_waitstatus to
11459 get_last_target_status.
11460 * infrun.c (init_wait_for_inferior): Use
11461 nullify_last_target_wait_ptid.
11462 (get_last_target_status): Handle nullptr arguments.
11463 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
11464 (print_stop_event): Don't pass a ptid to get_last_target_status.
11465 (normal_stop): Don't pass a ptid to get_last_target_status.
11466 * infrun.h (get_last_target_status, set_last_target_status): Move
11467 comments here and update.
11468 (nullify_last_target_wait_ptid): Declare.
11469 * linux-fork.c (fork_load_infrun_state): Remove local extern
11470 declaration of nullify_last_target_wait_ptid.
11471 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
11472 to get_last_target_status.
11473
f3f8ece4
PA
114742020-01-10 Pedro Alves <palves@redhat.com>
11475
11476 * gdbthread.h (scoped_restore_current_thread)
11477 <dont_restore, restore, m_dont_restore>: Declare.
11478 * thread.c (thread_alive): Add assertion. Return bool.
11479 (switch_to_thread_if_alive): New.
11480 (prune_threads): Switch inferior/thread.
11481 (print_thread_info_1): Switch thread before calling target methods.
11482 (scoped_restore_current_thread::restore): New, factored out from
11483 ...
11484 (scoped_restore_current_thread::~scoped_restore_current_thread):
11485 ... this.
11486 (scoped_restore_current_thread::scoped_restore_current_thread):
11487 Add assertion.
11488 (thread_apply_all_command, thread_select): Use
11489 switch_to_thread_if_alive.
11490 * infrun.c (proceed, restart_threads, handle_signal_stop)
11491 (switch_back_to_stepped_thread): Switch current thread before
11492 calling target methods.
11493
db2d40f7
PA
114942020-01-10 Pedro Alves <palves@redhat.com>
11495
11496 * inferior.c (switch_to_inferior_no_thread): New function,
11497 factored out from ...
11498 (inferior_command): ... here.
11499 * inferior.h (switch_to_inferior_no_thread): Declare.
11500 * mi/mi-main.c (run_one_inferior): Use
11501 switch_to_inferior_no_thread.
11502
bd420a2d
PA
115032020-01-10 Pedro Alves <palves@redhat.com>
11504
11505 * infcmd.c (kill_command): Remove dead code.
11506
ddf5db90
PA
115072020-01-10 Pedro Alves <palves@redhat.com>
11508
11509 * remote.c (remote_target::mourn_inferior): No longer check
11510 whether the target is running.
11511
5018ce90
PA
115122020-01-10 Pedro Alves <palves@redhat.com>
11513
11514 * corelow.c (core_target::has_execution): Change parameter type to
11515 inferior pointer.
11516 * inferior.c (number_of_live_inferiors): Use
11517 inferior::has_execution instead of target_has_execution_1.
11518 * inferior.h (inferior::has_execution): New.
11519 * linux-thread-db.c (thread_db_target::update_thread_list): Use
11520 inferior::has_execution instead of target_has_execution_1.
11521 * process-stratum-target.c
11522 (process_stratum_target::has_execution): Change parameter type to
11523 inferior pointer. Check the inferior's PID instead of
11524 inferior_ptid.
11525 * process-stratum-target.h
11526 (process_stratum_target::has_execution): Change parameter type to
11527 inferior pointer.
11528 * record-full.c (record_full_core_target::has_execution): Change
11529 parameter type to inferior pointer.
11530 * target.c (target_has_execution_1): Change parameter type to
11531 inferior pointer.
11532 (target_has_execution_current): Adjust.
11533 * target.h (target_ops::has_execution): Change parameter type to
11534 inferior pointer.
11535 (target_has_execution_1): Change parameter type to inferior
11536 pointer. Change return type to bool.
11537 * tracefile.h (tracefile_target::has_execution): Change parameter
11538 type to inferior pointer.
11539
74375d18
PA
115402020-01-10 Pedro Alves <palves@redhat.com>
11541
11542 * exceptions.c (print_flush): Remove current_top_target() check.
11543
acdf84a6
PA
115442020-01-10 Pedro Alves <palves@redhat.com>
11545
11546 * remote.c (show_remote_exec_file): Show the current inferior's
11547 exec-file instead of the command variable's value.
11548
ec506636
PA
115492020-01-10 Pedro Alves <palves@redhat.com>
11550
11551 * record-full.c (record_full_resume_ptid): New global.
11552 (record_full_target::resume): Set it.
11553 (record_full_wait_1): Use record_full_resume_ptid instead of
11554 inferior_ptid.
11555
873657b9
PA
115562020-01-10 Pedro Alves <palves@redhat.com>
11557
11558 * gdbthread.h (scoped_restore_current_thread)
11559 <dont_restore, restore, m_dont_restore>: Declare.
11560 * thread.c (thread_alive): Add assertion. Return bool.
11561 (switch_to_thread_if_alive): New.
11562 (prune_threads): Switch inferior/thread.
11563 (print_thread_info_1): Switch thread before calling target methods.
11564 (scoped_restore_current_thread::restore): New, factored out from
11565 ...
11566 (scoped_restore_current_thread::~scoped_restore_current_thread):
11567 ... this.
11568 (scoped_restore_current_thread::scoped_restore_current_thread):
11569 Add assertion.
11570 (thread_apply_all_command, thread_select): Use
11571 switch_to_thread_if_alive.
11572
7f0ae84c
GB
115732020-01-10 George Barrett <bob@bob131.so>
11574
11575 * stap-probe.c (stap_modify_semaphore): Don't check for null
11576 semaphores.
11577 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
11578 for null semaphores.
11579
f5a7c406
AB
115802020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11581
11582 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
11583 all source windows, and maintain horizontal scroll status while
11584 doing so.
11585
9ae6bf64
TT
115862020-01-09 Tom Tromey <tom@tromey.com>
11587
11588 PR tui/18932:
11589 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
11590 update_source_window, not print_source_lines.
11591
b2efe70c
AB
115922020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11593
11594 * tui/tui.c (tui_enable): Register tui hooks after calling
11595 tui_display_main.
11596
5f23a082
CB
115972020-01-09 Christian Biesinger <cbiesinger@google.com>
11598
11599 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
11600
3061113b
SM
116012020-01-08 Simon Marchi <simon.marchi@efficios.com>
11602
11603 * thread.c (print_thread_info_1): Fix indentation.
11604
57d75002
CB
116052020-01-09 Christian Biesinger <cbiesinger@google.com>
11606
11607 * symtab.c (general_symbol_info::compute_and_set_names): Move the
11608 unique_xmalloc_ptr outside the if to always free the demangled name.
11609
6a053cb1
TT
116102020-01-08 Tom Tromey <tromey@adacore.com>
11611
11612 * xcoffread.c (enter_line_range, read_xcoff_symtab)
11613 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
11614 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
11615 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
11616 Remove.
11617 (section_offsets): New typedef.
11618 * symtab.c (fixup_section, get_msymbol_address): Update.
11619 * symmisc.c (dump_msymbols): Update.
11620 * symfile.h (relative_addr_info_to_section_offsets)
11621 (symfile_map_offsets_to_segments): Update.
11622 * symfile.c (build_section_addr_info_from_objfile)
11623 (init_objfile_sect_indices): Update.
11624 (struct place_section_arg): Change type of "offsets".
11625 (place_section): Update.
11626 (relative_addr_info_to_section_offsets): Change type of
11627 "section_offsets". Remove "num_sections" parameter.
11628 (default_symfile_offsets, syms_from_objfile_1)
11629 (set_objfile_default_section_offset): Update.
11630 (reread_symbols): No need to preserve section offsets by hand.
11631 (symfile_map_offsets_to_segments): Change type of "offsets".
11632 * stap-probe.c (relocate_address): Update.
11633 * stabsread.h (process_one_symbol): Update.
11634 * solib-target.c (struct lm_info_target) <offsets>: Change type.
11635 (solib_target_relocate_section_addresses): Update.
11636 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
11637 Update.
11638 * solib-frv.c (frv_relocate_main_executable): Update.
11639 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
11640 * solib-aix.c (solib_aix_get_section_offsets): Change return
11641 type.
11642 (solib_aix_solib_create_inferior_hook): Update.
11643 * remote.c (remote_target::get_offsets): Update.
11644 * psymtab.c (find_pc_sect_psymtab): Update.
11645 * psympriv.h (struct partial_symbol) <address, text_low,
11646 text_high>: Update.
11647 * objfiles.h (obj_section_offset): Update.
11648 (struct objfile) <section_offsets>: Change type.
11649 <num_sections>: Remove.
11650 (objfile_relocate): Update.
11651 * objfiles.c (entry_point_address_query): Update
11652 (relocate_one_symbol): Change type of "section_offsets".
11653 (objfile_relocate1, objfile_relocate1): Change type of
11654 "new_offsets".
11655 (objfile_rebase1): Update.
11656 * mipsread.c (mipscoff_symfile_read): Update.
11657 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
11658 parameter.
11659 * mdebugread.c (parse_symbol): Change type of "section_offsets".
11660 (parse_external, psymtab_to_symtab_1): Update.
11661 * machoread.c (macho_symfile_offsets): Update.
11662 * ia64-tdep.c (ia64_find_unwind_table): Update.
11663 * hppa-tdep.c (read_unwind_info): Update.
11664 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
11665 * dwarf2read.c (create_addrmap_from_index)
11666 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11667 (process_psymtab_comp_unit_reader, add_partial_symbol)
11668 (add_partial_subprogram, process_full_comp_unit)
11669 (read_file_scope, read_func_scope, read_lexical_block_scope)
11670 (read_call_site_scope, dwarf2_rnglists_process)
11671 (dwarf2_ranges_process, dwarf2_ranges_read)
11672 (dwarf_decode_lines_1, var_decode_location, new_symbol)
11673 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
11674 Update.
11675 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
11676 Update.
11677 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
11678 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
11679 (process_one_symbol): Change type of "section_offsets".
11680 * ctfread.c (get_objfile_text_range): Update.
11681 * coffread.c (coff_symtab_read, enter_linenos)
11682 (process_coff_symbol): Update.
11683 * coff-pe-read.c (add_pe_forwarded_sym): Update.
11684 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
11685
456e800a
TT
116862020-01-08 Tom Tromey <tromey@adacore.com>
11687
11688 * dwarf2read.c (parse_macro_definition): Use std::string.
11689 (parse_macro_definition): Likewise.
11690
6dfa2fc2
TT
116912020-01-08 Tom Tromey <tromey@adacore.com>
11692
11693 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
11694 (ATTR_ALLOC_CHUNK): Remove.
11695
421d1616
TT
116962020-01-08 Tom Tromey <tromey@adacore.com>
11697
11698 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
11699
43816ebc
TT
117002020-01-08 Tom Tromey <tromey@adacore.com>
11701
11702 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
11703 (dwarf2_compute_name, open_dwo_file): Likewise.
11704 (process_enumeration_scope): Use std::vector.
11705 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
11706 (partial_die_info::fixup, dwarf2_start_subfile)
11707 (guess_full_die_structure_name, dwarf2_name): Likewise.
11708 (determine_prefix): Update.
11709 (guess_full_die_structure_name): Make return type const.
11710 (partial_die_full_name): Return unique_xmalloc_ptr.
11711 (DW_FIELD_ALLOC_CHUNK): Remove.
11712
4212d509
TT
117132020-01-07 Tom Tromey <tromey@adacore.com>
11714
11715 PR build/24937:
11716 * stap-probe.c (class stap_static_probe_ops): Add constructor.
11717
06a6207a
JT
117182020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
11719
11720 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
11721
153d79c4
AB
117222020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
11723
11724 * stack.c (print_frame_info): Move disassemble_next_line code
11725 inside source_print block.
11726
66182876
EZ
117272020-01-06 Eli Zaretskii <eliz@gnu.org>
11728
11729 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
11730 gdb/signals.h, as we are now using native signal symbols.
11731
cbfa8581
SV
117322020-01-06 Shahab Vahedi <shahab@synopsys.com>
11733
11734 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
11735 overflow by an early check of content vs threshold.
aac66a4c 11736 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
11737 Likewise.
11738
3f602821
EZ
117392020-01-06 Eli Zaretskii <eliz@gnu.org>
11740
11741 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
11742
a08c904d
JT
117432020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
11744
11745 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
11746 export table if no section contains it's RVA.
11747
89a65580
EZ
117482020-01-06 Eli Zaretskii <eliz@gnu.org>
11749
11750 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
11751
8b7fcda2
HD
117522020-01-06 Hannes Domani <ssbssa@yahoo.de>
11753
11754 * source.c (print_source_lines_base): Set last_line_listed.
11755
a61b4f69
SV
117562020-01-06 Shahab Vahedi <shahab@synopsys.com>
11757
11758 * tui/tui-disasm.c: Remove trailing spaces.
11759
559e7e50
EZ
117602020-01-06 Eli Zaretskii <eliz@gnu.org>
11761 Pedro Alves <palves@redhat.com>
11762
11763 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
11764 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
11765 (windows_gdb_signal_to_target): New function, uses the above
11766 enumeration to convert GDB internal signal codes to equivalent
11767 Windows codes.
11768 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
11769 * windows-nat.c: Include "gdb_wait.h".
11770 (get_windows_debug_event): Extract the fatal exception from the
11771 exit status and convert to the equivalent Posix signal number.
11772 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
11773 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
11774 * gdbsupport/gdb_wait.c: New file, implements
11775 windows_status_to_termsig.
11776 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
11777 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
11778
f2302a34
AB
117792020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
11780
11781 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
11782 show_layout.
11783
6a5206eb
LM
117842020-01-05 Luis Machado <luis.machado@linaro.org>
11785
11786 * aarch64-linux-nat.c
11787 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
11788 and bfd_mach_aarch64.
11789
6ec1d75e
PW
117902020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11791
11792 * ui-file.c (stdio_file::can_emit_style_escape)
11793 (tee_file::can_emit_style_escape): Ensure style is used also on
11794 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
11795 to gdb_stdout.
11796 * main.c (set_gdb_data_directory): Use file style to output the
11797 warning that the given pathname is not a directory.
11798 * top.c (show_history_filename, gdb_safe_append_history)
11799 (show_gdb_datadir): Use file style.
11800
44f81a76
HD
118012020-01-03 Hannes Domani <ssbssa@yahoo.de>
11802
11803 * solib-target.c (struct lm_info_target):
11804 Change offsets to be a unique_xmalloc_ptr.
11805 (solib_target_relocate_section_addresses): Update.
11806
25057eb0
HD
118072020-01-03 Hannes Domani <ssbssa@yahoo.de>
11808
11809 * windows-nat.c (windows_clear_solib): Free so_list linked list.
11810
6e2118f5
BE
118112020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
11812
11813 * MAINTAINERS (Write After Approval): Add myself.
11814
8133c7dc
LM
118152020-01-02 Luis Machado <luis.machado@linaro.org>
11816
11817 * proc-service.c (get_ps_regcache): Remove reference to obsolete
11818 Cell BE architecture.
11819 * target.h (struct target_ops) <thread_architecture>: Likewise.
11820
48189bec
HD
118212020-01-01 Hannes Domani <ssbssa@yahoo.de>
11822
11823 * Makefile.in: Use INSTALL_PROGRAM_ENV.
11824
ead1063b
HD
118252020-01-01 Hannes Domani <ssbssa@yahoo.de>
11826
11827 * MAINTAINERS (Write After Approval): Add myself.
11828
e5d78223
JB
118292020-01-01 Joel Brobecker <brobecker@adacore.com>
11830
11831 * gdbarch.sh: Update copyright year range of generated files.
11832
b811d2c2
JB
118332020-01-01 Joel Brobecker <brobecker@adacore.com>
11834
11835 Update copyright year range in all GDB files.
11836
5f4def5c
JB
118372020-01-01 Joel Brobecker <brobecker@adacore.com>
11838
11839 * copyright.py: Convert to Python 3.
11840
51fd4002
JB
118412020-01-01 Joel Brobecker <brobecker@adacore.com>
11842
11843 * copyright.py: Adapt after move of gnulib directory from gdb
11844 directory to toplevel directory.
11845
5fb651f2
JB
118462020-01-01 Joel Brobecker <brobecker@adacore.com>
11847
11848 * copyright.py (main): Exit if run from the wrong directory.
11849
5dd8bf88
JB
118502020-01-01 Joel Brobecker <brobecker@adacore.com>
11851
11852 * top.c (print_gdb_version): Change copyright year to 2020.
11853
9f71dacb 118542020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 11855
9f71dacb 11856 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 11857
9f71dacb 11858For older changes see ChangeLog-2019.
c906108c
SS
11859\f
11860Local Variables:
11861mode: change-log
11862left-margin: 8
11863fill-column: 74
11864version-control: never
57da7796 11865coding: utf-8
c906108c 11866End:
This page took 4.009212 seconds and 4 git commands to generate.