]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Change names given to Ravenscar threads
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
d5d833af
TT
12020-08-07 Tom Tromey <tromey@adacore.com>
2
3 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
4 Remove.
5 (ravenscar_thread_target::extra_thread_info): Remove.
6 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
7 defer to target beneath for non-Ravenscar threads.
8
a8ac85bb
TT
92020-08-07 Tom Tromey <tromey@adacore.com>
10
11 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
12 get_base_thread_from_ravenscar_task>: Now methods.
13 <m_cpu_map>: New member.
14 (ravenscar_thread_target::get_thread_base_cpu): Rename from
15 ravenscar_get_thread_base_cpu. Check m_cpu_map.
16 (ravenscar_thread_target::task_is_currently_active): Update.
17 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
18 Now a method.
19 (ravenscar_thread_target::add_active_thread): Put initial thread
20 into the m_cpu_map.
21
550ab58d
TT
222020-08-07 Tom Tromey <tromey@adacore.com>
23
24 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
25 event_ptid.
26
e9546579
TT
272020-08-07 Tom Tromey <tromey@adacore.com>
28
29 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
30 runtime_initialized.
31
3d4470e5
TT
322020-08-07 Tom Tromey <tromey@adacore.com>
33
34 * ravenscar-thread.c (ravenscar_thread_target): Don't call
35 add_active_thread.
36 (ravenscar_thread_target::add_active_thread): Now public.
37 (ravenscar_inferior_created): Call add_active_thread after pushing
38 the target.
39
888bdb2b
SM
402020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
41
42 * regcache.c (ptid_regcache_map): New type.
43 (target_ptid_regcache_map): New type.
44 (regcaches): Change type to target_ptid_regcache_map.
45 (get_thread_arch_aspace_regcache): Update to regcaches' new
46 type.
47 (regcache_thread_ptid_changed): Likewise.
48 (registers_changed_ptid): Likewise.
49 (regcaches_size): Likewise.
50 (regcaches_test): Update.
51 (regcache_thread_ptid_changed): Update.
52 * regcache.h (regcache_up): New type.
53 * gdbsupport/ptid.h (hash_ptid): New struct.
54
b161a60d
SM
552020-08-07 Simon Marchi <simon.marchi@efficios.com>
56
57 * observable.h (thread_ptid_changed): Add parameter
58 `process_stratum_target *`.
59 * infrun.c (infrun_thread_ptid_changed): Add parameter
60 `process_stratum_target *` and use it.
61 (selftests): New namespace.
62 (infrun_thread_ptid_changed): New function.
63 (_initialize_infrun): Register selftest.
64 * regcache.c (regcache_thread_ptid_changed): Add parameter
65 `process_stratum_target *` and use it.
66 (regcache_thread_ptid_changed): New function.
67 (_initialize_regcache): Register selftest.
68 * thread.c (thread_change_ptid): Pass target to
69 thread_ptid_changed observable.
70
d2854d8d
CT
712020-08-06 Caroline Tice <cmtice@google.com>
72
73 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
74 (struct dwp_sections): Update field comments. Add loclists and
75 rnglists fields.
76 (struct virtual_v2_dwo_sections): Rename struct to
77 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
78 size & offset fields for loclists and rnglists.
79 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
80 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
81 skipping dummy type units.
82 (create_dwp_hash_table): Update the large comment above the function to
83 discuss Version 5 DWP files as well, with references. Update all the
84 version checks in the function to check for version 5 as well. Add new
85 section at the end to create dwp hash table for version 5.
86 (create_dwp_v2_section): Rename function to
87 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
88 Add V5 to error message text.
89 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
90 into calls to create_dwp_v2_or_v5_section.
91 (create_dwo_unit_in_dwp_v5): New function.
92 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
93 check for version2; add else clause to handle version 5.
94 (open_and_init_dwo_file): Add code to check dwarf version & only call
95 create_debug_types_hash_table (with sections.types) if version is not 5;
96 else call create_debug_type_hash_table, with sections.info.
97 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
98 version 5.
99 (dwarf2_locate_v5_dwp_sections): New function.
100 (open_and_init_dwp_file): Add else-if clause for version 5 to call
101 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
102
159ed7d9
SM
1032020-08-06 Simon Marchi <simon.marchi@efficios.com>
104
105 * regcache.h (class regcache): Remove friend
106 registers_changed_ptid.
107 <regcache_thread_ptid_changed>: Remove.
108 <regcaches>: Remove.
109 * regcache.c (regcache::regcaches): Rename to...
110 (regcaches): ... this. Make static.
111 (get_thread_arch_aspace_regcache): Update.
112 (regcache::regcache_thread_ptid_changed): Rename to...
113 (regcache_thread_ptid_changed): ... this. Update.
114 (class regcache_access): Remove.
115 (regcaches_test): Update.
116 (_initialize_regcache): Update.
117 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
118 <forward_list>.
119
174981ae
SM
1202020-08-06 Simon Marchi <simon.marchi@efficios.com>
121
122 * regcache.h (class regcache) <current_regcache>: Rename to...
123 <regcaches>: ... this. Move doc here.
124 * regcache.c (regcache::current_regcache) Rename to...
125 (regcache::regcaches): ... this. Move doc to header.
126 (get_thread_arch_aspace_regcache): Update.
127 (regcache::regcache_thread_ptid_changed): Update.
128 (registers_changed_ptid): Update.
129 (class regcache_access) <current_regcache_size>: Rename to...
130 <regcaches_size>: ... this.
131 (current_regcache_test): Rename to...
132 (regcaches_test): ... this.
133 (_initialize_regcache): Update.
134
ed908db6
VC
1352020-08-06 Victor Collod <vcollod@nvidia.com>
136
137 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
138
b5582ab7
KB
1392020-08-05 Kevin Buettner <kevinb@redhat.com>
140
141 * corelow.c (core_target::build_file_mappings): Don't output
142 null pathname in warning.
143
ea946b86
SM
1442020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
145
146 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
147 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
148 gdb.dwarf2/dw2-single-line-discriminators.exp,
149 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
150
57d02173
TT
1512020-08-05 Tom Tromey <tromey@adacore.com>
152
153 PR rust/26197:
154 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
155 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
156 Fix off-by-one and type size errors in ordinary case.
157
5555c86d
TV
1582020-08-05 Tom de Vries <tdevries@suse.de>
159
160 * gdbtypes.c (type_not_allocated, type_not_associated): Use
161 "prop->const_val () == 0" instead of "prop->const_val () != 0".
162
97916bfe
SM
1632020-08-04 Simon Marchi <simon.marchi@efficios.com>
164
165 * frame.h (frame_id_p): Return bool.
166 (frame_id_artificial_p): Return bool.
167 (frame_id_eq): Return bool.
168 (has_stack_frames): Return bool.
169 (get_selected_frame): Fix typo in comment.
170 (get_frame_pc_if_available): Return bool.
171 (get_frame_address_in_block_if_available): Return bool.
172 (get_frame_func_if_available): Return bool.
173 (read_frame_register_unsigned): Return bool.
174 (get_frame_register_bytes): Return bool.
175 (safe_frame_unwind_memory): Return bool.
176 (deprecated_frame_register_read): Return bool.
177 (frame_unwinder_is): Return bool.
178 * frame.c (struct frame_info) <prev_arch::p>: Change type to
179 bool.
180 <this_id::p>: Likewise.
181 <prev_p>: Likewise.
182 (frame_stash_add): Return bool.
183 (get_frame_id): Use bool.
184 (frame_id_build_special) Use bool.
185 (frame_id_build_unavailable_stack): Use bool.
186 (frame_id_build): Use bool.
187 (frame_id_p): Return bool, use true/false instead of 1/0.
188 (frame_id_artificial_p): Likewise.
189 (frame_id_eq): Likewise.
190 (frame_id_inner): Likewise.
191 (get_frame_func_if_available): Likewise.
192 (read_frame_register_unsigned): Likewise.
193 (deprecated_frame_register_read): Likewise.
194 (get_frame_register_bytes): Likewise.
195 (has_stack_frames): Likewise.
196 (inside_main_func): Likewise.
197 (inside_entry_func): Likewise.
198 (get_frame_pc_if_available): Likewise.
199 (get_frame_address_in_block_if_available): Likewise.
200 (frame_unwinder_is): Likewise.
201 (safe_frame_unwind_memory): Likewise.
202 (frame_unwind_arch): Likewise.
203
fedfee88
SM
2042020-08-04 Simon Marchi <simon.marchi@efficios.com>
205
206 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
207 type to cached_copy_status.
208 (fprintf_frame): Adjust.
209 (get_frame_func_if_available): Adjust.
210 (frame_cleanup_after_sniffer): Adjust.
211
6cfa9b59
MW
2122020-08-04 Mark Wielaard <mark@klomp.org>
213
214 * MAINTAINERS (Write After Approval): Update email address.
215
66d6346b
SM
2162020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
217
218 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
219 dynamic_prop::const_val.
220
8a6d5e35
SM
2212020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
222
223 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
224 dynamic_prop::kind.
225
51d6067d
SM
2262020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
227
228 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
229
b26e2ae7
JM
2302020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
231
232 * configure.tgt: Set gdb_sim for bpf-*-* targets.
233
39791af2
JM
2342020-08-04 Weimin Pan <weimin.pan@oracle.com>
235 Jose E. Marchesi <jose.marchesi@oracle.com>
236
237 * configure.tgt: Add entry for bpf-*-*.
238 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
239 (ALLDEPFILES): Add bpf-tdep.c.
240 * bpf-tdep.c: New file.
241 * MAINTAINERS: Add bpf target and maintainer.
242 * NEWS: Mention the support for the new target.
243
521894aa
TV
2442020-08-04 Tom de Vries <tdevries@suse.de>
245
246 PR symtab/23270
247 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
248 Error.
249
5d6356e9
JB
2502020-08-03 John Baldwin <jhb@FreeBSD.org>
251
252 * syscalls/freebsd.xml: Regenerate.
253
0cf82b81
JB
2542020-08-03 John Baldwin <jhb@FreeBSD.org>
255
256 * syscalls/update-freebsd.sh: Fix usage and year range.
257
8f34b746
TV
2582020-08-03 Tom de Vries <tdevries@suse.de>
259
260 PR symtab/26333
261 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
262 DW_LNE_lo_user/DW_LNE_hi_user range.
263
5e500d33
SM
2642020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
265
266 PR ada/26318
267 * ada-lang.c (ada_modulus): Return 0 if property is not of const
268 kind.
269
78319c15
TBA
2702020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
271
272 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
273
4c55e970
TBA
2742020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
275
276 * breakpoint.c (set_breakpoint_condition): Update the condition
277 expressions after checking that the input condition string parses
278 successfully and does not contain junk at the end.
279
1e620590
TBA
2802020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
281
282 * breakpoint.c (set_breakpoint_condition): Update the
283 condition string after parsing the new condition successfully.
284
c8693053
RO
2852020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
286
287 * proc-api.c (_STRUCTURED_PROC): Don't define.
288 * proc-events.c: Likewise.
289 * proc-flags.c: Likewise.
290 * proc-why.c: Likewise.
291 * procfs.c: Likewise.
292
293 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
294 * configure, config.in: Regenerate.
295
5a99adb8
TV
2962020-07-30 Tom de Vries <tdevries@suse.de>
297
298 PR build/26320
299 * ui-style.h (struct ui_file_style::color): Wrap m_value and
300 m_red/m_green/m_blue in a union.
301
8ba83e91
TV
3022020-07-29 Tom de Vries <tdevries@suse.de>
303
304 PR tdep/26280
305 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
306
f75a0693
AB
3072020-07-28 Tom Tromey <tromey@adacore.com>
308
309 PR symtab/26270:
310 * symtab.h (find_pc_partial_function_sym): Declare.
311 * cli/cli-cmds.c (disassemble_command): Use
312 find_pc_partial_function_sym. Check asm_demangle.
313 * blockframe.c (cache_pc_function_sym): New global.
314 (cache_pc_function_name): Remove.
315 (clear_pc_function_cache): Update.
316 (find_pc_partial_function_sym): New function, from
317 find_pc_partial_function.
318 (find_pc_partial_function): Rewrite using
319 find_pc_partial_function_sym.
320
16f3242c
TT
3212020-07-28 Tom Tromey <tromey@adacore.com>
322
323 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
324 help. Add usage.
325
4888741a
TT
3262020-07-28 Tom Tromey <tromey@adacore.com>
327
328 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
329 <DW_OP_GNU_variable_value>: Cast to address type.
330
4d46f402
KR
3312020-07-28 Kamil Rytarowski <n54@gmx.com>
332
333 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
334 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
335 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
336 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
337 (nbsd_get_siginfo_type): New.
338 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
339 (_initialize_nbsd_tdep): New.
340
d70f978b
L
3412020-07-28 H.J. Lu <hongjiu.lu@intel.com>
342
343 PR binutils/26301
344 * configure: Regenerated.
345
377170fa
L
3462020-07-28 H.J. Lu <hongjiu.lu@intel.com>
347
348 PR binutils/26301
349 * configure: Regenerated.
350
43d5901d
AB
3512020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
352
353 * python/py-frame.c: Remove 'user-regs.h' include.
354 (frapy_read_register): Rewrite to make use of
355 gdbpy_parse_register_id.
356 * python/py-registers.c (gdbpy_parse_register_id): New function,
357 moved here from python/py-unwind.c. Updated the return type, and
358 also accepts register descriptor objects.
359 * python/py-unwind.c: Remove 'user-regs.h' include.
360 (pyuw_parse_register_id): Moved to python/py-registers.c.
361 (unwind_infopy_add_saved_register): Update to use
362 gdbpy_parse_register_id.
363 (pending_framepy_read_register): Likewise.
364 * python/python-internal.h (gdbpy_parse_register_id): Declare.
365
14fa8fb3
AB
3662020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
367
368 * python/py-registers.c: Add 'user-regs.h' include.
369 (register_descriptor_iter_find): New function.
370 (register_descriptor_iterator_object_methods): New static global
371 methods array.
372 (register_descriptor_iterator_object_type): Add pointer to methods
373 array.
374
ddce1758
JB
3752020-07-27 John Baldwin <jhb@FreeBSD.org>
376
377 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
378 for all architectures on FreeBSD 11.3 and later.
379
a4089f52
TT
3802020-07-27 Tom Tromey <tromey@adacore.com>
381
382 * gcore.h (load_corefile): Don't declare.
383
95420d30
TV
3842020-07-27 Tom de Vries <tdevries@suse.de>
385
386 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
387 * config.in: Regenerate.
388 * configure: Regenerate.
389
05a6b8c2
EZ
3902020-07-26 Eli Zaretskii <eliz@gnu.org>
391
392 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
393 ws2tcpip.h. When checking whether socklen_t type is defined, use
394 ws2tcpip.h if it is available and sys/socket.h isn't.
395 * configure: Regenerate.
396 * config.in: Regenerate.
397
e79eb02f
AB
3982020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
399
400 PR fortran/23051
401 PR fortran/26139
402 * valops.c (value_ind): Pass address to
403 readjust_indirect_value_type.
404 * value.c (readjust_indirect_value_type): Make parameter
405 non-const, and add extra address parameter. Resolve original type
406 before using it.
407 * value.h (readjust_indirect_value_type): Update function
408 signature and comment.
409
876518dd
TV
4102020-07-25 Tom de Vries <tdevries@suse.de>
411
412 PR symtab/26243
413 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
414 entries.
415
f6720b1c
AM
4162020-07-24 Aaron Merey <amerey@redhat.com>
417
418 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
419 * configure: Rebuild.
420
513487e1
KB
4212020-07-23 Kevin Buettner <kevinb@redhat.com>
422
423 PR corefiles/26294
424 * corelow.c (_initialize_corelow): Add period to help text
425 for "maintenance print core-file-backed-mappings".
426
e7bc9db8
PA
4272020-07-23 Pedro Alves <pedro@palves.net>
428
429 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
430 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
431 meanwhile.
432 * frame.c (frame_cache_generation, get_frame_cache_generation):
433 New.
434 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
435 (get_prev_frame_if_no_cycle): On exception, don't touch
436 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
437 * frame.h (get_frame_cache_generation): Declare.
438
90fcc466
TV
4392020-07-23 Tom de Vries <tdevries@suse.de>
440
441 PR tui/26282
442 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
443 New default constructor.
444
78344df7
AB
4452020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
446
447 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
448 exclude non-statement entries.
449
b089853a
KB
4502020-07-22 Kevin Buettner <kevinb@redhat.com>
451
452 * NEWS (New commands): Mention new command
453 "maintenance print core-file-backed-mappings".
454
09c2f5d4
KB
4552020-07-22 Kevin Buettner <kevinb@redhat.com>
456
457 * corelow.c (gdbcmd.h): Include.
458 (core_target::info_proc_mappings): New method.
459 (get_current_core_target): New function.
460 (maintenance_print_core_file_backed_mappings): New function.
461 (_initialize_corelow): Add core-file-backed-mappings to
462 "maint print" commands.
463
9c5ec5c2
KB
4642020-07-22 Kevin Buettner <kevinb@redhat.com>
465
466 * linux-tdep.c (dump_note_entry_p): New function.
467 (linux_dump_mapping_p_ftype): New typedef.
468 (linux_find_memory_regions_full): Add new parameter,
469 should_dump_mapping_p.
470 (linux_find_memory_regions): Adjust call to
471 linux_find_memory_regions_full.
472 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
473 call to linux_find_memory_regions_full.
474
db082f59
KB
4752020-07-22 Kevin Buettner <kevinb@redhat.com>
476
477 * corelow.c (solist.h, unordered_map): Include.
478 (class core_target): Add field m_core_file_mappings and
479 method build_file_mappings.
480 (core_target::core_target): Call build_file_mappings.
481 (core_target::~core_target): Free memory associated with
482 m_core_file_mappings.
483 (core_target::build_file_mappings): New method.
484 (core_target::xfer_partial): Use m_core_file_mappings
485 for memory transfers.
486 * linux-tdep.c (linux_read_core_file_mappings): New
487 function.
488 (linux_core_info_proc_mappings): Rewrite to use
489 linux_read_core_file_mappings.
490 (linux_init_abi): Register linux_read_core_file_mappings.
491
7e183d27
KB
4922020-07-22 Kevin Buettner <kevinb@redhat.com>
493
494 * arch-utils.c (default_read_core_file_mappings): New function.
495 * arch-utils.c (default_read_core_file_mappings): Declare.
496 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
497 * gdbarch.h, gdbarch.c: Regenerate.
498
2735d421
KB
4992020-07-22 Kevin Buettner <kevinb@redhat.com>
500
501 PR corefiles/25631
502 * corelow.c (core_target:xfer_partial): Revise
503 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
504 case after first checking the stratum beneath the core
505 target.
506 (has_all_memory): Return true.
507 * target.c (raw_memory_xfer_partial): Revise comment
508 regarding use of has_all_memory.
509
e56cb451
KB
5102020-07-22 Kevin Buettner <kevinb@redhat.com>
511
512 * exec.h (section_table_xfer_memory): Revise declaration,
513 replacing section name parameter with an optional callback
514 predicate.
515 * exec.c (section_table_xfer_memory): Likewise.
516 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
517 of section_table_xfer_memory.
518
32fa152e
TT
5192020-07-22 Tom Tromey <tromey@adacore.com>
520
521 * mi/mi-cmd-stack.c (list_args_or_locals): Use
522 lookup_symbol_search_name.
523
a67a1c41
AB
5242020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
525
526 * python/py-registers.c (gdbpy_register_object_data_init): Remove
527 redundant local variable.
528 (gdbpy_get_register_descriptor): Extract descriptor vector as a
529 reference, not pointer, update code accordingly.
530
a7b4ff4f
SM
5312020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
532 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
533
534 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
535 * jit.c (jit_breakpoint_re_set_internal): Use the
536 `skip_jit_symbol_lookup` field.
537
2340e834
SM
5382020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
539 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
540
541 * jit.c (jit_read_descriptor): Define the descriptor address once,
542 use twice.
543 (jit_breakpoint_deleted): Move the declaration of the loop variable
544 `iter` into the loop header.
545 (jit_breakpoint_re_set_internal): Move the declaration of the local
546 variable `objf_data` to the first point of definition.
547 (jit_event_handler): Move the declaration of local variables
548 `code_entry`, `entry_addr`, and `objf` to their first point of use.
549 Rename `objf` to `jited`.
550
c1072906
SM
5512020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
552
553 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
554 Remove.
555 * jit.c (get_jiter_objfile_data): Update.
556
c8474dc3
TBA
5572020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
558 Simon Marchi <simon.marchi@polymtl.ca>
559
560 * jit.c (struct jit_program_space_data): Remove.
561 (jit_program_space_key): Remove.
562 (jiter_objfile_data::~jiter_objfile_data): Remove program space
563 stuff.
564 (get_jit_program_space_data): Remove.
565 (jit_breakpoint_deleted): Iterate on all of the program space's
566 objfiles.
567 (jit_inferior_init): Likewise.
568 (jit_breakpoint_re_set_internal): Likewise. Also change return
569 type to void.
570 (jit_breakpoint_re_set): Pass current_program_space to
571 jit_breakpoint_re_set_internal.
572
77208eb7
SM
5732020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
574
575 * jit.h (struct jiter_objfile_data) <cached_code_address,
576 jit_breakpoint>: Move to here from ...
577 * jit.c (jit_program_space_data): ... here.
578 (jiter_objfile_data::~jiter_objfile_data): Update.
579 (jit_breakpoint_deleted): Update.
580 (jit_breakpoint_re_set_internal): Update.
581
8c1c720f
SM
5822020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
583
584 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
585 checks.
586 (jit_read_descriptor): Remove NULL check.
587 (jit_event_handler): Add an assertion.
588
0e74a041
SM
5892020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
590
591 * jit.h (struct jit_objfile_data): Split into...
592 (struct jiter_objfile_data): ... this ...
593 (struct jited_objfile_data): ... and this.
594 * objfiles.h (struct objfile) <jit_data>: Remove.
595 <jiter_data, jited_data>: New fields.
596 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
597 (jiter_objfile_data::~jiter_objfile_data): ... this.
598 (get_jit_objfile_data): Rename to ...
599 (get_jiter_objfile_data): ... this.
600 (add_objfile_entry): Update.
601 (jit_read_descriptor): Use get_jiter_objfile_data.
602 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
603 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
604 (jit_inferior_exit_hook): Use objfile's jited_data field.
605
238b5c9f
SM
6062020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
607
608 * jit.h: Forward-declare `struct minimal_symbol`.
609 (struct jit_objfile_data): Migrate to here from jit.c; also add a
610 constructor, destructor, and an objfile* field.
611 * jit.c (jit_objfile_data): Remove.
612 (struct jit_objfile_data): Migrate from here to jit.h.
613 (jit_objfile_data::~jit_objfile_data): New destructor
614 implementation with code moved from free_objfile_data.
615 (free_objfile_data): Delete.
616 (get_jit_objfile_data): Update to use the jit_data field of objfile.
617 (jit_find_objf_with_entry_addr): Ditto.
618 (jit_inferior_exit_hook): Ditto.
619 (_initialize_jit): Remove the call to
620 register_objfile_data_with_cleanup.
621 * objfiles.h (struct objfile) <jit_data>: New field.
622
fe053b9e
TBA
6232020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
624
625 * jit.h: Forward-declare `struct objfile`.
626 (jit_event_handler): Add a second parameter, the JITer objfile.
627 * jit.c (jit_read_descriptor): Change the signature to take the
628 JITer objfile as an argument instead of the jit_program_space_data.
629 (jit_inferior_init): Update the call to jit_read_descriptor.
630 (jit_event_handler): Use the new JITer objfile argument when calling
631 jit_read_descriptor.
632 * breakpoint.c (handle_jit_event): Update the call to
633 jit_event_handler to pass the JITer objfile.
634
4cec0c66
JB
6352020-07-21 John Baldwin <jhb@FreeBSD.org>
636
637 * gdbarch.c: Regenerate.
638 * gdbarch.h: Regenerate.
639 * gdbarch.sh (handle_segmentation_fault): Remove method.
640 * infrun.c (handle_segmentation_fault): Remove.
641 (print_signal_received_reason): Remove call to
642 handle_segmentation_fault.
643
0e42f66a
JB
6442020-07-21 John Baldwin <jhb@FreeBSD.org>
645
646 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
647 Rename to sparc64_linux_report_signal_info and add siggnal
648 argument.
649 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
650 instead of sparc64_linux_handle_segmentation_fault.
651
77bdfeb2
JB
6522020-07-21 John Baldwin <jhb@FreeBSD.org>
653
654 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
655 i386_linux_report_signal_info instead of
656 i386_linux_handle_segmentation_fault.
657 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
658 to i386_linux_report_signal_info and add siggnal argument.
659 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
660 of i386_linux_handle_segmentation_fault.
661 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
662 to i386_linux_report_signal_info and add siggnal argument.
663
ad97bfc5
JB
6642020-07-21 John Baldwin <jhb@FreeBSD.org>
665
666 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
667 hook if present.
668
272bb05c
JB
6692020-07-21 John Baldwin <jhb@FreeBSD.org>
670
671 * gdbarch.c: Regenerate.
672 * gdbarch.h: Regenerate.
673 * gdbarch.sh (report_signal_info): New method.
674 * infrun.c (print_signal_received_reason): Invoke gdbarch
675 report_signal_info hook if present.
676
baf8791e
AB
6772020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
678
679 * python/py-registers.c : Add 'unordered_map' include.
680 (gdbpy_new_reggroup): Renamed to...
681 (gdbpy_get_reggroup): ...this. Update to only create register
682 group descriptors when needed.
683 (gdbpy_reggroup_iter_next): Update.
684
f7306dac
AB
6852020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
686
687 * python/py-registers.c (gdbpy_register_object_data): New static
688 global.
689 (gdbpy_register_object_data_init): New function.
690 (gdbpy_new_register_descriptor): Renamed to...
691 (gdbpy_get_register_descriptor): ...this, and update to reuse
692 existing register descriptors where possible.
693 (gdbpy_register_descriptor_iter_next): Update.
694 (gdbpy_initialize_registers): Register new gdbarch data.
695
05c309a8
SM
6962020-07-21 Simon Marchi <simon.marchi@efficios.com>
697
698 * linux-nat.c (stopped_pids): Make static.
699
d1fd641e
SM
7002020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
701
702 PR ada/26235
703 * gdbtypes.c (ada_discrete_type_low_bound,
704 ada_discrete_type_high_bound): Handle undefined bounds.
705
1de14d77
KR
7062020-07-21 Kamil Rytarowski <n54@gmx.com>
707
708 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
709 declaration.
710 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
711 function.
712
ed810cc7
JB
7132020-07-20 John Baldwin <jhb@FreeBSD.org>
714
715 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
716 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
717 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
718 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
719 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
720 method.
721
ae5369e7
LC
7222020-07-20 Ludovic Courtès <ludo@gnu.org>
723
724 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
725 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
726 which are deprecated in Guile 3.0.
727 * configure.ac (try_guile_versions): Add "guile-3.0".
728 * configure (try_guile_versions): Regenerate.
729 * NEWS: Update entry.
730
68cf161c
LC
7312020-07-20 Ludovic Courtès <ludo@gnu.org>
732 Doug Evans <dje@google.com>
733
734 PR gdb/21104
735 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
736 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
737 USING_GUILE_BEFORE_2_2.
738 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
739 Change type to 'scm_t_port_type *'.
740 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
741 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
742 parameter and honor it. Update callers.
743 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
744 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
745 functions.
746 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
747 USING_GUILE_BEFORE_2_2.
748 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
749 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
750 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
751 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
752 and 'SCM_PORT_TYPE'.
753 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
754 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
755 (gdbscm_memory_port_read, gdbscm_memory_port_write)
756 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
757 [!USING_GUILE_BEFORE_2_2]: New functions.
758 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
759 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
760 'gdbscm_memory_port_read'.
761 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
762 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
763 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
764 function.
765 (ioscm_init_memory_port): Remove.
766 (ioscm_init_memory_port_stream): New function
767 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
768 function.
769 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
770 Return scm_from_uint (0).
771 (gdbscm_set_memory_port_read_buffer_size_x)
772 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
773 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
774 Return scm_from_uint (0).
775 (gdbscm_set_memory_port_write_buffer_size_x)
776 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
777 * configure.ac (try_guile_versions): Add "guile-2.2".
778 * configure: Regenerate.
779 * NEWS: Add entry.
780
aee91db3
TT
7812020-07-18 Tom Tromey <tom@tromey.com>
782
783 * linux-nat.c (linux_multi_process): Remove.
784 (linux_nat_target::supports_multi_process): Return true.
785
0e267416
AB
7862020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
787
788 * arch/riscv.c (riscv_tdesc_cache): Change map type.
789 (riscv_lookup_target_description): Return pointer out of
790 unique_ptr.
791 * target-descriptions.c (allocate_target_description): Add
792 comment.
793 (target_desc_deleter::operator()): Likewise.
794 * target-descriptions.h (struct target_desc_deleter): Moved to
795 gdbsupport/tdesc.h.
796 (target_desc_up): Likewise.
797
f80c8ec4
TT
7982020-07-17 Tom Tromey <tromey@adacore.com>
799
800 * linux-nat.c (linux_nat_target::supports_non_stop)
801 (linux_nat_target::always_non_stop_p): Use "true".
802 (linux_nat_target::supports_disable_randomization): Use "true" and
803 "false".
804
d0ce17d8
CT
8052020-07-16 Caroline Tice <cmtice@google.com>
806
807 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
808 (RNGLIST_HEADER_SIZE64): New constant definition.
809 (struct dwop_section_names): Add rnglists_dwo.
810 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
811 (struct loclist_header): Rename to 'loclists_rnglists_header'.
812 (struct dwo_sections): Add rnglists field.
813 (read_attribut_reprocess): Add tag parameter.
814 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
815 (cu_debug_rnglists_section): New function (decl & definition).
816 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
817 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
818 die whose range is being checked; get rnglist section from
819 cu_debug_rnglists_section, to get from either objfile or dwo file as
820 appropriate. Add cases for DW_RLE_base_addressx,
821 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
822 the base address to DW_RLE_offset_pairs (not to all ranges), moving
823 test inside if-condition and updating complaint message.
824 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
825 dwarf2_rnglists_process.
826 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
827 dwarf2_ranges_process.
828 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
829 need_ranges_base and update comment appropriately. Also pass die tag
830 to dwarf2_ranges_read.
831 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
832 need_ranges_base and update comment appropriately. Also pass die tag
833 to dwarf2_ranges_process.
834 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
835 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
836 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
837 need_ranges_base and update comment appropriately. Also pass die tag
838 to read_attribute_reprocess and dwarf2_ranges_read.
839 (read_loclist_header): Rename function to read_loclists_rnglists_header,
840 and update function comment appropriately.
841 (read_loclist_index): Call read_loclists_rnglists_header instead of
842 read_loclist_header.
843 (read_rnglist_index): New function.
844 (read_attribute_reprocess): Add tag parameter. Add code for
845 DW_FORM_rnglistx, passing tag to read_rnglist_index.
846 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
847
3dcc261c
AB
8482020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
849
850 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
851 being resolved.
852
ccb9eba6
AB
8532020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
854
855 * arch-utils.c (show_architecture): Update formatting of messages.
856
cf88be68
SM
8572020-07-12 Simon Marchi <simon.marchi@efficios.com>
858
859 * gdbtypes.h (struct type) <bounds>: Handle array and string
860 types.
861 * ada-lang.c (assign_aggregate): Use type::bounds on
862 array/string type.
863 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
864 * c-varobj.c (c_number_of_children): Likewise.
865 (c_describe_child): Likewise.
866 * eval.c (evaluate_subexp_for_sizeof): Likewise.
867 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
868 (f_type_print_base): Likewise.
869 * f-valprint.c (f77_array_offset_tbl): Likewise.
870 (f77_get_upperbound): Likewise.
871 (f77_print_array_1): Likewise.
872 * guile/scm-type.c (gdbscm_type_range): Likewise.
873 * m2-typeprint.c (m2_array): Likewise.
874 (m2_is_long_set_of_type): Likewise.
875 * m2-valprint.c (get_long_set_bounds): Likewise.
876 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
877 * python/py-type.c (typy_range): Likewise.
878 * rust-lang.c (rust_internal_print_type): Likewise.
879 * type-stack.c (type_stack::follow_types): Likewise.
880 * valarith.c (value_subscripted_rvalue): Likewise.
881 * valops.c (value_cast): Likewise.
882
509971ae
SM
8832020-07-12 Simon Marchi <simon.marchi@efficios.com>
884
885 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
886 callers to use the equivalent accessor methods.
887
107406b7
SM
8882020-07-12 Simon Marchi <simon.marchi@efficios.com>
889
890 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
891 (struct type) <bit_stride>: New method.
892 (TYPE_BIT_STRIDE): Remove.
893 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
894
bb789949
SM
8952020-07-12 Simon Marchi <simon.marchi@efficios.com>
896
897 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
898 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
899 callers to use the equivalent accessor methods instead.
900
39498edb
SM
9012020-07-12 Simon Marchi <simon.marchi@efficios.com>
902
903 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
904 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
905 callers to use the equivalent accessor methods instead.
906
3b606f38
SM
9072020-07-12 Simon Marchi <simon.marchi@efficios.com>
908
909 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
910 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
911 to use dynamic_prop::kind.
912
064d9cb9
SM
9132020-07-12 Simon Marchi <simon.marchi@efficios.com>
914
915 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
916 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
917 to get the bound property's kind and check against
918 PROP_UNDEFINED.
919
5537ddd0
SM
9202020-07-12 Simon Marchi <simon.marchi@efficios.com>
921
922 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
923 all callers to use type::range_bounds followed by
924 dynamic_prop::{low,high}.
925
8c2e4e06
SM
9262020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
927
928 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
929 const_val, set_const_val, baton, set_locexpr, set_loclist,
930 set_addr_offset, variant_parts, set_variant_parts,
931 original_type, set_original_type>: New methods.
932 <kind>: Rename to...
933 <m_kind>: ... this. Update all users to use the new methods
934 instead.
935 <data>: Rename to...
936 <m_data>: ... this. Update all users to use the new methods
937 instead.
938
7c6f2712
SM
9392020-07-12 Simon Marchi <simon.marchi@efficios.com>
940
941 * gdbtypes.c (get_discrete_bounds): Return failure if
942 the range type's bounds are not both defined and constant
943 values.
944 (get_array_bounds): Update comment. Remove undefined bound check.
945
599088e3
SM
9462020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
947
948 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
949 the type::bounds method directly.
950
c4dfcb36
SM
9512020-07-12 Simon Marchi <simon.marchi@efficios.com>
952
953 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
954 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
955 are used to set the range type's bounds to use set_bounds.
956
0a278aa7
PW
9572020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
958
959 * exec.c (_initialize_exec): Update exec-file-mismatch help.
960
cce20f10
PA
9612020-07-10 Pedro Alves <pedro@palves.net>
962
963 * gdbthread.h (inferior_ref): Define.
964 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
965 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
966 * thread.c
967 (scoped_restore_current_thread::restore):
968 Adjust to gdb::ref_ptr.
969 (scoped_restore_current_thread::~scoped_restore_current_thread):
970 Remove manual decref handling.
971 (scoped_restore_current_thread::scoped_restore_current_thread):
972 Adjust to use
973 inferior_ref::new_reference/thread_info_ref::new_reference.
974 Incref the thread before calling get_frame_id instead of after.
975 Let TARGET_CLOSE_ERROR propagate.
976
6d7aa592
PA
9772020-07-10 Pedro Alves <pedro@palves.net>
978
979 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
980 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
981 NOT_AVAILABLE_ERROR.
982 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
983 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
984
b3e3a4c1
SM
9852020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
986 Pedro Alves <pedro@palves.net>
987
988 PR gdb/26199
989 * infrun.c (threads_are_resumed_pending_p): Delete.
990 (do_target_wait): Remove threads_are_executing and
991 threads_are_resumed_pending_p checks from the inferior_matches
992 lambda. Update comments.
993
d6cc5d98
PA
9942020-07-10 Pedro Alves <pedro@palves.net>
995
996 PR gdb/26199
997 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
998 executing threads.
999
7d3badc6
PA
10002020-07-10 Pedro Alves <pedro@palves.net>
1001
1002 PR gdb/26199
1003 * infrun.c (handle_no_resumed): Handle multiple targets.
1004
42bd97a6
PA
10052020-07-10 Pedro Alves <pedro@palves.net>
1006
1007 PR gdb/26199
1008 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
1009 target_is_async_p.
1010
43667cc6
PA
10112020-07-10 Pedro Alves <pedro@palves.net>
1012
1013 PR gdb/26199
1014 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
1015 threads, not all threads.
1016
96118d11
PA
10172020-07-10 Pedro Alves <pedro@palves.net>
1018
1019 PR gdb/26199
1020 * remote.c (remote_target::open_1): Pass remote target pointer as
1021 data to create_async_event_handler.
1022 (remote_async_inferior_event_handler): Mark async event handler
1023 before returning if the remote target still has either pending
1024 events or unacknowledged notifications.
1025
54904d81
JB
10262020-07-10 John Baldwin <jhb@FreeBSD.org>
1027
1028 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
1029 declaration.
1030 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
1031 function.
1032
f37e5866
JB
10332020-07-09 John Baldwin <jhb@FreeBSD.org>
1034
1035 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
1036 inferior_ptid.
1037
fc238d4a
JB
10382020-07-09 John Baldwin <jhb@FreeBSD.org>
1039
1040 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
1041 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
1042 AT_FREEBSD_PS_STRINGS.
1043
6e2469ff
HD
10442020-07-08 Hannes Domani <ssbssa@yahoo.de>
1045
1046 * auto-load.c (auto_load_objfile_script_1): Convert drive part
1047 of debugfile path on Windows.
1048
d1076c41
JB
10492020-07-08 John Baldwin <jhb@FreeBSD.org>
1050
1051 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
1052 argument to 'data'.
1053
15f3b077
TT
10542020-07-08 Tom Tromey <tromey@adacore.com>
1055
1056 * ada-lang.c (ada_exception_message_1): Use read_memory.
1057
9fc501fd
AB
10582020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1059
1060 PR python/22748
1061 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
1062 special handling for inline frames.
1063 * findvar.c (value_of_register_lazy): Skip inline frames when
1064 creating lazy register values.
1065 * frame.c (frame_id_computed_p): Delete definition.
1066 * frame.h (frame_id_computed_p): Delete declaration.
1067
64cb3757
AB
10682020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1069
1070 * NEWS: Mention additions to Python API.
1071 * python/py-arch.c (archpy_register_groups): New function.
1072 (arch_object_methods): Add 'register_groups' method.
1073 * python/py-registers.c (reggroup_iterator_object): New struct.
1074 (reggroup_object): New struct.
1075 (gdbpy_new_reggroup): New function.
1076 (gdbpy_reggroup_to_string): New function.
1077 (gdbpy_reggroup_name): New function.
1078 (gdbpy_reggroup_iter): New function.
1079 (gdbpy_reggroup_iter_next): New function.
1080 (gdbpy_new_reggroup_iterator): New function
1081 (gdbpy_initialize_registers): Register new types.
1082 (reggroup_iterator_object_type): Define new Python type.
1083 (gdbpy_reggroup_getset): New static global.
1084 (reggroup_object_type): Define new Python type.
1085 * python/python-internal.h
1086
0f767f94
AB
10872020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1088
1089 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
1090 * python/py-arch.c (archpy_registers): New function.
1091 (arch_object_methods): Add 'registers' method.
1092 * python/py-registers.c: New file.
1093 * python/python-internal.h
1094 (gdbpy_new_register_descriptor_iterator): Declare.
1095 (gdbpy_initialize_registers): Declare.
1096 * python/python.c (do_start_initialization): Call
1097 gdbpy_initialize_registers.
1098 * NEWS: Mention additions to the Python API.
1099
87dbc774
AB
11002020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1101
1102 * NEWS: Mention new Python API method.
1103 * python/py-unwind.c (pending_framepy_architecture): New function.
1104 (pending_frame_object_methods): Add architecture method.
1105
3bc98c0c
AB
11062020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1107
1108 * gdbarch.c: Regenerate.
1109 * gdbarch.h: Regenerate.
1110 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
1111 (gdbarch_data): Use internal_error for the case where
1112 deprecated_set_gdbarch_data was originally needed.
1113 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
1114 and use passed in obstack.
1115 (libunwind_frame_set_descr): Should no longer get back NULL from
1116 gdbarch_data.
1117 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
1118 type.
1119 * user-regs.c (user_regs_init): Update parameters, and use passed
1120 in obstack.
1121 (user_reg_add): Should no longer get back NULL from gdbarch_data.
1122 (_initialize_user_regs): Register as a pre-init gdbarch data type.
1123
d8cc8af6
TV
11242020-07-06 Tom de Vries <tdevries@suse.de>
1125
1126 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
1127 End-Of-Sequence in lte_is_less_than.
1128 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
1129 "gdb: Don't reorder line table entries too much when sorting".
1130
947f7597
TV
11312020-07-06 Tom de Vries <tdevries@suse.de>
1132
1133 PR tui/26205
1134 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
1135
1e7c1b22
TV
11362020-07-05 Tom de Vries <tdevries@suse.de>
1137
1138 PR build/26187
1139 * inferior.h (struct infcall_suspend_state_deleter): If available, use
1140 std::uncaught_exceptions instead of deprecated
1141 std::uncaught_exception.
1142
a36158ec
SM
11432020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1144
1145 * macroexp.h (macro_stringify): Return
1146 gdb::unique_xmalloc_ptr<char>.
1147 * macroexp.c (macro_stringify): Likewise.
1148 * macrotab.c (fixup_definition): Update.
1149
14d960c8
SM
11502020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1151
1152 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
1153 (lex_one_token): Update.
1154 * macroexp.c (struct macro_buffer) <release>: Return
1155 gdb::unique_xmalloc_ptr<char>.
1156 (macro_stringify): Update.
1157 (macro_expand): Update.
1158 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
1159 * macroexp.h (macro_expand_next): Likewise.
1160
211d5b1c
SM
11612020-07-02 Simon Marchi <simon.marchi@efficios.com>
1162
1163 * macroexp.h (macro_lookup_ftype): Remove.
1164 (macro_expand, macro_expand_once, macro_expand_next): Remove
1165 lookup function parameters, add scope parameter.
1166 * macroexp.c (scan, substitute_args, expand, maybe_expand,
1167 macro_expand, macro_expand_once, macro_expand_next): Likewise.
1168 * macroscope.h (standard_macro_lookup): Change parameter type
1169 to macro_scope.
1170 * macroscope.c (standard_macro_lookup): Likewise.
1171 * c-exp.y (lex_one_token): Update.
1172 * macrocmd.c (macro_expand_command): Likewise.
1173 (macro_expand_once_command): Likewise.
1174
b1a35af2
SM
11752020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1176
1177 * inf-loop.c (inferior_event_handler): Remove client_data param.
1178 * inf-loop.h (inferior_event_handler): Likewise.
1179 * infcmd.c (step_1): Adjust.
1180 * infrun.c (proceed): Adjust.
1181 (fetch_inferior_event): Remove client_data param.
1182 (infrun_async_inferior_event_handler): Adjust.
1183 * infrun.h (fetch_inferior_event): Remove `void *` param.
1184 * linux-nat.c (handle_target_event): Adjust.
1185 * record-btrace.c (record_btrace_handle_async_inferior_event):
1186 Adjust.
1187 * record-full.c (record_full_async_inferior_event_handler):
1188 Adjust.
1189 * remote.c (remote_async_inferior_event_handler): Adjust.
1190
1cdf9e33
TT
11912020-07-01 Tom Tromey <tom@tromey.com>
1192
1193 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
1194 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
1195
32c1e210
TT
11962020-07-01 Tom Tromey <tom@tromey.com>
1197
1198 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
1199 tui_gen_win_info.
1200 (tui_win_info::make_window): Merge with
1201 tui_gen_win_info::make_window.
1202 (tui_win_info::make_visible): Move from tui_gen_win_info.
1203 * tui/tui-win.c (tui_win_info::max_width): Move from
1204 tui_gen_win_info.
1205 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
1206 type.
1207 <window_factory>: Likewise.
1208 * tui/tui-layout.c (tui_win_info::resize): Move from
1209 tui_gen_win_info.
1210 (make_standard_window): Change return type.
1211 (get_locator_window, tui_get_window_by_name): Likewise.
1212 (tui_layout_window::apply): Remove a cast.
1213 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
1214 (struct tui_win_info): Merge with tui_gen_win_info.
1215 (struct tui_gen_win_info): Remove.
1216
a30cb6da
TT
12172020-07-01 Tom Tromey <tom@tromey.com>
1218
1219 * tui/tui-stack.h (struct tui_locator_window): Derive from
1220 tui_win_info.
1221 <do_scroll_horizontal, do_scroll_vertical>: New methods.
1222 <can_box>: New method.
1223
1eb2161f
TT
12242020-07-01 Tom Tromey <tom@tromey.com>
1225
1226 * tui/tui-stack.h (struct tui_locator_window): Remove body.
1227
7134f2eb
TT
12282020-07-01 Tom Tromey <tom@tromey.com>
1229
1230 * tui/tui-regs.c (tui_data_window::display_registers_from)
1231 (tui_data_window::display_registers_from)
1232 (tui_data_window::first_data_item_displayed)
1233 (tui_data_window::delete_data_content_windows): Update.
1234 (tui_data_window::refresh_window, tui_data_window::no_refresh):
1235 Remove.
1236 (tui_data_window::check_register_values): Update.
1237 (tui_data_item_window::rerender): Add parameters. Update.
1238 (tui_data_item_window::refresh_window): Remove.
1239 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
1240 virtual.
1241 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
1242 tui_gen_win_info.
1243 <refresh_window, max_height, min_height>: Remove.
1244 <rerender>: Add parameters.
1245 <x, y, visible>: New members.
1246 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
1247 <m_item_width>: New member.
1248
22b7b041
TT
12492020-07-01 Tom Tromey <tom@tromey.com>
1250
1251 * tui/tui-regs.c (tui_data_window::show_register_group)
1252 (tui_data_window::check_register_values): Update.
1253 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
1254 from item_no.
1255
c9753adb
TT
12562020-07-01 Tom Tromey <tom@tromey.com>
1257
1258 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
1259 useless "if".
1260
9ab26b4a
TT
12612020-07-01 Tom Tromey <tom@tromey.com>
1262
1263 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
1264 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
1265
e555083f
TT
12662020-07-01 Tom Tromey <tom@tromey.com>
1267
1268 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
1269 * tui/tui-winsource.h (enum tui_line_or_address_kind)
1270 (struct tui_line_or_address): Move from tui-data.h.
1271 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
1272 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
1273 (tui_cmd_window, tui_source_window_base, tui_source_window)
1274 (tui_disasm_window): Don't declare.
1275 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
1276 to tui-winsource.h.
1277 (SINGLE_KEY): Move to tui-stack.c.
1278
7a02bab7
TT
12792020-07-01 Tom Tromey <tom@tromey.com>
1280
1281 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
1282 std::string.
1283 * tui/tui-regs.c (class tab_expansion_file): New.
1284 (tab_expansion_file::write): New method.
1285 (tui_register_format): Change return type. Use
1286 tab_expansion_file.
1287 (tui_get_register, tui_data_window::display_registers_from)
1288 (tui_data_item_window::rerender): Update.
1289 * tui/tui-io.h (tui_expand_tabs): Don't declare.
1290 * tui/tui-io.c (tui_expand_tabs): Remove.
1291
ea68593b
TT
12922020-07-01 Tom Tromey <tom@tromey.com>
1293
1294 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
1295
a8caed5d
FS
12962020-07-01 Fangrui Song <maskray@google.com>
1297
1298 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
1299
9cdf9820
AKS
13002020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1301
1302 * dwarf2/read.c (set_die_type): Removed conditions to restrict
1303 forms for DW_AT_associated and DW_AT_allocated attributes,
1304 which is already checked in function attr_to_dynamic_prop.
1305
a1520ad8
TT
13062020-06-30 Tom Tromey <tromey@adacore.com>
1307
1308 * dwarf2/read.c (quirk_rust_enum): Correctly call
1309 alloc_rust_variant for default-less enum.
1310
5ac58899
TT
13112020-06-30 Tom Tromey <tromey@adacore.com>
1312
1313 PR build/26183:
1314 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
1315 gdb::to_string.
1316
19b187a9
SM
13172020-06-29 Simon Marchi <simon.marchi@efficios.com>
1318
1319 * gdbarch.sh (displaced_step_copy_insn): Update doc.
1320 * gdbarch.h: Re-generate.
1321
cd4c4c07
TT
13222020-06-28 Tom Tromey <tom@tromey.com>
1323
1324 * command.h (cmd_types): Remove.
1325 (cmd_type): Don't declare.
1326 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
1327 typedef.
1328 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
1329 * cli/cli-decode.c (cmd_type): Remove.
1330
05779d57
PA
13312020-06-27 Pedro Alves <palves@redhat.com>
1332
1333 * fork-child.c (prefork_hook): Adjust.
1334 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
1335 Delete.
1336 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
1337 * inferior.c (inferior::set_tty, inferior::tty): New methods.
1338 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
1339 Remove declarations.
1340 (struct inferior) <set_tty, tty>: New methods.
1341 (struct inferior) <terminal>: Rename to ...
1342 (struct inferior) <m_terminal>: ... this and make private.
1343 * main.c (captured_main_1): Adjust.
1344 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
1345 (mi_cmd_inferior_tty_show): Adjust.
1346 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
1347 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
1348
1776e3e5
NA
13492020-06-26 Nick Alcock <nick.alcock@oracle.com>
1350
1351 * configure.ac: Add --enable-libctf: handle --disable-static
1352 properly.
1353 * acinclude.m4: sinclude ../config/enable.m4.
1354 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
1355 (LIBCTF): Substitute in.
1356 (CTF_DEPS): New, likewise.
1357 (CLIBS): libctf needs symbols from libbfd: move earlier.
1358 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
1359 flags.
1360 * ctfread.c: Surround in ENABLE_LIBCTF.
1361 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
1362 * configure: Regenerate.
1363 * config.in: Likewise.
1364
58373b80
SM
13652020-06-25 Simon Marchi <simon.marchi@efficios.com>
1366
1367 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
1368
277474ee
SM
13692020-06-25 Simon Marchi <simon.marchi@efficios.com>
1370
1371 * inferior.h (struct inferior) <terminal>: Change type to
1372 gdb::unique_xmalloc_ptr<char>.
1373 * inferior.c (inferior::~inferior): Don't free inf->terminal.
1374 * infcmd.c (set_inferior_io_terminal): Don't free terminal
1375 field, adjust to unique pointer.
1376 (get_inferior_io_terminal): Adjust to unique pointer.
1377
6d74da72
AB
13782020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1379
1380 * riscv-tdep.c (riscv_print_registers_info): Loop over all
1381 registers, not just the known core set of registers.
1382
2e52d038
AB
13832020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1384
1385 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
1386 fflags, frm, and fcsr registers.
1387 (riscv_register_reggroup_p): Remove unknown CSRs from save and
1388 restore groups.
1389 (riscv_tdesc_unknown_reg): New function.
1390 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
1391 tdesc_use_registers.
1392 * riscv-tdep.h (struct gdbarch_tdep): Add
1393 unknown_csrs_first_regnum, unknown_csrs_count,
1394 duplicate_fflags_regnum, duplicate_frm_regnum, and
1395 duplicate_fcsr_regnum fields.
1396
be64fd07
AB
13972020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1398
1399 * target-descriptions.c (tdesc_use_registers): Add new parameter a
1400 callback, use the callback (when not null) to help number unknown
1401 registers.
1402 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
1403 (tdesc_use_registers): Add extra parameter to declaration.
1404
3b9fce96
AB
14052020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1406
1407 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
1408 in the file.
1409 (class riscv_pending_register_alias): Likewise.
1410 (riscv_register_feature::register_info): Change 'required_p' field
1411 to 'required', and change its type. Add 'check' member function.
1412 (riscv_register_feature::register_info::check): Define new member
1413 function.
1414 (riscv_xreg_feature): Change initialisation of 'required' field.
1415 (riscv_freg_feature): Likewise.
1416 (riscv_virtual_feature): Likewise.
1417 (riscv_csr_feature): Likewise.
1418 (riscv_check_tdesc_feature): Take extra parameter, the csr
1419 tdesc_feature, rewrite the function to use the new
1420 riscv_register_feature::register_info::check function.
1421 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
1422
865bad26
AB
14232020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1424
1425 * features/Makefile: Remove all references to the deleted files
1426 below.
1427 * features/riscv/32bit-csr.c: Deleted.
1428 * features/riscv/32bit-csr.xml: Deleted.
1429 * features/riscv/64bit-csr.c: Deleted.
1430 * features/riscv/64bit-csr.xml: Deleted.
1431 * features/riscv/rebuild-csr-xml.sh: Deleted.
1432
ed69cbc8
AB
14332020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1434
1435 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
1436 whitespace error for declaration of names member variable.
1437 (struct riscv_register_feature): Add new prefer_first_name member
1438 variable, and fix whitespace error in declaration of registers.
1439 (riscv_xreg_feature): Initialize prefer_first_name field.
1440 (riscv_freg_feature): Likewise.
1441 (riscv_virtual_feature): Likewise.
1442 (riscv_csr_feature): Likewise.
1443 (riscv_register_name): Expand on comments. Remove register name
1444 modifications for CSR and virtual registers.
1445
4445e8f5
AB
14462020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1447
1448 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
1449 errors.
1450
767a879e
AB
14512020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1452
1453 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
1454 riscv-opc.h.
1455 (class riscv_pending_register_alias): New class.
1456 (riscv_check_tdesc_feature): Take vector of pending aliases and
1457 populate it as appropriate.
1458 (riscv_setup_register_aliases): Delete.
1459 (riscv_gdbarch_init): Create vector of pending aliases and pass it
1460 to riscv_check_tdesc_feature in all cases. Use the vector to
1461 create the register aliases.
1462
bb6e55f3
RO
14632020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1464
1465 * sol2-tdep.c (sol2_static_transform_name): Remove.
1466 (sol2_init_abi): Don't register it.
1467 * gdbarch.sh (static_transform_name): Remove.
1468 * gdbarch.c, gdbarch.h: Regenerate.
1469
1470 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
1471 gdbarch_static_transform_name.
1472 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
1473 * stabsread.c (define_symbol) <'X'>: Remove.
1474 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
1475 handling.
1476 <'V'>: Likewise.
1477 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
1478 <'S'>: Remove call to gdbarch_static_transform_name.
1479
c6d36836
RO
14802020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1481
1482 * procfs.c (procfs_pre_trace): New function.
1483 (procfs_target::create_inferior): Pass it to fork_inferior.
1484
a7e6196b
RO
14852020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1486
1487 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
1488 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
1489 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
1490 sol2-tdep.o, sparc-sol2-tdep.o.
1491 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
1492 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
1493 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
1494 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
1495
d412e696
RO
14962020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1497
1498 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
1499 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
1500 Call sol2_init_abi.
1501 Remove calls to set_gdbarch_skip_solib_resolver,
1502 set_gdbarch_core_pid_to_str.
1503 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
1504 (i386_sol2_static_transform_name): Remove.
1505 (i386_sol2_init_abi): Call sol2_init_abi.
1506 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1507 set_gdbarch_static_transform_name,
1508 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1509 Use sol2_sigtramp_p.
1510 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
1511 (sol2_sigtramp_p): New function.
1512 (sol2_static_transform_name): New function.
1513 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
1514 (sol2_init_abi): New function.
1515 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
1516 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
1517 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
1518 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
1519 (sparc_sol2_static_transform_name): Remove.
1520 (sparc32_sol2_init_abi): Call sol2_init_abi.
1521 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1522 set_gdbarch_static_transform_name,
1523 set_gdbarch_skip_solib_resolver,
1524 set_gdbarch_core_pid_to_str.
1525 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
1526 (sparc_sol2_static_transform_name): Remove
1527 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
1528 call sol2_sigtramp_p.
1529 (sparc64_sol2_init_abi): Call sol2_init_abi.
1530 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1531 set_gdbarch_static_transform_name,
1532 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1533
a8654e7d
PW
15342020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1535
1536 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
1537 * exec.c (validate_exec_file): If from_tty, set both
1538 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
1539 * symfile.c (symbol_file_add_with_addrs): if always_confirm
1540 and from_tty, unconditionally ask a confirmation.
1541
caa7fd04
AB
15422020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1543
1544 * target-descriptions.c (tdesc_architecture_name): Protect against
1545 NULL pointer dereference.
1546 (maint_print_xml_tdesc_cmd): New function.
1547 (_initialize_target_descriptions): Register new 'maint print
1548 xml-tdesc' command and give it the filename completer.
1549 * NEWS: Mention new 'maint print xml-tdesc' command.
1550
fbf42f4e
AB
15512020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1552
1553 * target-descriptions.c (class tdesc_compatible_info): New class.
1554 (struct target_desc): Change type of compatible vector.
1555 (tdesc_compatible_p): Update for change in type of
1556 target_desc::compatible.
1557 (tdesc_compatible_info_list): New function.
1558 (tdesc_compatible_info_arch_name): New function.
1559 (tdesc_add_compatible): Update for change in type of
1560 target_desc::compatible.
1561 (print_c_tdesc::visit_pre): Likewise.
1562
20821f4e
AB
15632020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1564
1565 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
1566 whitespace to underscore.
1567 (maint_print_c_tdesc_cmd): Use fake filename for target
1568 descriptions that came from the target.
1569 (_initialize_target_descriptions): Add filename command completion
1570 for 'maint print c-tdesc'.
1571
1fb5ee62
SM
15722020-06-23 Simon Marchi <simon.marchi@efficios.com>
1573
1574 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
1575 lines.
1576
fc3ecb3e
SM
15772020-06-23 Simon Marchi <simon.marchi@efficios.com>
1578
1579 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
1580 lines.
1581 (dwarf2_find_location_expression): Likewise.
1582 (call_site_parameter_matches): Likewise.
1583 (dwarf2_compile_expr_to_ax): Likewise.
1584 (disassemble_dwarf_expression): Likewise.
1585 (loclist_describe_location): Likewise.
1586
236ef034
PA
15872020-06-23 Pedro Alves <palves@redhat.com>
1588
1589 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
1590 progspace-and-thread.h. Include scoped-mock-context.h instead.
1591 (register_to_value_test): Use scoped_mock_context.
1592 * regcache.c: Include "scoped-mock-context.h".
1593 (cooked_read_test): Don't error out if a target is already pushed.
1594 Use scoped_mock_context. Adjust.
1595 * scoped-mock-context.h: New file.
1596
39e7ecca
AB
15972020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1598
1599 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
1600 initializer.
1601 (ada_language::is_string_type_p): New member function.
1602 * c-lang.c (c_language_data): Delete la_is_string_type_p
1603 initializer.
1604 (cplus_language_data): Likewise.
1605 (asm_language_data): Likewise.
1606 (minimal_language_data): Likewise.
1607 * d-lang.c (d_language_data): Likewise.
1608 * f-lang.c (f_is_string_type_p): Delete function, implementation
1609 moved to f_language::is_string_type_p.
1610 (f_language_data): Delete la_is_string_type_p initializer.
1611 (f_language::is_string_type_p): New member function,
1612 implementation from f_is_string_type_p.
1613 * go-lang.c (go_is_string_type_p): Delete function, implementation
1614 moved to go_language::is_string_type_p.
1615 (go_language_data): Delete la_is_string_type_p initializer.
1616 (go_language::is_string_type_p): New member function,
1617 implementation from go_is_string_type_p.
1618 * language.c (language_defn::is_string_type_p): Define new member
1619 function.
1620 (default_is_string_type_p): Make static, add comment copied from
1621 header file.
1622 (unknown_language_data): Delete la_is_string_type_p initializer.
1623 (unknown_language::is_string_type_p): New member function.
1624 (auto_language_data): Delete la_is_string_type_p initializer.
1625 (auto_language::is_string_type_p): New member function.
1626 * language.h (language_data): Delete la_is_string_type_p field.
1627 (language_defn::is_string_type_p): Declare new function.
1628 (default_is_string_type_p): Delete desclaration, move comment to
1629 definition.
1630 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
1631 moved to m2_language::is_string_type_p.
1632 (m2_language_data): Delete la_is_string_type_p initializer.
1633 (m2_language::is_string_type_p): New member function,
1634 implementation from m2_is_string_type_p.
1635 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
1636 initializer.
1637 * opencl-lang.c (opencl_language_data): Likewise.
1638 * p-lang.c (pascal_is_string_type_p): Delete function,
1639 implementation moved to pascal_language::is_string_type_p.
1640 (pascal_language_data): Delete la_is_string_type_p initializer.
1641 (pascal_language::is_string_type_p): New member function,
1642 implementation from pascal_is_string_type_p.
1643 * rust-lang.c (rust_is_string_type_p): Delete function,
1644 implementation moved to rust_language::is_string_type_p.
1645 (rust_language_data): Delete la_is_string_type_p initializer.
1646 (rust_language::is_string_type_p): New member function,
1647 implementation from rust_is_string_type_p.
1648 * valprint.c (val_print_scalar_or_string_type_p): Update call to
1649 is_string_type_p.
1650
4ffc13fb
AB
16512020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1652
1653 * ada-lang.c (ada_language_data): Delete la_print_typedef
1654 initializer.
1655 (ada_language::print_typedef): New member function.
1656 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
1657 (cplus_language_data): Likewise.
1658 (asm_language_data): Likewise.
1659 (minimal_language_data): Likewise.
1660 * d-lang.c (d_language_data): Likewise.
1661 * f-lang.c (f_language_data): Likewise.
1662 (f_language::print_typedef): New member function.
1663 * go-lang.c (go_language_data): Delete la_print_typedef
1664 initializer.
1665 * language.c (language_defn::print_typedef): Define member
1666 function.
1667 (unknown_language_data): Delete la_print_typedef initializer.
1668 (unknown_language::print_typedef): New member function.
1669 (auto_language_data): Delete la_print_typedef initializer.
1670 (auto_language::print_typedef): New member function.
1671 * language.h (language_data): Delete la_print_typedef field.
1672 (language_defn::print_typedef): Declare new member function.
1673 (LA_PRINT_TYPEDEF): Update call to print_typedef.
1674 (default_print_typedef): Delete declaration.
1675 * m2-lang.c (m2_language_data): Delete la_print_typedef
1676 initializer.
1677 (m2_language::print_typedef): New member function.
1678 * objc-lang.c (objc_language_data): Delete la_print_typedef
1679 initializer.
1680 * opencl-lang.c (opencl_language_data): Likewise.
1681 * p-lang.c (pascal_language_data): Likewise.
1682 (pascal_language::print_typedef): New member function.
1683 * rust-lang.c (rust_print_typedef): Delete function,
1684 implementation moved to rust_language::print_typedef.
1685 (rust_language): Delete la_print_typedef initializer.
1686 (rust_language::print_typedef): New member function,
1687 implementation from rust_print_typedef.
1688 * typeprint.c (default_print_typedef): Delete.
1689
d711ee67
AB
16902020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1691
1692 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
1693 (ada_language::printstr): New member function.
1694 * c-lang.c (c_language_data): Delete la_printstr 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_printstr): Rename to f_language::printstr.
1700 (f_language_data): Delete la_printstr initializer.
1701 (f_language::printstr): New member function, implementation from
1702 f_printstr.
1703 * go-lang.c (go_language_data): Delete la_printstr initializer.
1704 * language.c (language_defn::printstr): Define new member
1705 function.
1706 (unk_lang_printstr): Delete.
1707 (unknown_language_data): Delete la_printstr initializer.
1708 (unknown_language::printstr): New member function.
1709 (auto_language_data): Delete la_printstr initializer.
1710 (auto_language::printstr): New member function.
1711 * language.h (language_data): Delete la_printstr field.
1712 (language_defn::printstr): Declare new member function.
1713 (LA_PRINT_STRING): Update call to printstr.
1714 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
1715 (m2_language_data): Delete la_printstr initializer.
1716 (m2_language::printstr): New member function, implementation from
1717 m2_printstr.
1718 * objc-lang.c (objc_language_data): Delete la_printstr
1719 initializer.
1720 * opencl-lang.c (opencl_language_data): Likewise.
1721 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
1722 (pascal_language_data): Delete la_printstr initializer.
1723 (pascal_language::printstr): New member function, implementation
1724 from pascal_printstr.
1725 * p-lang.h (pascal_printstr): Delete declaration.
1726 * rust-lang.c (rust_printstr): Update header comment.
1727 (rust_language_data): Delete la_printstr initializer.
1728 (rust_language::printstr): New member function.
1729
52b50f2c
AB
17302020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1731
1732 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
1733 (ada_language::printchar): New member function.
1734 * c-lang.c (c_language_data): Delete la_printchar initializer.
1735 (cplus_language_data): Likewise.
1736 (asm_language_data): Likewise.
1737 (minimal_language_data): Likewise.
1738 * d-lang.c (d_language_data): Likewise.
1739 * f-lang.c (f_printchar): Rename to f_language::printchar.
1740 (f_language_data): Delete la_printchar initializer.
1741 (f_language::printchar): New member function, implementation from
1742 f_printchar.
1743 * go-lang.c (go_language_data): Delete la_printchar initializer.
1744 * language.c (unk_lang_printchar): Delete.
1745 (language_defn::printchar): Define new member function.
1746 (unknown_language_data): Delete la_printchar initializer.
1747 (unknown_language::printchar): New member function.
1748 (auto_language_data): Delete la_printchar initializer.
1749 (auto_language::printchar): New member function.
1750 * language.h (language_data): Delete la_printchar field.
1751 (language_defn::printchar): Declare new member function.
1752 (LA_PRINT_CHAR): Update call to printchar.
1753 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
1754 (m2_language::printchar): New member function.
1755 * objc-lang.c (objc_language_data): Delete la_printchar
1756 initializer.
1757 * opencl-lang.c (opencl_language_data): Likewise.
1758 * p-lang.c (pascal_language_data): Delete la_printchar
1759 initializer.
1760 (pascal_language::printchar): New member function.
1761 * rust-lang.c (rust_printchar): Rename to
1762 rust_language::printchar.
1763 (rust_language_data): Delete la_printchar initializer.
1764 (rust_language::printchar): New member function, implementation
1765 from rust_printchar.
1766
ec8cec5b
AB
17672020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1768
1769 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
1770 (ada_language_data): Delete la_emitchar initializer.
1771 (ada_language::emitchar): New member function, implementation from
1772 emit_char.
1773 * c-lang.c (c_language_data): Delete la_emitchar initializer.
1774 (cplus_language_data): Likewise.
1775 (asm_language_data): Likewise.
1776 (minimal_language_data): Likewise.
1777 * d-lang.c (d_language_data): Likewise.
1778 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
1779 (f_language_data): Delete la_emitchar initializer.
1780 (f_language::emitchar): New member function, implementation from
1781 f_emit_char.
1782 * go-lang.c (go_language_data): Delete la_emitchar initializer.
1783 * language.c (unk_lang_emit_char): Delete.
1784 (language_defn::emitchar): New member function definition.
1785 (unknown_language_data): Delete la_emitchar initializer.
1786 (unknown_language::emitchar): New member function.
1787 (auto_language_data): Delete la_emitchar initializer.
1788 (auto_language::emitchar): New member function.
1789 * language.h (language_data): Delete la_emitchar field.
1790 (language_defn::emitchar): New member field declaration.
1791 (LA_EMIT_CHAR): Update call to emitchar.
1792 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
1793 (m2_language_data): Delete la_emitchar initializer.
1794 (m2_language::emitchar): New member function, implementation from
1795 m2_emit_char.
1796 * objc-lang.c (objc_language_data): Delete la_emitchar
1797 initializer.
1798 * opencl-lang.c (opencl_language_data): Likewise.
1799 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
1800 (pascal_language_data): Delete la_emitchar initializer.
1801 (pascal_language::emitchar): New member function, implementation
1802 from pascal_emit_char.
1803 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
1804 (rust_language_data): Delete la_emitchar initializer.
1805 (rust_language::emitchar): New member function, implementation
1806 from rust_emitchar.
1807
1bf9c363
AB
18082020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1809
1810 * ada-lang.c (resolve): Rename to ada_language::post_parser.
1811 (ada_language_data): Delete la_post_parser initializer.
1812 (ada_language::post_parser): New member function.
1813 * c-lang.c (c_language_data): Delete la_post_parser initializer.
1814 (cplus_language_data): Likewise.
1815 (asm_language_data): Likewise.
1816 (minimal_language_data): Likewise.
1817 * d-lang.c (d_language_data): Likewise.
1818 * f-lang.c (f_language_data): Likewise.
1819 * go-lang.c (go_language_data): Likewise.
1820 * language.c (unknown_language_data): Likewise.
1821 (auto_language_data): Likewise.
1822 * language.h (language_data): Delete la_post_parser field.
1823 (language_defn::post_parser): New member function.
1824 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
1825 * objc-lang.c (objc_language_data): Likewise.
1826 * opencl-lang.c (opencl_language_data): Likewise.
1827 * p-lang.c (pascal_language_data): Likewise.
1828 * parse.c (parse_exp_in_context): Update call to post_parser.
1829 (null_post_parser): Delete definition.
1830 * parser-defs.h (null_post_parser): Delete declaration.
1831 * rust-lang.c (rust_language_data): Delete la_post_parser
1832 initializer.
1833
87afa652
AB
18342020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1835
1836 * ada-lang.c (parse): Rename to ada_language::parser.
1837 (ada_language_data): Delete la_parser initializer.
1838 (ada_language::parser): New member function, implementation from
1839 parse.
1840 * c-lang.c (c_language_data): Delete la_parser initializer.
1841 (cplus_language_data): Likewise.
1842 (asm_language_data): Likewise.
1843 (minimal_language_data): Likewise.
1844 * d-lang.c (d_language_data): Likewise.
1845 (d_language::parser): New member function.
1846 * f-lang.c (f_language_data): Delete la_parser initializer.
1847 (f_language::parser): New member function.
1848 * go-lang.c (go_language_data): Delete la_parser initializer.
1849 (go_language::parser): New member function.
1850 * language.c (unk_lang_parser): Delete.
1851 (language_defn::parser): Define new member function.
1852 (unknown_language_data): Delete la_parser initializer.
1853 (unknown_language::parser): New member function.
1854 (auto_language_data): Delete la_parser initializer.
1855 (auto_language::parser): New member function.
1856 * language.h (language_data): Delete la_parser field.
1857 (language_defn::parser): Declare new member function.
1858 * m2-lang.c (m2_language_data): Delete la_parser initializer.
1859 (m2_language::parser): New member function.
1860 * objc-lang.c (objc_language_data): Delete la_parser initializer.
1861 * opencl-lang.c (opencl_language_data): Likewise.
1862 * p-lang.c (pascal_language_data): Likewise.
1863 (pascal_language::parser): New member function.
1864 * parse.c (parse_exp_in_context): Update call to parser.
1865 * rust-lang.c (rust_language_data): Delete la_parser initializer.
1866 (rust_language::parser): New member function.
1867
37825800
AB
18682020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1869
1870 * top.c (print_gdb_configuration): Print --with-python-libdir
1871 configuration value.
1872
5b860c93
PW
18732020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1874
1875 * NEWS: Mention change to the alias command.
1876
cf00cd6f
PW
18772020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1878
1879 * cli/cli-cmds.c (lookup_cmd_for_default_args)
1880 (alias_command_completer)
1881 (make_alias_options_def_group): New functions.
1882 (alias_opts, alias_option_defs): New struct and array.
1883 (alias_usage_error): Update usage.
1884 (alias_command): Handles optional DEFAULT-ARGS... arguments.
1885 Use option framework.
1886 (_initialize_cli_cmds): Update alias command help.
1887 Update aliases command help.
1888 (show_user):
1889 Add NULL for new default_args lookup_cmd argument.
1890 (valid_command_p): Rename to validate_aliased_command.
1891 Add NULL for new default_args lookup_cmd argument. Verify that the
1892 aliased_command has no default args.
1893 * cli/cli-decode.c (help_cmd): Show aliases definitions.
1894 (lookup_cmd_1, lookup_cmd): New argument default_args.
1895 (add_alias_cmd):
1896 Add NULL for new default_args lookup_cmd argument.
1897 (print_help_for_command): Show default args under the layout
1898 alias some_alias = some_aliased_cmd some_alias_default_arg.
1899 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
1900 xfree default_args in destructor.
1901 * cli/cli-script.c (process_next_line, do_define_command):
1902 Add NULL for new default_args lookup_cmd argument.
1903 * command.h: Declare new default_args argument in lookup_cmd
1904 and lookup_cmd_1.
1905 * completer.c (complete_line_internal_1):
1906 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1907 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
1908 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
1909 Likewise.
1910 * infcmd.c (_initialize_infcmd): Likewise.
1911 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
1912 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
1913 * python/py-param.c (add_setshow_generic): Likewise.
1914 * remote.c (_initialize_remote): Likewise.
1915 * top.c (execute_command): Prepend default_args if command has some.
1916 (set_verbose):
1917 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1918 * tracepoint.c (validate_actionline, encode_actions_1):
1919 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1920
bd920864
TBA
19212020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1922
1923 * jit.c (jit_read_descriptor): Use bool as the return type.
1924 (jit_breakpoint_re_set_internal): Use bool as the return type.
1925 Invert the return value logic; return true if the jit breakpoint
1926 has been successfully initialized.
1927 (jit_inferior_init): Update the call to
1928 jit_breakpoint_re_set_internal.
1929
f8098322
PA
19302020-06-22 Pedro Alves <palves@redhat.com>
1931
1932 PR gdb/25939
1933 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
1934 Use the current inferior instead. Don't return
1935 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
1936 wait again.
1937 * sol-thread.c (sol_thread_target::wait): Don't reference
1938 inferior_ptid.
1939 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
1940 (sol_update_thread_list_callback): Use the current inferior's pid
1941 instead of inferior_ptid.
1942
196535a6
RO
19432020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1944
1945 * procfs.c: Cleanup many comments.
1946
1947 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
1948 (AFTER_WATCHFLAG): Replace by value.
1949
1950 (MAIN_PROC_NAME_FORMAT): Inline ...
1951 (create_procinfo): ... here.
1952
1953 (procfs_debug_inferior): Remove SYS_exec handling.
1954 (syscall_is_exec): Likewise.
1955 (procfs_set_exec_trap): Likewise.
1956
1957 (syscall_is_lwp_exit): Inline in callers.
1958 (syscall_is_exit): Likewise.
1959 (syscall_is_exec): Likewise.
1960 (syscall_is_lwp_create): Likewise.
1961
1962 (invalidate_cache): Remove #if 0 code.
1963
1964 (make_signal_thread_runnable): Remove.
1965 (procfs_target::resume): Remove #if 0 code.
1966
cf6f3e86
RO
19672020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1968
1969 PR gdb/25939
1970 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
1971 call ...
1972 (procfs_target::create_inferior): ... here.
1973
48e9cc84
PW
19742020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1975
1976 * exec.c (validate_exec_file): Ensure the build-id is up to
1977 date by calling reopen_exec_file (that checks file timestamp
1978 to decide to re-read the file).
1979
3922b302
PA
19802020-06-18 Pedro Alves <palves@redhat.com>
1981
1982 PR gdb/25412
1983 * gdbthread.h (delete_thread, delete_thread_silent)
1984 (find_thread_ptid): Update comments.
1985 * thread.c (current_thread_): New global.
1986 (is_current_thread): Move higher, and reimplement.
1987 (inferior_thread): Reimplement.
1988 (set_thread_exited): Use bool. Add assertions.
1989 (add_thread_silent): Simplify thread-reuse handling by always
1990 calling delete_thread.
1991 (delete_thread): Remove intro comment.
1992 (find_thread_ptid): Skip exited threads.
1993 (switch_to_thread_no_regs): Write to current_thread_.
1994 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
1995 INFERIOR_PTID. Clear current_thread_.
1996
6dbdab44
PA
19972020-06-18 Pedro Alves <palves@redhat.com>
1998
1999 * aix-thread.c (pd_update): Use switch_to_thread.
2000
2da4b788
PA
20012020-06-18 Pedro Alves <palves@redhat.com>
2002
2003 * ravenscar-thread.c (ravenscar_thread_target): Update.
2004 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
2005 (ravenscar_thread_target::add_active_thread): ... this. Don't
2006 set m_base_ptid here. Update to avoid referencing inferior_ptid.
2007 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
2008
50838d1b
PA
20092020-06-18 Pedro Alves <palves@redhat.com>
2010
2011 * nat/windows-nat.c (current_windows_thread): Remove.
2012 * nat/windows-nat.h (current_windows_thread): Remove.
2013 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
2014 Adjust.
2015 (display_selectors): Adjust to fetch the current
2016 windows_thread_info based on inferior_ptid.
2017 (fake_create_process): No longer write to current_windows_thread.
2018 (windows_nat_target::get_windows_debug_event):
2019 Don't set inferior_ptid or current_windows_thread.
2020 (windows_nat_target::wait): Adjust to not rely on
2021 current_windows_thread.
2022 (do_initial_windows_stuff): Now a method of windows_nat_target.
2023 Switch to the last_ptid thread.
2024 (windows_nat_target::attach): Adjust.
2025 (windows_nat_target::detach): Use switch_to_no_thread instead of
2026 writing to inferior_ptid directly.
2027 (windows_nat_target::create_inferior): Adjust.
2028
31ce04e9
PA
20292020-06-18 Pedro Alves <palves@redhat.com>
2030
2031 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
2032
1ee1a363
PA
20332020-06-18 Pedro Alves <palves@redhat.com>
2034
2035 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
2036 after creating it, instead of writing to inferior_ptid. Don't
2037 write to inferior_ptid.
2038
6d350754
PA
20392020-06-18 Pedro Alves <palves@redhat.com>
2040
2041 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
2042
5d971d48
PA
20432020-06-18 Pedro Alves <palves@redhat.com>
2044
2045 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
2046 it, instead of writing to inferior_ptid.
2047
86e57d1b
PA
20482020-06-18 Pedro Alves <palves@redhat.com>
2049
2050 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
2051 to inferior_ptid.
2052
f2e1c129
PA
20532020-06-18 Pedro Alves <palves@redhat.com>
2054
2055 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
2056 instead of writing to inferior_ptid directly.
2057
60db1b85
PA
20582020-06-18 Pedro Alves <palves@redhat.com>
2059
2060 * corelow.c (core_target::close): Use switch_to_no_thread instead
2061 of writing to inferior_ptid directly.
2062 (add_to_thread_list, core_target_open): Use switch_to_thread
2063 instead of writing to inferior_ptid directly.
2064
fe7d6a8d
PA
20652020-06-18 Pedro Alves <palves@redhat.com>
2066
2067 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
2068 inferior_ptid.
2069 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
2070 inferior_ptid.
2071 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
2072 inferior_ptid directly.
2073 (darwin_nat_target::init_thread_list): Switch to thread, instead
2074 of writing to inferior_ptid.
2075 (darwin_nat_target::attach): Don't write to inferior_ptid.
2076 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
2077
975f8708
PA
20782020-06-18 Pedro Alves <palves@redhat.com>
2079
2080 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
2081 thread.
2082 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
2083 Instead use switch_to_thread.
2084 (gnu_nat_target::detach): Use switch_to_no_thread
2085 instead of writing to inferior_ptid directly. Used passed-in
2086 inferior instead of looking up the inferior by pid.
2087
1a204730
PA
20882020-06-18 Pedro Alves <palves@redhat.com>
2089
2090 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
2091 inferior_ptid.
2092
ebe84f23
PA
20932020-06-18 Pedro Alves <palves@redhat.com>
2094
2095 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
2096 inferior_ptid.
2097 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
2098 thread.
2099 (nto_procfs_target::detach): Avoid referencing
2100 inferior_ptid. Use switch_to_no_thread instead of writing to
2101 inferior_ptid directly.
2102 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
2103 instead of writing to inferior_ptid directly.
2104 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
2105 to thread.
2106
191f02e5
PA
21072020-06-18 Pedro Alves <palves@redhat.com>
2108
2109 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
2110 after creating it, instead of writing to inferior_ptid.
2111 (gdbsim_target_open): Use switch_to_no_thread instead of writing
2112 to inferior_ptid directly.
2113 (gdbsim_target::wait): Don't write to inferior_ptid.
2114
0ac55310
PA
21152020-06-18 Pedro Alves <palves@redhat.com>
2116
2117 * remote.c (remote_target::remote_notice_new_inferior): Use
2118 switch_to_thread instead of writing to inferior_ptid directly.
2119 (remote_target::add_current_inferior_and_thread): Use
2120 switch_to_no_thread instead of writing to inferior_ptid directly.
2121 (extended_remote_target::attach): Use switch_to_inferior_no_thread
2122 and switch_to_thread instead of using set_current_inferior or
2123 writing to inferior_ptid directly.
2124
5233f39b
PA
21252020-06-18 Pedro Alves <palves@redhat.com>
2126
2127 * tracectf.c (ctf_target_open): Switch to added thread instead of
2128 writing to inferior_ptid directly.
2129 (ctf_target::close): Use switch_to_no_thread instead of writing to
2130 inferior_ptid directly.
2131
087e161b
PA
21322020-06-18 Pedro Alves <palves@redhat.com>
2133
2134 * tracefile-tfile.c (tfile_target_open): Don't write to
2135 inferior_ptid directly, instead switch to added thread.
2136 (tfile_target::close): Use switch_to_no_thread instead of writing
2137 to inferior_ptid directly.
2138
7fb43e53
PA
21392020-06-18 Pedro Alves <palves@redhat.com>
2140
2141 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
2142 (procfs_target::detach): Use switch_to_no_thread
2143 instead of writing to inferior_ptid directly.
2144 (do_attach): Change return type to void. Switch to the added
2145 thread.
2146 (procfs_target::create_inferior): Switch to the added thread.
2147 (procfs_do_thread_registers): Don't write to inferior_ptid.
2148
18493a00
PA
21492020-06-18 Pedro Alves <palves@redhat.com>
2150
2151 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
2152 of writing to inferior_ptid.
2153 (scoped_restore_exited_inferior): Delete.
2154 (handle_vfork_child_exec_or_exit): Simplify using
2155 scoped_restore_current_pspace_and_thread. Use switch_to_thread
2156 instead of writing to inferior_ptid.
2157 (THREAD_STOPPED_BY): Delete.
2158 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
2159 (thread_stopped_by_hw_breakpoint): Delete.
2160 (save_waitstatus): Use
2161 scoped_restore_current_thread+switch_to_thread, and call
2162 target_stopped_by_watchpoint instead of
2163 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
2164 instead of thread_stopped_by_sw_breakpoint, and
2165 target_stopped_by_hw_breakpoint instead of
2166 thread_stopped_by_hw_breakpoint.
2167 (handle_inferior_event)
2168 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
2169 inferior_ptid directly, nor
2170 set_current_inferior/set_current_program_space. Use
2171 switch_to_thread / switch_to_inferior_no_thread instead.
2172
a0776b13
PA
21732020-06-18 Pedro Alves <palves@redhat.com>
2174
2175 * target.c (generic_mourn_inferior): Use switch_to_no_thread
2176 instead of writing to inferior_ptid.
2177
6155c136
PA
21782020-06-18 Pedro Alves <palves@redhat.com>
2179
2180 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
2181 added thread.
2182 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
2183 to the added thread.
2184 (inf_ptrace_target::detach_success): Use switch_to_no_thread
2185 instead of writing to inferior_ptid.
2186
c5316fc6
PA
21872020-06-18 Pedro Alves <palves@redhat.com>
2188
2189 * gdbarch-selftests.c: Include "progspace-and-thread.h".
2190 (register_to_value_test): Mock a program_space too. Heap-allocate
2191 the address space. Don't write to inferior_ptid. Use
2192 switch_to_thread instead.
2193
8df01799
PA
21942020-06-18 Pedro Alves <palves@redhat.com>
2195
2196 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
2197 Delete.
2198 (find_signalled_thread()): New, factored out from
2199 linux_make_corefile_notes and adjusted to handle exited threads.
2200 (linux_make_corefile_notes): Adjust to use the new
2201 find_signalled_thread.
2202
41792d68
PA
22032020-06-18 Pedro Alves <palves@redhat.com>
2204
2205 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
2206 of saving/restoring inferior_ptid.
2207
612f258a
TT
22082020-06-17 Tom Tromey <tom@tromey.com>
2209
2210 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
2211 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
2212 declare.
2213 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
2214
efb763a5
SM
22152020-06-15 Simon Marchi <simon.marchi@efficios.com>
2216
2217 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
2218 of partial symtabs.
2219
2951f6c0
SM
22202020-06-17 Simon Marchi <simon.marchi@efficios.com>
2221
2222 * regformats/reg-arm.dat: Remove.
2223 * regformats/reg-bfin.dat: Remove.
2224 * regformats/reg-cris.dat: Remove.
2225 * regformats/reg-crisv32.dat: Remove.
2226 * regformats/reg-m32r.dat: Remove.
2227 * regformats/reg-tilegx.dat: Remove.
2228 * regformats/reg-tilegx32.dat: Remove.
2229
7d458ea5
SM
22302020-06-17 Simon Marchi <simon.marchi@efficios.com>
2231
2232 * features/Makefile (WHICH): Remove arm files.
2233 * regformats/arm/arm-with-iwmmxt.dat: Remove.
2234 * regformats/arm/arm-with-neon.dat: Remove.
2235 * regformats/arm/arm-with-vfpv2.dat: Remove.
2236 * regformats/arm/arm-with-vfpv3.dat: Remove.
2237
3af96c0d
SM
22382020-06-17 Simon Marchi <simon.marchi@efficios.com>
2239
2240 * features/Makefile (XMLTOC): Remove rx.xml.
2241
b25e22fd
PA
22422020-06-17 Pedro Alves <palves@redhat.com>
2243
2244 * gdbthread.h (thread_control_state) <trap_expected> Update
2245 comments.
2246
a78a19b1
AB
22472020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2248
2249 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
2250 ada_language::lookup_symbol_nonlocal.
2251 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
2252 (ada_language::lookup_symbol_nonlocal): New member function,
2253 implementation from ada_lookup_symbol_nonlocal.
2254 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
2255 initializer.
2256 (cplus_language_data): Delete la_lookup_symbol_nonlocal
2257 initializer.
2258 (cplus_language::lookup_symbol_nonlocal): New member function.
2259 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
2260 (minimal_language_data) Likewise.
2261 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
2262 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
2263 initializer.
2264 (d_language::lookup_symbol_nonlocal): New member function.
2265 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
2266 initializer.
2267 (f_language::lookup_symbol_nonlocal): New member function.
2268 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
2269 initializer.
2270 * language.c (unknown_language_data): Likewise.
2271 (auto_language_data): Likewise.
2272 * language.h (language_data): Delete la_lookup_symbol_nonlocal
2273 field.
2274 (language_defn::lookup_symbol_nonlocal): New member function.
2275 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
2276 initializer.
2277 * objc-lang.c (objc_language_data): Likewise.
2278 * opencl-lang.c (opencl_language_data): Likewise.
2279 * p-lang.c (pascal_language_data): Likewise.
2280 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
2281 rust_language::lookup_symbol_nonlocal.
2282 (rust_language_data): Delete la_lookup_symbol_nonlocal
2283 initializer.
2284 (rust_language::lookup_symbol_nonlocal): New member function,
2285 implementation from rust_lookup_symbol_nonlocal.
2286 * symtab.c (lookup_symbol_aux): Update call to
2287 lookup_symbol_nonlocal.
2288 (basic_lookup_symbol_nonlocal): Rename to...
2289 (language_defn::lookup_symbol_nonlocal): ...this, and update
2290 header comment. Remove language_defn parameter, and replace with
2291 uses of `this'.
2292 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
2293
ebe2334e
AB
22942020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2295
2296 * ada-lang.c (ada_language_data): Delete la_value_print_inner
2297 initializer.
2298 (ada_language::value_print_inner): New member function.
2299 * c-lang.c (c_language_data): Delete la_value_print_inner
2300 initializer.
2301 (cplus_language_data): Likewise.
2302 (asm_language_data): Likewise.
2303 (minimal_language_data): Likewise.
2304 * d-lang.c (d_language_data): Likewise.
2305 (d_language::value_print_inner): New member function.
2306 * f-lang.c (f_language_data): Delete la_value_print_inner
2307 initializer.
2308 (f_language::value_print_inner): New member function.
2309 * f-lang.h (f_value_print_innner): Rename to...
2310 (f_value_print_inner): ...this (note spelling of 'inner').
2311 * f-valprint.c (f_value_print_innner): Rename to...
2312 (f_value_print_inner): ...this (note spelling of 'inner').
2313 * go-lang.c (go_language_data): Delete la_value_print_inner
2314 initializer.
2315 (go_language::value_print_inner): New member function.
2316 * language.c (language_defn::value_print_inner): Define new member
2317 function.
2318 (unk_lang_value_print_inner): Delete.
2319 (unknown_language_data): Delete la_value_print_inner initializer.
2320 (unknown_language::value_print_inner): New member function.
2321 (auto_language_data): Delete la_value_print_inner initializer.
2322 (auto_language::value_print_inner): New member function.
2323 * language.h (language_data): Delete la_value_print_inner field.
2324 (language_defn::value_print_inner): Delcare new member function.
2325 * m2-lang.c (m2_language_data): Delete la_value_print_inner
2326 initializer.
2327 (m2_language::value_print_inner): New member function.
2328 * objc-lang.c (objc_language_data): Delete la_value_print_inner
2329 initializer.
2330 * opencl-lang.c (opencl_language_data): Likewise.
2331 * p-lang.c (pascal_language_data): Likewise.
2332 (pascal_language::value_print_inner): New member function.
2333 * rust-lang.c (rust_language_data): Delete la_value_print_inner
2334 initializer.
2335 (rust_language::value_print_inner): New member function.
2336 * valprint.c (do_val_print): Update call to value_print_inner.
2337
a1d1fa3e
AB
23382020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2339
2340 * ada-lang.c (ada_language_data): Delete la_value_print
2341 initializer.
2342 (ada_language::value_print): New member function.
2343 * c-lang.c (c_language_data): Delete la_value_print initializer.
2344 (cplus_language_data): Likewise.
2345 (asm_language_data): Likewise.
2346 (minimal_language_data): Likewise.
2347 * d-lang.c (d_language_data): Likewise.
2348 * f-lang.c (f_language_data): Likewise.
2349 * go-lang.c (go_language_data): Likewise.
2350 * language.c (unk_lang_value_print): Delete.
2351 (language_defn::value_print): Define new member function.
2352 (unknown_language_data): Delete la_value_print initializer.
2353 (unknown_language::value_print): New member function.
2354 (auto_language_data): Delete la_value_print initializer.
2355 (auto_language::value_print): New member function.
2356 * language.h (language_data): Delete la_value_print field.
2357 (language_defn::value_print): Declare new member function.
2358 (LA_VALUE_PRINT): Update call to value_print.
2359 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
2360 * objc-lang.c (objc_language_data): Likewise.
2361 * opencl-lang.c (opencl_language_data): Likewise.
2362 * p-lang.c (pascal_language_data): Likewise.
2363 (pascal_language::value_print): New member function.
2364 * rust-lang.c (rust_language_data): Delete la_value_print
2365 initializer.
2366
f16a9f57
AB
23672020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2368
2369 * ada-lang.c (ada_watch_location_expression): Rename to
2370 ada_language::watch_location_expression.
2371 (ada_language_data): Delete la_watch_location_expression
2372 initializer.
2373 (ada_language::watch_location_expression): New member function,
2374 implementation from ada_watch_location_expression.
2375 * breakpoint.c (watch_command_1): Update call to
2376 watch_location_expression.
2377 * c-lang.c (c_watch_location_expression): Rename to
2378 language_defn::watch_location_expression.
2379 (c_language_data): Delete la_watch_location_expression
2380 initializer.
2381 (cplus_language_data): Likewise.
2382 (asm_language_data): Likewise.
2383 (minimal_language_data): Likewise.
2384 * c-lang.h (c_watch_location_expression): Delete declaration.
2385 * d-lang.c (d_language_data): Delete la_watch_location_expression
2386 initializer.
2387 * f-lang.c (f_language_data): Likewise.
2388 * go-lang.c (go_language_data): Likewise.
2389 * language.c (language_defn::watch_location_expression): Member
2390 function implementation from c_watch_location_expression.
2391 (unknown_language_data): Delete la_watch_location_expression
2392 initializer.
2393 (auto_language_data): Likewise.
2394 * language.h (language_data): Delete la_watch_location_expression
2395 field.
2396 (language_defn::watch_location_expression): Declare new member
2397 function.
2398 * m2-lang.c (m2_language_data): Delete
2399 la_watch_location_expression initializer.
2400 * objc-lang.c (objc_language_data): Likewise.
2401 * opencl-lang.c (opencl_language_data): Likewise.
2402 * p-lang.c (pascal_language_data): Likewise.
2403 * rust-lang.c (rust_watch_location_expression): Rename to
2404 rust_language::watch_location_expression.
2405 (rust_language_data): Delete la_watch_location_expression
2406 initializer.
2407 (rust_language::watch_location_expression): New member function,
2408 implementation from rust_watch_location_expression.
2409
7e56227d
AB
24102020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2411
2412 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
2413 ada_language::collect_symbol_completion_matches.
2414 (ada_language_data): Delete la_collect_symbol_completion_matches
2415 initializer.
2416 (ada_language::collect_symbol_completion_matches): New member
2417 function, implementation from
2418 ada_collect_symbol_completion_matches.
2419 * c-lang.c (c_language_data): Delete
2420 la_collect_symbol_completion_matches initializer.
2421 (cplus_language_data): Likewise.
2422 (asm_language_data): Likewise.
2423 (minimal_language_data): Likewise.
2424 * d-lang.c (d_language_data): Likewise.
2425 * f-lang.c (f_collect_symbol_completion_matches): Rename to
2426 f_language::collect_symbol_completion_matches.
2427 (f_language_data): Delete la_collect_symbol_completion_matches
2428 initializer.
2429 (f_language::collect_symbol_completion_matches) New member
2430 function, implementation from f_collect_symbol_completion_matches.
2431 * go-lang.c (go_language_data): Delete
2432 la_collect_symbol_completion_matches initializer.
2433 * language.c (unknown_language_data): Likewise.
2434 (auto_language_data): Likewise.
2435 * language.h (language_data): Delete
2436 la_collect_symbol_completion_matches field.
2437 (language_defn::collect_symbol_completion_matches): New member
2438 function.
2439 * m2-lang.c (m2_language_data): Delete
2440 la_collect_symbol_completion_matches initializer.
2441 * objc-lang.c (objc_language_data): Likewise.
2442 * opencl-lang.c (opencl_language_data): Likewise.
2443 * p-lang.c (pascal_language_data): Likewise.
2444 * rust-lang.c (rust_language_data): Likewise.
2445 * symtab.c (default_collect_symbol_completion_matches): Delete.
2446 (collect_symbol_completion_matches): Update call to
2447 collect_symbol_completion_matches.
2448 (collect_symbol_completion_matches_type): Likewise.
2449 * symtab.h (default_collect_symbol_completion_matches): Delete
2450 declaration.
2451
53fc67f8
AB
24522020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2453
2454 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
2455 (ada_language_data): Delete la_word_break_characters initializer.
2456 (ada_language::word_break_characters): New member function.
2457 * c-lang.c (c_language_data): Delete la_word_break_characters
2458 initializer.
2459 (cplus_language_data): Likewise.
2460 (asm_language_data): Likewise.
2461 (minimal_language_data): Likewise.
2462 * completer.c: Update global comment.
2463 (advance_to_expression_complete_word_point): Update call to
2464 word_break_characters.
2465 (complete_files_symbols): Likewise.
2466 (complete_line_internal_1): Likewise.
2467 (default_completer_handle_brkchars): Likewise.
2468 (skip_quoted_chars): Likewise.
2469 * d-lang.c (d_language_data): Delete la_word_break_characters
2470 initializer.
2471 * f-lang.c (f_word_break_characters): Delete.
2472 (f_language_data): Delete la_word_break_characters initializer.
2473 (f_language::word_break_characters): New member function.
2474 * go-lang.c (go_language_data): Delete la_word_break_characters
2475 initializer.
2476 * language.c (unknown_language_data): Likewise.
2477 (auto_language_data): Likewise.
2478 * language.h (default_word_break_characters): Move declaration to
2479 earlier in the file.
2480 (language_data): Delete la_word_break_characters field.
2481 (language_defn::word_break_characters): New member function.
2482 * m2-lang.c (m2_language_data): Delete la_word_break_characters
2483 initializer.
2484 * objc-lang.c (objc_language_data): Likewise.
2485 * opencl-lang.c (opencl_language_data): Likewise.
2486 * p-lang.c (pascal_language_data): Likewise.
2487 * rust-lang.c (rust_language_data): Likewise.
2488
c9debfb9
AB
24892020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2490
2491 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
2492 (ada_language_data): Delete la_get_symbol_name_matcher
2493 initializer.
2494 (language_defn::get_symbol_name_matcher_inner): New member
2495 function.
2496 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
2497 initializer.
2498 (cplus_language_data): Likewise.
2499 (cplus_language::get_symbol_name_matcher_inner): New member
2500 function.
2501 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
2502 (minimal_language_data): Likewise.
2503 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
2504 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
2505 initializer.
2506 * dictionary.c (iter_match_first_hashed): Update call to
2507 get_symbol_name_matcher.
2508 (iter_match_next_hashed): Likewise.
2509 (iter_match_next_linear): Likewise.
2510 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
2511 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
2512 initializer.
2513 (f_language::get_symbol_name_matcher_inner): New member function.
2514 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
2515 initializer.
2516 * language.c (default_symbol_name_matcher): Update header comment,
2517 make static.
2518 (language_defn::get_symbol_name_matcher): New definition.
2519 (language_defn::get_symbol_name_matcher_inner): Likewise.
2520 (get_symbol_name_matcher): Delete.
2521 (unknown_language_data): Delete la_get_symbol_name_matcher
2522 initializer.
2523 (auto_language_data): Likewise.
2524 * language.h (language_data): Delete la_get_symbol_name_matcher
2525 field.
2526 (language_defn::get_symbol_name_matcher): New member function.
2527 (language_defn::get_symbol_name_matcher_inner): Likewise.
2528 (default_symbol_name_matcher): Delete declaration.
2529 * linespec.c (find_methods): Update call to
2530 get_symbol_name_matcher.
2531 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
2532 initializer.
2533 * minsyms.c (lookup_minimal_symbol): Update call to
2534 get_symbol_name_matcher.
2535 (iterate_over_minimal_symbols): Likewise.
2536 * objc-lang.c (objc_language_data): Delete
2537 la_get_symbol_name_matcher initializer.
2538 * opencl-lang.c (opencl_language_data): Likewise.
2539 * p-lang.c (pascal_language_data): Likewise.
2540 * psymtab.c (psymbol_name_matches): Update call to
2541 get_symbol_name_matcher.
2542 * rust-lang.c (rust_language_data): Delete
2543 la_get_symbol_name_matcher initializer.
2544 * symtab.c (symbol_matches_search_name): Update call to
2545 get_symbol_name_matcher.
2546 (compare_symbol_name): Likewise.
2547
9a49ad8c
AB
25482020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2549
2550 * ada-lang.c (ada_language_data): Delete la_compute_program
2551 initializer.
2552 * c-lang.c (c_language_data): Likewise.
2553 (c_language::compute_program): New member function.
2554 (cplus_language_data): Delete la_compute_program initializer.
2555 (cplus_language::compute_program): New member function.
2556 (asm_language_data): Delete la_compute_program initializer.
2557 (minimal_language_data): Likewise.
2558 * c-lang.h (c_compute_program): Update comment.
2559 (cplus_compute_program): Likewise.
2560 * compile/compile-c-support.c (c_compute_program): Likewise.
2561 (cplus_compute_program): Likewise.
2562 * compile/compile.c (compile_to_object): Update call to
2563 la_compute_program.
2564 * d-lang.c (d_language_data): Delete la_compute_program
2565 initializer.
2566 * f-lang.c (f_language_data): Likewise.
2567 * go-lang.c (go_language_data): Likewise.
2568 * language.c (unknown_language_data): Likewise.
2569 (auto_language_data): Likewise.
2570 * language.h (language_data): Delete la_compute_program field.
2571 (language_defn::compute_program): New member function.
2572 * m2-lang.c (m2_language_data): Delete la_compute_program
2573 initializer.
2574 * objc-lang.c (objc_language_data): Likewise.
2575 * opencl-lang.c (opencl_language_data): Likewise.
2576 * p-lang.c (pascal_language_data): Likewise.
2577 * rust-lang.c (rust_language_data): Likewise.
2578
eff93b4d
AB
25792020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2580
2581 * ada-lang.c (ada_language_data) Delete
2582 la_class_name_from_physname initializer.
2583 * c-lang.c (c_language_data): Likewise.
2584 (cplus_language_data): Likewise.
2585 (cplus_language::class_name_from_physname): New member function.
2586 (asm_language_data): Delete la_class_name_from_physname
2587 initializer.
2588 (minimal_language_data): Likewise.
2589 * d-lang.c (d_language_data): Likewise.
2590 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
2591 method on language_defn class.
2592 (guess_full_die_structure_name): Likewise.
2593 * f-lang.c (f_language_data): Delete la_class_name_from_physname
2594 initializer.
2595 * go-lang.c (go_language_data): Likewise.
2596 * language.c (language_class_name_from_physname): Delete.
2597 (unk_lang_class_name): Delete.
2598 (unknown_language_data): Delete la_class_name_from_physname
2599 initializer.
2600 (auto_language_data): Likewise.
2601 * language.h (language_data): Delete la_class_name_from_physname
2602 field.
2603 (language_defn::class_name_from_physname): New function.
2604 (language_class_name_from_physname): Delete declaration.
2605 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
2606 initializer.
2607 * objc-lang.c (objc_language_data): Likewise.
2608 * opencl-lang.c (opencl_language_data): Likewise.
2609 * p-lang.c (pascal_language_data): Likewise.
2610 * rust-lang.c (rust_language_data): Likewise.
2611
de543742
TT
26122020-06-16 Tom Tromey <tom@tromey.com>
2613
2614 * tui/tui-data.h (STATUS_NAME): New macro.
2615 * tui/tui-layout.c (tui_remove_some_windows)
2616 (initialize_known_windows, tui_register_window)
2617 (tui_layout_split::remove_windows, initialize_layouts)
2618 (tui_new_layout_command): Don't use hard-coded window names.
2619
a350efd4
TT
26202020-06-16 Tom Tromey <tom@tromey.com>
2621
2622 PR tui/25348:
2623 * tui/tui.c (tui_ensure_readline_initialized): Rename from
2624 tui_initialize_readline. Only run once. Call rl_initialize.
2625 * tui/tui.h (tui_ensure_readline_initialized): Rename from
2626 tui_initialize_readline.
2627 * tui/tui-io.c (tui_setup_io): Call
2628 tui_ensure_readline_initialized.
2629 * tui/tui-interp.c (tui_interp::init): Update.
2630
39ec0490
TT
26312020-06-16 Tom Tromey <tom@tromey.com>
2632
2633 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
2634 Also preserve the status window.
2635
d2d1ea20
TT
26362020-06-16 Tom Tromey <tom@tromey.com>
2637
2638 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
2639 where m_window==nullptr.
2640
66920317
TT
26412020-06-15 Tom Tromey <tromey@adacore.com>
2642
2643 * windows-nat.c (windows_nat::handle_output_debug_string):
2644 Update.
2645 (windows_nat::handle_ms_vc_exception): Update.
2646 * target.h (target_read_string): Change API.
2647 * target.c (target_read_string): Change API.
2648 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
2649 Update.
2650 * solib-frv.c (frv_current_sos): Update.
2651 * solib-dsbt.c (dsbt_current_sos): Update.
2652 * solib-darwin.c (darwin_current_sos): Update.
2653 * linux-thread-db.c (inferior_has_bug): Update.
2654 * expprint.c (print_subexp_standard): Update.
2655 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
2656 (ada_exception_message_1): Update.
2657
a5d871dd
TT
26582020-06-15 Tom Tromey <tromey@adacore.com>
2659
2660 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
2661
670e35fa
TT
26622020-06-15 Tom Tromey <tromey@adacore.com>
2663
2664 * valprint.c (read_string): Update comment.
2665 * target.c (MIN): Remove.
2666 (target_read_string): Rewrite.
2667
f5272a3b
TT
26682020-06-15 Tom Tromey <tromey@adacore.com>
2669
2670 * corefile.c (read_memory_string): Remove.
2671 * ada-valprint.c (ada_value_print_ptr): Update.
2672 * ada-lang.h (ada_tag_name): Change return type.
2673 * ada-lang.c (type_from_tag): Update.
2674 (ada_tag_name_from_tsd): Change return type. Use
2675 target_read_string.
2676 (ada_tag_name): Likewise.
2677 * gdbcore.h (read_memory_string): Don't declare.
2678
2c074f49
HD
26792020-06-14 Hannes Domani <ssbssa@yahoo.de>
2680
2681 * symtab.c (rbreak_command): Ignore Windows drive colon.
2682
6a17d503
SM
26832020-06-12 Simon Marchi <simon.marchi@efficios.com>
2684
2685 * NEWS: Mention removed GDBserver host support.
2686
453c733f
NC
26872020-06-12 Nelson Chu <nelson.chu@sifive.com>
2688
2689 * features/riscv/rebuild-csr-xml.sh: Updated.
2690
2b4e6a3f
TT
26912020-06-11 Tom Tromey <tom@tromey.com>
2692
2693 PR gdb/18318:
2694 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
2695
4412332f
JG
26962020-06-09 Jonny Grant <jg@jguk.org>
26972020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
2698
2699 * main.c (captured_main_1): Don't print new line after help.
2700 (print_gdb_help): add mailing list and IRC channel information
2701 to --help. Add new lines between items in the footer. Remove
2702 quotes around bug url.
2703
2f33032a
KS
27042020-06-11 Keith Seitz <keiths@redhat.com>
2705
2706 PR gdb/21356
2707 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
2708 Resolve typedefs for type length calculations.
2709
7ab96794
TV
27102020-06-10 Tom de Vries <tdevries@suse.de>
2711
2712 PR ada/24713
2713 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
2714 (write_psymbols): Enable .gdb_index for ada.
2715 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
2716 ada.
2717
e5f3ece2
TV
27182020-06-10 Tom de Vries <tdevries@suse.de>
2719
2720 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
2721 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
2722 namei" instead of "const char *name" argument.
2723 (dw2_map_matching_symbols): Use "offset_type namei" variant of
2724 dw2_symtab_iter_init.
2725
940da03e
SM
27262020-06-08 Simon Marchi <simon.marchi@efficios.com>
2727
2728 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
2729 to use type::field and field::type instead.
2730
b6cdac4b
SM
27312020-06-08 Simon Marchi <simon.marchi@efficios.com>
2732
2733 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
2734 to use field::type instead.
2735
5d14b6e5
SM
27362020-06-08 Simon Marchi <simon.marchi@efficios.com>
2737
2738 * gdbtypes.h (struct field) <type, set_type>: New methods.
2739 Rename `type` field to...
2740 <m_type>: ... this. Change references throughout to use type or
2741 set_type methods.
2742 (FIELD_TYPE): Use field::type. Change call sites that modify
2743 the field's type to use field::set_type instead.
2744
3d967001
SM
27452020-06-08 Simon Marchi <simon.marchi@efficios.com>
2746
2747 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
2748 to use type::index_type instead.
2749
262abc0d
SM
27502020-06-08 Simon Marchi <simon.marchi@efficios.com>
2751
2752 * gdbtypes.h (struct type) <index_type, set_index_type>: New
2753 methods.
2754 (TYPE_INDEX_TYPE): Use type::index_type.
2755 * gdbtypes.c (create_array_type_with_stride): Likewise.
2756
82836c92
TT
27572020-06-07 Tom Tromey <tom@tromey.com>
2758
2759 * valprint.c (generic_val_print_float): Remove "embedded_offset"
2760 parameter.
2761 (generic_value_print): Update.
2762
940dace9
AB
27632020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2764
2765 Revert commit 982a38f60b0.
2766 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
2767
982a38f6
AB
27682020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2769
2770 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
2771 avoid use after free.
2772
82f06518
TV
27732020-06-05 Tom de Vries <tdevries@suse.de>
2774
2775 * NEWS: Fix typos.
2776
f8c41851
SM
27772020-06-04 Simon Marchi <simon.marchi@efficios.com>
2778
2779 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
2780 the per_bfd object.
2781 (dwarf2_read_debug_names): Likewise.
2782 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
2783 object when re-using a per_bfd object with an index.
2784
f9b5d5ea
TV
27852020-06-03 Tom de Vries <tdevries@suse.de>
2786
2787 PR symtab/26046
2788 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
2789 children for C++.
2790 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
2791 DW_TAG_subprogram.
2792
f6eee2d0
AB
27932020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2794
2795 * ada-lang.c (ada_language_data): Delete skip_trampoline
2796 initializer.
2797 * c-lang.c (c_language_data): Likewise.
2798 (cplus_language_data): Likewise.
2799 (cplus_language::skip_trampoline): New member function.
2800 (asm_language_data): Delete skip_trampoline initializer.
2801 (minimal_language_data): Likewise.
2802 * d-lang.c (d_language_data): Likewise.
2803 * f-lang.c (f_language_data): Likewise.
2804 * go-lang.c (go_language_data): Likewise.
2805 * language.c (unk_lang_trampoline): Delete function.
2806 (skip_language_trampoline): Update.
2807 (unknown_language_data): Delete skip_trampoline initializer.
2808 (auto_language_data): Likewise.
2809 * language.h (language_data): Delete skip_trampoline field.
2810 (language_defn::skip_trampoline): New function.
2811 * m2-lang.c (m2_language_data): Delete skip_trampoline
2812 initializer.
2813 * objc-lang.c (objc_skip_trampoline): Delete function, move
2814 implementation to objc_language::skip_trampoline.
2815 (objc_language_data): Delete skip_trampoline initializer.
2816 (objc_language::skip_trampoline): New member function with
2817 implementation from objc_skip_trampoline.
2818 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
2819 initializer.
2820 * p-lang.c (pascal_language_data): Likewise.
2821 * rust-lang.c (rust_language_data): Likewise.
2822
0a50df5d
AB
28232020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2824
2825 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
2826 (ada_language::demangle): New member function.
2827 * c-lang.c (c_language_data): Delete la_demangle initializer.
2828 (cplus_language_data): Delete la_demangle initializer.
2829 (cplus_language::demangle): New member function.
2830 (asm_language_data): Delete la_demangle initializer.
2831 (minimal_language_data): Delete la_demangle initializer.
2832 * d-lang.c (d_language_data): Delete la_demangle initializer.
2833 (d_language::demangle): New member function.
2834 * f-lang.c (f_language_data): Delete la_demangle initializer.
2835 (f_language::demangle): New member function.
2836 * go-lang.c (go_language_data): Delete la_demangle initializer.
2837 (go_language::demangle): New member function.
2838 * language.c (language_demangle): Update.
2839 (unk_lang_demangle): Delete.
2840 (unknown_language_data): Delete la_demangle initializer.
2841 (unknown_language::demangle): New member function.
2842 (auto_language_data): Delete la_demangle initializer.
2843 (auto_language::demangle): New member function.
2844 * language.h (language_data): Delete la_demangle field.
2845 (language_defn::demangle): New function.
2846 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
2847 * objc-lang.c (objc_language_data): Delete la_demangle
2848 initializer.
2849 (objc_language::demangle): New member function.
2850 * opencl-lang.c (opencl_language_data): Delete la_demangle
2851 initializer.
2852 * p-lang.c (pascal_language_data): Likewise.
2853 * rust-lang.c (rust_language_data): Likewise.
2854 (rust_language::demangle): New member function.
2855
fbfb0a46
AB
28562020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2857
2858 * ada-lang.c (ada_language_data): Delete la_print_type
2859 initializer.
2860 (ada_language::print_type): New member function.
2861 * c-lang.c (c_language_data): Delete la_print_type initializer.
2862 (c_language::print_type): New member function.
2863 (cplus_language_data): Delete la_print_type initializer.
2864 (cplus_language::print_type): New member function.
2865 (asm_language_data): Delete la_print_type initializer.
2866 (asm_language::print_type): New member function.
2867 (minimal_language_data): Delete la_print_type initializer.
2868 (minimal_language::print_type): New member function.
2869 * d-lang.c (d_language_data): Delete la_print_type initializer.
2870 (d_language::print_type): New member function.
2871 * f-lang.c (f_language_data): Delete la_print_type initializer.
2872 (f_language::print_type): New member function.
2873 * go-lang.c (go_language_data): Delete la_print_type initializer.
2874 (go_language::print_type): New member function.
2875 * language.c (unk_lang_print_type): Delete.
2876 (unknown_language_data): Delete la_print_type initializer.
2877 (unknown_language::print_type): New member function.
2878 (auto_language_data): Delete la_print_type initializer.
2879 (auto_language::print_type): New member function.
2880 * language.h (language_data): Delete la_print_type field.
2881 (language_defn::print_type): New function.
2882 (LA_PRINT_TYPE): Update.
2883 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
2884 (m2_language::print_type): New member function.
2885 * objc-lang.c (objc_language_data): Delete la_print_type
2886 initializer.
2887 (objc_language::print_type): New member function.
2888 * opencl-lang.c (opencl_print_type): Delete, implementation moved
2889 to opencl_language::print_type.
2890 (opencl_language_data): Delete la_print_type initializer.
2891 (opencl_language::print_type): New member function, implementation
2892 from opencl_print_type.
2893 * p-lang.c (pascal_language_data): Delete la_print_type
2894 initializer.
2895 (pascal_language::print_type): New member function.
2896 * rust-lang.c (rust_print_type): Delete, implementation moved to
2897 rust_language::print_type.
2898 (rust_language_data): Delete la_print_type initializer.
2899 (rust_language::print_type): New member function, implementation
2900 from rust_print_type.
2901
6f827019
AB
29022020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2903
2904 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
2905 implementation moves to...
2906 (ada_language::sniff_from_mangled_name): ...here. Update return
2907 type.
2908 (ada_language_data): Delete la_sniff_from_mangled_name
2909 initializer.
2910 * c-lang.c (c_language_data): Likewise.
2911 (cplus_language_data): Likewise.
2912 (cplus_language::sniff_from_mangled_name): New member function,
2913 implementation taken from gdb_sniff_from_mangled_name.
2914 (asm_language_data): Delete la_sniff_from_mangled_name
2915 initializer.
2916 (minimal_language_data): Likewise.
2917 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
2918 implementation moves to cplus_language::sniff_from_mangled_name.
2919 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
2920 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
2921 moves to...
2922 (d_language::sniff_from_mangled_name): ...here.
2923 (d_language_data): Delete la_sniff_from_mangled_name initializer.
2924 * f-lang.c (f_language_data): Likewise.
2925 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
2926 moves to...
2927 (go_language::sniff_from_mangled_name): ...here.
2928 (go_language_data): Delete la_sniff_from_mangled_name initializer.
2929 * language.c (language_sniff_from_mangled_name): Delete.
2930 (unknown_language_data): Delete la_sniff_from_mangled_name
2931 initializer.
2932 (auto_language_data): Likewise.
2933 * language.h (language_data): Delete la_sniff_from_mangled_name
2934 field.
2935 (language_defn::sniff_from_mangled_name): New function.
2936 (language_sniff_from_mangled_name): Delete declaration.
2937 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
2938 field.
2939 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
2940 implementation moves to...
2941 (objc_language::sniff_from_mangled_name): ...here.
2942 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
2943 * opencl-lang.c (opencl_language_data): Likewise.
2944 * p-lang.c (pascal_language_data): Likewise.
2945 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
2946 implementation moves to...
2947 (rust_language::sniff_from_mangled_name): ...here.
2948 (rust_language_data): Delete la_sniff_from_mangled_name
2949 initializer.
2950 * symtab.c (symbol_find_demangled_name): Call
2951 sniff_from_mangled_name member function.
2952
fb8006fd
AB
29532020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2954
2955 * ada-lang.c (ada_language_data): Delete la_search_name_hash
2956 initializer.
2957 * c-lang.c (c_language_data): Likewise.
2958 (cplus_language_data): Likewise.
2959 (cplus_language::search_name_hash): New member function.
2960 (asm_language_data): Delete la_search_name_hash initializer.
2961 (minimal_language_data): Likewise.
2962 * d-lang.c (d_language_data): Likewise.
2963 * dictionary.c (default_search_name_hash): Rename to...
2964 (language_defn::search_name_hash): ...this.
2965 * f-lang.c (f_language_data): Likewise.
2966 (f_language::search_name_hash): New member function.
2967 * go-lang.c (go_language_data): Delete la_search_name_hash
2968 initializer.
2969 * language.c (unknown_language_data): Likewise.
2970 (auto_language_data): Likewise.
2971 * language.h (struct language_data): Delete la_search_name_hash
2972 field.
2973 (language_defn::search_name_hash): Declare new member function.
2974 (default_search_name_hash): Delete declaration.
2975 * m2-lang.c (m2_language_data): Delete la_search_name_hash
2976 initializer.
2977 * objc-lang.c (objc_language_data): Likewise.
2978 * opencl-lang.c (opencl_language_data): Likewise.
2979 * p-lang.c (pascal_language_data): Likewise.
2980 * rust-lang.c (rust_language_data): Likewise.
2981 * symtab.c (search_name_hash): Update call.
2982
8e25bafe
AB
29832020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2984
2985 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
2986 initializer.
2987 * c-lang.c (class compile_instance): Declare.
2988 (c_language_data): Delete la_get_compile_instance initializer.
2989 (c_language::get_compile_instance): New member function.
2990 (cplus_language_data): Delete la_get_compile_instance initializer.
2991 (cplus_language::get_compile_instance): New member function.
2992 (asm_language_data): Delete la_get_compile_instance initializer.
2993 (minimal_language_data): Likewise.
2994 * c-lang.h (c_get_compile_context): Update comment.
2995 (cplus_get_compile_context): Update comment.
2996 * compile/compile.c (compile_to_object): Update calls, don't rely
2997 on function pointer being NULL.
2998 * d-lang.c (d_language_data): Delete la_get_compile_instance
2999 initializer.
3000 * f-lang.c (f_language_data): Likewise.
3001 * go-lang.c (go_language_data): Likewise.
3002 * language.c (unknown_language_data): Likewise.
3003 (auto_language_data): Likewise.
3004 * language.h (language_data): Delete la_get_compile_instance field.
3005 (language_defn::get_compile_instance): New member function.
3006 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
3007 initializer.
3008 * objc-lang.c (objc_language_data): Likewise.
3009 * opencl-lang.c (opencl_language_data): Likewise.
3010 * p-lang.c (pascal_language_data): Likewise.
3011 * rust-lang.c (rust_language_data): Likewise.
3012
4009ee92
AB
30132020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3014
3015 * ada-lang.c (ada_add_all_symbols): Update comment.
3016 (ada_iterate_over_symbols): Delete, move implementation to...
3017 (ada_language::iterate_over_symbols): ...here, a new member
3018 function, rewrite to use range based for loop.
3019 (ada_language_data): Delete la_iterate_over_symbols initializer.
3020 * c-lang.c (c_language_data): Likewise.
3021 (cplus_language_data): Likewise.
3022 (asm_language_data): Likewise.
3023 (minimal_language_data): Likewise.
3024 * d-lang.c (d_language_data): Likewise.
3025 * f-lang.c (f_language_data): Likewise.
3026 * go-lang.c (go_language_data): Likewise.
3027 * language.c (unknown_language_data): Likewise.
3028 (auto_language_data): Likewise.
3029 * language.h (language_data): Delete la_iterate_over_symbols field.
3030 (language_defn::iterate_over_symbols): New member function.
3031 (LA_ITERATE_OVER_SYMBOLS): Update.
3032 * linespec.c (iterate_over_all_matching_symtabs): Update.
3033 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
3034 initializer.
3035 * objc-lang.c (objc_language_data): Likewise.
3036 * opencl-lang.c (opencl_language_data): Likewise.
3037 * p-lang.c (pascal_language_data): Likewise.
3038 * rust-lang.c (rust_language_data): Likewise.
3039
54f4ca46
AB
30402020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3041
3042 * ada-lang.c (ada_language_data): Delete
3043 la_lookup_transparent_type initializer.
3044 * c-lang.c (c_language_data): Likewise.
3045 (cplus_language_data): Likewise.
3046 (cplus_language::lookup_transparent_type): New member function.
3047 (asm_language_data): Delete la_lookup_transparent_type
3048 initializer.
3049 (minimal_language_data): Likewise.
3050 * d-lang.c (d_language_data): Likewise.
3051 * f-lang.c (f_language_data): Likewise.
3052 * go-lang.c (go_language_data): Likewise.
3053 * language.c (unknown_language_data): Likewise.
3054 (auto_language_data): Likewise.
3055 * language.h (struct language_data): Delete
3056 la_lookup_transparent_type field.
3057 (language_defn::lookup_transparent_type): New member function.
3058 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
3059 initializer.
3060 * objc-lang.c (objc_language_data): Likewise.
3061 * opencl-lang.c (opencl_language_data): Likewise.
3062 * p-lang.c (pascal_language_data): Likewise.
3063 * rust-lang.c (rust_language_data): Likewise.
3064 * symtab.c (symbol_matches_domain): Update call.
3065
1fb314aa
AB
30662020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3067
3068 * ada-lang.c (ada_language_arch_info): Delete function, move
3069 implementation to...
3070 (ada_language::language_arch_info): ...here, a new member
3071 function.
3072 (ada_language_data): Delete la_language_arch_info.
3073 * c-lang.c (c_language_data): Likewise.
3074 (c_language::language_arch_info): New member function.
3075 (cplus_language_arch_info): Delete function, move
3076 implementation to...
3077 (cplus_language::language_arch_info): ...here, a new member
3078 function.
3079 (cplus_language_data): Delete la_language_arch_info.
3080 (asm_language_data): Likewise.
3081 (asm_language::language_arch_info): New member function.
3082 (minimal_language_data): Delete la_language_arch_info.
3083 (minimal_language::language_arch_info): New member function.
3084 * d-lang.c (d_language_arch_info): Delete function, move
3085 implementation to...
3086 (d_language::language_arch_info): ...here, a new member
3087 function.
3088 (d_language_data): Delete la_language_arch_info.
3089 * f-lang.c (f_language_arch_info): Delete function, move
3090 implementation to...
3091 (f_language::language_arch_info): ...here, a new member
3092 function.
3093 (f_language_data): Delete la_language_arch_info.
3094 * go-lang.c (go_language_arch_info): Delete function, move
3095 implementation to...
3096 (go_language::language_arch_info): ...here, a new member
3097 function.
3098 (go_language_data): Delete la_language_arch_info.
3099 * language.c (unknown_language_data): Likewise.
3100 (unknown_language::language_arch_info): New member function.
3101 (auto_language_data): Delete la_language_arch_info.
3102 (auto_language::language_arch_info): New member function.
3103 (language_gdbarch_post_init): Update call to
3104 la_language_arch_info.
3105 * language.h (language_data): Delete la_language_arch_info
3106 function pointer.
3107 (language_defn::language_arch_info): New function.
3108 * m2-lang.c (m2_language_arch_info): Delete function, move
3109 implementation to...
3110 (m2_language::language_arch_info): ...here, a new member
3111 function.
3112 (m2_language_data): Delete la_language_arch_info.
3113 * objc-lang.c (objc_language_arch_info): Delete function, move
3114 implementation to...
3115 (objc_language::language_arch_info): ...here, a new member
3116 function.
3117 (objc_language_data): Delete la_language_arch_info.
3118 * opencl-lang.c (opencl_language_arch_info): Delete function, move
3119 implementation to...
3120 (opencl_language::language_arch_info): ...here, a new member
3121 function.
3122 (opencl_language_data): Delete la_language_arch_info.
3123 * p-lang.c (pascal_language_arch_info): Delete function, move
3124 implementation to...
3125 (pascal_language::language_arch_info): ...here, a new member
3126 function.
3127 (pascal_language_data): Delete la_language_arch_info.
3128 * rust-lang.c (rust_language_arch_info): Delete function, move
3129 implementation to...
3130 (rust_language::language_arch_info): ...here, a new member
3131 function.
3132 (rust_language_data): Delete la_language_arch_info.
3133
48448202
AB
31342020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3135
3136 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
3137 initializer.
3138 * c-lang.c (c_language_data): Likewise.
3139 (cplus_language_data): Likewise.
3140 (cplus_language::pass_by_reference_info): New method.
3141 (asm_language_data): Delete la_pass_by_reference initializer.
3142 (minimal_language_data): Likewise.
3143 * cp-abi.c (cp_pass_by_reference): Remove use of
3144 default_pass_by_reference.
3145 * d-lang.c (d_language_data): Likewise.
3146 * f-lang.c (f_language_data): Likewise.
3147 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
3148 default_pass_by_reference.
3149 * go-lang.c (go_language_data): Likewise.
3150 * language.c (language_pass_by_reference): Update.
3151 (default_pass_by_reference): Delete.
3152 (unknown_language_data): Delete la_pass_by_reference
3153 initializer.
3154 (auto_language_data): Likewise.
3155 * language.h (struct language_data): Delete la_pass_by_reference
3156 field.
3157 (language_defn::pass_by_reference_info): New member function.
3158 (default_pass_by_reference): Delete declaration.
3159 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
3160 initializer.
3161 * objc-lang.c (objc_language_data): Likewise.
3162 * opencl-lang.c (opencl_language_data): Likewise.
3163 * p-lang.c (pascal_language_data): Likewise.
3164 * rust-lang.c (rust_language_data): Likewise.
3165
15e5fd35
AB
31662020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3167
3168 * ada-lang.c (ada_read_var_value): Delete function, move
3169 implementation to...
3170 (ada_language::read_var_value): ...here.
3171 (ada_language_data): Delete la_read_var_value initializer.
3172 * c-lang.c (c_language_data): Likewise.
3173 (cplus_language_data): Likewise.
3174 (minimal_language_data): Likewise.
3175 * d-lang.c (d_language_data): Likewise.
3176 * f-lang.c (f_language_data): Likewise.
3177 * findvar.c (default_read_var_value): Rename to...
3178 (language_defn::read_var_value): ...this.
3179 * findvar.c (read_var_value): Update header comment, and change to
3180 call member function instead of function pointer.
3181 * go-lang.c (go_language_data): Likewise.
3182 * language.c (unknown_language_data): Delete la_read_var_value
3183 initializer.
3184 (auto_language_data): Likewise.
3185 * language.h (struct language_data): Delete la_read_var_value
3186 field.
3187 (language_defn::read_var_value): New member function.
3188 (default_read_var_value): Delete declaration.
3189 * m2-lang.c (m2_language_data): Delete la_read_var_value
3190 initializer.
3191 * objc-lang.c (objc_language_data): Likewise.
3192 * opencl-lang.c (opencl_language_data): Likewise.
3193 * p-lang.c (pascal_language_data): Likewise.
3194 * rust-lang.c (rust_language_data): Likewise.
3195 * value.h (default_read_var_value): Delete declaration.
3196
5bd40f2a
AB
31972020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3198
3199 * ada-lang.c (ada_print_array_index): Delete function, move
3200 implementation to...
3201 (ada_language::print_array_index): ...here.
3202 (ada_language_data): Delete la_print_array_index initializer.
3203 * c-lang.c (c_language_data): Likewise.
3204 (cplus_language_data): Likewise.
3205 (minimal_language_data): Likewise.
3206 * d-lang.c (d_language_data): Likewise.
3207 * f-lang.c (f_language_data): Likewise.
3208 * go-lang.c (go_language_data): Likewise.
3209 * language.c (default_print_array_index): Delete function, move
3210 implementation to...
3211 (language_defn::print_array_index): ...here.
3212 (unknown_language_data): Delete la_print_array_index initializer.
3213 (auto_language_data): Likewise.
3214 * language.h (struct language_data): Delete la_print_array_index
3215 field.
3216 (language_defn::print_array_index): New member function.
3217 (LA_PRINT_ARRAY_INDEX): Update.
3218 (default_print_array_index): Delete declaration.
3219 * m2-lang.c (m2_language_data): Delete la_print_array_index
3220 initializer.
3221 * objc-lang.c (objc_language_data): Likewise.
3222 * opencl-lang.c (opencl_language_data): Likewise.
3223 * p-lang.c (pascal_language_data): Likewise.
3224 * rust-lang.c (rust_language_data): Likewise.
3225
0874fd07
AB
32262020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3227
3228 * gdb/ada-lang.c (ada_language_defn): Convert to...
3229 (ada_language_data): ...this.
3230 (class ada_language): New class.
3231 (ada_language_defn): New static global.
3232 * gdb/c-lang.c (c_language_defn): Convert to...
3233 (c_language_data): ...this.
3234 (class c_language): New class.
3235 (c_language_defn): New static global.
3236 (cplus_language_defn): Convert to...
3237 (cplus_language_data): ...this.
3238 (class cplus_language): New class.
3239 (cplus_language_defn): New static global.
3240 (asm_language_defn): Convert to...
3241 (asm_language_data): ...this.
3242 (class asm_language): New class.
3243 (asm_language_defn): New static global.
3244 (minimal_language_defn): Convert to...
3245 (minimal_language_data): ...this.
3246 (class minimal_language): New class.
3247 (minimal_language_defn): New static global.
3248 * gdb/d-lang.c (d_language_defn): Convert to...
3249 (d_language_data): ...this.
3250 (class d_language): New class.
3251 (d_language_defn): New static global.
3252 * gdb/f-lang.c (f_language_defn): Convert to...
3253 (f_language_data): ...this.
3254 (class f_language): New class.
3255 (f_language_defn): New static global.
3256 * gdb/go-lang.c (go_language_defn): Convert to...
3257 (go_language_data): ...this.
3258 (class go_language): New class.
3259 (go_language_defn): New static global.
3260 * gdb/language.c (unknown_language_defn): Remove declaration.
3261 (current_language): Initialize to nullptr, real initialization is
3262 moved to _initialize_language.
3263 (languages): Delete global.
3264 (language_defn::languages): Define.
3265 (set_language_command): Use language_defn::languages.
3266 (set_language): Likewise.
3267 (range_error): Likewise.
3268 (language_enum): Likewise.
3269 (language_def): Likewise.
3270 (add_set_language_command): Use language_def::languages for the
3271 language list, and language_def to lookup language pointers.
3272 (skip_language_trampoline): Use language_defn::languages.
3273 (unknown_language_defn): Convert to...
3274 (unknown_language_data): ...this.
3275 (class unknown_language): New class.
3276 (unknown_language_defn): New static global.
3277 (auto_language_defn): Convert to...
3278 (auto_language_data): ...this.
3279 (class auto_language): New class.
3280 (auto_language_defn): New static global.
3281 (language_gdbarch_post_init): Use language_defn::languages.
3282 (_initialize_language): Initialize current_language.
3283 * gdb/language.h (struct language_defn): Rename to...
3284 (struct language_data): ...this.
3285 (struct language_defn): New.
3286 (auto_language_defn): Delete.
3287 (unknown_language_defn): Delete.
3288 (minimal_language_defn): Delete.
3289 (ada_language_defn): Delete.
3290 (asm_language_defn): Delete.
3291 (c_language_defn): Delete.
3292 (cplus_language_defn): Delete.
3293 (d_language_defn): Delete.
3294 (f_language_defn): Delete.
3295 (go_language_defn): Delete.
3296 (m2_language_defn): Delete.
3297 (objc_language_defn): Delete.
3298 (opencl_language_defn): Delete.
3299 (pascal_language_defn): Delete.
3300 (rust_language_defn): Delete.
3301 * gdb/m2-lang.c (m2_language_defn): Convert to...
3302 (m2_language_data): ...this.
3303 (class m2_language): New class.
3304 (m2_language_defn): New static global.
3305 * gdb/objc-lang.c (objc_language_defn): Convert to...
3306 (objc_language_data): ...this.
3307 (class objc_language): New class.
3308 (objc_language_defn): New static global.
3309 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
3310 (opencl_language_data): ...this.
3311 (class opencl_language): New class.
3312 (opencl_language_defn): New static global.
3313 * gdb/p-lang.c (pascal_language_defn): Convert to...
3314 (pascal_language_data): ...this.
3315 (class pascal_language): New class.
3316 (pascal_language_defn): New static global.
3317 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
3318 language pointer, update comment format.
3319 * gdb/rust-lang.c (rust_language_defn): Convert to...
3320 (rust_language_data): ...this.
3321 (class rust_language): New class.
3322 (rust_language_defn): New static global.
3323
1313c56e
AB
33242020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
3325
3326 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
3327 member variable.
3328 <m_stmt_at_address>: New member variable.
3329 (lnp_state_machine::record_line): Don't record some lines, update
3330 tracking of is_stmt at the same address.
3331 (lnp_state_machine::lnp_state_machine): Initialise new member
3332 variables.
3333
b7ed9f3d
ST
33342020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
3335
3336 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
3337 "-include gnu-nat-mig.h".
3338 * gnu-nat-mig.h: New file.
3339 * gnu-nat.c: Include "gnu-nat-mig.h".
3340 (exc_server, msg_reply_server, notify_server,
3341 process_reply_server): Remove declarations.
3342
14a8ad62
ST
33432020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3344
3345 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
3346 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
3347 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
3348 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
3349 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
3350 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
3351 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
3352 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
3353 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
3354 to gnu_nat_target class.
3355 * gnu-nat.c: Likewise.
3356 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
3357 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
3358 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
3359 object.
3360 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
3361 instead of `gnu_target'.
3362
0af5e106
ST
33632020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3364
3365 * i386-gnu-tdep.c: Include "gdbcore.h"
3366 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
3367 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
3368 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
3369 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
3370 i386_gnu_sigcontext_addr): New functions
3371 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
3372 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
3373 tdep.
3374
078f2fc9
ST
33752020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3376
3377 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
3378 before fork_inferior call. Avoid calling it if target_is_pushed returns
3379 true.
3380
53dff92c
ST
33812020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3382
3383 * gnu-nat.h (gnu_target): New variable declaration.
3384 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
3385 gnu_target.
3386 * gnu-nat.c (gnu_target): New variable.
3387 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
3388 add_thread_silent, and add_thread calls.
3389 (gnu_nat_target::create_inferior): Pass gnu_target to
3390 add_thread_silent, thread_change_ptid call.
3391 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
3392 call.
3393
5a8b8627
ST
33942020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3395
3396 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
3397 (gnu_nat_target::find_memory_regions): Remove unused
3398 `old_address' variable.
3399
366f550a
ST
34002020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3401
3402 * gnu-nat.c: Include "gdbarch.h".
3403
f14871bf
ST
34042020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3405
3406 * reply_mig_hack.awk (Error return): Cast function through
3407 void *, to bypass compiler function call check.
3408
c6887cfb
ST
34092020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3410
3411 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
3412 $(srcdir)/reply_mig_hack.awk.
3413
6930bffe
ST
34142020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3415
3416 * gnu-nat.h (gnu_debug_flag): Set type to bool.
3417
112c22ed
JG
34182020-05-30 Jonny Grant <jg@jguk.org>
3419
3420 * configure.ac (ACX_BUGURL): change bug URL to https.
3421
f68f85b5
PA
34222020-05-30 Pedro Alves <palves@redhat.com>
3423
3424 * cp-support.c (replace_typedefs_template): New.
3425 (replace_typedefs_qualified_name): Handle
3426 DEMANGLE_COMPONENT_TEMPLATE.
3427
976ca316
SM
34282020-05-29 Simon Marchi <simon.marchi@efficios.com>
3429
3430 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
3431 dwarf2/index-cache.h, dwarf2/index-write.c,
3432 dwarf2/index-write.h, dwarf2/line-header.c,
3433 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
3434 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
3435 variables and fields from `dwarf2_per_objfile` to just
3436 `per_objfile` throughout.
3437
989ade05
SM
34382020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
3439
3440 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3441 <push_dwarf_reg_entry_value>: Add comment.
3442
c47bae85
KB
34432020-05-28 Kevin Buettner <kevinb@redhat.com>
3444 Keith Seitz <keiths@redhat.com>
3445
3446 * python/python.c (do_start_initialization): Call PyEval_SaveThread
3447 instead of PyEval_ReleaseLock.
3448 (class gdbpy_gil): Move to earlier in file.
3449 (finalize_python): Set gdb_python_initialized.
3450 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
3451 when not initialized.
3452
44486dcf
SM
34532020-05-28 Simon Marchi <simon.marchi@efficios.com>
3454
3455 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3456 <push_dwarf_reg_entry_value>: Remove assert. Override
3457 per_objfile with caller_per_objfile.
3458
f030440d
TV
34592020-05-28 Tom de Vries <tdevries@suse.de>
3460
3461 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
3462 PR gold/15646 workaround to symbol kind "type".
3463
f0fbb768
TT
34642020-05-27 Tom Tromey <tromey@adacore.com>
3465
3466 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
3467
af0b2a3e
TT
34682020-05-27 Tom Tromey <tromey@adacore.com>
3469
3470 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
3471 Use htab_find_with_hash.
3472 <add_abbrev>: Remove "abbrev_number" parameter.
3473 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
3474 "abbrev_number" parameter. Use htab_find_slot_with_hash.
3475 (hash_abbrev): Add comment.
3476 (abbrev_table::lookup_abbrev): Move to header file.
3477 (abbrev_table::read): Update.
3478
7d00ffec
TT
34792020-05-27 Tom Tromey <tromey@adacore.com>
3480
3481 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
3482 method.
3483 <canonical_name>: New member.
3484 <raw_name>: Rename from "name".
3485 (partial_die_info): Initialize canonical_name.
3486 (scan_partial_symbols): Check raw_name.
3487 (partial_die_parent_scope, partial_die_full_name)
3488 (add_partial_symbol, add_partial_subprogram)
3489 (add_partial_enumeration, load_partial_dies): Use "name" method.
3490 (partial_die_info::name): New method.
3491 (partial_die_info::read, guess_partial_die_structure_name)
3492 (partial_die_info::fixup): Update.
3493
697bba18
TT
34942020-05-27 Tom Tromey <tromey@adacore.com>
3495
3496 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
3497 <get_ref_die_offset>: Inline.
3498 <get_ref_die_offset_complaint>: New method.
3499 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
3500 (attribute::get_ref_die_offset_complaint): Rename from
3501 get_ref_die_offset. Just issue complaint.
3502
c17ace43
HD
35032020-05-27 Hannes Domani <ssbssa@yahoo.de>
3504
3505 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
3506
96445f0b
HD
35072020-05-27 Hannes Domani <ssbssa@yahoo.de>
3508
3509 * exec.c (exec_file_attach): Use errno value of first openp failure.
3510
ac637ec3
HD
35112020-05-27 Hannes Domani <ssbssa@yahoo.de>
3512
3513 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
3514 Don't close thread handle.
3515
17ee85fc
TT
35162020-05-27 Tom Tromey <tom@tromey.com>
3517 Simon Marchi <simon.marchi@efficios.com>
3518
3519 * objfiles.h (struct objfile) <partial_symtabs>: Now a
3520 shared_ptr.
3521 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
3522 member.
3523 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
3524 dwarf2_per_bfd_objfile_data_key>: New globals.
3525 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
3526 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
3527 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
3528 shared.
3529 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
3530 short-circuit when sharing.
3531 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
3532 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
3533
39b16f87
SM
35342020-05-27 Simon Marchi <simon.marchi@efficios.com>
3535
3536 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
3537 to...
3538 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
3539 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
3540
fcf23d5b
SM
35412020-05-27 Simon Marchi <simon.marchi@efficios.com>
3542
3543 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
3544 build_name_components, find_name_components_bounds>:
3545 Add per_objfile parameter.
3546 (struct mapped_index) <symbol_name_at>: Likewise.
3547 (struct mapped_debug_names): Remove constructor.
3548 <dwarf2_per_objfile>: Remove field.
3549 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
3550 (mapped_index_base::find_name_components_bounds,
3551 mapped_index_base::build_name_components,
3552 dw2_expand_symtabs_matching_symbol): Likewise.
3553 (class mock_mapped_index) <symbol_name_at>: Likewise.
3554 (check_match): Likewise.
3555 (check_find_bounds_finds): Likewise.
3556 (test_mapped_index_find_name_component_bounds): Update.
3557 (CHECK_MATCH): Update.
3558 (dw2_expand_symtabs_matching): Update.
3559 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
3560 per_objfile parameter.
3561 <find_vec_in_debug_names>: Likewise.
3562 <m_per_objfile>: New field.
3563 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
3564 parameter.
3565 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
3566 (dw2_debug_names_iterator::next): Update.
3567 (dw2_debug_names_lookup_symbol): Update.
3568 (dw2_debug_names_expand_symtabs_for_function): Update.
3569 (dw2_debug_names_map_matching_symbols): Update.
3570 (dw2_debug_names_expand_symtabs_matching): Update.
3571 (dwarf2_read_debug_names): Update.
3572
7188ed02
SM
35732020-05-27 Simon Marchi <simon.marchi@efficios.com>
3574
3575 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
3576 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
3577 move to dwarf2_per_objfile.
3578 <read_in_chain>: Remove.
3579 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
3580 remove_all_cus, age_comp_units>: New methods.
3581 <m_dwarf2_cus>: New member.
3582 (struct dwarf2_per_cu_data) <cu>: Remove.
3583 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
3584 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
3585 moved to methods of dwarf2_per_objfile.
3586 (dwarf2_clear_marks): Remove.
3587 (dwarf2_queue_item::~dwarf2_queue_item): Update.
3588 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
3589 (dwarf2_per_bfd::free_cached_comp_units): Remove.
3590 (dwarf2_per_objfile::remove_all_cus): New.
3591 (class free_cached_comp_units) <~free_cached_comp_units>:
3592 Update.
3593 (load_cu): Update.
3594 (dw2_do_instantiate_symtab): Adjust.
3595 (fill_in_sig_entry_from_dwo_entry): Adjust.
3596 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3597 (cutu_reader::cutu_reader): Likewise.
3598 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
3599 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
3600 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
3601 and dwarf2_per_objfile::age_comp_units.
3602 (load_partial_comp_unit): Update.
3603 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
3604 (process_queue): Likewise.
3605 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
3606 backlink.
3607 (dwarf2_read_addr_index): Likewise.
3608 (follow_die_offset): Likewise.
3609 (dwarf2_fetch_die_loc_sect_off): Likewise.
3610 (dwarf2_fetch_constant_bytes): Likewise.
3611 (dwarf2_fetch_die_type_sect_off): Likewise.
3612 (follow_die_sig_1): Likewise.
3613 (load_full_type_unit): Likewise.
3614 (read_signatured_type): Likewise.
3615 (dwarf2_cu::dwarf2_cu): Don't set cu field.
3616 (dwarf2_cu::~dwarf2_cu): Remove.
3617 (dwarf2_per_objfile::get_cu): New.
3618 (dwarf2_per_objfile::set_cu): New.
3619 (age_cached_comp_units): Rename to...
3620 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
3621 to std::unordered_map.
3622 (free_one_cached_comp_unit): Rename to...
3623 (dwarf2_per_objfile::remove_cu): ... this. Adjust
3624 to std::unordered_map.
3625 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
3626 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
3627 a dwarf2_per_objfile in data.
3628 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
3629 (dwarf2_clear_marks): Remove.
3630
2e671100
SM
36312020-05-27 Simon Marchi <simon.marchi@efficios.com>
3632
3633 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
3634 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
3635 (init_tu_and_read_dwo_dies): Likewise.
3636 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
3637 (cutu_reader::cutu_reader): Likewise.
3638 (load_partial_comp_unit): Likewise.
3639 (process_psymtab_comp_unit): Update.
3640 (build_type_psymtabs_1): Update.
3641 (process_skeletonless_type_unit): Update.
3642 (load_full_comp_unit): Update.
3643 (find_partial_die): Update.
3644 (dwarf2_read_addr_index): Update.
3645 (read_signatured_type): Update.
3646
2e6a9f79
SM
36472020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3648
3649 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
3650 m_header_read_in>: New fields.
3651 <get_header>: New method.
3652 * dwarf2/read.c (per_cu_header_read_in): Remove.
3653 (dwarf2_per_cu_data::get_header): New.
3654 (dwarf2_per_cu_data::addr_size): Update.
3655 (dwarf2_per_cu_data::offset_size): Update.
3656 (dwarf2_per_cu_data::ref_addr_size): Update.
3657
1b555f17
SM
36582020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3659
3660 * dwarf2/read.c (load_cu): Return dwarf2_cu.
3661 (dw2_do_instantiate_symtab): Update.
3662 (queue_and_load_all_dwo_tus): Change parameter from
3663 dwarf2_per_cu_data to dwarf2_cu.
3664 (dwarf2_fetch_die_loc_sect_off): Update.
3665 (dwarf2_fetch_constant_bytes): Update.
3666 (dwarf2_fetch_die_type_sect_off): Update.
3667
8fc0b21d
SM
36682020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3669
3670 * dwarf2/read.c (process_full_comp_unit,
3671 process_full_type_unit): Remove per_cu, per_objfile paramters.
3672 Add dwarf2_cu parameter.
3673 (process_queue): Update.
3674
168c9250
SM
36752020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3676
3677 * dwarf2/read.c (create_cu_from_index_list): Replace
3678 dwarf2_per_objfile parameter with dwarf2_per_bfd.
3679 (create_cus_from_index_list): Likewise.
3680 (create_cus_from_index): Likewise.
3681 (create_signatured_type_table_from_index): Likewise.
3682 (create_cus_from_debug_names_list): Likewise.
3683 (create_cus_from_debug_names): Likewise.
3684 (dwarf2_read_gdb_index): Update.
3685 (dwarf2_read_debug_names): Update.
3686
e286671b
TT
36872020-05-27 Tom Tromey <tom@tromey.com>
3688 Simon Marchi <simon.marchi@efficios.com>
3689
3690 * dwarf2/read.h (struct dwarf2_per_objfile)
3691 <get_type_for_signatured_type, set_type_for_signatured_type>:
3692 New methods.
3693 <m_type_map>: New member.
3694 (struct signatured_type) <type>: Remove.
3695 * dwarf2/read.c
3696 (dwarf2_per_objfile::get_type_for_signatured_type,
3697 dwarf2_per_objfile::set_type_for_signatured_type): New.
3698 (get_signatured_type): Use new methods.
3699
8adb8487
TT
37002020-05-27 Tom Tromey <tom@tromey.com>
3701 Simon Marchi <simon.marchi@efficios.com>
3702
3703 * dwarf2/read.h (struct type_unit_group_unshareable): New.
3704 (struct dwarf2_per_objfile) <type_units>: New member.
3705 <get_type_unit_group_unshareable>: New method.
3706 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
3707 num_symtabs, symtabs>: Remove; move to
3708 type_unit_group_unshareable.
3709 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
3710 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
3711 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
3712
127bbf4b
SM
37132020-05-27 Simon Marchi <simon.marchi@efficios.com>
3714
3715 * dwarf2/read.h (struct dwarf2_per_cu_data):
3716 <dwarf2_per_objfile>: Remove.
3717 * dwarf2/read.c (create_cu_from_index_list): Don't assign
3718 dwarf2_per_objfile.
3719 (create_signatured_type_table_from_index): Likewise.
3720 (create_signatured_type_table_from_debug_names): Likewise.
3721 (create_debug_type_hash_table): Likewise.
3722 (fill_in_sig_entry_from_dwo_entry): Likewise.
3723 (create_type_unit_group): Likewise.
3724 (read_comp_units_from_section): Likewise.
3725 (create_cus_hash_table): Likewise.
3726
f6e649dd
SM
37272020-05-27 Simon Marchi <simon.marchi@efficios.com>
3728
3729 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
3730 dwarf2_per_cu_data::dwarf2_per_objfile.
3731 (compute_compunit_symtab_includes): Likewise.
3732 (dwarf2_cu::start_symtab): Likewise.
3733
aa66c379
SM
37342020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3735
3736 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
3737 parameter.
3738 * dwarf2/read.c (get_die_type_at_offset): Likewise.
3739 (read_namespace_alias): Update.
3740 (lookup_die_type): Update.
3741 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
3742 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
3743 Update.
3744 (disassemble_dwarf_expression): Update.
3745
120ce1b5
SM
37462020-05-27 Simon Marchi <simon.marchi@efficios.com>
3747
3748 * dwarf2/read.h (struct dwarf2_queue_item): Add
3749 dwarf2_per_objfile parameter, assign new parameter.
3750 <per_objfile>: New field.
3751 * dwarf2/read.c (free_one_cached_comp_unit): Add
3752 dwarf2_per_objfile parameter.
3753 (queue_comp_unit): Likewise.
3754 (dw2_do_instantiate_symtab): Update.
3755 (process_psymtab_comp_unit): Update.
3756 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
3757 (process_imported_unit_die): Update.
3758 (queue_and_load_dwo_tu): Update.
3759 (follow_die_offset): Update.
3760 (follow_die_sig_1): Update.
3761
9f47c707
SM
37622020-05-27 Simon Marchi <simon.marchi@efficios.com>
3763
3764 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
3765 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
3766 (read_call_site_scope): Assign per_objfile.
3767 (dwarf2_per_cu_data::objfile): Remove.
3768 * gdbtypes.h (struct call_site) <per_objfile>: New member.
3769 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
3770 dwarf2_per_objfile parameter.
3771 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
3772 dwarf2_per_objfile parameter.
3773 (dwarf_expr_reg_to_entry_parameter): Add output
3774 dwarf2_per_objfile parameter.
3775 (locexpr_get_frame_base): Update.
3776 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
3777 <push_dwarf_reg_entry_value>: Update.
3778 <call_site_to_target_addr>: Update.
3779 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
3780 parameter.
3781 (value_of_dwarf_reg_entry): Update.
3782 (rw_pieced_value): Update.
3783 (indirect_synthetic_pointer): Update.
3784 (dwarf2_evaluate_property): Update.
3785 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
3786 parameter.
3787 (locexpr_read_variable): Update.
3788 (locexpr_get_symbol_read_needs): Update.
3789 (loclist_read_variable): Update.
3790
14095eb3
SM
37912020-05-27 Simon Marchi <simon.marchi@efficios.com>
3792
3793 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
3794 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3795 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
3796 parameter.
3797 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
3798 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3799 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
3800 parameter.
3801 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
3802 sect_variable_value): Add dwarf2_per_objfile parameter.
3803 (class dwarf_evaluate_loc_desc) <dwarf_call,
3804 dwarf_variable_value>: Update.
3805 (fetch_const_value_from_synthetic_pointer): Add
3806 dwarf2_per_objfile parameter.
3807 (fetch_const_value_from_synthetic_pointer): Update.
3808 (coerced_pieced_ref): Update.
3809 (class symbol_needs_eval_context) <dwarf_call,
3810 dwarf_variable_value>: Update.
3811 (dwarf2_compile_expr_to_ax): Update.
3812
3c3cd3d4
SM
38132020-05-27 Simon Marchi <simon.marchi@efficios.com>
3814
3815 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
3816 parameter.
3817 (dwarf2_evaluate_loc_desc_full): Update.
3818
82ca3f51
SM
38192020-05-27 Simon Marchi <simon.marchi@efficios.com>
3820
3821 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
3822 parameter.
3823 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
3824 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
3825 dwarf2_per_objfile parameter.
3826 (decode_debug_loc_dwo_addresses): Likewise.
3827 (dwarf2_find_location_expression): Update.
3828 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
3829 (locexpr_describe_location_piece): Add dwarf2_per_objfile
3830 parameter.
3831 (disassemble_dwarf_expression): Add dwarf2_per_objfile
3832 parameter.
3833 (locexpr_describe_location_1): Likewise.
3834 (locexpr_describe_location): Update.
3835
4b167ea1
SM
38362020-05-27 Simon Marchi <simon.marchi@efficios.com>
3837
3838 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
3839 Remove.
3840 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
3841 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
3842 (dwarf2_compile_property_to_c): Update.
3843 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
3844 use text offset from objfile.
3845 (locexpr_tracepoint_var_ref): Update.
3846 (locexpr_generate_c_location): Update.
3847 (loclist_describe_location): Update.
3848 (loclist_tracepoint_var_ref): Update.
3849 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
3850 dwarf2_per_objfile parameter.
3851 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
3852 use text offset from objfile.
3853 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
3854
89b07335
SM
38552020-05-27 Simon Marchi <simon.marchi@efficios.com>
3856
3857 * dwarf2/expr.h (struct dwarf_expr_context)
3858 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
3859 <offset>: Remove.
3860 <per_objfile>: New member.
3861 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
3862 dwarf2_per_objfile parameter. Don't set offset, set
3863 per_objfile.
3864 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
3865 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
3866 a dwarf2_per_objfile object instead of an offset.
3867 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
3868 constructor.
3869 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
3870 to dwarf2_expr_executor constructor. Don't set offset.
3871 (dwarf2_fetch_cfa_info): Update.
3872 (struct dwarf2_frame_cache) <text_offset>: Remove.
3873 <per_objfile>: New field.
3874 (dwarf2_frame_cache): Update.
3875 (dwarf2_frame_prev_register): Update.
3876 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3877 <dwarf_evaluate_loc_desc>: Add constructor.
3878 (dwarf2_evaluate_loc_desc_full): Update.
3879 (dwarf2_locexpr_baton_eval): Update.
3880 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
3881 Add constructor.
3882 (dwarf2_loc_desc_get_symbol_read_needs): Update.
3883
293e7e51
SM
38842020-05-27 Simon Marchi <simon.marchi@efficios.com>
3885
3886 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
3887 addr_sized_int_type>: Move to dwarf2_cu.
3888 <int_type>: Move to dwarf2_per_objfile.
3889 (struct dwarf2_per_objfile) <int_type>: Move here.
3890 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
3891 addr_sized_int_type>: Move here.
3892 (read_func_scope): Update.
3893 (read_array_type): Update.
3894 (read_tag_string_type): Update.
3895 (attr_to_dynamic_prop): Update.
3896 (dwarf2_per_cu_data::int_type): Rename to...
3897 (dwarf2_per_objfile::int_type): ... this.
3898 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
3899 (dwarf2_cu::addr_sized_int_type): ... this.
3900 (read_subrange_type): Update.
3901 (dwarf2_per_cu_data::addr_type): Rename to...
3902 (dwarf2_cu::addr_type): ... this.
3903 (set_die_type): Update.
3904
64874a40
SM
39052020-05-27 Simon Marchi <simon.marchi@efficios.com>
3906
3907 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
3908 data through per_cu->cu.
3909
4ab09049
SM
39102020-05-27 Simon Marchi <simon.marchi@efficios.com>
3911
3912 * dwarf2/read.c (lookup_dwo_comp_unit): Change
3913 dwarf2_per_cu_data parameter fo dwarf2_cu.
3914 (lookup_dwo_type_unit): Likewise.
3915 (read_cutu_die_from_dwo): Likewise.
3916 (lookup_dwo_unit): Likewise.
3917 (open_and_init_dwo_file): Likewise.
3918 (lookup_dwo_cutu): Likewise.
3919 (lookup_dwo_comp_unit): Likewise.
3920 (lookup_dwo_type_unit): Likewise.
3921 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3922 (cutu_reader::cutu_reader): Update.
3923
47b14e86
SM
39242020-05-27 Simon Marchi <simon.marchi@efficios.com>
3925
3926 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
3927 parameter.
3928 (process_full_type_unit): Likewise.
3929 (process_queue): Update.
3930
43182c09
SM
39312020-05-27 Simon Marchi <simon.marchi@efficios.com>
3932
3933 * dwarf2/read.c (recursively_compute_inclusions): Add
3934 dwarf2_per_objfile parameter.
3935 (compute_compunit_symtab_includes): Likewise.
3936 (process_cu_includes): Update.
3937
7aa104c4
SM
39382020-05-27 Simon Marchi <simon.marchi@efficios.com>
3939
3940 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
3941 parameter.
3942 (create_type_unit_group): Update.
3943 (process_psymtab_comp_unit_reader): Update.
3944 (build_type_psymtabs_reader): Update.
3945
e3beb21d
SM
39462020-05-27 Simon Marchi <simon.marchi@efficios.com>
3947
3948 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
3949 object through m_this_cu->cu.
3950
d460f660
SM
39512020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3952
3953 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
3954 the info parameter.
3955 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
3956
ab432490
SM
39572020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3958
3959 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
3960 per_objfile parameter.
3961 (load_full_type_unit): Add per_objfile parameter.
3962 (read_signatured_type): Likewise.
3963 (load_full_comp_unit): Likewise.
3964 (load_cu): Likewise.
3965 (dw2_do_instantiate_symtab): Likewise.
3966 (dw2_get_file_names): Likewise.
3967 (dw2_map_symtabs_matching_filename): Update.
3968 (dw_expand_symtabs_matching_file_matcher): Update.
3969 (dw2_map_symbol_filenames): Update.
3970 (process_psymtab_comp_unit): Add per_objfile parameter.
3971 (build_type_psymtabs_1): Update.
3972 (process_skeletonless_type_unit): Update.
3973 (dwarf2_build_psymtabs_hard): Update.
3974 (load_partial_comp_unit): Add per_objfile parameter.
3975 (scan_partial_symbols): Update.
3976 (load_full_comp_unit): Add per_objfile parameter.
3977 (process_imported_unit_die): Update.
3978 (create_cus_hash_table): Update.
3979 (find_partial_die): Update.
3980 (dwarf2_read_addr_index): Update.
3981 (follow_die_offset): Update.
3982 (dwarf2_fetch_die_loc_sect_off): Update.
3983 (dwarf2_fetch_constant_bytes): Update.
3984 (dwarf2_fetch_die_type_sect_off): Update.
3985 (follow_die_sig_1): Update.
3986 (load_full_type_unit): Add per_objfile parameter.
3987 (read_signatured_type): Likewise.
3988
313bad1b
SM
39892020-05-27 Simon Marchi <simon.marchi@efficios.com>
3990
3991 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
3992 of objfile_name.
3993
c3699833
SM
39942020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3995
3996 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
3997 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
3998 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
3999 field.
4000 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4001 (create_cus_from_index): Update.
4002 (dwarf2_read_gdb_index): Update.
4003 (create_cus_from_debug_names): Update.
4004 (dwarf2_read_debug_names): Update.
4005 (get_abbrev_section_for_cu): Update.
4006 (create_all_comp_units): Update.
4007 (read_attribute_value): Update.
4008 (get_debug_line_section): Update.
4009 * dwarf2/index-cache.c (index_cache::store): Update.
4010 * dwarf2/index-write.c (save_gdb_index_command): Update.
4011 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
4012
1859c670
SM
40132020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4014
4015 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
4016 member.
4017 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
4018 dwarf2_per_cu_data::per_bfd.
4019 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
4020 (create_type_unit_group): Likewise.
4021 (queue_comp_unit): Remove reference to
4022 per_cu->dwarf2_per_objfile.
4023 (maybe_queue_comp_unit): Likewise.
4024 (fill_in_sig_entry_from_dwo_entry): Assign new field.
4025 (create_cus_hash_table): Assign new field.
4026
5e22e966
SM
40272020-05-27 Simon Marchi <simon.marchi@efficios.com>
4028
4029 * dwarf2/read.c: Replace
4030 dwarf2_cu->per_cu->dwarf2_per_objfile references with
4031 dwarf2_cu->per_objfile throughout.
4032
97a1449a
SM
40332020-05-27 Simon Marchi <simon.marchi@efficios.com>
4034
4035 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
4036 parameter, don't use per_cu->dwarf2_per_objfile.
4037 (dw2_instantiate_symtab): Likewise.
4038 (dw2_find_last_source_symtab): Update.
4039 (dw2_map_expand_apply): Update.
4040 (dw2_lookup_symbol): Update.
4041 (dw2_expand_symtabs_for_function): Update.
4042 (dw2_expand_all_symtabs): Update.
4043 (dw2_expand_symtabs_with_fullname): Update.
4044 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
4045 don't use per_cu->dwarf2_per_objfile.
4046 (dw2_expand_marked_cus): Update.
4047 (dw2_find_pc_sect_compunit_symtab): Update.
4048 (dw2_debug_names_lookup_symbol): Update.
4049 (dw2_debug_names_expand_symtabs_for_function): Update.
4050 (dw2_debug_names_map_matching_symbols): Update.
4051 (dwarf2_psymtab::expand_psymtab): Update.
4052
9e021579
SM
40532020-05-27 Simon Marchi <simon.marchi@efficios.com>
4054
4055 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
4056 <per_objfile>: New member.
4057 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
4058 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
4059 call to dwarf2_cu.
4060 (cutu_reader::cutu_reader): Update.
4061 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
4062
ae090bdb
SM
40632020-05-27 Simon Marchi <simon.marchi@efficios.com>
4064
4065 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
4066 struct dwarf2_per_objfile.
4067 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
4068 dwarf2_per_bfd.
4069 * dwarf2/read.c (set_die_type): Update.
4070 (get_die_type_at_offset): Update.
4071
af758d11
SM
40722020-05-27 Tom Tromey <tom@tromey.com>
4073 Simon Marchi <simon.marchi@efficios.com>
4074
4075 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
4076 method.
4077 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
4078 get_symtab, set_symtab>: New methods.
4079 <m_symtabs>: New field.
4080 (struct dwarf2_psymtab): Derive from partial_symtab.
4081 <readin_p, get_compunit_symtab>: Declare methods.
4082 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
4083 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
4084 New methods.
4085 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
4086 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
4087 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
4088 (dw2_symtab_iter_next, dw2_print_stats)
4089 (dw2_expand_symtabs_with_fullname)
4090 (dw2_expand_symtabs_matching_one)
4091 (dw_expand_symtabs_matching_file_matcher)
4092 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
4093 (dw2_debug_names_iterator::next)
4094 (dw2_debug_names_map_matching_symbols)
4095 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
4096 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
4097 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
4098 New methods.
4099 (get_compunit_symtab, process_full_comp_unit)
4100 (process_full_type_unit): Update.
4101 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
4102
5989a64e
SM
41032020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4104
4105 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
4106 then introduce a new dwarf2_per_objfile type.
4107 <read_line_string>: Move to the new dwarf2_per_objfile type.
4108 <objfile>: Likewise.
4109 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
4110 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
4111 dwarf2_per_objfile->per_bfd.
4112 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
4113 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
4114 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
4115 (dwarf2_per_bfd::free_cached_comp_units): ... this.
4116 (dwarf2_has_info): Allocate dwarf2_per_bfd.
4117 (dwarf2_per_objfile::locate_sections): Rename to...
4118 (dwarf2_per_bfd::locate_sections): ... this.
4119 (dwarf2_per_objfile::get_cutu): Rename to...
4120 (dwarf2_per_bfd::get_cutu): ... this.
4121 (dwarf2_per_objfile::get_cu): Rename to...
4122 (dwarf2_per_bfd::get_cu): ... this.
4123 (dwarf2_per_objfile::get_tu): Rename to...
4124 (dwarf2_per_bfd::get_tu): ... this.
4125 (dwarf2_per_objfile::allocate_per_cu): Rename to...
4126 (dwarf2_per_bfd::allocate_per_cu): ... this.
4127 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
4128 (dwarf2_per_bfd::allocate_signatured_type): ... this.
4129 (get_gdb_index_contents_ftype): Change parameter from
4130 dwarf2_per_objfile to dwarf2_per_bfd.
4131 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
4132 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
4133
a50264ba
TT
41342020-05-27 Tom Tromey <tom@tromey.com>
4135 Simon Marchi <simon.marchi@efficios.com>
4136
4137 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
4138 (allocate_piece_closure): Set "per_objfile" member.
4139 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
4140 (locexpr_describe_location, loclist_describe_location): Use new
4141 member.
4142 * dwarf2/read.c (read_call_site_scope)
4143 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
4144 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
4145 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
4146 handle_data_member_location): Set per_objfile member.
4147 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
4148 member.
4149 (struct dwarf2_loclist_baton) <per_objfile>: New member.
4150
d3473f0c
TT
41512020-05-27 Tom Tromey <tom@tromey.com>
4152
4153 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
4154 allocate_signatured_type>: Declare new methods.
4155 <m_num_psymtabs>: New member.
4156 (struct dwarf2_per_cu_data) <index>: New member.
4157 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
4158 (dwarf2_per_objfile::allocate_signatured_type): New methods.
4159 (create_cu_from_index_list): Use allocate_per_cu.
4160 (create_signatured_type_table_from_index)
4161 (create_signatured_type_table_from_debug_names)
4162 (create_debug_type_hash_table, add_type_unit)
4163 (read_comp_units_from_section): Use allocate_signatured_type.
4164
5717c425
TT
41652020-05-27 Tom Tromey <tom@tromey.com>
4166
4167 * psymtab.c (partial_map_expand_apply)
4168 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
4169 (psym_lookup_global_symbol_language)
4170 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
4171 (psym_print_stats, psym_expand_symtabs_for_function)
4172 (psym_map_symbol_filenames, psym_map_matching_symbols)
4173 (psym_expand_symtabs_matching)
4174 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
4175 (maintenance_check_psymtabs): Update.
4176 * psympriv.h (struct partial_symtab) <readin_p,
4177 get_compunit_symtab>: Add objfile parameter.
4178 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
4179 Likewise.
4180 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
4181 get_compunit_symtab>: Likewise.
4182 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
4183
45940949
TT
41842020-05-27 Tom Tromey <tom@tromey.com>
4185
4186 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
4187 member.
4188 * dwarf2/read.c (delete_file_name_entry): Fix comment.
4189 (create_cu_from_index_list)
4190 (create_signatured_type_table_from_index)
4191 (create_signatured_type_table_from_debug_names)
4192 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
4193 (dwarf2_create_include_psymtab)
4194 (create_debug_type_hash_table, add_type_unit)
4195 (create_type_unit_group, read_comp_units_from_section)
4196 (dwarf2_compute_name, create_cus_hash_table)
4197 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
4198 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
4199 obstack.
4200 (dw2_get_real_path): Likewise. Change argument to
4201 dwarf2_per_objfile.
4202
f8c6d152
LM
42032020-05-27 Luis Machado <luis.machado@linaro.org>
4204
4205 PR tdep/26000
4206 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
4207 for ldrd (immediate).
4208
e98d2e6d
PW
42092020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4210
4211 * command.h: Add comment giving the name of class_tui.
4212 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
4213 create the fake command for the help for class_tui.
4214
53a47a3e
TT
42152020-05-26 Tom Tromey <tromey@adacore.com>
4216
4217 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
4218 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
4219 (val_atr): New function.
4220 (value_val_atr): Use it.
4221 * ada-valprint.c (print_optional_low_bound): Change low bound
4222 handling for enums.
4223 (val_print_packed_array_elements): Don't call discrete_position.
4224 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
4225 discrete_position for enum types.
4226 * language.c (default_print_array_index): Change type.
4227 * language.h (struct language_defn) <la_print_array_index>: Add
4228 index_type parameter, change type of index_value.
4229 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
4230 (default_print_array_index): Update.
4231 * valprint.c (maybe_print_array_index): Don't call
4232 value_from_longest. Update.
4233 (value_print_array_elements): Don't call discrete_position.
4234
0bc2354b
TT
42352020-05-26 Tom Tromey <tromey@adacore.com>
4236
4237 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
4238 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
4239
1218a4bf
CDA
42402020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
4241
4242 PR gdb/13519
4243 * avr-tdep.c (avr_integer_to_address): Return data or code
4244 address accordingly to the second 'type' argument of the
4245 function.
4246
92651b1d
MW
42472020-05-25 Michael Weghorn <m.weghorn@posteo.de>
4248
4249 * infcmd.c, inferior.h: (construct_inferior_arguments):
4250 Moved function from here to gdbsupport/common-inferior.{h,cc}
4251
0a4f5f8c
TT
42522020-05-23 Tom Tromey <tom@tromey.com>
4253
4254 Revert commit eca1f90c:
4255 * NEWS: Remove entry for completion styling.
4256 * completer.c (_rl_completion_prefix_display_length): Move
4257 declaration later.
4258 (gdb_fnprint): Revert.
4259 (gdb_display_match_list_1): Likewise.
4260 * cli/cli-style.c (completion_prefix_style)
4261 (completion_difference_style, completion_suffix_style): Remove.
4262 (_initialize_cli_style): Revert.
4263 * cli/cli-style.h (completion_prefix_style)
4264 (completion_difference_style, completion_suffix_style): Don't
4265 declare.
4266
e08bd6c5
PA
42672020-05-24 Pedro Alves <palves@redhat.com>
4268
4269 * symtab.c (completion_list_add_name): Return boolean indication
4270 of whether the symbol matched.
4271 (completion_list_add_symbol): Don't try to remove C++ aliases if
4272 the symbol didn't match in the first place.
4273 * symtab.h (completion_list_add_name): Return bool.
4274
ceacbf6e
SM
42752020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
4276
4277 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
4278 type::field.
4279
26f16254
JB
42802020-05-23 Joel Brobecker <brobecker@adacore.com>
4281
4282 GDB 9.2 released.
4283
eca1f90c
TT
42842020-05-23 Tom Tromey <tom@tromey.com>
4285
4286 * NEWS: Add entry for completion styling.
4287 * completer.c (_rl_completion_prefix_display_length): Move
4288 declaration earlier.
4289 (gdb_fnprint): Use completion_style.
4290 (gdb_display_match_list_1): Likewise.
4291 * cli/cli-style.c (completion_prefix_style)
4292 (completion_difference_style, completion_suffix_style): New
4293 globals.
4294 (_initialize_cli_style): Register new globals.
4295 * cli/cli-style.h (completion_prefix_style)
4296 (completion_difference_style, completion_suffix_style): Declare.
4297
51e2cfa2
PA
42982020-05-23 Pedro Alves <palves@redhat.com>
4299
4300 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
4301 (parse_escape): Use ISDIGIT instead of isdigit.
4302 (puts_debug): Use gdb_isprint instead of isprint.
4303 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
4304 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
4305 ISSPACE instead of isspace.
4306 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
4307 instead of isspace.
4308 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
4309 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
4310 instead of isxdigit and ISDIGIT instead of isdigit.
4311
80fc5e77
SM
43122020-05-22 Simon Marchi <simon.marchi@efficios.com>
4313
4314 * gdbtypes.h (struct type) <field>: New method.
4315 (TYPE_FIELDS): Remove, replace all uses with either type::fields
4316 or type::field.
4317
3cabb6b0
SM
43182020-05-22 Simon Marchi <simon.marchi@efficios.com>
4319
4320 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
4321 (TYPE_FIELDS): Use type::fields. Change all call sites that
4322 modify the propery to use type::set_fields instead.
4323
1f704f76
SM
43242020-05-22 Simon Marchi <simon.marchi@efficios.com>
4325
4326 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
4327 type::num_fields instead.
4328
5e33d5f4
SM
43292020-05-22 Simon Marchi <simon.marchi@efficios.com>
4330
4331 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
4332 methods.
4333 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
4334 that modify the number of fields to use type::set_num_fields
4335 instead.
4336
9392ebb3
TT
43372020-05-22 Tom Tromey <tromey@adacore.com>
4338
4339 * compile/compile-object-load.h (munmap_list_free): Don't
4340 declare.
4341
7c13f4e8
AB
43422020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
4343
4344 * annotate.c (annotate_source_line): Update return type, add call
4345 to update current symtab and line.
4346 * annotate.h (annotate_source_line): Update return type, and
4347 extend header comment.
4348 * source.c (info_line_command): Check annotation_level before
4349 calling annotate_source_line.
4350 * stack.c (print_frame_info): If calling annotate_source_line
4351 returns true, then don't print any other source line information.
4352
aa370940
SM
43532020-05-21 Simon Marchi <simon.marchi@efficios.com>
4354
4355 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
4356
84d53fa9
SM
43572020-05-21 Simon Marchi <simon.marchi@efficios.com>
4358
4359 * coffread.c (patch_type): Remove NULL check before xfree.
4360 * corefile.c (set_gnutarget): Likewise.
4361 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
4362 * exec.c (build_section_table): Likewise.
4363 * remote.c (remote_target::pass_signals): Likewise.
4364 * utils.c (n_spaces): Likewise.
4365 * cli/cli-script.c (document_command): Likewise.
4366 * i386-windows-tdep.c (core_process_module_section): Likewise.
4367 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
4368
9d428aae
SM
43692020-05-20 Simon Marchi <simon.marchi@efficios.com>
4370
4371 * symfile.c (reread_symbols): Clear objfile's section_offsets
4372 vector and section indices, re-compute them by calling
4373 sym_offsets.
4374
250106a7
TT
43752020-05-20 Tom Tromey <tromey@adacore.com>
4376
4377 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 4378 (desc_one_bound, desc_index_type): Compute field name.
250106a7 4379
9a0bacfb
TV
43802020-05-20 Tom de Vries <tdevries@suse.de>
4381
4382 PR symtab/25833
4383 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
4384
7b958a48
AM
43852020-05-20 Alan Modra <amodra@gmail.com>
4386
4387 PR 25993
4388 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
4389 bfd_set_filename.
4390 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
4391 passed to bfd_set_filename.
4392 * symfile-mem.c (add_vsyscall_page): Likewise for string
4393 passed to symbol_file_add_from_memory.
4394 (symbol_file_add_from_memory): Make name param a const char* and
4395 don't strdup.
4396
c7e97679
AM
43972020-05-20 Alan Modra <amodra@gmail.com>
4398
4399 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
4400 rather than accessing bfd->filename directly.
4401 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
4402 and use bfd_section_name.
4403 * dwarf2/frame.c (decode_frame_entry): Likewise.
4404 * exec.c (exec_set_section_address): Likewise.
4405 * solib-aix.c (solib_aix_bfd_open): Likewise.
4406 * stap-probe.c (get_stap_base_address): Likewise.
4407 * symfile.c (reread_symbols): Likewise.
4408
563c591b
TT
44092020-05-19 Tom Tromey <tromey@adacore.com>
4410
4411 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
4412
f408d82c
SM
44132020-05-19 Simon Marchi <simon.marchi@efficios.com>
4414
4415 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
4416
98c59b52
PA
44172020-05-19 Pedro Alves <palves@redhat.com>
4418
4419 * NEWS (set exec-file-mismatch): Adjust entry.
4420 * exec.c: Include "build-id.h".
4421 (validate_exec_file): Try to match build IDs instead of filenames.
4422 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
4423 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
4424 and pass down 'warn_if_slow'.
4425 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
4426 gdb_bfd_open_closure to pass it down.
4427 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
4428
4111f652
PA
44292020-05-19 Pedro Alves <palves@redhat.com>
4430
4431 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
4432 * target.c (target_fileio_open_1): Rename to target_fileio_open
4433 and make extern. Use bool.
4434 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
4435 (target_fileio_read_alloc_1): Adjust.
4436 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
4437 (target_fileio_open_warn_if_slow): Delete declaration.
4438
ad80db5b
PA
44392020-05-19 Pedro Alves <palves@redhat.com>
4440
4441 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
4442 Adjust all callers.
4443
1d6ce4d3
YS
44442020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
4445
4446 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
4447 whether disp is negative.
4448
9005fbbb
SM
44492020-05-19 Simon Marchi <simon.marchi@efficios.com>
4450
4451 * symfile.h (struct symfile_segment_data)
4452 <~symfile_segment_data>: Remove.
4453 <segment_info>: Change to std::vector.
4454 * symfile.c (default_symfile_segments): Update.
4455 * elfread.c (elf_symfile_segments): Update.
4456
68b888ff
SM
44572020-05-19 Simon Marchi <simon.marchi@efficios.com>
4458
4459 * symfile.h (struct symfile_segment_data) <struct segment>: New.
4460 <segments>: New.
4461 <segment_bases, segment_sizes>: Remove.
4462 * symfile.c (default_symfile_segments): Update.
4463 * elfread.c (elf_symfile_segments): Update.
4464 * remote.c (remote_target::get_offsets): Update.
4465 * solib-target.c (solib_target_relocate_section_addresses):
4466 Update.
4467
62982abd
SM
44682020-05-19 Simon Marchi <simon.marchi@efficios.com>
4469
4470 * symfile.h (struct symfile_segment_data): Initialize fields.
4471 <~symfile_segment_data>: Add.
4472 (symfile_segment_data_up): New.
4473 (struct sym_fns) <sym_segments>: Return a
4474 symfile_segment_data_up.
4475 (default_symfile_segments): Return a symfile_segment_data_up.
4476 (free_symfile_segment_data): Remove.
4477 (get_symfile_segment_data): Return a symfile_segment_data_up.
4478 * symfile.c (default_symfile_segments): Likewise.
4479 (get_symfile_segment_data): Likewise.
4480 (free_symfile_segment_data): Remove.
4481 (symfile_find_segment_sections): Update.
4482 * elfread.c (elf_symfile_segments): Return a
4483 symfile_segment_data_up.
4484 * remote.c (remote_target::get_offsets): Update.
4485 * solib-target.c (solib_target_relocate_section_addresses):
4486 Update.
4487 * symfile-debug.c (debug_sym_segments): Return a
4488 symfile_segment_data_up.
4489
7f204339
RO
44902020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4491
e52a0f1b
RO
4492 PR build/25981
4493 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
4494 Hardcode register numbers.
4495
7f204339
RO
4496 PR build/25981
4497 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
4498 procfs_find_LDT_entry): Remove.
4499 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
4500 procfs_find_LDT_entry): Remove.
4501 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
4502 Remove.
4503
7f32a4d5
PA
45042020-05-17 Pedro Alves <palves@redhat.com>
4505 Andrew Burgess <andrew.burgess@embecosm.com>
4506 Keno Fischer <keno@juliacomputing.com>
4507
4508 PR gdb/25741
4509 * breakpoint.c (build_target_condition_list): Update comments.
4510 (build_target_command_list): Update comments and skip matching
4511 locations.
4512 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
4513 a separate function. Simplify "set breakpoint auto-hw off"
4514 handling.
4515 (insert_breakpoints): Update comment.
4516 (tracepoint_locations_match): New parameter. For breakpoints,
4517 compare location types too, if the caller wants to.
4518 (handle_automatic_hardware_breakpoints): New functions.
4519 (bp_location_is_less_than): Also sort by location type and
4520 hardware breakpoint length.
4521 (update_global_location_list): Handle "set breakpoint auto-hw on"
4522 here.
4523 (update_breakpoint_locations): Ask breakpoint_locations_match to
4524 ignore location types.
4525
7d93a1e0
SM
45262020-05-16 Simon Marchi <simon.marchi@efficios.com>
4527
4528 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
4529 type::name instead.
4530
d0e39ea2
SM
45312020-05-16 Simon Marchi <simon.marchi@efficios.com>
4532
4533 * gdbtypes.h (struct type) <name, set_name>: New methods.
4534 (TYPE_CODE): Use type::name. Change all call sites used to set
4535 the name to use type::set_name instead.
4536
2dab0c7b
TT
45372020-05-16 Tom Tromey <tom@tromey.com>
4538
4539 * top.c (quit_force): Update.
4540 * infrun.c (handle_no_resumed): Update.
4541 * top.h (all_uis): New function.
4542 (ALL_UIS): Remove.
4543
59f7bd8d
SM
45442020-05-16 Simon Marchi <simon.marchi@efficios.com>
4545
4546 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
4547
9bf058f0
PA
45482020-05-16 Pedro Alves <palves@redhat.com>
4549
4550 * ia64-linux-nat.c
4551 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
4552 Declare method.
4553 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
4554
8f86ae1a
SM
45552020-05-15 Simon Marchi <simon.marchi@efficios.com>
4556
4557 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
4558 (sparc64_adi_info): Likewise.
4559
d6bc0792
TT
45602020-05-15 Tom Tromey <tom@tromey.com>
4561
4562 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
4563 block_objfile.
4564 (lookup_objfile_from_block): Remove.
4565 (lookup_symbol_in_block, lookup_symbol_in_static_block)
4566 (lookup_global_symbol): Use block_objfile.
4567 * symtab.h (lookup_objfile_from_block): Don't declare.
4568 * printcmd.c (clear_dangling_display_expressions): Use
4569 block_objfile.
4570 * parse.c (operator_check_standard): Use block_objfile.
4571
8c14c3a3
TT
45722020-05-15 Tom Tromey <tom@tromey.com>
4573
4574 * language.c (language_alloc_type_symbol): Set
4575 SYMBOL_SECTION.
4576 * symtab.c (initialize_objfile_symbol): Remove.
4577 (allocate_symbol): Remove.
4578 (allocate_template_symbol): Remove.
4579 * dwarf2/read.c (fixup_go_packaging): Use "new".
4580 (new_symbol): Use "new".
4581 (read_variable): Don't call initialize_objfile_symbol. Use
4582 "new".
4583 (read_func_scope): Use "new".
4584 * xcoffread.c (process_xcoff_symbol): Don't call
4585 initialize_objfile_symbol.
4586 (SYMBOL_DUP): Remove.
4587 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
4588 "new".
4589 * symtab.h (allocate_symbol, initialize_objfile_symbol)
4590 (allocate_template_symbol): Don't declare.
4591 (struct symbol): Add copy constructor. Change defaults.
4592 * jit.c (finalize_symtab): Use "new".
4593 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
4594 Use "new".
4595 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
4596 (common_block_end): Use "new".
4597 * mdebugread.c (parse_symbol): Use "new".
4598 (new_symbol): Likewise.
4599
5b4a1a8d
PW
46002020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4601
4602 * NEWS: Mention changes to help and apropos.
4603
57b4f16e
PW
46042020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4605
4606 * command.h (enum command_class): Improve comments, document
4607 that class_alias is for user-defined aliases, give the class
4608 name for each class, remove unused class_xdb.
4609 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
4610 * breakpoint.c (_initialize_breakpoint): Replace class_alias
4611 by a precise class.
4612 * infcmd.c (_initialize_infcmd): Likewise.
4613 * reverse.c (_initialize_reverse): Likewise.
4614 * stack.c (_initialize_stack): Likewise.
4615 * symfile.c (_initialize_symfile): Likewise.
4616 * tracepoint.c (_initialize_tracepoint): Likewise.
4617
7c05caf7
PW
46182020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4619
4620 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
4621 when their aliased command is traversed.
4622 (help_cmd): Add fput_command_names_styled call to
4623 output command name and aliases when command has an alias.
4624
3b3aaacb
PW
46252020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4626
4627 * cli/cli-decode.h (help_cmd_list): Remove declaration.
4628 * cli/cli-decode.c (help_cmd_list): Declare as static,
4629 remove prefix argument, use bool for recurse arg, rework to show the aliases of
4630 a command together with the command.
4631 (fput_command_name_styled, fput_command_names_styled): New functions.
4632 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
4633 fput_command_name_styled.
4634 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
4635 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
4636
7aa1b46f
PW
46372020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4638
4639 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
4640 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
4641 * command.h (cmd_show_list): Likewise.
4642 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
4643 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
4644
89bcba74
PW
46452020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4646
4647 * unittests/command-def-selftests.c (traverse_command_structure):
4648 Verify all commands of a list have the same prefix command and
4649 that only the top cmdlist commands have a null prefix.
4650
3f4d92eb
PW
46512020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4652
4653 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
4654 as prefix, not one of its aliases.
4655 (set_cmd_prefix): Remove.
4656 (do_add_cmd): Centralize the setting of the prefix of a command, when
4657 command is defined after its full chain of prefix commands.
4658 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
4659 (add_setshow_cmd_full): Likewise.
4660 (update_prefix_field_of_prefixed_commands): New function.
4661 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
4662 update_prefix_field_of_prefixed_commands.
4663 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
4664 addresses of remote_set_cmdlist and remote_show_cmdlist given
4665 as argument, not the address of an argument.
4666 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
4667 * gdb/remote.c (_initialize_remote): Likewise.
4668
0605465f
PW
46692020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4670
4671 * cli/cli-cmds.c (alias_command): Check for an existing alias
4672 using lookup_cmd_composition, as valid_command_p is too strict
4673 and forbids aliases that are the prefix of an existing alias
4674 or command.
4675 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
4676 command is properly recognised as a valid command.
4677
58e6ac70
PW
46782020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4679
4680 * unittests/help-doc-selftests.c: Rename to
4681 unittests/command-def-selftests.c
4682 * unittests/command-def-selftests.c (help_doc_tests): Update some
4683 comments.
4684 (command_structure_tests, traverse_command_structure): New namespace
4685 and function.
4686 (command_structure_invariants_tests): New function.
4687 (_initialize_command_def_selftests) Renamed from
4688 _initialize_help_doc_selftests, register command_structure_invariants
4689 selftest.
4690
a7b9ceb8
PW
46912020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4692
4693 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
4694 an alias of 'show'.
4695
b2188a06
JB
46962020-05-15 Joel Brobecker <brobecker@adacore.com>
4697
4698 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
4699 ada_is_fixed_point_type. Update all callers.
4700 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
4701 all callers.
4702 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
4703 Update all callers.
4704 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
4705 print_fixed_point_type. Update all callers.
4706 * ada-valprint.c (ada_value_print_num): Replace call to
4707 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
4708
a51951c2
KB
47092020-05-14 Kevin Buettner <kevinb@redhat.com>
4710
4711 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
4712 processors.
4713 (cpu_supports_bts): Add CV_AMD case.
4714
29d6859f
LM
47152020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
4716 Simon Marchi <simon.marchi@efficios.com>
4717
4718 * infrun.c (stop_all_threads): Collect multiple wait events at
4719 each pass.
4720
78134374
SM
47212020-05-14 Simon Marchi <simon.marchi@efficios.com>
4722
4723 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
4724 type::code instead.
4725
67607e24
SM
47262020-05-14 Simon Marchi <simon.marchi@efficios.com>
4727
4728 * gdbtypes.h (struct type) <code, set_code>: New methods.
4729 (TYPE_CODE): Use type::code. Change all call sites used to set
4730 the code to use type::set_code instead.
4731
a05575d3
TBA
47322020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4733 Tom de Vries <tdevries@suse.de>
4734 Pedro Alves <palves@redhat.com>
4735
4736 PR threads/25478
4737 * infrun.c (stop_all_threads): Do NOT ignore
4738 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
4739 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
4740 received.
4741 (handle_no_resumed): Remove code handling a live inferior with no
4742 threads.
4743 * remote.c (has_single_non_exited_thread): New.
4744 (remote_target::update_thread_list): Do not delete a thread if is
4745 the last thread of the process.
4746 * thread.c (thread_select): Call delete_exited_threads instead of
4747 prune_threads.
4748
6ad82919
TBA
47492020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4750
4751 * infrun.c (stop_all_threads): Enable/disable thread events of all
4752 targets. Move a debug message denoting the end of the function
4753 into the SCOPED_EXIT block.
4754
d890404b
TBA
47552020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4756
4757 * process-stratum-target.h: Include <set>.
4758 (all_non_exited_process_targets, switch_to_target_no_thread): New
4759 function declarations.
4760 * process-stratum-target.c (all_non_exited_process_targets)
4761 (switch_to_target_no_thread): New function implementations.
4762
293b3ebc
TBA
47632020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4764
4765 * infrun.c (handle_inferior_event): Extract out a piece of code
4766 into...
4767 (mark_non_executing_threads): ...this new function.
4768
7ca9b62a
TBA
47692020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4770
4771 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
4772 use.
4773
fc75c28b
TBA
47742020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4775
4776 * regcache.c (regcache_read_pc_protected): New function
4777 implementation that returns 0 if the PC cannot read via
4778 'regcache_read_pc'.
4779 * infrun.c (proceed): Call 'regcache_read_pc_protected'
4780 instead of 'regcache_read_pc'.
4781 (keep_going_pass_signal): Ditto.
4782
a89febbd
TT
47832020-05-13 Tom Tromey <tromey@adacore.com>
4784
4785 * ada-lang.c (align_value): Remove.
4786 (ada_template_to_fixed_record_type_1): Use align_up.
4787
f7e23710
TBA
47882020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4789
4790 * async-event.c: Update the copyright year.
4791 * async-event.h: Update the copyright year.
4792
02ff80c2
SM
47932020-05-12 Simon Marchi <simon.marchi@efficios.com>
4794
4795 * objfiles.h (is_addr_in_objfile,
4796 shared_objfile_contains_address_p): Return bool.
4797 * objfile.c (is_addr_in_objfile,
4798 shared_objfile_contains_address_p): Return bool.
4799
4fd6c7e8
TT
48002020-05-11 Tom Tromey <tromey@adacore.com>
4801
4802 * cli/cli-cmds.c (info_command): Restore.
4803 (_initialize_cli_cmds): Use add_prefix_command for "info".
4804 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
4805
5eb68a39
TT
48062020-05-11 Tom Tromey <tromey@adacore.com>
4807
4808 * ada-lang.c (ada_value_primitive_field): Now public.
4809 * ada-lang.h (ada_value_primitive_field): Declare.
4810 * ada-valprint.c (print_field_values): Use
4811 ada_value_primitive_field for wrapper fields.
4812
7666722f
TV
48132020-05-11 Tom de Vries <tdevries@suse.de>
4814
4815 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
4816 MODULE_DOMAIN.
4817
3ee6bb11
TV
48182020-05-11 Tom de Vries <tdevries@suse.de>
4819
4820 PR symtab/25941
4821 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
4822 with length 0, if not gdb-produced.
4823 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
4824
43434996
TV
48252020-05-09 Tom de Vries <tdevries@suse.de>
4826
4827 PR gdb/25955
4828 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
4829 calculation.
4830
2f78cffc
TT
48312020-05-09 Tom Tromey <tom@tromey.com>
4832
4833 * top.c (server_command): Now bool.
4834 * top.h (server_command): Now bool.
4835
4f7bc5ed
TT
48362020-05-08 Tom Tromey <tromey@adacore.com>
4837
4838 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
4839 already being processed.
4840
8be4b118
TT
48412020-05-08 Tom Tromey <tom@tromey.com>
4842
4843 * printcmd.c (struct display) <next>: Remove.
4844 <display>: New constructor.
4845 <exp_string>: Now a std::string.
4846 <enabled_p>: Now a bool.
4847 (display_number): Move definition earlier.
4848 (displays): Rename from display_chain. Now a std::vector.
4849 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
4850 (display_command): Update.
4851 (do_one_display, disable_display)
4852 (enable_disable_display_command, do_enable_disable_display):
4853 Update.
4854 (free_display): Remove.
4855 (clear_displays): Rewrite.
4856 (delete_display): Update.
4857 (map_display_numbers): Use function_view. Remove "data"
4858 parameter. Update.
4859 (do_delete_display): Remove.
4860 (undisplay_command): Update.
4861 (do_one_display, do_displays, disable_display)
4862 (info_display_command): Update.
4863 (do_enable_disable_display): Remove.
4864 (enable_disable_display_command)
4865 (clear_dangling_display_expressions): Update.
4866
94c93c35
TT
48672020-05-08 Tom Tromey <tom@tromey.com>
4868
4869 * symtab.c (set_symbol_cache_size)
4870 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
4871 (maintenance_print_symbol_cache_statistics): Update.
4872 * symmisc.c (print_symbol_bcache_statistics)
4873 (print_objfile_statistics, maintenance_print_objfiles)
4874 (maintenance_info_symtabs, maintenance_check_symtabs)
4875 (maintenance_expand_symtabs, maintenance_info_line_tables):
4876 Update.
4877 * symfile-debug.c (set_debug_symfile): Update.
4878 * source.c (forget_cached_source_info): Update.
4879 * python/python.c (gdbpy_progspaces): Update.
4880 * psymtab.c (maintenance_info_psymtabs): Update.
4881 * probe.c (parse_probes): Update.
4882 * linespec.c (iterate_over_all_matching_symtabs)
4883 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
4884 * guile/scm-progspace.c (gdbscm_progspaces): Update.
4885 * exec.c (exec_target::close): Update.
4886 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
4887 * breakpoint.c (print_one_breakpoint_location)
4888 (create_longjmp_master_breakpoint)
4889 (create_std_terminate_master_breakpoint): Update.
4890 * progspace.c (program_spaces): Now a std::vector.
4891 (maybe_new_address_space): Update.
4892 (add_program_space): Remove.
4893 (program_space::program_space): Update.
4894 (remove_program_space): Update.
4895 (number_of_program_spaces): Remove.
4896 (print_program_space, update_address_spaces): Update.
4897 * progspace.h (program_spaces): Change type.
4898 (ALL_PSPACES): Remove.
4899 (number_of_program_spaces): Don't declare.
4900 (struct program_space) <next>: Remove.
4901
a1fd1ac9
TT
49022020-05-08 Tom Tromey <tom@tromey.com>
4903
4904 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
4905 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
4906 (enable_break): Update.
4907 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
4908 (frv_fdpic_find_canonical_descriptor): Update.
4909 (frv_fetch_objfile_link_map): Update.
4910 * progspace.c (program_space::free_all_objfiles): Update.
4911 (program_space::solibs): New method.
4912 * progspace.h (struct program_space) <solibs>: New method.
4913 * solist.h (master_so_list): Don't declare.
4914 (ALL_SO_LIBS): Remove.
4915 * solib.h (so_list_head): Remove.
4916 (update_solib_list): Update comment.
4917 * solib.c (master_so_list): Remove.
4918 (solib_used, update_solib_list, solib_add)
4919 (info_sharedlibrary_command, clear_solib)
4920 (reload_shared_libraries_1, remove_user_added_objfile): Update.
4921
38eae084
TT
49222020-05-08 Tom Tromey <tom@tromey.com>
4923
4924 * extension.c (extension_languages): Now a std::array.
4925 (ALL_EXTENSION_LANGUAGES): Remove.
4926 (get_ext_lang_defn, get_ext_lang_of_file)
4927 (eval_ext_lang_from_control_command): Update.
4928 (finish_ext_lang_initialization)
4929 (auto_load_ext_lang_scripts_for_objfile)
4930 (ext_lang_type_printers::ext_lang_type_printers)
4931 (apply_ext_lang_type_printers)
4932 (ext_lang_type_printers::~ext_lang_type_printers)
4933 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
4934 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
4935 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
4936 (get_matching_xmethod_workers, ext_lang_colorize)
4937 (ext_lang_before_prompt): Update.
4938 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
4939
596dc4ad
TT
49402020-05-08 Tom Tromey <tom@tromey.com>
4941
4942 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
4943 overload.
4944 <swap_string, m_string>: Remove.
4945 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
4946 Update.
4947 * stabsread.c (define_symbol, read_type): Update.
4948 * linespec.c (find_linespec_symbols): Update.
4949 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
4950 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
4951 * dbxread.c (read_dbx_symtab): Update.
4952 * cp-support.h (cp_canonicalize_string_full)
4953 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
4954 Return unique_xmalloc_ptr.
4955 * cp-support.c (inspect_type): Update.
4956 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
4957 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
4958 Likewise.
4959 * c-typeprint.c (print_name_maybe_canonical): Update.
4960 * break-catch-throw.c (check_status_exception_catchpoint):
4961 Update.
4962
bf4cb9be
TV
49632020-05-08 Tom de Vries <tdevries@suse.de>
4964
4965 * infrun.c (follow_fork): Copy current_line and current_symtab to
4966 child thread.
4967
a1b68f28
SM
49682020-05-07 Simon Marchi <simon.marchi@efficios.com>
4969
4970 * async-event.c (struct async_signal_handler, struct
4971 async_event_handler): Reformat, remove typedef.
4972
98d48915
SM
49732020-05-07 Simon Marchi <simon.marchi@efficios.com>
4974
4975 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
4976 access thistype->main_type->dyn_prop_list directly.
4977
7aa91313
SM
49782020-05-07 Simon Marchi <simon.marchi@efficios.com>
4979
4980 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
4981 (remove_dyn_prop): Remove. Update all users to use
4982 type::remove_dyn_prop.
4983 * gdbtypes.c (remove_dyn_prop): Rename to...
4984 (type::remove_dyn_prop): ... this.
4985
5c54719c
SM
49862020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
4987
4988 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
4989 (add_dyn_prop): Remove. Update all users to use
4990 type::add_dyn_prop.
4991 * gdbtypes.c (add_dyn_prop): Rename to...
4992 (type::add_dyn_prop): ... this.
4993
24e99c6c
SM
49942020-05-07 Simon Marchi <simon.marchi@efficios.com>
4995
4996 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
4997 (get_dyn_prop): Remove. Update all users to use
4998 type::dyn_prop.
4999 * gdbtypes.c (get_dyn_prop): Rename to...
5000 (type::dyn_prop): ... this.
5001
0d4bf016
SM
50022020-05-06 Simon Marchi <simon.marchi@efficios.com>
5003
5004 * gdbtypes.h (struct main_type) <flag_static>: Remove.
5005
ac4a4f1c
SM
50062020-05-06 Simon Marchi <simon.marchi@efficios.com>
5007
5008 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
5009 instruction, skip it if it's there.
5010
a3bbacc1
SM
50112020-05-05 Simon Marchi <simon.marchi@efficios.com>
5012
5013 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
5014
c3236f84
SM
50152020-05-04 Simon Marchi <simon.marchi@efficios.com>
5016
5017 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
5018 * gdbtypes.c (recursive_dump_type): Remove use of
5019 TYPE_INCOMPLETE.
5020
3b6acaee
TT
50212020-05-03 Tom Tromey <tom@tromey.com>
5022
5023 * breakpoint.c (catch_command, tcatch_command): Remove.
5024 (_initialize_breakpoint): Use add_basic_prefix_cmd,
5025 add_show_prefix_cmd.
5026 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
5027 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
5028 Remove.
5029 (add_internal_problem_command): Use add_basic_prefix_cmd,
5030 add_show_prefix_cmd.
5031 * mips-tdep.c (set_mipsfpu_command): Remove.
5032 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
5033 * dwarf2/index-cache.c (set_index_cache_command): Remove.
5034 (_initialize_index_cache): Use add_basic_prefix_cmd.
5035 * memattr.c (dummy_cmd): Remove.
5036 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
5037 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
5038 (_initialize_tui_win): Use add_basic_prefix_cmd,
5039 add_show_prefix_cmd.
5040 * cli/cli-logging.c (set_logging_command): Remove.
5041 (_initialize_cli_logging): Use add_basic_prefix_cmd,
5042 add_show_prefix_cmd.
5043 (show_logging_command): Remove.
5044 * target.c (target_command): Remove.
5045 (add_target): Use add_basic_prefix_cmd.
5046
a51119cd
HD
50472020-05-02 Hannes Domani <ssbssa@yahoo.de>
5048
5049 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
5050
652fc23a 50512020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 5052
652fc23a
PW
5053 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
5054 info_command.
5055
117539e6
KR
50562020-04-30 Kamil Rytarowski <n54@gmx.com>
5057
5058 * nbsd-nat.c (nbsd_enable_proc_events)
5059 (nbsd_nat_target::post_startup_inferior): Add.
5060 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
5061 (nbsd_nat_target::update_thread_list): Rewrite.
5062 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
5063 "PTRACE_LWP_CREATE".
5064 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
5065
102e38eb 50662020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 5067
102e38eb
PW
5068 * stack.c (_initialize_stack): Remove duplicated creation
5069 of "frame" command and "f" alias.
5070
ee9d1e5f
HD
50712020-04-30 Hannes Domani <ssbssa@yahoo.de>
5072
5073 PR gdb/18706
5074 * gdbtypes.c (check_typedef): Calculate size of array of
5075 stubbed type.
5076
627c7fb8
HD
50772020-04-30 Hannes Domani <ssbssa@yahoo.de>
5078
5079 PR gdb/15559
5080 * i386-tdep.c (i386_push_dummy_call): Call
5081 i386_thiscall_push_dummy_call.
5082 (i386_thiscall_push_dummy_call): New function.
5083 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
5084 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
5085 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
5086
ffc2844e
SM
50872020-04-29 Simon Marchi <simon.marchi@efficios.com>
5088
5089 * gdbarch.sh (do_read): Add shellcheck disable directive for
5090 warning SC2162.
5091
1207375d
SM
50922020-04-29 Simon Marchi <simon.marchi@efficios.com>
5093
5094 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
5095 "referenced but not assigned" warning.
5096
9fdb2916
SM
50972020-04-29 Simon Marchi <simon.marchi@efficios.com>
5098
5099 * gdbarch.sh: Remove code that sets fallbackdefault.
5100
759cea5e
SM
51012020-04-29 Simon Marchi <simon.marchi@efficios.com>
5102
5103 * gdbarch.sh: Use shell operators && and || instead of
5104 -a and -o.
5105
cb02ab24
SM
51062020-04-29 Simon Marchi <simon.marchi@efficios.com>
5107
5108 * gdbarch.sh: Use $(...) instead of `...`.
5109
a6fc5ffc
SM
51102020-04-29 Simon Marchi <simon.marchi@efficios.com>
5111
5112 * gdbarch.sh: Use double quotes around variables.
5113
8d113d13
SM
51142020-04-29 Simon Marchi <simon.marchi@efficios.com>
5115
5116 * gdbarch.sh: Use %s with printf, instead of variables in the
5117 format string.
5118
ed6acedd
TT
51192020-04-29 Tom Tromey <tromey@adacore.com>
5120
5121 PR ada/25875:
5122 * dwarf2/read.c (update_enumeration_type_from_children): Compute
5123 type fields here.
5124 (read_enumeration_type): Call
5125 update_enumeration_type_from_children later. Update comments.
5126 (process_enumeration_scope): Don't create type fields.
5127
b68b1b58
KR
51282020-04-29 Kamil Rytarowski <n54@gmx.com>
5129
5130 * nbsd-tdep.c: Include "xml-syscall.h".
5131 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
5132
f94b2e03
KR
51332020-04-29 Kamil Rytarowski <n54@gmx.com>
5134
5135 * nbsd-nat.c: Include "sys/wait.h".
5136 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
5137 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
5138 (nbsd_nat_target::remove_exec_catchpoint)
5139 (nbsd_nat_target::set_syscall_catchpoint): Add.
5140 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
5141 (nbsd_nat_target::insert_exec_catchpoint)
5142 (nbsd_nat_target::remove_exec_catchpoint)
5143 (nbsd_nat_target::set_syscall_catchpoint): Add.
5144 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
5145 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
5146 `nbsd_get_syscall_number'.
5147
fc49bc72
TT
51482020-04-29 Tom Tromey <tom@tromey.com>
5149
5150 * stack.c (print_block_frame_labels): Remove.
5151
d642b692
HD
51522020-04-29 Hannes Domani <ssbssa@yahoo.de>
5153
5154 PR gdb/17320
5155 * ada-valprint.c (val_print_packed_array_elements): Move array
5156 end bracket to new line.
5157 (ada_val_print_string): Remove extra spaces before first array
5158 element.
5159 * c-valprint.c (c_value_print_array): Likewise.
5160 * m2-valprint.c (m2_print_array_contents): Likewise.
5161 (m2_value_print_inner): Likewise.
5162 * p-valprint.c (pascal_value_print_inner): Likewise.
5163 * valprint.c (generic_val_print_array): Likewise.
5164 (value_print_array_elements): Move first array element and array
5165 end bracket to new line.
5166
ea90f227
TV
51672020-04-29 Tom de Vries <tdevries@suse.de>
5168
5169 PR symtab/25889
5170 * linespec.c (find_method): Fix ix calculation.
5171
4498ef4f
KR
51722020-04-28 Kamil Rytarowski <n54@gmx.com>
5173
5174 * syscalls/update-netbsd.sh: New file.
5175 * syscalls/netbsd.xml: Regenerate.
5176 * data-directory/Makefile.in: Register `netbsd.xml' in
5177 `SYSCALLS_FILES'.
5178
a55e30b5
SM
51792020-04-28 Simon Marchi <simon.marchi@efficios.com>
5180
5181 * syscalls/update-freebsd.sh: Add double quotes.
5182
2b2fbab8
TT
51832020-04-28 Tom Tromey <tom@tromey.com>
5184
5185 * NEWS: Update.
5186 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
5187 (cmdpy_init): Allow class_tui.
5188
a65189c9
TV
51892020-04-28 Mark Williams <mark@myosotissp.com>
5190
5191 PR gdb/24480
5192 * dwarf2read.c: Add missing assingments to list_in_scope when
5193 start_symtab was already called.
5194
1b95cdb7
SM
51952020-04-28 Simon Marchi <simon.marchi@efficios.com>
5196
5197 PR gdb/25881
5198 * dwarf2/read.c (offset_map_type): Use
5199 gdb:hash_enum<sect_offset> as hash function.
5200
15cd93d0
TV
52012020-04-28 Tom de Vries <tdevries@suse.de>
5202
5203 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
5204 with DW_AT_signature.
5205
1eb39914
SM
52062020-04-27 Simon Marchi <simon.marchi@efficios.com>
5207
5208 * configure.ac: Remove check for fs_base/gs_base in
5209 user_regs_struct.
5210 * configure: Re-generate.
5211 * config.in: Re-generate.
5212 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
5213 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
5214 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
5215
991a3e2e
LM
52162020-04-27 Luis Machado <luis.machado@linaro.org>
5217
5218 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
5219 problematic inline frame unwinding situation.
5220 * frame.c (frame_id_computed_p): New function.
5221 * frame.h (frame_id_computed_p): New prototype.
5222
361ba0e8
TT
52232020-04-26 Tom Tromey <tom@tromey.com>
5224
5225 * command.h (enum command_class) <class_pseudo>: Remove.
5226
bc3609fd
PW
52272020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5228
5229 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
5230 and whitespace.
5231
b9771db7
KR
52322020-04-25 Kamil Rytarowski <n54@gmx.com>
5233
ec16513e
SM
5234 * inf-ptrace.c (inf_ptrace_target::wait): Remove
5235 `PT_GET_PROCESS_STATE' block.
b9771db7 5236
7151c1af
TT
52372020-04-24 Tom Tromey <tom@tromey.com>
5238
5239 * symtab.h (symbol_get_demangled_name): Don't declare.
5240 * symtab.c (symbol_get_demangled_name): Remove.
5241 (general_symbol_info::natural_name)
5242 (general_symbol_info::demangled_name): Update.
5243
906bb4c5
TT
52442020-04-24 Tom Tromey <tom@tromey.com>
5245
5246 PR rust/25025:
5247 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
5248
bcfe6157
TT
52492020-04-24 Tom Tromey <tom@tromey.com>
5250
5251 PR symtab/12707:
5252 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
5253 exists.
5254 (new_symbol): Likewise.
5255 * compile/compile-object-load.c (get_out_value_type): Use
5256 symbol_matches_search_name.
5257
f049a313
TT
52582020-04-24 Tom Tromey <tom@tromey.com>
5259
5260 * dwarf2/read.c (add_partial_symbol): Do not call
5261 compute_and_set_names.
5262
76e288d1
TT
52632020-04-24 Tom Tromey <tom@tromey.com>
5264
5265 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
5266 overload.
5267
2467f4f6
TT
52682020-04-24 Tom Tromey <tom@tromey.com>
5269
5270 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
5271 (add_psymbol_to_list): New overload. Make old overload call new
5272 one.
5273 * psympriv.h (add_psymbol_to_list): New overload.
5274
e61108c9
TT
52752020-04-24 Tom Tromey <tom@tromey.com>
5276
5277 * dwarf2/read.c (partial_die_info::read) <case
5278 DW_AT_linkage_name>: Use value_as_string.
5279 (dwarf2_string_attr): Use value_as_string.
5280 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
5281 method.
5282 * dwarf2/attribute.c (attribute::value_as_string): New method.
5283
8c87a452
TT
52842020-04-24 Tom Tromey <tom@tromey.com>
5285
5286 * symtab.c (general_symbol_info::natural_name)
5287 (general_symbol_info::demangled_name): Check for language_rust.
5288
787de330
TT
52892020-04-24 Tom Tromey <tom@tromey.com>
5290
5291 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
5292 (dwarf2_physname): ... from here.
5293 (partial_die_info::read): Add Rust "{" hack.
5294
ff985671
TT
52952020-04-24 Tom Tromey <tom@tromey.com>
5296
5297 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
5298 method.
5299 (symbol_set_demangled_name): Don't declare.
5300 * symtab.c (general_symbol_info::set_demangled_name): Rename from
5301 symbol_set_demangled_name.
5302 (general_symbol_info::set_language)
5303 (general_symbol_info::compute_and_set_names): Update.
5304 * minsyms.c (minimal_symbol_reader::install): Update.
5305 * dwarf2/read.c (new_symbol): Update.
5306
1acda803
TT
53072020-04-24 Tom Tromey <tromey@adacore.com>
5308
5309 PR python/23662:
5310 * python/py-type.c (convert_field): Handle
5311 FIELD_LOC_KIND_DWARF_BLOCK.
5312 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
5313 (typy_get_dynamic): Nw function.
5314 (type_object_getset): Add "dynamic".
5315 * NEWS: Add entry.
5316
d656f129
TT
53172020-04-24 Tom Tromey <tromey@adacore.com>
5318
5319 * ada-typeprint.c (print_choices, print_variant_part)
5320 (print_record_field_types_dynamic): New functions.
5321 (print_record_field_types): Use print_record_field_types_dynamic.
5322
7d79de9a
TT
53232020-04-24 Tom Tromey <tromey@adacore.com>
5324
5325 * dwarf2/read.c (handle_data_member_location): New overload.
5326 (dwarf2_add_field): Use it.
5327 (decode_locdesc): Add "computed" parameter. Update comment.
5328 * gdbtypes.c (is_dynamic_type_internal): Also look for
5329 FIELD_LOC_KIND_DWARF_BLOCK.
5330 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
5331 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
5332 virtual base classes.
5333 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
5334 FIELD_LOC_KIND_DWARF_BLOCK.
5335
f8e89861
TT
53362020-04-24 Tom Tromey <tromey@adacore.com>
5337
5338 * dwarf2/read.c (read_structure_type): Handle dynamic length.
5339 * gdbtypes.c (is_dynamic_type_internal): Check
5340 TYPE_HAS_DYNAMIC_LENGTH.
5341 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
5342 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
5343 New macros.
5344 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
5345 constant.
5346
9c6a1327
TT
53472020-04-24 Tom Tromey <tromey@adacore.com>
5348
5349 * dwarf2/read.c (struct variant_field): Rewrite.
5350 (struct variant_part_builder): New.
5351 (struct nextfield): Remove "variant" field. Add "offset".
5352 (struct field_info): Add "current_variant_part" and
5353 "variant_parts".
5354 (alloc_discriminant_info): Remove.
5355 (alloc_rust_variant): New function.
5356 (quirk_rust_enum): Update.
5357 (dwarf2_add_field): Set "offset" member. Don't handle
5358 DW_TAG_variant_part.
5359 (offset_map_type): New typedef.
5360 (convert_variant_range, create_one_variant)
5361 (create_one_variant_part, create_variant_parts)
5362 (add_variant_property): New functions.
5363 (dwarf2_attach_fields_to_type): Call add_variant_property.
5364 (read_structure_type): Don't handle DW_TAG_variant_part.
5365 (handle_variant_part, handle_variant): New functions.
5366 (handle_struct_member_die): Use them.
5367 (process_structure_scope): Don't handle variant parts.
5368 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
5369 (struct discriminant_info): Remove.
5370 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
5371 (struct main_type) <flag_discriminated_union>: Remove.
5372 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
5373 (rust_enum_variant): Return int. Remove "contents". Rewrite.
5374 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
5375 Update.
5376 * valops.c (value_union_variant): Remove.
5377 * value.h (value_union_variant): Don't declare.
5378
b249d2c2
TT
53792020-04-24 Tom Tromey <tromey@adacore.com>
5380
5381 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
5382 (ada_value_primitive_packed_val): Update.
5383 * ada-valprint.c (ada_value_print_1): Update.
5384 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
5385 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
5386 just an address. Use evaluate_for_locexpr_baton.
5387 (dwarf2_evaluate_property): Update.
5388 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
5389 array_view.
5390 * findvar.c (default_read_var_value): Update.
5391 * gdbtypes.c (compute_variant_fields_inner)
5392 (resolve_dynamic_type_internal): Update.
5393 (resolve_dynamic_type): Change type of valaddr parameter.
5394 * gdbtypes.h (resolve_dynamic_type): Update.
5395 * valarith.c (value_subscripted_rvalue): Update.
5396 * value.c (value_from_contents_and_address): Update.
5397
61122aa9
TT
53982020-04-24 Tom Tromey <tromey@adacore.com>
5399
5400 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
5401 "push_initial_value" parameter.
5402 (dwarf2_evaluate_property): Likewise.
5403 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
5404
ef83a141
TT
54052020-04-24 Tom Tromey <tromey@adacore.com>
5406
5407 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
5408 (variant::matches, compute_variant_fields_recurse)
5409 (compute_variant_fields_inner, compute_variant_fields): New
5410 functions.
5411 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
5412 Use resolved_type after type is made.
5413 (operator==): Add new cases.
5414 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
5415 (struct discriminant_range, struct variant, struct variant_part):
5416 New.
5417 (union dynamic_prop_data) <variant_parts, original_type>: New
5418 members.
5419 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
5420 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
5421 constants.
5422 * value.c (unpack_bits_as_long): Now public.
5423 * value.h (unpack_bits_as_long): Declare.
5424
675127ec
TT
54252020-04-24 Tom Tromey <tromey@adacore.com>
5426
5427 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
5428 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
5429
9852ceef
HD
54302020-04-24 Hannes Domani <ssbssa@yahoo.de>
5431
5432 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
5433
7632c6ce
KR
54342020-04-24 Kamil Rytarowski <n54@gmx.com>
5435
5436 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
5437 (remove_fork_catchpoint, post_startup_inferior)
5438 (post_attach): Move...
5439 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
5440 (remove_fork_catchpoint, post_startup_inferior)
5441 (post_attach): ...here.
5442 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
5443 (remove_fork_catchpoint, post_startup_inferior)
5444 (post_attach): Move...
5445 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
5446 (remove_fork_catchpoint, post_startup_inferior)
5447 (post_attach): ...here.
5448
7be2bb4f
TT
54492020-04-24 Tom Tromey <tromey@adacore.com>
5450
5451 * nat/windows-nat.h (struct windows_thread_info)
5452 <pc_adjusted>: New member.
5453 * windows-nat.c (windows_fetch_one_register): Check
5454 pc_adjusted.
5455 (windows_nat_target::get_windows_debug_event)
5456 (windows_nat_target::wait): Set pc_adjusted.
5457
f80cb3b4
TV
54582020-04-24 Tom de Vries <tdevries@suse.de>
5459
5460 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
5461 Run gdb-add-index inside temp dir.
5462
29514b87
TT
54632020-04-23 Tom Tromey <tromey@adacore.com>
5464
5465 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
5466 in loop.
5467
5939967b
LM
54682020-04-23 Luis Machado <luis.machado@linaro.org>
5469
5470 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
5471 get_frame_register instead of gdbarch_unwind_pc.
5472
70bc38f5
TV
54732020-04-23 Tom de Vries <tdevries@suse.de>
5474
5475 * symtab.c (lookup_global_symbol): Prefer def over decl.
5476
de82891c
TV
54772020-04-23 Tom de Vries <tdevries@suse.de>
5478
5479 PR symtab/25807
5480 * block.c (best_symbol, better_symbol): Promote to external.
5481 * block.h (best_symbol, better_symbol): Declare.
5482 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
5483 decl.
5484
ecc6c606
TT
54852020-04-23 Tom Tromey <tromey@adacore.com>
5486
5487 PR ada/25837:
5488 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
5489 "const char *", not a "const std::string &".
5490 <name_and_matcher::operator==>: Update.
5491 * unittests/lookup_name_info-selftests.c: Change type of
5492 "result".
5493
740480b8
TT
54942020-04-23 Tom Tromey <tom@tromey.com>
5495
5496 * inferior.h (iterate_over_inferiors): Don't declare.
5497 * inferior.c (iterate_over_inferiors): Remove.
5498 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
5499 Remove.
5500 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
5501 use iterate_over_inferiors.
5502 (darwin_resume_inferior_it)
5503 (struct resume_inferior_threads_param)
5504 (darwin_resume_inferior_threads_it): Remove.
5505 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
5506
ae3ab1f0
TV
55072020-04-23 Tom de Vries <tdevries@suse.de>
5508
5509 * blockframe.c (find_pc_partial_function): Use
5510 find_pc_sect_compunit_symtab rather than
5511 objfile->sf->qf->find_pc_sect_compunit_symtab.
5512
317d2668
TV
55132020-04-22 Tom de Vries <tdevries@suse.de>
5514
5515 PR symtab/25764
5516 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
5517 in psymtabs.
5518
eea9e357
TV
55192020-04-22 Tom de Vries <tdevries@suse.de>
5520
5521 PR symtab/25801
5522 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
5523 symtabs.
5524
3d5afab3
TV
55252020-04-22 Tom de Vries <tdevries@suse.de>
5526
5527 PR symtab/25700
5528 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
5529 CU if already created.
5530
d43b7a2d
TBA
55312020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5532
5533 * infrun.c (displaced_step_fixup): Switch to the event_thread
5534 before calling displaced_step_restore, not after.
5535
d89edf9b
MM
55362020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5537
5538 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
5539 its inferior is not recorded by us.
5540 (record_btrace_target_open): Replace call to
5541 all_non_exited_threads () with call to current_inferior
5542 ()->non_exited_threads ().
5543 (record_btrace_target::stop_recording): Likewise.
5544 (record_btrace_target::close): Likewise.
5545 (record_btrace_target::wait): Likewise.
5546 (record_btrace_target::record_stop_replaying): Likewise.
5547
5897fd49
MM
55482020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5549
5550 * btrace.c (btrace_enable): Throw an error on double enables and
5551 when enabling recording fails.
5552 (btrace_disable): Throw an error if the thread is not recorded.
5553
1a476b6d
MM
55542020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5555
5556 * record-btrace.c (record_btrace_target::fetch_registers): Forward
5557 request if we do not have a thread_info.
5558
4778a5f8
TV
55592020-04-21 Tom de Vries <tdevries@suse.de>
5560
5561 PR gdb/25471
5562 * thread.c
5563 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
5564 exception in get_frame_id.
5565
0fa7617d
TT
55662020-04-20 Tom Tromey <tromey@adacore.com>
5567
5568 * python/python.c (struct gdbpy_event): Mark move constructor as
5569 noexcept.
5570 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
5571 constructor as noexcept.
5572 * completer.h (struct completion_result): Mark move constructor as
5573 noexcept.
5574 * completer.c (completion_result::completion_result): Use
5575 initialization style. Don't call reset_match_list.
5576
ad23bda0
MS
55772020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
5578
5579 * MAINTAINERS (Write After Approval): Add myself.
5580
45e1f031
TT
55812020-04-18 Tom Tromey <tom@tromey.com>
5582
5583 * windows-tdep.c (init_w32_command_list)
5584 (w32_prefix_command_valid): Restore.
5585 (_initialize_windows_tdep): Call init_w32_command_list.
5586
08feed99
TT
55872020-04-18 Tom Tromey <tom@tromey.com>
5588
5589 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
5590 * value.c (value_fn_field): Update.
5591 * valops.c (find_function_in_inferior)
5592 (value_allocate_space_in_inferior): Update.
5593 * tui/tui-winsource.c (tui_update_source_windows_with_line):
5594 Update.
5595 * tui/tui-source.c (tui_source_window::set_contents): Update.
5596 * symtab.c (lookup_global_or_static_symbol)
5597 (find_function_start_sal_1, skip_prologue_sal)
5598 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
5599 * symmisc.c (dump_msymbols, dump_symtab_1)
5600 (maintenance_print_one_line_table): Update.
5601 * symfile.c (init_entry_point_info, section_is_mapped)
5602 (list_overlays_command, simple_read_overlay_table)
5603 (simple_overlay_update_1): Update.
5604 * stap-probe.c (handle_stap_probe): Update.
5605 * stabsread.c (dbx_init_float_type, define_symbol)
5606 (read_one_struct_field, read_enum_type, read_range_type): Update.
5607 * source.c (info_line_command): Update.
5608 * python/python.c (gdbpy_source_objfile_script)
5609 (gdbpy_execute_objfile_script): Update.
5610 * python/py-type.c (save_objfile_types): Update.
5611 * python/py-objfile.c (py_free_objfile): Update.
5612 * python/py-inferior.c (python_new_objfile): Update.
5613 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
5614 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
5615 (maintenance_check_psymtabs): Update.
5616 * printcmd.c (info_address_command): Update.
5617 * objfiles.h (struct objfile) <arch>: New method, from
5618 get_objfile_arch.
5619 (get_objfile_arch): Don't declare.
5620 * objfiles.c (get_objfile_arch): Remove.
5621 (filter_overlapping_sections): Update.
5622 * minsyms.c (msymbol_is_function): Update.
5623 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
5624 (output_nondebug_symbol): Update.
5625 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
5626 (mdebug_expand_psymtab): Update.
5627 * machoread.c (macho_add_oso_symfile): Update.
5628 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
5629 Update.
5630 * linux-fork.c (checkpoint_command): Update.
5631 * linespec.c (convert_linespec_to_sals): Update.
5632 * jit.c (finalize_symtab): Update.
5633 * infrun.c (insert_exception_resume_from_probe): Update.
5634 * ia64-tdep.c (ia64_find_unwind_table): Update.
5635 * hppa-tdep.c (internalize_unwinds): Update.
5636 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
5637 Update.
5638 * gcore.c (call_target_sbrk): Update.
5639 * elfread.c (record_minimal_symbol, elf_symtab_read)
5640 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
5641 (elf_gnu_ifunc_resolve_by_got): Update.
5642 * dwarf2/read.c (create_addrmap_from_index)
5643 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
5644 (read_debug_names_from_section)
5645 (process_psymtab_comp_unit_reader, add_partial_symbol)
5646 (add_partial_subprogram, process_full_comp_unit)
5647 (read_file_scope, read_func_scope, read_lexical_block_scope)
5648 (read_call_site_scope, dwarf2_ranges_read)
5649 (dwarf2_record_block_ranges, dwarf2_add_field)
5650 (mark_common_block_symbol_computed, read_tag_pointer_type)
5651 (read_tag_string_type, dwarf2_init_float_type)
5652 (dwarf2_init_complex_target_type, read_base_type)
5653 (partial_die_info::read, partial_die_info::read)
5654 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
5655 (dwarf2_fetch_die_loc_sect_off): Update.
5656 * dwarf2/loc.c (dwarf2_find_location_expression)
5657 (class dwarf_evaluate_loc_desc, rw_pieced_value)
5658 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
5659 (dwarf2_loc_desc_get_symbol_read_needs)
5660 (locexpr_describe_location_piece, locexpr_describe_location_1)
5661 (loclist_describe_location): Update.
5662 * dwarf2/index-write.c (write_debug_names): Update.
5663 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
5664 * dtrace-probe.c (dtrace_process_dof): Update.
5665 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
5666 (process_one_symbol): Update.
5667 * ctfread.c (ctf_init_float_type, read_base_type): Update.
5668 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
5669 (coff_read_enum_type): Update.
5670 * cli/cli-cmds.c (edit_command, list_command): Update.
5671 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
5672 * breakpoint.c (create_overlay_event_breakpoint)
5673 (create_longjmp_master_breakpoint)
5674 (create_std_terminate_master_breakpoint)
5675 (create_exception_master_breakpoint, get_sal_arch): Update.
5676 * block.c (block_gdbarch): Update.
5677 * annotate.c (annotate_source_line): Update.
5678
0743fc83
TT
56792020-04-17 Tom Tromey <tromey@adacore.com>
5680
5681 * auto-load.c (show_auto_load_cmd): Remove.
5682 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
5683 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
5684 (maintenance_print_arc_command): Remove.
5685 * tui/tui-win.c (tui_command): Remove.
5686 (tui_get_cmd_list): Use add_basic_prefix_cmd.
5687 * tui/tui-layout.c (tui_layout_command): Remove.
5688 (_initialize_tui_layout): Use add_basic_prefix_cmd.
5689 * python/python.c (user_set_python, user_show_python): Remove.
5690 (_initialize_python): Use add_basic_prefix_cmd,
5691 add_show_prefix_cmd.
5692 * guile/guile.c (set_guile_command, show_guile_command): Remove.
5693 (install_gdb_commands): Use add_basic_prefix_cmd,
5694 add_show_prefix_cmd.
5695 (info_guile_command): Remove.
5696 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
5697 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
5698 add_show_prefix_cmd.
5699 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
5700 Remove do_set and do_show parameters.
5701 * cli/cli-style.c (set_style, show_style): Remove.
5702 (_initialize_cli_style): Use add_basic_prefix_cmd,
5703 add_show_prefix_cmd.
5704 (cli_style_option::add_setshow_commands): Remove do_set and
5705 do_show parameters.
5706 (cli_style_option::add_setshow_commands): Use
5707 add_basic_prefix_cmd, add_show_prefix_cmd.
5708 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
5709 (set_style_name): Remove.
5710 * cli/cli-dump.c (dump_command, append_command): Remove.
5711 (srec_dump_command, ihex_dump_command, verilog_dump_command)
5712 (tekhex_dump_command, binary_dump_command)
5713 (binary_append_command): Remove.
5714 (_initialize_cli_dump): Use add_basic_prefix_cmd.
5715 * windows-tdep.c (w32_prefix_command_valid): Remove global.
5716 (init_w32_command_list): Remove; move into ...
5717 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
5718 * valprint.c (set_print, show_print, set_print_raw)
5719 (show_print_raw): Remove.
5720 (_initialize_valprint): Use add_basic_prefix_cmd,
5721 add_show_prefix_cmd.
5722 * typeprint.c (set_print_type, show_print_type): Remove.
5723 (_initialize_typeprint): Use add_basic_prefix_cmd,
5724 add_show_prefix_cmd.
5725 * record.c (set_record_command, show_record_command): Remove.
5726 (_initialize_record): Use add_basic_prefix_cmd,
5727 add_show_prefix_cmd.
5728 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
5729 add_show_prefix_cmd.
5730 (info_command, show_command, set_debug, show_debug): Remove.
5731 * top.h (set_history, show_history): Don't declare.
5732 * top.c (set_history, show_history): Remove.
5733 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
5734 (unset_tdesc_cmd): Remove.
5735 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
5736 add_show_prefix_cmd.
5737 * symtab.c (info_module_command): Remove.
5738 (_initialize_symtab): Use add_basic_prefix_cmd.
5739 * symfile.c (overlay_command): Remove.
5740 (_initialize_symfile): Use add_basic_prefix_cmd.
5741 * sparc64-tdep.c (info_adi_command): Remove.
5742 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
5743 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
5744 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
5745 add_show_prefix_cmd.
5746 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
5747 (_initialize_serial): Use add_basic_prefix_cmd,
5748 add_show_prefix_cmd.
5749 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
5750 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
5751 add_show_prefix_cmd.
5752 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
5753 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
5754 add_show_prefix_cmd.
5755 * riscv-tdep.c (show_riscv_command, set_riscv_command)
5756 (show_debug_riscv_command, set_debug_riscv_command): Remove.
5757 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
5758 add_show_prefix_cmd.
5759 * remote.c (remote_command, set_remote_cmd): Remove.
5760 (_initialize_remote): Use add_basic_prefix_cmd.
5761 * record-full.c (set_record_full_command)
5762 (show_record_full_command): Remove.
5763 (_initialize_record_full): Use add_basic_prefix_cmd,
5764 add_show_prefix_cmd.
5765 * record-btrace.c (cmd_set_record_btrace)
5766 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
5767 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
5768 (cmd_show_record_btrace_pt): Remove.
5769 (_initialize_record_btrace): Use add_basic_prefix_cmd,
5770 add_show_prefix_cmd.
5771 * ravenscar-thread.c (set_ravenscar_command)
5772 (show_ravenscar_command): Remove.
5773 (_initialize_ravenscar): Use add_basic_prefix_cmd,
5774 add_show_prefix_cmd.
5775 * mips-tdep.c (show_mips_command, set_mips_command)
5776 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
5777 add_show_prefix_cmd.
5778 * maint.c (maintenance_command, maintenance_info_command)
5779 (maintenance_check_command, maintenance_print_command)
5780 (maintenance_set_cmd, maintenance_show_cmd): Remove.
5781 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
5782 add_show_prefix_cmd.
5783 (show_per_command_cmd): Remove.
5784 * maint-test-settings.c (maintenance_set_test_settings_cmd):
5785 Remove.
5786 (maintenance_show_test_settings_cmd): Remove.
5787 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
5788 add_show_prefix_cmd.
5789 * maint-test-options.c (maintenance_test_options_command):
5790 Remove.
5791 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
5792 * macrocmd.c (macro_command): Remove
5793 (_initialize_macrocmd): Use add_basic_prefix_cmd.
5794 * language.c (set_check, show_check): Remove.
5795 (_initialize_language): Use add_basic_prefix_cmd,
5796 add_show_prefix_cmd.
5797 * infcmd.c (unset_command): Remove.
5798 (_initialize_infcmd): Use add_basic_prefix_cmd.
5799 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
5800 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
5801 add_show_prefix_cmd.
5802 * go32-nat.c (go32_info_dos_command): Remove.
5803 (_initialize_go32_nat): Use add_basic_prefix_cmd.
5804 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
5805 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
5806 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
5807 (_initialize_frame): Use add_basic_prefix_cmd,
5808 add_show_prefix_cmd.
5809 * dcache.c (set_dcache_command, show_dcache_command): Remove.
5810 (_initialize_dcache): Use add_basic_prefix_cmd,
5811 add_show_prefix_cmd.
5812 * cp-support.c (maint_cplus_command): Remove.
5813 (_initialize_cp_support): Use add_basic_prefix_cmd.
5814 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
5815 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
5816 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
5817 add_basic_prefix_cmd, add_show_prefix_cmd.
5818 * breakpoint.c (save_command): Remove.
5819 (_initialize_breakpoint): Use add_basic_prefix_cmd.
5820 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
5821 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
5822 add_show_prefix_cmd.
5823 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
5824 (set_ada_command, show_ada_command): Remove.
5825 (_initialize_ada_language): Use add_basic_prefix_cmd,
5826 add_show_prefix_cmd.
5827 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
5828
3557f442
KR
58292020-04-16 Kamil Rytarowski <n54@gmx.com>
5830
5831 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
5832 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
5833
16197208
SM
58342020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
5835
5836 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
5837 warning messages.
5838
00ac85d3
SM
58392020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
5840
5841 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
5842 import table is not at beginning of .idata section.
5843
381ce63f
PA
58442020-04-16 Pedro Alves <palves@redhat.com>
5845
5846 * inferior.c (delete_inferior): Use delete operator directly
5847 instead of delete_program_space.
5848 * progspace.c (add_program_space): New, factored out from
5849 program_space::program_space.
5850 (remove_program_space): New, factored out from
5851 delete_program_space.
5852 (program_space::program_space): Remove intro comment. Rewrite.
5853 (program_space::~program_space): Remove intro comment. Call
5854 remove_program_space.
5855 (delete_program_space): Delete.
5856 * progspace.h (program_space::program_space): Make explicit. Move
5857 intro comment here, adjusted.
5858 (program_space::~program_space): Move intro comment here,
5859 adjusted.
5860 (delete_program_space): Remove.
5861
a010605f
TT
58622020-04-16 Tom Tromey <tromey@adacore.com>
5863
5864 * windows-nat.c (windows_nat::handle_access_violation): New
5865 function.
5866 * nat/windows-nat.h (handle_access_violation): Declare.
5867 * nat/windows-nat.c (handle_exception): Move Cygwin code to
5868 windows-nat.c. Call handle_access_violation.
5869
efba5c23
TV
58702020-04-16 Tom de Vries <tdevries@suse.de>
5871
5872 PR symtab/25791
5873 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
5874 CUs without psymtab.
5875
97ed802d
KB
58762020-04-16 Kevin Buettner <kevinb@redhat.com>
5877
5878 * python/python.c (do_start_initialization): Don't call
5879 PyEval_InitThreads for Python 3.9 and beyond.
5880
c7d64809
KR
58812020-04-15 Kamil Rytarowski <n54@gmx.com>
5882
5883 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
5884 thread functions.
5885 (obsd_nat_target::wait): Likewise.
5886
ce127a96
TT
58872020-04-15 Tom Tromey <tromey@adacore.com>
5888
5889 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
5890 (DEBUG_EXCEPT): Use debug_printf.
5891
99f1bc6a
AB
58922020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
5893
5894 * completer.c (class completion_tracker::completion_hash_entry)
5895 <hash_name>: New member function.
5896 (completion_tracker::discard_completions): New callback to hash a
5897 completion_hash_entry, pass this to htab_create_alloc.
5898
a0e9b532
JT
58992016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
5900
5901 * windows-nat.c (windows_make_so): Warn rather than stopping with
5902 an error if realpath() fails.
5903
06ca5dd4
KR
59042020-04-14 Kamil Rytarowski <n54@gmx.com>
5905
5906 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
5907 (nbsd_nat_target::info_proc): Add do_status.
5908
194d088f
TV
59092020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
5910 Tom de Vries <tdevries@suse.de>
5911
5912 PR symtab/25718
5913 * psympriv.h (struct partial_symtab::read_symtab)
5914 (struct partial_symtab::expand_psymtab)
5915 (struct partial_symtab::read_dependencies): Update comments.
5916 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
5917 read_symtab for includer.
5918 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
5919 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
5920 (struct dwarf2_include_psymtab::m_readin): Remove.
5921 (struct dwarf2_include_psymtab::includer): New member function.
5922 (dwarf2_psymtab::expand_psymtab): Assert !readin.
5923
c1a66c06
TV
59242020-04-14 Tom de Vries <tdevries@suse.de>
5925
5926 PR symtab/25720
5927 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
5928 with NULL symbol_matcher and lookup_name.
5929 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
5930 and lookup_name.
5931 * dwarf2/read.c (dw2_expand_symtabs_matching)
5932 (dw2_debug_names_expand_symtabs_matching): Same.
5933 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
5934 Make lookup_name a pointer. Update comment.
5935 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
5936 lookup_name being a pointer.
5937 * symfile.c (expand_symtabs_matching): Same.
5938 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
5939 * linespec.c (iterate_over_all_matching_symtabs): Same.
5940
400b5eca
TT
59412020-04-13 Tom Tromey <tom@tromey.com>
5942
5943 * run-on-main-thread.c: Update include.
5944 * unittests/main-thread-selftests.c: Update include.
5945 * tui/tui-win.c: Update include.
5946 * tui/tui-io.c: Update include.
5947 * tui/tui-interp.c: Update include.
5948 * tui/tui-hooks.c: Update include.
5949 * top.h: Update include.
5950 * top.c: Update include.
5951 * ser-base.c: Update include.
5952 * remote.c: Update include.
5953 * remote-notif.c: Update include.
5954 * remote-fileio.c: Update include.
5955 * record-full.c: Update include.
5956 * record-btrace.c: Update include.
5957 * python/python.c: Update include.
5958 * posix-hdep.c: Update include.
5959 * mingw-hdep.c: Update include.
5960 * mi/mi-main.c: Update include.
5961 * mi/mi-interp.c: Update include.
5962 * main.c: Update include.
5963 * linux-nat.c: Update include.
5964 * interps.c: Update include.
5965 * infrun.c: Update include.
5966 * inf-loop.c: Update include.
5967 * event-top.c: Update include.
5968 * event-loop.c: Move to ../gdbsupport/.
5969 * event-loop.h: Move to ../gdbsupport/.
5970 * async-event.h: Update include.
5971 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
5972
93b54c8e
TT
59732020-04-13 Tom Tromey <tom@tromey.com>
5974
5975 * tui/tui-win.c: Include async-event.h.
5976 * remote.c: Include async-event.h.
5977 * remote-notif.c: Include async-event.h.
5978 * record-full.c: Include async-event.h.
5979 * record-btrace.c: Include async-event.h.
5980 * infrun.c: Include async-event.h.
5981 * event-top.c: Include async-event.h.
5982 * event-loop.h: Move some declarations to async-event.h.
5983 * event-loop.c: Don't include ser-event.h or top.h. Move some
5984 code to async-event.c.
5985 * async-event.h: New file.
5986 * async-event.c: New file.
5987 * Makefile.in (COMMON_SFILES): Add async-event.c.
5988 (HFILES_NO_SRCDIR): Add async-event.h.
5989
c1cd3163
TT
59902020-04-13 Tom Tromey <tom@tromey.com>
5991
5992 * utils.c (flush_streams): New function.
5993 * event-loop.c (gdb_wait_for_event): Call flush_streams.
5994
29f2bf4f
TT
59952020-04-13 Tom Tromey <tom@tromey.com>
5996
5997 * event-loop.c (handle_file_event): Use warning, not
5998 printf_unfiltered.
5999
98029d02
TT
60002020-04-13 Tom Tromey <tom@tromey.com>
6001
6002 * event-loop.c: Include <chrono>.
6003
06cc9596
TT
60042020-04-13 Tom Tromey <tom@tromey.com>
6005
6006 * gdb_select.h: Move to ../gdbsupport/.
6007 * event-loop.c: Update include path.
6008 * top.c: Update include path.
6009 * ser-base.c: Update include path.
6010 * ui-file.c: Update include path.
6011 * ser-tcp.c: Update include path.
6012 * guile/scm-ports.c: Update include path.
6013 * posix-hdep.c: Update include path.
6014 * ser-unix.c: Update include path.
6015 * gdb_usleep.c: Update include path.
6016 * mingw-hdep.c: Update include path.
6017 * inflow.c: Update include path.
6018 * infrun.c: Update include path.
6019 * event-top.c: Update include path.
6020
8ae8e197
TT
60212020-04-13 Tom Tromey <tom@tromey.com>
6022
6023 * configure: Rebuild.
6024 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
6025
58cf28e8
TT
60262020-04-13 Tom Tromey <tom@tromey.com>
6027
6028 * event-loop.h (start_event_loop): Don't declare.
6029 * event-loop.c (start_event_loop): Move...
6030 * main.c (start_event_loop): ...here. Now static.
6031
b7f999ae
SDJ
60322020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
6033
6034 * MAINTAINERS: Update my email address.
6035
1085dfd4
KR
60362020-04-12 Kamil Rytarowski <n54@gmx.com>
6037
6038 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
6039 IP_ALL.
6040
49d1d1f5
KR
60412020-04-12 Kamil Rytarowski <n54@gmx.com>
6042
6043 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 6044 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 6045
b4848d2a
KR
60462020-04-12 Kamil Rytarowski <n54@gmx.com>
6047
6048 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 6049 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 6050
51c133d5
KR
60512020-04-12 Kamil Rytarowski <n54@gmx.com>
6052
6053 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
6054
54b8cbd0
KR
60552020-04-11 Kamil Rytarowski <n54@gmx.com>
6056
6057 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
6058 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
6059 (nbsd_nat_target::info_proc): New functions.
6060 * nbsd-nat.c (kinfo_get_vmmap): New function.
6061 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
6062 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
6063 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
6064 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
6065 functions.
6066 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
6067 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
6068 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
6069 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
6070 (KINFO_VME_FLAG_GROWS_DOWN): New.
6071
cf83625d
AS
60722020-04-10 Artur Shepilko <nomadbyte@gmail.com>
6073
6074 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
6075 bit shift.
6076
0c4311ab
TT
60772020-04-10 Tom Tromey <tromey@adacore.com>
6078
6079 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
6080
3e65b3e9
TT
60812020-04-10 Tom Tromey <tromey@adacore.com>
6082
6083 * symtab.c (get_symbol_address, get_msymbol_address): Skip
6084 separate debug files.
6085
13302e95
HD
60862020-04-10 Hannes Domani <ssbssa@yahoo.de>
6087
6088 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6089 Move to...
6090 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6091 ... here.
6092 * windows-nat.c (windows_nat_target::get_windows_debug_event):
6093 Check for STATUS_WX86_BREAKPOINT.
6094 (windows_nat_target::wait): Same.
6095
bdfc1e8a
TV
60962020-04-10 Tom de Vries <tdevries@suse.de>
6097
6098 PR cli/25808
6099 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
6100
f4460aec
SM
61012020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
6102
6103 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
6104 (Write After Approval): Remove Tom de Vries.
6105
a25198bb
BE
61062020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
6107
6108 revert partially:
6109 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6110
aac66a4c
SM
6111 * buildsym.c (record_line): Fix undefined behavior and preserve
6112 lines at eof.
a25198bb 6113
206c98a6
KR
61142020-04-09 Kamil Rytarowski <n54@gmx.com>
6115
6116 * auxv.h (svr4_auxv_parse): New.
6117 * auxv.c (default_auxv_parse): Split into default_auxv_parse
6118 and generic_auxv_parse.
6119 (svr4_auxv_parse): Add.
6120 * obsd-tdep.c: Include "auxv.h".
6121 (obsd_auxv_parse): Remove.
6122 (obsd_init_abi): Remove comment.
6123 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
6124 from `obsd_auxv_parse' to `svr4_auxv_parse'.
6125 * nbsd-tdep.c: Include "auxv.h".
6126 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
6127
71fbdbaf
TT
61282020-04-08 Tom Tromey <tromey@adacore.com>
6129
6130 * nat/windows-nat.h (last_wait_event): Don't declare.
6131 (wait_for_debug_event): Update comment.
6132 * nat/windows-nat.c (last_wait_event): Now static.
6133
2c1d95e8
TT
61342020-04-08 Tom Tromey <tromey@adacore.com>
6135
6136 * windows-nat.c (wait_for_debug_event): Move to
6137 nat/windows-nat.c.
6138 * nat/windows-nat.h (wait_for_debug_event): Declare.
6139 * nat/windows-nat.c (wait_for_debug_event): Move from
6140 windows-nat.c. No longer static.
6141
d2977bc4
TT
61422020-04-08 Tom Tromey <tromey@adacore.com>
6143
6144 * windows-nat.c (get_windows_debug_event): Use
6145 fetch_pending_stop.
6146 * nat/windows-nat.h (fetch_pending_stop): Declare.
6147 * nat/windows-nat.c (fetch_pending_stop): New function.
6148
e758e19c
TT
61492020-04-08 Tom Tromey <tromey@adacore.com>
6150
6151 * windows-nat.c (windows_continue): Use matching_pending_stop and
6152 continue_last_debug_event.
6153 * nat/windows-nat.h (matching_pending_stop)
6154 (continue_last_debug_event): Declare.
6155 * nat/windows-nat.c (DEBUG_EVENTS): New define.
6156 (matching_pending_stop, continue_last_debug_event): New
6157 functions.
6158
8d30e395
TT
61592020-04-08 Tom Tromey <tromey@adacore.com>
6160
6161 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
6162 (handle_exception_result): Move to nat/windows-nat.h.
6163 (DEBUG_EXCEPTION_SIMPLE): Remove.
6164 (windows_nat::handle_ms_vc_exception): New function.
6165 (handle_exception): Move to nat/windows-nat.c.
6166 (get_windows_debug_event): Update.
6167 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
6168 nat/windows-nat.c.
6169 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
6170 (handle_exception_result): Move from windows-nat.c.
6171 (handle_exception): Declare.
6172 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
6173 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
6174 windows-nat.c.
6175
29de418d
TT
61762020-04-08 Tom Tromey <tromey@adacore.com>
6177
6178 * windows-nat.c (exception_count, event_count): Remove.
6179 (handle_exception, get_windows_debug_event)
6180 (do_initial_windows_stuff): Update.
6181
a816ba18
TT
61822020-04-08 Tom Tromey <tromey@adacore.com>
6183
6184 * windows-nat.c (windows_nat::handle_load_dll)
6185 (windows_nat::handle_unload_dll): Rename. No longer static.
6186 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
6187 Declare.
6188
a00caa12
TT
61892020-04-08 Tom Tromey <tromey@adacore.com>
6190
6191 * complaints.h (stop_whining): Declare at top-level.
6192 (complaint): Don't declare stop_whining.
6193
d41b524f
TT
61942020-04-08 Tom Tromey <tromey@adacore.com>
6195
6196 * windows-nat.c (windows_nat::handle_output_debug_string):
6197 Rename. No longer static.
6198 * nat/windows-nat.h (handle_output_debug_string): Declare.
6199
3c76026d
TT
62002020-04-08 Tom Tromey <tromey@adacore.com>
6201
6202 * windows-nat.c (current_process_handle, current_process_id)
6203 (main_thread_id, last_sig, current_event, last_wait_event)
6204 (current_windows_thread, desired_stop_thread_id, pending_stops)
6205 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
6206 (display_selectors, fake_create_process)
6207 (get_windows_debug_event): Update.
6208 * nat/windows-nat.h (current_process_handle, current_process_id)
6209 (main_thread_id, last_sig, current_event, last_wait_event)
6210 (current_windows_thread, desired_stop_thread_id, pending_stops)
6211 (struct pending_stop, siginfo_er): Move from windows-nat.c.
6212 * nat/windows-nat.c (current_process_handle, current_process_id)
6213 (main_thread_id, last_sig, current_event, last_wait_event)
6214 (current_windows_thread, desired_stop_thread_id, pending_stops)
6215 (siginfo_er): New globals. Move from windows-nat.c.
6216
9d8679cc
TT
62172020-04-08 Tom Tromey <tromey@adacore.com>
6218
6219 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
6220 (handle_load_dll): Update.
6221 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
6222
28688adf
TT
62232020-04-08 Tom Tromey <tromey@adacore.com>
6224
6225 * windows-nat.c (enum thread_disposition_type): Move to
6226 nat/windows-nat.h.
6227 (windows_nat::thread_rec): Rename from thread_rec. No longer
6228 static.
6229 (windows_add_thread, windows_nat_target::fetch_registers)
6230 (windows_nat_target::store_registers, handle_exception)
6231 (windows_nat_target::resume, get_windows_debug_event)
6232 (windows_nat_target::get_tib_address)
6233 (windows_nat_target::thread_name)
6234 (windows_nat_target::thread_alive): Update.
6235 * nat/windows-nat.h (enum thread_disposition_type): Move from
6236 windows-nat.c.
6237 (thread_rec): Declare.
6238
4834dad0
TT
62392020-04-08 Tom Tromey <tromey@adacore.com>
6240
6241 * windows-nat.c: Add "using namespace".
6242 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
6243 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
6244
65bafd5b
TT
62452020-04-08 Tom Tromey <tromey@adacore.com>
6246
6247 * nat/windows-nat.h (struct windows_thread_info): Declare
6248 destructor.
6249 * nat/windows-nat.c (~windows_thread_info): New.
6250
0a4afda3
TT
62512020-04-08 Tom Tromey <tromey@adacore.com>
6252
6253 PR gdb/22992
6254 * windows-nat.c (current_event): Update comment.
6255 (last_wait_event, desired_stop_thread_id): New globals.
6256 (struct pending_stop): New.
6257 (pending_stops): New global.
6258 (windows_nat_target) <stopped_by_sw_breakpoint>
6259 <supports_stopped_by_sw_breakpoint>: New methods.
6260 (windows_fetch_one_register): Add assertions. Adjust PC.
6261 (windows_continue): Handle pending stops. Suspend other threads
6262 when stepping. Use last_wait_event
6263 (wait_for_debug_event): New function.
6264 (get_windows_debug_event): Use wait_for_debug_event. Handle
6265 pending stops. Queue spurious stops.
6266 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
6267 (windows_nat_target::kill): Use wait_for_debug_event.
6268 * nat/windows-nat.h (struct windows_thread_info)
6269 <stopped_at_software_breakpoint>: New field.
6270 * nat/windows-nat.c (windows_thread_info::resume): Clear
6271 stopped_at_software_breakpoint.
6272
8e61ebec
TT
62732020-04-08 Tom Tromey <tromey@adacore.com>
6274
6275 * windows-nat.c (enum thread_disposition_type): New.
6276 (thread_rec): Replace "get_context" parameter with "disposition";
6277 change type.
6278 (windows_add_thread, windows_nat_target::fetch_registers)
6279 (windows_nat_target::store_registers, handle_exception)
6280 (windows_nat_target::resume, get_windows_debug_event)
6281 (windows_nat_target::get_tib_address)
6282 (windows_nat_target::thread_name)
6283 (windows_nat_target::thread_alive): Update.
6284
98a03287
TT
62852020-04-08 Tom Tromey <tromey@adacore.com>
6286
6287 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
6288 (windows_continue): Use windows_continue::resume.
6289 * nat/windows-nat.h (struct windows_thread_info) <suspend,
6290 resume>: Declare new methods.
6291 * nat/windows-nat.c: New file.
6292 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
6293
7c7411bc
TT
62942020-04-08 Tom Tromey <tromey@adacore.com>
6295
6296 * windows-nat.c (windows_add_thread, windows_delete_thread)
6297 (windows_nat_target::fetch_registers)
6298 (windows_nat_target::store_registers, fake_create_process)
6299 (windows_nat_target::resume, windows_nat_target::resume)
6300 (get_windows_debug_event, windows_nat_target::wait)
6301 (windows_nat_target::pid_to_str)
6302 (windows_nat_target::get_tib_address)
6303 (windows_nat_target::get_ada_task_ptid)
6304 (windows_nat_target::thread_name)
6305 (windows_nat_target::thread_alive): Use lwp, not tid.
6306
2950fdf7
TT
63072020-04-08 Tom Tromey <tromey@adacore.com>
6308
6309 * windows-nat.c (handle_exception)
6310 (windows_nat_target::thread_name): Update.
6311 * nat/windows-nat.h (windows_thread_info): Remove destructor.
6312 <name>: Now unique_xmalloc_ptr.
6313
62fe396b
TT
63142020-04-08 Tom Tromey <tromey@adacore.com>
6315
6316 * windows-nat.c (thread_rec)
6317 (windows_nat_target::fetch_registers): Update.
6318 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
6319 Update comment.
6320 <debug_registers_changed, reload_context>: Now bool.
6321
e9534bd2
TT
63222020-04-08 Tom Tromey <tromey@adacore.com>
6323
6324 * windows-nat.c (windows_add_thread): Use new.
6325 (windows_init_thread_list, windows_delete_thread): Use delete.
6326 (get_windows_debug_event): Update.
6327 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
6328 destructor, and initializers.
6329
ae1f8880
TT
63302020-04-08 Tom Tromey <tromey@adacore.com>
6331
6332 * windows-nat.c (struct windows_thread_info): Remove.
6333 * nat/windows-nat.h: New file.
6334
55a1e039
TT
63352020-04-08 Tom Tromey <tromey@adacore.com>
6336
6337 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
6338 (thread_rec, windows_add_thread, windows_delete_thread)
6339 (windows_continue): Update.
6340
93366324
TT
63412020-04-08 Tom Tromey <tromey@adacore.com>
6342
6343 * windows-nat.c (struct windows_thread_info): Remove typedef.
6344 (thread_head): Remove.
6345 (thread_list): New global.
6346 (thread_rec, windows_add_thread, windows_init_thread_list)
6347 (windows_delete_thread, windows_continue): Update.
6348
0f2265e2
SM
63492020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6350
6351 * windows-tdep.h (windows_init_abi): Add comment.
6352 (cygwin_init_abi): New declaration.
6353 * windows-tdep.c: Split signal enumeration in two, one for
6354 Windows and one for Cygwin.
6355 (windows_gdb_signal_to_target): Only deal with signal of the
6356 Windows OS ABI.
6357 (cygwin_gdb_signal_to_target): New function.
6358 (windows_init_abi): Rename to windows_init_abi_common, don't set
6359 gdb_signal_to_target gdbarch method. Add new new function with
6360 this name.
6361 (cygwin_init_abi): New function.
6362 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
6363 comment. Don't call windows_init_abi.
6364 (amd64_windows_init_abi): Add comment, call windows_init_abi.
6365 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
6366 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
6367 i386_windows_init_abi_common, don't call windows_init_abi. Add
6368 a new function of this name.
6369 (i386_cygwin_init_abi): New function.
6370 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
6371 OS ABI Cygwin.
6372
3810f182
SM
63732020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6374
6375 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
6376 parameter.c.
6377 (dwarf2_read_gdb_index): Update.
6378
063f8e80
KR
63792020-04-07 Kamil Rytarowski <n54@gmx.com>
6380
6381 * nbsd-tdep.c: Include "objfiles.h".
6382 (nbsd_skip_solib_resolver): New.
6383 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
6384
85a9510c 63852020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6386
6387 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
6388 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
6389 with DW_LLE_base_addressx are being emitted in DWARFv5.
6390 Add the newly added kind DW_LOC_OFFSET_PAIR also.
6391 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
6392 unsigned integer.
6393
9fc3eaae 63942020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6395
6396 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
6397 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
6398 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
6399 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
6400 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
6401 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
6402 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
6403
6404
41144253 64052020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6406
6407 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
6408 (read_loclist_index): New function definition.
6409 (lookup_loclist_base): New function definition.
6410 (read_loclist_header): New function definition.
6411 (dwarf2_cu): Add loclist_base and loclist_header field.
6412 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
6413 (read_full_die_1): Read the value of DW_AT_loclists_base.
6414 (read_attribute_reprocess): Handle DW_FORM_loclistx.
6415 (read_attribute_value): Handle DW_FORM_loclistx.
6416 (skip_one_die): Handle DW_FORM_loclistx.
6417 (loclist_header): New structure declaration.
6418 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
6419
9f4e76a4
SM
64202020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
6421
6422 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
6423 constructor. Remove `addr` parameter from other constructor and
6424 add `per_cu` parameter.
6425 * dwarf2/read.c (create_partial_symtab): Update.
6426
25c11aca
TV
64272020-04-07 Tom de Vries <tdevries@suse.de>
6428
6429 PR symtab/25796
6430 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
6431 (partial_die_info::fixup): Inherit has_const_value.
6432
5707e24b
TV
64332020-04-07 Tom de Vries <tdevries@suse.de>
6434
6435 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
6436 symbols without address.
6437
05f00e22
KR
64382020-04-06 Kamil Rytarowski <n54@gmx.com>
6439
6440 * nbsd-nat.h (struct thread_info): Add forward declaration.
6441 (nbsd_nat_target::thread_alive): Add.
6442 (nbsd_nat_target::thread_name): Likewise.
6443 (nbsd_nat_target::update_thread_list): Likewise.
6444 (update_thread_list::post_attach): Likewise.
6445 (post_attach::pid_to_str): Likewise.
6446 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
6447 (nbsd_thread_lister): Add.
6448 (nbsd_nat_target::thread_alive): Likewise.
6449 (nbsd_nat_target::thread_name): Likewise.
6450 (nbsd_add_threads): Likewise.
6451 (update_thread_list::post_attach): Likewise.
6452 (nbsd_nat_target::update_thread_list): Likewise.
6453 (post_attach::pid_to_str): Likewise.
6454
6ee448cc
TT
64552020-04-06 Tom Tromey <tromey@adacore.com>
6456
6457 * ada-valprint.c (print_variant_part): Extract the variant field.
6458 (print_field_values): Use the field as the outer value when
6459 recursing.
6460
dea34e8c
TT
64612020-04-06 Tom Tromey <tromey@adacore.com>
6462
6463 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
6464 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
6465 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
6466 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
6467 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
6468
93689ce9
TT
64692020-04-06 Tom Tromey <tromey@adacore.com>
6470
6471 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
6472 TYPE_CODE_ERROR.
6473
79743962
KR
64742020-04-06 Kamil Rytarowski <n54@gmx.com>
6475
6476 * nbsd-tdep.c: Include "gdbarch.h".
6477 Define enum with NetBSD signal numbers.
6478 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
6479 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
6480 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
6481 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
6482 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
6483 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
6484 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
6485 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
6486 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
6487 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
6488 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
6489 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
6490
9e7c9a03
HD
64912020-04-03 Hannes Domani <ssbssa@yahoo.de>
6492
6493 PR gdb/25325
6494 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
6495
d9e49b61
TT
64962020-04-03 Tom Tromey <tromey@adacore.com>
6497
6498 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
6499 Read constant block.
6500
e0fc5c3f
SM
65012020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6502
6503 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
6504 (gdb_bfd_get_full_section_contents): New declaration.
6505 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
6506 * windows-tdep.c (is_linked_with_cygwin_dll): Use
6507 gdb_bfd_get_full_section_contents.
6508
e2ff18a0
SM
65092020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6510
6511 * exec.c (build_section_table): Replace internal_error with
6512 gdb_assert.
6513 (section_table_xfer_memory_partial): Likewise.
6514 * mdebugread.c (parse_partial_symbols): Likewise.
6515 * psymtab.c (lookup_partial_symbol): Likewise.
6516 * utils.c (wrap_here): Likewise.
6517
0830d301
TT
65182020-04-02 Tom Tromey <tromey@adacore.com>
6519
6520 * f-lang.c (build_fortran_types): Use arch_type to initialize
6521 builtin_complex_s32 in the TYPE_CODE_ERROR case.
6522
e7da7f8f
TT
65232020-04-02 Tom Tromey <tromey@adacore.com>
6524
6525 * dwarf2/read.c (partial_die_info::read): Do not create a vector
6526 of attributes.
6527
c90d28ac
AB
65282020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
6529 Bernd Edlinger <bernd.edlinger@hotmail.de>
6530 Tom Tromey <tromey@adacore.com>
6531
6532 * buildsym.c (buildsym_compunit::record_line): Remove
6533 deduplication code.
6534
1aa98955
TV
65352020-04-02 Tom de Vries <tdevries@suse.de>
6536
6537 PR ada/24671
6538 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
6539
d3214198
TV
65402020-04-02 Tom de Vries <tdevries@suse.de>
6541
6542 * dwarf2/read.c (dwarf2_gdb_index_functions,
6543 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
6544 NULL.
6545 * psymtab.c (psym_lookup_global_symbol_language): New function.
6546 (psym_functions): Init psym_lookup_global_symbol_language with
6547 psym_lookup_global_symbol_language.
6548 * symfile-debug.c (debug_sym_quick_functions): Init
6549 lookup_global_symbol_language with NULL.
6550 * symfile.c (set_initial_language): Remove fixme comment.
6551 * symfile.h (struct quick_symbol_functions): Add
6552 lookup_global_symbol_language.
6553 * symtab.c (find_quick_global_symbol_language): New function.
6554 (find_main_name): Use find_quick_global_symbol_language.
6555
2836752f
SM
65562020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
6557
6558 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
6559
64dc2d4b
BE
65602020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6561
6562 * buildsym.c (record_line): Fix undefined behavior and preserve
6563 lines at eof.
6564
bbe3dc41
BE
65652020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6566
6567 * buildsym.c (record_line): Fix the resizing condition.
6568
6b4a335b
TT
65692020-04-01 Tom Tromey <tom@tromey.com>
6570
6571 * value.h (value_literal_complex): Add comment.
6572 * valops.c (value_literal_complex): Refer to value.h.
6573
3638a098
TT
65742020-04-01 Tom Tromey <tom@tromey.com>
6575
6576 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
6577 (scalar_type): New rule, from typebase.
6578 (typebase): Use scalar_type. Recognize complex types.
6579 (field_name): Handle FLOAT_KEYWORD.
6580 (ident_tokens): Add _Complex and __complex__.
6581
c34e8714
TT
65822020-04-01 Tom Tromey <tom@tromey.com>
6583
6584 PR exp/25299:
6585 * valarith.c (promotion_type, complex_binop): New functions.
6586 (scalar_binop): Handle complex numbers. Use promotion_type.
6587 (value_pos, value_neg, value_complement): Handle complex numbers.
6588
fa649bb7
TT
65892020-04-01 Tom Tromey <tom@tromey.com>
6590
6591 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
6592 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
6593 (parse_number): Handle complex numbers.
6594
981c08ce
TT
65952020-04-01 Tom Tromey <tom@tromey.com>
6596
6597 * c-valprint.c (c_decorations): Change complex suffix to "i".
6598
4c99290d
TT
65992020-04-01 Tom Tromey <tom@tromey.com>
6600
6601 * valprint.c (generic_value_print_complex): Use accessors.
6602 * value.h (value_real_part, value_imaginary_part): Declare.
6603 * valops.c (value_real_part, value_imaginary_part): New
6604 functions.
6605 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
6606
5b930b45
TT
66072020-04-01 Tom Tromey <tom@tromey.com>
6608
6609 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
6610 (read_range_type): Update.
6611 * mdebugread.c (basic_type): Update.
6612 * go-lang.c (build_go_types): Use init_complex_type.
6613 * gdbtypes.h (struct main_type) <complex_type>: New member.
6614 (init_complex_type): Update.
6615 (arch_complex_type): Don't declare.
6616 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
6617 Make name if none given. Use alloc_type_copy. Look for cached
6618 complex type.
6619 (arch_complex_type): Remove.
6620 (gdbtypes_post_init): Use init_complex_type.
6621 * f-lang.c (build_fortran_types): Use init_complex_type.
6622 * dwarf2/read.c (read_base_type): Update.
6623 * d-lang.c (build_d_types): Use init_complex_type.
6624 * ctfread.c (read_base_type): Update.
6625
53cccef1
TBA
66262020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6627
6628 * infrun.c (stop_all_threads): Update assertion, plus when
6629 stopping threads, take into account that we might be trying
6630 to stop an all-stop target.
6631 (stop_waiting): Call 'stop_all_threads' if there exists a
6632 non-stop target.
6633
a0714d30
TBA
66342020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6635
6636 * target.h (exists_non_stop_target): New function declaration.
6637 * target.c (exists_non_stop_target): New function.
6638
60e22c1e
HD
66392020-04-01 Hannes Domani <ssbssa@yahoo.de>
6640
6641 PR gdb/24789
6642 * eval.c (is_integral_or_integral_reference): New function.
6643 (evaluate_subexp_standard): Allow integer references in
6644 pointer arithmetic.
6645
e139a727
TBA
66462020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6647
6648 * remote.c (remote_target::remote_parse_stop_reply): Remove the
6649 check for no ptid in the stop reply when the target is non-stop.
6650
e0802d59
TT
66512020-04-01 Tom Tromey <tromey@adacore.com>
6652
6653 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
6654 "name" parameter to rvalue reference. Initialize m_name_holder.
6655 <lookup_name_info>: New overloads.
6656 <name>: Return gdb::string_view.
6657 <c_str>: New method.
6658 <make_ignore_params>: Update.
6659 <search_name_hash>: Update.
6660 <language_lookup_name>: Return const char *.
6661 <m_name>: Change type.
6662 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
6663 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
6664 (lookup_name_info::match_any): Update.
6665 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
6666 Update.
6667 * minsyms.c (linkage_name_str): Update.
6668 * language.c (default_symbol_name_matcher): Update.
6669 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
6670 Update.
6671 * ada-lang.c (ada_fold_name): Change parameter to string_view.
6672 (ada_lookup_name_info::ada_lookup_name_info): Update.
6673 (literal_symbol_name_matcher): Update.
6674
8c072cb6
TT
66752020-04-01 Tom Tromey <tromey@adacore.com>
6676
6677 * psymtab.c (psymtab_search_name): Remove function.
6678 (psym_lookup_symbol): Create search name and lookup name here.
6679 (lookup_partial_symbol): Remove "name" parameter; add
6680 lookup_name.
6681 (psym_expand_symtabs_for_function): Update.
6682
6f29a534
TT
66832020-03-31 Joel Jones <joelkevinjones@gmail.com>
6684
6685 PR tui/25597:
6686 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
6687
af62665e
TT
66882020-03-31 Tom Tromey <tromey@adacore.com>
6689
6690 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
6691 memcpy.
6692
d1a89da5
NC
66932020-03-30 Nelson Chu <nelson.chu@sifive.com>
6694
6695 * features/riscv/32bit-csr.xml: Regenerated.
6696 * features/riscv/64bit-csr.xml: Regenerated.
6697
d8af9068
TT
66982020-03-30 Tom Tromey <tromey@adacore.com>
6699
6700 * ada-valprint.c (print_variant_part): Update.
6701 * ada-lang.h (ada_which_variant_applies): Update.
6702 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
6703 outer_valaddr parameters; replace with "outer" value parameter.
6704 (to_fixed_variant_branch_type): Update.
6705
227c0bf4
PFC
67062020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6707
6708 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
6709 <list>. Remove inclusion of observable.h.
6710 (PPC_DEBUG_CURRENT_VERSION): Move up define.
6711 (struct arch_lwp_info): New struct.
6712 (class ppc_linux_dreg_interface): New class.
6713 (struct ppc_linux_process_info): New struct.
6714 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
6715 <low_new_clone, low_forget_process, low_prepare_to_resume>
6716 <copy_thread_dreg_state, mark_thread_stale>
6717 <mark_debug_registers_changed, register_hw_breakpoint>
6718 <clear_hw_breakpoint, register_wp, clear_wp>
6719 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
6720 <num_memory_accesses, get_trigger_type>
6721 <create_watchpoint_request, hwdebug_point_cmp>
6722 <init_arch_lwp_info, get_arch_lwp_info>
6723 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
6724 methods.
6725 <struct ptid_hash>: New inner struct.
6726 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
6727 members.
6728 (saved_dabr_value, hwdebug_info, max_slots_number)
6729 (struct hw_break_tuple, struct thread_points, ppc_threads)
6730 (have_ptrace_hwdebug_interface)
6731 (hwdebug_find_thread_points_by_tid)
6732 (hwdebug_insert_point, hwdebug_remove_point): Remove.
6733 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
6734 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
6735 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
6736 use m_dreg_interface.
6737 (hwdebug_point_cmp): Change to...
6738 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
6739 reference arguments instead of pointers.
6740 (ppc_linux_nat_target::ranged_break_num_registers): Use
6741 m_dreg_interface.
6742 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
6743 m_dreg_interface. Call register_hw_breakpoint.
6744 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
6745 m_dreg_interface. Call clear_hw_breakpoint.
6746 (get_trigger_type): Change to...
6747 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
6748 comment.
6749 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
6750 use m_dreg_interface. Call register_hw_breakpoint.
6751 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
6752 use m_dreg_interface. Call clear_hw_breakpoint.
6753 (can_use_watchpoint_cond_accel): Change to...
6754 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
6755 method. Update comment, use m_dreg_interface and
6756 m_process_info.
6757 (calculate_dvc): Change to...
6758 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
6759 m_dreg_interface.
6760 (num_memory_accesses): Change to...
6761 (ppc_linux_nat_target::num_memory_accesses): ...this method.
6762 (check_condition): Change to...
6763 (ppc_linux_nat_target::check_condition): ...this method.
6764 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
6765 comment, use m_dreg_interface.
6766 (create_watchpoint_request): Change to...
6767 (ppc_linux_nat_target::create_watchpoint_request): ...this
6768 method. Use m_dreg_interface.
6769 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
6770 m_dreg_interface. Call register_hw_breakpoint or register_wp.
6771 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
6772 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
6773 (ppc_linux_nat_target::low_forget_process)
6774 (ppc_linux_nat_target::low_new_fork)
6775 (ppc_linux_nat_target::low_new_clone)
6776 (ppc_linux_nat_target::low_delete_thread)
6777 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
6778 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
6779 only call mark_thread_stale.
6780 (ppc_linux_thread_exit): Remove.
6781 (ppc_linux_nat_target::stopped_data_address): Change to...
6782 (ppc_linux_nat_target::low_stopped_data_address): This. Add
6783 comment, use m_dreg_interface and m_thread_hw_breakpoints.
6784 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
6785 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
6786 comment. Call low_stopped_data_address.
6787 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
6788 m_dreg_interface.
6789 (ppc_linux_nat_target::masked_watch_num_registers): Use
6790 m_dreg_interface.
6791 (ppc_linux_nat_target::copy_thread_dreg_state)
6792 (ppc_linux_nat_target::mark_thread_stale)
6793 (ppc_linux_nat_target::mark_debug_registers_changed)
6794 (ppc_linux_nat_target::register_hw_breakpoint)
6795 (ppc_linux_nat_target::clear_hw_breakpoint)
6796 (ppc_linux_nat_target::register_wp)
6797 (ppc_linux_nat_target::clear_wp)
6798 (ppc_linux_nat_target::init_arch_lwp_info)
6799 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
6800 (_initialize_ppc_linux_nat): Remove observer callback.
6801
4db10d8f
PFC
68022020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6803
6804 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
6805 (ppc_linux_nat_target::auxv_parse)
6806 (ppc_linux_nat_target::read_description)
6807 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
6808 Move up.
6809
1310c1b0
PFC
68102020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6811
6812 * linux-nat.h (low_new_clone): New method.
6813 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
6814
69b037c3
SM
68152020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6816
6817 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
6818 (dbx_expand_psymtab): ... this.
6819 (start_psymtab): Update.
6820 * mdebugread.c (psymtab_to_symtab_1): Rename to...
6821 (mdebug_expand_psymtab): ... this.
6822 (parse_partial_symbols): Update.
6823 (new_psymtab): Update.
6824 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
6825 (xcoff_expand_psymtab): ... this.
6826 (xcoff_start_psymtab): Update.
6827
48993951
SM
68282020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6829
6830 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
6831 <expand_dependencies>: ... this.
6832 * psymtab.c (partial_symtab::read_dependencies): Rename to...
6833 (partial_symtab::expand_dependencies): ... this.
6834 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
6835 Update.
6836 (dwarf2_psymtab::expand_psymtab): Update.
6837 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
6838 * mdebugread.c (psymtab_to_symtab_1): Update.
6839 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
6840
3ad83046
SM
68412020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6842
6843 * psympriv.h (discard_psymtab): Remove.
6844 * dbxread.c (dbx_end_psymtab): Update.
6845 * xcoffread.c (xcoff_end_psymtab): Update.
6846
4d1b9ab6
TT
68472020-03-28 Tom Tromey <tom@tromey.com>
6848
6849 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
6850 comment.
6851
f1749218
TT
68522020-03-28 Tom Tromey <tom@tromey.com>
6853
6854 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
6855
ebea7626
HD
68562020-03-27 Hannes Domani <ssbssa@yahoo.de>
6857
6858 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
6859
a879b4d5
JB
68602020-03-26 John Baldwin <jhb@FreeBSD.org>
6861
6862 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
6863
0826b30a
TT
68642020-03-26 Tom Tromey <tom@tromey.com>
6865
6866 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
6867 (mark_common_block_symbol_computed, read_tag_string_type)
6868 (attr_to_dynamic_prop, read_subrange_type): Update.
6869 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
6870 to be methods on struct attribute.
6871 (skip_one_die, process_imported_unit_die, read_namespace_alias)
6872 (read_call_site_scope, partial_die_info::read)
6873 (partial_die_info::read, lookup_die_type, follow_die_ref):
6874 Update.
6875 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
6876 from dwarf2_get_ref_die_offset.
6877 (attribute::constant_value): New method, from
6878 dwarf2_get_attr_constant_value.
6879 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
6880 Declare method.
6881 <constant_value>: New method.
6882
2b2558bf
TT
68832020-03-26 Tom Tromey <tom@tromey.com>
6884
6885 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
6886 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
6887 (dwarf_type_encoding_name): Move to stringify.c.
6888 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
6889 * dwarf2/stringify.c: New file.
6890 * dwarf2/stringify.h: New file.
6891
eeb64781
TT
68922020-03-26 Tom Tromey <tom@tromey.com>
6893
6894 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
6895 Rewrite.
6896
a39fdb41
TT
68972020-03-26 Tom Tromey <tom@tromey.com>
6898
6899 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
6900 methods.
6901 * dwarf2/read.c (lookup_addr_base): Move to die.h.
6902 (lookup_ranges_base): Likewise.
6903 (read_cutu_die_from_dwo, read_full_die_1): Update.
6904
436c571c
TT
69052020-03-26 Tom Tromey <tom@tromey.com>
6906
6907 * dwarf2/read.c (read_import_statement, read_file_scope)
6908 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
6909 (read_lexical_block_scope, read_call_site_scope)
6910 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
6911 (handle_struct_member_die, process_structure_scope)
6912 (update_enumeration_type_from_children)
6913 (process_enumeration_scope, read_array_type, read_common_block)
6914 (read_namespace, read_module, read_subroutine_type): Update.
6915 (sibling_die): Remove.
6916
052c8bb8
TT
69172020-03-26 Tom Tromey <tom@tromey.com>
6918
6919 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
6920 (build_type_psymtabs_reader, read_structure_type)
6921 (read_enumeration_type, read_full_die_1): Update.
6922 (dwarf2_attr_no_follow): Move to die.h.
6923 * dwarf2/die.h (struct die_info) <attr>: New method.
6924
2b24b6e4
TT
69252020-03-26 Tom Tromey <tom@tromey.com>
6926
6927 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
6928 <base_address>: Now an optional.
6929 (dwarf2_find_base_address, dwarf2_rnglists_process)
6930 (dwarf2_ranges_process, fill_in_loclist_baton)
6931 (dwarf2_symbol_mark_computed): Update.
6932
c2d50fd0
TT
69332020-03-26 Tom Tromey <tom@tromey.com>
6934
6935 * dwarf2/read.c (struct die_info): Move to die.h.
6936 * dwarf2/die.h: New file.
6937
0df7ad3a
TT
69382020-03-26 Tom Tromey <tom@tromey.com>
6939
6940 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
6941 * dwarf2/read.c
6942 (dwarf2_statement_list_fits_in_line_number_section_complaint):
6943 Move to line-header.c.
6944 (read_checked_initial_length_and_offset, read_formatted_entries):
6945 Likewise.
6946 (dwarf_decode_line_header): Split into two.
6947 * dwarf2/line-header.c
6948 (dwarf2_statement_list_fits_in_line_number_section_complaint):
6949 Move from read.c.
6950 (read_checked_initial_length_and_offset, read_formatted_entries):
6951 Likewise.
6952 (dwarf_decode_line_header): New function, split from read.c.
6953
86c0bb4c
TT
69542020-03-26 Tom Tromey <tom@tromey.com>
6955
6956 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
6957 Declare method.
6958 * dwarf2/read.c (read_attribute_value): Update.
6959 (dwarf2_per_objfile::read_line_string): Rename from
6960 read_indirect_line_string.
6961 (read_formatted_entries): Update.
6962
2ef46c2f
TT
69632020-03-26 Tom Tromey <tom@tromey.com>
6964
6965 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
6966 variable.
6967
4f9c1eda
TT
69682020-03-26 Tom Tromey <tom@tromey.com>
6969
6970 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
6971 const.
6972 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
6973 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
6974 parameter const.
6975
5a0e026f
TT
69762020-03-26 Tom Tromey <tom@tromey.com>
6977
6978 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
6979 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
6980 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
6981 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
6982
8844c11b
TT
69832020-03-26 Tom Tromey <tom@tromey.com>
6984
6985 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
6986 file_names_size, file_full_name, file_file_name>: Use const.
6987 <file_name_at, file_names>: Add const overload.
6988 * dwarf2/line-header.c (line_header::file_file_name)
6989 (line_header::file_full_name): Update.
6990
c90ec28a
TT
69912020-03-26 Tom Tromey <tom@tromey.com>
6992
6993 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
6994 (macro_start_file, consume_improper_spaces)
6995 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
6996 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
6997 (dwarf_decode_macros): Move to macro.c.
6998 * dwarf2/macro.c: New file.
6999 * dwarf2/macro.h: New file.
7000 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
7001
4f44ae6c
TT
70022020-03-26 Tom Tromey <tom@tromey.com>
7003
7004 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
7005 method.
7006 * dwarf2/section.c: New method. From
7007 read_indirect_string_at_offset_from.
7008 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
7009 (read_indirect_string_at_offset_from): Move to section.c.
7010 (read_indirect_string_at_offset): Rewrite.
7011 (read_indirect_line_string_at_offset): Remove.
7012 (read_indirect_string, read_indirect_line_string)
7013 (dwarf_decode_macro_bytes): Update.
7014
a0194fa8
TT
70152020-03-26 Tom Tromey <tom@tromey.com>
7016
7017 * dwarf2/section.h (struct dwarf2_section_info)
7018 <overload_complaint>: Declare.
7019 (dwarf2_section_buffer_overflow_complaint): Don't declare.
7020 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
7021 Rename from dwarf2_section_buffer_overflow_complaint.
7022 * dwarf2/read.c (skip_one_die, partial_die_info::read)
7023 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
7024
3d27bbdb
TT
70252020-03-26 Tom Tromey <tom@tromey.com>
7026
7027 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
7028 Declare.
7029 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
7030 Move from read.c.
7031 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
7032 to section.c.
7033
9eac9650
TT
70342020-03-26 Tom Tromey <tom@tromey.com>
7035
7036 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
7037
bf80d710
TT
70382020-03-26 Tom Tromey <tom@tromey.com>
7039
7040 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
7041 "builder".
7042 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
7043 parameter.
7044 (dwarf_decode_macros): Update.
7045
0314b390
TT
70462020-03-26 Tom Tromey <tom@tromey.com>
7047
7048 * dwarf2/read.c (read_attribute_value): Update.
7049 (read_indirect_string_from_dwz): Move to dwz.c; change into
7050 method.
7051 (dwarf_decode_macro_bytes): Update.
7052 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
7053 * dwarf2/dwz.c: New file.
7054 * Makefile.in (COMMON_SFILES): Add dwz.c.
7055
9fda78b6
TT
70562020-03-26 Tom Tromey <tom@tromey.com>
7057
7058 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
7059 * dwarf2/read.c: Add include.
7060 * dwarf2/index-write.c: Add include.
7061 * dwarf2/index-cache.c: Add include.
7062 * dwarf2/dwz.h: New file.
7063
33aa3c10
TT
70642020-03-25 Tom Tromey <tom@tromey.com>
7065
7066 * compile/compile-object-load.c (get_out_value_type): Mention
7067 correct symbol name in error message.
7068
d503b685
HD
70692020-03-25 Hannes Domani <ssbssa@yahoo.de>
7070
7071 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7072
7b1eff95
TV
70732020-03-25 Tom de Vries <tdevries@suse.de>
7074
7075 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
7076 * symmisc.c (dump_symtab_1): Print user and includes fields.
7077 (maintenance_info_symtabs): Same.
7078
dd895392
AB
70792020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
7080
7081 PR gdb/25534
7082 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
7083 (riscv_regcache_cooked_write): New function.
7084 (riscv_push_dummy_call): Use new function.
7085 (riscv_return_value): Likewise.
7086
5ab2fbf1
SM
70872020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
7088
7089 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
7090 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
7091 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
7092 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
7093 * infrun.c (follow_fork): Likewise.
7094 (follow_fork_inferior): Likewise.
7095 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
7096 * linux-nat.h (class linux_nat_target): Likewise.
7097 * remote.c (class remote_target) <follow_fork>: Likewise.
7098 (remote_target::follow_fork): Likewise.
7099 * target-delegates.c: Re-generate.
7100 * target.c (default_follow_fork): Likewise.
7101 (target_follow_fork): Likewise.
7102 * target.h (struct target_ops) <follow_fork>: Likewise.
7103 (target_follow_fork): Likewise.
7104
a64fafb5
TV
71052020-03-24 Tom de Vries <tdevries@suse.de>
7106
7107 * psymtab.c (maintenance_info_psymtabs): Print user field.
7108
fe26d3a3
TT
71092020-03-20 Tom Tromey <tromey@adacore.com>
7110
7111 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
7112 const.
7113 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
7114 const.
7115
c884cc46
SM
71162020-03-20 Simon Marchi <simon.marchi@efficios.com>
7117
7118 * ptrace.m4: Don't check for ptrace declaration.
7119 * config.in: Re-generate.
7120 * configure: Re-generate.
7121 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
7122 not defined.
7123
1ff700c2
KR
71242020-03-20 Kamil Rytarowski <n54@gmx.com>
7125
7126 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
7127 `PTRACE_TYPE_RET'.
7128 * i386-bsd-nat.c (gdb_ptrace): Likewise.
7129 * sparc-nat.c (gdb_ptrace): Likewise.
7130 * x86-bsd-nat.c (gdb_ptrace): Likewise.
7131
f7d4f0b1
TT
71322020-03-20 Tom Tromey <tromey@adacore.com>
7133
7134 * c-exp.y (lex_one_token): Fix assert.
7135
f67210ff
TT
71362020-03-20 Tom Tromey <tromey@adacore.com>
7137
7138 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
7139 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
7140 strncpy call.
7141
1773be9e
TT
71422020-03-20 Tom Tromey <tromey@adacore.com>
7143
7144 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
7145
70304be9
TT
71462020-03-20 Tom Tromey <tromey@adacore.com>
7147
7148 * ada-valprint.c (print_variant_part): Remove parameters; switch
7149 to value-based API.
7150 (print_field_values): Likewise.
7151 (ada_val_print_struct_union): Likewise.
7152 (ada_value_print_1): Update.
7153
9faa006d
KR
71542020-03-20 Kamil Rytarowski <n54@gmx.com>
7155
7156 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
7157 nbsd_nat_target instead of inf_ptrace_target.
7158 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7159 nbsd_nat_target.
7160
4a90f062
KR
71612020-03-20 Kamil Rytarowski <n54@gmx.com>
7162
7163 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
7164 it to the ptrace call.
7165 * (store_registers): Likewise.
7166
71672020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
7168
7169 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
7170 it to the ptrace call.
7171 * (store_registers): Likewise.
7172
2d07da27
LM
71732020-03-19 Luis Machado <luis.machado@linaro.org>
7174
7175 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
7176 valid, fetch vg value from ptrace.
7177
f09db380
KR
71782020-03-19 Kamil Rytarowski <n54@gmx.com>
7179 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
7180 * inf-ptrace.c: Likewise.
7181 * (gdb_ptrace): Add.
7182 * (inf_ptrace_target::resume): Update.
7183 * (inf_ptrace_target::xfer_partial): Likewise.
7184 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
7185 * (inf_ptrace_peek_poke): Update.
7186
fcc7376e
KR
71872020-03-19 Kamil Rytarowski <n54@gmx.com>
7188
7189 * x86-bsd-nat.c (gdb_ptrace): New.
7190 * (x86bsd_dr_set): Add new argument `ptid'.
7191 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
7192 x86bsd_dr_set_addr): Update.
7193
cada5fc9
AB
71942020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7195
7196 * remote.c (remote_target::process_stop_reply): Handle events for
7197 all threads differently.
7198
19a2740f
AB
71992020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7200
7201 * completer.c (completion_tracker::remove_completion): Define new
7202 function.
7203 * completer.h (completion_tracker::remove_completion): Declare new
7204 function.
7205 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
7206 when adding a C++ function symbol.
7207
724fd9ba
AB
72082020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7209
7210 * completer.c (completion_tracker::completion_hash_entry): Define
7211 new class.
7212 (advance_to_filename_complete_word_point): Call
7213 recompute_lowest_common_denominator.
7214 (completion_tracker::completion_tracker): Call discard_completions
7215 to setup the hash table.
7216 (completion_tracker::discard_completions): Allow for being called
7217 from the constructor, pass new equal function, and element deleter
7218 when constructing the hash table. Initialise new class member
7219 variables.
7220 (completion_tracker::maybe_add_completion): Remove use of
7221 m_entries_vec, and store more information into m_entries_hash.
7222 (completion_tracker::recompute_lcd_visitor): New function, most
7223 content taken from...
7224 (completion_tracker::recompute_lowest_common_denominator):
7225 ...here, this now just visits each item in the hash calling the
7226 above visitor.
7227 (completion_tracker::build_completion_result): Remove use of
7228 m_entries_vec, call recompute_lowest_common_denominator.
7229 * completer.h (completion_tracker::have_completions): Remove use
7230 of m_entries_vec.
7231 (completion_tracker::completion_hash_entry): Declare new class.
7232 (completion_tracker::recompute_lowest_common_denominator): Change
7233 function signature.
7234 (completion_tracker::recompute_lcd_visitor): Declare new function.
7235 (completion_tracker::m_entries_vec): Delete.
7236 (completion_tracker::m_entries_hash): Initialize to NULL.
7237 (completion_tracker::m_lowest_common_denominator_valid): New
7238 member variable.
7239 (completion_tracker::m_lowest_common_denominator_max_length): New
7240 member variable.
7241
5a82b8a1
KR
72422020-03-17 Kamil Rytarowski <n54@gmx.com>
7243
7244 * regformats/regdef.h: Put reg in gdb namespace.
7245
fb516a69
KR
72462020-03-17 Kamil Rytarowski <n54@gmx.com>
7247
7248 * i386-bsd-nat.c (gdb_ptrace): New.
7249 * (i386bsd_fetch_inferior_registers,
7250 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7251 * (i386bsd_fetch_inferior_registers,
7252 i386bsd_store_inferior_registers) Use gdb_ptrace.
7253
1c0aa1fb
KR
72542020-03-17 Kamil Rytarowski <n54@gmx.com>
7255
7256 * amd64-bsd-nat.c (gdb_ptrace): New.
7257 * (amd64bsd_fetch_inferior_registers,
7258 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7259 * (amd64bsd_fetch_inferior_registers,
7260 amd64bsd_store_inferior_registers) Use gdb_ptrace.
7261
5ccd2fb7
KR
72622020-03-17 Kamil Rytarowski <n54@gmx.com>
7263
7264 * user-regs.c (user_reg::read): Rename to...
7265 (user_reg::xread): ...this.
7266 * (append_user_reg): Rename argument `read' to `xread'.
7267 * (user_reg_add_builtin): Likewise.
7268 * (user_reg_add): Likewise.
7269 * (value_of_user_reg): Likewise.
7270
2108a63a
KR
72712020-03-17 Kamil Rytarowski <n54@gmx.com>
7272
7273 * sparc-nat.c (gdb_ptrace): New.
7274 * sparc-nat.c (sparc_fetch_inferior_registers)
7275 (sparc_store_inferior_registers) Remove obsolete comment.
7276 * sparc-nat.c (sparc_fetch_inferior_registers)
7277 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
7278 * sparc-nat.c (sparc_fetch_inferior_registers)
7279 (sparc_store_inferior_registers) Use gdb_ptrace.
7280
a225c9a8
KR
72812020-03-17 Kamil Rytarowski <n54@gmx.com>
7282
7283 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
7284 it to the ptrace call.
7285 * sh-nbsd-nat.c (store_registers): Likewise.
7286
98097623
KR
72872020-03-17 Kamil Rytarowski <n54@gmx.com>
7288
7289 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
7290 nbsd_nat_target instead of inf_ptrace_target.
7291 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7292 nbsd_nat_target.
7293
9e38d619
KR
72942020-03-17 Kamil Rytarowski <n54@gmx.com>
7295
7296 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
7297
a2ecbe9f
KR
72982020-03-17 Kamil Rytarowski <n54@gmx.com>
7299
7300 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
7301 <sys/sysctl.h>.
7302 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
7303
58990295
TV
73042020-03-17 Tom de Vries <tdevries@suse.de>
7305
7306 PR gdb/23710
7307 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
7308 fields.
7309 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
7310 fields.
7311 (process_imported_unit_die): Skip import of c++ CUs.
7312
771dd3a8
TT
73132020-03-16 Tom Tromey <tom@tromey.com>
7314
7315 * p-valprint.c (pascal_object_print_value): Initialize
7316 base_value.
7317
817a7585
AK
73182020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
7319 Shahab Vahedi <shahab@synopsys.com>
7320
7321 * Makefile.in: Add arch/arc.o
7322 * configure.tgt: Likewise.
7323 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
7324 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 7325 (arc_read_description): New function to cache target descriptions.
817a7585
AK
7326 * arc-tdep.h (arc_read_description): Add proto type.
7327 * arch/arc.c: New file.
7328 * arch/arc.h: Likewise.
7329 * features/Makefile: Replace old target descriptions with new.
7330 * features/arc-arcompact.c: Remove.
7331 * features/arc-arcompact.xml: Likewise.
7332 * features/arc-v2.c: Likewise
7333 * features/arc-v2.xml: Likewise
7334 * features/arc/aux-arcompact.xml: New file.
7335 * features/arc/aux-v2.xml: Likewise.
7336 * features/arc/core-arcompact.xml: Likewise.
7337 * features/arc/core-v2.xml: Likewise.
7338 * features/arc/aux-arcompact.c: Generate.
7339 * features/arc/aux-v2.c: Likewise.
7340 * features/arc/core-arcompact.c: Likewise.
7341 * features/arc/core-v2.c: Likewise.
7342 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
7343
67430cd0
TT
73442020-03-16 Tom Tromey <tromey@adacore.com>
7345
7346 PR gdb/25663:
7347 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
7348 putting value into bcache.
7349
30efb6c7
SM
73502020-03-16 Simon Marchi <simon.marchi@efficios.com>
7351
7352 PR gdb/21500
7353 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
7354 to...
7355 (amd64_windows_init_abi_common): ... this. Don't set size of
7356 long type.
7357 (amd64_windows_init_abi): New function.
7358 (amd64_cygwin_init_abi): New function.
7359 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
7360 the Cygwin OS ABI.
7361 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
7362 comment.
7363
8db52437
SM
73642020-03-16 Simon Marchi <simon.marchi@efficios.com>
7365
7366 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
7367 * windows-tdep.c (CYGWIN_DLL_NAME): New.
7368 (pe_import_directory_entry): New struct type.
7369 (is_linked_with_cygwin_dll): New function.
7370 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
7371 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
7372 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
7373
5982a56a
SM
73742020-03-16 Simon Marchi <simon.marchi@efficios.com>
7375
7376 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
7377 i386_cygwin_core_osabi_sniffer.
7378
7a1998df
SM
73792020-03-16 Simon Marchi <simon.marchi@efficios.com>
7380
7381 * i386-cygwin-tdep.c: Rename to...
7382 * i386-windows-tdep.c: ... this.
7383 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
7384 i386-windows-tdep.c.
7385 * configure.tgt: Likewise.
7386
053205cc
SM
73872020-03-16 Simon Marchi <simon.marchi@efficios.com>
7388
7389 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
7390 * osabi.c (gdb_osabi_names): Add "Windows".
7391 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
7392 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
7393 (i386_cygwin_core_osabi_sniffer): New function, extracted from
7394 i386_cygwin_osabi_sniffer.
7395 (_initialize_i386_cygwin_tdep): Register OS ABI
7396 GDB_OSABI_WINDOWS for i386.
7397 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
7398 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
7399 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
7400 for x86-64.
7401 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
7402 when the target matches '*-*-mingw*'.
7403
fe4b2ee6
SM
74042020-03-16 Simon Marchi <simon.marchi@efficios.com>
7405
7406 * defs.h (enum gdb_osabi): Move to...
7407 * osabi.h (enum gdb_osabi): ... here.
7408 * gdbarch.sh: Include osabi.h in gdbarch.h.
7409 * gdbarch.h: Re-generate.
7410
cb9b645d
SM
74112020-03-16 Simon Marchi <simon.marchi@efficios.com>
7412
7413 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
7414 function.
7415 (_initialize_amd64_windows_tdep): Register osabi sniffer.
7416
3293bbaf
TT
74172020-03-14 Tom Tromey <tom@tromey.com>
7418
7419 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
7420 for C++.
7421 (c_type_print_modifier): Likewise. Add "language" parameter.
7422 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
7423 (c_type_print_base_1): Update.
7424 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
7425 constants.
7426 * type-stack.c (type_stack::insert): Handle tp_atomic and
7427 tp_restrict.
7428 (type_stack::follow_type_instance_flags): Likewise.
7429 (type_stack::follow_types): Likewise. Merge type-following code.
7430 * c-exp.y (RESTRICT, ATOMIC): New tokens.
7431 (space_identifier, cv_with_space_id)
7432 (const_or_volatile_or_space_identifier_noopt)
7433 (const_or_volatile_or_space_identifier): Remove.
7434 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
7435 rules.
7436 (ptr_operator, typebase): Update.
7437 (enum token_flag) <FLAG_C>: New constant.
7438 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
7439 "_Atomic".
7440 (lex_one_token): Handle FLAG_C.
7441
154151a6
KR
74422020-03-14 Kamil Rytarowski <n54@gmx.com>
7443
7444 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
7445 it to the ptrace call.
7446 * m68k-bsd-nat.c (store_registers): Likewise.
7447
bc107784
KR
74482020-03-14 Kamil Rytarowski <n54@gmx.com>
7449
7450 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
7451 gdb_byte *.
7452 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
7453 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
7454 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
7455
01a80117
KR
74562020-03-14 Kamil Rytarowski <n54@gmx.com>
7457
7458 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
7459 nbsd_nat_target instead of inf_ptrace_target.
7460 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7461 nbsd_nat_target.
7462
f90280ca
KR
74632020-03-14 Kamil Rytarowski <n54@gmx.com>
7464
7465 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
7466 register_t.
7467
6def66f1
KR
74682020-03-14 Kamil Rytarowski <n54@gmx.com>
7469
7470 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
7471 it to the ptrace call.
7472 * alpha-bsd-nat.c (store_registers): Likewise.
7473
66eaca97
KR
74742020-03-14 Kamil Rytarowski <n54@gmx.com>
7475
7476 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
7477 includes.
7478 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
7479 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
7480 fill_fpregset): Likewise.
7481
4fed520b
KR
74822020-03-14 Kamil Rytarowski <n54@gmx.com>
7483
7484 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
7485 nbsd_nat_target instead of inf_ptrace_target.
7486 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7487 nbsd_nat_target.
7488
2190cf06
KR
74892020-03-14 Kamil Rytarowski <n54@gmx.com>
7490
7491 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
7492 register_t.
7493
75c56d3d
KR
74942020-03-14 Kamil Rytarowski <n54@gmx.com>
7495
7496 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
7497 it to the ptrace call.
7498 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
7499 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
7500 * arm-nbsd-nat.c (store_register): Likewise.
7501 * arm-nbsd-nat.c (store_regs): Likewise.
7502 * arm-nbsd-nat.c (store_fp_register): Likewise.
7503 * arm-nbsd-nat.c (store_fp_regs): Likewise.
7504
6018d381
KR
75052020-03-14 Kamil Rytarowski <n54@gmx.com>
7506
7507 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
7508 nbsd_nat_target instead of inf_ptrace_target.
7509 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7510 nbsd_nat_target.
7511
013f99f0
KR
75122020-03-14 Kamil Rytarowski <n54@gmx.com>
7513
7514 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
7515 it to the ptrace call.
7516 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
7517
12753073
KR
75182020-03-14 Kamil Rytarowski <n54@gmx.com>
7519
6227b330
KR
7520 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
7521 it to the ptrace call.
7522 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
7523
75242020-03-14 Kamil Rytarowski <n54@gmx.com>
7525
7526 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
7527 gdb_byte *.
12753073
KR
7528 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
7529
d5be5fa4
KR
75302020-03-14 Kamil Rytarowski <n54@gmx.com>
7531
7532 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
7533 instead of inf_ptrace_target.
7534 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7535 nbsd_nat_target.
7536
8110f842
KR
75372020-03-14 Kamil Rytarowski <n54@gmx.com>
7538
7539 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7540 register_t.
7541
52feded7
KR
75422020-03-14 Kamil Rytarowski <n54@gmx.com>
7543
7544 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7545 register_t.
7546
25567eee
KR
75472020-03-14 Kamil Rytarowski <n54@gmx.com>
7548
7549 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
7550 register_t.
7551
426a9c18
TT
75522020-03-13 Tom Tromey <tom@tromey.com>
7553
7554 * value.h (val_print): Don't declare.
7555 * valprint.h (val_print_array_elements)
7556 (val_print_scalar_formatted, generic_val_print): Don't declare.
7557 * valprint.c (generic_val_print_array): Take a struct value.
7558 (generic_val_print_ptr, generic_val_print_memberptr)
7559 (generic_val_print_bool, generic_val_print_int)
7560 (generic_val_print_char, generic_val_print_complex)
7561 (generic_val_print): Remove.
7562 (generic_value_print): Update.
7563 (do_val_print): Remove unused parameters. Don't call
7564 la_val_print.
7565 (val_print): Remove.
7566 (common_val_print): Update. Don't call value_check_printable.
7567 (val_print_scalar_formatted, val_print_array_elements): Remove.
7568 * rust-lang.c (rust_val_print): Remove.
7569 (rust_language_defn): Update.
7570 * p-valprint.c (pascal_val_print): Remove.
7571 (pascal_value_print_inner): Update.
7572 (pascal_object_print_val_fields, pascal_object_print_val):
7573 Remove.
7574 (pascal_object_print_static_field): Update.
7575 * p-lang.h (pascal_val_print): Don't declare.
7576 * p-lang.c (pascal_language_defn): Update.
7577 * opencl-lang.c (opencl_language_defn): Update.
7578 * objc-lang.c (objc_language_defn): Update.
7579 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
7580 * m2-lang.h (m2_val_print): Don't declare.
7581 * m2-lang.c (m2_language_defn): Update.
7582 * language.h (struct language_defn) <la_val_print>: Remove.
7583 * language.c (unk_lang_value_print_inner): Rename. Change
7584 argument types.
7585 (unknown_language_defn, auto_language_defn): Update.
7586 * go-valprint.c (go_val_print): Remove.
7587 * go-lang.h (go_val_print): Don't declare.
7588 * go-lang.c (go_language_defn): Update.
7589 * f-valprint.c (f_val_print): Remove.
7590 * f-lang.h (f_value_print): Don't declare.
7591 * f-lang.c (f_language_defn): Update.
7592 * d-valprint.c (d_val_print): Remove.
7593 * d-lang.h (d_value_print): Don't declare.
7594 * d-lang.c (d_language_defn): Update.
7595 * cp-valprint.c (cp_print_value_fields)
7596 (cp_print_value_fields_rtti, cp_print_value): Remove.
7597 (cp_print_static_field): Update.
7598 * c-valprint.c (c_val_print_array, c_val_print_ptr)
7599 (c_val_print_struct, c_val_print_union, c_val_print_int)
7600 (c_val_print_memberptr, c_val_print): Remove.
7601 * c-lang.h (c_val_print_array, cp_print_value_fields)
7602 (cp_print_value_fields_rtti): Don't declare.
7603 * c-lang.c (c_language_defn, cplus_language_defn)
7604 (asm_language_defn, minimal_language_defn): Update.
7605 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
7606 (ada_val_print_enum): Take a struct value.
7607 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
7608 (ada_val_print): Remove.
7609 (ada_value_print_1): Update.
7610 (printable_val_type): Remove.
7611 * ada-lang.h (ada_val_print): Don't declare.
7612 * ada-lang.c (ada_language_defn): Update.
7613
42331a1e
TT
76142020-03-13 Tom Tromey <tom@tromey.com>
7615
7616 * valprint.c (do_val_print): Update.
7617 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
7618 a struct value.
7619 (value_to_value_object_no_release): Declare.
7620 * python/py-value.c (value_to_value_object_no_release): New
7621 function.
7622 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
7623 struct value.
7624 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
7625 function.
7626 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
7627 a struct value.
7628 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
7629 Declare.
7630 (gdbscm_apply_val_pretty_printer): Take a struct value.
7631 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
7632 value.
7633 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
7634 value.
7635 * extension-priv.h (struct extension_language_ops)
7636 <apply_val_pretty_printer>: Take a struct value.
7637 * cp-valprint.c (cp_print_value): Create a struct value.
7638 (cp_print_value): Update.
7639
3a916a97
TT
76402020-03-13 Tom Tromey <tom@tromey.com>
7641
7642 * ada-valprint.c (print_field_values): Call common_val_print.
7643
b59eac37
TT
76442020-03-13 Tom Tromey <tom@tromey.com>
7645
7646 * ada-valprint.c (val_print_packed_array_elements): Remove
7647 bitoffset and val parameters. Call common_val_print.
7648 (ada_val_print_string): Remove offset, address, and original_value
7649 parameters.
7650 (ada_val_print_array): Update.
7651 (ada_value_print_array): New function.
7652 (ada_value_print_1): Call it.
7653
03371129
TT
76542020-03-13 Tom Tromey <tom@tromey.com>
7655
7656 * ada-valprint.c (ada_value_print): Use common_val_print.
7657
2e088f8b
TT
76582020-03-13 Tom Tromey <tom@tromey.com>
7659
7660 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
7661
39ef85a8
TT
76622020-03-13 Tom Tromey <tom@tromey.com>
7663
7664 * ada-valprint.c (ada_value_print_num): New function.
7665 (ada_value_print_1): Use it.
7666
b9fa6e07
TT
76672020-03-13 Tom Tromey <tom@tromey.com>
7668
7669 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
7670
416595d6
TT
76712020-03-13 Tom Tromey <tom@tromey.com>
7672
7673 * ada-valprint.c (ada_value_print_ptr): New function.
7674 (ada_value_print_1): Use it.
7675
5b5e15ec
TT
76762020-03-13 Tom Tromey <tom@tromey.com>
7677
7678 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
7679 call common_val_print.
7680 (ada_val_print_1): Update.
7681 (ada_value_print_1): New function.
7682 (ada_value_print_inner): Rewrite.
7683
fbf54e75
TT
76842020-03-13 Tom Tromey <tom@tromey.com>
7685
7686 * cp-valprint.c (cp_print_value_fields): Update.
7687 (cp_print_value): New function.
7688
64b653ca
TT
76892020-03-13 Tom Tromey <tom@tromey.com>
7690
7691 * m2-valprint.c (m2_value_print_inner): Use
7692 cp_print_value_fields.
7693 * cp-valprint.c (cp_print_value_fields): New function.
7694 * c-valprint.c (c_value_print_struct): New function.
7695 (c_value_print_inner): Use c_value_print_struct.
7696 * c-lang.h (cp_print_value_fields): Declare.
7697
6999f067
TT
76982020-03-13 Tom Tromey <tom@tromey.com>
7699
7700 * c-valprint.c (c_value_print_array): New function.
7701 (c_value_print_inner): Use it.
7702
ce80b8bd
TT
77032020-03-13 Tom Tromey <tom@tromey.com>
7704
7705 * c-valprint.c (c_value_print_memberptr): New function.
7706 (c_value_print_inner): Use it.
7707
2faac269
TT
77082020-03-13 Tom Tromey <tom@tromey.com>
7709
7710 * c-valprint.c (c_value_print_int): New function.
7711 (c_value_print_inner): Use it.
7712
da3e2c29
TT
77132020-03-13 Tom Tromey <tom@tromey.com>
7714
7715 * c-valprint.c (c_value_print_ptr): New function.
7716 (c_value_print_inner): Use it.
7717
50836231
TT
77182020-03-13 Tom Tromey <tom@tromey.com>
7719
7720 * c-valprint.c (c_value_print_inner): Rewrite.
7721
4f412b6e
TT
77222020-03-13 Tom Tromey <tom@tromey.com>
7723
7724 * valprint.c (generic_value_print_complex): New function.
7725 (generic_value_print): Use it.
7726
f5354008
TT
77272020-03-13 Tom Tromey <tom@tromey.com>
7728
7729 * valprint.c (generic_val_print_float): Don't call
7730 val_print_scalar_formatted.
7731 (generic_val_print, generic_value_print): Update.
7732
3eec3b05
TT
77332020-03-13 Tom Tromey <tom@tromey.com>
7734
7735 * valprint.c (generic_value_print_char): New function
7736 (generic_value_print): Use it.
7737
fdddfccb
TT
77382020-03-13 Tom Tromey <tom@tromey.com>
7739
7740 * valprint.c (generic_value_print_int): New function.
7741 (generic_value_print): Use it.
7742
6dde7521
TT
77432020-03-13 Tom Tromey <tom@tromey.com>
7744
7745 * valprint.c (generic_value_print_bool): New function.
7746 (generic_value_print): Use it.
7747
4112d2e6
TT
77482020-03-13 Tom Tromey <tom@tromey.com>
7749
7750 * valprint.c (generic_val_print_func): Simplify.
7751 (generic_val_print, generic_value_print): Update.
7752
65786af6
TT
77532020-03-13 Tom Tromey <tom@tromey.com>
7754
7755 * valprint.c (generic_val_print_flags): Remove.
7756 (generic_val_print, generic_value_print): Update.
7757 (val_print_type_code_flags): Add original_value parameter.
7758
40f3ce18
TT
77592020-03-13 Tom Tromey <tom@tromey.com>
7760
7761 * valprint.c (generic_val_print): Update.
7762 (generic_value_print): Update.
7763 * valprint.c (generic_val_print_enum): Don't call
7764 val_print_scalar_formatted.
7765
2a5b130b
TT
77662020-03-13 Tom Tromey <tom@tromey.com>
7767
7768 * valprint.c (generic_value_print): Call generic_value_print_ptr.
7769 * valprint.c (generic_value_print_ptr): New function.
7770
abc66ce9
TT
77712020-03-13 Tom Tromey <tom@tromey.com>
7772
7773 * valprint.c (generic_value_print): Rewrite.
7774
07a32858
TT
77752020-03-13 Tom Tromey <tom@tromey.com>
7776
7777 * p-valprint.c (pascal_object_print_value_fields)
7778 (pascal_object_print_value): New functions.
7779
64d64d3a
TT
77802020-03-13 Tom Tromey <tom@tromey.com>
7781
7782 * p-valprint.c (pascal_value_print_inner): Rewrite.
7783
6a95a1f5
TT
77842020-03-13 Tom Tromey <tom@tromey.com>
7785
7786 * f-valprint.c (f_value_print_innner): Rewrite.
7787
59fcdac6
TT
77882020-03-13 Tom Tromey <tom@tromey.com>
7789
7790 * m2-valprint.c (m2_print_unbounded_array): New overload.
7791 (m2_print_unbounded_array): Update.
7792 (m2_print_array_contents): Take a struct value.
7793 (m2_value_print_inner): Rewrite.
7794
d133c3e1
TT
77952020-03-13 Tom Tromey <tom@tromey.com>
7796
7797 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
7798 (d_value_print_inner): New function.
7799 * d-lang.h (d_value_print_inner): Declare.
7800 * d-lang.c (d_language_defn): Use d_value_print_inner.
7801
23b0f06b
TT
78022020-03-13 Tom Tromey <tom@tromey.com>
7803
7804 * go-valprint.c (go_value_print_inner): New function.
7805 * go-lang.h (go_value_print_inner): Declare.
7806 * go-lang.c (go_language_defn): Use go_value_print_inner.
7807
5f56f7cb
TT
78082020-03-13 Tom Tromey <tom@tromey.com>
7809
7810 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
7811 API.
7812 (rust_val_print): Rewrite.
7813 (rust_value_print_inner): New function, from rust_val_print.
7814 (rust_language_defn): Use rust_value_print_inner.
7815
26792ee0
TT
78162020-03-13 Tom Tromey <tom@tromey.com>
7817
7818 * ada-valprint.c (ada_value_print_inner): New function.
7819 * ada-lang.h (ada_value_print_inner): Declare.
7820 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
7821
24051bbe
TT
78222020-03-13 Tom Tromey <tom@tromey.com>
7823
7824 * f-valprint.c (f_value_print_innner): New function.
7825 * f-lang.h (f_value_print_innner): Declare.
7826 * f-lang.c (f_language_defn): Use f_value_print_innner.
7827
c0941be6
TT
78282020-03-13 Tom Tromey <tom@tromey.com>
7829
7830 * p-valprint.c (pascal_value_print_inner): New function.
7831 * p-lang.h (pascal_value_print_inner): Declare.
7832 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
7833
62c4663d
TT
78342020-03-13 Tom Tromey <tom@tromey.com>
7835
7836 * m2-valprint.c (m2_value_print_inner): New function.
7837 * m2-lang.h (m2_value_print_inner): Declare.
7838 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
7839
62182190
TT
78402020-03-13 Tom Tromey <tom@tromey.com>
7841
7842 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
7843 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
7844 * c-valprint.c (c_value_print_inner): New function.
7845 * c-lang.h (c_value_print_inner): Declare.
7846 * c-lang.c (c_language_defn, cplus_language_defn)
7847 (asm_language_defn, minimal_language_defn): Use
7848 c_value_print_inner.
7849
1e592a8a
TT
78502020-03-13 Tom Tromey <tom@tromey.com>
7851
7852 * p-valprint.c (pascal_object_print_value_fields): Now static.
7853 * p-lang.h (pascal_object_print_value_fields): Don't declare.
7854
7fe471e9
TT
78552020-03-13 Tom Tromey <tom@tromey.com>
7856
7857 * c-valprint.c (c_val_print_array): Simplify.
7858
d121c6ce
TT
78592020-03-13 Tom Tromey <tom@tromey.com>
7860
7861 * valprint.c (value_print_array_elements): New function.
7862 * valprint.h (value_print_array_elements): Declare.
7863
4dba70ee
TT
78642020-03-13 Tom Tromey <tom@tromey.com>
7865
7866 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
7867 * mips-tdep.c (mips_print_register): Use
7868 value_print_scalar_formatted.
7869
4f9ae810
TT
78702020-03-13 Tom Tromey <tom@tromey.com>
7871
7872 * valprint.h (value_print_scalar_formatted): Declare.
7873 * valprint.c (value_print_scalar_formatted): New function.
7874
156bfec9
TT
78752020-03-13 Tom Tromey <tom@tromey.com>
7876
7877 * valprint.h (generic_value_print): Declare.
7878 * valprint.c (generic_value_print): New function.
7879
2b4e573d
TT
78802020-03-13 Tom Tromey <tom@tromey.com>
7881
7882 * valprint.c (do_val_print): Call la_value_print_inner, if
7883 available.
7884 * rust-lang.c (rust_language_defn): Update.
7885 * p-lang.c (pascal_language_defn): Update.
7886 * opencl-lang.c (opencl_language_defn): Update.
7887 * objc-lang.c (objc_language_defn): Update.
7888 * m2-lang.c (m2_language_defn): Update.
7889 * language.h (struct language_defn) <la_value_print_inner>: New
7890 member.
7891 * language.c (unknown_language_defn, auto_language_defn): Update.
7892 * go-lang.c (go_language_defn): Update.
7893 * f-lang.c (f_language_defn): Update.
7894 * d-lang.c (d_language_defn): Update.
7895 * c-lang.c (c_language_defn, cplus_language_defn)
7896 (asm_language_defn, minimal_language_defn): Update.
7897 * ada-lang.c (ada_language_defn): Update.
7898
a1f6a07c
TT
78992020-03-13 Tom Tromey <tom@tromey.com>
7900
7901 * c-valprint.c (c_value_print): Use common_val_print.
7902
410cf315
TT
79032020-03-13 Tom Tromey <tom@tromey.com>
7904
7905 * cp-valprint.c (cp_print_static_field): Use common_val_print.
7906
72a45c93
TT
79072020-03-13 Tom Tromey <tom@tromey.com>
7908
7909 * f-valprint.c (f77_print_array_1, f_val_print): Use
7910 common_val_print.
7911
040f66bd
TT
79122020-03-13 Tom Tromey <tom@tromey.com>
7913
7914 * riscv-tdep.c (riscv_print_one_register_info): Use
7915 common_val_print.
7916
a6e05a6c
TT
79172020-03-13 Tom Tromey <tom@tromey.com>
7918
7919 * mi/mi-main.c (output_register): Use common_val_print.
7920
3444c526
TT
79212020-03-13 Tom Tromey <tom@tromey.com>
7922
7923 * infcmd.c (default_print_one_register_info): Use
7924 common_val_print.
7925
c2a44efe
TT
79262020-03-13 Tom Tromey <tom@tromey.com>
7927
7928 * valprint.h (common_val_print_checked): Declare.
7929 * valprint.c (common_val_print_checked): New function.
7930 * stack.c (print_frame_arg): Use common_val_print_checked.
7931
b0c26e99
TT
79322020-03-13 Tom Tromey <tom@tromey.com>
7933
7934 * valprint.c (do_val_print): New function, from val_print.
7935 (val_print): Use do_val_print.
7936 (common_val_print): Use do_val_print.
7937
ce3acbe9
TT
79382020-03-13 Tom Tromey <tom@tromey.com>
7939
7940 * valprint.c (value_print): Use scoped_value_mark.
7941
96c7f873
TV
79422020-03-13 Tom de Vries <tdevries@suse.de>
7943
7944 PR symtab/25646
7945 * psymtab.c (partial_symtab::partial_symtab): Don't set
7946 globals_offset and statics_offset. Push element onto
7947 current_global_psymbols and current_static_psymbols stacks.
7948 (concat): New function.
7949 (end_psymtab_common): Set globals_offset and statics_offset. Pop
7950 element from current_global_psymbols and current_static_psymbols
7951 stacks. Concat popped elements to global_psymbols and
7952 static_symbols.
7953 (add_psymbol_to_list): Use current_global_psymbols and
7954 current_static_psymbols stacks.
7955 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
7956 current_static_psymbols fields.
7957
6ba0a321
CB
79582020-03-12 Christian Biesinger <cbiesinger@google.com>
7959
7960 * corelow.c (sniff_core_bfd): Remove.
7961 (class core_target) <m_core_vec>: Remove.
7962 (core_target::core_target): Update.
7963 (core_file_fns): Remove.
7964 (deprecated_add_core_fns): Remove.
7965 (default_core_sniffer): Remove.
7966 (sniff_core_bfd): Remove.
7967 (default_check_format): Remove.
7968 (gdb_check_format): Remove.
7969 (core_target_open): Update.
7970 (core_target::get_core_register_section): Update.
7971 (get_core_registers_cb): Update.
7972 (core_target::fetch_registers): Update.
7973 * gdbcore.h (struct core_fns): Remove.
7974 (deprecated_add_core_fns): Remove.
7975 (default_core_sniffer): Remove.
7976 (default_check_format): Remove.
7977
227031b2
TT
79782020-03-12 Tom Tromey <tom@tromey.com>
7979
7980 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
7981 CORE_ADDR.
7982 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
7983
53807e9f
TT
79842020-03-12 Tom Tromey <tom@tromey.com>
7985
7986 * remote.c (remote_target::download_tracepoint)
7987 (remote_target::enable_tracepoint)
7988 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
7989 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
7990 sprintf_vma.
7991
64f25102
TT
79922020-03-12 Tom Tromey <tom@tromey.com>
7993
7994 * symfile-mem.c: Update CORE_ADDR size assert.
7995
272cd5a3
SM
79962020-03-12 Simon Marchi <simon.marchi@efficios.com>
7997
7998 * selftest.m4: Move to gdbsupport/.
7999 * acinclude.m4: Update path to selftest.m4.
8000
74cd3f9d
SM
80012020-03-12 Simon Marchi <simon.marchi@efficios.com>
8002
8003 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
8004 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
8005 gdbarch-selfselftests.c and selftest-arch.c.
8006 (SUBDIR_UNITTESTS_OBS): Rename to...
8007 (SELFTESTS_OBS): ... this.
8008 (COMMON_SFILES): Remove disasm-selftests.c and
8009 gdbarch-selftests.c.
8010 * configure.ac: Don't add selftest-arch.{c,o} to
8011 CONFIG_{SRCS,OBS}.
8012 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
8013 preprocessor conditions.
8014
db6878ac
SM
80152020-03-12 Simon Marchi <simon.marchi@efficios.com>
8016
8017 * configure.ac: Don't source bfd/development.sh.
8018 * selftest.m4: Modify comment.
8019 * configure: Re-generate.
8020
4d696a5c
SM
80212020-03-12 Simon Marchi <simon.marchi@efficios.com>
8022
8023 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
8024 not "true" or "false".
8025 * configure: Re-generate.
8026
8dd8e1c7
CB
80272020-03-12 Christian Biesinger <cbiesinger@google.com>
8028
8029 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
8030 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
8031 renamed to arm_nbsd_supply_gregset.
8032 (fetch_register): Update to call arm_nbsd_supply_gregset.
8033 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
8034 (arm_netbsd_nat_target::fetch_registers): Update.
8035 (fetch_elfcore_registers): Removed.
8036 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
8037 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
8038 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
8039 not require NetBSD system headers.
8040 (arm_nbsd_regset): New struct.
8041 (arm_nbsd_iterate_over_regset_sections): New function.
8042 (arm_netbsd_init_abi_common): Updated to call
8043 set_gdbarch_iterate_over_regset_sections.
8044 * arm-nbsd-tdep.h: New file.
8045
dd69bf7a
KB
80462020-03-11 Kevin Buettner <kevinb@redhat.com>
8047
8048 * symtab.c (find_pc_sect_line): Add check which prevents infinite
8049 recursion.
8050
a0761e34
SM
80512020-03-11 Simon Marchi <simon.marchi@efficios.com>
8052
8053 * configure: Re-generate.
8054
e7a82140
TT
80552020-03-11 Tom Tromey <tromey@adacore.com>
8056
8057 * ada-typeprint.c (print_choices): Fix comment.
8058
dcc050c8
AB
80592020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
8060
8061 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
8062 previous item in the list, when the list has no items.
8063
1c33af77
TV
80642020-03-11 Tom de Vries <tdevries@suse.de>
8065
8066 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
8067 PROP_LOCLIST handling code.
8068
8c95582d
AB
80692020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
8070
8071 * buildsym-legacy.c (record_line): Pass extra parameter to
8072 record_line.
8073 * buildsym.c (buildsym_compunit::record_line): Take an extra
8074 parameter, reduce duplication in the line table, and record the
8075 is_stmt flag in the line table.
8076 * buildsym.h (buildsym_compunit::record_line): Add extra
8077 parameter.
8078 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
8079 non-statement lines.
8080 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
8081 this to the symtab builder.
8082 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
8083 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
8084 through to dwarf_record_line_1.
8085 * infrun.c (process_event_stop_test): When stepping, don't stop at
8086 a non-statement instruction, and only refresh the step info when
8087 we land in the middle of a line's range. Also add an extra
8088 comment.
8089 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
8090 field.
8091 * record-btrace.c (btrace_find_line_range): Only record lines
8092 marked as is-statement.
8093 * stack.c (frame_show_address): Show the frame address if we are
8094 in a non-statement sal.
8095 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
8096 (maintenance_print_one_line_table): Print a header for the is_stmt
8097 column, and include is_stmt information in the output.
8098 * symtab.c (find_pc_sect_line): Find lines marked as statements in
8099 preference to non-statements.
8100 (find_pcs_for_symtab_line): Prefer is-statement entries.
8101 (find_line_common): Likewise.
8102 * symtab.h (struct linetable_entry): Add is_stmt field.
8103 (struct symtab_and_line): Likewise.
8104 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
8105 arranging the line table.
8106
e4003a34
TV
81072020-03-07 Tom de Vries <tdevries@suse.de>
8108
8109 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
8110 DIE.
8111
e8932576
TT
81122020-03-07 Tom Tromey <tom@tromey.com>
8113
8114 * valops.c (value_literal_complex): Remove obsolete comment.
8115 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
8116 comment.
8117
29734269
SM
81182020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
8119
8120 * infrun.h: Forward-declare thread_info.
8121 (set_step_info): Add thread_info parameter, add doc.
8122 * infrun.c (set_step_info): Add thread_info parameter, move doc
8123 to header.
8124 * infrun.c (process_event_stop_test): Pass thread to
8125 set_step_info call.
8126 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
8127 set_step_info.
8128 (prepare_one_step): Add thread_info parameter, pass it to
8129 set_step_frame and prepare_one_step (recursive) call.
8130 (step_1): Pass thread to prepare_one_step call.
8131 (step_command_fsm::should_stop): Pass thread to
8132 prepare_one_step.
8133 (until_next_fsm): Pass thread to set_step_frame call.
8134 (finish_command): Pass thread to set_step_info call.
8135
b7d64b29
HD
81362020-03-06 Hannes Domani <ssbssa@yahoo.de>
8137
8138 * windows-tdep.c (windows_solib_create_inferior_hook):
8139 Check if inferior is running.
8140
09f2921c
TV
81412020-03-06 Tom de Vries <tdevries@suse.de>
8142
8143 * NEWS: Fix "the the".
8144 * ctfread.c: Same.
8145
fd760e79
TV
81462020-03-06 Tom de Vries <tdevries@suse.de>
8147
8148 * psymtab.c (psymtab_to_symtab): Don't print "done.".
8149
20ea4a60
AB
81502020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8151
8152 * .dir-locals.el: Add a comment referencing the other copies of
8153 this file.
8154
0afbabf0
JB
81552020-03-05 John Baldwin <jhb@FreeBSD.org>
8156
8157 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
8158 psargs.
8159
842806cb
TBA
81602020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8161
8162 * .gitattributes: New file.
8163
be1e3d3e
TT
81642020-03-04 Tom Tromey <tom@tromey.com>
8165
8166 * symmisc.c (print_symbol_bcache_statistics)
8167 (print_objfile_statistics): Update.
8168 * symfile.c (allocate_symtab): Use intern.
8169 * psymtab.c (partial_symtab::partial_symtab): Use intern.
8170 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
8171 macro_cache>: Remove.
8172 <string_cache>: New member.
8173 (struct objfile) <intern>: New methods.
8174 * elfread.c (elf_symtab_read): Use intern.
8175 * dwarf2/read.c (fixup_go_packaging): Intern package name.
8176 (dwarf2_compute_name, dwarf2_physname)
8177 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
8178 names.
8179 (guess_partial_die_structure_name): Update.
8180 (partial_die_info::fixup): Intern name.
8181 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
8182 name.
8183 (dwarf2_name): Intern name. Update.
8184 * buildsym.c (buildsym_compunit::get_macro_table): Use
8185 string_cache.
8186
4e7625fd
TT
81872020-03-04 Tom Tromey <tom@tromey.com>
8188
8189 * jit.c (bfd_open_from_target_memory): Make "target" const.
8190 * corefile.c (gnutarget): Now const.
8191 * gdbcore.h (gnutarget): Now const.
8192
46f9f931
HD
81932020-03-04 Hannes Domani <ssbssa@yahoo.de>
8194
8195 * NEWS: Mention support for WOW64 processes.
8196 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
8197 (amd64_windows_segment_register_p): Remove static.
8198 (_initialize_amd64_windows_nat): Update.
8199 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
8200 * i386-windows-nat.c (context_offset): Update.
8201 (i386_mappings): Rename and remove static.
8202 (i386_windows_segment_register_p): Remove static.
8203 (_initialize_i386_windows_nat): Update.
8204 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
8205 (STATUS_WX86_SINGLE_STEP): New macro.
8206 (EnumProcessModulesEx): New macro.
8207 (Wow64SuspendThread): New macro.
8208 (Wow64GetThreadContext): New macro.
8209 (Wow64SetThreadContext): New macro.
8210 (Wow64GetThreadSelectorEntry): New macro.
8211 (windows_set_context_register_offsets): Add static.
8212 (windows_set_segment_register_p): Likewise.
8213 (windows_add_thread): Adapt for WOW64 processes.
8214 (windows_fetch_one_register): Likewise.
8215 (windows_nat_target::fetch_registers): Likewise.
8216 (windows_store_one_register): Likewise.
8217 (display_selector): Likewise.
8218 (display_selectors): Likewise.
8219 (handle_exception): Likewise.
8220 (windows_continue): Likewise.
8221 (windows_nat_target::resume): Likewise.
8222 (windows_add_all_dlls): Likewise.
8223 (do_initial_windows_stuff): Likewise.
8224 (windows_nat_target::attach): Likewise.
8225 (windows_get_exec_module_filename): Likewise.
8226 (windows_nat_target::create_inferior): Likewise.
8227 (windows_xfer_siginfo): Likewise.
8228 (_initialize_loadable): Initialize Wow64SuspendThread,
8229 Wow64GetThreadContext, Wow64SetThreadContext,
8230 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
8231 * windows-nat.h (windows_set_context_register_offsets):
8232 Remove declaration.
8233 (windows_set_segment_register_p): Likewise.
8234 (i386_windows_segment_register_p): Add declaration.
8235 (amd64_windows_segment_register_p): Likewise.
8236
440cf44e
LM
82372020-03-04 Luis Machado <luis.machado@linaro.org>
8238
8239 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
8240 in "info registers" for AArch64/ARM.
8241
8242 The change caused "info registers" to not print GPR's.
8243
8244 gdb/ChangeLog:
8245
8246 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
8247
8248 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
8249 when reg->group is empty and reggroup is not.
8250
1009d92f
TT
82512020-03-03 Tom Tromey <tromey@adacore.com>
8252
8253 * dwarf2/frame.c (struct dwarf2_frame_cache)
8254 <checked_tailcall_bottom, entry_cfa_sp_offset,
8255 entry_cfa_sp_offset_p>: Remove members.
8256 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
8257 (dwarf2_frame_prev_register): Don't call
8258 dwarf2_tailcall_sniffer_first.
8259 (dwarf2_append_unwinders): Don't append tailcall unwinder.
8260 * frame-unwind.c (add_unwinder): New fuction.
8261 (frame_unwind_init): Use it. Add tailcall unwinder.
8262
5e5d66b6
AB
82632020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
8264 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8265
8266 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
8267 value should be printed as true.
8268
584cf46d
HD
82692020-03-03 Hannes Domani <ssbssa@yahoo.de>
8270
8271 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
8272 (windows_init_abi): Set and use windows_so_ops.
8273
7b973adc
SDJ
82742020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
8275
8276 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
8277 when verifying if dealing with a convenience variable.
8278
bb7b70ab
LM
82792020-03-03 Luis Machado <luis.machado@linaro.org>
8280
8281 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
8282
9822cb57
SM
82832020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
8284
8285 * infrun.c (gdbarch_supports_displaced_stepping): New.
8286 (use_displaced_stepping): Break up conditions in smaller pieces.
8287 Use gdbarch_supports_displaced_stepping.
8288 (displaced_step_prepare_throw): Use
8289 gdbarch_supports_displaced_stepping.
8290
63e163f2
AB
82912020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8292
8293 * NEWS: Mention new behaviour of the history filename.
8294 * top.c (write_history_p): Add comment.
8295 (show_write_history_p): Add header comment, give a different
8296 message when history writing is on, but the history filename is
8297 empty.
8298 (history_filename): Add comment.
8299 (history_filename_empty): New function.
8300 (show_history_filename): Add header comment, give a different
8301 message when the filename is empty.
8302 (init_history): Compare history_filename against nullptr, and only
8303 read history if the filename is not empty.
8304 (set_history_filename): Add header comment, and only make
8305 non-empty filenames absolute.
8306 (init_main): Make the filename argument to 'set history filename'
8307 optional.
8308
81b86b97
CB
83092020-03-02 Christian Biesinger <cbiesinger@google.com>
8310
8311 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
8312 (arm_supply_vfpregset): ...this, and update to use VFP registers.
8313 (fetch_fp_register): Update.
8314 (fetch_fp_regs): Update.
8315 (store_fp_register): Update.
8316 (store_fp_regs): Update.
8317 (arm_netbsd_nat_target::read_description): New function.
8318 (fetch_elfcore_registers): Update.
8319
24ed6739
AB
83202020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8321
8322 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
8323 general_thread if the stop reply is missing a thread-id.
8324 (remote_target::process_stop_reply): Use the first non-exited
8325 thread if the target didn't pass a thread-id.
8326 * infrun.c (do_target_wait): Move call to
8327 switch_to_inferior_no_thread to ....
8328 (do_target_wait_1): ... here.
8329
a84bb2a0
JT
83302020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
8331
8332 * debuginfod-support.c: Include defs.h first.
8333
658dadf0
TV
83342020-02-28 Tom de Vries <tdevries@suse.de>
8335
8336 * symfile.c (set_initial_language): Use default language for lookup.
8337
4ebe4877
SM
83382020-02-28 Simon Marchi <simon.marchi@efficios.com>
8339
8340 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
8341 reader variable, pass `this` to read_cutu_die_from_dwo.
8342
e5da1139
AM
83432020-02-27 Aaron Merey <amerey@redhat.com>
8344
8345 * source.c (open_source_file): Check for nullptr when computing
8346 srcpath.
8347
317f7127
TT
83482020-02-27 Tom Tromey <tromey@adacore.com>
8349
8350 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
8351 member.
8352 (dwarf2_add_field): Don't update nfields.
8353 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
8354
3104d9ee
AB
83552020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8356
8357 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
8358 abs.
8359
b83470bf
TT
83602020-02-26 Tom Tromey <tom@tromey.com>
8361
8362 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
8363 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
8364 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
8365 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
8366 per_cu_data.
8367
edfe0a0c
TT
83682020-02-26 Tom Tromey <tom@tromey.com>
8369
8370 * dwarf2/index-write.c (psym_index_map): Change type.
8371 (add_address_entry_worker, write_one_signatured_type)
8372 (recursively_count_psymbols, recursively_write_psymbols)
8373 (class debug_names, psyms_seen_size, write_gdbindex)
8374 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
8375
0d79cdc4
AM
83762020-02-26 Aaron Merey <amerey@redhat.com>
8377
8378 * Makefile.in: Handle optional debuginfod support.
8379 * NEWS: Update.
8380 * README: Add --with-debuginfod summary.
8381 * config.in: Regenerate.
8382 * configure: Regenerate.
8383 * configure.ac: Handle optional debuginfod support.
8384 * debuginfod-support.c: debuginfod helper functions.
8385 * debuginfod-support.h: Ditto.
8386 * doc/gdb.texinfo: Add --with-debuginfod to configure options
8387 summary.
8388 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
8389 when a dwz file cannot be found.
8390 * elfread.c (elf_symfile_read): Query debuginfod servers when a
8391 debuginfo file cannot be found.
8392 * source.c (open_source_file): Query debuginfod servers when a
8393 source file cannot be found.
8394 * top.c (print_gdb_configuration): Include
8395 --{with,without}-debuginfod in the output.
8396
b65ce565
JG
83972020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
8398
8399 * thread.c (thr_try_catch_cmd): Print thread name.
8400
d4c9a4f8
SM
84012020-02-26 Simon Marchi <simon.marchi@efficios.com>
8402
8403 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
8404 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8405 dwarf2_fetch_die_type_sect_off): Move to...
8406 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
8407 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8408 dwarf2_fetch_die_type_sect_off): ... here.
8409 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
8410 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8411 dwarf2_fetch_die_type_sect_off): Move doc to header file.
8412
0dce4280
TV
84132020-02-26 Tom de Vries <tdevries@suse.de>
8414
8415 PR gdb/25603
8416 * symfile.c (set_initial_language): Exit-early if
8417 language_mode == language_mode_manual.
8418
450a1bfc
SM
84192020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8420
8421 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
8422 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
8423 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
8424
9e80cfa1
AB
84252020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
8426
8427 * gdbtypes.c (create_array_type_with_stride): Handle negative
8428 array strides.
8429 * valarith.c (value_subscripted_rvalue): Likewise.
8430
09624f1f
LM
84312020-02-25 Luis Machado <luis.machado@linaro.org>
8432
8433 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
8434
8cb5117c
SM
84352020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8436
8437 * loc.h (dwarf2_get_die_type): Move to...
8438 * read.h (dwarf2_get_die_type): ... here.
8439 * read.c (dwarf2_get_die_type): Move doc to header.
8440
c325c44e
JB
84412020-02-25 Joel Brobecker <brobecker@adacore.com>
8442
8443 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
8444 'gnulib/Makefile.in' to the list.
8445
4ac93832
TT
84462020-02-24 Tom Tromey <tom@tromey.com>
8447
8448 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
8449 Remove.
8450 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
8451 XOBNEWVEC.
8452
197400e8
TT
84532020-02-24 Tom Tromey <tom@tromey.com>
8454
8455 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
8456 New method.
8457 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
8458 (dw2_do_instantiate_symtab, dw2_get_file_names)
8459 (build_type_psymtab_dependencies, load_full_type_unit): Update.
8460
76935768
TT
84612020-02-24 Tom Tromey <tom@tromey.com>
8462
8463 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
8464 make_scoped_restore.
8465 (dwarf2_psymtab::read_symtab): Don't clear
8466 reading_partial_symbols.
8467
a88ef40d
TV
84682020-02-24 Tom de Vries <tdevries@suse.de>
8469
8470 PR gdb/25592
8471 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
8472
c9af6521
TV
84732020-02-24 Tom de Vries <tdevries@suse.de>
8474
8475 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
8476 commands layout next/prev/regs.
8477
5707a07a
TT
84782020-02-22 Tom Tromey <tom@tromey.com>
8479
8480 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
8481 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
8482
3b0fb49e
TT
84832020-02-22 Tom Tromey <tom@tromey.com>
8484
8485 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
8486
283be8bf
TT
84872020-02-22 Tom Tromey <tom@tromey.com>
8488
8489 * tui/tui-win.c (_initialize_tui_win): Add usage text.
8490 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
8491 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
8492 * tui/tui.c (_initialize_tui): Add usage text.
8493
ca793b96
TT
84942020-02-22 Tom Tromey <tom@tromey.com>
8495
8496 * tui/tui-win.c (tui_set_focus_command)
8497 (tui_set_win_height_command): Use error_no_arg.
8498 (_initialize_tui_win): Update help text.
8499 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
8500
432b5c40
TT
85012020-02-22 Tom Tromey <tom@tromey.com>
8502
8503 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
8504 * tui/tui-disasm.h (struct tui_disasm_window)
8505 <display_start_addr>: Declare.
8506 * tui/tui-source.h (struct tui_source_window)
8507 <display_start_addr>: Declare.
8508 * tui/tui-winsource.h (struct tui_source_window_base)
8509 <show_source_line, display_start_addr>: New methods.
8510 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
8511 Rename and move to protected section.
8512 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
8513 (tui_source_window_base::do_erase_source_content): Update.
8514 (tui_source_window_base::show_source_line): Now a method.
8515 (tui_source_window_base::show_source_content)
8516 (tui_source_window_base::tui_source_window_base)
8517 (tui_source_window_base::rerender)
8518 (tui_source_window_base::refill)
8519 (tui_source_window_base::do_scroll_horizontal)
8520 (tui_source_window_base::set_is_exec_point_at)
8521 (tui_source_window_base::update_breakpoint_info)
8522 (tui_source_window_base::update_exec_info): Update.
8523 * tui/tui-source.c (tui_source_window::set_contents)
8524 (tui_source_window::showing_source_p)
8525 (tui_source_window::do_scroll_vertical)
8526 (tui_source_window::location_matches_p)
8527 (tui_source_window::line_is_displayed): Update.
8528 (tui_source_window::display_start_addr): New method.
8529 * tui/tui-disasm.c (tui_disasm_window::set_contents)
8530 (tui_disasm_window::do_scroll_vertical)
8531 (tui_disasm_window::location_matches_p): Update.
8532 (tui_disasm_window::display_start_addr): New method.
8533
01b1af32
TT
85342020-02-22 Tom Tromey <tom@tromey.com>
8535
8536 * NEWS: Add entry for gdb.register_window_type.
8537 * tui/tui-layout.h (window_factory): New typedef.
8538 (tui_register_window): Declare.
8539 * tui/tui-layout.c (saved_tui_windows): New global.
8540 (tui_apply_current_layout): Use it.
8541 (tui_register_window): New function.
8542 * python/python.c (do_start_initialization): Call
8543 gdbpy_initialize_tui.
8544 (python_GdbMethods): Add "register_window_type" function.
8545 * python/python-internal.h (gdbpy_register_tui_window)
8546 (gdbpy_initialize_tui): Declare.
8547 * python/py-tui.c: New file.
8548 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
8549
fc96d20b
TT
85502020-02-22 Tom Tromey <tom@tromey.com>
8551
8552 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
8553
935c78c0
TT
85542020-02-22 Tom Tromey <tom@tromey.com>
8555
8556 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
8557 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
8558 * tui/tui-data.c (tui_set_win_with_focus): Remove.
8559 (tui_set_win_focus_to): Move from tui-win.c.
8560
0240c8f1
TT
85612020-02-22 Tom Tromey <tom@tromey.com>
8562
8563 * tui/tui-layout.c (make_standard_window, get_locator_window): New
8564 functions.
8565 (known_window_types): New global.
8566 (tui_get_window_by_name): Reimplement.
8567 (initialize_known_windows): New function.
8568 (validate_window_name): Rewrite.
8569 (_initialize_tui_layout): Call initialize_known_windows.
8570
fdb01f0c
TT
85712020-02-22 Tom Tromey <tom@tromey.com>
8572
8573 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
8574 Remove constants.
8575 * tui/tui-winsource.h (struct tui_source_window_base)
8576 <tui_source_window_base>: Remove parameter.
8577 * tui/tui-winsource.c
8578 (tui_source_window_base::tui_source_window_base): Remove
8579 parameter.
8580 (tui_source_window_base::refill): Update.
8581 * tui/tui-stack.h (struct tui_locator_window)
8582 <tui_locator_window>: Update.
8583 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
8584 Default the constructor.
8585 * tui/tui-regs.h (struct tui_data_item_window)
8586 <tui_data_item_window>: Default the constructor.
8587 (struct tui_data_window) <tui_data_window>: Likewise.
8588 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
8589 Default the constructor.
8590 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
8591 Default the constructor.
8592 <type>: Remove.
8593 (struct tui_win_info) <tui_win_info>: Default the constructor.
8594 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
8595 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
8596 Default the constructor.
8597
865a5aec
TT
85982020-02-22 Tom Tromey <tom@tromey.com>
8599
8600 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
8601 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
8602 * tui/tui-win.c (tui_resize_all): Don't call
8603 tui_delete_invisible_windows.
8604 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
8605 done.
8606 (tui_set_layout): Update.
8607 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
8608 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
8609 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
8610
e098d18c
TT
86112020-02-22 Tom Tromey <tom@tromey.com>
8612
8613 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
8614 correctly.
8615
eb9c8874
TT
86162020-02-22 Tom Tromey <tom@tromey.com>
8617
8618 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
8619
7eed1a8e
TT
86202020-02-22 Tom Tromey <tom@tromey.com>
8621
8622 * tui/tui-winsource.h (struct tui_source_window_iterator)
8623 <inner_iterator>: New etytypedef.
8624 <tui_source_window_iterator>: Take "end" parameter.
8625 <tui_source_window_iterator>: Take iterator.
8626 <operator*, advance>: Update.
8627 <m_iter>: Change type.
8628 <m_end>: New field.
8629 (struct tui_source_windows) <begin, end>: Update.
8630 * tui/tui-layout.c (tui_windows): New global.
8631 (tui_apply_current_layout): Clear tui_windows.
8632 (tui_layout_window::apply): Update tui_windows.
8633 * tui/tui-data.h (tui_windows): Declare.
8634 (all_tui_windows): Now inline function.
8635 (class tui_window_iterator, struct all_tui_windows): Remove.
8636
7c043ba6
TT
86372020-02-22 Tom Tromey <tom@tromey.com>
8638
8639 PR tui/17850:
8640 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
8641 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
8642 "height" argument.
8643 (class tui_layout_window) <get_sizes>: Likewise.
8644 (class tui_layout_split) <tui_layout_split>: Add "vertical"
8645 argument.
8646 <get_sizes>: Add "height" argument.
8647 <m_vertical>: New field.
8648 * tui/tui-layout.c (tui_layout_split::clone): Update.
8649 (tui_layout_split::get_sizes): Add "height" argument.
8650 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
8651 (tui_new_layout_command): Parse "-horizontal".
8652 (_initialize_tui_layout): Update help string.
8653 (tui_layout_split::specification): Add "-horizontal" when needed.
8654 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
8655 argument.
8656 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
8657 New methods.
8658
6bc56648
TT
86592020-02-22 Tom Tromey <tom@tromey.com>
8660
8661 * tui/tui-layout.h (enum tui_adjust_result): New.
8662 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
8663 (class tui_layout_window) <adjust_size>: Return
8664 tui_adjust_result. Rewrite.
8665 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
8666 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
8667
c22fef7e
TT
86682020-02-22 Tom Tromey <tom@tromey.com>
8669
8670 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
8671 parameter and return types.
8672 (class tui_layout_base) <specification>: Add "depth".
8673 (class tui_layout_window) <specification>: Add "depth".
8674 (class tui_layout_split) <specification>: Add "depth".
8675 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
8676 and return types.
8677 (tui_new_layout_command): Parse sub-layouts.
8678 (_initialize_tui_layout): Update help string.
8679 (tui_layout_window::specification): Add "depth".
8680 (add_layout_command): Update.
8681
ee325b61
TT
86822020-02-22 Tom Tromey <tom@tromey.com>
8683
8684 * NEWS: Add "tui new-layout" item.
8685 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
8686 Add new-layout command to help text.
8687 (validate_window_name): New function.
8688 (tui_new_layout_command): New function.
8689 (_initialize_tui_layout): Register "new-layout".
8690 (tui_layout_window::specification): New method.
8691 (tui_layout_window::specification): New method.
8692 * tui/tui-layout.h (class tui_layout_base) <specification>: New
8693 method.
8694 (class tui_layout_window) <specification>: New method.
8695 (class tui_layout_split) <specification>: New method.
8696
416eb92d
TT
86972020-02-22 Tom Tromey <tom@tromey.com>
8698
8699 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
8700 * tui/tui-win.c (window_name_completer): Update comment.
8701 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
8702 Declare method.
8703 (class tui_layout_window) <replace_window>: Likewise.
8704 (class tui_layout_split) <replace_window>: Likewise.
8705 (tui_set_layout): Don't declare.
8706 (tui_set_initial_layout): Declare function.
8707 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
8708 (asm_regs_layout): New globals.
8709 (tui_current_layout, show_layout): Remove.
8710 (tui_set_layout, tui_add_win_to_layout): Rewrite.
8711 (find_layout, tui_apply_layout): New function.
8712 (layout_completer): Remove.
8713 (tui_next_layout): Reimplement.
8714 (tui_next_layout_command): New function.
8715 (tui_set_initial_layout, tui_prev_layout_command): New functions.
8716 (tui_regs_layout): Reimplement.
8717 (tui_regs_layout_command): New function.
8718 (extract_display_start_addr): Rewrite.
8719 (next_layout, prev_layout): Remove.
8720 (tui_layout_window::replace_window): New method.
8721 (tui_layout_split::replace_window): New method.
8722 (destroy_layout): New function.
8723 (layout_list): New global.
8724 (add_layout_command): New function.
8725 (initialize_layouts): Update.
8726 (tui_layout_command): New function.
8727 (_initialize_tui_layout): Install "layout" commands.
8728 * tui/tui-data.h (enum tui_layout_type): Remove.
8729 (tui_current_layout): Don't declare.
8730
0dbc2fc7
TT
87312020-02-22 Tom Tromey <tom@tromey.com>
8732
8733 * tui/tui-regs.c (tui_reg_layout): Remove.
8734 (tui_reg_command): Use tui_regs_layout.
8735 * tui/tui-layout.h (tui_reg_command): Declare.
8736 * tui/tui-layout.c (tui_reg_command): New function.
8737
5afe342e
TT
87382020-02-22 Tom Tromey <tom@tromey.com>
8739
8740 * tui/tui.c (tui_rl_delete_other_windows): Call
8741 tui_remove_some_windows.
8742 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
8743 Declare method.
8744 (class tui_layout_window) <remove_windows>: New method.
8745 (class tui_layout_split) <remove_windows>: Declare.
8746 (tui_remove_some_windows): Declare.
8747 * tui/tui-layout.c (tui_remove_some_windows): New function.
8748 (tui_layout_split::remove_windows): New method.
8749
427326a8
TT
87502020-02-22 Tom Tromey <tom@tromey.com>
8751
8752 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
8753 * tui/tui-layout.h (tui_next_layout): Declare.
8754 * tui/tui-layout.c (tui_next_layout): New function.
8755
3fe12b6d
TT
87562020-02-22 Tom Tromey <tom@tromey.com>
8757
8758 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
8759 correct coordinates.
8760
59b8b5d2
TT
87612020-02-22 Tom Tromey <tom@tromey.com>
8762
8763 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
8764 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
8765 DATA_WIN case.
8766
2a3d458b
TT
87672020-02-22 Tom Tromey <tom@tromey.com>
8768
8769 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
8770 TUI_DISASM_WIN, not tui_win_list.
8771
3f0cbb04
TT
87722020-02-22 Tom Tromey <tom@tromey.com>
8773
8774 * valprint.c (generic_val_print_enum_1)
8775 (val_print_type_code_flags): Style member names.
8776 * rust-lang.c (val_print_struct, rust_print_enum)
8777 (rust_print_struct_def, rust_internal_print_type): Style member
8778 names.
8779 * p-valprint.c (pascal_object_print_value_fields): Style member
8780 names. Only call fprintf_symbol_filtered for static members.
8781 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
8782 * f-valprint.c (f_val_print): Style member names.
8783 * f-typeprint.c (f_type_print_base): Style member names.
8784 * cp-valprint.c (cp_print_value_fields): Style member names. Only
8785 call fprintf_symbol_filtered for static members.
8786 (cp_print_class_member): Style member names.
8787 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
8788 member names.
8789 * ada-valprint.c (ada_print_scalar): Style enum names.
8790 (ada_val_print_enum): Likewise.
8791 * ada-typeprint.c (print_enum_type): Style enum names.
8792
d4d947ae
TT
87932020-02-21 Tom Tromey <tom@tromey.com>
8794
8795 * psympriv.h (struct partial_symtab): Update comment.
8796
e94e944b
TT
87972020-02-21 Tom Tromey <tromey@adacore.com>
8798
8799 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
8800 type is CORE_ADDR.
8801
1eb73179
TV
88022020-02-21 Tom de Vries <tdevries@suse.de>
8803
8804 PR gdb/25534
8805 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
8806 if dependencies[i]->user != NULL.
8807
4f180d53
AT
88082020-02-21 Ali Tamur <tamur@google.com>
8809
8810 * dwarf2/read.c (dwarf2_name): Add null check.
8811
22b6cd70
TT
88122020-02-20 Tom Tromey <tom@tromey.com>
8813
8814 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
8815 ">=", in binary search.
8816 (dwarf2_find_containing_comp_unit): New overload.
8817 (run_test): New self-test.
8818 (_initialize_dwarf2_read): Register new test.
8819
bd0cf5a6
NC
88202020-02-20 Nelson Chu <nelson.chu@sifive.com>
8821
8822 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
8823 * riscv-tdep.h: Likewise.
8824 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
8825 rv32-only CSR.
8826 * features/riscv/64bit-csr.xml: Regenerated.
8827
3f702acd
SDJ
88282020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
8829 Tom Tromey <tom@tromey.com>
8830
8831 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
8832 of 'fputc_unfiltered'.
8833 (putchar_unfiltered): Call 'fputc_unfiltered'.
8834 (fputc_unfiltered): Call 'fputs_unfiltered'.
8835
d13c7322
AB
88362020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
8837
8838 * config.in: Regenerate.
8839 * configure: Regenerate.
8840 * configure.ac: Add --with-python-libdir option.
8841 * main.c: Use WITH_PYTHON_LIBDIR.
8842
869d8950
TT
88432020-02-19 Tom Tromey <tom@tromey.com>
8844
8845 * symtab.c (general_symbol_info::compute_and_set_names): Use
8846 obstack_strndup. Simplify call to symbol_set_demangled_name.
8847
298e9637
SM
88482020-02-19 Simon Marchi <simon.marchi@efficios.com>
8849
8850 * dwarf2/read.c (allocate_signatured_type_table,
8851 allocate_dwo_unit_table, allocate_type_unit_groups_table,
8852 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
8853 Remove objfile parameter, update all callers.
8854
08410482
DE
88552020-02-19 Doug Evans <dje@google.com>
8856
8857 PR rust/25535
8858 * rust-lang.c (rust_print_enum): Apply embedded_offset to
8859 rust_enum_variant calculation.
8860
dfdeeca1
TT
88612020-02-19 Tom Tromey <tromey@adacore.com>
8862
8863 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
8864
2ef5453b
TT
88652020-02-19 Tom Tromey <tromey@adacore.com>
8866
8867 * ada-lang.c (cache_symbol): Use obstack_strdup.
8868
9f1528a1
AB
88692020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
8870
8871 * configure: Regenerate.
8872
d3c22fa8
TT
88732020-02-19 Tom Tromey <tromey@adacore.com>
8874
8875 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
8876 NULL check.
8877
bf84f706
MR
88782020-02-19 Maciej W. Rozycki <macro@wdc.com>
8879
8880 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
8881
d1c9b20f
AB
88822020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
8883
8884 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
8885 if GDBSERVER is not defined.
8886 (riscv_tdesc_cache): Likewise, also store const target_desc.
8887 (STATIC_IN_GDB): Define.
8888 (riscv_create_target_description): Update declaration with
8889 STATIC_IN_GDB.
8890 (riscv_lookup_target_description): New function, only define if
8891 GDBSERVER is not defined.
8892 * arch/riscv.h (riscv_create_target_description): Declare only
8893 when GDBSERVER is defined.
8894 (riscv_lookup_target_description): New declaration when GDBSERVER
8895 is not defined.
8896 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
8897 (riscv_linux_read_features): ...this, and return
8898 riscv_gdbarch_features instead of target_desc.
8899 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
8900 (riscv_linux_read_description): Rename to...
8901 (riscv_linux_read_features): ...this.
8902 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
8903 Update to use riscv_gdbarch_features and
8904 riscv_lookup_target_description.
8905 * riscv-tdep.c (riscv_find_default_target_description): Use
8906 riscv_lookup_target_description instead of
8907 riscv_create_target_description.
8908
373d7ac0
SM
89092020-02-18 Simon Marchi <simon.marchi@efficios.com>
8910
8911 * valprint.c (generic_val_print_enum_1): When printing a flag
8912 enum with value 0 and there is no enumerator with value 0, print
8913 just "0" instead of "(unknown: 0x0)".
8914
b29a2df0
SM
89152020-02-18 Simon Marchi <simon.marchi@efficios.com>
8916
8917 * valprint.c (generic_val_print_enum_1): Print unknown part of
8918 flag enum in hex.
8919
6740f0cc
SM
89202020-02-18 Simon Marchi <simon.marchi@efficios.com>
8921
8922 * dwarf2/read.c (update_enumeration_type_from_children): Allow
8923 flag enums to contain duplicate enumerators.
8924 * valprint.c (generic_val_print_enum_1): Update comment.
8925
edd45eb0
SM
89262020-02-18 Simon Marchi <simon.marchi@efficios.com>
8927
8928 * dwarf2/read.c: Include "count-one-bits.h".
8929 (update_enumeration_type_from_children): If an enumerator has
8930 multiple bits set, don't treat the enumeration as a "flag enum".
8931 * valprint.c (generic_val_print_enum_1): Assert that enumerators
8932 of flag enums have 0 or 1 bit set.
8933
6d0cf446
BE
89342020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
8935
8936 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
8937 conversion.
8938 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8939 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
8940 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8941 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
8942 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8943
7001c1b7
SM
89442020-02-18 Simon Marchi <simon.marchi@efficios.com>
8945
8946 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
8947
fdb61c6c
SM
89482020-02-14 Simon Marchi <simon.marchi@efficios.com>
8949
8950 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
8951 displaced_step_closure_up.
8952 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
8953 (struct displaced_step_closure_up):
8954 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8955 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
8956 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
8957 Likewise.
8958 * gdbarch.sh (displaced_step_copy_insn): Likewise.
8959 * gdbarch.c, gdbarch.h: Re-generate.
8960 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
8961 displaced_step_closure_up.
8962 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8963 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
8964 * infrun.h (displaced_step_closure_up): New type alias.
8965 (struct displaced_step_inferior_state) <step_closure>: Change
8966 type to displaced_step_closure_up.
8967 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
8968 displaced_step_closure_up.
8969 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8970
a4a38eb4
TT
89712020-02-14 Tom Tromey <tom@tromey.com>
8972
8973 * minidebug.c (gnu_debug_key): New global.
8974 (find_separate_debug_file_in_section): Use it.
8975
e8217e61
SM
89762020-02-14 Simon Marchi <simon.marchi@efficios.com>
8977
8978 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
8979 std::unique_ptr.
8980 * gdbarch.c: Re-generate.
8981 * gdbarch.h: Re-generate.
8982 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
8983 change.
8984 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
8985 type to std::unique_ptr.
8986 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
8987 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8988 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
8989 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
8990 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
8991 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8992 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
8993 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
8994 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8995
d8d83535
SM
89962020-02-14 Simon Marchi <simon.marchi@efficios.com>
8997
8998 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
8999 std::unique_ptr.
9000 (displaced_step_clear): Rename to...
9001 (displaced_step_reset): ... this. Just call displaced->reset ().
9002 (displaced_step_clear_cleanup): Rename to...
9003 (displaced_step_reset_cleanup): ... this.
9004 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
9005 (displaced_step_fixup): Likewise.
9006 (resume_1): Likewise.
9007 (handle_inferior_event): Restore child's memory before calling
9008 displaced_step_fixup on the parent.
9009 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
9010 to std::unique_ptr.
9011 <step_closure>: Change type to std::unique_ptr.
9012
5f661e03
SM
90132020-02-14 Simon Marchi <simon.marchi@efficios.com>
9014
9015 * arm-tdep.c: Include count-one-bits.h.
9016 (cleanup_block_store_pc): Use count_one_bits.
9017 (cleanup_block_load_pc): Use count_one_bits.
9018 (arm_copy_block_xfer): Use count_one_bits.
9019 (thumb2_copy_block_xfer): Use count_one_bits.
9020 (thumb_copy_pop_pc_16bit): Use count_one_bits.
9021 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
9022 (thumb_get_next_pcs_raw): Use count_one_bits.
9023 (arm_get_next_pcs_raw): Use count_one_bits_l.
9024 * arch/arm.c (bitcount): Remove.
9025 * arch/arm.h (bitcount): Remove.
9026
8084e579
TT
90272020-02-14 Tom Tromey <tromey@adacore.com>
9028
9029 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
9030 Update.
9031 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
9032 * dwarf2/loc.c (call_site_find_chain_1): Return
9033 unique_xmalloc_ptr.
9034 (call_site_find_chain): Likewise.
9035
258bf0ee
RB
90362020-02-14 Richard Biener <rguenther@suse.de>
9037
9038 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
9039 on expression with division operators.
9040
f98a8458
AKS
90412020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9042
9043 * MAINTAINERS (Write After Approval): Adding myself.
9044
d1437c0e
TT
90452020-02-12 Tom Tromey <tom@tromey.com>
9046
9047 * event-loop.c (event_data, gdb_event, event_handler_func):
9048 Remove.
9049
3d4560f7
TT
90502020-02-12 Tom Tromey <tom@tromey.com>
9051
9052 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
9053 (dwarf2_frame_objfile_data): Add comment.
9054 (find_comp_unit, set_comp_unit): New functions.
9055 (dwarf2_frame_find_fde): Use find_comp_unit.
9056 (dwarf2_build_frame_info): Use set_comp_unit.
9057
21982304
TT
90582020-02-12 Tom Tromey <tom@tromey.com>
9059
9060 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
9061 (comp_unit): Don't initialize objfile.
9062 (execute_cfa_program): Add text_offset parameter.
9063 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
9064 (dwarf2_frame_cache): Update.
9065 (dwarf2_build_frame_info): Don't set "objfile" member.
9066
4debb237
TT
90672020-02-12 Tom Tromey <tom@tromey.com>
9068
9069 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
9070 (decode_frame_entry): Likewise.
9071 (dwarf2_build_frame_info): Update.
9072
0d404d44
TT
90732020-02-12 Tom Tromey <tom@tromey.com>
9074
9075 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
9076 (decode_frame_entry_1): Use the comp_unit obstack.
9077
a7a3ae5c
TT
90782020-02-12 Tom Tromey <tom@tromey.com>
9079
9080 * dwarf2/frame.c (struct comp_unit): Add initializers and
9081 constructor.
9082 (dwarf2_frame_objfile_data): Store a comp_unit.
9083 (dwarf2_frame_find_fde): Update.
9084 (dwarf2_build_frame_info): Use "new".
9085
a9d65418
TT
90862020-02-12 Tom Tromey <tom@tromey.com>
9087
9088 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
9089 (dwarf2_fde_table): Typedef for std::vector.
9090 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
9091 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
9092 (decode_frame_entry): Update.
9093 (dwarf2_build_frame_info): Use "new".
9094
7559c217
CB
90952020-02-12 Christian Biesinger <cbiesinger@google.com>
9096
9097 * arm-tdep.c (arm_gdbarch_init): Update.
9098 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
9099 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
9100 have_neon, is_m>: Change to bool.
9101
aeefc73c
CB
91022020-02-12 Christian Biesinger <cbiesinger@google.com>
9103
9104 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
9105
d27b8e5f
TT
91062020-02-12 Tom Tromey <tom@tromey.com>
9107
9108 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
9109
cd5900f3
HD
91102020-02-12 Hannes Domani <ssbssa@yahoo.de>
9111
9112 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
9113 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
9114
f056b22b
TT
91152020-02-11 Tom Tromey <tom@tromey.com>
9116
9117 * psymtab.h: Update comment.
9118
f92ff6b5
TT
91192020-02-11 Tom Tromey <tom@tromey.com>
9120
9121 * gdb_obstack.h (struct auto_obstack): Use
9122 DISABLE_COPY_AND_ASSIGN.
9123
3fd6912b
TT
91242020-02-11 Tom Tromey <tom@tromey.com>
9125
9126 * dwarf2/frame.h (struct objfile): Don't forward declare.
9127
69ed9b74
CB
91282020-02-11 Christian Biesinger <cbiesinger@google.com>
9129
9130 * cris-tdep.c (cris_supply_gregset): Change signature to match
9131 what struct regset expects.
9132 (cris_regset): New struct.
9133 (fetch_core_registers): Remove.
9134 (cris_iterate_over_regset_sections): New function.
9135 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
9136 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
9137
bda874f6
CB
91382020-02-11 Christian Biesinger <cbiesinger@google.com>
9139
9140 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
9141 registers.
9142
754e1564
CB
91432020-02-11 Christian Biesinger <cbiesinger@google.com>
9144
9145 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
9146
8ddd8e0e
SM
91472020-02-11 Simon Marchi <simon.marchi@efficios.com>
9148
9149 * configure: Re-generate.
9150
898e7f60
SM
91512020-02-11 Simon Marchi <simon.marchi@efficios.com>
9152
9153 * configure: Re-generate.
9154
58df732b
SM
91552020-02-11 Simon Marchi <simon.marchi@efficios.com>
9156
9157 * acinclude: Update warning.m4 path.
9158 * warning.m4: Move to gdbsupport.
9159
da5bd37e
TT
91602020-02-11 Tom Tromey <tromey@adacore.com>
9161
9162 * remote.c (remote_console_output): Update.
9163 * printcmd.c (printf_command): Update.
9164 * event-loop.c (gdb_wait_for_event): Update.
9165 * linux-nat.c (sigchld_handler): Update.
9166 * remote-sim.c (gdb_os_write_stdout): Update.
9167 (gdb_os_flush_stdout): Update.
9168 (gdb_os_flush_stderr): Update.
9169 (gdb_os_write_stderr): Update.
9170 * exceptions.c (print_exception): Update.
9171 * remote-fileio.c (remote_fileio_func_read): Update.
9172 (remote_fileio_func_write): Update.
9173 * tui/tui.c (tui_enable): Update.
9174 * tui/tui-interp.c (tui_interp::init): Update.
9175 * utils.c (init_page_info): Update.
9176 (putchar_unfiltered, fputc_unfiltered): Update.
9177 (gdb_flush): Update.
9178 (emit_style_escape): Update.
9179 (flush_wrap_buffer, fputs_maybe_filtered): Update.
9180 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
9181 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
9182 (stderr_file::write): Update.
9183 (stderr_file::puts): Update.
9184 * ui-file.h (ui_file_isatty, ui_file_write)
9185 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
9186 (ui_file_puts): Don't declare.
9187
85f0dd3c
TV
91882020-02-10 Tom de Vries <tdevries@suse.de>
9189
9190 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
9191 sentinel to char *.
9192
2e927613
TV
91932020-02-09 Tom de Vries <tdevries@suse.de>
9194
9195 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
9196 filename if it matches "<artificial>".
9197
6bafc845
HD
91982020-02-09 Hannes Domani <ssbssa@yahoo.de>
9199
9200 * windows-tdep.c (struct enum_value_name): New struct.
9201 (create_enum): New function.
9202 (windows_get_siginfo_type): Create and use enum types.
9203
7928d571
HD
92042020-02-09 Hannes Domani <ssbssa@yahoo.de>
9205
9206 * NEWS: Mention $_siginfo support for Windows.
9207 * windows-nat.c (handle_exception): Set siginfo_er.
9208 (windows_nat_target::mourn_inferior): Reset siginfo_er.
9209 (windows_xfer_siginfo): New function.
9210 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
9211 * windows-tdep.c (struct windows_gdbarch_data): New struct.
9212 (init_windows_gdbarch_data): New function.
9213 (get_windows_gdbarch_data): New function.
9214 (windows_get_siginfo_type): New function.
9215 (windows_init_abi): Register windows_get_siginfo_type.
9216 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
9217
6751ebae
TT
92182020-02-08 Tom Tromey <tom@tromey.com>
9219
9220 * dwarf2/read.c (class cutu_reader) <cutu_reader,
9221 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
9222 <keep>: Declare method.
9223 <m_keep>: Remove member.
9224 <~cutu_reader>: Remove.
9225 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9226 (cutu_reader::cutu_reader): Update.
9227 (cutu_reader::keep): Rename from ~cutu_reader.
9228 (process_psymtab_comp_unit, build_type_psymtabs_1)
9229 (process_skeletonless_type_unit, load_partial_comp_unit)
9230 (load_full_comp_unit, dwarf2_read_addr_index)
9231 (read_signatured_type): Update.
9232
135f5437
TT
92332020-02-08 Tom Tromey <tom@tromey.com>
9234
9235 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
9236 "want_partial_unit" parameter.
9237 (process_psymtab_comp_unit): Change want_partial_unit to bool.
9238 Inline check for DW_TAG_partial_unit.
9239 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
9240
9f66ff1c
TT
92412020-02-08 Tom Tromey <tom@tromey.com>
9242
9243 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
9244 read.c.
9245 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
9246 read.c.
9247
c8a7a66f
TT
92482020-02-08 Tom Tromey <tom@tromey.com>
9249
9250 * dwarf2/read.c (read_address): Move to comp-unit.c.
9251 (dwarf2_rnglists_process, dwarf2_ranges_process)
9252 (read_attribute_value, dwarf_decode_lines_1)
9253 (var_decode_location, decode_locdesc): Update.
9254 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
9255 read.c. Remove "cu" parameter.
9256 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
9257 method.
9258
8266302d
TT
92592020-02-08 Tom Tromey <tom@tromey.com>
9260
9261 * dwarf2/read.c (read_attribute_value, read_indirect_string)
9262 (read_indirect_line_string): Update.
9263 * dwarf2/comp-unit.c (read_offset): Remove.
9264 (read_comp_unit_head): Update.
9265 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
9266 method.
9267 (read_offset): Don't declare.
9268
4057dfde
TT
92692020-02-08 Tom Tromey <tom@tromey.com>
9270
9271 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
9272 * dwarf2/read.c (struct comp_unit_head): Move to
9273 dwarf2/comp-unit.h.
9274 (enum class rcuh_kind): Move to comp-unit.h.
9275 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
9276 (read_comp_unit_head, error_check_comp_unit_head)
9277 (read_and_check_comp_unit_head): Move to comp-unit.c.
9278 (read_offset, dwarf_unit_type_name): Likewise.
9279 (create_debug_type_hash_table, read_cutu_die_from_dwo)
9280 (cutu_reader::cutu_reader, read_call_site_scope)
9281 (find_partial_die, follow_die_offset): Update.
9282 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
9283
24aa364d
TT
92842020-02-08 Tom Tromey <tom@tromey.com>
9285
9286 * dwarf2/read.c (read_offset_1): Move to leb.c.
9287 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
9288 (dwarf_decode_macro_bytes): Update.
9289 * dwarf2/leb.c (read_offset): Rename; move from read.c.
9290 * dwarf2/leb.h (read_offset): Declare.
9291
2c7d5afc
TT
92922020-02-08 Tom Tromey <tom@tromey.com>
9293
9294 * dwarf2/read.c (dwarf2_section_size): Remove.
9295 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
9296 Update.
9297 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
9298
4075cb26
TT
92992020-02-08 Tom Tromey <tom@tromey.com>
9300
9301 * dwarf2/read.c (read_initial_length): Move to leb.c.
9302 * dwarf2/leb.h (read_initial_length): Declare.
9303 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
9304 handle_nonstd parameter.
9305 * dwarf2/frame.c (read_initial_length): Remove.
9306 (decode_frame_entry_1): Update.
9307
09ba997f
TT
93082020-02-08 Tom Tromey <tom@tromey.com>
9309
9310 * dwarf2/loc.c (dwarf2_find_location_expression)
9311 (dwarf_evaluate_loc_desc::get_tls_address)
9312 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
9313 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
9314 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
9315 (dwarf2_compile_property_to_c)
9316 (dwarf2_loc_desc_get_symbol_read_needs)
9317 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
9318 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
9319 (loclist_describe_location, loclist_tracepoint_var_ref)
9320 (loclist_generate_c_location): Update.
9321 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
9322 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
9323 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
9324 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
9325 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
9326 (dwarf2_per_cu_data::addr_size)
9327 (dwarf2_per_cu_data::ref_addr_size)
9328 (dwarf2_per_cu_data::text_offset)
9329 (dwarf2_per_cu_data::addr_type): Now methods.
9330 (per_cu_header_read_in): Make per_cu "const".
9331 (dwarf2_version): Remove.
9332 (dwarf2_per_cu_data::int_type): Now a method.
9333 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
9334 (set_die_type, read_array_type, read_subrange_index_type)
9335 (read_tag_string_type, read_subrange_type): Update.
9336 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
9337 offset_size, ref_addr_size, text_offset, addr_type, version,
9338 objfile, int_type, addr_sized_int_type>: Declare methods.
9339
96c738c0
TT
93402020-02-08 Tom Tromey <tom@tromey.com>
9341
9342 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
9343 Move earlier.
9344
8fdd972c
TT
93452020-02-08 Tom Tromey <tom@tromey.com>
9346
9347 * dwarf2/read.h (dwarf_line_debug): Declare.
9348 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
9349 * dwarf2/read.c: Move line_header code to new files.
9350 (dwarf_line_debug): No longer static.
9351 * dwarf2/line-header.c: New file.
9352 * dwarf2/line-header.h: New file.
9353
03075812
TT
93542020-02-08 Tom Tromey <tom@tromey.com>
9355
9356 * dwarf2/read.c (struct line_header) <file_full_name,
9357 file_file_name>: Return unique_xmalloc_ptr.
9358 (line_header::file_file_name): Update.
9359 (line_header::file_full_name): Update.
9360 (dw2_get_file_names_reader): Update.
9361 (macro_start_file): Update.
9362
bb822404
TT
93632020-02-08 Tom Tromey <tom@tromey.com>
9364
9365 * dwarf2/read.c (struct line_header) <file_full_name,
9366 file_file_name>: Declare methods.
9367 (dw2_get_file_names_reader): Update.
9368 (file_file_name): Now a method.
9369 (file_full_name): Likewise.
9370 (macro_start_file): Update.
9371
009b64fc
TT
93722020-02-08 Tom Tromey <tom@tromey.com>
9373
9374 * dwarf2/read.c (dwarf_always_disassemble)
9375 (show_dwarf_always_disassemble): Move to loc.c.
9376 (_initialize_dwarf2_read): Move "always-disassemble" registration
9377 to loc.c.
9378 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
9379 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
9380 static.
9381 (show_dwarf_always_disassemble): Move from read.c.
9382 (_initialize_dwarf2loc): Move always-disassemble from read.c.
9383
5895093f
TT
93842020-02-08 Tom Tromey <tom@tromey.com>
9385
9386 * dwarf2/read.c (~dwarf2_per_objfile): Update.
9387 (create_quick_file_names_table): Return htab_up.
9388 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
9389 Update.
9390 * dwarf2/read.h (struct dwarf2_per_objfile)
9391 <quick_file_names_table>: Now htab_up.
9392
b3b32279
TT
93932020-02-08 Tom Tromey <tom@tromey.com>
9394
9395 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
9396
1d33d811
TT
93972020-02-08 Tom Tromey <tom@tromey.com>
9398
9399 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
9400 Rewrite.
9401 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
9402 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
9403 (abbrev_table::abbrev_table): No longer inline.
9404 (ABBREV_HASH_SIZE): Remove.
9405 (abbrev_table::m_abbrevs): Now an htab_up.
9406
86de1d91
TT
94072020-02-08 Tom Tromey <tom@tromey.com>
9408
9409 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
9410 (cutu_reader): Update.
9411 (build_type_psymtabs_1): Update.
9412 * dwarf2/abbrev.c (abbrev_table::read): Rename.
9413 (abbrev_table::alloc_abbrev): Update.
9414 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
9415 (abbrev_table::read): New static method, renamed from
9416 abbrev_table_read_table.
9417 (abbrev_table::alloc_abbrev)
9418 (abbrev_table::add_abbrev): Now private.
9419 (abbrev_table::abbrev_table): Now private.
9420 (abbrev_table::m_abbrev_obstack): Now private. Rename.
9421
0335378b
TT
94222020-02-08 Tom Tromey <tom@tromey.com>
9423
9424 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
9425 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
9426 htab_up.
9427
48b490f2
TT
94282020-02-08 Tom Tromey <tom@tromey.com>
9429
9430 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
9431 htab_up.
9432 (lookup_dwo_unit_in_dwp): Update.
9433 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
9434 on obstack.
9435
bc68fb19
TT
94362020-02-08 Tom Tromey <tom@tromey.com>
9437
9438 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
9439 obstack.
9440
d15acc42
TT
94412020-02-08 Tom Tromey <tom@tromey.com>
9442
9443 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
9444 line_header_hash.
9445 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
9446 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
9447 Change type to htab_up.
9448
eaa5fa8b
TT
94492020-02-08 Tom Tromey <tom@tromey.com>
9450
9451 * dwarf2/read.c (allocate_type_unit_groups_table): Return
9452 htab_up. Don't allocate on obstack.
9453 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
9454 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
9455 Change type to htab_up.
9456
b0b6a987
TT
94572020-02-08 Tom Tromey <tom@tromey.com>
9458
9459 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
9460 Change type to htab_up.
9461 * dwarf2/read.c (create_signatured_type_table_from_index)
9462 (create_signatured_type_table_from_debug_names)
9463 (create_all_type_units, add_type_unit)
9464 (lookup_dwo_signatured_type, lookup_signatured_type)
9465 (process_skeletonless_type_unit): Update.
9466 (create_debug_type_hash_table, create_debug_types_hash_table):
9467 Change type of types_htab.
9468 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
9469 htab_up. Don't allocate on obstack.
9470 (create_cus_hash_table): Change type of cus_htab parameter.
9471 (struct dwo_file) <cus, tus>: Now htab_up.
9472 (lookup_dwo_signatured_type, lookup_dwo_cutu)
9473 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
9474 (queue_and_load_all_dwo_tus): Update.
9475 * dwarf2/index-write.c (write_gdbindex): Update.
9476 (write_debug_names): Update.
9477
39856def
TT
94782020-02-08 Tom Tromey <tom@tromey.com>
9479
9480 * dwarf2/read.h (struct dwarf2_queue_item): Move from
9481 dwarf2/read.c. Remove "next" member. Add constructor ntad
9482 destructor.
9483 (struct dwarf2_per_objfile) <queue>: New member.
9484 * dwarf2/read.c (struct dwarf2_queue_item): Move to
9485 dwarf2/read.h.
9486 (dwarf2_queue, dwarf2_queue_tail): Remove.
9487 (class dwarf2_queue_guard): Add parameter to constructor. Use
9488 DISABLE_COPY_AND_ASSIGN.
9489 <m_per_objfile>: New member.
9490 <~dwarf2_queue_guard>: Rewrite.
9491 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
9492 Update.
9493 (~dwarf2_queue_item): New.
9494
3e225074
TT
94952020-02-08 Tom Tromey <tom@tromey.com>
9496
9497 * dwarf2/read.c (struct die_info) <has_children>: New member.
9498 (dw2_get_file_names_reader): Remove has_children.
9499 (dw2_get_file_names): Update.
9500 (read_cutu_die_from_dwo): Remove has_children.
9501 (cutu_reader::init_tu_and_read_dwo_dies)
9502 (cutu_reader::cutu_reader): Update.
9503 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
9504 Remove has_children.
9505 (build_type_psymtabs_1, process_skeletonless_type_unit)
9506 (load_partial_comp_unit, load_full_comp_unit): Update.
9507 (create_dwo_cu_reader): Remove has_children.
9508 (create_cus_hash_table, read_die_and_children): Update.
9509 (read_full_die_1,read_full_die): Remove has_children.
9510 (read_signatured_type): Update.
9511 (class cutu_reader) <has_children>: Remove.
9512
82ca8957
TT
95132020-02-08 Tom Tromey <tom@tromey.com>
9514
9515 * dwarf2/expr.c: Rename from dwarf2expr.c.
9516 * dwarf2/expr.h: Rename from dwarf2expr.h.
9517 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
9518 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
9519 * dwarf2/frame.c: Rename from dwarf2-frame.c.
9520 * dwarf2/frame.h: Rename from dwarf2-frame.h.
9521 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
9522 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
9523 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
9524 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
9525 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
9526 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
9527 * dwarf2/loc.c: Rename from dwarf2loc.c.
9528 * dwarf2/loc.h: Rename from dwarf2loc.h.
9529 * dwarf2/read.c: Rename from dwarf2read.c.
9530 * dwarf2/read.h: Rename from dwarf2read.h.
9531 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
9532 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
9533 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
9534 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
9535 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
9536 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
9537 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
9538 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
9539 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
9540 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
9541 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
9542 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
9543 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
9544 Update.
9545 * Makefile.in (COMMON_SFILES): Update.
9546 (HFILES_NO_SRCDIR): Update.
9547
9e35d499
TT
95482020-02-08 Tom Tromey <tom@tromey.com>
9549
9550 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
9551 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
9552
1eba2311
TT
95532020-02-08 Tom Tromey <tom@tromey.com>
9554
9555 * dwarf2read.h (struct die_info): Don't declare.
9556
e41c2da2
TT
95572020-02-08 Tom Tromey <tom@tromey.com>
9558
9559 * dwarf2read.h (die_info_ptr): Remove typedef.
9560
4fc6c0d5
TT
95612020-02-08 Tom Tromey <tom@tromey.com>
9562
9563 * dwarf2read.c (read_call_site_scope)
9564 (handle_data_member_location, dwarf2_add_member_fn)
9565 (mark_common_block_symbol_computed, read_common_block)
9566 (attr_to_dynamic_prop, partial_die_info::read)
9567 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
9568 (dwarf2_symbol_mark_computed, set_die_type): Update.
9569 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
9570 method.
9571 (attr_form_is_block): Don't declare.
9572 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
9573
cd6c91b4
TT
95742020-02-08 Tom Tromey <tom@tromey.com>
9575
9576 * dwarf2read.c (dwarf2_find_base_address, )
9577 (read_call_site_scope, rust_containing_type)
9578 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
9579 (handle_data_member_location, dwarf2_add_member_fn)
9580 (get_alignment, read_structure_type, process_structure_scope)
9581 (mark_common_block_symbol_computed, read_common_block)
9582 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
9583 (partial_die_info::read, read_attribute_value, new_symbol)
9584 (lookup_die_type, dwarf2_get_ref_die_offset)
9585 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
9586 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
9587 (dwarf2_symbol_mark_computed): Update.
9588 * dwarf2/attribute.h (struct attribute) <value_as_address,
9589 form_is_section_offset, form_is_constant, form_is_ref>: Declare
9590 methods.
9591 (value_as_address, attr_form_is_section_offset)
9592 (attr_form_is_constant, attr_form_is_ref): Don't declare.
9593 * dwarf2/attribute.c (attribute::value_as_address)
9594 (attribute::form_is_section_offset, attribute::form_is_constant)
9595 (attribute::form_is_ref): Now methods.
9596
162dce55
TT
95972020-02-08 Tom Tromey <tom@tromey.com>
9598
9599 * dwarf2read.c (struct attribute, DW_STRING)
9600 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
9601 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
9602 (attr_form_is_block, attr_form_is_section_offset)
9603 (attr_form_is_constant, attr_form_is_ref): Move.
9604 * dwarf2/attribute.h: New file.
9605 * dwarf2/attribute.c: New file, from dwarf2read.c.
9606 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
9607
3054dd54
TT
96082020-02-08 Tom Tromey <tom@tromey.com>
9609
9610 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
9611 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
9612 Move.
9613 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
9614 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
9615 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
9616 abbrev.c.
9617 * dwarf2/abbrev.h: New file.
9618 * dwarf2/abbrev.c: New file, from dwarf2read.c.
9619 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
9620
96b79293
TT
96212020-02-08 Tom Tromey <tom@tromey.com>
9622
9623 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
9624 (dwarf2_section_size, dwarf2_get_section_info)
9625 (create_signatured_type_table_from_debug_names)
9626 (create_addrmap_from_aranges, read_debug_names_from_section)
9627 (get_gdb_index_contents_from_section, read_comp_unit_head)
9628 (error_check_comp_unit_head, read_abbrev_offset)
9629 (create_debug_type_hash_table, init_cu_die_reader)
9630 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
9631 (read_comp_units_from_section, create_cus_hash_table)
9632 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
9633 (create_dwp_v2_section, dwarf2_rnglists_process)
9634 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
9635 (abbrev_table_read_table, read_indirect_string_at_offset_from)
9636 (read_indirect_string_from_dwz, read_addr_index_1)
9637 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
9638 (dwarf_decode_macro_bytes, dwarf_decode_macros)
9639 (fill_in_loclist_baton): Update.
9640 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
9641 get_containing_section, get_bfd_owner, get_bfd_section,
9642 get_file_name, get_id, get_flags, empty, read>: Declare methods.
9643 (dwarf2_read_section, get_section_name, get_section_file_name)
9644 (get_containing_section, get_section_bfd_owner)
9645 (get_section_bfd_section, get_section_name, get_section_file_name)
9646 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
9647 declare.
9648 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
9649 (dwarf2_section_info::get_bfd_owner)
9650 (dwarf2_section_info::get_bfd_section)
9651 (dwarf2_section_info::get_name)
9652 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
9653 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
9654 (dwarf2_section_info::read): Now methods.
9655 * dwarf-index-write.c (class debug_names): Update.
9656
2c86cff9
TT
96572020-02-08 Tom Tromey <tom@tromey.com>
9658
9659 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
9660 Move to dwarf2/section.h.
9661 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
9662 (get_section_bfd_section, get_section_name)
9663 (get_section_file_name, get_section_id, get_section_flags)
9664 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
9665 dwarf2/section.c.
9666 * dwarf2/section.h: New file.
9667 * dwarf2/section.c: New file, from dwarf2read.c.
9668 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
9669
f4382c45
TT
96702020-02-08 Tom Tromey <tom@tromey.com>
9671
9672 * dwarf2read.h (read_unsigned_leb128): Don't declare.
9673 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
9674 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
9675 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
9676 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
9677 * dwarf2/leb.h: New file, from dwarf2read.c.
9678 * dwarf2/leb.c: New file, from dwarf2read.c.
9679 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
9680 Remove.
9681 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
9682 (COMMON_SFILES): Add dwarf2/leb.c.
9683
01840b7a
JB
96842020-02-08 Joel Brobecker <brobecker@adacore.com>
9685
9686 GDB 9.1 released.
9687
dfcb27e4
IB
96882020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9689
9690 PR gdb/25190:
aac66a4c
SM
9691 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
9692 * gdb/remote.c (remote_console_output): Update.
9693 * gdb/ui-file.c (fputs_unfiltered): Rename to...
9694 (ui_file_puts): ...this.
9695 * gdb/ui-file.h (ui_file_puts): Add declaration.
9696 * gdb/utils.c (emit_style_escape): Update.
9697 (flush_wrap_buffer): Update.
9698 (fputs_maybe_filtered): Update.
9699 (fputs_unfiltered): Add function.
dfcb27e4 9700
faa17681
IB
97012020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9702
aac66a4c
SM
9703 * gdb/event-loop.c (gdb_wait_for_event): Update.
9704 * gdb/printcmd.c (printf_command): Update.
9705 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
9706 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
9707 (gdb_os_flush_stderr): Update.
9708 * gdb/remote.c (remote_console_output): Update.
9709 * gdb/ui-file.c (gdb_flush): Rename to...
9710 (ui_file_flush): ...this.
9711 (stderr_file::write): Update.
9712 (stderr_file::puts): Update.
9713 * gdb/ui-file.h (gdb_flush): Rename to...
9714 (ui_file_flush): ...this.
9715 * gdb/utils.c (gdb_flush): Add function.
9716 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 9717
5abbbe1d
TT
97182020-02-07 Tom Tromey <tromey@adacore.com>
9719
9720 PR breakpoints/24915:
9721 * source.c (find_and_open_source): Do not check basenames_may_differ.
9722
919adfe8
TT
97232020-02-07 Tom Tromey <tom@tromey.com>
9724
9725 * README: Update gdbserver documentation.
9726 * gdbserver: Move to top level.
9727 * configure.tgt (build_gdbserver): Remove.
9728 * configure.ac: Remove --enable-gdbserver.
9729 * configure: Rebuild.
9730 * Makefile.in (distclean): Don't mention gdbserver.
9731
1d5d29e7
SV
97322020-02-06 Shahab Vahedi <shahab@synopsys.com>
9733
9734 * source-cache.c (source_cache::ensure): Surround
9735 get_plain_source_lines with a try/catch.
9736 (source_cache::get_line_charpos): Get rid of try/catch
9737 and only check for the return value of "ensure".
9738 * tui/tui-source.c (tui_source_window::set_contents):
9739 Simplify "nlines" calculation.
9740
6eb1129c
SV
97412020-02-06 Shahab Vahedi <shahab@synopsys.com>
9742
9743 * MAINTAINERS (Write After Approval): Add myself.
9744
c6a42d11
CB
97452020-02-05 Christian Biesinger <cbiesinger@google.com>
9746
9747 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
9748 function call.
9749
c8ecdda6
CB
97502020-02-05 Christian Biesinger <cbiesinger@google.com>
9751
9752 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
9753
f6480e70
MR
97542020-02-05 Maciej W. Rozycki <macro@wdc.com>
9755
9756 * nat/riscv-linux-tdesc.h: New file.
9757 * nat/riscv-linux-tdesc.c: New file, taking code from...
9758 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9759 ... here.
9760 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
9761 NATDEPFILES.
9762
dcc9fbc6
AB
97632020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
9764
9765 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
9766 we don't set the fake simulator ptid to the null_ptid.
9767
719546c4
SM
97682020-02-03 Simon Marchi <simon.marchi@efficios.com>
9769
9770 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
9771 * gdbthread.h (class thread_info) <resumed>: Likewise.
9772 * infrun.c (resume_1): Likewise.
9773 (proceed): Likewise.
9774 (infrun_thread_stop_requested): Likewise.
9775 (stop_all_threads): Likewise.
9776 (handle_inferior_event): Likewise.
9777 (restart_threads): Likewise.
9778 (finish_step_over): Likewise.
9779 (keep_going_stepped_thread): Likewise.
9780 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
9781 (linux_handle_extended_wait): Likewise.
9782 * record-btrace.c (get_thread_current_frame_id): Likewise.
9783 * record-full.c (record_full_wait_1): Likewise.
9784 * remote.c (remote_target::process_initial_stop_replies): Likewise.
9785 * target.c (target_resume): Likewise.
9786 * thread.c (set_running_thread): Likewise.
9787
e409c542
AKS
97882020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9789
9790 * f-valprint.c (f77_print_array_1): Changed datatype of index
9791 variable to LONGEST from int to enable it to contain bound
9792 values correctly.
9793
ee98c0da
MR
97942020-02-03 Maciej W. Rozycki <macro@wdc.com>
9795
9796 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
9797 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
9798 offsets according to FLEN determined.
9799 (riscv_linux_nat_target::read_description): Determine FLEN
9800 dynamically.
9801 (riscv_linux_nat_target::fetch_registers): Size regset buffer
9802 according to FLEN determined.
9803 (riscv_linux_nat_target::store_registers): Likewise.
9804
aa66aac4
SV
98052020-02-01 Shahab Vahedi <shahab@synopsys.com>
9806
9807 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
9808 when reg->group is empty and reggroup is not.
9809
fd9faca8
TT
98102020-01-31 Tom Tromey <tromey@adacore.com>
9811
9812 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
9813 Call beneath target's mourn_inferior after unpushing.
9814
42330a68
AB
98152020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
9816
9817 PR tui/9765
9818 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
9819 have enough lines to fill the screen, still return the lowest
9820 address we found.
9821
7a27a45b
AB
98222020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
9823
9824 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
9825 '-', '<', and '>' commands.
9826
c47f70e2
PA
98272020-01-29 Pedro Alves <palves@redhat.com>
9828 Sergio Durigan Junior <sergiodj@redhat.com>
9829
9830 * infcmd.c (construct_inferior_arguments): Assert that
9831 'argc' is greater than 0.
9832
5133a315
LM
98332020-01-29 Luis Machado <luis.machado@linaro.org>
9834
9835 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
9836 (BRK_INSN_MASK): Define to 0xd4200000.
9837 (aarch64_program_breakpoint_here_p): New function.
9838 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
9839 * arch-utils.c (default_program_breakpoint_here_p): Moved from
9840 breakpoint.c.
9841 * arch-utils.h (default_program_breakpoint_here_p): Moved from
9842 breakpoint.h
9843 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
9844 call gdbarch_program_breakpoint_here_p.
9845 (program_breakpoint_here): Moved to arch-utils.c, renamed to
9846 default_program_breakpoint_here_p, changed return type to bool and
9847 simplified.
9848 * breakpoint.h (program_breakpoint_here): Moved prototype to
9849 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
9850 return type to bool.
9851 * gdbarch.c: Regenerate.
9852 * gdbarch.h: Regenerate.
9853 * gdbarch.sh (program_breakpoint_here_p): New method.
9854 * infrun.c (handle_signal_stop): Call
9855 gdbarch_program_breakpoint_here_p.
9856
168f8c6b
TT
98572020-01-26 Tom Tromey <tom@tromey.com>
9858
9859 * ctfread.c (struct ctf_fp_info): Reindent.
9860 (_initialize_ctfread): Remove.
9861
128a391f
TT
98622020-01-26 Tom Tromey <tom@tromey.com>
9863
9864 * psymtab.c (partial_map_expand_apply)
9865 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
9866 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
9867 (psym_print_stats, psym_expand_symtabs_for_function)
9868 (psym_map_symbol_filenames, psym_map_matching_symbols)
9869 (psym_expand_symtabs_matching)
9870 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
9871 (maintenance_check_psymtabs): Use new methods.
9872 * psympriv.h (struct partial_symtab) <readin_p,
9873 get_compunit_symtab>: New methods.
9874 <readin, compunit_symtab>: Remove members.
9875 (struct standard_psymtab): New.
9876 (struct legacy_psymtab): Derive from standard_psymtab.
9877 * dwarf2read.h (struct dwarf2_psymtab): Derive from
9878 standard_psymtab.
9879 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
9880
0494dbec
TT
98812020-01-26 Tom Tromey <tom@tromey.com>
9882
9883 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
9884 read_dependencies. Add assert.
9885 * psymtab.c (partial_symtab::read_dependencies): New method.
9886 * psympriv.h (struct partial_symtab) <read_dependencies>: New
9887 method.
9888 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
9889 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
9890 read_dependencies.
9891 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
9892 Add assert.
9893
8566b89b
TT
98942020-01-26 Tom Tromey <tom@tromey.com>
9895
9896 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
9897 Call expand_psymtab.
9898 (xcoff_read_symtab): Call expand_psymtab.
9899 (xcoff_start_psymtab, xcoff_end_psymtab): Set
9900 legacy_expand_psymtab.
9901 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
9902 method.
9903 (struct legacy_psymtab) <expand_psymtab>: Implement.
9904 <legacy_expand_psymtab>: New member.
9905 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
9906 (parse_partial_symbols): Set legacy_expand_psymtab.
9907 (psymtab_to_symtab_1): Change argument order. Call
9908 expand_psymtab.
9909 (new_psymtab): Set legacy_expand_psymtab.
9910 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
9911 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
9912 expand_psymtab.
9913 (dwarf2_psymtab::expand_psymtab): Rename from
9914 psymtab_to_symtab_1. Call expand_psymtab.
9915 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
9916 (dbx_end_psymtab): Likewise.
9917 (dbx_psymtab_to_symtab_1): Change argument order. Call
9918 expand_psymtab.
9919 (dbx_read_symtab): Call expand_psymtab.
9920 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
9921 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
9922 (ctf_psymtab::read_symtab): Call expand_psymtab.
9923
077cbab2
TT
99242020-01-26 Tom Tromey <tom@tromey.com>
9925
9926 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
9927 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
9928 messages.
9929 * mdebugread.c (mdebug_read_symtab): Remove prints.
9930 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
9931 assert.
9932 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
9933
891813be
TT
99342020-01-26 Tom Tromey <tom@tromey.com>
9935
9936 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
9937 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
9938 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
9939 legacy_symtab.
9940 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
9941 * psymtab.c (psymtab_to_symtab): Call method.
9942 (dump_psymtab): Update.
9943 * psympriv.h (struct partial_symtab): Add virtual destructor.
9944 <read_symtab>: New method.
9945 (struct legacy_symtab): New.
9946 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
9947 (struct pst_map) <pst>: Now a legacy_psymtab.
9948 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
9949 (new_psymtab): Use legacy_psymtab.
9950 * dwarf2read.h (struct dwarf2_psymtab): New.
9951 (struct dwarf2_per_cu_data) <psymtab>: Use it.
9952 * dwarf2read.c (dwarf2_create_include_psymtab)
9953 (dwarf2_build_include_psymtabs, create_type_unit_group)
9954 (create_partial_symtab, process_psymtab_comp_unit_reader)
9955 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
9956 (set_partial_user): Use dwarf2_psymtab.
9957 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
9958 (psymtab_to_symtab_1, process_full_comp_unit)
9959 (process_full_type_unit, dwarf2_ranges_read)
9960 (dwarf2_get_pc_bounds, psymtab_include_file_name)
9961 (dwarf_decode_lines): Use dwarf2_psymtab.
9962 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
9963 (add_address_entry_worker, write_one_signatured_type)
9964 (recursively_count_psymbols, recursively_write_psymbols)
9965 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
9966 (write_debug_names): Likewise.
9967 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
9968 <pst>: Now a legacy_psymtab.
9969 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
9970 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
9971 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
9972 * ctfread.c (struct ctf_psymtab): New.
9973 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
9974 ctf_psymtab.
9975 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
9976 (create_partial_symtab): Return a ctf_psymtab.
9977 (scan_partial_symbols): Update.
9978
c3693a1d
TT
99792020-01-26 Tom Tromey <tom@tromey.com>
9980
9981 * xcoffread.c (xcoff_start_psymtab): Use new.
9982 * psymtab.c (partial_symtab::partial_symtab): New constructor,
9983 renamed from start_psymtab_common.
9984 * psympriv.h (struct partial_symtab): Add new constructor.
9985 (start_psymtab_common): Don't declare.
9986 * mdebugread.c (parse_partial_symbols): Use new.
9987 * dwarf2read.c (create_partial_symtab): Use new.
9988 * dbxread.c (start_psymtab): Use new.
9989 * ctfread.c (create_partial_symtab): Use new.
9990
32caafd0
TT
99912020-01-26 Tom Tromey <tom@tromey.com>
9992
9993 * xcoffread.c (xcoff_end_psymtab): Use new.
9994 * psymtab.c (start_psymtab_common): Use new.
9995 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
9996 Update.
9997 * psympriv.h (struct partial_symtab): Add parameters to
9998 constructor. Don't inline.
9999 (allocate_psymtab): Don't declare.
10000 * mdebugread.c (new_psymtab): Use new.
10001 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
10002 * dbxread.c (dbx_end_psymtab): Use new.
10003
abaa2f23
TT
100042020-01-26 Tom Tromey <tom@tromey.com>
10005
10006 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
10007 allocate_psymtab. Update documentation.
10008 * psymtab.c (psymtab_storage::install_psymtab): Rename from
10009 allocate_psymtab. Do not use new.
10010 (allocate_psymtab): Use new. Update.
10011
6d94535f
TT
100122020-01-26 Tom Tromey <tom@tromey.com>
10013
10014 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
10015 * psymtab.c (psym_print_stats): Update.
10016 * psympriv.h (struct partial_symtab) <readin,
10017 psymtabs_addrmap_supported, anonymous>: Now bool.
10018 * mdebugread.c (psymtab_to_symtab_1): Update.
10019 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
10020 (build_type_psymtabs_reader, psymtab_to_symtab_1)
10021 (process_full_comp_unit, process_full_type_unit): Update.
10022 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
10023 * ctfread.c (psymtab_to_symtab): Update.
10024
6f17252b
TT
100252020-01-26 Tom Tromey <tom@tromey.com>
10026
10027 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
10028 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
10029 * psymtab.c (psymtab_storage): Delete psymtabs.
10030 (psymtab_storage::allocate_psymtab): Use new.
10031 (psymtab_storage::discard_psymtab): Use delete.
10032 * psympriv.h (struct partial_symtab): Add constructor and
10033 initializers.
10034
f6f1cebc
TT
100352020-01-26 Tom Tromey <tom@tromey.com>
10036
10037 * machoread.c: Do not include psympriv.h.
10038
e47e48f6
PW
100392020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10040
10041 * NEWS: Mention the new option and the set/show commands.
10042
a2fedca9
PW
100432020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10044
10045 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
10046 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
10047 (validate_exec_file): New variables, enums, functions.
10048 (exec_file_locate_attach, print_section_info): Style the filenames.
10049 (_initialize_exec): Install show_exec_file_mismatch_command and
10050 set_exec_file_mismatch_command.
10051 * gdbcore.h (validate_exec_file): Declare.
10052 * infcmd.c (attach_command): Call validate_exec_file.
10053 * remote.c ( remote_target::remote_add_inferior): Likewise.
10054
7ffa82e1
AB
100552020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10056
10057 * frame.c (find_frame_sal): Move call to get_next_frame into more
10058 inner scope.
10059 * inline-frame.c (inilne_state) <inline_state>: Update argument
10060 types.
10061 (inilne_state) <skipped_symbol>: Rename to...
10062 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
10063 (skip_inline_frames): Build vector of skipped symbols and use this
10064 to reate the inline_state.
10065 (inline_skipped_symbol): Add a comment and some assertions, fetch
10066 skipped symbol from the list.
10067
3d92a3e3
AB
100682020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10069
10070 * buildsym.c (lte_is_less_than): Delete.
10071 (buildsym_compunit::end_symtab_with_blockvector): Create local
10072 lambda function to sort line table entries, and use
10073 std::stable_sort instead of std::sort.
10074 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
10075 markers when looking for a previous line.
10076
94a72be7
AB
100772020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10078
10079 * dwarf2read.c (lnp_state_machine::record_line): Include
10080 end_sequence parameter in debug print out. Record the line if we
10081 are at an end_sequence marker even if it's not the start of a
10082 statement.
10083 * symmisc.c (maintenance_print_one_line_table): Print end of
10084 sequence markers with 'END' not '0'.
10085
53af73bf
PA
100862020-01-24 Pedro Alves <palves@redhat.com>
10087
10088 PR gdb/25410
10089 * thread.c (scoped_restore_current_thread::restore): Use
10090 switch_to_inferior_no_thread.
10091 * exec.c: Include "progspace-and-thread.h".
10092 (add_target_sections, remove_target_sections):
10093 scoped_restore_current_pspace_and_thread instead of
10094 scoped_restore_current_thread.
10095 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
10096 and aspace to the inferior before calling clone_program_space.
10097 Remove stale comment.
10098
3050c6f4
CB
100992020-01-24 Christian Biesinger <cbiesinger@google.com>
10100
10101 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
10102 (arm_netbsd_nat_target::fetch_registers): ...this.
10103 (arm_nbsd_nat_target::store_registers): Rename to...
10104 (arm_netbsd_nat_target::store_registers): ...this.
10105
73685c7e
CB
101062020-01-24 Christian Biesinger <cbiesinger@google.com>
10107
10108 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10109 register_t.
10110
89203d40
CB
101112020-01-24 Christian Biesinger <cbiesinger@google.com>
10112
10113 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
10114 Update comment.
10115 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
10116 Likewise.
10117 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
10118 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
10119 the correct replacement (iterate_over_regset_sections).
10120 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
10121 Update comment.
10122
1ba1ac88
AB
101232020-01-24 Graham Markall <graham.markall@embecosm.com>
10124
10125 PR gdb/23718
10126 * gdb/python/python.c (execute_gdb_command): Call
10127 async_enable_stdin in catch block.
10128
f3364a6d
AB
101292020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10130
10131 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
10132 SWITCH_THRU_ALL_UIS.
10133
733d0a67
AB
101342020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10135
10136 PR tui/9765
10137 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
10138 comment, add extra parameter, and update to store previous symbol
10139 when appropriate.
10140 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
10141 add extra parameter.
10142 * tui/tui-disasm.c (tui_disassemble): Update header comment,
10143 remove unneeded parameter, add try/catch around gdb_print_insn,
10144 rewrite to add items to asm_lines vector.
10145 (tui_find_backward_disassembly_start_address): New function.
10146 (tui_find_disassembly_address): Updated throughout.
10147 (tui_disasm_window::set_contents): Update for changes to
10148 tui_disassemble.
10149 (tui_disasm_window::do_scroll_vertical): No need to adjust the
10150 number of lines to scroll.
10151
b3b3bada
SM
101522020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
10153
10154 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
10155 (SECT_OFF_DATA): Likewise.
10156 (SECT_OFF_RODATA): Likewise.
10157 (SECT_OFF_TEXT): Likewise.
10158 (SECT_OFF_BSS): Likewise.
10159 (struct objfile) <text_section_offset, data_section_offset>: New
10160 methods.
10161 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
10162 objfile::text_section_offset.
10163 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
10164 * coffread.c (coff_symtab_read): Likewise.
10165 (enter_linenos): Likewise.
10166 (process_coff_symbol): Likewise.
10167 * ctfread.c (get_objfile_text_range): Likewise.
10168 * dtrace-probe.c (dtrace_probe::get_relocated_address):
10169 Use objfile::data_section_offset.
10170 * dwarf2-frame.c (execute_cfa_program): Use
10171 objfile::text_section_offset.
10172 (dwarf2_frame_find_fde): Likewise.
10173 * dwarf2read.c (create_addrmap_from_index): Likewise.
10174 (create_addrmap_from_aranges): Likewise.
10175 (dw2_find_pc_sect_compunit_symtab): Likewise.
10176 (process_psymtab_comp_unit_reader): Likewise.
10177 (add_partial_symbol): Likewise.
10178 (add_partial_subprogram): Likewise.
10179 (process_full_comp_unit): Likewise.
10180 (read_file_scope): Likewise.
10181 (read_func_scope): Likewise.
10182 (read_lexical_block_scope): Likewise.
10183 (read_call_site_scope): Likewise.
10184 (dwarf2_rnglists_process): Likewise.
10185 (dwarf2_ranges_process): Likewise.
10186 (dwarf2_ranges_read): Likewise.
10187 (dwarf_decode_lines_1): Likewise.
10188 (new_symbol): Likewise.
10189 (dwarf2_fetch_die_loc_sect_off): Likewise.
10190 (dwarf2_per_cu_text_offset): Likewise.
10191 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
10192 * hppa-tdep.c (read_unwind_info): Likewise.
10193 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
10194 * psympriv.h (struct partial_symtab): Likewise.
10195 * psymtab.c (find_pc_sect_psymtab): Likewise.
10196 * solib-svr4.c (enable_break): Likewise.
10197 * stap-probe.c (relocate_address): Use
10198 objfile::data_section_offset.
10199 * xcoffread.c (enter_line_range): Use
10200 objfile::text_section_offset.
10201 (read_xcoff_symtab): Likewise.
10202
ab53f382
SM
102032020-01-23 Simon Marchi <simon.marchi@efficios.com>
10204
10205 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
10206 declaration to narrower scopes.
10207
e7eee665
SM
102082020-01-23 Simon Marchi <simon.marchi@efficios.com>
10209
10210 * darwin-nat.h (struct darwin_exception_msg, enum
10211 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
10212 Move up.
10213 (class darwin_nat_target) <wait_1, check_new_threads,
10214 decode_exception_message, decode_message, stop_inferior,
10215 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
10216 * darwin-nat.c (darwin_check_new_threads): Rename to...
10217 (darwin_nat_target::check_new_threads): ... this.
10218 (darwin_suspend_inferior_it): Remove.
10219 (darwin_decode_exception_message): Rename to...
10220 (darwin_nat_target::decode_exception_message): ... this.
10221 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
10222 (darwin_decode_message): Rename to...
10223 (darwin_nat_target::decode_message): ... this.
10224 (cancel_breakpoint): Rename to...
10225 (darwin_nat_target::cancel_breakpoint): ... this.
10226 (darwin_wait): Rename to...
10227 (darwin_nat_target::wait_1): ... this. Use range-based for loop
10228 instead of iterate_over_inferiors.
10229 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
10230 (darwin_stop_inferior): Rename to...
10231 (darwin_nat_target::stop_inferior): ... this.
10232 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
10233 (darwin_init_thread_list): Rename to...
10234 (darwin_nat_target::init_thread_list): ... this.
10235 (darwin_ptrace_him): Rename to...
10236 (darwin_nat_target::ptrace_him): ... this.
10237 (darwin_nat_target::create_inferior): Pass lambda function to
10238 fork_inferior.
10239 (darwin_nat_target::detach): Call stop_inferior instead of
10240 darwin_stop_inferior.
10241 * fork-inferior.h (fork_inferior): Change init_trace_fun
10242 parameter to gdb::function_view.
10243 * fork-inferior.c (fork_inferior): Likewise.
10244
c162ed3e
HD
102452020-01-23 Hannes Domani <ssbssa@yahoo.de>
10246
10247 * i386-cygwin-tdep.c (core_process_module_section): Update.
10248 * windows-nat.c (struct lm_info_windows): Add text_offset.
10249 (windows_xfer_shared_libraries): Update.
10250 * windows-tdep.c (windows_xfer_shared_library):
10251 Add text_offset_cached argument.
10252 * windows-tdep.h (windows_xfer_shared_library): Update.
10253
a1237872
SM
102542020-01-21 Simon Marchi <simon.marchi@efficios.com>
10255
10256 * gdbarch.sh: Add declaration for _initialize_gdbarch.
10257
b3ee6dd9
SM
102582020-01-21 Simon Marchi <simon.marchi@efficios.com>
10259
10260 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
10261 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
10262 replace with range-based for.
10263 (gdbsim_interrupt_inferior): Remove.
10264 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
10265 with a range-based for. Inline code from
10266 gdbsim_interrupt_inferior.
10267
f9fac3c8
SM
102682020-01-21 Simon Marchi <simon.marchi@efficios.com>
10269
10270 * infrun.c (proceed): Fix indentation.
10271
f6474de9
TT
102722020-01-21 Tom Tromey <tromey@adacore.com>
10273
10274 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
10275 * python/python.c (python_extension_ops): Update.
10276 (gdbpy_colorize): New function.
10277 * python/lib/gdb/__init__.py (colorize): New function.
10278 * extension.h (ext_lang_colorize): Declare.
10279 * extension.c (ext_lang_colorize): New function.
10280 * extension-priv.h (struct extension_language_ops) <colorize>: New
10281 member.
10282 * cli/cli-style.c (_initialize_cli_style): Update help text.
10283
f0c702d4
LM
102842020-01-21 Luis Machado <luis.machado@linaro.org>
10285
10286 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
10287 <cond>: Change type to bool.
10288 (aarch64_displaced_step_b_cond): Update cond to use bool type.
10289 (aarch64_displaced_step_cb): Likewise.
10290 (aarch64_displaced_step_tb): Likewise.
10291
1ab139e5
LM
102922020-01-21 Luis Machado <luis.machado@linaro.org>
10293
10294 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
10295 output.
10296
0c271889
LM
102972020-01-21 Luis Machado <luis.machado@linaro.org>
10298
10299 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
10300 <pc_adjust>: Adjust the documentation.
10301 (aarch64_displaced_step_fixup): Check if PC really moved before
10302 adjusting it.
10303
4d89c1c7
TT
103042020-01-19 Tom Tromey <tom@tromey.com>
10305
10306 * disasm.c (~gdb_disassembler): New destructor.
10307 (gdb_buffered_insn_length): Call disassemble_free_target.
10308 * disasm.h (class gdb_disassembler): Declare destructor. Use
10309 DISABLE_COPY_AND_ASSIGN.
10310
c0ab21c2
TT
103112020-01-19 Tom Tromey <tom@tromey.com>
10312
10313 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
10314 (die_reader_func_ftype): Remove.
10315 (cutu_reader): New class.
10316 (dw2_get_file_names_reader): Remove "data" parameter.
10317 (dw2_get_file_names): Use cutu_reader.
10318 (create_debug_type_hash_table): Update.
10319 (read_cutu_die_from_dwo): Update comment.
10320 (lookup_dwo_unit): Add dwo_name parameter.
10321 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
10322 die_reader_func_ftype and data parameters.
10323 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
10324 Remove die_reader_func_ftype and data parameters.
10325 (~cutu_reader): New; from init_cutu_and_read_dies.
10326 (cutu_reader::cutu_reader): Rename from
10327 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
10328 and data parameters.
10329 (init_cutu_and_read_dies_simple): Remove.
10330 (struct process_psymtab_comp_unit_data): Remove.
10331 (process_psymtab_comp_unit_reader): Remove data parameter; add
10332 want_partial_unit and pretend_language parameters.
10333 (process_psymtab_comp_unit): Use cutu_reader.
10334 (build_type_psymtabs_reader): Remove data parameter.
10335 (build_type_psymtabs_1): Use cutu_reader.
10336 (process_skeletonless_type_unit): Likewise.
10337 (load_partial_comp_unit_reader): Remove.
10338 (load_partial_comp_unit): Use cutu_reader.
10339 (load_full_comp_unit_reader): Remove.
10340 (load_full_comp_unit): Use cutu_reader.
10341 (struct create_dwo_cu_data): Remove.
10342 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
10343 dwo_unit parameters.
10344 (create_cus_hash_table): Use cutu_reader.
10345 (struct dwarf2_read_addr_index_data): Remove.
10346 (dwarf2_read_addr_index_reader): Remove.
10347 (dwarf2_read_addr_index): Use cutu_reader.
10348 (read_signatured_type_reader): Remove.
10349 (read_signatured_type): Use cutu_reader.
10350
45bbae5c
TT
103512020-01-19 Tom Tromey <tom@tromey.com>
10352
10353 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
10354 * tui/tui-wingeneral.h (class tui_suppress_output): New.
10355 (tui_wrefresh): Declare.
10356 * tui/tui-wingeneral.c (suppress_output): New global.
10357 (tui_suppress_output, ~tui_suppress_output): New constructor and
10358 destructor.
10359 (tui_wrefresh): New function.
10360 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
10361 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
10362 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
10363 method.
10364 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
10365 tui_wrefresh.
10366 (tui_data_window::no_refresh): New method.
10367 (tui_data_item_window::refresh_window): Call tui_wrefresh.
10368 (tui_reg_command): Use tui_suppress_output
10369 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
10370 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
10371 method.
10372 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
10373
4f13c1c0
TT
103742020-01-19 Tom Tromey <tom@tromey.com>
10375
10376 * tui/tui-winsource.c (tui_update_source_windows_with_line):
10377 Handle case where symtab is null.
10378
fa47e446
SM
103792020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
10380
10381 * linux-fork.c (one_fork_p): Simplify.
10382
26f42329
SM
103832020-01-17 Simon Marchi <simon.marchi@efficios.com>
10384
10385 * top.c (struct qt_args): Remove.
10386 (kill_or_detach): Change return type to void, replace `void *`
10387 parameter with a proper one.
10388 (print_inferior_quit_action): Likewise.
10389 (quit_confirm): Use range-based for loop to iterate over inferiors.
10390 (quit_force): Likewise.
10391
a9ac81b1
SM
103922020-01-17 Simon Marchi <simon.marchi@efficios.com>
10393
10394 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
10395 `void *` parameter with proper parameters.
10396 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
10397 (print_one_inferior): Change return type to void, replace `void *`
10398 parameter with proper parameters.
10399 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
10400 inferiors.
10401 (get_other_inferior): Remove.
10402 (mi_cmd_remove_inferior): Use range-based loop to iterate over
10403 inferiors.
10404
788eca49
SM
104052020-01-17 Simon Marchi <simon.marchi@efficios.com>
10406
10407 * mi/mi-interp.c (report_initial_inferior): Remove.
10408 (mi_interp::init): Use range-based for to iterate over inferiors.
10409
d9bc85b6
SM
104102020-01-17 Simon Marchi <simon.marchi@efficios.com>
10411
10412 * python/py-inferior.c (build_inferior_list): Remove.
10413 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
10414
40c94099
CB
104152020-01-16 Christian Biesinger <cbiesinger@google.com>
10416
10417 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
10418 (btrace_stitch_trace): Likewise.
10419 * charset.c (intermediate_encoding): Likewise (vaild).
10420 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
10421 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
10422 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
10423
e0cdfe3c
HD
104242020-01-16 Hannes Domani <ssbssa@yahoo.de>
10425
10426 * windows-tdep.c (windows_get_tlb_type):
10427 Add rtl_user_process_parameters type.
10428
790f1718 104292020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 10430 Norbert Lange <nolange79@gmail.com>
790f1718
PA
10431
10432 PR build/24805
10433 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
10434 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
10435 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
10436 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
10437 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
10438 (ps_plog): Redeclare exported functions with default visibility.
10439
3112ed97
NA
104402020-01-16 Nitika Achra <Nitika.Achra@amd.com>
10441
10442 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
10443 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
10444
8dc3273e
SM
104452020-01-15 Simon Marchi <simon.marchi@efficios.com>
10446
10447 * infcmd.c (post_create_inferior): Use get_thread_regcache
10448 instead of get_current_regcache.
10449
ff47f4f0
TT
104502020-01-14 Tom Tromey <tom@tromey.com>
10451
10452 PR symtab/12535:
10453 * python/python.c (gdbpy_decode_line): Treat empty string the same
10454 as no argument.
10455
975f45b7
TT
104562020-01-14 Tom Tromey <tom@tromey.com>
10457
10458 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
10459
25e57356
TT
104602020-01-14 Tom Tromey <tom@tromey.com>
10461
10462 * nat/linux-btrace.c: Don't include <config.h>.
10463 * nat/linux-ptrace.c: Don't include <config.h>.
10464 * nat/x86-linux-dregs.c: Don't include <config.h>.
10465
05ea2a05
TT
104662020-01-14 Tom Tromey <tom@tromey.com>
10467
10468 * configure: Rebuild.
10469 * configure.ac: Move many checks to ../gdbsupport/common.m4.
10470
01027315
TT
104712020-01-14 Tom Tromey <tom@tromey.com>
10472
10473 * nat/x86-linux-dregs.c: Include configh.h.
10474 * nat/linux-ptrace.c: Include configh.h.
10475 * nat/linux-btrace.c: Include configh.h.
10476 * defs.h: Include config.h, bfd.h.
10477 * configure.ac: Don't source common.host.
10478 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
10479 * configure: Rebuild.
10480 * acinclude.m4: Update path.
10481 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
10482 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
10483 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
10484 (CLIBS): Add LIBSUPPORT.
10485 (CDEPS): Likewise.
10486 (COMMON_SFILES): Remove gdbsupport files.
10487 (HFILES_NO_SRCDIR): Likewise.
10488 (stamp-version): Update path to create-version.sh.
10489 (ALLDEPFILES): Remove gdbsupport files.
10490
b2ceabe8
TT
104912020-01-14 Tom Tromey <tom@tromey.com>
10492
10493 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
10494 USE_WIN32API when needed.
10495 * configure.ac (USE_WIN32API): Don't define.
10496 (WIN32LIBS): Use WIN32APILIBS.
10497 * configure: Rebuild.
10498
25c51f71
TT
104992020-01-14 Tom Tromey <tom@tromey.com>
10500
10501 * configure: Rebuild.
10502 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
10503
717c684d
BE
105042020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
10505
10506 * skip.c (skip_function_command): Make skip w/o arguments use the
10507 name of the inlined function if pc is inside any inlined function.
10508
7da6a5b9
LM
105092020-01-14 Luis Machado <luis.machado@linaro.org>
10510
10511 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
10512 * infrun.c (resume_1): Likewise.
10513 (handle_inferior_event): Remove stale comment.
10514 * linux-nat.c (linux_nat_target::resume): Update comments.
10515 (save_stop_reason): Likewise.
10516 (linux_nat_filter_event): Likewise.
10517 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
10518
44e4c775
AB
105192020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10520
10521 * elfread.c (record_minimal_symbol): Set section index to 0 for
10522 non-allocatable sections.
10523
18a8505e
AT
10524
105252020-01-13 Ali Tamur <tamur@google.com>
10526
10527 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
10528 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
10529 to gdb::optional. Update comments.
10530 (dwo_file): Update comments.
10531 (read_attribute): Update API to take an additional out parameter,
10532 need_reprocess. This is used to mark attributes that need other
10533 attributes (e.g. str_offsets_base) for correct computation which may not
10534 have been read yet.
10535 (read_attribute_reprocess): New function declaration.
10536 (read_addr_index): Likewise.
10537 (read_dwo_str_index): Likewise.
10538 (read_stub_str_index): Likewise.
10539 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
10540 (lookup_addr_base): New function definition.
10541 (lookup_ranges_base): Likewise.
10542 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
10543 lookup_ranges_base.
10544 (init_cutu_and_read_dies): Update comments.
10545 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
10546 unit. This is used to inherit parent's str_offsets_base and addr_base.
10547 Update comments.
10548 (init_cutu_and_read_dies_simple): Reflect API changes.
10549 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
10550 (create_cus_hash_table): Change API to take parent compile unit.
10551 Reflect API changes.
10552 (open_and_init_dwo_file): Reflect API changes.
10553 (dwarf2_get_pc_bounds): Update comments.
10554 (dwarf2_record_block_ranges): Likewise.
10555 (read_full_die_1): Change implementation to reprocess attributes that
10556 need str_offsets_base and addr_base.
10557 (partial_die_info::read): Likewise.
10558 (read_attribute_reprocess): New function definition.
10559 (read_attribute_value): Change API to take an additional out parameter,
10560 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
10561 when a non-dwo compile unit has index based attributes.
10562 (read_attribute): Reflect API changes.
10563 (read_addr_index_1): Reflect API changes. Update comments.
10564 (dwarf2_read_addr_index_data): Reflect API changes.
10565 (dwarf2_read_addr_index): Likewise.
10566 (read_str_index): Change API and implementation. This becomes a helper
10567 to be used by the new string index related methods. Update error
10568 message and comments.
10569 (read_dwo_str_index): New function definition.
10570 (read_stub_str_index): Likewise.
10571 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
10572 * symfile.h (dwarf2_debug_sections): Likewise.
10573 * xcoffread.c (dwarf2_debug_sections): Likewise.
10574
0cac9354
SM
105752020-01-13 Simon Marchi <simon.marchi@efficios.com>
10576
10577 * gdbcore.h (struct core_fns) <core_read_registers>: Change
10578 core_reg_sect type to gdb_byte *.
10579 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
10580 * cris-tdep.c (fetch_core_registers): Likewise.
10581 * corelow.c (core_target::get_core_register_section): Change
10582 type of `contents` to gdb::byte_vector.
10583
9a6d629c
AB
105842020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10585
10586 * tui/tui-wingeneral.c (box_win): Position the title in the center
10587 of the border.
10588
d8b2f9e3
SM
105892020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10590
10591 * corelow.c (core_target::get_core_register_section): Use
10592 std::vector instead of alloca.
10593
bb564c58
SM
105942020-01-13 Simon Marchi <simon.marchi@efficios.com>
10595
10596 * warning.m4: Add -Wmissing-declarations to build_warnings.
10597 * configure: Re-generate.
10598
6b366111
SM
105992020-01-13 Simon Marchi <simon.marchi@efficios.com>
10600
10601 * python/python.c (init__gdb_module): Add declaration.
10602
6c265988
SM
106032020-01-13 Simon Marchi <simon.marchi@efficios.com>
10604
10605 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
10606 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
10607 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
10608 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
10609 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
10610 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
10611 * ada-exp.y (_initialize_ada_exp): Add declaration.
10612 * ada-lang.c (_initialize_ada_language): Add declaration.
10613 * ada-tasks.c (_initialize_tasks): Add declaration.
10614 * agent.c (_initialize_agent): Add declaration.
10615 * aix-thread.c (_initialize_aix_thread): Add declaration.
10616 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
10617 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
10618 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
10619 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
10620 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
10621 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
10622 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
10623 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
10624 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
10625 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
10626 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
10627 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
10628 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
10629 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
10630 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
10631 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
10632 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
10633 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
10634 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
10635 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
10636 * annotate.c (_initialize_annotate): Add declaration.
10637 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
10638 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
10639 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
10640 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
10641 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
10642 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
10643 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
10644 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
10645 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
10646 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
10647 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
10648 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
10649 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
10650 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
10651 * auto-load.c (_initialize_auto_load): Add declaration.
10652 * auxv.c (_initialize_auxv): Add declaration.
10653 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
10654 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
10655 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
10656 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
10657 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
10658 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
10659 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
10660 * breakpoint.c (_initialize_breakpoint): Add declaration.
10661 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
10662 * btrace.c (_initialize_btrace): Add declaration.
10663 * charset.c (_initialize_charset): Add declaration.
10664 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
10665 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
10666 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
10667 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
10668 * cli/cli-script.c (_initialize_cli_script): Add declaration.
10669 * cli/cli-style.c (_initialize_cli_style): Add declaration.
10670 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
10671 * coffread.c (_initialize_coffread): Add declaration.
10672 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
10673 * compile/compile.c (_initialize_compile): Add declaration.
10674 * complaints.c (_initialize_complaints): Add declaration.
10675 * completer.c (_initialize_completer): Add declaration.
10676 * copying.c (_initialize_copying): Add declaration.
10677 * corefile.c (_initialize_core): Add declaration.
10678 * corelow.c (_initialize_corelow): Add declaration.
10679 * cp-abi.c (_initialize_cp_abi): Add declaration.
10680 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
10681 * cp-support.c (_initialize_cp_support): Add declaration.
10682 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
10683 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
10684 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
10685 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
10686 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
10687 * ctfread.c (_initialize_ctfread): Add declaration.
10688 * d-lang.c (_initialize_d_language): Add declaration.
10689 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
10690 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
10691 * dbxread.c (_initialize_dbxread): Add declaration.
10692 * dcache.c (_initialize_dcache): Add declaration.
10693 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
10694 * disasm.c (_initialize_disasm): Add declaration.
10695 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
10696 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
10697 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
10698 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
10699 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
10700 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
10701 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
10702 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
10703 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
10704 * elfread.c (_initialize_elfread): Add declaration.
10705 * exec.c (_initialize_exec): Add declaration.
10706 * extension.c (_initialize_extension): Add declaration.
10707 * f-lang.c (_initialize_f_language): Add declaration.
10708 * f-valprint.c (_initialize_f_valprint): Add declaration.
10709 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
10710 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
10711 * filesystem.c (_initialize_filesystem): Add declaration.
10712 * findcmd.c (_initialize_mem_search): Add declaration.
10713 * findvar.c (_initialize_findvar): Add declaration.
10714 * fork-child.c (_initialize_fork_child): Add declaration.
10715 * frame-base.c (_initialize_frame_base): Add declaration.
10716 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
10717 * frame.c (_initialize_frame): Add declaration.
10718 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
10719 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
10720 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
10721 * gcore.c (_initialize_gcore): Add declaration.
10722 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
10723 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
10724 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
10725 * gdbarch.c (_initialize_gdbarch): Add declaration.
10726 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
10727 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
10728 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
10729 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
10730 * go-lang.c (_initialize_go_language): Add declaration.
10731 * go32-nat.c (_initialize_go32_nat): Add declaration.
10732 * guile/guile.c (_initialize_guile): Add declaration.
10733 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
10734 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
10735 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
10736 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
10737 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
10738 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
10739 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
10740 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
10741 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
10742 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
10743 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
10744 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
10745 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
10746 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
10747 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
10748 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
10749 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
10750 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
10751 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
10752 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
10753 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
10754 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
10755 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
10756 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
10757 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
10758 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
10759 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
10760 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
10761 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
10762 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
10763 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
10764 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
10765 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
10766 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
10767 * infcall.c (_initialize_infcall): Add declaration.
10768 * infcmd.c (_initialize_infcmd): Add declaration.
10769 * inflow.c (_initialize_inflow): Add declaration.
10770 * infrun.c (_initialize_infrun): Add declaration.
10771 * interps.c (_initialize_interpreter): Add declaration.
10772 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
10773 * jit.c (_initialize_jit): Add declaration.
10774 * language.c (_initialize_language): Add declaration.
10775 * linux-fork.c (_initialize_linux_fork): Add declaration.
10776 * linux-nat.c (_initialize_linux_nat): Add declaration.
10777 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
10778 * linux-thread-db.c (_initialize_thread_db): Add declaration.
10779 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
10780 * m2-lang.c (_initialize_m2_language): Add declaration.
10781 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
10782 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
10783 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
10784 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
10785 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
10786 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
10787 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
10788 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
10789 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
10790 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
10791 * machoread.c (_initialize_machoread): Add declaration.
10792 * macrocmd.c (_initialize_macrocmd): Add declaration.
10793 * macroscope.c (_initialize_macroscope): Add declaration.
10794 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
10795 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
10796 * maint.c (_initialize_maint_cmds): Add declaration.
10797 * mdebugread.c (_initialize_mdebugread): Add declaration.
10798 * memattr.c (_initialize_mem): Add declaration.
10799 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
10800 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
10801 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
10802 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
10803 * mi/mi-main.c (_initialize_mi_main): Add declaration.
10804 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
10805 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
10806 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
10807 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
10808 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
10809 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
10810 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
10811 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
10812 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
10813 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
10814 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
10815 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
10816 * mipsread.c (_initialize_mipsread): Add declaration.
10817 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
10818 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
10819 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
10820 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
10821 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
10822 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
10823 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
10824 * nto-procfs.c (_initialize_procfs): Add declaration.
10825 * objc-lang.c (_initialize_objc_language): Add declaration.
10826 * observable.c (_initialize_observer): Add declaration.
10827 * opencl-lang.c (_initialize_opencl_language): Add declaration.
10828 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
10829 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
10830 * osabi.c (_initialize_gdb_osabi): Add declaration.
10831 * osdata.c (_initialize_osdata): Add declaration.
10832 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
10833 * parse.c (_initialize_parse): Add declaration.
10834 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
10835 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
10836 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
10837 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
10838 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
10839 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
10840 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
10841 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
10842 * printcmd.c (_initialize_printcmd): Add declaration.
10843 * probe.c (_initialize_probe): Add declaration.
10844 * proc-api.c (_initialize_proc_api): Add declaration.
10845 * proc-events.c (_initialize_proc_events): Add declaration.
10846 * proc-service.c (_initialize_proc_service): Add declaration.
10847 * procfs.c (_initialize_procfs): Add declaration.
10848 * producer.c (_initialize_producer): Add declaration.
10849 * psymtab.c (_initialize_psymtab): Add declaration.
10850 * python/python.c (_initialize_python): Add declaration.
10851 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
10852 * record-btrace.c (_initialize_record_btrace): Add declaration.
10853 * record-full.c (_initialize_record_full): Add declaration.
10854 * record.c (_initialize_record): Add declaration.
10855 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
10856 * regcache.c (_initialize_regcache): Add declaration.
10857 * reggroups.c (_initialize_reggroup): Add declaration.
10858 * remote-notif.c (_initialize_notif): Add declaration.
10859 * remote-sim.c (_initialize_remote_sim): Add declaration.
10860 * remote.c (_initialize_remote): Add declaration.
10861 * reverse.c (_initialize_reverse): Add declaration.
10862 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
10863 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
10864 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
10865 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
10866 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
10867 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
10868 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
10869 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
10870 Add declaration.
10871 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
10872 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
10873 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
10874 * rust-exp.y (_initialize_rust_exp): Add declaration.
10875 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
10876 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
10877 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
10878 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
10879 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
10880 * score-tdep.c (_initialize_score_tdep): Add declaration.
10881 * ser-go32.c (_initialize_ser_dos): Add declaration.
10882 * ser-mingw.c (_initialize_ser_windows): Add declaration.
10883 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
10884 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
10885 * ser-uds.c (_initialize_ser_socket): Add declaration.
10886 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
10887 * serial.c (_initialize_serial): Add declaration.
10888 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
10889 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
10890 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
10891 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
10892 * skip.c (_initialize_step_skip): Add declaration.
10893 * sol-thread.c (_initialize_sol_thread): Add declaration.
10894 * solib-aix.c (_initialize_solib_aix): Add declaration.
10895 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
10896 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
10897 * solib-frv.c (_initialize_frv_solib): Add declaration.
10898 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
10899 * solib-target.c (_initialize_solib_target): Add declaration.
10900 * solib.c (_initialize_solib): Add declaration.
10901 * source-cache.c (_initialize_source_cache): Add declaration.
10902 * source.c (_initialize_source): Add declaration.
10903 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
10904 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
10905 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
10906 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
10907 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
10908 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
10909 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
10910 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
10911 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
10912 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
10913 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
10914 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
10915 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
10916 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
10917 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
10918 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
10919 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
10920 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
10921 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
10922 * stabsread.c (_initialize_stabsread): Add declaration.
10923 * stack.c (_initialize_stack): Add declaration.
10924 * stap-probe.c (_initialize_stap_probe): Add declaration.
10925 * std-regs.c (_initialize_frame_reg): Add declaration.
10926 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
10927 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
10928 * symfile.c (_initialize_symfile): Add declaration.
10929 * symmisc.c (_initialize_symmisc): Add declaration.
10930 * symtab.c (_initialize_symtab): Add declaration.
10931 * target.c (_initialize_target): Add declaration.
10932 * target-connection.c (_initialize_target_connection): Add
10933 declaration.
10934 * target-dcache.c (_initialize_target_dcache): Add declaration.
10935 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
10936 * thread.c (_initialize_thread): Add declaration.
10937 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
10938 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
10939 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
10940 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
10941 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
10942 * tracectf.c (_initialize_ctf): Add declaration.
10943 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
10944 * tracefile.c (_initialize_tracefile): Add declaration.
10945 * tracepoint.c (_initialize_tracepoint): Add declaration.
10946 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
10947 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
10948 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
10949 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
10950 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
10951 * tui/tui-win.c (_initialize_tui_win): Add declaration.
10952 * tui/tui.c (_initialize_tui): Add declaration.
10953 * typeprint.c (_initialize_typeprint): Add declaration.
10954 * ui-style.c (_initialize_ui_style): Add declaration.
10955 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
10956 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
10957 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
10958 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
10959 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
10960 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
10961 * unittests/filtered_iterator-selftests.c
10962 (_initialize_filtered_iterator_selftests): Add declaration.
10963 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
10964 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
10965 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
10966 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
10967 * unittests/main-thread-selftests.c
10968 (_initialize_main_thread_selftests): Add declaration.
10969 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
10970 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
10971 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
10972 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
10973 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
10974 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
10975 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
10976 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
10977 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
10978 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
10979 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
10980 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
10981 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
10982 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
10983 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
10984 declaration.
10985 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
10986 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
10987 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
10988 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
10989 * user-regs.c (_initialize_user_regs): Add declaration.
10990 * utils.c (_initialize_utils): Add declaration.
10991 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
10992 * valops.c (_initialize_valops): Add declaration.
10993 * valprint.c (_initialize_valprint): Add declaration.
10994 * value.c (_initialize_values): Add declaration.
10995 * varobj.c (_initialize_varobj): Add declaration.
10996 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
10997 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
10998 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
10999 * windows-nat.c (_initialize_windows_nat): Add declaration.
11000 (_initialize_check_for_gdb_ini): Add declaration.
11001 (_initialize_loadable): Add declaration.
11002 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
11003 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
11004 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
11005 * xcoffread.c (_initialize_xcoffread): Add declaration.
11006 * xml-support.c (_initialize_xml_support): Add declaration.
11007 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
11008 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
11009 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
11010 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
11011
e2de1eec
SM
110122020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11013
11014 * regformats/regdat.sh: Generate declaration for init function.
11015
e0037b4c
SM
110162020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11017
11018 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
11019 up.
11020 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
11021 close_one_inferior>: New methods.
11022 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
11023 pass down target to find_inferior_pid.
11024 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
11025 Pass down target to find_inferior_ptid.
11026 (gdbsim_target::create_inferior): Pass down target to
11027 add_thread_silent.
11028 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
11029 target down to find_inferior_ptid and switch_to_thread.
11030 (gdbsim_target::close): Update to call close_one_inferior.
11031 (struct resume_data): Remove.
11032 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
11033 directly, rather than through a void pointer.
11034 (gdbsim_target::resume): Update to call resume_one_inferior.
11035
58920b5b
SM
110362020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
11037
11038 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
11039
4ec89149
PA
110402020-01-12 Pedro Alves <palves@redhat.com>
11041
11042 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
11043 directly for the current inferior instead of
11044 discard_all_inferiors.
11045 (discard_all_inferiors): Delete.
11046
7c392d1d
TT
110472020-01-11 Tom Tromey <tom@tromey.com>
11048
11049 * tui/tui-wingeneral.c (box_win): Check cli_styling.
11050 * tui/tui-winsource.c (tui_source_window_base::refill): Use
11051 deprecated_safe_get_selected_frame.
11052
d9ebdab7
TBA
110532020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11054
11055 * inferior.c (print_inferior): Switch inferior before printing it.
11056
f3c469b9
PA
110572020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
11058 Pedro Alves <palves@redhat.com>
11059
11060 * progspace-and-thread.c (switch_to_program_space_and_thread):
11061 Assert there's an inferior for PSPACE. Use
11062 switch_to_inferior_no_thread to switch the inferior too.
11063 * progspace.c (program_space::~program_space): Call
11064 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
11065 (program_space::free_all_objfiles): Don't call clear_symtab_users
11066 here.
11067 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
11068
65c574f6
PA
110692020-01-10 Pedro Alves <palves@redhat.com>
11070
11071 * NEWS: Mention multi-target debugging, "info connections", and
11072 "add-inferior -no-connection".
11073
2f4fcf00
PA
110742020-01-10 Pedro Alves <palves@redhat.com>
11075
11076 * infrun.c: Include "target-connection.h".
11077 (check_multi_target_resumption): New.
11078 (proceed): Call it.
11079 * target-connection.c (make_target_connection_string): Make
11080 extern.
11081 * target-connection.h (make_target_connection_string): Declare.
11082
121b3efd
PA
110832020-01-10 Pedro Alves <palves@redhat.com>
11084
11085 * Makefile.in (COMMON_SFILES): Add target-connection.c.
11086 * inferior.c (uiout_field_connection): New function.
11087 (print_inferior): Add new "connection-id" column.
11088 (add_inferior_command): Show connection number/string of added
11089 inferior.
11090 * process-stratum-target.h
11091 (process_stratum_target::connection_string): New virtual method.
11092 (process_stratum_target::connection_number): New field.
11093 * remote.c (remote_target::connection_string): New override.
11094 * target-connection.c: New file.
11095 * target-connection.h: New file.
11096 * target.c (decref_target): Remove process_stratum targets from
11097 the connection list.
11098 (target_stack::push): Add process_stratum targets to the
11099 connection list.
11100
4f837581
PA
111012020-01-10 Pedro Alves <palves@redhat.com>
11102
11103 Revert:
11104 2016-04-12 Pedro Alves <palves@redhat.com>
11105 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
11106 Remove references to name.
11107 * serial.h (struct serial) <name>: Delete.
11108
f4ec508e
PA
111092020-01-10 Pedro Alves <palves@redhat.com>
11110
11111 * gdbarch-selftests.c (register_to_value_test): Remove "target
11112 already pushed" check.
11113
5b6d1e4f
PA
111142020-01-10 Pedro Alves <palves@redhat.com>
11115 John Baldwin <jhb@FreeBSD.org>
11116
11117 * aarch64-linux-nat.c
11118 (aarch64_linux_nat_target::thread_architecture): Adjust.
11119 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
11120 (task_command_1): Likewise.
11121 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
11122 (aix_thread_target::wait, aix_thread_target::fetch_registers)
11123 (aix_thread_target::store_registers)
11124 (aix_thread_target::thread_alive): Adjust.
11125 * amd64-fbsd-tdep.c: Include "inferior.h".
11126 (amd64fbsd_get_thread_local_address): Pass down target.
11127 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
11128 thread's gdbarch instead of target_gdbarch.
11129 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
11130 get_last_target_status.
11131 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
11132 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
11133 inferiors.
11134 (update_inserted_breakpoint_locations): Skip if inferiors with no
11135 execution.
11136 (update_global_location_list): When handling moribund locations,
11137 find representative inferior for location's pspace, and use thread
11138 count of its process_stratum target.
11139 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
11140 * bsd-uthread.c (bsd_uthread_target::wait): Use
11141 as_process_stratum_target and adjust thread_change_ptid and
11142 add_thread calls.
11143 (bsd_uthread_target::update_thread_list): Use
11144 as_process_stratum_target and adjust find_thread_ptid,
11145 thread_change_ptid and add_thread calls.
11146 * btrace.c (maint_btrace_packet_history_cmd): Adjust
11147 find_thread_ptid call.
11148 * corelow.c (add_to_thread_list): Adjust add_thread call.
11149 (core_target_open): Adjust add_thread_silent and thread_count
11150 calls.
11151 (core_target::pid_to_str): Adjust find_inferior_ptid call.
11152 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
11153 * event-top.c (async_disconnect): Pop targets from all inferiors.
11154 * exec.c (add_target_sections): Push exec target on all inferiors
11155 sharing the program space.
11156 (remove_target_sections): Remove the exec target from all
11157 inferiors sharing the program space.
11158 (exec_on_vfork): New.
11159 * exec.h (exec_on_vfork): Declare.
11160 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
11161 Pass it down.
11162 (fbsd_nat_target::update_thread_list): Adjust.
11163 (fbsd_nat_target::resume): Adjust.
11164 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
11165 down.
11166 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
11167 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
11168 get_thread_arch_regcache call.
11169 * fork-child.c (gdb_startup_inferior): Pass target down to
11170 startup_inferior and set_executing.
11171 * gdbthread.h (struct process_stratum_target): Forward declare.
11172 (add_thread, add_thread_silent, add_thread_with_info)
11173 (in_thread_list): Add process_stratum_target parameter.
11174 (find_thread_ptid(inferior*, ptid_t)): New overload.
11175 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
11176 parameter.
11177 (all_threads()): Delete overload.
11178 (all_threads, all_non_exited_threads): Add process_stratum_target
11179 parameter.
11180 (all_threads_safe): Use brace initialization.
11181 (thread_count): Add process_stratum_target parameter.
11182 (set_resumed, set_running, set_stop_requested, set_executing)
11183 (threads_are_executing, finish_thread_state): Add
11184 process_stratum_target parameter.
11185 (switch_to_thread): Use is_current_thread.
11186 * i386-fbsd-tdep.c: Include "inferior.h".
11187 (i386fbsd_get_thread_local_address): Pass down target.
11188 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
11189 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
11190 have_inferiors check.
11191 * inf-ptrace.c (inf_ptrace_target::create_inferior)
11192 (inf_ptrace_target::attach): Adjust.
11193 * infcall.c (run_inferior_call): Adjust.
11194 * infcmd.c (run_command_1): Pass target to
11195 scoped_finish_thread_state.
11196 (proceed_thread_callback): Skip inferiors with no execution.
11197 (continue_command): Rename 'all_threads' local to avoid hiding
11198 'all_threads' function. Adjust get_last_target_status call.
11199 (prepare_one_step): Adjust set_running call.
11200 (signal_command): Use user_visible_resume_target. Compare thread
11201 pointers instead of inferior_ptid.
11202 (info_program_command): Adjust to pass down target.
11203 (attach_command): Mark target's 'thread_executing' flag.
11204 (stop_current_target_threads_ns): New, factored out from ...
11205 (interrupt_target_1): ... this. Switch inferior before making
11206 target calls.
11207 * inferior-iter.h
11208 (struct all_inferiors_iterator, struct all_inferiors_range)
11209 (struct all_inferiors_safe_range)
11210 (struct all_non_exited_inferiors_range): Filter on
11211 process_stratum_target too. Remove explicit.
11212 * inferior.c (inferior::inferior): Push dummy target on target
11213 stack.
11214 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
11215 Add process_stratum_target parameter, and pass it down.
11216 (have_live_inferiors): Adjust.
11217 (switch_to_inferior_and_push_target): New.
11218 (add_inferior_command, clone_inferior_command): Handle
11219 "-no-connection" parameter. Use
11220 switch_to_inferior_and_push_target.
11221 (_initialize_inferior): Mention "-no-connection" option in
11222 the help of "add-inferior" and "clone-inferior" commands.
11223 * inferior.h: Include "process-stratum-target.h".
11224 (interrupt_target_1): Use bool.
11225 (struct inferior) <push_target, unpush_target, target_is_pushed,
11226 find_target_beneath, top_target, process_target, target_at,
11227 m_stack>: New.
11228 (discard_all_inferiors): Delete.
11229 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
11230 (all_inferiors, all_non_exited_inferiors): Add
11231 process_stratum_target parameter.
11232 * infrun.c: Include "gdb_select.h" and <unordered_map>.
11233 (target_last_proc_target): New global.
11234 (follow_fork_inferior): Push target on new inferior. Pass target
11235 to add_thread_silent. Call exec_on_vfork. Handle target's
11236 reference count.
11237 (follow_fork): Adjust get_last_target_status call. Also consider
11238 target.
11239 (follow_exec): Push target on new inferior.
11240 (struct execution_control_state) <target>: New field.
11241 (user_visible_resume_target): New.
11242 (do_target_resume): Call target_async.
11243 (resume_1): Set target's threads_executing flag. Consider resume
11244 target.
11245 (commit_resume_all_targets): New.
11246 (proceed): Also consider resume target. Skip threads of inferiors
11247 with no execution. Commit resumtion in all targets.
11248 (start_remote): Pass current inferior to wait_for_inferior.
11249 (infrun_thread_stop_requested): Consider target as well. Pass
11250 thread_info pointer to clear_inline_frame_state instead of ptid.
11251 (infrun_thread_thread_exit): Consider target as well.
11252 (random_pending_event_thread): New inferior parameter. Use it.
11253 (do_target_wait): Rename to ...
11254 (do_target_wait_1): ... this. Add inferior parameter, and pass it
11255 down.
11256 (threads_are_resumed_pending_p, do_target_wait): New.
11257 (prepare_for_detach): Adjust calls.
11258 (wait_for_inferior): New inferior parameter. Handle it. Use
11259 do_target_wait_1 instead of do_target_wait.
11260 (fetch_inferior_event): Adjust. Switch to representative
11261 inferior. Pass target down.
11262 (set_last_target_status): Add process_stratum_target parameter.
11263 Save target in global.
11264 (get_last_target_status): Add process_stratum_target parameter and
11265 handle it.
11266 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
11267 (context_switch): Check inferior_ptid == null_ptid before calling
11268 inferior_thread().
11269 (get_inferior_stop_soon): Pass down target.
11270 (wait_one): Rename to ...
11271 (poll_one_curr_target): ... this.
11272 (struct wait_one_event): New.
11273 (wait_one): New.
11274 (stop_all_threads): Adjust.
11275 (handle_no_resumed, handle_inferior_event): Adjust to consider the
11276 event's target.
11277 (switch_back_to_stepped_thread): Also consider target.
11278 (print_stop_event): Update.
11279 (normal_stop): Update. Also consider the resume target.
11280 * infrun.h (wait_for_inferior): Remove declaration.
11281 (user_visible_resume_target): New declaration.
11282 (get_last_target_status, set_last_target_status): New
11283 process_stratum_target parameter.
11284 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11285 process_stratum_target parameter, and use it.
11286 (clear_inline_frame_state (thread_info*)): New.
11287 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11288 process_stratum_target parameter.
11289 (clear_inline_frame_state (thread_info*)): Declare.
11290 * linux-fork.c (delete_checkpoint_command): Pass target down to
11291 find_thread_ptid.
11292 (checkpoint_command): Adjust.
11293 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
11294 instead of just tweaking inferior_ptid.
11295 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
11296 (exit_lwp): Pass target down to find_thread_ptid.
11297 (attach_proc_task_lwp_callback): Pass target down to
11298 add_thread/set_running/set_executing.
11299 (linux_nat_target::attach): Pass target down to
11300 thread_change_ptid.
11301 (get_detach_signal): Pass target down to find_thread_ptid.
11302 Consider last target status's target.
11303 (linux_resume_one_lwp_throw, resume_lwp)
11304 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
11305 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
11306 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
11307 (linux_nat_target::async_wait_fd): New.
11308 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
11309 target down.
11310 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
11311 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
11312 * linux-thread-db.c (struct thread_db_info::process_target): New
11313 field.
11314 (add_thread_db_info): Save target.
11315 (get_thread_db_info): New process_stratum_target parameter. Also
11316 match target.
11317 (delete_thread_db_info): New process_stratum_target parameter.
11318 Also match target.
11319 (thread_from_lwp): Adjust to pass down target.
11320 (thread_db_notice_clone): Pass down target.
11321 (check_thread_db_callback): Pass down target.
11322 (try_thread_db_load_1): Always push the thread_db target.
11323 (try_thread_db_load, record_thread): Pass target down.
11324 (thread_db_target::detach): Pass target down. Always unpush the
11325 thread_db target.
11326 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
11327 target down. Always unpush the thread_db target.
11328 (find_new_threads_callback, thread_db_find_new_threads_2)
11329 (thread_db_target::update_thread_list): Pass target down.
11330 (thread_db_target::pid_to_str): Pass current inferior down.
11331 (thread_db_target::get_thread_local_address): Pass target down.
11332 (thread_db_target::resume, maintenance_check_libthread_db): Pass
11333 target down.
11334 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
11335 * procfs.c (procfs_target::procfs_init_inferior): Declare.
11336 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
11337 (procfs_init_inferior): Rename to ...
11338 (procfs_target::procfs_init_inferior): ... this and adjust.
11339 (procfs_target::create_inferior, procfs_notice_thread)
11340 (procfs_do_thread_registers): Adjust.
11341 * ppc-fbsd-tdep.c: Include "inferior.h".
11342 (ppcfbsd_get_thread_local_address): Pass down target.
11343 * proc-service.c (ps_xfer_memory): Switch current inferior and
11344 program space as well.
11345 (get_ps_regcache): Pass target down.
11346 * process-stratum-target.c
11347 (process_stratum_target::thread_address_space)
11348 (process_stratum_target::thread_architecture): Pass target down.
11349 * process-stratum-target.h
11350 (process_stratum_target::threads_executing): New field.
11351 (as_process_stratum_target): New.
11352 * ravenscar-thread.c
11353 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
11354 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
11355 down.
11356 * record-btrace.c (record_btrace_target::info_record): Adjust.
11357 (record_btrace_target::record_method)
11358 (record_btrace_target::record_is_replaying)
11359 (record_btrace_target::fetch_registers)
11360 (get_thread_current_frame_id, record_btrace_target::resume)
11361 (record_btrace_target::wait, record_btrace_target::stop): Pass
11362 target down.
11363 * record-full.c (record_full_wait_1): Switch to event thread.
11364 Pass target down.
11365 * regcache.c (regcache::regcache)
11366 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
11367 process_stratum_target parameter and handle it.
11368 (current_thread_target): New global.
11369 (get_thread_regcache): Add process_stratum_target parameter and
11370 handle it. Switch inferior before calling target method.
11371 (get_thread_regcache): Pass target down.
11372 (get_thread_regcache_for_ptid): Pass target down.
11373 (registers_changed_ptid): Add process_stratum_target parameter and
11374 handle it.
11375 (registers_changed_thread, registers_changed): Pass target down.
11376 (test_get_thread_arch_aspace_regcache): New.
11377 (current_regcache_test): Define a couple local test_target_ops
11378 instances and use them for testing.
11379 (readwrite_regcache): Pass process_stratum_target parameter.
11380 (cooked_read_test, cooked_write_test): Pass mock_target down.
11381 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
11382 (get_thread_arch_aspace_regcache): Add process_stratum_target
11383 parameter.
11384 (regcache::target): New method.
11385 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
11386 (regcache::registers_changed_ptid): Add process_stratum_target
11387 parameter.
11388 (regcache::m_target): New field.
11389 (registers_changed_ptid): Add process_stratum_target parameter.
11390 * remote.c (remote_state::supports_vCont_probed): New field.
11391 (remote_target::async_wait_fd): New method.
11392 (remote_unpush_and_throw): Add remote_target parameter.
11393 (get_current_remote_target): Adjust.
11394 (remote_target::remote_add_inferior): Push target.
11395 (remote_target::remote_add_thread)
11396 (remote_target::remote_notice_new_inferior)
11397 (get_remote_thread_info): Pass target down.
11398 (remote_target::update_thread_list): Skip threads of inferiors
11399 bound to other targets. (remote_target::close): Don't discard
11400 inferiors. (remote_target::add_current_inferior_and_thread)
11401 (remote_target::process_initial_stop_replies)
11402 (remote_target::start_remote)
11403 (remote_target::remote_serial_quit_handler): Pass down target.
11404 (remote_target::remote_unpush_target): New remote_target
11405 parameter. Unpush the target from all inferiors.
11406 (remote_target::remote_unpush_and_throw): New remote_target
11407 parameter. Pass it down.
11408 (remote_target::open_1): Check whether the current inferior has
11409 execution instead of checking whether any inferior is live. Pass
11410 target down.
11411 (remote_target::remote_detach_1): Pass down target. Use
11412 remote_unpush_target.
11413 (extended_remote_target::attach): Pass down target.
11414 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
11415 (remote_target::append_resumption): Pass down target.
11416 (remote_target::append_pending_thread_resumptions)
11417 (remote_target::remote_resume_with_hc, remote_target::resume)
11418 (remote_target::commit_resume): Pass down target.
11419 (remote_target::remote_stop_ns): Check supports_vCont_probed.
11420 (remote_target::interrupt_query)
11421 (remote_target::remove_new_fork_children)
11422 (remote_target::check_pending_events_prevent_wildcard_vcont)
11423 (remote_target::remote_parse_stop_reply)
11424 (remote_target::process_stop_reply): Pass down target.
11425 (first_remote_resumed_thread): New remote_target parameter. Pass
11426 it down.
11427 (remote_target::wait_as): Pass down target.
11428 (unpush_and_perror): New remote_target parameter. Pass it down.
11429 (remote_target::readchar, remote_target::remote_serial_write)
11430 (remote_target::getpkt_or_notif_sane_1)
11431 (remote_target::kill_new_fork_children, remote_target::kill): Pass
11432 down target.
11433 (remote_target::mourn_inferior): Pass down target. Use
11434 remote_unpush_target.
11435 (remote_target::core_of_thread)
11436 (remote_target::remote_btrace_maybe_reopen): Pass down target.
11437 (remote_target::pid_to_exec_file)
11438 (remote_target::thread_handle_to_thread_info): Pass down target.
11439 (remote_target::async_wait_fd): New.
11440 * riscv-fbsd-tdep.c: Include "inferior.h".
11441 (riscv_fbsd_get_thread_local_address): Pass down target.
11442 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
11443 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
11444 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
11445 Adjust.
11446 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
11447 * solib-svr4.c (enable_break): Pass down target.
11448 * spu-multiarch.c (parse_spufs_run): Pass down target.
11449 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
11450 * target-delegates.c: Regenerate.
11451 * target.c (g_target_stack): Delete.
11452 (current_top_target): Return the current inferior's top target.
11453 (target_has_execution_1): Refer to the passed-in inferior's top
11454 target.
11455 (target_supports_terminal_ours): Check whether the initial
11456 inferior was already created.
11457 (decref_target): New.
11458 (target_stack::push): Incref/decref the target.
11459 (push_target, push_target, unpush_target): Adjust.
11460 (target_stack::unpush): Defref target.
11461 (target_is_pushed): Return bool. Adjust to refer to the current
11462 inferior's target stack.
11463 (dispose_inferior): Delete, and inline parts ...
11464 (target_preopen): ... here. Only dispose of the current inferior.
11465 (target_detach): Hold strong target reference while detaching.
11466 Pass target down.
11467 (target_thread_name): Add assertion.
11468 (target_resume): Pass down target.
11469 (target_ops::beneath, find_target_at): Adjust to refer to the
11470 current inferior's target stack.
11471 (get_dummy_target): New.
11472 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
11473 has a thread running.
11474 (initialize_targets): Rename to ...
11475 (_initialize_target): ... this.
11476 * target.h: Include "gdbsupport/refcounted-object.h".
11477 (struct target_ops): Inherit refcounted_object.
11478 (target_ops::shortname, target_ops::longname): Make const.
11479 (target_ops::async_wait_fd): New method.
11480 (decref_target): Declare.
11481 (struct target_ops_ref_policy): New.
11482 (target_ops_ref): New typedef.
11483 (get_dummy_target): Declare function.
11484 (target_is_pushed): Return bool.
11485 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
11486 (all_matching_threads_iterator::all_matching_threads_iterator):
11487 Handle filter target.
11488 * thread-iter.h (struct all_matching_threads_iterator, struct
11489 all_matching_threads_range, class all_non_exited_threads_range):
11490 Filter by target too. Remove explicit.
11491 * thread.c (threads_executing): Delete.
11492 (inferior_thread): Pass down current inferior.
11493 (clear_thread_inferior_resources): Pass down thread pointer
11494 instead of ptid_t.
11495 (add_thread_silent, add_thread_with_info, add_thread): Add
11496 process_stratum_target parameter. Use it for thread and inferior
11497 searches.
11498 (is_current_thread): New.
11499 (thread_info::deletable): Use it.
11500 (find_thread_ptid, thread_count, in_thread_list)
11501 (thread_change_ptid, set_resumed, set_running): New
11502 process_stratum_target parameter. Pass it down.
11503 (set_executing): New process_stratum_target parameter. Pass it
11504 down. Adjust reference to 'threads_executing'.
11505 (threads_are_executing): New process_stratum_target parameter.
11506 Adjust reference to 'threads_executing'.
11507 (set_stop_requested, finish_thread_state): New
11508 process_stratum_target parameter. Pass it down.
11509 (switch_to_thread): Also match inferior.
11510 (switch_to_thread): New process_stratum_target parameter. Pass it
11511 down.
11512 (update_threads_executing): Reimplement.
11513 * top.c (quit_force): Pop targets from all inferior.
11514 (gdb_init): Don't call initialize_targets.
11515 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
11516 Declare.
11517 (windows_add_thread, windows_delete_thread): Adjust.
11518 (get_windows_debug_event): Rename to ...
11519 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
11520 * tracefile-tfile.c (tfile_target_open): Pass down target.
11521 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
11522 Forward declare.
11523 (switch_to_thread): Add process_stratum_target parameter.
11524 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
11525 parameter. Use it.
11526 (mi_on_resume): Pass target down.
11527 * nat/fork-inferior.c (startup_inferior): Add
11528 process_stratum_target parameter. Pass it down.
11529 * nat/fork-inferior.h (startup_inferior): Add
11530 process_stratum_target parameter.
11531 * python/py-threadevent.c (py_get_event_thread): Pass target down.
11532
75c6c844
PA
115332020-01-10 Pedro Alves <palves@redhat.com>
11534
11535 * remote.c (remote_target::start_remote): Don't set inferior_ptid
11536 directly. Instead find the first thread in the thread list and
11537 use switch_to_thread.
11538
78f2c40a
PA
115392020-01-10 Pedro Alves <palves@redhat.com>
11540
11541 * remote.c (remote_target::remote_add_inferior): Don't bind a
11542 process to the current inferior if the current inferior is already
11543 bound to a process.
11544
e7af6c70
TBA
115452020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11546 Pedro Alves <palves@redhat.com>
11547
11548 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
11549 If no process is specified, return null_ptid instead of
11550 inferior_ptid.
11551 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
11552 TARGET_WAITKIND_SIGNALLED with no pid.
11553
31ba933e
PA
115542020-01-10 Pedro Alves <palves@redhat.com>
11555
11556 * remote.c (first_remote_resumed_thread): New.
11557 (remote_target::wait_as): Use it as default event_ptid instead of
11558 inferior_ptid.
11559
735fc2ca
PA
115602020-01-10 Pedro Alves <palves@redhat.com>
11561
11562 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
11563
c17e02e1
PA
115642020-01-10 Pedro Alves <palves@redhat.com>
11565
11566 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
11567 not -1.
11568
ab1ddbcf
PA
115692020-01-10 Pedro Alves <palves@redhat.com>
11570
11571 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
11572 ptid to get_last_target_status.
11573 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
11574 ptid to get_last_target_status.
11575 * infcmd.c (continue_command): Don't pass a target_waitstatus to
11576 get_last_target_status.
11577 (info_program_command): Don't pass a target_waitstatus to
11578 get_last_target_status.
11579 * infrun.c (init_wait_for_inferior): Use
11580 nullify_last_target_wait_ptid.
11581 (get_last_target_status): Handle nullptr arguments.
11582 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
11583 (print_stop_event): Don't pass a ptid to get_last_target_status.
11584 (normal_stop): Don't pass a ptid to get_last_target_status.
11585 * infrun.h (get_last_target_status, set_last_target_status): Move
11586 comments here and update.
11587 (nullify_last_target_wait_ptid): Declare.
11588 * linux-fork.c (fork_load_infrun_state): Remove local extern
11589 declaration of nullify_last_target_wait_ptid.
11590 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
11591 to get_last_target_status.
11592
f3f8ece4
PA
115932020-01-10 Pedro Alves <palves@redhat.com>
11594
11595 * gdbthread.h (scoped_restore_current_thread)
11596 <dont_restore, restore, m_dont_restore>: Declare.
11597 * thread.c (thread_alive): Add assertion. Return bool.
11598 (switch_to_thread_if_alive): New.
11599 (prune_threads): Switch inferior/thread.
11600 (print_thread_info_1): Switch thread before calling target methods.
11601 (scoped_restore_current_thread::restore): New, factored out from
11602 ...
11603 (scoped_restore_current_thread::~scoped_restore_current_thread):
11604 ... this.
11605 (scoped_restore_current_thread::scoped_restore_current_thread):
11606 Add assertion.
11607 (thread_apply_all_command, thread_select): Use
11608 switch_to_thread_if_alive.
11609 * infrun.c (proceed, restart_threads, handle_signal_stop)
11610 (switch_back_to_stepped_thread): Switch current thread before
11611 calling target methods.
11612
db2d40f7
PA
116132020-01-10 Pedro Alves <palves@redhat.com>
11614
11615 * inferior.c (switch_to_inferior_no_thread): New function,
11616 factored out from ...
11617 (inferior_command): ... here.
11618 * inferior.h (switch_to_inferior_no_thread): Declare.
11619 * mi/mi-main.c (run_one_inferior): Use
11620 switch_to_inferior_no_thread.
11621
bd420a2d
PA
116222020-01-10 Pedro Alves <palves@redhat.com>
11623
11624 * infcmd.c (kill_command): Remove dead code.
11625
ddf5db90
PA
116262020-01-10 Pedro Alves <palves@redhat.com>
11627
11628 * remote.c (remote_target::mourn_inferior): No longer check
11629 whether the target is running.
11630
5018ce90
PA
116312020-01-10 Pedro Alves <palves@redhat.com>
11632
11633 * corelow.c (core_target::has_execution): Change parameter type to
11634 inferior pointer.
11635 * inferior.c (number_of_live_inferiors): Use
11636 inferior::has_execution instead of target_has_execution_1.
11637 * inferior.h (inferior::has_execution): New.
11638 * linux-thread-db.c (thread_db_target::update_thread_list): Use
11639 inferior::has_execution instead of target_has_execution_1.
11640 * process-stratum-target.c
11641 (process_stratum_target::has_execution): Change parameter type to
11642 inferior pointer. Check the inferior's PID instead of
11643 inferior_ptid.
11644 * process-stratum-target.h
11645 (process_stratum_target::has_execution): Change parameter type to
11646 inferior pointer.
11647 * record-full.c (record_full_core_target::has_execution): Change
11648 parameter type to inferior pointer.
11649 * target.c (target_has_execution_1): Change parameter type to
11650 inferior pointer.
11651 (target_has_execution_current): Adjust.
11652 * target.h (target_ops::has_execution): Change parameter type to
11653 inferior pointer.
11654 (target_has_execution_1): Change parameter type to inferior
11655 pointer. Change return type to bool.
11656 * tracefile.h (tracefile_target::has_execution): Change parameter
11657 type to inferior pointer.
11658
74375d18
PA
116592020-01-10 Pedro Alves <palves@redhat.com>
11660
11661 * exceptions.c (print_flush): Remove current_top_target() check.
11662
acdf84a6
PA
116632020-01-10 Pedro Alves <palves@redhat.com>
11664
11665 * remote.c (show_remote_exec_file): Show the current inferior's
11666 exec-file instead of the command variable's value.
11667
ec506636
PA
116682020-01-10 Pedro Alves <palves@redhat.com>
11669
11670 * record-full.c (record_full_resume_ptid): New global.
11671 (record_full_target::resume): Set it.
11672 (record_full_wait_1): Use record_full_resume_ptid instead of
11673 inferior_ptid.
11674
873657b9
PA
116752020-01-10 Pedro Alves <palves@redhat.com>
11676
11677 * gdbthread.h (scoped_restore_current_thread)
11678 <dont_restore, restore, m_dont_restore>: Declare.
11679 * thread.c (thread_alive): Add assertion. Return bool.
11680 (switch_to_thread_if_alive): New.
11681 (prune_threads): Switch inferior/thread.
11682 (print_thread_info_1): Switch thread before calling target methods.
11683 (scoped_restore_current_thread::restore): New, factored out from
11684 ...
11685 (scoped_restore_current_thread::~scoped_restore_current_thread):
11686 ... this.
11687 (scoped_restore_current_thread::scoped_restore_current_thread):
11688 Add assertion.
11689 (thread_apply_all_command, thread_select): Use
11690 switch_to_thread_if_alive.
11691
7f0ae84c
GB
116922020-01-10 George Barrett <bob@bob131.so>
11693
11694 * stap-probe.c (stap_modify_semaphore): Don't check for null
11695 semaphores.
11696 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
11697 for null semaphores.
11698
f5a7c406
AB
116992020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11700
11701 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
11702 all source windows, and maintain horizontal scroll status while
11703 doing so.
11704
9ae6bf64
TT
117052020-01-09 Tom Tromey <tom@tromey.com>
11706
11707 PR tui/18932:
11708 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
11709 update_source_window, not print_source_lines.
11710
b2efe70c
AB
117112020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11712
11713 * tui/tui.c (tui_enable): Register tui hooks after calling
11714 tui_display_main.
11715
5f23a082
CB
117162020-01-09 Christian Biesinger <cbiesinger@google.com>
11717
11718 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
11719
3061113b
SM
117202020-01-08 Simon Marchi <simon.marchi@efficios.com>
11721
11722 * thread.c (print_thread_info_1): Fix indentation.
11723
57d75002
CB
117242020-01-09 Christian Biesinger <cbiesinger@google.com>
11725
11726 * symtab.c (general_symbol_info::compute_and_set_names): Move the
11727 unique_xmalloc_ptr outside the if to always free the demangled name.
11728
6a053cb1
TT
117292020-01-08 Tom Tromey <tromey@adacore.com>
11730
11731 * xcoffread.c (enter_line_range, read_xcoff_symtab)
11732 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
11733 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
11734 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
11735 Remove.
11736 (section_offsets): New typedef.
11737 * symtab.c (fixup_section, get_msymbol_address): Update.
11738 * symmisc.c (dump_msymbols): Update.
11739 * symfile.h (relative_addr_info_to_section_offsets)
11740 (symfile_map_offsets_to_segments): Update.
11741 * symfile.c (build_section_addr_info_from_objfile)
11742 (init_objfile_sect_indices): Update.
11743 (struct place_section_arg): Change type of "offsets".
11744 (place_section): Update.
11745 (relative_addr_info_to_section_offsets): Change type of
11746 "section_offsets". Remove "num_sections" parameter.
11747 (default_symfile_offsets, syms_from_objfile_1)
11748 (set_objfile_default_section_offset): Update.
11749 (reread_symbols): No need to preserve section offsets by hand.
11750 (symfile_map_offsets_to_segments): Change type of "offsets".
11751 * stap-probe.c (relocate_address): Update.
11752 * stabsread.h (process_one_symbol): Update.
11753 * solib-target.c (struct lm_info_target) <offsets>: Change type.
11754 (solib_target_relocate_section_addresses): Update.
11755 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
11756 Update.
11757 * solib-frv.c (frv_relocate_main_executable): Update.
11758 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
11759 * solib-aix.c (solib_aix_get_section_offsets): Change return
11760 type.
11761 (solib_aix_solib_create_inferior_hook): Update.
11762 * remote.c (remote_target::get_offsets): Update.
11763 * psymtab.c (find_pc_sect_psymtab): Update.
11764 * psympriv.h (struct partial_symbol) <address, text_low,
11765 text_high>: Update.
11766 * objfiles.h (obj_section_offset): Update.
11767 (struct objfile) <section_offsets>: Change type.
11768 <num_sections>: Remove.
11769 (objfile_relocate): Update.
11770 * objfiles.c (entry_point_address_query): Update
11771 (relocate_one_symbol): Change type of "section_offsets".
11772 (objfile_relocate1, objfile_relocate1): Change type of
11773 "new_offsets".
11774 (objfile_rebase1): Update.
11775 * mipsread.c (mipscoff_symfile_read): Update.
11776 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
11777 parameter.
11778 * mdebugread.c (parse_symbol): Change type of "section_offsets".
11779 (parse_external, psymtab_to_symtab_1): Update.
11780 * machoread.c (macho_symfile_offsets): Update.
11781 * ia64-tdep.c (ia64_find_unwind_table): Update.
11782 * hppa-tdep.c (read_unwind_info): Update.
11783 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
11784 * dwarf2read.c (create_addrmap_from_index)
11785 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11786 (process_psymtab_comp_unit_reader, add_partial_symbol)
11787 (add_partial_subprogram, process_full_comp_unit)
11788 (read_file_scope, read_func_scope, read_lexical_block_scope)
11789 (read_call_site_scope, dwarf2_rnglists_process)
11790 (dwarf2_ranges_process, dwarf2_ranges_read)
11791 (dwarf_decode_lines_1, var_decode_location, new_symbol)
11792 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
11793 Update.
11794 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
11795 Update.
11796 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
11797 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
11798 (process_one_symbol): Change type of "section_offsets".
11799 * ctfread.c (get_objfile_text_range): Update.
11800 * coffread.c (coff_symtab_read, enter_linenos)
11801 (process_coff_symbol): Update.
11802 * coff-pe-read.c (add_pe_forwarded_sym): Update.
11803 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
11804
456e800a
TT
118052020-01-08 Tom Tromey <tromey@adacore.com>
11806
11807 * dwarf2read.c (parse_macro_definition): Use std::string.
11808 (parse_macro_definition): Likewise.
11809
6dfa2fc2
TT
118102020-01-08 Tom Tromey <tromey@adacore.com>
11811
11812 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
11813 (ATTR_ALLOC_CHUNK): Remove.
11814
421d1616
TT
118152020-01-08 Tom Tromey <tromey@adacore.com>
11816
11817 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
11818
43816ebc
TT
118192020-01-08 Tom Tromey <tromey@adacore.com>
11820
11821 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
11822 (dwarf2_compute_name, open_dwo_file): Likewise.
11823 (process_enumeration_scope): Use std::vector.
11824 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
11825 (partial_die_info::fixup, dwarf2_start_subfile)
11826 (guess_full_die_structure_name, dwarf2_name): Likewise.
11827 (determine_prefix): Update.
11828 (guess_full_die_structure_name): Make return type const.
11829 (partial_die_full_name): Return unique_xmalloc_ptr.
11830 (DW_FIELD_ALLOC_CHUNK): Remove.
11831
4212d509
TT
118322020-01-07 Tom Tromey <tromey@adacore.com>
11833
11834 PR build/24937:
11835 * stap-probe.c (class stap_static_probe_ops): Add constructor.
11836
06a6207a
JT
118372020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
11838
11839 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
11840
153d79c4
AB
118412020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
11842
11843 * stack.c (print_frame_info): Move disassemble_next_line code
11844 inside source_print block.
11845
66182876
EZ
118462020-01-06 Eli Zaretskii <eliz@gnu.org>
11847
11848 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
11849 gdb/signals.h, as we are now using native signal symbols.
11850
cbfa8581
SV
118512020-01-06 Shahab Vahedi <shahab@synopsys.com>
11852
11853 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
11854 overflow by an early check of content vs threshold.
aac66a4c 11855 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
11856 Likewise.
11857
3f602821
EZ
118582020-01-06 Eli Zaretskii <eliz@gnu.org>
11859
11860 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
11861
a08c904d
JT
118622020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
11863
11864 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
11865 export table if no section contains it's RVA.
11866
89a65580
EZ
118672020-01-06 Eli Zaretskii <eliz@gnu.org>
11868
11869 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
11870
8b7fcda2
HD
118712020-01-06 Hannes Domani <ssbssa@yahoo.de>
11872
11873 * source.c (print_source_lines_base): Set last_line_listed.
11874
a61b4f69
SV
118752020-01-06 Shahab Vahedi <shahab@synopsys.com>
11876
11877 * tui/tui-disasm.c: Remove trailing spaces.
11878
559e7e50
EZ
118792020-01-06 Eli Zaretskii <eliz@gnu.org>
11880 Pedro Alves <palves@redhat.com>
11881
11882 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
11883 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
11884 (windows_gdb_signal_to_target): New function, uses the above
11885 enumeration to convert GDB internal signal codes to equivalent
11886 Windows codes.
11887 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
11888 * windows-nat.c: Include "gdb_wait.h".
11889 (get_windows_debug_event): Extract the fatal exception from the
11890 exit status and convert to the equivalent Posix signal number.
11891 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
11892 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
11893 * gdbsupport/gdb_wait.c: New file, implements
11894 windows_status_to_termsig.
11895 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
11896 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
11897
f2302a34
AB
118982020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
11899
11900 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
11901 show_layout.
11902
6a5206eb
LM
119032020-01-05 Luis Machado <luis.machado@linaro.org>
11904
11905 * aarch64-linux-nat.c
11906 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
11907 and bfd_mach_aarch64.
11908
6ec1d75e
PW
119092020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11910
11911 * ui-file.c (stdio_file::can_emit_style_escape)
11912 (tee_file::can_emit_style_escape): Ensure style is used also on
11913 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
11914 to gdb_stdout.
11915 * main.c (set_gdb_data_directory): Use file style to output the
11916 warning that the given pathname is not a directory.
11917 * top.c (show_history_filename, gdb_safe_append_history)
11918 (show_gdb_datadir): Use file style.
11919
44f81a76
HD
119202020-01-03 Hannes Domani <ssbssa@yahoo.de>
11921
11922 * solib-target.c (struct lm_info_target):
11923 Change offsets to be a unique_xmalloc_ptr.
11924 (solib_target_relocate_section_addresses): Update.
11925
25057eb0
HD
119262020-01-03 Hannes Domani <ssbssa@yahoo.de>
11927
11928 * windows-nat.c (windows_clear_solib): Free so_list linked list.
11929
6e2118f5
BE
119302020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
11931
11932 * MAINTAINERS (Write After Approval): Add myself.
11933
8133c7dc
LM
119342020-01-02 Luis Machado <luis.machado@linaro.org>
11935
11936 * proc-service.c (get_ps_regcache): Remove reference to obsolete
11937 Cell BE architecture.
11938 * target.h (struct target_ops) <thread_architecture>: Likewise.
11939
48189bec
HD
119402020-01-01 Hannes Domani <ssbssa@yahoo.de>
11941
11942 * Makefile.in: Use INSTALL_PROGRAM_ENV.
11943
ead1063b
HD
119442020-01-01 Hannes Domani <ssbssa@yahoo.de>
11945
11946 * MAINTAINERS (Write After Approval): Add myself.
11947
e5d78223
JB
119482020-01-01 Joel Brobecker <brobecker@adacore.com>
11949
11950 * gdbarch.sh: Update copyright year range of generated files.
11951
b811d2c2
JB
119522020-01-01 Joel Brobecker <brobecker@adacore.com>
11953
11954 Update copyright year range in all GDB files.
11955
5f4def5c
JB
119562020-01-01 Joel Brobecker <brobecker@adacore.com>
11957
11958 * copyright.py: Convert to Python 3.
11959
51fd4002
JB
119602020-01-01 Joel Brobecker <brobecker@adacore.com>
11961
11962 * copyright.py: Adapt after move of gnulib directory from gdb
11963 directory to toplevel directory.
11964
5fb651f2
JB
119652020-01-01 Joel Brobecker <brobecker@adacore.com>
11966
11967 * copyright.py (main): Exit if run from the wrong directory.
11968
5dd8bf88
JB
119692020-01-01 Joel Brobecker <brobecker@adacore.com>
11970
11971 * top.c (print_gdb_version): Change copyright year to 2020.
11972
9f71dacb 119732020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 11974
9f71dacb 11975 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 11976
9f71dacb 11977For older changes see ChangeLog-2019.
c906108c
SS
11978\f
11979Local Variables:
11980mode: change-log
11981left-margin: 8
11982fill-column: 74
11983version-control: never
57da7796 11984coding: utf-8
c906108c 11985End: