]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
gdb: add gdb_argv::as_array_view method
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
d369b608
SM
12020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
2
3 * utils.h (class gdb_argv) <as_array_view>: New method.
4 * utils.c (gdb_argv_as_array_view_test): New.
5 (_initialize_utils): Register selftest.
6 * maint.c (maintenance_selftest): Use the new method.
7
b31488a3
KR
82020-08-13 Kamil Rytarowski <n54@gmx.com>
9
10 * target.h (supports_dumpcore, dumpcore): New
11 function declarations.
12 * target.c (supports_dumpcore, dumpcore): New
13 functions.
14 * target-delegates.c: Rebuild.
15 * gcore.c (gcore_command): Use target_supports_dumpcore ()
16 and target_dumpcore ().
17
002a3166
AM
182020-08-13 Aaron Merey <amerey@redhat.com>
19
20 * debuginfod-support.c: Replace global variables with user_data.
21
ece5bc8a
SM
222020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
23
24 * maint.c (maintenance_selftest): Split args and pass array_view
25 to run_tests.
26
6d8a0a5e
LM
272020-08-12 Luis Machado <luis.machado@linaro.org>
28
29 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
30 type's length.
31 Use %s and pulongest to print the length.
32
7cf663a9
PA
332020-08-12 Pedro Alves <palves@redhat.com>
34
35 * NEWS: Move "Multi-target debugging support" item to the
36 "Changes since GDB 9" section.
37
27c7b875
PA
382020-08-12 Pedro Alves <palves@redhat.com>
39
40 PR gdb/26336
41 * progspace.c (program_space::remove_objfile): Invalidate the
42 frame cache.
43
1796a2a1
TV
442020-08-11 Tom de Vries <tdevries@suse.de>
45
46 * MAINTAINERS: Mark ms1 as deleted.
47
f8e3fe0d
LM
482020-08-10 Luis Machado <luis.machado@linaro.org>
49
50 PR gdb/26310
51
52 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
53 act accordingly.
54 (aarch64_analyze_prologue_test): Add more unit tests to exercise
55 movz/str/stur/stp skipping behavior.
56
cc308722
LM
572020-08-10 Luis Machado <luis.machado@linaro.org>
58
59 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
60 struct user_sve_header instead of struct sve_context.
61
041d9819
SM
622020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
63
64 * read.h (dwarf2_fetch_die_loc_sect_off,
65 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
66 `void *` parameter with function_view.
67 * read.c (dwarf2_fetch_die_loc_sect_off,
68 dwarf2_fetch_die_loc_cu_off): Likewise.
69 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
70 (per_cu_dwarf_call): Adjust.
71 (get_frame_address_in_block_wrapper): Remove.
72 (indirect_synthetic_pointer): Adjust.
73 (get_ax_pc): Remove.
74 (dwarf2_compile_expr_to_ax): Adjust.
75
38f8aa06
TV
762020-08-08 Tom de Vries <tdevries@suse.de>
77
78 PR build/26344
79 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
80 constructor.
81 * regcache.c (get_thread_arch_aspace_regcache): Same.
82
a52b3ae2
TT
832020-08-07 Tom Tromey <tromey@adacore.com>
84
85 * ravenscar-thread.c
86 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
87 New method.
88 (ravenscar_thread_target::wait): Check
89 runtime_initialized.
90 (ravenscar_thread_target::prepare_to_store)
91 (ravenscar_thread_target::stopped_by_sw_breakpoint)
92 (ravenscar_thread_target::stopped_by_hw_breakpoint)
93 (ravenscar_thread_target::stopped_by_watchpoint)
94 (ravenscar_thread_target::stopped_data_address)
95 (ravenscar_thread_target::core_of_thread): Use
96 scoped_restore_current_thread and
97 set_base_thread_from_ravenscar_task.
98
0e29517d
TT
992020-08-07 Tom Tromey <tromey@adacore.com>
100
101 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
102
592f9bd7
TT
1032020-08-07 Tom Tromey <tromey@adacore.com>
104
105 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
106 update_inferior_ptid before update_thread_list.
107 (temporarily_change_regcache_ptid): New class.
108 (ravenscar_thread_target::fetch_registers)
109 (ravenscar_thread_target::store_registers)
110 (ravenscar_thread_target::prepare_to_store): Use base thread when
111 forwarding operation.
112
39e2018a
TT
1132020-08-07 Tom Tromey <tromey@adacore.com>
114
115 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
116 "is_pid" case.
117
2080266b
TT
1182020-08-07 Tom Tromey <tromey@adacore.com>
119
120 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
121 New methods.
122 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
123 first.
124 (ravenscar_thread_target::add_thread): Rename from
125 ravenscar_add_thread.
126 (ravenscar_thread_target::update_thread_list): Use a lambda.
127 (ravenscar_thread_target::xfer_partial): New method.
128
78c02f21
TT
1292020-08-07 Tom Tromey <tromey@adacore.com>
130
131 * ada-lang.h (ada_task_list_iterator_ftype): Now a
132 gdb::function_view.
133 (iterate_over_live_ada_tasks): Change type of argument.
134 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
135 of argument.
136
d5d833af
TT
1372020-08-07 Tom Tromey <tromey@adacore.com>
138
139 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
140 Remove.
141 (ravenscar_thread_target::extra_thread_info): Remove.
142 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
143 defer to target beneath for non-Ravenscar threads.
144
a8ac85bb
TT
1452020-08-07 Tom Tromey <tromey@adacore.com>
146
147 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
148 get_base_thread_from_ravenscar_task>: Now methods.
149 <m_cpu_map>: New member.
150 (ravenscar_thread_target::get_thread_base_cpu): Rename from
151 ravenscar_get_thread_base_cpu. Check m_cpu_map.
152 (ravenscar_thread_target::task_is_currently_active): Update.
153 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
154 Now a method.
155 (ravenscar_thread_target::add_active_thread): Put initial thread
156 into the m_cpu_map.
157
550ab58d
TT
1582020-08-07 Tom Tromey <tromey@adacore.com>
159
160 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
161 event_ptid.
162
e9546579
TT
1632020-08-07 Tom Tromey <tromey@adacore.com>
164
165 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
166 runtime_initialized.
167
3d4470e5
TT
1682020-08-07 Tom Tromey <tromey@adacore.com>
169
170 * ravenscar-thread.c (ravenscar_thread_target): Don't call
171 add_active_thread.
172 (ravenscar_thread_target::add_active_thread): Now public.
173 (ravenscar_inferior_created): Call add_active_thread after pushing
174 the target.
175
888bdb2b
SM
1762020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
177
178 * regcache.c (ptid_regcache_map): New type.
179 (target_ptid_regcache_map): New type.
180 (regcaches): Change type to target_ptid_regcache_map.
181 (get_thread_arch_aspace_regcache): Update to regcaches' new
182 type.
183 (regcache_thread_ptid_changed): Likewise.
184 (registers_changed_ptid): Likewise.
185 (regcaches_size): Likewise.
186 (regcaches_test): Update.
187 (regcache_thread_ptid_changed): Update.
188 * regcache.h (regcache_up): New type.
189 * gdbsupport/ptid.h (hash_ptid): New struct.
190
b161a60d
SM
1912020-08-07 Simon Marchi <simon.marchi@efficios.com>
192
193 * observable.h (thread_ptid_changed): Add parameter
194 `process_stratum_target *`.
195 * infrun.c (infrun_thread_ptid_changed): Add parameter
196 `process_stratum_target *` and use it.
197 (selftests): New namespace.
198 (infrun_thread_ptid_changed): New function.
199 (_initialize_infrun): Register selftest.
200 * regcache.c (regcache_thread_ptid_changed): Add parameter
201 `process_stratum_target *` and use it.
202 (regcache_thread_ptid_changed): New function.
203 (_initialize_regcache): Register selftest.
204 * thread.c (thread_change_ptid): Pass target to
205 thread_ptid_changed observable.
206
d2854d8d
CT
2072020-08-06 Caroline Tice <cmtice@google.com>
208
fe4c3d43
SM
209 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
210 (struct dwp_sections): Update field comments. Add loclists and
211 rnglists fields.
212 (struct virtual_v2_dwo_sections): Rename struct to
213 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
214 size & offset fields for loclists and rnglists.
215 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
216 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
217 skipping dummy type units.
218 (create_dwp_hash_table): Update the large comment above the function to
219 discuss Version 5 DWP files as well, with references. Update all the
220 version checks in the function to check for version 5 as well. Add new
221 section at the end to create dwp hash table for version 5.
222 (create_dwp_v2_section): Rename function to
223 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
224 Add V5 to error message text.
225 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
226 into calls to create_dwp_v2_or_v5_section.
227 (create_dwo_unit_in_dwp_v5): New function.
228 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
229 check for version2; add else clause to handle version 5.
230 (open_and_init_dwo_file): Add code to check dwarf version & only call
231 create_debug_types_hash_table (with sections.types) if version is not 5;
232 else call create_debug_type_hash_table, with sections.info.
233 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
234 version 5.
235 (dwarf2_locate_v5_dwp_sections): New function.
236 (open_and_init_dwp_file): Add else-if clause for version 5 to call
237 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 238
159ed7d9
SM
2392020-08-06 Simon Marchi <simon.marchi@efficios.com>
240
241 * regcache.h (class regcache): Remove friend
242 registers_changed_ptid.
243 <regcache_thread_ptid_changed>: Remove.
244 <regcaches>: Remove.
245 * regcache.c (regcache::regcaches): Rename to...
246 (regcaches): ... this. Make static.
247 (get_thread_arch_aspace_regcache): Update.
248 (regcache::regcache_thread_ptid_changed): Rename to...
249 (regcache_thread_ptid_changed): ... this. Update.
250 (class regcache_access): Remove.
251 (regcaches_test): Update.
252 (_initialize_regcache): Update.
253 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
254 <forward_list>.
255
174981ae
SM
2562020-08-06 Simon Marchi <simon.marchi@efficios.com>
257
258 * regcache.h (class regcache) <current_regcache>: Rename to...
259 <regcaches>: ... this. Move doc here.
260 * regcache.c (regcache::current_regcache) Rename to...
261 (regcache::regcaches): ... this. Move doc to header.
262 (get_thread_arch_aspace_regcache): Update.
263 (regcache::regcache_thread_ptid_changed): Update.
264 (registers_changed_ptid): Update.
265 (class regcache_access) <current_regcache_size>: Rename to...
266 <regcaches_size>: ... this.
267 (current_regcache_test): Rename to...
268 (regcaches_test): ... this.
269 (_initialize_regcache): Update.
270
ed908db6
VC
2712020-08-06 Victor Collod <vcollod@nvidia.com>
272
273 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
274
b5582ab7
KB
2752020-08-05 Kevin Buettner <kevinb@redhat.com>
276
277 * corelow.c (core_target::build_file_mappings): Don't output
278 null pathname in warning.
279
ea946b86
SM
2802020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
281
282 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
283 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
284 gdb.dwarf2/dw2-single-line-discriminators.exp,
285 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
286
57d02173
TT
2872020-08-05 Tom Tromey <tromey@adacore.com>
288
289 PR rust/26197:
290 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
291 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
292 Fix off-by-one and type size errors in ordinary case.
293
5555c86d
TV
2942020-08-05 Tom de Vries <tdevries@suse.de>
295
296 * gdbtypes.c (type_not_allocated, type_not_associated): Use
297 "prop->const_val () == 0" instead of "prop->const_val () != 0".
298
97916bfe
SM
2992020-08-04 Simon Marchi <simon.marchi@efficios.com>
300
301 * frame.h (frame_id_p): Return bool.
302 (frame_id_artificial_p): Return bool.
303 (frame_id_eq): Return bool.
304 (has_stack_frames): Return bool.
305 (get_selected_frame): Fix typo in comment.
306 (get_frame_pc_if_available): Return bool.
307 (get_frame_address_in_block_if_available): Return bool.
308 (get_frame_func_if_available): Return bool.
309 (read_frame_register_unsigned): Return bool.
310 (get_frame_register_bytes): Return bool.
311 (safe_frame_unwind_memory): Return bool.
312 (deprecated_frame_register_read): Return bool.
313 (frame_unwinder_is): Return bool.
314 * frame.c (struct frame_info) <prev_arch::p>: Change type to
315 bool.
316 <this_id::p>: Likewise.
317 <prev_p>: Likewise.
318 (frame_stash_add): Return bool.
319 (get_frame_id): Use bool.
320 (frame_id_build_special) Use bool.
321 (frame_id_build_unavailable_stack): Use bool.
322 (frame_id_build): Use bool.
323 (frame_id_p): Return bool, use true/false instead of 1/0.
324 (frame_id_artificial_p): Likewise.
325 (frame_id_eq): Likewise.
326 (frame_id_inner): Likewise.
327 (get_frame_func_if_available): Likewise.
328 (read_frame_register_unsigned): Likewise.
329 (deprecated_frame_register_read): Likewise.
330 (get_frame_register_bytes): Likewise.
331 (has_stack_frames): Likewise.
332 (inside_main_func): Likewise.
333 (inside_entry_func): Likewise.
334 (get_frame_pc_if_available): Likewise.
335 (get_frame_address_in_block_if_available): Likewise.
336 (frame_unwinder_is): Likewise.
337 (safe_frame_unwind_memory): Likewise.
338 (frame_unwind_arch): Likewise.
339
fedfee88
SM
3402020-08-04 Simon Marchi <simon.marchi@efficios.com>
341
342 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
343 type to cached_copy_status.
344 (fprintf_frame): Adjust.
345 (get_frame_func_if_available): Adjust.
346 (frame_cleanup_after_sniffer): Adjust.
347
6cfa9b59
MW
3482020-08-04 Mark Wielaard <mark@klomp.org>
349
350 * MAINTAINERS (Write After Approval): Update email address.
351
66d6346b
SM
3522020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
353
354 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
355 dynamic_prop::const_val.
356
8a6d5e35
SM
3572020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
358
359 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
360 dynamic_prop::kind.
361
51d6067d
SM
3622020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
363
364 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
365
b26e2ae7
JM
3662020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
367
368 * configure.tgt: Set gdb_sim for bpf-*-* targets.
369
39791af2
JM
3702020-08-04 Weimin Pan <weimin.pan@oracle.com>
371 Jose E. Marchesi <jose.marchesi@oracle.com>
372
373 * configure.tgt: Add entry for bpf-*-*.
374 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
375 (ALLDEPFILES): Add bpf-tdep.c.
376 * bpf-tdep.c: New file.
377 * MAINTAINERS: Add bpf target and maintainer.
378 * NEWS: Mention the support for the new target.
379
521894aa
TV
3802020-08-04 Tom de Vries <tdevries@suse.de>
381
382 PR symtab/23270
383 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
384 Error.
385
5d6356e9
JB
3862020-08-03 John Baldwin <jhb@FreeBSD.org>
387
388 * syscalls/freebsd.xml: Regenerate.
389
0cf82b81
JB
3902020-08-03 John Baldwin <jhb@FreeBSD.org>
391
392 * syscalls/update-freebsd.sh: Fix usage and year range.
393
8f34b746
TV
3942020-08-03 Tom de Vries <tdevries@suse.de>
395
396 PR symtab/26333
397 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
398 DW_LNE_lo_user/DW_LNE_hi_user range.
399
5e500d33
SM
4002020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
401
402 PR ada/26318
403 * ada-lang.c (ada_modulus): Return 0 if property is not of const
404 kind.
405
78319c15
TBA
4062020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
407
408 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
409
4c55e970
TBA
4102020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
411
412 * breakpoint.c (set_breakpoint_condition): Update the condition
413 expressions after checking that the input condition string parses
414 successfully and does not contain junk at the end.
415
1e620590
TBA
4162020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
417
418 * breakpoint.c (set_breakpoint_condition): Update the
419 condition string after parsing the new condition successfully.
420
c8693053
RO
4212020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
422
423 * proc-api.c (_STRUCTURED_PROC): Don't define.
424 * proc-events.c: Likewise.
425 * proc-flags.c: Likewise.
426 * proc-why.c: Likewise.
427 * procfs.c: Likewise.
428
429 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
430 * configure, config.in: Regenerate.
431
5a99adb8
TV
4322020-07-30 Tom de Vries <tdevries@suse.de>
433
434 PR build/26320
435 * ui-style.h (struct ui_file_style::color): Wrap m_value and
436 m_red/m_green/m_blue in a union.
437
8ba83e91
TV
4382020-07-29 Tom de Vries <tdevries@suse.de>
439
440 PR tdep/26280
441 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
442
f75a0693
AB
4432020-07-28 Tom Tromey <tromey@adacore.com>
444
445 PR symtab/26270:
446 * symtab.h (find_pc_partial_function_sym): Declare.
447 * cli/cli-cmds.c (disassemble_command): Use
448 find_pc_partial_function_sym. Check asm_demangle.
449 * blockframe.c (cache_pc_function_sym): New global.
450 (cache_pc_function_name): Remove.
451 (clear_pc_function_cache): Update.
452 (find_pc_partial_function_sym): New function, from
453 find_pc_partial_function.
454 (find_pc_partial_function): Rewrite using
455 find_pc_partial_function_sym.
456
16f3242c
TT
4572020-07-28 Tom Tromey <tromey@adacore.com>
458
459 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
460 help. Add usage.
461
4888741a
TT
4622020-07-28 Tom Tromey <tromey@adacore.com>
463
464 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
465 <DW_OP_GNU_variable_value>: Cast to address type.
466
4d46f402
KR
4672020-07-28 Kamil Rytarowski <n54@gmx.com>
468
469 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
470 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
471 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
472 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
473 (nbsd_get_siginfo_type): New.
474 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
475 (_initialize_nbsd_tdep): New.
476
d70f978b
L
4772020-07-28 H.J. Lu <hongjiu.lu@intel.com>
478
479 PR binutils/26301
480 * configure: Regenerated.
481
377170fa
L
4822020-07-28 H.J. Lu <hongjiu.lu@intel.com>
483
484 PR binutils/26301
485 * configure: Regenerated.
486
43d5901d
AB
4872020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
488
489 * python/py-frame.c: Remove 'user-regs.h' include.
490 (frapy_read_register): Rewrite to make use of
491 gdbpy_parse_register_id.
492 * python/py-registers.c (gdbpy_parse_register_id): New function,
493 moved here from python/py-unwind.c. Updated the return type, and
494 also accepts register descriptor objects.
495 * python/py-unwind.c: Remove 'user-regs.h' include.
496 (pyuw_parse_register_id): Moved to python/py-registers.c.
497 (unwind_infopy_add_saved_register): Update to use
498 gdbpy_parse_register_id.
499 (pending_framepy_read_register): Likewise.
500 * python/python-internal.h (gdbpy_parse_register_id): Declare.
501
14fa8fb3
AB
5022020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
503
504 * python/py-registers.c: Add 'user-regs.h' include.
505 (register_descriptor_iter_find): New function.
506 (register_descriptor_iterator_object_methods): New static global
507 methods array.
508 (register_descriptor_iterator_object_type): Add pointer to methods
509 array.
510
ddce1758
JB
5112020-07-27 John Baldwin <jhb@FreeBSD.org>
512
513 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
514 for all architectures on FreeBSD 11.3 and later.
515
a4089f52
TT
5162020-07-27 Tom Tromey <tromey@adacore.com>
517
518 * gcore.h (load_corefile): Don't declare.
519
95420d30
TV
5202020-07-27 Tom de Vries <tdevries@suse.de>
521
522 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
523 * config.in: Regenerate.
524 * configure: Regenerate.
525
05a6b8c2
EZ
5262020-07-26 Eli Zaretskii <eliz@gnu.org>
527
528 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
529 ws2tcpip.h. When checking whether socklen_t type is defined, use
530 ws2tcpip.h if it is available and sys/socket.h isn't.
531 * configure: Regenerate.
532 * config.in: Regenerate.
533
e79eb02f
AB
5342020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
535
536 PR fortran/23051
537 PR fortran/26139
538 * valops.c (value_ind): Pass address to
539 readjust_indirect_value_type.
540 * value.c (readjust_indirect_value_type): Make parameter
541 non-const, and add extra address parameter. Resolve original type
542 before using it.
543 * value.h (readjust_indirect_value_type): Update function
544 signature and comment.
545
876518dd
TV
5462020-07-25 Tom de Vries <tdevries@suse.de>
547
548 PR symtab/26243
549 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
550 entries.
551
f6720b1c
AM
5522020-07-24 Aaron Merey <amerey@redhat.com>
553
554 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
555 * configure: Rebuild.
556
513487e1
KB
5572020-07-23 Kevin Buettner <kevinb@redhat.com>
558
559 PR corefiles/26294
560 * corelow.c (_initialize_corelow): Add period to help text
561 for "maintenance print core-file-backed-mappings".
562
e7bc9db8
PA
5632020-07-23 Pedro Alves <pedro@palves.net>
564
565 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
566 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
567 meanwhile.
568 * frame.c (frame_cache_generation, get_frame_cache_generation):
569 New.
570 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
571 (get_prev_frame_if_no_cycle): On exception, don't touch
572 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
573 * frame.h (get_frame_cache_generation): Declare.
574
90fcc466
TV
5752020-07-23 Tom de Vries <tdevries@suse.de>
576
577 PR tui/26282
578 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
579 New default constructor.
580
78344df7
AB
5812020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
582
583 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
584 exclude non-statement entries.
585
b089853a
KB
5862020-07-22 Kevin Buettner <kevinb@redhat.com>
587
588 * NEWS (New commands): Mention new command
589 "maintenance print core-file-backed-mappings".
590
09c2f5d4
KB
5912020-07-22 Kevin Buettner <kevinb@redhat.com>
592
593 * corelow.c (gdbcmd.h): Include.
594 (core_target::info_proc_mappings): New method.
595 (get_current_core_target): New function.
596 (maintenance_print_core_file_backed_mappings): New function.
597 (_initialize_corelow): Add core-file-backed-mappings to
598 "maint print" commands.
599
9c5ec5c2 6002020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 601
9c5ec5c2
KB
602 * linux-tdep.c (dump_note_entry_p): New function.
603 (linux_dump_mapping_p_ftype): New typedef.
604 (linux_find_memory_regions_full): Add new parameter,
605 should_dump_mapping_p.
606 (linux_find_memory_regions): Adjust call to
607 linux_find_memory_regions_full.
608 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
609 call to linux_find_memory_regions_full.
610
db082f59
KB
6112020-07-22 Kevin Buettner <kevinb@redhat.com>
612
613 * corelow.c (solist.h, unordered_map): Include.
614 (class core_target): Add field m_core_file_mappings and
615 method build_file_mappings.
616 (core_target::core_target): Call build_file_mappings.
617 (core_target::~core_target): Free memory associated with
618 m_core_file_mappings.
619 (core_target::build_file_mappings): New method.
620 (core_target::xfer_partial): Use m_core_file_mappings
621 for memory transfers.
622 * linux-tdep.c (linux_read_core_file_mappings): New
623 function.
624 (linux_core_info_proc_mappings): Rewrite to use
625 linux_read_core_file_mappings.
626 (linux_init_abi): Register linux_read_core_file_mappings.
627
7e183d27
KB
6282020-07-22 Kevin Buettner <kevinb@redhat.com>
629
630 * arch-utils.c (default_read_core_file_mappings): New function.
631 * arch-utils.c (default_read_core_file_mappings): Declare.
632 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
633 * gdbarch.h, gdbarch.c: Regenerate.
634
2735d421
KB
6352020-07-22 Kevin Buettner <kevinb@redhat.com>
636
637 PR corefiles/25631
638 * corelow.c (core_target:xfer_partial): Revise
639 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
640 case after first checking the stratum beneath the core
641 target.
642 (has_all_memory): Return true.
643 * target.c (raw_memory_xfer_partial): Revise comment
644 regarding use of has_all_memory.
645
e56cb451
KB
6462020-07-22 Kevin Buettner <kevinb@redhat.com>
647
648 * exec.h (section_table_xfer_memory): Revise declaration,
649 replacing section name parameter with an optional callback
650 predicate.
651 * exec.c (section_table_xfer_memory): Likewise.
652 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
653 of section_table_xfer_memory.
654
32fa152e
TT
6552020-07-22 Tom Tromey <tromey@adacore.com>
656
657 * mi/mi-cmd-stack.c (list_args_or_locals): Use
658 lookup_symbol_search_name.
659
a67a1c41
AB
6602020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
661
662 * python/py-registers.c (gdbpy_register_object_data_init): Remove
663 redundant local variable.
664 (gdbpy_get_register_descriptor): Extract descriptor vector as a
665 reference, not pointer, update code accordingly.
666
a7b4ff4f
SM
6672020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
668 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
669
670 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
671 * jit.c (jit_breakpoint_re_set_internal): Use the
672 `skip_jit_symbol_lookup` field.
673
2340e834
SM
6742020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
675 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
676
677 * jit.c (jit_read_descriptor): Define the descriptor address once,
678 use twice.
679 (jit_breakpoint_deleted): Move the declaration of the loop variable
680 `iter` into the loop header.
681 (jit_breakpoint_re_set_internal): Move the declaration of the local
682 variable `objf_data` to the first point of definition.
683 (jit_event_handler): Move the declaration of local variables
684 `code_entry`, `entry_addr`, and `objf` to their first point of use.
685 Rename `objf` to `jited`.
686
c1072906
SM
6872020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
688
689 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
690 Remove.
691 * jit.c (get_jiter_objfile_data): Update.
692
c8474dc3
TBA
6932020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
694 Simon Marchi <simon.marchi@polymtl.ca>
695
696 * jit.c (struct jit_program_space_data): Remove.
697 (jit_program_space_key): Remove.
698 (jiter_objfile_data::~jiter_objfile_data): Remove program space
699 stuff.
700 (get_jit_program_space_data): Remove.
701 (jit_breakpoint_deleted): Iterate on all of the program space's
702 objfiles.
703 (jit_inferior_init): Likewise.
704 (jit_breakpoint_re_set_internal): Likewise. Also change return
705 type to void.
706 (jit_breakpoint_re_set): Pass current_program_space to
707 jit_breakpoint_re_set_internal.
708
77208eb7
SM
7092020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
710
711 * jit.h (struct jiter_objfile_data) <cached_code_address,
712 jit_breakpoint>: Move to here from ...
713 * jit.c (jit_program_space_data): ... here.
714 (jiter_objfile_data::~jiter_objfile_data): Update.
715 (jit_breakpoint_deleted): Update.
716 (jit_breakpoint_re_set_internal): Update.
717
8c1c720f
SM
7182020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
719
720 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
721 checks.
722 (jit_read_descriptor): Remove NULL check.
723 (jit_event_handler): Add an assertion.
724
0e74a041
SM
7252020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
726
727 * jit.h (struct jit_objfile_data): Split into...
728 (struct jiter_objfile_data): ... this ...
729 (struct jited_objfile_data): ... and this.
730 * objfiles.h (struct objfile) <jit_data>: Remove.
731 <jiter_data, jited_data>: New fields.
732 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
733 (jiter_objfile_data::~jiter_objfile_data): ... this.
734 (get_jit_objfile_data): Rename to ...
735 (get_jiter_objfile_data): ... this.
736 (add_objfile_entry): Update.
737 (jit_read_descriptor): Use get_jiter_objfile_data.
738 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
739 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
740 (jit_inferior_exit_hook): Use objfile's jited_data field.
741
238b5c9f
SM
7422020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
743
744 * jit.h: Forward-declare `struct minimal_symbol`.
745 (struct jit_objfile_data): Migrate to here from jit.c; also add a
746 constructor, destructor, and an objfile* field.
747 * jit.c (jit_objfile_data): Remove.
748 (struct jit_objfile_data): Migrate from here to jit.h.
749 (jit_objfile_data::~jit_objfile_data): New destructor
750 implementation with code moved from free_objfile_data.
751 (free_objfile_data): Delete.
752 (get_jit_objfile_data): Update to use the jit_data field of objfile.
753 (jit_find_objf_with_entry_addr): Ditto.
754 (jit_inferior_exit_hook): Ditto.
755 (_initialize_jit): Remove the call to
756 register_objfile_data_with_cleanup.
757 * objfiles.h (struct objfile) <jit_data>: New field.
758
fe053b9e
TBA
7592020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
760
761 * jit.h: Forward-declare `struct objfile`.
762 (jit_event_handler): Add a second parameter, the JITer objfile.
763 * jit.c (jit_read_descriptor): Change the signature to take the
764 JITer objfile as an argument instead of the jit_program_space_data.
765 (jit_inferior_init): Update the call to jit_read_descriptor.
766 (jit_event_handler): Use the new JITer objfile argument when calling
767 jit_read_descriptor.
768 * breakpoint.c (handle_jit_event): Update the call to
769 jit_event_handler to pass the JITer objfile.
770
4cec0c66
JB
7712020-07-21 John Baldwin <jhb@FreeBSD.org>
772
773 * gdbarch.c: Regenerate.
774 * gdbarch.h: Regenerate.
775 * gdbarch.sh (handle_segmentation_fault): Remove method.
776 * infrun.c (handle_segmentation_fault): Remove.
777 (print_signal_received_reason): Remove call to
778 handle_segmentation_fault.
779
0e42f66a
JB
7802020-07-21 John Baldwin <jhb@FreeBSD.org>
781
782 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
783 Rename to sparc64_linux_report_signal_info and add siggnal
784 argument.
785 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
786 instead of sparc64_linux_handle_segmentation_fault.
787
77bdfeb2
JB
7882020-07-21 John Baldwin <jhb@FreeBSD.org>
789
790 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
791 i386_linux_report_signal_info instead of
792 i386_linux_handle_segmentation_fault.
793 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
794 to i386_linux_report_signal_info and add siggnal argument.
795 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
796 of i386_linux_handle_segmentation_fault.
797 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
798 to i386_linux_report_signal_info and add siggnal argument.
799
ad97bfc5
JB
8002020-07-21 John Baldwin <jhb@FreeBSD.org>
801
802 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
803 hook if present.
804
272bb05c
JB
8052020-07-21 John Baldwin <jhb@FreeBSD.org>
806
807 * gdbarch.c: Regenerate.
808 * gdbarch.h: Regenerate.
809 * gdbarch.sh (report_signal_info): New method.
810 * infrun.c (print_signal_received_reason): Invoke gdbarch
811 report_signal_info hook if present.
812
baf8791e
AB
8132020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
814
815 * python/py-registers.c : Add 'unordered_map' include.
816 (gdbpy_new_reggroup): Renamed to...
817 (gdbpy_get_reggroup): ...this. Update to only create register
818 group descriptors when needed.
819 (gdbpy_reggroup_iter_next): Update.
820
f7306dac
AB
8212020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
822
823 * python/py-registers.c (gdbpy_register_object_data): New static
824 global.
825 (gdbpy_register_object_data_init): New function.
826 (gdbpy_new_register_descriptor): Renamed to...
827 (gdbpy_get_register_descriptor): ...this, and update to reuse
828 existing register descriptors where possible.
829 (gdbpy_register_descriptor_iter_next): Update.
830 (gdbpy_initialize_registers): Register new gdbarch data.
831
05c309a8
SM
8322020-07-21 Simon Marchi <simon.marchi@efficios.com>
833
834 * linux-nat.c (stopped_pids): Make static.
835
d1fd641e
SM
8362020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
837
838 PR ada/26235
839 * gdbtypes.c (ada_discrete_type_low_bound,
840 ada_discrete_type_high_bound): Handle undefined bounds.
841
1de14d77
KR
8422020-07-21 Kamil Rytarowski <n54@gmx.com>
843
844 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
845 declaration.
846 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
847 function.
848
ed810cc7
JB
8492020-07-20 John Baldwin <jhb@FreeBSD.org>
850
851 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
852 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
853 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
854 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
855 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
856 method.
857
ae5369e7
LC
8582020-07-20 Ludovic Courtès <ludo@gnu.org>
859
860 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
861 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
862 which are deprecated in Guile 3.0.
863 * configure.ac (try_guile_versions): Add "guile-3.0".
864 * configure (try_guile_versions): Regenerate.
865 * NEWS: Update entry.
866
68cf161c
LC
8672020-07-20 Ludovic Courtès <ludo@gnu.org>
868 Doug Evans <dje@google.com>
869
870 PR gdb/21104
871 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
872 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
873 USING_GUILE_BEFORE_2_2.
874 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
875 Change type to 'scm_t_port_type *'.
876 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
877 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
878 parameter and honor it. Update callers.
879 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
880 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
881 functions.
882 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
883 USING_GUILE_BEFORE_2_2.
884 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
885 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
886 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
887 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
888 and 'SCM_PORT_TYPE'.
889 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
890 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
891 (gdbscm_memory_port_read, gdbscm_memory_port_write)
892 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
893 [!USING_GUILE_BEFORE_2_2]: New functions.
894 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
895 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
896 'gdbscm_memory_port_read'.
897 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
898 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
899 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
900 function.
901 (ioscm_init_memory_port): Remove.
902 (ioscm_init_memory_port_stream): New function
903 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
904 function.
905 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
906 Return scm_from_uint (0).
907 (gdbscm_set_memory_port_read_buffer_size_x)
908 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
909 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
910 Return scm_from_uint (0).
911 (gdbscm_set_memory_port_write_buffer_size_x)
912 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
913 * configure.ac (try_guile_versions): Add "guile-2.2".
914 * configure: Regenerate.
915 * NEWS: Add entry.
916
aee91db3
TT
9172020-07-18 Tom Tromey <tom@tromey.com>
918
919 * linux-nat.c (linux_multi_process): Remove.
920 (linux_nat_target::supports_multi_process): Return true.
921
0e267416
AB
9222020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
923
924 * arch/riscv.c (riscv_tdesc_cache): Change map type.
925 (riscv_lookup_target_description): Return pointer out of
926 unique_ptr.
927 * target-descriptions.c (allocate_target_description): Add
928 comment.
929 (target_desc_deleter::operator()): Likewise.
930 * target-descriptions.h (struct target_desc_deleter): Moved to
931 gdbsupport/tdesc.h.
932 (target_desc_up): Likewise.
933
f80c8ec4
TT
9342020-07-17 Tom Tromey <tromey@adacore.com>
935
936 * linux-nat.c (linux_nat_target::supports_non_stop)
937 (linux_nat_target::always_non_stop_p): Use "true".
938 (linux_nat_target::supports_disable_randomization): Use "true" and
939 "false".
940
d0ce17d8
CT
9412020-07-16 Caroline Tice <cmtice@google.com>
942
943 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
944 (RNGLIST_HEADER_SIZE64): New constant definition.
945 (struct dwop_section_names): Add rnglists_dwo.
946 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
947 (struct loclist_header): Rename to 'loclists_rnglists_header'.
948 (struct dwo_sections): Add rnglists field.
949 (read_attribut_reprocess): Add tag parameter.
950 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
951 (cu_debug_rnglists_section): New function (decl & definition).
952 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
953 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
954 die whose range is being checked; get rnglist section from
955 cu_debug_rnglists_section, to get from either objfile or dwo file as
956 appropriate. Add cases for DW_RLE_base_addressx,
957 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
958 the base address to DW_RLE_offset_pairs (not to all ranges), moving
959 test inside if-condition and updating complaint message.
960 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
961 dwarf2_rnglists_process.
962 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
963 dwarf2_ranges_process.
964 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
965 need_ranges_base and update comment appropriately. Also pass die tag
966 to dwarf2_ranges_read.
967 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
968 need_ranges_base and update comment appropriately. Also pass die tag
969 to dwarf2_ranges_process.
970 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
971 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
972 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
973 need_ranges_base and update comment appropriately. Also pass die tag
974 to read_attribute_reprocess and dwarf2_ranges_read.
975 (read_loclist_header): Rename function to read_loclists_rnglists_header,
976 and update function comment appropriately.
977 (read_loclist_index): Call read_loclists_rnglists_header instead of
978 read_loclist_header.
979 (read_rnglist_index): New function.
980 (read_attribute_reprocess): Add tag parameter. Add code for
981 DW_FORM_rnglistx, passing tag to read_rnglist_index.
982 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
983
3dcc261c
AB
9842020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
985
986 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
987 being resolved.
988
ccb9eba6
AB
9892020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
990
991 * arch-utils.c (show_architecture): Update formatting of messages.
992
cf88be68
SM
9932020-07-12 Simon Marchi <simon.marchi@efficios.com>
994
995 * gdbtypes.h (struct type) <bounds>: Handle array and string
996 types.
997 * ada-lang.c (assign_aggregate): Use type::bounds on
998 array/string type.
999 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
1000 * c-varobj.c (c_number_of_children): Likewise.
1001 (c_describe_child): Likewise.
1002 * eval.c (evaluate_subexp_for_sizeof): Likewise.
1003 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
1004 (f_type_print_base): Likewise.
1005 * f-valprint.c (f77_array_offset_tbl): Likewise.
1006 (f77_get_upperbound): Likewise.
1007 (f77_print_array_1): Likewise.
1008 * guile/scm-type.c (gdbscm_type_range): Likewise.
1009 * m2-typeprint.c (m2_array): Likewise.
1010 (m2_is_long_set_of_type): Likewise.
1011 * m2-valprint.c (get_long_set_bounds): Likewise.
1012 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1013 * python/py-type.c (typy_range): Likewise.
1014 * rust-lang.c (rust_internal_print_type): Likewise.
1015 * type-stack.c (type_stack::follow_types): Likewise.
1016 * valarith.c (value_subscripted_rvalue): Likewise.
1017 * valops.c (value_cast): Likewise.
1018
509971ae
SM
10192020-07-12 Simon Marchi <simon.marchi@efficios.com>
1020
1021 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
1022 callers to use the equivalent accessor methods.
1023
107406b7
SM
10242020-07-12 Simon Marchi <simon.marchi@efficios.com>
1025
1026 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
1027 (struct type) <bit_stride>: New method.
1028 (TYPE_BIT_STRIDE): Remove.
1029 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
1030
bb789949
SM
10312020-07-12 Simon Marchi <simon.marchi@efficios.com>
1032
1033 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
1034 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
1035 callers to use the equivalent accessor methods instead.
1036
39498edb
SM
10372020-07-12 Simon Marchi <simon.marchi@efficios.com>
1038
1039 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
1040 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
1041 callers to use the equivalent accessor methods instead.
1042
3b606f38
SM
10432020-07-12 Simon Marchi <simon.marchi@efficios.com>
1044
1045 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
1046 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
1047 to use dynamic_prop::kind.
1048
064d9cb9
SM
10492020-07-12 Simon Marchi <simon.marchi@efficios.com>
1050
1051 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
1052 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
1053 to get the bound property's kind and check against
1054 PROP_UNDEFINED.
1055
5537ddd0
SM
10562020-07-12 Simon Marchi <simon.marchi@efficios.com>
1057
1058 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
1059 all callers to use type::range_bounds followed by
1060 dynamic_prop::{low,high}.
1061
8c2e4e06
SM
10622020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1063
1064 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
1065 const_val, set_const_val, baton, set_locexpr, set_loclist,
1066 set_addr_offset, variant_parts, set_variant_parts,
1067 original_type, set_original_type>: New methods.
1068 <kind>: Rename to...
1069 <m_kind>: ... this. Update all users to use the new methods
1070 instead.
1071 <data>: Rename to...
1072 <m_data>: ... this. Update all users to use the new methods
1073 instead.
1074
7c6f2712
SM
10752020-07-12 Simon Marchi <simon.marchi@efficios.com>
1076
1077 * gdbtypes.c (get_discrete_bounds): Return failure if
1078 the range type's bounds are not both defined and constant
1079 values.
1080 (get_array_bounds): Update comment. Remove undefined bound check.
1081
599088e3
SM
10822020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1083
1084 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
1085 the type::bounds method directly.
1086
c4dfcb36
SM
10872020-07-12 Simon Marchi <simon.marchi@efficios.com>
1088
1089 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
1090 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
1091 are used to set the range type's bounds to use set_bounds.
1092
0a278aa7
PW
10932020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1094
1095 * exec.c (_initialize_exec): Update exec-file-mismatch help.
1096
cce20f10
PA
10972020-07-10 Pedro Alves <pedro@palves.net>
1098
1099 * gdbthread.h (inferior_ref): Define.
1100 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
1101 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
1102 * thread.c
1103 (scoped_restore_current_thread::restore):
1104 Adjust to gdb::ref_ptr.
1105 (scoped_restore_current_thread::~scoped_restore_current_thread):
1106 Remove manual decref handling.
1107 (scoped_restore_current_thread::scoped_restore_current_thread):
1108 Adjust to use
1109 inferior_ref::new_reference/thread_info_ref::new_reference.
1110 Incref the thread before calling get_frame_id instead of after.
1111 Let TARGET_CLOSE_ERROR propagate.
1112
6d7aa592
PA
11132020-07-10 Pedro Alves <pedro@palves.net>
1114
1115 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
1116 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
1117 NOT_AVAILABLE_ERROR.
1118 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
1119 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
1120
b3e3a4c1
SM
11212020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
1122 Pedro Alves <pedro@palves.net>
1123
1124 PR gdb/26199
1125 * infrun.c (threads_are_resumed_pending_p): Delete.
1126 (do_target_wait): Remove threads_are_executing and
1127 threads_are_resumed_pending_p checks from the inferior_matches
1128 lambda. Update comments.
1129
d6cc5d98
PA
11302020-07-10 Pedro Alves <pedro@palves.net>
1131
1132 PR gdb/26199
1133 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
1134 executing threads.
1135
7d3badc6
PA
11362020-07-10 Pedro Alves <pedro@palves.net>
1137
1138 PR gdb/26199
1139 * infrun.c (handle_no_resumed): Handle multiple targets.
1140
42bd97a6
PA
11412020-07-10 Pedro Alves <pedro@palves.net>
1142
1143 PR gdb/26199
1144 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
1145 target_is_async_p.
1146
43667cc6
PA
11472020-07-10 Pedro Alves <pedro@palves.net>
1148
1149 PR gdb/26199
1150 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
1151 threads, not all threads.
1152
96118d11
PA
11532020-07-10 Pedro Alves <pedro@palves.net>
1154
1155 PR gdb/26199
1156 * remote.c (remote_target::open_1): Pass remote target pointer as
1157 data to create_async_event_handler.
1158 (remote_async_inferior_event_handler): Mark async event handler
1159 before returning if the remote target still has either pending
1160 events or unacknowledged notifications.
1161
54904d81
JB
11622020-07-10 John Baldwin <jhb@FreeBSD.org>
1163
1164 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
1165 declaration.
1166 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
1167 function.
1168
f37e5866
JB
11692020-07-09 John Baldwin <jhb@FreeBSD.org>
1170
1171 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
1172 inferior_ptid.
1173
fc238d4a
JB
11742020-07-09 John Baldwin <jhb@FreeBSD.org>
1175
1176 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
1177 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
1178 AT_FREEBSD_PS_STRINGS.
1179
6e2469ff
HD
11802020-07-08 Hannes Domani <ssbssa@yahoo.de>
1181
1182 * auto-load.c (auto_load_objfile_script_1): Convert drive part
1183 of debugfile path on Windows.
1184
d1076c41
JB
11852020-07-08 John Baldwin <jhb@FreeBSD.org>
1186
1187 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
1188 argument to 'data'.
1189
15f3b077
TT
11902020-07-08 Tom Tromey <tromey@adacore.com>
1191
1192 * ada-lang.c (ada_exception_message_1): Use read_memory.
1193
9fc501fd
AB
11942020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1195
1196 PR python/22748
1197 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
1198 special handling for inline frames.
1199 * findvar.c (value_of_register_lazy): Skip inline frames when
1200 creating lazy register values.
1201 * frame.c (frame_id_computed_p): Delete definition.
1202 * frame.h (frame_id_computed_p): Delete declaration.
1203
64cb3757
AB
12042020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1205
1206 * NEWS: Mention additions to Python API.
1207 * python/py-arch.c (archpy_register_groups): New function.
1208 (arch_object_methods): Add 'register_groups' method.
1209 * python/py-registers.c (reggroup_iterator_object): New struct.
1210 (reggroup_object): New struct.
1211 (gdbpy_new_reggroup): New function.
1212 (gdbpy_reggroup_to_string): New function.
1213 (gdbpy_reggroup_name): New function.
1214 (gdbpy_reggroup_iter): New function.
1215 (gdbpy_reggroup_iter_next): New function.
1216 (gdbpy_new_reggroup_iterator): New function
1217 (gdbpy_initialize_registers): Register new types.
1218 (reggroup_iterator_object_type): Define new Python type.
1219 (gdbpy_reggroup_getset): New static global.
1220 (reggroup_object_type): Define new Python type.
1221 * python/python-internal.h
1222
0f767f94
AB
12232020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1224
1225 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
1226 * python/py-arch.c (archpy_registers): New function.
1227 (arch_object_methods): Add 'registers' method.
1228 * python/py-registers.c: New file.
1229 * python/python-internal.h
1230 (gdbpy_new_register_descriptor_iterator): Declare.
1231 (gdbpy_initialize_registers): Declare.
1232 * python/python.c (do_start_initialization): Call
1233 gdbpy_initialize_registers.
1234 * NEWS: Mention additions to the Python API.
1235
87dbc774
AB
12362020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1237
1238 * NEWS: Mention new Python API method.
1239 * python/py-unwind.c (pending_framepy_architecture): New function.
1240 (pending_frame_object_methods): Add architecture method.
1241
3bc98c0c
AB
12422020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1243
1244 * gdbarch.c: Regenerate.
1245 * gdbarch.h: Regenerate.
1246 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
1247 (gdbarch_data): Use internal_error for the case where
1248 deprecated_set_gdbarch_data was originally needed.
1249 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
1250 and use passed in obstack.
1251 (libunwind_frame_set_descr): Should no longer get back NULL from
1252 gdbarch_data.
1253 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
1254 type.
1255 * user-regs.c (user_regs_init): Update parameters, and use passed
1256 in obstack.
1257 (user_reg_add): Should no longer get back NULL from gdbarch_data.
1258 (_initialize_user_regs): Register as a pre-init gdbarch data type.
1259
d8cc8af6
TV
12602020-07-06 Tom de Vries <tdevries@suse.de>
1261
1262 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
1263 End-Of-Sequence in lte_is_less_than.
1264 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
1265 "gdb: Don't reorder line table entries too much when sorting".
1266
947f7597
TV
12672020-07-06 Tom de Vries <tdevries@suse.de>
1268
1269 PR tui/26205
1270 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
1271
1e7c1b22
TV
12722020-07-05 Tom de Vries <tdevries@suse.de>
1273
1274 PR build/26187
1275 * inferior.h (struct infcall_suspend_state_deleter): If available, use
1276 std::uncaught_exceptions instead of deprecated
1277 std::uncaught_exception.
1278
a36158ec
SM
12792020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1280
1281 * macroexp.h (macro_stringify): Return
1282 gdb::unique_xmalloc_ptr<char>.
1283 * macroexp.c (macro_stringify): Likewise.
1284 * macrotab.c (fixup_definition): Update.
1285
14d960c8
SM
12862020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1287
1288 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
1289 (lex_one_token): Update.
1290 * macroexp.c (struct macro_buffer) <release>: Return
1291 gdb::unique_xmalloc_ptr<char>.
1292 (macro_stringify): Update.
1293 (macro_expand): Update.
1294 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
1295 * macroexp.h (macro_expand_next): Likewise.
1296
211d5b1c
SM
12972020-07-02 Simon Marchi <simon.marchi@efficios.com>
1298
1299 * macroexp.h (macro_lookup_ftype): Remove.
1300 (macro_expand, macro_expand_once, macro_expand_next): Remove
1301 lookup function parameters, add scope parameter.
1302 * macroexp.c (scan, substitute_args, expand, maybe_expand,
1303 macro_expand, macro_expand_once, macro_expand_next): Likewise.
1304 * macroscope.h (standard_macro_lookup): Change parameter type
1305 to macro_scope.
1306 * macroscope.c (standard_macro_lookup): Likewise.
1307 * c-exp.y (lex_one_token): Update.
1308 * macrocmd.c (macro_expand_command): Likewise.
1309 (macro_expand_once_command): Likewise.
1310
b1a35af2
SM
13112020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1312
1313 * inf-loop.c (inferior_event_handler): Remove client_data param.
1314 * inf-loop.h (inferior_event_handler): Likewise.
1315 * infcmd.c (step_1): Adjust.
1316 * infrun.c (proceed): Adjust.
1317 (fetch_inferior_event): Remove client_data param.
1318 (infrun_async_inferior_event_handler): Adjust.
1319 * infrun.h (fetch_inferior_event): Remove `void *` param.
1320 * linux-nat.c (handle_target_event): Adjust.
1321 * record-btrace.c (record_btrace_handle_async_inferior_event):
1322 Adjust.
1323 * record-full.c (record_full_async_inferior_event_handler):
1324 Adjust.
1325 * remote.c (remote_async_inferior_event_handler): Adjust.
1326
1cdf9e33
TT
13272020-07-01 Tom Tromey <tom@tromey.com>
1328
1329 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
1330 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
1331
32c1e210
TT
13322020-07-01 Tom Tromey <tom@tromey.com>
1333
1334 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
1335 tui_gen_win_info.
1336 (tui_win_info::make_window): Merge with
1337 tui_gen_win_info::make_window.
1338 (tui_win_info::make_visible): Move from tui_gen_win_info.
1339 * tui/tui-win.c (tui_win_info::max_width): Move from
1340 tui_gen_win_info.
1341 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
1342 type.
1343 <window_factory>: Likewise.
1344 * tui/tui-layout.c (tui_win_info::resize): Move from
1345 tui_gen_win_info.
1346 (make_standard_window): Change return type.
1347 (get_locator_window, tui_get_window_by_name): Likewise.
1348 (tui_layout_window::apply): Remove a cast.
1349 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
1350 (struct tui_win_info): Merge with tui_gen_win_info.
1351 (struct tui_gen_win_info): Remove.
1352
a30cb6da
TT
13532020-07-01 Tom Tromey <tom@tromey.com>
1354
1355 * tui/tui-stack.h (struct tui_locator_window): Derive from
1356 tui_win_info.
1357 <do_scroll_horizontal, do_scroll_vertical>: New methods.
1358 <can_box>: New method.
1359
1eb2161f
TT
13602020-07-01 Tom Tromey <tom@tromey.com>
1361
1362 * tui/tui-stack.h (struct tui_locator_window): Remove body.
1363
7134f2eb
TT
13642020-07-01 Tom Tromey <tom@tromey.com>
1365
1366 * tui/tui-regs.c (tui_data_window::display_registers_from)
1367 (tui_data_window::display_registers_from)
1368 (tui_data_window::first_data_item_displayed)
1369 (tui_data_window::delete_data_content_windows): Update.
1370 (tui_data_window::refresh_window, tui_data_window::no_refresh):
1371 Remove.
1372 (tui_data_window::check_register_values): Update.
1373 (tui_data_item_window::rerender): Add parameters. Update.
1374 (tui_data_item_window::refresh_window): Remove.
1375 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
1376 virtual.
1377 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
1378 tui_gen_win_info.
1379 <refresh_window, max_height, min_height>: Remove.
1380 <rerender>: Add parameters.
1381 <x, y, visible>: New members.
1382 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
1383 <m_item_width>: New member.
1384
22b7b041
TT
13852020-07-01 Tom Tromey <tom@tromey.com>
1386
1387 * tui/tui-regs.c (tui_data_window::show_register_group)
1388 (tui_data_window::check_register_values): Update.
1389 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
1390 from item_no.
1391
c9753adb
TT
13922020-07-01 Tom Tromey <tom@tromey.com>
1393
1394 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
1395 useless "if".
1396
9ab26b4a
TT
13972020-07-01 Tom Tromey <tom@tromey.com>
1398
1399 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
1400 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
1401
e555083f
TT
14022020-07-01 Tom Tromey <tom@tromey.com>
1403
1404 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
1405 * tui/tui-winsource.h (enum tui_line_or_address_kind)
1406 (struct tui_line_or_address): Move from tui-data.h.
1407 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
1408 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
1409 (tui_cmd_window, tui_source_window_base, tui_source_window)
1410 (tui_disasm_window): Don't declare.
1411 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
1412 to tui-winsource.h.
1413 (SINGLE_KEY): Move to tui-stack.c.
1414
7a02bab7
TT
14152020-07-01 Tom Tromey <tom@tromey.com>
1416
1417 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
1418 std::string.
1419 * tui/tui-regs.c (class tab_expansion_file): New.
1420 (tab_expansion_file::write): New method.
1421 (tui_register_format): Change return type. Use
1422 tab_expansion_file.
1423 (tui_get_register, tui_data_window::display_registers_from)
1424 (tui_data_item_window::rerender): Update.
1425 * tui/tui-io.h (tui_expand_tabs): Don't declare.
1426 * tui/tui-io.c (tui_expand_tabs): Remove.
1427
ea68593b
TT
14282020-07-01 Tom Tromey <tom@tromey.com>
1429
1430 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
1431
a8caed5d
FS
14322020-07-01 Fangrui Song <maskray@google.com>
1433
1434 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
1435
9cdf9820
AKS
14362020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1437
1438 * dwarf2/read.c (set_die_type): Removed conditions to restrict
1439 forms for DW_AT_associated and DW_AT_allocated attributes,
1440 which is already checked in function attr_to_dynamic_prop.
1441
a1520ad8
TT
14422020-06-30 Tom Tromey <tromey@adacore.com>
1443
1444 * dwarf2/read.c (quirk_rust_enum): Correctly call
1445 alloc_rust_variant for default-less enum.
1446
5ac58899
TT
14472020-06-30 Tom Tromey <tromey@adacore.com>
1448
1449 PR build/26183:
1450 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
1451 gdb::to_string.
1452
19b187a9
SM
14532020-06-29 Simon Marchi <simon.marchi@efficios.com>
1454
1455 * gdbarch.sh (displaced_step_copy_insn): Update doc.
1456 * gdbarch.h: Re-generate.
1457
cd4c4c07
TT
14582020-06-28 Tom Tromey <tom@tromey.com>
1459
1460 * command.h (cmd_types): Remove.
1461 (cmd_type): Don't declare.
1462 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
1463 typedef.
1464 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
1465 * cli/cli-decode.c (cmd_type): Remove.
1466
05779d57
PA
14672020-06-27 Pedro Alves <palves@redhat.com>
1468
1469 * fork-child.c (prefork_hook): Adjust.
1470 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
1471 Delete.
1472 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
1473 * inferior.c (inferior::set_tty, inferior::tty): New methods.
1474 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
1475 Remove declarations.
1476 (struct inferior) <set_tty, tty>: New methods.
1477 (struct inferior) <terminal>: Rename to ...
1478 (struct inferior) <m_terminal>: ... this and make private.
1479 * main.c (captured_main_1): Adjust.
1480 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
1481 (mi_cmd_inferior_tty_show): Adjust.
1482 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
1483 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
1484
1776e3e5
NA
14852020-06-26 Nick Alcock <nick.alcock@oracle.com>
1486
1487 * configure.ac: Add --enable-libctf: handle --disable-static
1488 properly.
1489 * acinclude.m4: sinclude ../config/enable.m4.
1490 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
1491 (LIBCTF): Substitute in.
1492 (CTF_DEPS): New, likewise.
1493 (CLIBS): libctf needs symbols from libbfd: move earlier.
1494 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
1495 flags.
1496 * ctfread.c: Surround in ENABLE_LIBCTF.
1497 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
1498 * configure: Regenerate.
1499 * config.in: Likewise.
1500
58373b80
SM
15012020-06-25 Simon Marchi <simon.marchi@efficios.com>
1502
1503 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
1504
277474ee
SM
15052020-06-25 Simon Marchi <simon.marchi@efficios.com>
1506
1507 * inferior.h (struct inferior) <terminal>: Change type to
1508 gdb::unique_xmalloc_ptr<char>.
1509 * inferior.c (inferior::~inferior): Don't free inf->terminal.
1510 * infcmd.c (set_inferior_io_terminal): Don't free terminal
1511 field, adjust to unique pointer.
1512 (get_inferior_io_terminal): Adjust to unique pointer.
1513
6d74da72
AB
15142020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1515
1516 * riscv-tdep.c (riscv_print_registers_info): Loop over all
1517 registers, not just the known core set of registers.
1518
2e52d038
AB
15192020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1520
1521 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
1522 fflags, frm, and fcsr registers.
1523 (riscv_register_reggroup_p): Remove unknown CSRs from save and
1524 restore groups.
1525 (riscv_tdesc_unknown_reg): New function.
1526 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
1527 tdesc_use_registers.
1528 * riscv-tdep.h (struct gdbarch_tdep): Add
1529 unknown_csrs_first_regnum, unknown_csrs_count,
1530 duplicate_fflags_regnum, duplicate_frm_regnum, and
1531 duplicate_fcsr_regnum fields.
1532
be64fd07
AB
15332020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1534
1535 * target-descriptions.c (tdesc_use_registers): Add new parameter a
1536 callback, use the callback (when not null) to help number unknown
1537 registers.
1538 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
1539 (tdesc_use_registers): Add extra parameter to declaration.
1540
3b9fce96
AB
15412020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1542
1543 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
1544 in the file.
1545 (class riscv_pending_register_alias): Likewise.
1546 (riscv_register_feature::register_info): Change 'required_p' field
1547 to 'required', and change its type. Add 'check' member function.
1548 (riscv_register_feature::register_info::check): Define new member
1549 function.
1550 (riscv_xreg_feature): Change initialisation of 'required' field.
1551 (riscv_freg_feature): Likewise.
1552 (riscv_virtual_feature): Likewise.
1553 (riscv_csr_feature): Likewise.
1554 (riscv_check_tdesc_feature): Take extra parameter, the csr
1555 tdesc_feature, rewrite the function to use the new
1556 riscv_register_feature::register_info::check function.
1557 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
1558
865bad26
AB
15592020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1560
1561 * features/Makefile: Remove all references to the deleted files
1562 below.
1563 * features/riscv/32bit-csr.c: Deleted.
1564 * features/riscv/32bit-csr.xml: Deleted.
1565 * features/riscv/64bit-csr.c: Deleted.
1566 * features/riscv/64bit-csr.xml: Deleted.
1567 * features/riscv/rebuild-csr-xml.sh: Deleted.
1568
ed69cbc8
AB
15692020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1570
1571 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
1572 whitespace error for declaration of names member variable.
1573 (struct riscv_register_feature): Add new prefer_first_name member
1574 variable, and fix whitespace error in declaration of registers.
1575 (riscv_xreg_feature): Initialize prefer_first_name field.
1576 (riscv_freg_feature): Likewise.
1577 (riscv_virtual_feature): Likewise.
1578 (riscv_csr_feature): Likewise.
1579 (riscv_register_name): Expand on comments. Remove register name
1580 modifications for CSR and virtual registers.
1581
4445e8f5
AB
15822020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1583
1584 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
1585 errors.
1586
767a879e
AB
15872020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1588
1589 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
1590 riscv-opc.h.
1591 (class riscv_pending_register_alias): New class.
1592 (riscv_check_tdesc_feature): Take vector of pending aliases and
1593 populate it as appropriate.
1594 (riscv_setup_register_aliases): Delete.
1595 (riscv_gdbarch_init): Create vector of pending aliases and pass it
1596 to riscv_check_tdesc_feature in all cases. Use the vector to
1597 create the register aliases.
1598
bb6e55f3
RO
15992020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1600
1601 * sol2-tdep.c (sol2_static_transform_name): Remove.
1602 (sol2_init_abi): Don't register it.
1603 * gdbarch.sh (static_transform_name): Remove.
1604 * gdbarch.c, gdbarch.h: Regenerate.
1605
1606 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
1607 gdbarch_static_transform_name.
1608 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
1609 * stabsread.c (define_symbol) <'X'>: Remove.
1610 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
1611 handling.
1612 <'V'>: Likewise.
1613 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
1614 <'S'>: Remove call to gdbarch_static_transform_name.
1615
c6d36836
RO
16162020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1617
1618 * procfs.c (procfs_pre_trace): New function.
1619 (procfs_target::create_inferior): Pass it to fork_inferior.
1620
a7e6196b
RO
16212020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1622
1623 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
1624 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
1625 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
1626 sol2-tdep.o, sparc-sol2-tdep.o.
1627 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
1628 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
1629 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
1630 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
1631
d412e696
RO
16322020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1633
1634 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
1635 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
1636 Call sol2_init_abi.
1637 Remove calls to set_gdbarch_skip_solib_resolver,
1638 set_gdbarch_core_pid_to_str.
1639 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
1640 (i386_sol2_static_transform_name): Remove.
1641 (i386_sol2_init_abi): Call sol2_init_abi.
1642 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1643 set_gdbarch_static_transform_name,
1644 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1645 Use sol2_sigtramp_p.
1646 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
1647 (sol2_sigtramp_p): New function.
1648 (sol2_static_transform_name): New function.
1649 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
1650 (sol2_init_abi): New function.
1651 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
1652 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
1653 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
1654 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
1655 (sparc_sol2_static_transform_name): Remove.
1656 (sparc32_sol2_init_abi): Call sol2_init_abi.
1657 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1658 set_gdbarch_static_transform_name,
1659 set_gdbarch_skip_solib_resolver,
1660 set_gdbarch_core_pid_to_str.
1661 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
1662 (sparc_sol2_static_transform_name): Remove
1663 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
1664 call sol2_sigtramp_p.
1665 (sparc64_sol2_init_abi): Call sol2_init_abi.
1666 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1667 set_gdbarch_static_transform_name,
1668 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1669
a8654e7d
PW
16702020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1671
1672 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
1673 * exec.c (validate_exec_file): If from_tty, set both
1674 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
1675 * symfile.c (symbol_file_add_with_addrs): if always_confirm
1676 and from_tty, unconditionally ask a confirmation.
1677
caa7fd04
AB
16782020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1679
1680 * target-descriptions.c (tdesc_architecture_name): Protect against
1681 NULL pointer dereference.
1682 (maint_print_xml_tdesc_cmd): New function.
1683 (_initialize_target_descriptions): Register new 'maint print
1684 xml-tdesc' command and give it the filename completer.
1685 * NEWS: Mention new 'maint print xml-tdesc' command.
1686
fbf42f4e
AB
16872020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1688
1689 * target-descriptions.c (class tdesc_compatible_info): New class.
1690 (struct target_desc): Change type of compatible vector.
1691 (tdesc_compatible_p): Update for change in type of
1692 target_desc::compatible.
1693 (tdesc_compatible_info_list): New function.
1694 (tdesc_compatible_info_arch_name): New function.
1695 (tdesc_add_compatible): Update for change in type of
1696 target_desc::compatible.
1697 (print_c_tdesc::visit_pre): Likewise.
1698
20821f4e
AB
16992020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1700
1701 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
1702 whitespace to underscore.
1703 (maint_print_c_tdesc_cmd): Use fake filename for target
1704 descriptions that came from the target.
1705 (_initialize_target_descriptions): Add filename command completion
1706 for 'maint print c-tdesc'.
1707
1fb5ee62
SM
17082020-06-23 Simon Marchi <simon.marchi@efficios.com>
1709
1710 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
1711 lines.
1712
fc3ecb3e
SM
17132020-06-23 Simon Marchi <simon.marchi@efficios.com>
1714
1715 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
1716 lines.
1717 (dwarf2_find_location_expression): Likewise.
1718 (call_site_parameter_matches): Likewise.
1719 (dwarf2_compile_expr_to_ax): Likewise.
1720 (disassemble_dwarf_expression): Likewise.
1721 (loclist_describe_location): Likewise.
1722
236ef034
PA
17232020-06-23 Pedro Alves <palves@redhat.com>
1724
1725 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
1726 progspace-and-thread.h. Include scoped-mock-context.h instead.
1727 (register_to_value_test): Use scoped_mock_context.
1728 * regcache.c: Include "scoped-mock-context.h".
1729 (cooked_read_test): Don't error out if a target is already pushed.
1730 Use scoped_mock_context. Adjust.
1731 * scoped-mock-context.h: New file.
1732
39e7ecca
AB
17332020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1734
1735 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
1736 initializer.
1737 (ada_language::is_string_type_p): New member function.
1738 * c-lang.c (c_language_data): Delete la_is_string_type_p
1739 initializer.
1740 (cplus_language_data): Likewise.
1741 (asm_language_data): Likewise.
1742 (minimal_language_data): Likewise.
1743 * d-lang.c (d_language_data): Likewise.
1744 * f-lang.c (f_is_string_type_p): Delete function, implementation
1745 moved to f_language::is_string_type_p.
1746 (f_language_data): Delete la_is_string_type_p initializer.
1747 (f_language::is_string_type_p): New member function,
1748 implementation from f_is_string_type_p.
1749 * go-lang.c (go_is_string_type_p): Delete function, implementation
1750 moved to go_language::is_string_type_p.
1751 (go_language_data): Delete la_is_string_type_p initializer.
1752 (go_language::is_string_type_p): New member function,
1753 implementation from go_is_string_type_p.
1754 * language.c (language_defn::is_string_type_p): Define new member
1755 function.
1756 (default_is_string_type_p): Make static, add comment copied from
1757 header file.
1758 (unknown_language_data): Delete la_is_string_type_p initializer.
1759 (unknown_language::is_string_type_p): New member function.
1760 (auto_language_data): Delete la_is_string_type_p initializer.
1761 (auto_language::is_string_type_p): New member function.
1762 * language.h (language_data): Delete la_is_string_type_p field.
1763 (language_defn::is_string_type_p): Declare new function.
1764 (default_is_string_type_p): Delete desclaration, move comment to
1765 definition.
1766 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
1767 moved to m2_language::is_string_type_p.
1768 (m2_language_data): Delete la_is_string_type_p initializer.
1769 (m2_language::is_string_type_p): New member function,
1770 implementation from m2_is_string_type_p.
1771 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
1772 initializer.
1773 * opencl-lang.c (opencl_language_data): Likewise.
1774 * p-lang.c (pascal_is_string_type_p): Delete function,
1775 implementation moved to pascal_language::is_string_type_p.
1776 (pascal_language_data): Delete la_is_string_type_p initializer.
1777 (pascal_language::is_string_type_p): New member function,
1778 implementation from pascal_is_string_type_p.
1779 * rust-lang.c (rust_is_string_type_p): Delete function,
1780 implementation moved to rust_language::is_string_type_p.
1781 (rust_language_data): Delete la_is_string_type_p initializer.
1782 (rust_language::is_string_type_p): New member function,
1783 implementation from rust_is_string_type_p.
1784 * valprint.c (val_print_scalar_or_string_type_p): Update call to
1785 is_string_type_p.
1786
4ffc13fb
AB
17872020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1788
1789 * ada-lang.c (ada_language_data): Delete la_print_typedef
1790 initializer.
1791 (ada_language::print_typedef): New member function.
1792 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
1793 (cplus_language_data): Likewise.
1794 (asm_language_data): Likewise.
1795 (minimal_language_data): Likewise.
1796 * d-lang.c (d_language_data): Likewise.
1797 * f-lang.c (f_language_data): Likewise.
1798 (f_language::print_typedef): New member function.
1799 * go-lang.c (go_language_data): Delete la_print_typedef
1800 initializer.
1801 * language.c (language_defn::print_typedef): Define member
1802 function.
1803 (unknown_language_data): Delete la_print_typedef initializer.
1804 (unknown_language::print_typedef): New member function.
1805 (auto_language_data): Delete la_print_typedef initializer.
1806 (auto_language::print_typedef): New member function.
1807 * language.h (language_data): Delete la_print_typedef field.
1808 (language_defn::print_typedef): Declare new member function.
1809 (LA_PRINT_TYPEDEF): Update call to print_typedef.
1810 (default_print_typedef): Delete declaration.
1811 * m2-lang.c (m2_language_data): Delete la_print_typedef
1812 initializer.
1813 (m2_language::print_typedef): New member function.
1814 * objc-lang.c (objc_language_data): Delete la_print_typedef
1815 initializer.
1816 * opencl-lang.c (opencl_language_data): Likewise.
1817 * p-lang.c (pascal_language_data): Likewise.
1818 (pascal_language::print_typedef): New member function.
1819 * rust-lang.c (rust_print_typedef): Delete function,
1820 implementation moved to rust_language::print_typedef.
1821 (rust_language): Delete la_print_typedef initializer.
1822 (rust_language::print_typedef): New member function,
1823 implementation from rust_print_typedef.
1824 * typeprint.c (default_print_typedef): Delete.
1825
d711ee67
AB
18262020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1827
1828 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
1829 (ada_language::printstr): New member function.
1830 * c-lang.c (c_language_data): Delete la_printstr initializer.
1831 (cplus_language_data): Likewise.
1832 (asm_language_data): Likewise.
1833 (minimal_language_data): Likewise.
1834 * d-lang.c (d_language_data): Likewise.
1835 * f-lang.c (f_printstr): Rename to f_language::printstr.
1836 (f_language_data): Delete la_printstr initializer.
1837 (f_language::printstr): New member function, implementation from
1838 f_printstr.
1839 * go-lang.c (go_language_data): Delete la_printstr initializer.
1840 * language.c (language_defn::printstr): Define new member
1841 function.
1842 (unk_lang_printstr): Delete.
1843 (unknown_language_data): Delete la_printstr initializer.
1844 (unknown_language::printstr): New member function.
1845 (auto_language_data): Delete la_printstr initializer.
1846 (auto_language::printstr): New member function.
1847 * language.h (language_data): Delete la_printstr field.
1848 (language_defn::printstr): Declare new member function.
1849 (LA_PRINT_STRING): Update call to printstr.
1850 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
1851 (m2_language_data): Delete la_printstr initializer.
1852 (m2_language::printstr): New member function, implementation from
1853 m2_printstr.
1854 * objc-lang.c (objc_language_data): Delete la_printstr
1855 initializer.
1856 * opencl-lang.c (opencl_language_data): Likewise.
1857 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
1858 (pascal_language_data): Delete la_printstr initializer.
1859 (pascal_language::printstr): New member function, implementation
1860 from pascal_printstr.
1861 * p-lang.h (pascal_printstr): Delete declaration.
1862 * rust-lang.c (rust_printstr): Update header comment.
1863 (rust_language_data): Delete la_printstr initializer.
1864 (rust_language::printstr): New member function.
1865
52b50f2c
AB
18662020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1867
1868 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
1869 (ada_language::printchar): New member function.
1870 * c-lang.c (c_language_data): Delete la_printchar initializer.
1871 (cplus_language_data): Likewise.
1872 (asm_language_data): Likewise.
1873 (minimal_language_data): Likewise.
1874 * d-lang.c (d_language_data): Likewise.
1875 * f-lang.c (f_printchar): Rename to f_language::printchar.
1876 (f_language_data): Delete la_printchar initializer.
1877 (f_language::printchar): New member function, implementation from
1878 f_printchar.
1879 * go-lang.c (go_language_data): Delete la_printchar initializer.
1880 * language.c (unk_lang_printchar): Delete.
1881 (language_defn::printchar): Define new member function.
1882 (unknown_language_data): Delete la_printchar initializer.
1883 (unknown_language::printchar): New member function.
1884 (auto_language_data): Delete la_printchar initializer.
1885 (auto_language::printchar): New member function.
1886 * language.h (language_data): Delete la_printchar field.
1887 (language_defn::printchar): Declare new member function.
1888 (LA_PRINT_CHAR): Update call to printchar.
1889 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
1890 (m2_language::printchar): New member function.
1891 * objc-lang.c (objc_language_data): Delete la_printchar
1892 initializer.
1893 * opencl-lang.c (opencl_language_data): Likewise.
1894 * p-lang.c (pascal_language_data): Delete la_printchar
1895 initializer.
1896 (pascal_language::printchar): New member function.
1897 * rust-lang.c (rust_printchar): Rename to
1898 rust_language::printchar.
1899 (rust_language_data): Delete la_printchar initializer.
1900 (rust_language::printchar): New member function, implementation
1901 from rust_printchar.
1902
ec8cec5b
AB
19032020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1904
1905 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
1906 (ada_language_data): Delete la_emitchar initializer.
1907 (ada_language::emitchar): New member function, implementation from
1908 emit_char.
1909 * c-lang.c (c_language_data): Delete la_emitchar initializer.
1910 (cplus_language_data): Likewise.
1911 (asm_language_data): Likewise.
1912 (minimal_language_data): Likewise.
1913 * d-lang.c (d_language_data): Likewise.
1914 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
1915 (f_language_data): Delete la_emitchar initializer.
1916 (f_language::emitchar): New member function, implementation from
1917 f_emit_char.
1918 * go-lang.c (go_language_data): Delete la_emitchar initializer.
1919 * language.c (unk_lang_emit_char): Delete.
1920 (language_defn::emitchar): New member function definition.
1921 (unknown_language_data): Delete la_emitchar initializer.
1922 (unknown_language::emitchar): New member function.
1923 (auto_language_data): Delete la_emitchar initializer.
1924 (auto_language::emitchar): New member function.
1925 * language.h (language_data): Delete la_emitchar field.
1926 (language_defn::emitchar): New member field declaration.
1927 (LA_EMIT_CHAR): Update call to emitchar.
1928 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
1929 (m2_language_data): Delete la_emitchar initializer.
1930 (m2_language::emitchar): New member function, implementation from
1931 m2_emit_char.
1932 * objc-lang.c (objc_language_data): Delete la_emitchar
1933 initializer.
1934 * opencl-lang.c (opencl_language_data): Likewise.
1935 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
1936 (pascal_language_data): Delete la_emitchar initializer.
1937 (pascal_language::emitchar): New member function, implementation
1938 from pascal_emit_char.
1939 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
1940 (rust_language_data): Delete la_emitchar initializer.
1941 (rust_language::emitchar): New member function, implementation
1942 from rust_emitchar.
1943
1bf9c363
AB
19442020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1945
1946 * ada-lang.c (resolve): Rename to ada_language::post_parser.
1947 (ada_language_data): Delete la_post_parser initializer.
1948 (ada_language::post_parser): New member function.
1949 * c-lang.c (c_language_data): Delete la_post_parser initializer.
1950 (cplus_language_data): Likewise.
1951 (asm_language_data): Likewise.
1952 (minimal_language_data): Likewise.
1953 * d-lang.c (d_language_data): Likewise.
1954 * f-lang.c (f_language_data): Likewise.
1955 * go-lang.c (go_language_data): Likewise.
1956 * language.c (unknown_language_data): Likewise.
1957 (auto_language_data): Likewise.
1958 * language.h (language_data): Delete la_post_parser field.
1959 (language_defn::post_parser): New member function.
1960 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
1961 * objc-lang.c (objc_language_data): Likewise.
1962 * opencl-lang.c (opencl_language_data): Likewise.
1963 * p-lang.c (pascal_language_data): Likewise.
1964 * parse.c (parse_exp_in_context): Update call to post_parser.
1965 (null_post_parser): Delete definition.
1966 * parser-defs.h (null_post_parser): Delete declaration.
1967 * rust-lang.c (rust_language_data): Delete la_post_parser
1968 initializer.
1969
87afa652
AB
19702020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1971
1972 * ada-lang.c (parse): Rename to ada_language::parser.
1973 (ada_language_data): Delete la_parser initializer.
1974 (ada_language::parser): New member function, implementation from
1975 parse.
1976 * c-lang.c (c_language_data): Delete la_parser initializer.
1977 (cplus_language_data): Likewise.
1978 (asm_language_data): Likewise.
1979 (minimal_language_data): Likewise.
1980 * d-lang.c (d_language_data): Likewise.
1981 (d_language::parser): New member function.
1982 * f-lang.c (f_language_data): Delete la_parser initializer.
1983 (f_language::parser): New member function.
1984 * go-lang.c (go_language_data): Delete la_parser initializer.
1985 (go_language::parser): New member function.
1986 * language.c (unk_lang_parser): Delete.
1987 (language_defn::parser): Define new member function.
1988 (unknown_language_data): Delete la_parser initializer.
1989 (unknown_language::parser): New member function.
1990 (auto_language_data): Delete la_parser initializer.
1991 (auto_language::parser): New member function.
1992 * language.h (language_data): Delete la_parser field.
1993 (language_defn::parser): Declare new member function.
1994 * m2-lang.c (m2_language_data): Delete la_parser initializer.
1995 (m2_language::parser): New member function.
1996 * objc-lang.c (objc_language_data): Delete la_parser initializer.
1997 * opencl-lang.c (opencl_language_data): Likewise.
1998 * p-lang.c (pascal_language_data): Likewise.
1999 (pascal_language::parser): New member function.
2000 * parse.c (parse_exp_in_context): Update call to parser.
2001 * rust-lang.c (rust_language_data): Delete la_parser initializer.
2002 (rust_language::parser): New member function.
2003
37825800
AB
20042020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2005
2006 * top.c (print_gdb_configuration): Print --with-python-libdir
2007 configuration value.
2008
5b860c93
PW
20092020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2010
2011 * NEWS: Mention change to the alias command.
2012
cf00cd6f
PW
20132020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2014
2015 * cli/cli-cmds.c (lookup_cmd_for_default_args)
2016 (alias_command_completer)
2017 (make_alias_options_def_group): New functions.
2018 (alias_opts, alias_option_defs): New struct and array.
2019 (alias_usage_error): Update usage.
2020 (alias_command): Handles optional DEFAULT-ARGS... arguments.
2021 Use option framework.
2022 (_initialize_cli_cmds): Update alias command help.
2023 Update aliases command help.
2024 (show_user):
2025 Add NULL for new default_args lookup_cmd argument.
2026 (valid_command_p): Rename to validate_aliased_command.
2027 Add NULL for new default_args lookup_cmd argument. Verify that the
2028 aliased_command has no default args.
2029 * cli/cli-decode.c (help_cmd): Show aliases definitions.
2030 (lookup_cmd_1, lookup_cmd): New argument default_args.
2031 (add_alias_cmd):
2032 Add NULL for new default_args lookup_cmd argument.
2033 (print_help_for_command): Show default args under the layout
2034 alias some_alias = some_aliased_cmd some_alias_default_arg.
2035 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
2036 xfree default_args in destructor.
2037 * cli/cli-script.c (process_next_line, do_define_command):
2038 Add NULL for new default_args lookup_cmd argument.
2039 * command.h: Declare new default_args argument in lookup_cmd
2040 and lookup_cmd_1.
2041 * completer.c (complete_line_internal_1):
2042 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2043 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
2044 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
2045 Likewise.
2046 * infcmd.c (_initialize_infcmd): Likewise.
2047 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
2048 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
2049 * python/py-param.c (add_setshow_generic): Likewise.
2050 * remote.c (_initialize_remote): Likewise.
2051 * top.c (execute_command): Prepend default_args if command has some.
2052 (set_verbose):
2053 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2054 * tracepoint.c (validate_actionline, encode_actions_1):
2055 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2056
bd920864
TBA
20572020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2058
2059 * jit.c (jit_read_descriptor): Use bool as the return type.
2060 (jit_breakpoint_re_set_internal): Use bool as the return type.
2061 Invert the return value logic; return true if the jit breakpoint
2062 has been successfully initialized.
2063 (jit_inferior_init): Update the call to
2064 jit_breakpoint_re_set_internal.
2065
f8098322
PA
20662020-06-22 Pedro Alves <palves@redhat.com>
2067
2068 PR gdb/25939
2069 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
2070 Use the current inferior instead. Don't return
2071 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
2072 wait again.
2073 * sol-thread.c (sol_thread_target::wait): Don't reference
2074 inferior_ptid.
2075 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
2076 (sol_update_thread_list_callback): Use the current inferior's pid
2077 instead of inferior_ptid.
2078
196535a6
RO
20792020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2080
2081 * procfs.c: Cleanup many comments.
2082
2083 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
2084 (AFTER_WATCHFLAG): Replace by value.
2085
2086 (MAIN_PROC_NAME_FORMAT): Inline ...
2087 (create_procinfo): ... here.
2088
2089 (procfs_debug_inferior): Remove SYS_exec handling.
2090 (syscall_is_exec): Likewise.
2091 (procfs_set_exec_trap): Likewise.
2092
2093 (syscall_is_lwp_exit): Inline in callers.
2094 (syscall_is_exit): Likewise.
2095 (syscall_is_exec): Likewise.
2096 (syscall_is_lwp_create): Likewise.
2097
2098 (invalidate_cache): Remove #if 0 code.
2099
2100 (make_signal_thread_runnable): Remove.
2101 (procfs_target::resume): Remove #if 0 code.
2102
cf6f3e86
RO
21032020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2104
2105 PR gdb/25939
2106 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
2107 call ...
2108 (procfs_target::create_inferior): ... here.
2109
48e9cc84
PW
21102020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2111
2112 * exec.c (validate_exec_file): Ensure the build-id is up to
2113 date by calling reopen_exec_file (that checks file timestamp
2114 to decide to re-read the file).
2115
3922b302
PA
21162020-06-18 Pedro Alves <palves@redhat.com>
2117
2118 PR gdb/25412
2119 * gdbthread.h (delete_thread, delete_thread_silent)
2120 (find_thread_ptid): Update comments.
2121 * thread.c (current_thread_): New global.
2122 (is_current_thread): Move higher, and reimplement.
2123 (inferior_thread): Reimplement.
2124 (set_thread_exited): Use bool. Add assertions.
2125 (add_thread_silent): Simplify thread-reuse handling by always
2126 calling delete_thread.
2127 (delete_thread): Remove intro comment.
2128 (find_thread_ptid): Skip exited threads.
2129 (switch_to_thread_no_regs): Write to current_thread_.
2130 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
2131 INFERIOR_PTID. Clear current_thread_.
2132
6dbdab44
PA
21332020-06-18 Pedro Alves <palves@redhat.com>
2134
2135 * aix-thread.c (pd_update): Use switch_to_thread.
2136
2da4b788
PA
21372020-06-18 Pedro Alves <palves@redhat.com>
2138
2139 * ravenscar-thread.c (ravenscar_thread_target): Update.
2140 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
2141 (ravenscar_thread_target::add_active_thread): ... this. Don't
2142 set m_base_ptid here. Update to avoid referencing inferior_ptid.
2143 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
2144
50838d1b
PA
21452020-06-18 Pedro Alves <palves@redhat.com>
2146
2147 * nat/windows-nat.c (current_windows_thread): Remove.
2148 * nat/windows-nat.h (current_windows_thread): Remove.
2149 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
2150 Adjust.
2151 (display_selectors): Adjust to fetch the current
2152 windows_thread_info based on inferior_ptid.
2153 (fake_create_process): No longer write to current_windows_thread.
2154 (windows_nat_target::get_windows_debug_event):
2155 Don't set inferior_ptid or current_windows_thread.
2156 (windows_nat_target::wait): Adjust to not rely on
2157 current_windows_thread.
2158 (do_initial_windows_stuff): Now a method of windows_nat_target.
2159 Switch to the last_ptid thread.
2160 (windows_nat_target::attach): Adjust.
2161 (windows_nat_target::detach): Use switch_to_no_thread instead of
2162 writing to inferior_ptid directly.
2163 (windows_nat_target::create_inferior): Adjust.
2164
31ce04e9
PA
21652020-06-18 Pedro Alves <palves@redhat.com>
2166
2167 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
2168
1ee1a363
PA
21692020-06-18 Pedro Alves <palves@redhat.com>
2170
2171 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
2172 after creating it, instead of writing to inferior_ptid. Don't
2173 write to inferior_ptid.
2174
6d350754
PA
21752020-06-18 Pedro Alves <palves@redhat.com>
2176
2177 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
2178
5d971d48
PA
21792020-06-18 Pedro Alves <palves@redhat.com>
2180
2181 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
2182 it, instead of writing to inferior_ptid.
2183
86e57d1b
PA
21842020-06-18 Pedro Alves <palves@redhat.com>
2185
2186 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
2187 to inferior_ptid.
2188
f2e1c129
PA
21892020-06-18 Pedro Alves <palves@redhat.com>
2190
2191 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
2192 instead of writing to inferior_ptid directly.
2193
60db1b85
PA
21942020-06-18 Pedro Alves <palves@redhat.com>
2195
2196 * corelow.c (core_target::close): Use switch_to_no_thread instead
2197 of writing to inferior_ptid directly.
2198 (add_to_thread_list, core_target_open): Use switch_to_thread
2199 instead of writing to inferior_ptid directly.
2200
fe7d6a8d
PA
22012020-06-18 Pedro Alves <palves@redhat.com>
2202
2203 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
2204 inferior_ptid.
2205 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
2206 inferior_ptid.
2207 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
2208 inferior_ptid directly.
2209 (darwin_nat_target::init_thread_list): Switch to thread, instead
2210 of writing to inferior_ptid.
2211 (darwin_nat_target::attach): Don't write to inferior_ptid.
2212 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
2213
975f8708
PA
22142020-06-18 Pedro Alves <palves@redhat.com>
2215
2216 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
2217 thread.
2218 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
2219 Instead use switch_to_thread.
2220 (gnu_nat_target::detach): Use switch_to_no_thread
2221 instead of writing to inferior_ptid directly. Used passed-in
2222 inferior instead of looking up the inferior by pid.
2223
1a204730
PA
22242020-06-18 Pedro Alves <palves@redhat.com>
2225
2226 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
2227 inferior_ptid.
2228
ebe84f23
PA
22292020-06-18 Pedro Alves <palves@redhat.com>
2230
2231 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
2232 inferior_ptid.
2233 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
2234 thread.
2235 (nto_procfs_target::detach): Avoid referencing
2236 inferior_ptid. Use switch_to_no_thread instead of writing to
2237 inferior_ptid directly.
2238 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
2239 instead of writing to inferior_ptid directly.
2240 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
2241 to thread.
2242
191f02e5
PA
22432020-06-18 Pedro Alves <palves@redhat.com>
2244
2245 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
2246 after creating it, instead of writing to inferior_ptid.
2247 (gdbsim_target_open): Use switch_to_no_thread instead of writing
2248 to inferior_ptid directly.
2249 (gdbsim_target::wait): Don't write to inferior_ptid.
2250
0ac55310
PA
22512020-06-18 Pedro Alves <palves@redhat.com>
2252
2253 * remote.c (remote_target::remote_notice_new_inferior): Use
2254 switch_to_thread instead of writing to inferior_ptid directly.
2255 (remote_target::add_current_inferior_and_thread): Use
2256 switch_to_no_thread instead of writing to inferior_ptid directly.
2257 (extended_remote_target::attach): Use switch_to_inferior_no_thread
2258 and switch_to_thread instead of using set_current_inferior or
2259 writing to inferior_ptid directly.
2260
5233f39b
PA
22612020-06-18 Pedro Alves <palves@redhat.com>
2262
2263 * tracectf.c (ctf_target_open): Switch to added thread instead of
2264 writing to inferior_ptid directly.
2265 (ctf_target::close): Use switch_to_no_thread instead of writing to
2266 inferior_ptid directly.
2267
087e161b
PA
22682020-06-18 Pedro Alves <palves@redhat.com>
2269
2270 * tracefile-tfile.c (tfile_target_open): Don't write to
2271 inferior_ptid directly, instead switch to added thread.
2272 (tfile_target::close): Use switch_to_no_thread instead of writing
2273 to inferior_ptid directly.
2274
7fb43e53
PA
22752020-06-18 Pedro Alves <palves@redhat.com>
2276
2277 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
2278 (procfs_target::detach): Use switch_to_no_thread
2279 instead of writing to inferior_ptid directly.
2280 (do_attach): Change return type to void. Switch to the added
2281 thread.
2282 (procfs_target::create_inferior): Switch to the added thread.
2283 (procfs_do_thread_registers): Don't write to inferior_ptid.
2284
18493a00
PA
22852020-06-18 Pedro Alves <palves@redhat.com>
2286
2287 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
2288 of writing to inferior_ptid.
2289 (scoped_restore_exited_inferior): Delete.
2290 (handle_vfork_child_exec_or_exit): Simplify using
2291 scoped_restore_current_pspace_and_thread. Use switch_to_thread
2292 instead of writing to inferior_ptid.
2293 (THREAD_STOPPED_BY): Delete.
2294 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
2295 (thread_stopped_by_hw_breakpoint): Delete.
2296 (save_waitstatus): Use
2297 scoped_restore_current_thread+switch_to_thread, and call
2298 target_stopped_by_watchpoint instead of
2299 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
2300 instead of thread_stopped_by_sw_breakpoint, and
2301 target_stopped_by_hw_breakpoint instead of
2302 thread_stopped_by_hw_breakpoint.
2303 (handle_inferior_event)
2304 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
2305 inferior_ptid directly, nor
2306 set_current_inferior/set_current_program_space. Use
2307 switch_to_thread / switch_to_inferior_no_thread instead.
2308
a0776b13
PA
23092020-06-18 Pedro Alves <palves@redhat.com>
2310
2311 * target.c (generic_mourn_inferior): Use switch_to_no_thread
2312 instead of writing to inferior_ptid.
2313
6155c136
PA
23142020-06-18 Pedro Alves <palves@redhat.com>
2315
2316 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
2317 added thread.
2318 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
2319 to the added thread.
2320 (inf_ptrace_target::detach_success): Use switch_to_no_thread
2321 instead of writing to inferior_ptid.
2322
c5316fc6
PA
23232020-06-18 Pedro Alves <palves@redhat.com>
2324
2325 * gdbarch-selftests.c: Include "progspace-and-thread.h".
2326 (register_to_value_test): Mock a program_space too. Heap-allocate
2327 the address space. Don't write to inferior_ptid. Use
2328 switch_to_thread instead.
2329
8df01799
PA
23302020-06-18 Pedro Alves <palves@redhat.com>
2331
2332 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
2333 Delete.
2334 (find_signalled_thread()): New, factored out from
2335 linux_make_corefile_notes and adjusted to handle exited threads.
2336 (linux_make_corefile_notes): Adjust to use the new
2337 find_signalled_thread.
2338
41792d68
PA
23392020-06-18 Pedro Alves <palves@redhat.com>
2340
2341 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
2342 of saving/restoring inferior_ptid.
2343
612f258a
TT
23442020-06-17 Tom Tromey <tom@tromey.com>
2345
2346 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
2347 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
2348 declare.
2349 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
2350
efb763a5
SM
23512020-06-15 Simon Marchi <simon.marchi@efficios.com>
2352
2353 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
2354 of partial symtabs.
2355
2951f6c0
SM
23562020-06-17 Simon Marchi <simon.marchi@efficios.com>
2357
2358 * regformats/reg-arm.dat: Remove.
2359 * regformats/reg-bfin.dat: Remove.
2360 * regformats/reg-cris.dat: Remove.
2361 * regformats/reg-crisv32.dat: Remove.
2362 * regformats/reg-m32r.dat: Remove.
2363 * regformats/reg-tilegx.dat: Remove.
2364 * regformats/reg-tilegx32.dat: Remove.
2365
7d458ea5
SM
23662020-06-17 Simon Marchi <simon.marchi@efficios.com>
2367
2368 * features/Makefile (WHICH): Remove arm files.
2369 * regformats/arm/arm-with-iwmmxt.dat: Remove.
2370 * regformats/arm/arm-with-neon.dat: Remove.
2371 * regformats/arm/arm-with-vfpv2.dat: Remove.
2372 * regformats/arm/arm-with-vfpv3.dat: Remove.
2373
3af96c0d
SM
23742020-06-17 Simon Marchi <simon.marchi@efficios.com>
2375
2376 * features/Makefile (XMLTOC): Remove rx.xml.
2377
b25e22fd
PA
23782020-06-17 Pedro Alves <palves@redhat.com>
2379
2380 * gdbthread.h (thread_control_state) <trap_expected> Update
2381 comments.
2382
a78a19b1
AB
23832020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2384
2385 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
2386 ada_language::lookup_symbol_nonlocal.
2387 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
2388 (ada_language::lookup_symbol_nonlocal): New member function,
2389 implementation from ada_lookup_symbol_nonlocal.
2390 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
2391 initializer.
2392 (cplus_language_data): Delete la_lookup_symbol_nonlocal
2393 initializer.
2394 (cplus_language::lookup_symbol_nonlocal): New member function.
2395 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
2396 (minimal_language_data) Likewise.
2397 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
2398 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
2399 initializer.
2400 (d_language::lookup_symbol_nonlocal): New member function.
2401 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
2402 initializer.
2403 (f_language::lookup_symbol_nonlocal): New member function.
2404 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
2405 initializer.
2406 * language.c (unknown_language_data): Likewise.
2407 (auto_language_data): Likewise.
2408 * language.h (language_data): Delete la_lookup_symbol_nonlocal
2409 field.
2410 (language_defn::lookup_symbol_nonlocal): New member function.
2411 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
2412 initializer.
2413 * objc-lang.c (objc_language_data): Likewise.
2414 * opencl-lang.c (opencl_language_data): Likewise.
2415 * p-lang.c (pascal_language_data): Likewise.
2416 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
2417 rust_language::lookup_symbol_nonlocal.
2418 (rust_language_data): Delete la_lookup_symbol_nonlocal
2419 initializer.
2420 (rust_language::lookup_symbol_nonlocal): New member function,
2421 implementation from rust_lookup_symbol_nonlocal.
2422 * symtab.c (lookup_symbol_aux): Update call to
2423 lookup_symbol_nonlocal.
2424 (basic_lookup_symbol_nonlocal): Rename to...
2425 (language_defn::lookup_symbol_nonlocal): ...this, and update
2426 header comment. Remove language_defn parameter, and replace with
2427 uses of `this'.
2428 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
2429
ebe2334e
AB
24302020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2431
2432 * ada-lang.c (ada_language_data): Delete la_value_print_inner
2433 initializer.
2434 (ada_language::value_print_inner): New member function.
2435 * c-lang.c (c_language_data): Delete la_value_print_inner
2436 initializer.
2437 (cplus_language_data): Likewise.
2438 (asm_language_data): Likewise.
2439 (minimal_language_data): Likewise.
2440 * d-lang.c (d_language_data): Likewise.
2441 (d_language::value_print_inner): New member function.
2442 * f-lang.c (f_language_data): Delete la_value_print_inner
2443 initializer.
2444 (f_language::value_print_inner): New member function.
2445 * f-lang.h (f_value_print_innner): Rename to...
2446 (f_value_print_inner): ...this (note spelling of 'inner').
2447 * f-valprint.c (f_value_print_innner): Rename to...
2448 (f_value_print_inner): ...this (note spelling of 'inner').
2449 * go-lang.c (go_language_data): Delete la_value_print_inner
2450 initializer.
2451 (go_language::value_print_inner): New member function.
2452 * language.c (language_defn::value_print_inner): Define new member
2453 function.
2454 (unk_lang_value_print_inner): Delete.
2455 (unknown_language_data): Delete la_value_print_inner initializer.
2456 (unknown_language::value_print_inner): New member function.
2457 (auto_language_data): Delete la_value_print_inner initializer.
2458 (auto_language::value_print_inner): New member function.
2459 * language.h (language_data): Delete la_value_print_inner field.
2460 (language_defn::value_print_inner): Delcare new member function.
2461 * m2-lang.c (m2_language_data): Delete la_value_print_inner
2462 initializer.
2463 (m2_language::value_print_inner): New member function.
2464 * objc-lang.c (objc_language_data): Delete la_value_print_inner
2465 initializer.
2466 * opencl-lang.c (opencl_language_data): Likewise.
2467 * p-lang.c (pascal_language_data): Likewise.
2468 (pascal_language::value_print_inner): New member function.
2469 * rust-lang.c (rust_language_data): Delete la_value_print_inner
2470 initializer.
2471 (rust_language::value_print_inner): New member function.
2472 * valprint.c (do_val_print): Update call to value_print_inner.
2473
a1d1fa3e
AB
24742020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2475
2476 * ada-lang.c (ada_language_data): Delete la_value_print
2477 initializer.
2478 (ada_language::value_print): New member function.
2479 * c-lang.c (c_language_data): Delete la_value_print initializer.
2480 (cplus_language_data): Likewise.
2481 (asm_language_data): Likewise.
2482 (minimal_language_data): Likewise.
2483 * d-lang.c (d_language_data): Likewise.
2484 * f-lang.c (f_language_data): Likewise.
2485 * go-lang.c (go_language_data): Likewise.
2486 * language.c (unk_lang_value_print): Delete.
2487 (language_defn::value_print): Define new member function.
2488 (unknown_language_data): Delete la_value_print initializer.
2489 (unknown_language::value_print): New member function.
2490 (auto_language_data): Delete la_value_print initializer.
2491 (auto_language::value_print): New member function.
2492 * language.h (language_data): Delete la_value_print field.
2493 (language_defn::value_print): Declare new member function.
2494 (LA_VALUE_PRINT): Update call to value_print.
2495 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
2496 * objc-lang.c (objc_language_data): Likewise.
2497 * opencl-lang.c (opencl_language_data): Likewise.
2498 * p-lang.c (pascal_language_data): Likewise.
2499 (pascal_language::value_print): New member function.
2500 * rust-lang.c (rust_language_data): Delete la_value_print
2501 initializer.
2502
f16a9f57
AB
25032020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2504
2505 * ada-lang.c (ada_watch_location_expression): Rename to
2506 ada_language::watch_location_expression.
2507 (ada_language_data): Delete la_watch_location_expression
2508 initializer.
2509 (ada_language::watch_location_expression): New member function,
2510 implementation from ada_watch_location_expression.
2511 * breakpoint.c (watch_command_1): Update call to
2512 watch_location_expression.
2513 * c-lang.c (c_watch_location_expression): Rename to
2514 language_defn::watch_location_expression.
2515 (c_language_data): Delete la_watch_location_expression
2516 initializer.
2517 (cplus_language_data): Likewise.
2518 (asm_language_data): Likewise.
2519 (minimal_language_data): Likewise.
2520 * c-lang.h (c_watch_location_expression): Delete declaration.
2521 * d-lang.c (d_language_data): Delete la_watch_location_expression
2522 initializer.
2523 * f-lang.c (f_language_data): Likewise.
2524 * go-lang.c (go_language_data): Likewise.
2525 * language.c (language_defn::watch_location_expression): Member
2526 function implementation from c_watch_location_expression.
2527 (unknown_language_data): Delete la_watch_location_expression
2528 initializer.
2529 (auto_language_data): Likewise.
2530 * language.h (language_data): Delete la_watch_location_expression
2531 field.
2532 (language_defn::watch_location_expression): Declare new member
2533 function.
2534 * m2-lang.c (m2_language_data): Delete
2535 la_watch_location_expression initializer.
2536 * objc-lang.c (objc_language_data): Likewise.
2537 * opencl-lang.c (opencl_language_data): Likewise.
2538 * p-lang.c (pascal_language_data): Likewise.
2539 * rust-lang.c (rust_watch_location_expression): Rename to
2540 rust_language::watch_location_expression.
2541 (rust_language_data): Delete la_watch_location_expression
2542 initializer.
2543 (rust_language::watch_location_expression): New member function,
2544 implementation from rust_watch_location_expression.
2545
7e56227d
AB
25462020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2547
2548 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
2549 ada_language::collect_symbol_completion_matches.
2550 (ada_language_data): Delete la_collect_symbol_completion_matches
2551 initializer.
2552 (ada_language::collect_symbol_completion_matches): New member
2553 function, implementation from
2554 ada_collect_symbol_completion_matches.
2555 * c-lang.c (c_language_data): Delete
2556 la_collect_symbol_completion_matches initializer.
2557 (cplus_language_data): Likewise.
2558 (asm_language_data): Likewise.
2559 (minimal_language_data): Likewise.
2560 * d-lang.c (d_language_data): Likewise.
2561 * f-lang.c (f_collect_symbol_completion_matches): Rename to
2562 f_language::collect_symbol_completion_matches.
2563 (f_language_data): Delete la_collect_symbol_completion_matches
2564 initializer.
2565 (f_language::collect_symbol_completion_matches) New member
2566 function, implementation from f_collect_symbol_completion_matches.
2567 * go-lang.c (go_language_data): Delete
2568 la_collect_symbol_completion_matches initializer.
2569 * language.c (unknown_language_data): Likewise.
2570 (auto_language_data): Likewise.
2571 * language.h (language_data): Delete
2572 la_collect_symbol_completion_matches field.
2573 (language_defn::collect_symbol_completion_matches): New member
2574 function.
2575 * m2-lang.c (m2_language_data): Delete
2576 la_collect_symbol_completion_matches initializer.
2577 * objc-lang.c (objc_language_data): Likewise.
2578 * opencl-lang.c (opencl_language_data): Likewise.
2579 * p-lang.c (pascal_language_data): Likewise.
2580 * rust-lang.c (rust_language_data): Likewise.
2581 * symtab.c (default_collect_symbol_completion_matches): Delete.
2582 (collect_symbol_completion_matches): Update call to
2583 collect_symbol_completion_matches.
2584 (collect_symbol_completion_matches_type): Likewise.
2585 * symtab.h (default_collect_symbol_completion_matches): Delete
2586 declaration.
2587
53fc67f8
AB
25882020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2589
2590 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
2591 (ada_language_data): Delete la_word_break_characters initializer.
2592 (ada_language::word_break_characters): New member function.
2593 * c-lang.c (c_language_data): Delete la_word_break_characters
2594 initializer.
2595 (cplus_language_data): Likewise.
2596 (asm_language_data): Likewise.
2597 (minimal_language_data): Likewise.
2598 * completer.c: Update global comment.
2599 (advance_to_expression_complete_word_point): Update call to
2600 word_break_characters.
2601 (complete_files_symbols): Likewise.
2602 (complete_line_internal_1): Likewise.
2603 (default_completer_handle_brkchars): Likewise.
2604 (skip_quoted_chars): Likewise.
2605 * d-lang.c (d_language_data): Delete la_word_break_characters
2606 initializer.
2607 * f-lang.c (f_word_break_characters): Delete.
2608 (f_language_data): Delete la_word_break_characters initializer.
2609 (f_language::word_break_characters): New member function.
2610 * go-lang.c (go_language_data): Delete la_word_break_characters
2611 initializer.
2612 * language.c (unknown_language_data): Likewise.
2613 (auto_language_data): Likewise.
2614 * language.h (default_word_break_characters): Move declaration to
2615 earlier in the file.
2616 (language_data): Delete la_word_break_characters field.
2617 (language_defn::word_break_characters): New member function.
2618 * m2-lang.c (m2_language_data): Delete la_word_break_characters
2619 initializer.
2620 * objc-lang.c (objc_language_data): Likewise.
2621 * opencl-lang.c (opencl_language_data): Likewise.
2622 * p-lang.c (pascal_language_data): Likewise.
2623 * rust-lang.c (rust_language_data): Likewise.
2624
c9debfb9
AB
26252020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2626
2627 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
2628 (ada_language_data): Delete la_get_symbol_name_matcher
2629 initializer.
2630 (language_defn::get_symbol_name_matcher_inner): New member
2631 function.
2632 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
2633 initializer.
2634 (cplus_language_data): Likewise.
2635 (cplus_language::get_symbol_name_matcher_inner): New member
2636 function.
2637 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
2638 (minimal_language_data): Likewise.
2639 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
2640 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
2641 initializer.
2642 * dictionary.c (iter_match_first_hashed): Update call to
2643 get_symbol_name_matcher.
2644 (iter_match_next_hashed): Likewise.
2645 (iter_match_next_linear): Likewise.
2646 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
2647 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
2648 initializer.
2649 (f_language::get_symbol_name_matcher_inner): New member function.
2650 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
2651 initializer.
2652 * language.c (default_symbol_name_matcher): Update header comment,
2653 make static.
2654 (language_defn::get_symbol_name_matcher): New definition.
2655 (language_defn::get_symbol_name_matcher_inner): Likewise.
2656 (get_symbol_name_matcher): Delete.
2657 (unknown_language_data): Delete la_get_symbol_name_matcher
2658 initializer.
2659 (auto_language_data): Likewise.
2660 * language.h (language_data): Delete la_get_symbol_name_matcher
2661 field.
2662 (language_defn::get_symbol_name_matcher): New member function.
2663 (language_defn::get_symbol_name_matcher_inner): Likewise.
2664 (default_symbol_name_matcher): Delete declaration.
2665 * linespec.c (find_methods): Update call to
2666 get_symbol_name_matcher.
2667 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
2668 initializer.
2669 * minsyms.c (lookup_minimal_symbol): Update call to
2670 get_symbol_name_matcher.
2671 (iterate_over_minimal_symbols): Likewise.
2672 * objc-lang.c (objc_language_data): Delete
2673 la_get_symbol_name_matcher initializer.
2674 * opencl-lang.c (opencl_language_data): Likewise.
2675 * p-lang.c (pascal_language_data): Likewise.
2676 * psymtab.c (psymbol_name_matches): Update call to
2677 get_symbol_name_matcher.
2678 * rust-lang.c (rust_language_data): Delete
2679 la_get_symbol_name_matcher initializer.
2680 * symtab.c (symbol_matches_search_name): Update call to
2681 get_symbol_name_matcher.
2682 (compare_symbol_name): Likewise.
2683
9a49ad8c
AB
26842020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2685
2686 * ada-lang.c (ada_language_data): Delete la_compute_program
2687 initializer.
2688 * c-lang.c (c_language_data): Likewise.
2689 (c_language::compute_program): New member function.
2690 (cplus_language_data): Delete la_compute_program initializer.
2691 (cplus_language::compute_program): New member function.
2692 (asm_language_data): Delete la_compute_program initializer.
2693 (minimal_language_data): Likewise.
2694 * c-lang.h (c_compute_program): Update comment.
2695 (cplus_compute_program): Likewise.
2696 * compile/compile-c-support.c (c_compute_program): Likewise.
2697 (cplus_compute_program): Likewise.
2698 * compile/compile.c (compile_to_object): Update call to
2699 la_compute_program.
2700 * d-lang.c (d_language_data): Delete la_compute_program
2701 initializer.
2702 * f-lang.c (f_language_data): Likewise.
2703 * go-lang.c (go_language_data): Likewise.
2704 * language.c (unknown_language_data): Likewise.
2705 (auto_language_data): Likewise.
2706 * language.h (language_data): Delete la_compute_program field.
2707 (language_defn::compute_program): New member function.
2708 * m2-lang.c (m2_language_data): Delete la_compute_program
2709 initializer.
2710 * objc-lang.c (objc_language_data): Likewise.
2711 * opencl-lang.c (opencl_language_data): Likewise.
2712 * p-lang.c (pascal_language_data): Likewise.
2713 * rust-lang.c (rust_language_data): Likewise.
2714
eff93b4d
AB
27152020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2716
2717 * ada-lang.c (ada_language_data) Delete
2718 la_class_name_from_physname initializer.
2719 * c-lang.c (c_language_data): Likewise.
2720 (cplus_language_data): Likewise.
2721 (cplus_language::class_name_from_physname): New member function.
2722 (asm_language_data): Delete la_class_name_from_physname
2723 initializer.
2724 (minimal_language_data): Likewise.
2725 * d-lang.c (d_language_data): Likewise.
2726 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
2727 method on language_defn class.
2728 (guess_full_die_structure_name): Likewise.
2729 * f-lang.c (f_language_data): Delete la_class_name_from_physname
2730 initializer.
2731 * go-lang.c (go_language_data): Likewise.
2732 * language.c (language_class_name_from_physname): Delete.
2733 (unk_lang_class_name): Delete.
2734 (unknown_language_data): Delete la_class_name_from_physname
2735 initializer.
2736 (auto_language_data): Likewise.
2737 * language.h (language_data): Delete la_class_name_from_physname
2738 field.
2739 (language_defn::class_name_from_physname): New function.
2740 (language_class_name_from_physname): Delete declaration.
2741 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
2742 initializer.
2743 * objc-lang.c (objc_language_data): Likewise.
2744 * opencl-lang.c (opencl_language_data): Likewise.
2745 * p-lang.c (pascal_language_data): Likewise.
2746 * rust-lang.c (rust_language_data): Likewise.
2747
de543742
TT
27482020-06-16 Tom Tromey <tom@tromey.com>
2749
2750 * tui/tui-data.h (STATUS_NAME): New macro.
2751 * tui/tui-layout.c (tui_remove_some_windows)
2752 (initialize_known_windows, tui_register_window)
2753 (tui_layout_split::remove_windows, initialize_layouts)
2754 (tui_new_layout_command): Don't use hard-coded window names.
2755
a350efd4
TT
27562020-06-16 Tom Tromey <tom@tromey.com>
2757
2758 PR tui/25348:
2759 * tui/tui.c (tui_ensure_readline_initialized): Rename from
2760 tui_initialize_readline. Only run once. Call rl_initialize.
2761 * tui/tui.h (tui_ensure_readline_initialized): Rename from
2762 tui_initialize_readline.
2763 * tui/tui-io.c (tui_setup_io): Call
2764 tui_ensure_readline_initialized.
2765 * tui/tui-interp.c (tui_interp::init): Update.
2766
39ec0490
TT
27672020-06-16 Tom Tromey <tom@tromey.com>
2768
2769 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
2770 Also preserve the status window.
2771
d2d1ea20
TT
27722020-06-16 Tom Tromey <tom@tromey.com>
2773
2774 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
2775 where m_window==nullptr.
2776
66920317
TT
27772020-06-15 Tom Tromey <tromey@adacore.com>
2778
2779 * windows-nat.c (windows_nat::handle_output_debug_string):
2780 Update.
2781 (windows_nat::handle_ms_vc_exception): Update.
2782 * target.h (target_read_string): Change API.
2783 * target.c (target_read_string): Change API.
2784 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
2785 Update.
2786 * solib-frv.c (frv_current_sos): Update.
2787 * solib-dsbt.c (dsbt_current_sos): Update.
2788 * solib-darwin.c (darwin_current_sos): Update.
2789 * linux-thread-db.c (inferior_has_bug): Update.
2790 * expprint.c (print_subexp_standard): Update.
2791 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
2792 (ada_exception_message_1): Update.
2793
a5d871dd
TT
27942020-06-15 Tom Tromey <tromey@adacore.com>
2795
2796 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
2797
670e35fa
TT
27982020-06-15 Tom Tromey <tromey@adacore.com>
2799
2800 * valprint.c (read_string): Update comment.
2801 * target.c (MIN): Remove.
2802 (target_read_string): Rewrite.
2803
f5272a3b
TT
28042020-06-15 Tom Tromey <tromey@adacore.com>
2805
2806 * corefile.c (read_memory_string): Remove.
2807 * ada-valprint.c (ada_value_print_ptr): Update.
2808 * ada-lang.h (ada_tag_name): Change return type.
2809 * ada-lang.c (type_from_tag): Update.
2810 (ada_tag_name_from_tsd): Change return type. Use
2811 target_read_string.
2812 (ada_tag_name): Likewise.
2813 * gdbcore.h (read_memory_string): Don't declare.
2814
2c074f49
HD
28152020-06-14 Hannes Domani <ssbssa@yahoo.de>
2816
2817 * symtab.c (rbreak_command): Ignore Windows drive colon.
2818
6a17d503
SM
28192020-06-12 Simon Marchi <simon.marchi@efficios.com>
2820
2821 * NEWS: Mention removed GDBserver host support.
2822
453c733f
NC
28232020-06-12 Nelson Chu <nelson.chu@sifive.com>
2824
2825 * features/riscv/rebuild-csr-xml.sh: Updated.
2826
2b4e6a3f
TT
28272020-06-11 Tom Tromey <tom@tromey.com>
2828
2829 PR gdb/18318:
2830 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
2831
4412332f
JG
28322020-06-09 Jonny Grant <jg@jguk.org>
28332020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
2834
2835 * main.c (captured_main_1): Don't print new line after help.
2836 (print_gdb_help): add mailing list and IRC channel information
2837 to --help. Add new lines between items in the footer. Remove
2838 quotes around bug url.
2839
2f33032a
KS
28402020-06-11 Keith Seitz <keiths@redhat.com>
2841
2842 PR gdb/21356
2843 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
2844 Resolve typedefs for type length calculations.
2845
7ab96794
TV
28462020-06-10 Tom de Vries <tdevries@suse.de>
2847
2848 PR ada/24713
2849 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
2850 (write_psymbols): Enable .gdb_index for ada.
2851 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
2852 ada.
2853
e5f3ece2
TV
28542020-06-10 Tom de Vries <tdevries@suse.de>
2855
2856 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
2857 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
2858 namei" instead of "const char *name" argument.
2859 (dw2_map_matching_symbols): Use "offset_type namei" variant of
2860 dw2_symtab_iter_init.
2861
940da03e
SM
28622020-06-08 Simon Marchi <simon.marchi@efficios.com>
2863
2864 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
2865 to use type::field and field::type instead.
2866
b6cdac4b
SM
28672020-06-08 Simon Marchi <simon.marchi@efficios.com>
2868
2869 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
2870 to use field::type instead.
2871
5d14b6e5
SM
28722020-06-08 Simon Marchi <simon.marchi@efficios.com>
2873
2874 * gdbtypes.h (struct field) <type, set_type>: New methods.
2875 Rename `type` field to...
2876 <m_type>: ... this. Change references throughout to use type or
2877 set_type methods.
2878 (FIELD_TYPE): Use field::type. Change call sites that modify
2879 the field's type to use field::set_type instead.
2880
3d967001
SM
28812020-06-08 Simon Marchi <simon.marchi@efficios.com>
2882
2883 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
2884 to use type::index_type instead.
2885
262abc0d
SM
28862020-06-08 Simon Marchi <simon.marchi@efficios.com>
2887
2888 * gdbtypes.h (struct type) <index_type, set_index_type>: New
2889 methods.
2890 (TYPE_INDEX_TYPE): Use type::index_type.
2891 * gdbtypes.c (create_array_type_with_stride): Likewise.
2892
82836c92
TT
28932020-06-07 Tom Tromey <tom@tromey.com>
2894
2895 * valprint.c (generic_val_print_float): Remove "embedded_offset"
2896 parameter.
2897 (generic_value_print): Update.
2898
940dace9
AB
28992020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2900
2901 Revert commit 982a38f60b0.
2902 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
2903
982a38f6
AB
29042020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2905
2906 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
2907 avoid use after free.
2908
82f06518
TV
29092020-06-05 Tom de Vries <tdevries@suse.de>
2910
2911 * NEWS: Fix typos.
2912
f8c41851
SM
29132020-06-04 Simon Marchi <simon.marchi@efficios.com>
2914
2915 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
2916 the per_bfd object.
2917 (dwarf2_read_debug_names): Likewise.
2918 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
2919 object when re-using a per_bfd object with an index.
2920
f9b5d5ea
TV
29212020-06-03 Tom de Vries <tdevries@suse.de>
2922
2923 PR symtab/26046
2924 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
2925 children for C++.
2926 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
2927 DW_TAG_subprogram.
2928
f6eee2d0
AB
29292020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2930
2931 * ada-lang.c (ada_language_data): Delete skip_trampoline
2932 initializer.
2933 * c-lang.c (c_language_data): Likewise.
2934 (cplus_language_data): Likewise.
2935 (cplus_language::skip_trampoline): New member function.
2936 (asm_language_data): Delete skip_trampoline initializer.
2937 (minimal_language_data): Likewise.
2938 * d-lang.c (d_language_data): Likewise.
2939 * f-lang.c (f_language_data): Likewise.
2940 * go-lang.c (go_language_data): Likewise.
2941 * language.c (unk_lang_trampoline): Delete function.
2942 (skip_language_trampoline): Update.
2943 (unknown_language_data): Delete skip_trampoline initializer.
2944 (auto_language_data): Likewise.
2945 * language.h (language_data): Delete skip_trampoline field.
2946 (language_defn::skip_trampoline): New function.
2947 * m2-lang.c (m2_language_data): Delete skip_trampoline
2948 initializer.
2949 * objc-lang.c (objc_skip_trampoline): Delete function, move
2950 implementation to objc_language::skip_trampoline.
2951 (objc_language_data): Delete skip_trampoline initializer.
2952 (objc_language::skip_trampoline): New member function with
2953 implementation from objc_skip_trampoline.
2954 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
2955 initializer.
2956 * p-lang.c (pascal_language_data): Likewise.
2957 * rust-lang.c (rust_language_data): Likewise.
2958
0a50df5d
AB
29592020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2960
2961 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
2962 (ada_language::demangle): New member function.
2963 * c-lang.c (c_language_data): Delete la_demangle initializer.
2964 (cplus_language_data): Delete la_demangle initializer.
2965 (cplus_language::demangle): New member function.
2966 (asm_language_data): Delete la_demangle initializer.
2967 (minimal_language_data): Delete la_demangle initializer.
2968 * d-lang.c (d_language_data): Delete la_demangle initializer.
2969 (d_language::demangle): New member function.
2970 * f-lang.c (f_language_data): Delete la_demangle initializer.
2971 (f_language::demangle): New member function.
2972 * go-lang.c (go_language_data): Delete la_demangle initializer.
2973 (go_language::demangle): New member function.
2974 * language.c (language_demangle): Update.
2975 (unk_lang_demangle): Delete.
2976 (unknown_language_data): Delete la_demangle initializer.
2977 (unknown_language::demangle): New member function.
2978 (auto_language_data): Delete la_demangle initializer.
2979 (auto_language::demangle): New member function.
2980 * language.h (language_data): Delete la_demangle field.
2981 (language_defn::demangle): New function.
2982 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
2983 * objc-lang.c (objc_language_data): Delete la_demangle
2984 initializer.
2985 (objc_language::demangle): New member function.
2986 * opencl-lang.c (opencl_language_data): Delete la_demangle
2987 initializer.
2988 * p-lang.c (pascal_language_data): Likewise.
2989 * rust-lang.c (rust_language_data): Likewise.
2990 (rust_language::demangle): New member function.
2991
fbfb0a46
AB
29922020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2993
2994 * ada-lang.c (ada_language_data): Delete la_print_type
2995 initializer.
2996 (ada_language::print_type): New member function.
2997 * c-lang.c (c_language_data): Delete la_print_type initializer.
2998 (c_language::print_type): New member function.
2999 (cplus_language_data): Delete la_print_type initializer.
3000 (cplus_language::print_type): New member function.
3001 (asm_language_data): Delete la_print_type initializer.
3002 (asm_language::print_type): New member function.
3003 (minimal_language_data): Delete la_print_type initializer.
3004 (minimal_language::print_type): New member function.
3005 * d-lang.c (d_language_data): Delete la_print_type initializer.
3006 (d_language::print_type): New member function.
3007 * f-lang.c (f_language_data): Delete la_print_type initializer.
3008 (f_language::print_type): New member function.
3009 * go-lang.c (go_language_data): Delete la_print_type initializer.
3010 (go_language::print_type): New member function.
3011 * language.c (unk_lang_print_type): Delete.
3012 (unknown_language_data): Delete la_print_type initializer.
3013 (unknown_language::print_type): New member function.
3014 (auto_language_data): Delete la_print_type initializer.
3015 (auto_language::print_type): New member function.
3016 * language.h (language_data): Delete la_print_type field.
3017 (language_defn::print_type): New function.
3018 (LA_PRINT_TYPE): Update.
3019 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
3020 (m2_language::print_type): New member function.
3021 * objc-lang.c (objc_language_data): Delete la_print_type
3022 initializer.
3023 (objc_language::print_type): New member function.
3024 * opencl-lang.c (opencl_print_type): Delete, implementation moved
3025 to opencl_language::print_type.
3026 (opencl_language_data): Delete la_print_type initializer.
3027 (opencl_language::print_type): New member function, implementation
3028 from opencl_print_type.
3029 * p-lang.c (pascal_language_data): Delete la_print_type
3030 initializer.
3031 (pascal_language::print_type): New member function.
3032 * rust-lang.c (rust_print_type): Delete, implementation moved to
3033 rust_language::print_type.
3034 (rust_language_data): Delete la_print_type initializer.
3035 (rust_language::print_type): New member function, implementation
3036 from rust_print_type.
3037
6f827019
AB
30382020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3039
3040 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
3041 implementation moves to...
3042 (ada_language::sniff_from_mangled_name): ...here. Update return
3043 type.
3044 (ada_language_data): Delete la_sniff_from_mangled_name
3045 initializer.
3046 * c-lang.c (c_language_data): Likewise.
3047 (cplus_language_data): Likewise.
3048 (cplus_language::sniff_from_mangled_name): New member function,
3049 implementation taken from gdb_sniff_from_mangled_name.
3050 (asm_language_data): Delete la_sniff_from_mangled_name
3051 initializer.
3052 (minimal_language_data): Likewise.
3053 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
3054 implementation moves to cplus_language::sniff_from_mangled_name.
3055 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
3056 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
3057 moves to...
3058 (d_language::sniff_from_mangled_name): ...here.
3059 (d_language_data): Delete la_sniff_from_mangled_name initializer.
3060 * f-lang.c (f_language_data): Likewise.
3061 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
3062 moves to...
3063 (go_language::sniff_from_mangled_name): ...here.
3064 (go_language_data): Delete la_sniff_from_mangled_name initializer.
3065 * language.c (language_sniff_from_mangled_name): Delete.
3066 (unknown_language_data): Delete la_sniff_from_mangled_name
3067 initializer.
3068 (auto_language_data): Likewise.
3069 * language.h (language_data): Delete la_sniff_from_mangled_name
3070 field.
3071 (language_defn::sniff_from_mangled_name): New function.
3072 (language_sniff_from_mangled_name): Delete declaration.
3073 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
3074 field.
3075 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
3076 implementation moves to...
3077 (objc_language::sniff_from_mangled_name): ...here.
3078 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
3079 * opencl-lang.c (opencl_language_data): Likewise.
3080 * p-lang.c (pascal_language_data): Likewise.
3081 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
3082 implementation moves to...
3083 (rust_language::sniff_from_mangled_name): ...here.
3084 (rust_language_data): Delete la_sniff_from_mangled_name
3085 initializer.
3086 * symtab.c (symbol_find_demangled_name): Call
3087 sniff_from_mangled_name member function.
3088
fb8006fd
AB
30892020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3090
3091 * ada-lang.c (ada_language_data): Delete la_search_name_hash
3092 initializer.
3093 * c-lang.c (c_language_data): Likewise.
3094 (cplus_language_data): Likewise.
3095 (cplus_language::search_name_hash): New member function.
3096 (asm_language_data): Delete la_search_name_hash initializer.
3097 (minimal_language_data): Likewise.
3098 * d-lang.c (d_language_data): Likewise.
3099 * dictionary.c (default_search_name_hash): Rename to...
3100 (language_defn::search_name_hash): ...this.
3101 * f-lang.c (f_language_data): Likewise.
3102 (f_language::search_name_hash): New member function.
3103 * go-lang.c (go_language_data): Delete la_search_name_hash
3104 initializer.
3105 * language.c (unknown_language_data): Likewise.
3106 (auto_language_data): Likewise.
3107 * language.h (struct language_data): Delete la_search_name_hash
3108 field.
3109 (language_defn::search_name_hash): Declare new member function.
3110 (default_search_name_hash): Delete declaration.
3111 * m2-lang.c (m2_language_data): Delete la_search_name_hash
3112 initializer.
3113 * objc-lang.c (objc_language_data): Likewise.
3114 * opencl-lang.c (opencl_language_data): Likewise.
3115 * p-lang.c (pascal_language_data): Likewise.
3116 * rust-lang.c (rust_language_data): Likewise.
3117 * symtab.c (search_name_hash): Update call.
3118
8e25bafe
AB
31192020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3120
3121 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
3122 initializer.
3123 * c-lang.c (class compile_instance): Declare.
3124 (c_language_data): Delete la_get_compile_instance initializer.
3125 (c_language::get_compile_instance): New member function.
3126 (cplus_language_data): Delete la_get_compile_instance initializer.
3127 (cplus_language::get_compile_instance): New member function.
3128 (asm_language_data): Delete la_get_compile_instance initializer.
3129 (minimal_language_data): Likewise.
3130 * c-lang.h (c_get_compile_context): Update comment.
3131 (cplus_get_compile_context): Update comment.
3132 * compile/compile.c (compile_to_object): Update calls, don't rely
3133 on function pointer being NULL.
3134 * d-lang.c (d_language_data): Delete la_get_compile_instance
3135 initializer.
3136 * f-lang.c (f_language_data): Likewise.
3137 * go-lang.c (go_language_data): Likewise.
3138 * language.c (unknown_language_data): Likewise.
3139 (auto_language_data): Likewise.
3140 * language.h (language_data): Delete la_get_compile_instance field.
3141 (language_defn::get_compile_instance): New member function.
3142 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
3143 initializer.
3144 * objc-lang.c (objc_language_data): Likewise.
3145 * opencl-lang.c (opencl_language_data): Likewise.
3146 * p-lang.c (pascal_language_data): Likewise.
3147 * rust-lang.c (rust_language_data): Likewise.
3148
4009ee92
AB
31492020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3150
3151 * ada-lang.c (ada_add_all_symbols): Update comment.
3152 (ada_iterate_over_symbols): Delete, move implementation to...
3153 (ada_language::iterate_over_symbols): ...here, a new member
3154 function, rewrite to use range based for loop.
3155 (ada_language_data): Delete la_iterate_over_symbols initializer.
3156 * c-lang.c (c_language_data): Likewise.
3157 (cplus_language_data): Likewise.
3158 (asm_language_data): Likewise.
3159 (minimal_language_data): Likewise.
3160 * d-lang.c (d_language_data): Likewise.
3161 * f-lang.c (f_language_data): Likewise.
3162 * go-lang.c (go_language_data): Likewise.
3163 * language.c (unknown_language_data): Likewise.
3164 (auto_language_data): Likewise.
3165 * language.h (language_data): Delete la_iterate_over_symbols field.
3166 (language_defn::iterate_over_symbols): New member function.
3167 (LA_ITERATE_OVER_SYMBOLS): Update.
3168 * linespec.c (iterate_over_all_matching_symtabs): Update.
3169 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
3170 initializer.
3171 * objc-lang.c (objc_language_data): Likewise.
3172 * opencl-lang.c (opencl_language_data): Likewise.
3173 * p-lang.c (pascal_language_data): Likewise.
3174 * rust-lang.c (rust_language_data): Likewise.
3175
54f4ca46
AB
31762020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3177
3178 * ada-lang.c (ada_language_data): Delete
3179 la_lookup_transparent_type initializer.
3180 * c-lang.c (c_language_data): Likewise.
3181 (cplus_language_data): Likewise.
3182 (cplus_language::lookup_transparent_type): New member function.
3183 (asm_language_data): Delete la_lookup_transparent_type
3184 initializer.
3185 (minimal_language_data): Likewise.
3186 * d-lang.c (d_language_data): Likewise.
3187 * f-lang.c (f_language_data): Likewise.
3188 * go-lang.c (go_language_data): Likewise.
3189 * language.c (unknown_language_data): Likewise.
3190 (auto_language_data): Likewise.
3191 * language.h (struct language_data): Delete
3192 la_lookup_transparent_type field.
3193 (language_defn::lookup_transparent_type): New member function.
3194 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
3195 initializer.
3196 * objc-lang.c (objc_language_data): Likewise.
3197 * opencl-lang.c (opencl_language_data): Likewise.
3198 * p-lang.c (pascal_language_data): Likewise.
3199 * rust-lang.c (rust_language_data): Likewise.
3200 * symtab.c (symbol_matches_domain): Update call.
3201
1fb314aa
AB
32022020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3203
3204 * ada-lang.c (ada_language_arch_info): Delete function, move
3205 implementation to...
3206 (ada_language::language_arch_info): ...here, a new member
3207 function.
3208 (ada_language_data): Delete la_language_arch_info.
3209 * c-lang.c (c_language_data): Likewise.
3210 (c_language::language_arch_info): New member function.
3211 (cplus_language_arch_info): Delete function, move
3212 implementation to...
3213 (cplus_language::language_arch_info): ...here, a new member
3214 function.
3215 (cplus_language_data): Delete la_language_arch_info.
3216 (asm_language_data): Likewise.
3217 (asm_language::language_arch_info): New member function.
3218 (minimal_language_data): Delete la_language_arch_info.
3219 (minimal_language::language_arch_info): New member function.
3220 * d-lang.c (d_language_arch_info): Delete function, move
3221 implementation to...
3222 (d_language::language_arch_info): ...here, a new member
3223 function.
3224 (d_language_data): Delete la_language_arch_info.
3225 * f-lang.c (f_language_arch_info): Delete function, move
3226 implementation to...
3227 (f_language::language_arch_info): ...here, a new member
3228 function.
3229 (f_language_data): Delete la_language_arch_info.
3230 * go-lang.c (go_language_arch_info): Delete function, move
3231 implementation to...
3232 (go_language::language_arch_info): ...here, a new member
3233 function.
3234 (go_language_data): Delete la_language_arch_info.
3235 * language.c (unknown_language_data): Likewise.
3236 (unknown_language::language_arch_info): New member function.
3237 (auto_language_data): Delete la_language_arch_info.
3238 (auto_language::language_arch_info): New member function.
3239 (language_gdbarch_post_init): Update call to
3240 la_language_arch_info.
3241 * language.h (language_data): Delete la_language_arch_info
3242 function pointer.
3243 (language_defn::language_arch_info): New function.
3244 * m2-lang.c (m2_language_arch_info): Delete function, move
3245 implementation to...
3246 (m2_language::language_arch_info): ...here, a new member
3247 function.
3248 (m2_language_data): Delete la_language_arch_info.
3249 * objc-lang.c (objc_language_arch_info): Delete function, move
3250 implementation to...
3251 (objc_language::language_arch_info): ...here, a new member
3252 function.
3253 (objc_language_data): Delete la_language_arch_info.
3254 * opencl-lang.c (opencl_language_arch_info): Delete function, move
3255 implementation to...
3256 (opencl_language::language_arch_info): ...here, a new member
3257 function.
3258 (opencl_language_data): Delete la_language_arch_info.
3259 * p-lang.c (pascal_language_arch_info): Delete function, move
3260 implementation to...
3261 (pascal_language::language_arch_info): ...here, a new member
3262 function.
3263 (pascal_language_data): Delete la_language_arch_info.
3264 * rust-lang.c (rust_language_arch_info): Delete function, move
3265 implementation to...
3266 (rust_language::language_arch_info): ...here, a new member
3267 function.
3268 (rust_language_data): Delete la_language_arch_info.
3269
48448202
AB
32702020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3271
3272 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
3273 initializer.
3274 * c-lang.c (c_language_data): Likewise.
3275 (cplus_language_data): Likewise.
3276 (cplus_language::pass_by_reference_info): New method.
3277 (asm_language_data): Delete la_pass_by_reference initializer.
3278 (minimal_language_data): Likewise.
3279 * cp-abi.c (cp_pass_by_reference): Remove use of
3280 default_pass_by_reference.
3281 * d-lang.c (d_language_data): Likewise.
3282 * f-lang.c (f_language_data): Likewise.
3283 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
3284 default_pass_by_reference.
3285 * go-lang.c (go_language_data): Likewise.
3286 * language.c (language_pass_by_reference): Update.
3287 (default_pass_by_reference): Delete.
3288 (unknown_language_data): Delete la_pass_by_reference
3289 initializer.
3290 (auto_language_data): Likewise.
3291 * language.h (struct language_data): Delete la_pass_by_reference
3292 field.
3293 (language_defn::pass_by_reference_info): New member function.
3294 (default_pass_by_reference): Delete declaration.
3295 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
3296 initializer.
3297 * objc-lang.c (objc_language_data): Likewise.
3298 * opencl-lang.c (opencl_language_data): Likewise.
3299 * p-lang.c (pascal_language_data): Likewise.
3300 * rust-lang.c (rust_language_data): Likewise.
3301
15e5fd35
AB
33022020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3303
3304 * ada-lang.c (ada_read_var_value): Delete function, move
3305 implementation to...
3306 (ada_language::read_var_value): ...here.
3307 (ada_language_data): Delete la_read_var_value initializer.
3308 * c-lang.c (c_language_data): Likewise.
3309 (cplus_language_data): Likewise.
3310 (minimal_language_data): Likewise.
3311 * d-lang.c (d_language_data): Likewise.
3312 * f-lang.c (f_language_data): Likewise.
3313 * findvar.c (default_read_var_value): Rename to...
3314 (language_defn::read_var_value): ...this.
3315 * findvar.c (read_var_value): Update header comment, and change to
3316 call member function instead of function pointer.
3317 * go-lang.c (go_language_data): Likewise.
3318 * language.c (unknown_language_data): Delete la_read_var_value
3319 initializer.
3320 (auto_language_data): Likewise.
3321 * language.h (struct language_data): Delete la_read_var_value
3322 field.
3323 (language_defn::read_var_value): New member function.
3324 (default_read_var_value): Delete declaration.
3325 * m2-lang.c (m2_language_data): Delete la_read_var_value
3326 initializer.
3327 * objc-lang.c (objc_language_data): Likewise.
3328 * opencl-lang.c (opencl_language_data): Likewise.
3329 * p-lang.c (pascal_language_data): Likewise.
3330 * rust-lang.c (rust_language_data): Likewise.
3331 * value.h (default_read_var_value): Delete declaration.
3332
5bd40f2a
AB
33332020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3334
3335 * ada-lang.c (ada_print_array_index): Delete function, move
3336 implementation to...
3337 (ada_language::print_array_index): ...here.
3338 (ada_language_data): Delete la_print_array_index initializer.
3339 * c-lang.c (c_language_data): Likewise.
3340 (cplus_language_data): Likewise.
3341 (minimal_language_data): Likewise.
3342 * d-lang.c (d_language_data): Likewise.
3343 * f-lang.c (f_language_data): Likewise.
3344 * go-lang.c (go_language_data): Likewise.
3345 * language.c (default_print_array_index): Delete function, move
3346 implementation to...
3347 (language_defn::print_array_index): ...here.
3348 (unknown_language_data): Delete la_print_array_index initializer.
3349 (auto_language_data): Likewise.
3350 * language.h (struct language_data): Delete la_print_array_index
3351 field.
3352 (language_defn::print_array_index): New member function.
3353 (LA_PRINT_ARRAY_INDEX): Update.
3354 (default_print_array_index): Delete declaration.
3355 * m2-lang.c (m2_language_data): Delete la_print_array_index
3356 initializer.
3357 * objc-lang.c (objc_language_data): Likewise.
3358 * opencl-lang.c (opencl_language_data): Likewise.
3359 * p-lang.c (pascal_language_data): Likewise.
3360 * rust-lang.c (rust_language_data): Likewise.
3361
0874fd07
AB
33622020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3363
3364 * gdb/ada-lang.c (ada_language_defn): Convert to...
3365 (ada_language_data): ...this.
3366 (class ada_language): New class.
3367 (ada_language_defn): New static global.
3368 * gdb/c-lang.c (c_language_defn): Convert to...
3369 (c_language_data): ...this.
3370 (class c_language): New class.
3371 (c_language_defn): New static global.
3372 (cplus_language_defn): Convert to...
3373 (cplus_language_data): ...this.
3374 (class cplus_language): New class.
3375 (cplus_language_defn): New static global.
3376 (asm_language_defn): Convert to...
3377 (asm_language_data): ...this.
3378 (class asm_language): New class.
3379 (asm_language_defn): New static global.
3380 (minimal_language_defn): Convert to...
3381 (minimal_language_data): ...this.
3382 (class minimal_language): New class.
3383 (minimal_language_defn): New static global.
3384 * gdb/d-lang.c (d_language_defn): Convert to...
3385 (d_language_data): ...this.
3386 (class d_language): New class.
3387 (d_language_defn): New static global.
3388 * gdb/f-lang.c (f_language_defn): Convert to...
3389 (f_language_data): ...this.
3390 (class f_language): New class.
3391 (f_language_defn): New static global.
3392 * gdb/go-lang.c (go_language_defn): Convert to...
3393 (go_language_data): ...this.
3394 (class go_language): New class.
3395 (go_language_defn): New static global.
3396 * gdb/language.c (unknown_language_defn): Remove declaration.
3397 (current_language): Initialize to nullptr, real initialization is
3398 moved to _initialize_language.
3399 (languages): Delete global.
3400 (language_defn::languages): Define.
3401 (set_language_command): Use language_defn::languages.
3402 (set_language): Likewise.
3403 (range_error): Likewise.
3404 (language_enum): Likewise.
3405 (language_def): Likewise.
3406 (add_set_language_command): Use language_def::languages for the
3407 language list, and language_def to lookup language pointers.
3408 (skip_language_trampoline): Use language_defn::languages.
3409 (unknown_language_defn): Convert to...
3410 (unknown_language_data): ...this.
3411 (class unknown_language): New class.
3412 (unknown_language_defn): New static global.
3413 (auto_language_defn): Convert to...
3414 (auto_language_data): ...this.
3415 (class auto_language): New class.
3416 (auto_language_defn): New static global.
3417 (language_gdbarch_post_init): Use language_defn::languages.
3418 (_initialize_language): Initialize current_language.
3419 * gdb/language.h (struct language_defn): Rename to...
3420 (struct language_data): ...this.
3421 (struct language_defn): New.
3422 (auto_language_defn): Delete.
3423 (unknown_language_defn): Delete.
3424 (minimal_language_defn): Delete.
3425 (ada_language_defn): Delete.
3426 (asm_language_defn): Delete.
3427 (c_language_defn): Delete.
3428 (cplus_language_defn): Delete.
3429 (d_language_defn): Delete.
3430 (f_language_defn): Delete.
3431 (go_language_defn): Delete.
3432 (m2_language_defn): Delete.
3433 (objc_language_defn): Delete.
3434 (opencl_language_defn): Delete.
3435 (pascal_language_defn): Delete.
3436 (rust_language_defn): Delete.
3437 * gdb/m2-lang.c (m2_language_defn): Convert to...
3438 (m2_language_data): ...this.
3439 (class m2_language): New class.
3440 (m2_language_defn): New static global.
3441 * gdb/objc-lang.c (objc_language_defn): Convert to...
3442 (objc_language_data): ...this.
3443 (class objc_language): New class.
3444 (objc_language_defn): New static global.
3445 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
3446 (opencl_language_data): ...this.
3447 (class opencl_language): New class.
3448 (opencl_language_defn): New static global.
3449 * gdb/p-lang.c (pascal_language_defn): Convert to...
3450 (pascal_language_data): ...this.
3451 (class pascal_language): New class.
3452 (pascal_language_defn): New static global.
3453 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
3454 language pointer, update comment format.
3455 * gdb/rust-lang.c (rust_language_defn): Convert to...
3456 (rust_language_data): ...this.
3457 (class rust_language): New class.
3458 (rust_language_defn): New static global.
3459
1313c56e
AB
34602020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
3461
3462 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
3463 member variable.
3464 <m_stmt_at_address>: New member variable.
3465 (lnp_state_machine::record_line): Don't record some lines, update
3466 tracking of is_stmt at the same address.
3467 (lnp_state_machine::lnp_state_machine): Initialise new member
3468 variables.
3469
b7ed9f3d
ST
34702020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
3471
3472 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
3473 "-include gnu-nat-mig.h".
3474 * gnu-nat-mig.h: New file.
3475 * gnu-nat.c: Include "gnu-nat-mig.h".
3476 (exc_server, msg_reply_server, notify_server,
3477 process_reply_server): Remove declarations.
3478
14a8ad62
ST
34792020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3480
3481 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
3482 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
3483 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
3484 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
3485 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
3486 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
3487 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
3488 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
3489 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
3490 to gnu_nat_target class.
3491 * gnu-nat.c: Likewise.
3492 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
3493 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
3494 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
3495 object.
3496 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
3497 instead of `gnu_target'.
3498
0af5e106
ST
34992020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3500
3501 * i386-gnu-tdep.c: Include "gdbcore.h"
3502 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
3503 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
3504 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
3505 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
3506 i386_gnu_sigcontext_addr): New functions
3507 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
3508 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
3509 tdep.
3510
078f2fc9
ST
35112020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3512
3513 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
3514 before fork_inferior call. Avoid calling it if target_is_pushed returns
3515 true.
3516
53dff92c
ST
35172020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3518
3519 * gnu-nat.h (gnu_target): New variable declaration.
3520 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
3521 gnu_target.
3522 * gnu-nat.c (gnu_target): New variable.
3523 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
3524 add_thread_silent, and add_thread calls.
3525 (gnu_nat_target::create_inferior): Pass gnu_target to
3526 add_thread_silent, thread_change_ptid call.
3527 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
3528 call.
3529
5a8b8627
ST
35302020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3531
3532 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
3533 (gnu_nat_target::find_memory_regions): Remove unused
3534 `old_address' variable.
3535
366f550a
ST
35362020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3537
3538 * gnu-nat.c: Include "gdbarch.h".
3539
f14871bf
ST
35402020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3541
3542 * reply_mig_hack.awk (Error return): Cast function through
3543 void *, to bypass compiler function call check.
3544
c6887cfb
ST
35452020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3546
3547 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
3548 $(srcdir)/reply_mig_hack.awk.
3549
6930bffe
ST
35502020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3551
3552 * gnu-nat.h (gnu_debug_flag): Set type to bool.
3553
112c22ed
JG
35542020-05-30 Jonny Grant <jg@jguk.org>
3555
3556 * configure.ac (ACX_BUGURL): change bug URL to https.
3557
f68f85b5
PA
35582020-05-30 Pedro Alves <palves@redhat.com>
3559
3560 * cp-support.c (replace_typedefs_template): New.
3561 (replace_typedefs_qualified_name): Handle
3562 DEMANGLE_COMPONENT_TEMPLATE.
3563
976ca316
SM
35642020-05-29 Simon Marchi <simon.marchi@efficios.com>
3565
3566 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
3567 dwarf2/index-cache.h, dwarf2/index-write.c,
3568 dwarf2/index-write.h, dwarf2/line-header.c,
3569 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
3570 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
3571 variables and fields from `dwarf2_per_objfile` to just
3572 `per_objfile` throughout.
3573
989ade05
SM
35742020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
3575
3576 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3577 <push_dwarf_reg_entry_value>: Add comment.
3578
c47bae85
KB
35792020-05-28 Kevin Buettner <kevinb@redhat.com>
3580 Keith Seitz <keiths@redhat.com>
3581
3582 * python/python.c (do_start_initialization): Call PyEval_SaveThread
3583 instead of PyEval_ReleaseLock.
3584 (class gdbpy_gil): Move to earlier in file.
3585 (finalize_python): Set gdb_python_initialized.
3586 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
3587 when not initialized.
3588
44486dcf
SM
35892020-05-28 Simon Marchi <simon.marchi@efficios.com>
3590
3591 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3592 <push_dwarf_reg_entry_value>: Remove assert. Override
3593 per_objfile with caller_per_objfile.
3594
f030440d
TV
35952020-05-28 Tom de Vries <tdevries@suse.de>
3596
3597 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
3598 PR gold/15646 workaround to symbol kind "type".
3599
f0fbb768
TT
36002020-05-27 Tom Tromey <tromey@adacore.com>
3601
3602 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
3603
af0b2a3e
TT
36042020-05-27 Tom Tromey <tromey@adacore.com>
3605
3606 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
3607 Use htab_find_with_hash.
3608 <add_abbrev>: Remove "abbrev_number" parameter.
3609 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
3610 "abbrev_number" parameter. Use htab_find_slot_with_hash.
3611 (hash_abbrev): Add comment.
3612 (abbrev_table::lookup_abbrev): Move to header file.
3613 (abbrev_table::read): Update.
3614
7d00ffec
TT
36152020-05-27 Tom Tromey <tromey@adacore.com>
3616
3617 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
3618 method.
3619 <canonical_name>: New member.
3620 <raw_name>: Rename from "name".
3621 (partial_die_info): Initialize canonical_name.
3622 (scan_partial_symbols): Check raw_name.
3623 (partial_die_parent_scope, partial_die_full_name)
3624 (add_partial_symbol, add_partial_subprogram)
3625 (add_partial_enumeration, load_partial_dies): Use "name" method.
3626 (partial_die_info::name): New method.
3627 (partial_die_info::read, guess_partial_die_structure_name)
3628 (partial_die_info::fixup): Update.
3629
697bba18
TT
36302020-05-27 Tom Tromey <tromey@adacore.com>
3631
3632 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
3633 <get_ref_die_offset>: Inline.
3634 <get_ref_die_offset_complaint>: New method.
3635 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
3636 (attribute::get_ref_die_offset_complaint): Rename from
3637 get_ref_die_offset. Just issue complaint.
3638
c17ace43
HD
36392020-05-27 Hannes Domani <ssbssa@yahoo.de>
3640
3641 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
3642
96445f0b
HD
36432020-05-27 Hannes Domani <ssbssa@yahoo.de>
3644
3645 * exec.c (exec_file_attach): Use errno value of first openp failure.
3646
ac637ec3
HD
36472020-05-27 Hannes Domani <ssbssa@yahoo.de>
3648
3649 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
3650 Don't close thread handle.
3651
17ee85fc
TT
36522020-05-27 Tom Tromey <tom@tromey.com>
3653 Simon Marchi <simon.marchi@efficios.com>
3654
3655 * objfiles.h (struct objfile) <partial_symtabs>: Now a
3656 shared_ptr.
3657 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
3658 member.
3659 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
3660 dwarf2_per_bfd_objfile_data_key>: New globals.
3661 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
3662 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
3663 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
3664 shared.
3665 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
3666 short-circuit when sharing.
3667 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
3668 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
3669
39b16f87
SM
36702020-05-27 Simon Marchi <simon.marchi@efficios.com>
3671
3672 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
3673 to...
3674 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
3675 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
3676
fcf23d5b
SM
36772020-05-27 Simon Marchi <simon.marchi@efficios.com>
3678
3679 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
3680 build_name_components, find_name_components_bounds>:
3681 Add per_objfile parameter.
3682 (struct mapped_index) <symbol_name_at>: Likewise.
3683 (struct mapped_debug_names): Remove constructor.
3684 <dwarf2_per_objfile>: Remove field.
3685 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
3686 (mapped_index_base::find_name_components_bounds,
3687 mapped_index_base::build_name_components,
3688 dw2_expand_symtabs_matching_symbol): Likewise.
3689 (class mock_mapped_index) <symbol_name_at>: Likewise.
3690 (check_match): Likewise.
3691 (check_find_bounds_finds): Likewise.
3692 (test_mapped_index_find_name_component_bounds): Update.
3693 (CHECK_MATCH): Update.
3694 (dw2_expand_symtabs_matching): Update.
3695 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
3696 per_objfile parameter.
3697 <find_vec_in_debug_names>: Likewise.
3698 <m_per_objfile>: New field.
3699 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
3700 parameter.
3701 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
3702 (dw2_debug_names_iterator::next): Update.
3703 (dw2_debug_names_lookup_symbol): Update.
3704 (dw2_debug_names_expand_symtabs_for_function): Update.
3705 (dw2_debug_names_map_matching_symbols): Update.
3706 (dw2_debug_names_expand_symtabs_matching): Update.
3707 (dwarf2_read_debug_names): Update.
3708
7188ed02
SM
37092020-05-27 Simon Marchi <simon.marchi@efficios.com>
3710
3711 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
3712 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
3713 move to dwarf2_per_objfile.
3714 <read_in_chain>: Remove.
3715 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
3716 remove_all_cus, age_comp_units>: New methods.
3717 <m_dwarf2_cus>: New member.
3718 (struct dwarf2_per_cu_data) <cu>: Remove.
3719 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
3720 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
3721 moved to methods of dwarf2_per_objfile.
3722 (dwarf2_clear_marks): Remove.
3723 (dwarf2_queue_item::~dwarf2_queue_item): Update.
3724 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
3725 (dwarf2_per_bfd::free_cached_comp_units): Remove.
3726 (dwarf2_per_objfile::remove_all_cus): New.
3727 (class free_cached_comp_units) <~free_cached_comp_units>:
3728 Update.
3729 (load_cu): Update.
3730 (dw2_do_instantiate_symtab): Adjust.
3731 (fill_in_sig_entry_from_dwo_entry): Adjust.
3732 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3733 (cutu_reader::cutu_reader): Likewise.
3734 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
3735 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
3736 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
3737 and dwarf2_per_objfile::age_comp_units.
3738 (load_partial_comp_unit): Update.
3739 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
3740 (process_queue): Likewise.
3741 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
3742 backlink.
3743 (dwarf2_read_addr_index): Likewise.
3744 (follow_die_offset): Likewise.
3745 (dwarf2_fetch_die_loc_sect_off): Likewise.
3746 (dwarf2_fetch_constant_bytes): Likewise.
3747 (dwarf2_fetch_die_type_sect_off): Likewise.
3748 (follow_die_sig_1): Likewise.
3749 (load_full_type_unit): Likewise.
3750 (read_signatured_type): Likewise.
3751 (dwarf2_cu::dwarf2_cu): Don't set cu field.
3752 (dwarf2_cu::~dwarf2_cu): Remove.
3753 (dwarf2_per_objfile::get_cu): New.
3754 (dwarf2_per_objfile::set_cu): New.
3755 (age_cached_comp_units): Rename to...
3756 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
3757 to std::unordered_map.
3758 (free_one_cached_comp_unit): Rename to...
3759 (dwarf2_per_objfile::remove_cu): ... this. Adjust
3760 to std::unordered_map.
3761 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
3762 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
3763 a dwarf2_per_objfile in data.
3764 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
3765 (dwarf2_clear_marks): Remove.
3766
2e671100
SM
37672020-05-27 Simon Marchi <simon.marchi@efficios.com>
3768
3769 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
3770 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
3771 (init_tu_and_read_dwo_dies): Likewise.
3772 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
3773 (cutu_reader::cutu_reader): Likewise.
3774 (load_partial_comp_unit): Likewise.
3775 (process_psymtab_comp_unit): Update.
3776 (build_type_psymtabs_1): Update.
3777 (process_skeletonless_type_unit): Update.
3778 (load_full_comp_unit): Update.
3779 (find_partial_die): Update.
3780 (dwarf2_read_addr_index): Update.
3781 (read_signatured_type): Update.
3782
2e6a9f79
SM
37832020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3784
3785 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
3786 m_header_read_in>: New fields.
3787 <get_header>: New method.
3788 * dwarf2/read.c (per_cu_header_read_in): Remove.
3789 (dwarf2_per_cu_data::get_header): New.
3790 (dwarf2_per_cu_data::addr_size): Update.
3791 (dwarf2_per_cu_data::offset_size): Update.
3792 (dwarf2_per_cu_data::ref_addr_size): Update.
3793
1b555f17
SM
37942020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3795
3796 * dwarf2/read.c (load_cu): Return dwarf2_cu.
3797 (dw2_do_instantiate_symtab): Update.
3798 (queue_and_load_all_dwo_tus): Change parameter from
3799 dwarf2_per_cu_data to dwarf2_cu.
3800 (dwarf2_fetch_die_loc_sect_off): Update.
3801 (dwarf2_fetch_constant_bytes): Update.
3802 (dwarf2_fetch_die_type_sect_off): Update.
3803
8fc0b21d
SM
38042020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3805
3806 * dwarf2/read.c (process_full_comp_unit,
3807 process_full_type_unit): Remove per_cu, per_objfile paramters.
3808 Add dwarf2_cu parameter.
3809 (process_queue): Update.
3810
168c9250
SM
38112020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3812
3813 * dwarf2/read.c (create_cu_from_index_list): Replace
3814 dwarf2_per_objfile parameter with dwarf2_per_bfd.
3815 (create_cus_from_index_list): Likewise.
3816 (create_cus_from_index): Likewise.
3817 (create_signatured_type_table_from_index): Likewise.
3818 (create_cus_from_debug_names_list): Likewise.
3819 (create_cus_from_debug_names): Likewise.
3820 (dwarf2_read_gdb_index): Update.
3821 (dwarf2_read_debug_names): Update.
3822
e286671b
TT
38232020-05-27 Tom Tromey <tom@tromey.com>
3824 Simon Marchi <simon.marchi@efficios.com>
3825
3826 * dwarf2/read.h (struct dwarf2_per_objfile)
3827 <get_type_for_signatured_type, set_type_for_signatured_type>:
3828 New methods.
3829 <m_type_map>: New member.
3830 (struct signatured_type) <type>: Remove.
3831 * dwarf2/read.c
3832 (dwarf2_per_objfile::get_type_for_signatured_type,
3833 dwarf2_per_objfile::set_type_for_signatured_type): New.
3834 (get_signatured_type): Use new methods.
3835
8adb8487
TT
38362020-05-27 Tom Tromey <tom@tromey.com>
3837 Simon Marchi <simon.marchi@efficios.com>
3838
3839 * dwarf2/read.h (struct type_unit_group_unshareable): New.
3840 (struct dwarf2_per_objfile) <type_units>: New member.
3841 <get_type_unit_group_unshareable>: New method.
3842 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
3843 num_symtabs, symtabs>: Remove; move to
3844 type_unit_group_unshareable.
3845 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
3846 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
3847 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
3848
127bbf4b
SM
38492020-05-27 Simon Marchi <simon.marchi@efficios.com>
3850
3851 * dwarf2/read.h (struct dwarf2_per_cu_data):
3852 <dwarf2_per_objfile>: Remove.
3853 * dwarf2/read.c (create_cu_from_index_list): Don't assign
3854 dwarf2_per_objfile.
3855 (create_signatured_type_table_from_index): Likewise.
3856 (create_signatured_type_table_from_debug_names): Likewise.
3857 (create_debug_type_hash_table): Likewise.
3858 (fill_in_sig_entry_from_dwo_entry): Likewise.
3859 (create_type_unit_group): Likewise.
3860 (read_comp_units_from_section): Likewise.
3861 (create_cus_hash_table): Likewise.
3862
f6e649dd
SM
38632020-05-27 Simon Marchi <simon.marchi@efficios.com>
3864
3865 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
3866 dwarf2_per_cu_data::dwarf2_per_objfile.
3867 (compute_compunit_symtab_includes): Likewise.
3868 (dwarf2_cu::start_symtab): Likewise.
3869
aa66c379
SM
38702020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3871
3872 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
3873 parameter.
3874 * dwarf2/read.c (get_die_type_at_offset): Likewise.
3875 (read_namespace_alias): Update.
3876 (lookup_die_type): Update.
3877 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
3878 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
3879 Update.
3880 (disassemble_dwarf_expression): Update.
3881
120ce1b5
SM
38822020-05-27 Simon Marchi <simon.marchi@efficios.com>
3883
3884 * dwarf2/read.h (struct dwarf2_queue_item): Add
3885 dwarf2_per_objfile parameter, assign new parameter.
3886 <per_objfile>: New field.
3887 * dwarf2/read.c (free_one_cached_comp_unit): Add
3888 dwarf2_per_objfile parameter.
3889 (queue_comp_unit): Likewise.
3890 (dw2_do_instantiate_symtab): Update.
3891 (process_psymtab_comp_unit): Update.
3892 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
3893 (process_imported_unit_die): Update.
3894 (queue_and_load_dwo_tu): Update.
3895 (follow_die_offset): Update.
3896 (follow_die_sig_1): Update.
3897
9f47c707
SM
38982020-05-27 Simon Marchi <simon.marchi@efficios.com>
3899
3900 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
3901 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
3902 (read_call_site_scope): Assign per_objfile.
3903 (dwarf2_per_cu_data::objfile): Remove.
3904 * gdbtypes.h (struct call_site) <per_objfile>: New member.
3905 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
3906 dwarf2_per_objfile parameter.
3907 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
3908 dwarf2_per_objfile parameter.
3909 (dwarf_expr_reg_to_entry_parameter): Add output
3910 dwarf2_per_objfile parameter.
3911 (locexpr_get_frame_base): Update.
3912 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
3913 <push_dwarf_reg_entry_value>: Update.
3914 <call_site_to_target_addr>: Update.
3915 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
3916 parameter.
3917 (value_of_dwarf_reg_entry): Update.
3918 (rw_pieced_value): Update.
3919 (indirect_synthetic_pointer): Update.
3920 (dwarf2_evaluate_property): Update.
3921 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
3922 parameter.
3923 (locexpr_read_variable): Update.
3924 (locexpr_get_symbol_read_needs): Update.
3925 (loclist_read_variable): Update.
3926
14095eb3
SM
39272020-05-27 Simon Marchi <simon.marchi@efficios.com>
3928
3929 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
3930 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3931 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
3932 parameter.
3933 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
3934 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3935 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
3936 parameter.
3937 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
3938 sect_variable_value): Add dwarf2_per_objfile parameter.
3939 (class dwarf_evaluate_loc_desc) <dwarf_call,
3940 dwarf_variable_value>: Update.
3941 (fetch_const_value_from_synthetic_pointer): Add
3942 dwarf2_per_objfile parameter.
3943 (fetch_const_value_from_synthetic_pointer): Update.
3944 (coerced_pieced_ref): Update.
3945 (class symbol_needs_eval_context) <dwarf_call,
3946 dwarf_variable_value>: Update.
3947 (dwarf2_compile_expr_to_ax): Update.
3948
3c3cd3d4
SM
39492020-05-27 Simon Marchi <simon.marchi@efficios.com>
3950
3951 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
3952 parameter.
3953 (dwarf2_evaluate_loc_desc_full): Update.
3954
82ca3f51
SM
39552020-05-27 Simon Marchi <simon.marchi@efficios.com>
3956
3957 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
3958 parameter.
3959 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
3960 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
3961 dwarf2_per_objfile parameter.
3962 (decode_debug_loc_dwo_addresses): Likewise.
3963 (dwarf2_find_location_expression): Update.
3964 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
3965 (locexpr_describe_location_piece): Add dwarf2_per_objfile
3966 parameter.
3967 (disassemble_dwarf_expression): Add dwarf2_per_objfile
3968 parameter.
3969 (locexpr_describe_location_1): Likewise.
3970 (locexpr_describe_location): Update.
3971
4b167ea1
SM
39722020-05-27 Simon Marchi <simon.marchi@efficios.com>
3973
3974 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
3975 Remove.
3976 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
3977 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
3978 (dwarf2_compile_property_to_c): Update.
3979 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
3980 use text offset from objfile.
3981 (locexpr_tracepoint_var_ref): Update.
3982 (locexpr_generate_c_location): Update.
3983 (loclist_describe_location): Update.
3984 (loclist_tracepoint_var_ref): Update.
3985 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
3986 dwarf2_per_objfile parameter.
3987 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
3988 use text offset from objfile.
3989 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
3990
89b07335
SM
39912020-05-27 Simon Marchi <simon.marchi@efficios.com>
3992
3993 * dwarf2/expr.h (struct dwarf_expr_context)
3994 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
3995 <offset>: Remove.
3996 <per_objfile>: New member.
3997 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
3998 dwarf2_per_objfile parameter. Don't set offset, set
3999 per_objfile.
4000 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
4001 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
4002 a dwarf2_per_objfile object instead of an offset.
4003 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
4004 constructor.
4005 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
4006 to dwarf2_expr_executor constructor. Don't set offset.
4007 (dwarf2_fetch_cfa_info): Update.
4008 (struct dwarf2_frame_cache) <text_offset>: Remove.
4009 <per_objfile>: New field.
4010 (dwarf2_frame_cache): Update.
4011 (dwarf2_frame_prev_register): Update.
4012 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4013 <dwarf_evaluate_loc_desc>: Add constructor.
4014 (dwarf2_evaluate_loc_desc_full): Update.
4015 (dwarf2_locexpr_baton_eval): Update.
4016 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
4017 Add constructor.
4018 (dwarf2_loc_desc_get_symbol_read_needs): Update.
4019
293e7e51
SM
40202020-05-27 Simon Marchi <simon.marchi@efficios.com>
4021
4022 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
4023 addr_sized_int_type>: Move to dwarf2_cu.
4024 <int_type>: Move to dwarf2_per_objfile.
4025 (struct dwarf2_per_objfile) <int_type>: Move here.
4026 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
4027 addr_sized_int_type>: Move here.
4028 (read_func_scope): Update.
4029 (read_array_type): Update.
4030 (read_tag_string_type): Update.
4031 (attr_to_dynamic_prop): Update.
4032 (dwarf2_per_cu_data::int_type): Rename to...
4033 (dwarf2_per_objfile::int_type): ... this.
4034 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
4035 (dwarf2_cu::addr_sized_int_type): ... this.
4036 (read_subrange_type): Update.
4037 (dwarf2_per_cu_data::addr_type): Rename to...
4038 (dwarf2_cu::addr_type): ... this.
4039 (set_die_type): Update.
4040
64874a40
SM
40412020-05-27 Simon Marchi <simon.marchi@efficios.com>
4042
4043 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
4044 data through per_cu->cu.
4045
4ab09049
SM
40462020-05-27 Simon Marchi <simon.marchi@efficios.com>
4047
4048 * dwarf2/read.c (lookup_dwo_comp_unit): Change
4049 dwarf2_per_cu_data parameter fo dwarf2_cu.
4050 (lookup_dwo_type_unit): Likewise.
4051 (read_cutu_die_from_dwo): Likewise.
4052 (lookup_dwo_unit): Likewise.
4053 (open_and_init_dwo_file): Likewise.
4054 (lookup_dwo_cutu): Likewise.
4055 (lookup_dwo_comp_unit): Likewise.
4056 (lookup_dwo_type_unit): Likewise.
4057 (cutu_reader::init_tu_and_read_dwo_dies): Update.
4058 (cutu_reader::cutu_reader): Update.
4059
47b14e86
SM
40602020-05-27 Simon Marchi <simon.marchi@efficios.com>
4061
4062 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
4063 parameter.
4064 (process_full_type_unit): Likewise.
4065 (process_queue): Update.
4066
43182c09
SM
40672020-05-27 Simon Marchi <simon.marchi@efficios.com>
4068
4069 * dwarf2/read.c (recursively_compute_inclusions): Add
4070 dwarf2_per_objfile parameter.
4071 (compute_compunit_symtab_includes): Likewise.
4072 (process_cu_includes): Update.
4073
7aa104c4
SM
40742020-05-27 Simon Marchi <simon.marchi@efficios.com>
4075
4076 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
4077 parameter.
4078 (create_type_unit_group): Update.
4079 (process_psymtab_comp_unit_reader): Update.
4080 (build_type_psymtabs_reader): Update.
4081
e3beb21d
SM
40822020-05-27 Simon Marchi <simon.marchi@efficios.com>
4083
4084 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
4085 object through m_this_cu->cu.
4086
d460f660
SM
40872020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4088
4089 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
4090 the info parameter.
4091 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
4092
ab432490
SM
40932020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4094
4095 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
4096 per_objfile parameter.
4097 (load_full_type_unit): Add per_objfile parameter.
4098 (read_signatured_type): Likewise.
4099 (load_full_comp_unit): Likewise.
4100 (load_cu): Likewise.
4101 (dw2_do_instantiate_symtab): Likewise.
4102 (dw2_get_file_names): Likewise.
4103 (dw2_map_symtabs_matching_filename): Update.
4104 (dw_expand_symtabs_matching_file_matcher): Update.
4105 (dw2_map_symbol_filenames): Update.
4106 (process_psymtab_comp_unit): Add per_objfile parameter.
4107 (build_type_psymtabs_1): Update.
4108 (process_skeletonless_type_unit): Update.
4109 (dwarf2_build_psymtabs_hard): Update.
4110 (load_partial_comp_unit): Add per_objfile parameter.
4111 (scan_partial_symbols): Update.
4112 (load_full_comp_unit): Add per_objfile parameter.
4113 (process_imported_unit_die): Update.
4114 (create_cus_hash_table): Update.
4115 (find_partial_die): Update.
4116 (dwarf2_read_addr_index): Update.
4117 (follow_die_offset): Update.
4118 (dwarf2_fetch_die_loc_sect_off): Update.
4119 (dwarf2_fetch_constant_bytes): Update.
4120 (dwarf2_fetch_die_type_sect_off): Update.
4121 (follow_die_sig_1): Update.
4122 (load_full_type_unit): Add per_objfile parameter.
4123 (read_signatured_type): Likewise.
4124
313bad1b
SM
41252020-05-27 Simon Marchi <simon.marchi@efficios.com>
4126
4127 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
4128 of objfile_name.
4129
c3699833
SM
41302020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4131
4132 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
4133 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4134 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
4135 field.
4136 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4137 (create_cus_from_index): Update.
4138 (dwarf2_read_gdb_index): Update.
4139 (create_cus_from_debug_names): Update.
4140 (dwarf2_read_debug_names): Update.
4141 (get_abbrev_section_for_cu): Update.
4142 (create_all_comp_units): Update.
4143 (read_attribute_value): Update.
4144 (get_debug_line_section): Update.
4145 * dwarf2/index-cache.c (index_cache::store): Update.
4146 * dwarf2/index-write.c (save_gdb_index_command): Update.
4147 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
4148
1859c670
SM
41492020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4150
4151 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
4152 member.
4153 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
4154 dwarf2_per_cu_data::per_bfd.
4155 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
4156 (create_type_unit_group): Likewise.
4157 (queue_comp_unit): Remove reference to
4158 per_cu->dwarf2_per_objfile.
4159 (maybe_queue_comp_unit): Likewise.
4160 (fill_in_sig_entry_from_dwo_entry): Assign new field.
4161 (create_cus_hash_table): Assign new field.
4162
5e22e966
SM
41632020-05-27 Simon Marchi <simon.marchi@efficios.com>
4164
4165 * dwarf2/read.c: Replace
4166 dwarf2_cu->per_cu->dwarf2_per_objfile references with
4167 dwarf2_cu->per_objfile throughout.
4168
97a1449a
SM
41692020-05-27 Simon Marchi <simon.marchi@efficios.com>
4170
4171 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
4172 parameter, don't use per_cu->dwarf2_per_objfile.
4173 (dw2_instantiate_symtab): Likewise.
4174 (dw2_find_last_source_symtab): Update.
4175 (dw2_map_expand_apply): Update.
4176 (dw2_lookup_symbol): Update.
4177 (dw2_expand_symtabs_for_function): Update.
4178 (dw2_expand_all_symtabs): Update.
4179 (dw2_expand_symtabs_with_fullname): Update.
4180 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
4181 don't use per_cu->dwarf2_per_objfile.
4182 (dw2_expand_marked_cus): Update.
4183 (dw2_find_pc_sect_compunit_symtab): Update.
4184 (dw2_debug_names_lookup_symbol): Update.
4185 (dw2_debug_names_expand_symtabs_for_function): Update.
4186 (dw2_debug_names_map_matching_symbols): Update.
4187 (dwarf2_psymtab::expand_psymtab): Update.
4188
9e021579
SM
41892020-05-27 Simon Marchi <simon.marchi@efficios.com>
4190
4191 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
4192 <per_objfile>: New member.
4193 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
4194 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
4195 call to dwarf2_cu.
4196 (cutu_reader::cutu_reader): Update.
4197 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
4198
ae090bdb
SM
41992020-05-27 Simon Marchi <simon.marchi@efficios.com>
4200
4201 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
4202 struct dwarf2_per_objfile.
4203 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
4204 dwarf2_per_bfd.
4205 * dwarf2/read.c (set_die_type): Update.
4206 (get_die_type_at_offset): Update.
4207
af758d11
SM
42082020-05-27 Tom Tromey <tom@tromey.com>
4209 Simon Marchi <simon.marchi@efficios.com>
4210
4211 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
4212 method.
4213 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
4214 get_symtab, set_symtab>: New methods.
4215 <m_symtabs>: New field.
4216 (struct dwarf2_psymtab): Derive from partial_symtab.
4217 <readin_p, get_compunit_symtab>: Declare methods.
4218 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
4219 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
4220 New methods.
4221 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
4222 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
4223 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
4224 (dw2_symtab_iter_next, dw2_print_stats)
4225 (dw2_expand_symtabs_with_fullname)
4226 (dw2_expand_symtabs_matching_one)
4227 (dw_expand_symtabs_matching_file_matcher)
4228 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
4229 (dw2_debug_names_iterator::next)
4230 (dw2_debug_names_map_matching_symbols)
4231 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
4232 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
4233 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
4234 New methods.
4235 (get_compunit_symtab, process_full_comp_unit)
4236 (process_full_type_unit): Update.
4237 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
4238
5989a64e
SM
42392020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4240
4241 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
4242 then introduce a new dwarf2_per_objfile type.
4243 <read_line_string>: Move to the new dwarf2_per_objfile type.
4244 <objfile>: Likewise.
4245 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
4246 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
4247 dwarf2_per_objfile->per_bfd.
4248 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
4249 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
4250 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
4251 (dwarf2_per_bfd::free_cached_comp_units): ... this.
4252 (dwarf2_has_info): Allocate dwarf2_per_bfd.
4253 (dwarf2_per_objfile::locate_sections): Rename to...
4254 (dwarf2_per_bfd::locate_sections): ... this.
4255 (dwarf2_per_objfile::get_cutu): Rename to...
4256 (dwarf2_per_bfd::get_cutu): ... this.
4257 (dwarf2_per_objfile::get_cu): Rename to...
4258 (dwarf2_per_bfd::get_cu): ... this.
4259 (dwarf2_per_objfile::get_tu): Rename to...
4260 (dwarf2_per_bfd::get_tu): ... this.
4261 (dwarf2_per_objfile::allocate_per_cu): Rename to...
4262 (dwarf2_per_bfd::allocate_per_cu): ... this.
4263 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
4264 (dwarf2_per_bfd::allocate_signatured_type): ... this.
4265 (get_gdb_index_contents_ftype): Change parameter from
4266 dwarf2_per_objfile to dwarf2_per_bfd.
4267 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
4268 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
4269
a50264ba
TT
42702020-05-27 Tom Tromey <tom@tromey.com>
4271 Simon Marchi <simon.marchi@efficios.com>
4272
4273 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
4274 (allocate_piece_closure): Set "per_objfile" member.
4275 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
4276 (locexpr_describe_location, loclist_describe_location): Use new
4277 member.
4278 * dwarf2/read.c (read_call_site_scope)
4279 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
4280 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
4281 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
4282 handle_data_member_location): Set per_objfile member.
4283 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
4284 member.
4285 (struct dwarf2_loclist_baton) <per_objfile>: New member.
4286
d3473f0c
TT
42872020-05-27 Tom Tromey <tom@tromey.com>
4288
4289 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
4290 allocate_signatured_type>: Declare new methods.
4291 <m_num_psymtabs>: New member.
4292 (struct dwarf2_per_cu_data) <index>: New member.
4293 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
4294 (dwarf2_per_objfile::allocate_signatured_type): New methods.
4295 (create_cu_from_index_list): Use allocate_per_cu.
4296 (create_signatured_type_table_from_index)
4297 (create_signatured_type_table_from_debug_names)
4298 (create_debug_type_hash_table, add_type_unit)
4299 (read_comp_units_from_section): Use allocate_signatured_type.
4300
5717c425
TT
43012020-05-27 Tom Tromey <tom@tromey.com>
4302
4303 * psymtab.c (partial_map_expand_apply)
4304 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
4305 (psym_lookup_global_symbol_language)
4306 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
4307 (psym_print_stats, psym_expand_symtabs_for_function)
4308 (psym_map_symbol_filenames, psym_map_matching_symbols)
4309 (psym_expand_symtabs_matching)
4310 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
4311 (maintenance_check_psymtabs): Update.
4312 * psympriv.h (struct partial_symtab) <readin_p,
4313 get_compunit_symtab>: Add objfile parameter.
4314 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
4315 Likewise.
4316 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
4317 get_compunit_symtab>: Likewise.
4318 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
4319
45940949
TT
43202020-05-27 Tom Tromey <tom@tromey.com>
4321
4322 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
4323 member.
4324 * dwarf2/read.c (delete_file_name_entry): Fix comment.
4325 (create_cu_from_index_list)
4326 (create_signatured_type_table_from_index)
4327 (create_signatured_type_table_from_debug_names)
4328 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
4329 (dwarf2_create_include_psymtab)
4330 (create_debug_type_hash_table, add_type_unit)
4331 (create_type_unit_group, read_comp_units_from_section)
4332 (dwarf2_compute_name, create_cus_hash_table)
4333 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
4334 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
4335 obstack.
4336 (dw2_get_real_path): Likewise. Change argument to
4337 dwarf2_per_objfile.
4338
f8c6d152
LM
43392020-05-27 Luis Machado <luis.machado@linaro.org>
4340
4341 PR tdep/26000
4342 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
4343 for ldrd (immediate).
4344
e98d2e6d
PW
43452020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4346
4347 * command.h: Add comment giving the name of class_tui.
4348 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
4349 create the fake command for the help for class_tui.
4350
53a47a3e
TT
43512020-05-26 Tom Tromey <tromey@adacore.com>
4352
4353 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
4354 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
4355 (val_atr): New function.
4356 (value_val_atr): Use it.
4357 * ada-valprint.c (print_optional_low_bound): Change low bound
4358 handling for enums.
4359 (val_print_packed_array_elements): Don't call discrete_position.
4360 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
4361 discrete_position for enum types.
4362 * language.c (default_print_array_index): Change type.
4363 * language.h (struct language_defn) <la_print_array_index>: Add
4364 index_type parameter, change type of index_value.
4365 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
4366 (default_print_array_index): Update.
4367 * valprint.c (maybe_print_array_index): Don't call
4368 value_from_longest. Update.
4369 (value_print_array_elements): Don't call discrete_position.
4370
0bc2354b
TT
43712020-05-26 Tom Tromey <tromey@adacore.com>
4372
4373 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
4374 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
4375
1218a4bf
CDA
43762020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
4377
4378 PR gdb/13519
4379 * avr-tdep.c (avr_integer_to_address): Return data or code
4380 address accordingly to the second 'type' argument of the
4381 function.
4382
92651b1d
MW
43832020-05-25 Michael Weghorn <m.weghorn@posteo.de>
4384
4385 * infcmd.c, inferior.h: (construct_inferior_arguments):
4386 Moved function from here to gdbsupport/common-inferior.{h,cc}
4387
0a4f5f8c
TT
43882020-05-23 Tom Tromey <tom@tromey.com>
4389
4390 Revert commit eca1f90c:
4391 * NEWS: Remove entry for completion styling.
4392 * completer.c (_rl_completion_prefix_display_length): Move
4393 declaration later.
4394 (gdb_fnprint): Revert.
4395 (gdb_display_match_list_1): Likewise.
4396 * cli/cli-style.c (completion_prefix_style)
4397 (completion_difference_style, completion_suffix_style): Remove.
4398 (_initialize_cli_style): Revert.
4399 * cli/cli-style.h (completion_prefix_style)
4400 (completion_difference_style, completion_suffix_style): Don't
4401 declare.
4402
e08bd6c5
PA
44032020-05-24 Pedro Alves <palves@redhat.com>
4404
4405 * symtab.c (completion_list_add_name): Return boolean indication
4406 of whether the symbol matched.
4407 (completion_list_add_symbol): Don't try to remove C++ aliases if
4408 the symbol didn't match in the first place.
4409 * symtab.h (completion_list_add_name): Return bool.
4410
ceacbf6e
SM
44112020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
4412
4413 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
4414 type::field.
4415
26f16254
JB
44162020-05-23 Joel Brobecker <brobecker@adacore.com>
4417
4418 GDB 9.2 released.
4419
eca1f90c
TT
44202020-05-23 Tom Tromey <tom@tromey.com>
4421
4422 * NEWS: Add entry for completion styling.
4423 * completer.c (_rl_completion_prefix_display_length): Move
4424 declaration earlier.
4425 (gdb_fnprint): Use completion_style.
4426 (gdb_display_match_list_1): Likewise.
4427 * cli/cli-style.c (completion_prefix_style)
4428 (completion_difference_style, completion_suffix_style): New
4429 globals.
4430 (_initialize_cli_style): Register new globals.
4431 * cli/cli-style.h (completion_prefix_style)
4432 (completion_difference_style, completion_suffix_style): Declare.
4433
51e2cfa2
PA
44342020-05-23 Pedro Alves <palves@redhat.com>
4435
4436 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
4437 (parse_escape): Use ISDIGIT instead of isdigit.
4438 (puts_debug): Use gdb_isprint instead of isprint.
4439 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
4440 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
4441 ISSPACE instead of isspace.
4442 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
4443 instead of isspace.
4444 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
4445 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
4446 instead of isxdigit and ISDIGIT instead of isdigit.
4447
80fc5e77
SM
44482020-05-22 Simon Marchi <simon.marchi@efficios.com>
4449
4450 * gdbtypes.h (struct type) <field>: New method.
4451 (TYPE_FIELDS): Remove, replace all uses with either type::fields
4452 or type::field.
4453
3cabb6b0
SM
44542020-05-22 Simon Marchi <simon.marchi@efficios.com>
4455
4456 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
4457 (TYPE_FIELDS): Use type::fields. Change all call sites that
4458 modify the propery to use type::set_fields instead.
4459
1f704f76
SM
44602020-05-22 Simon Marchi <simon.marchi@efficios.com>
4461
4462 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
4463 type::num_fields instead.
4464
5e33d5f4
SM
44652020-05-22 Simon Marchi <simon.marchi@efficios.com>
4466
4467 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
4468 methods.
4469 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
4470 that modify the number of fields to use type::set_num_fields
4471 instead.
4472
9392ebb3
TT
44732020-05-22 Tom Tromey <tromey@adacore.com>
4474
4475 * compile/compile-object-load.h (munmap_list_free): Don't
4476 declare.
4477
7c13f4e8
AB
44782020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
4479
4480 * annotate.c (annotate_source_line): Update return type, add call
4481 to update current symtab and line.
4482 * annotate.h (annotate_source_line): Update return type, and
4483 extend header comment.
4484 * source.c (info_line_command): Check annotation_level before
4485 calling annotate_source_line.
4486 * stack.c (print_frame_info): If calling annotate_source_line
4487 returns true, then don't print any other source line information.
4488
aa370940
SM
44892020-05-21 Simon Marchi <simon.marchi@efficios.com>
4490
4491 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
4492
84d53fa9
SM
44932020-05-21 Simon Marchi <simon.marchi@efficios.com>
4494
4495 * coffread.c (patch_type): Remove NULL check before xfree.
4496 * corefile.c (set_gnutarget): Likewise.
4497 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
4498 * exec.c (build_section_table): Likewise.
4499 * remote.c (remote_target::pass_signals): Likewise.
4500 * utils.c (n_spaces): Likewise.
4501 * cli/cli-script.c (document_command): Likewise.
4502 * i386-windows-tdep.c (core_process_module_section): Likewise.
4503 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
4504
9d428aae
SM
45052020-05-20 Simon Marchi <simon.marchi@efficios.com>
4506
4507 * symfile.c (reread_symbols): Clear objfile's section_offsets
4508 vector and section indices, re-compute them by calling
4509 sym_offsets.
4510
250106a7
TT
45112020-05-20 Tom Tromey <tromey@adacore.com>
4512
4513 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 4514 (desc_one_bound, desc_index_type): Compute field name.
250106a7 4515
9a0bacfb
TV
45162020-05-20 Tom de Vries <tdevries@suse.de>
4517
4518 PR symtab/25833
4519 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
4520
7b958a48
AM
45212020-05-20 Alan Modra <amodra@gmail.com>
4522
4523 PR 25993
4524 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
4525 bfd_set_filename.
4526 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
4527 passed to bfd_set_filename.
4528 * symfile-mem.c (add_vsyscall_page): Likewise for string
4529 passed to symbol_file_add_from_memory.
4530 (symbol_file_add_from_memory): Make name param a const char* and
4531 don't strdup.
4532
c7e97679
AM
45332020-05-20 Alan Modra <amodra@gmail.com>
4534
4535 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
4536 rather than accessing bfd->filename directly.
4537 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
4538 and use bfd_section_name.
4539 * dwarf2/frame.c (decode_frame_entry): Likewise.
4540 * exec.c (exec_set_section_address): Likewise.
4541 * solib-aix.c (solib_aix_bfd_open): Likewise.
4542 * stap-probe.c (get_stap_base_address): Likewise.
4543 * symfile.c (reread_symbols): Likewise.
4544
563c591b
TT
45452020-05-19 Tom Tromey <tromey@adacore.com>
4546
4547 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
4548
f408d82c
SM
45492020-05-19 Simon Marchi <simon.marchi@efficios.com>
4550
4551 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
4552
98c59b52
PA
45532020-05-19 Pedro Alves <palves@redhat.com>
4554
4555 * NEWS (set exec-file-mismatch): Adjust entry.
4556 * exec.c: Include "build-id.h".
4557 (validate_exec_file): Try to match build IDs instead of filenames.
4558 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
4559 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
4560 and pass down 'warn_if_slow'.
4561 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
4562 gdb_bfd_open_closure to pass it down.
4563 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
4564
4111f652
PA
45652020-05-19 Pedro Alves <palves@redhat.com>
4566
4567 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
4568 * target.c (target_fileio_open_1): Rename to target_fileio_open
4569 and make extern. Use bool.
4570 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
4571 (target_fileio_read_alloc_1): Adjust.
4572 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
4573 (target_fileio_open_warn_if_slow): Delete declaration.
4574
ad80db5b
PA
45752020-05-19 Pedro Alves <palves@redhat.com>
4576
4577 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
4578 Adjust all callers.
4579
1d6ce4d3
YS
45802020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
4581
4582 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
4583 whether disp is negative.
4584
9005fbbb
SM
45852020-05-19 Simon Marchi <simon.marchi@efficios.com>
4586
4587 * symfile.h (struct symfile_segment_data)
4588 <~symfile_segment_data>: Remove.
4589 <segment_info>: Change to std::vector.
4590 * symfile.c (default_symfile_segments): Update.
4591 * elfread.c (elf_symfile_segments): Update.
4592
68b888ff
SM
45932020-05-19 Simon Marchi <simon.marchi@efficios.com>
4594
4595 * symfile.h (struct symfile_segment_data) <struct segment>: New.
4596 <segments>: New.
4597 <segment_bases, segment_sizes>: Remove.
4598 * symfile.c (default_symfile_segments): Update.
4599 * elfread.c (elf_symfile_segments): Update.
4600 * remote.c (remote_target::get_offsets): Update.
4601 * solib-target.c (solib_target_relocate_section_addresses):
4602 Update.
4603
62982abd
SM
46042020-05-19 Simon Marchi <simon.marchi@efficios.com>
4605
4606 * symfile.h (struct symfile_segment_data): Initialize fields.
4607 <~symfile_segment_data>: Add.
4608 (symfile_segment_data_up): New.
4609 (struct sym_fns) <sym_segments>: Return a
4610 symfile_segment_data_up.
4611 (default_symfile_segments): Return a symfile_segment_data_up.
4612 (free_symfile_segment_data): Remove.
4613 (get_symfile_segment_data): Return a symfile_segment_data_up.
4614 * symfile.c (default_symfile_segments): Likewise.
4615 (get_symfile_segment_data): Likewise.
4616 (free_symfile_segment_data): Remove.
4617 (symfile_find_segment_sections): Update.
4618 * elfread.c (elf_symfile_segments): Return a
4619 symfile_segment_data_up.
4620 * remote.c (remote_target::get_offsets): Update.
4621 * solib-target.c (solib_target_relocate_section_addresses):
4622 Update.
4623 * symfile-debug.c (debug_sym_segments): Return a
4624 symfile_segment_data_up.
4625
7f204339
RO
46262020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4627
e52a0f1b
RO
4628 PR build/25981
4629 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
4630 Hardcode register numbers.
4631
7f204339
RO
4632 PR build/25981
4633 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
4634 procfs_find_LDT_entry): Remove.
4635 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
4636 procfs_find_LDT_entry): Remove.
4637 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
4638 Remove.
4639
7f32a4d5
PA
46402020-05-17 Pedro Alves <palves@redhat.com>
4641 Andrew Burgess <andrew.burgess@embecosm.com>
4642 Keno Fischer <keno@juliacomputing.com>
4643
4644 PR gdb/25741
4645 * breakpoint.c (build_target_condition_list): Update comments.
4646 (build_target_command_list): Update comments and skip matching
4647 locations.
4648 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
4649 a separate function. Simplify "set breakpoint auto-hw off"
4650 handling.
4651 (insert_breakpoints): Update comment.
4652 (tracepoint_locations_match): New parameter. For breakpoints,
4653 compare location types too, if the caller wants to.
4654 (handle_automatic_hardware_breakpoints): New functions.
4655 (bp_location_is_less_than): Also sort by location type and
4656 hardware breakpoint length.
4657 (update_global_location_list): Handle "set breakpoint auto-hw on"
4658 here.
4659 (update_breakpoint_locations): Ask breakpoint_locations_match to
4660 ignore location types.
4661
7d93a1e0
SM
46622020-05-16 Simon Marchi <simon.marchi@efficios.com>
4663
4664 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
4665 type::name instead.
4666
d0e39ea2
SM
46672020-05-16 Simon Marchi <simon.marchi@efficios.com>
4668
4669 * gdbtypes.h (struct type) <name, set_name>: New methods.
4670 (TYPE_CODE): Use type::name. Change all call sites used to set
4671 the name to use type::set_name instead.
4672
2dab0c7b
TT
46732020-05-16 Tom Tromey <tom@tromey.com>
4674
4675 * top.c (quit_force): Update.
4676 * infrun.c (handle_no_resumed): Update.
4677 * top.h (all_uis): New function.
4678 (ALL_UIS): Remove.
4679
59f7bd8d
SM
46802020-05-16 Simon Marchi <simon.marchi@efficios.com>
4681
4682 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
4683
9bf058f0
PA
46842020-05-16 Pedro Alves <palves@redhat.com>
4685
4686 * ia64-linux-nat.c
4687 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
4688 Declare method.
4689 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
4690
8f86ae1a
SM
46912020-05-15 Simon Marchi <simon.marchi@efficios.com>
4692
4693 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
4694 (sparc64_adi_info): Likewise.
4695
d6bc0792
TT
46962020-05-15 Tom Tromey <tom@tromey.com>
4697
4698 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
4699 block_objfile.
4700 (lookup_objfile_from_block): Remove.
4701 (lookup_symbol_in_block, lookup_symbol_in_static_block)
4702 (lookup_global_symbol): Use block_objfile.
4703 * symtab.h (lookup_objfile_from_block): Don't declare.
4704 * printcmd.c (clear_dangling_display_expressions): Use
4705 block_objfile.
4706 * parse.c (operator_check_standard): Use block_objfile.
4707
8c14c3a3
TT
47082020-05-15 Tom Tromey <tom@tromey.com>
4709
4710 * language.c (language_alloc_type_symbol): Set
4711 SYMBOL_SECTION.
4712 * symtab.c (initialize_objfile_symbol): Remove.
4713 (allocate_symbol): Remove.
4714 (allocate_template_symbol): Remove.
4715 * dwarf2/read.c (fixup_go_packaging): Use "new".
4716 (new_symbol): Use "new".
4717 (read_variable): Don't call initialize_objfile_symbol. Use
4718 "new".
4719 (read_func_scope): Use "new".
4720 * xcoffread.c (process_xcoff_symbol): Don't call
4721 initialize_objfile_symbol.
4722 (SYMBOL_DUP): Remove.
4723 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
4724 "new".
4725 * symtab.h (allocate_symbol, initialize_objfile_symbol)
4726 (allocate_template_symbol): Don't declare.
4727 (struct symbol): Add copy constructor. Change defaults.
4728 * jit.c (finalize_symtab): Use "new".
4729 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
4730 Use "new".
4731 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
4732 (common_block_end): Use "new".
4733 * mdebugread.c (parse_symbol): Use "new".
4734 (new_symbol): Likewise.
4735
5b4a1a8d
PW
47362020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4737
4738 * NEWS: Mention changes to help and apropos.
4739
57b4f16e
PW
47402020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4741
4742 * command.h (enum command_class): Improve comments, document
4743 that class_alias is for user-defined aliases, give the class
4744 name for each class, remove unused class_xdb.
4745 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
4746 * breakpoint.c (_initialize_breakpoint): Replace class_alias
4747 by a precise class.
4748 * infcmd.c (_initialize_infcmd): Likewise.
4749 * reverse.c (_initialize_reverse): Likewise.
4750 * stack.c (_initialize_stack): Likewise.
4751 * symfile.c (_initialize_symfile): Likewise.
4752 * tracepoint.c (_initialize_tracepoint): Likewise.
4753
7c05caf7
PW
47542020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4755
4756 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
4757 when their aliased command is traversed.
4758 (help_cmd): Add fput_command_names_styled call to
4759 output command name and aliases when command has an alias.
4760
3b3aaacb
PW
47612020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4762
4763 * cli/cli-decode.h (help_cmd_list): Remove declaration.
4764 * cli/cli-decode.c (help_cmd_list): Declare as static,
4765 remove prefix argument, use bool for recurse arg, rework to show the aliases of
4766 a command together with the command.
4767 (fput_command_name_styled, fput_command_names_styled): New functions.
4768 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
4769 fput_command_name_styled.
4770 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
4771 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
4772
7aa1b46f
PW
47732020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4774
4775 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
4776 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
4777 * command.h (cmd_show_list): Likewise.
4778 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
4779 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
4780
89bcba74
PW
47812020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4782
4783 * unittests/command-def-selftests.c (traverse_command_structure):
4784 Verify all commands of a list have the same prefix command and
4785 that only the top cmdlist commands have a null prefix.
4786
3f4d92eb
PW
47872020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4788
4789 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
4790 as prefix, not one of its aliases.
4791 (set_cmd_prefix): Remove.
4792 (do_add_cmd): Centralize the setting of the prefix of a command, when
4793 command is defined after its full chain of prefix commands.
4794 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
4795 (add_setshow_cmd_full): Likewise.
4796 (update_prefix_field_of_prefixed_commands): New function.
4797 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
4798 update_prefix_field_of_prefixed_commands.
4799 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
4800 addresses of remote_set_cmdlist and remote_show_cmdlist given
4801 as argument, not the address of an argument.
4802 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
4803 * gdb/remote.c (_initialize_remote): Likewise.
4804
0605465f
PW
48052020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4806
4807 * cli/cli-cmds.c (alias_command): Check for an existing alias
4808 using lookup_cmd_composition, as valid_command_p is too strict
4809 and forbids aliases that are the prefix of an existing alias
4810 or command.
4811 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
4812 command is properly recognised as a valid command.
4813
58e6ac70
PW
48142020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4815
4816 * unittests/help-doc-selftests.c: Rename to
4817 unittests/command-def-selftests.c
4818 * unittests/command-def-selftests.c (help_doc_tests): Update some
4819 comments.
4820 (command_structure_tests, traverse_command_structure): New namespace
4821 and function.
4822 (command_structure_invariants_tests): New function.
4823 (_initialize_command_def_selftests) Renamed from
4824 _initialize_help_doc_selftests, register command_structure_invariants
4825 selftest.
4826
a7b9ceb8
PW
48272020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4828
4829 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
4830 an alias of 'show'.
4831
b2188a06
JB
48322020-05-15 Joel Brobecker <brobecker@adacore.com>
4833
4834 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
4835 ada_is_fixed_point_type. Update all callers.
4836 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
4837 all callers.
4838 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
4839 Update all callers.
4840 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
4841 print_fixed_point_type. Update all callers.
4842 * ada-valprint.c (ada_value_print_num): Replace call to
4843 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
4844
a51951c2
KB
48452020-05-14 Kevin Buettner <kevinb@redhat.com>
4846
4847 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
4848 processors.
4849 (cpu_supports_bts): Add CV_AMD case.
4850
29d6859f
LM
48512020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
4852 Simon Marchi <simon.marchi@efficios.com>
4853
4854 * infrun.c (stop_all_threads): Collect multiple wait events at
4855 each pass.
4856
78134374
SM
48572020-05-14 Simon Marchi <simon.marchi@efficios.com>
4858
4859 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
4860 type::code instead.
4861
67607e24
SM
48622020-05-14 Simon Marchi <simon.marchi@efficios.com>
4863
4864 * gdbtypes.h (struct type) <code, set_code>: New methods.
4865 (TYPE_CODE): Use type::code. Change all call sites used to set
4866 the code to use type::set_code instead.
4867
a05575d3
TBA
48682020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4869 Tom de Vries <tdevries@suse.de>
4870 Pedro Alves <palves@redhat.com>
4871
4872 PR threads/25478
4873 * infrun.c (stop_all_threads): Do NOT ignore
4874 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
4875 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
4876 received.
4877 (handle_no_resumed): Remove code handling a live inferior with no
4878 threads.
4879 * remote.c (has_single_non_exited_thread): New.
4880 (remote_target::update_thread_list): Do not delete a thread if is
4881 the last thread of the process.
4882 * thread.c (thread_select): Call delete_exited_threads instead of
4883 prune_threads.
4884
6ad82919
TBA
48852020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4886
4887 * infrun.c (stop_all_threads): Enable/disable thread events of all
4888 targets. Move a debug message denoting the end of the function
4889 into the SCOPED_EXIT block.
4890
d890404b
TBA
48912020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4892
4893 * process-stratum-target.h: Include <set>.
4894 (all_non_exited_process_targets, switch_to_target_no_thread): New
4895 function declarations.
4896 * process-stratum-target.c (all_non_exited_process_targets)
4897 (switch_to_target_no_thread): New function implementations.
4898
293b3ebc
TBA
48992020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4900
4901 * infrun.c (handle_inferior_event): Extract out a piece of code
4902 into...
4903 (mark_non_executing_threads): ...this new function.
4904
7ca9b62a
TBA
49052020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4906
4907 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
4908 use.
4909
fc75c28b
TBA
49102020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4911
4912 * regcache.c (regcache_read_pc_protected): New function
4913 implementation that returns 0 if the PC cannot read via
4914 'regcache_read_pc'.
4915 * infrun.c (proceed): Call 'regcache_read_pc_protected'
4916 instead of 'regcache_read_pc'.
4917 (keep_going_pass_signal): Ditto.
4918
a89febbd
TT
49192020-05-13 Tom Tromey <tromey@adacore.com>
4920
4921 * ada-lang.c (align_value): Remove.
4922 (ada_template_to_fixed_record_type_1): Use align_up.
4923
f7e23710
TBA
49242020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4925
4926 * async-event.c: Update the copyright year.
4927 * async-event.h: Update the copyright year.
4928
02ff80c2
SM
49292020-05-12 Simon Marchi <simon.marchi@efficios.com>
4930
4931 * objfiles.h (is_addr_in_objfile,
4932 shared_objfile_contains_address_p): Return bool.
4933 * objfile.c (is_addr_in_objfile,
4934 shared_objfile_contains_address_p): Return bool.
4935
4fd6c7e8
TT
49362020-05-11 Tom Tromey <tromey@adacore.com>
4937
4938 * cli/cli-cmds.c (info_command): Restore.
4939 (_initialize_cli_cmds): Use add_prefix_command for "info".
4940 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
4941
5eb68a39
TT
49422020-05-11 Tom Tromey <tromey@adacore.com>
4943
4944 * ada-lang.c (ada_value_primitive_field): Now public.
4945 * ada-lang.h (ada_value_primitive_field): Declare.
4946 * ada-valprint.c (print_field_values): Use
4947 ada_value_primitive_field for wrapper fields.
4948
7666722f
TV
49492020-05-11 Tom de Vries <tdevries@suse.de>
4950
4951 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
4952 MODULE_DOMAIN.
4953
3ee6bb11
TV
49542020-05-11 Tom de Vries <tdevries@suse.de>
4955
4956 PR symtab/25941
4957 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
4958 with length 0, if not gdb-produced.
4959 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
4960
43434996
TV
49612020-05-09 Tom de Vries <tdevries@suse.de>
4962
4963 PR gdb/25955
4964 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
4965 calculation.
4966
2f78cffc
TT
49672020-05-09 Tom Tromey <tom@tromey.com>
4968
4969 * top.c (server_command): Now bool.
4970 * top.h (server_command): Now bool.
4971
4f7bc5ed
TT
49722020-05-08 Tom Tromey <tromey@adacore.com>
4973
4974 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
4975 already being processed.
4976
8be4b118
TT
49772020-05-08 Tom Tromey <tom@tromey.com>
4978
4979 * printcmd.c (struct display) <next>: Remove.
4980 <display>: New constructor.
4981 <exp_string>: Now a std::string.
4982 <enabled_p>: Now a bool.
4983 (display_number): Move definition earlier.
4984 (displays): Rename from display_chain. Now a std::vector.
4985 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
4986 (display_command): Update.
4987 (do_one_display, disable_display)
4988 (enable_disable_display_command, do_enable_disable_display):
4989 Update.
4990 (free_display): Remove.
4991 (clear_displays): Rewrite.
4992 (delete_display): Update.
4993 (map_display_numbers): Use function_view. Remove "data"
4994 parameter. Update.
4995 (do_delete_display): Remove.
4996 (undisplay_command): Update.
4997 (do_one_display, do_displays, disable_display)
4998 (info_display_command): Update.
4999 (do_enable_disable_display): Remove.
5000 (enable_disable_display_command)
5001 (clear_dangling_display_expressions): Update.
5002
94c93c35
TT
50032020-05-08 Tom Tromey <tom@tromey.com>
5004
5005 * symtab.c (set_symbol_cache_size)
5006 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
5007 (maintenance_print_symbol_cache_statistics): Update.
5008 * symmisc.c (print_symbol_bcache_statistics)
5009 (print_objfile_statistics, maintenance_print_objfiles)
5010 (maintenance_info_symtabs, maintenance_check_symtabs)
5011 (maintenance_expand_symtabs, maintenance_info_line_tables):
5012 Update.
5013 * symfile-debug.c (set_debug_symfile): Update.
5014 * source.c (forget_cached_source_info): Update.
5015 * python/python.c (gdbpy_progspaces): Update.
5016 * psymtab.c (maintenance_info_psymtabs): Update.
5017 * probe.c (parse_probes): Update.
5018 * linespec.c (iterate_over_all_matching_symtabs)
5019 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
5020 * guile/scm-progspace.c (gdbscm_progspaces): Update.
5021 * exec.c (exec_target::close): Update.
5022 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
5023 * breakpoint.c (print_one_breakpoint_location)
5024 (create_longjmp_master_breakpoint)
5025 (create_std_terminate_master_breakpoint): Update.
5026 * progspace.c (program_spaces): Now a std::vector.
5027 (maybe_new_address_space): Update.
5028 (add_program_space): Remove.
5029 (program_space::program_space): Update.
5030 (remove_program_space): Update.
5031 (number_of_program_spaces): Remove.
5032 (print_program_space, update_address_spaces): Update.
5033 * progspace.h (program_spaces): Change type.
5034 (ALL_PSPACES): Remove.
5035 (number_of_program_spaces): Don't declare.
5036 (struct program_space) <next>: Remove.
5037
a1fd1ac9
TT
50382020-05-08 Tom Tromey <tom@tromey.com>
5039
5040 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
5041 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
5042 (enable_break): Update.
5043 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
5044 (frv_fdpic_find_canonical_descriptor): Update.
5045 (frv_fetch_objfile_link_map): Update.
5046 * progspace.c (program_space::free_all_objfiles): Update.
5047 (program_space::solibs): New method.
5048 * progspace.h (struct program_space) <solibs>: New method.
5049 * solist.h (master_so_list): Don't declare.
5050 (ALL_SO_LIBS): Remove.
5051 * solib.h (so_list_head): Remove.
5052 (update_solib_list): Update comment.
5053 * solib.c (master_so_list): Remove.
5054 (solib_used, update_solib_list, solib_add)
5055 (info_sharedlibrary_command, clear_solib)
5056 (reload_shared_libraries_1, remove_user_added_objfile): Update.
5057
38eae084
TT
50582020-05-08 Tom Tromey <tom@tromey.com>
5059
5060 * extension.c (extension_languages): Now a std::array.
5061 (ALL_EXTENSION_LANGUAGES): Remove.
5062 (get_ext_lang_defn, get_ext_lang_of_file)
5063 (eval_ext_lang_from_control_command): Update.
5064 (finish_ext_lang_initialization)
5065 (auto_load_ext_lang_scripts_for_objfile)
5066 (ext_lang_type_printers::ext_lang_type_printers)
5067 (apply_ext_lang_type_printers)
5068 (ext_lang_type_printers::~ext_lang_type_printers)
5069 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
5070 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
5071 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
5072 (get_matching_xmethod_workers, ext_lang_colorize)
5073 (ext_lang_before_prompt): Update.
5074 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
5075
596dc4ad
TT
50762020-05-08 Tom Tromey <tom@tromey.com>
5077
5078 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
5079 overload.
5080 <swap_string, m_string>: Remove.
5081 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
5082 Update.
5083 * stabsread.c (define_symbol, read_type): Update.
5084 * linespec.c (find_linespec_symbols): Update.
5085 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
5086 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
5087 * dbxread.c (read_dbx_symtab): Update.
5088 * cp-support.h (cp_canonicalize_string_full)
5089 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
5090 Return unique_xmalloc_ptr.
5091 * cp-support.c (inspect_type): Update.
5092 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
5093 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
5094 Likewise.
5095 * c-typeprint.c (print_name_maybe_canonical): Update.
5096 * break-catch-throw.c (check_status_exception_catchpoint):
5097 Update.
5098
bf4cb9be
TV
50992020-05-08 Tom de Vries <tdevries@suse.de>
5100
5101 * infrun.c (follow_fork): Copy current_line and current_symtab to
5102 child thread.
5103
a1b68f28
SM
51042020-05-07 Simon Marchi <simon.marchi@efficios.com>
5105
5106 * async-event.c (struct async_signal_handler, struct
5107 async_event_handler): Reformat, remove typedef.
5108
98d48915
SM
51092020-05-07 Simon Marchi <simon.marchi@efficios.com>
5110
5111 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
5112 access thistype->main_type->dyn_prop_list directly.
5113
7aa91313
SM
51142020-05-07 Simon Marchi <simon.marchi@efficios.com>
5115
5116 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
5117 (remove_dyn_prop): Remove. Update all users to use
5118 type::remove_dyn_prop.
5119 * gdbtypes.c (remove_dyn_prop): Rename to...
5120 (type::remove_dyn_prop): ... this.
5121
5c54719c
SM
51222020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
5123
5124 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
5125 (add_dyn_prop): Remove. Update all users to use
5126 type::add_dyn_prop.
5127 * gdbtypes.c (add_dyn_prop): Rename to...
5128 (type::add_dyn_prop): ... this.
5129
24e99c6c
SM
51302020-05-07 Simon Marchi <simon.marchi@efficios.com>
5131
5132 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
5133 (get_dyn_prop): Remove. Update all users to use
5134 type::dyn_prop.
5135 * gdbtypes.c (get_dyn_prop): Rename to...
5136 (type::dyn_prop): ... this.
5137
0d4bf016
SM
51382020-05-06 Simon Marchi <simon.marchi@efficios.com>
5139
5140 * gdbtypes.h (struct main_type) <flag_static>: Remove.
5141
ac4a4f1c
SM
51422020-05-06 Simon Marchi <simon.marchi@efficios.com>
5143
5144 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
5145 instruction, skip it if it's there.
5146
a3bbacc1
SM
51472020-05-05 Simon Marchi <simon.marchi@efficios.com>
5148
5149 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
5150
c3236f84
SM
51512020-05-04 Simon Marchi <simon.marchi@efficios.com>
5152
5153 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
5154 * gdbtypes.c (recursive_dump_type): Remove use of
5155 TYPE_INCOMPLETE.
5156
3b6acaee
TT
51572020-05-03 Tom Tromey <tom@tromey.com>
5158
5159 * breakpoint.c (catch_command, tcatch_command): Remove.
5160 (_initialize_breakpoint): Use add_basic_prefix_cmd,
5161 add_show_prefix_cmd.
5162 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
5163 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
5164 Remove.
5165 (add_internal_problem_command): Use add_basic_prefix_cmd,
5166 add_show_prefix_cmd.
5167 * mips-tdep.c (set_mipsfpu_command): Remove.
5168 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
5169 * dwarf2/index-cache.c (set_index_cache_command): Remove.
5170 (_initialize_index_cache): Use add_basic_prefix_cmd.
5171 * memattr.c (dummy_cmd): Remove.
5172 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
5173 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
5174 (_initialize_tui_win): Use add_basic_prefix_cmd,
5175 add_show_prefix_cmd.
5176 * cli/cli-logging.c (set_logging_command): Remove.
5177 (_initialize_cli_logging): Use add_basic_prefix_cmd,
5178 add_show_prefix_cmd.
5179 (show_logging_command): Remove.
5180 * target.c (target_command): Remove.
5181 (add_target): Use add_basic_prefix_cmd.
5182
a51119cd
HD
51832020-05-02 Hannes Domani <ssbssa@yahoo.de>
5184
5185 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
5186
652fc23a 51872020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 5188
652fc23a
PW
5189 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
5190 info_command.
5191
117539e6
KR
51922020-04-30 Kamil Rytarowski <n54@gmx.com>
5193
5194 * nbsd-nat.c (nbsd_enable_proc_events)
5195 (nbsd_nat_target::post_startup_inferior): Add.
5196 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
5197 (nbsd_nat_target::update_thread_list): Rewrite.
5198 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
5199 "PTRACE_LWP_CREATE".
5200 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
5201
102e38eb 52022020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 5203
102e38eb
PW
5204 * stack.c (_initialize_stack): Remove duplicated creation
5205 of "frame" command and "f" alias.
5206
ee9d1e5f
HD
52072020-04-30 Hannes Domani <ssbssa@yahoo.de>
5208
5209 PR gdb/18706
5210 * gdbtypes.c (check_typedef): Calculate size of array of
5211 stubbed type.
5212
627c7fb8
HD
52132020-04-30 Hannes Domani <ssbssa@yahoo.de>
5214
5215 PR gdb/15559
5216 * i386-tdep.c (i386_push_dummy_call): Call
5217 i386_thiscall_push_dummy_call.
5218 (i386_thiscall_push_dummy_call): New function.
5219 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
5220 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
5221 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
5222
ffc2844e
SM
52232020-04-29 Simon Marchi <simon.marchi@efficios.com>
5224
5225 * gdbarch.sh (do_read): Add shellcheck disable directive for
5226 warning SC2162.
5227
1207375d
SM
52282020-04-29 Simon Marchi <simon.marchi@efficios.com>
5229
5230 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
5231 "referenced but not assigned" warning.
5232
9fdb2916
SM
52332020-04-29 Simon Marchi <simon.marchi@efficios.com>
5234
5235 * gdbarch.sh: Remove code that sets fallbackdefault.
5236
759cea5e
SM
52372020-04-29 Simon Marchi <simon.marchi@efficios.com>
5238
5239 * gdbarch.sh: Use shell operators && and || instead of
5240 -a and -o.
5241
cb02ab24
SM
52422020-04-29 Simon Marchi <simon.marchi@efficios.com>
5243
5244 * gdbarch.sh: Use $(...) instead of `...`.
5245
a6fc5ffc
SM
52462020-04-29 Simon Marchi <simon.marchi@efficios.com>
5247
5248 * gdbarch.sh: Use double quotes around variables.
5249
8d113d13
SM
52502020-04-29 Simon Marchi <simon.marchi@efficios.com>
5251
5252 * gdbarch.sh: Use %s with printf, instead of variables in the
5253 format string.
5254
ed6acedd
TT
52552020-04-29 Tom Tromey <tromey@adacore.com>
5256
5257 PR ada/25875:
5258 * dwarf2/read.c (update_enumeration_type_from_children): Compute
5259 type fields here.
5260 (read_enumeration_type): Call
5261 update_enumeration_type_from_children later. Update comments.
5262 (process_enumeration_scope): Don't create type fields.
5263
b68b1b58
KR
52642020-04-29 Kamil Rytarowski <n54@gmx.com>
5265
5266 * nbsd-tdep.c: Include "xml-syscall.h".
5267 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
5268
f94b2e03
KR
52692020-04-29 Kamil Rytarowski <n54@gmx.com>
5270
5271 * nbsd-nat.c: Include "sys/wait.h".
5272 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
5273 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
5274 (nbsd_nat_target::remove_exec_catchpoint)
5275 (nbsd_nat_target::set_syscall_catchpoint): Add.
5276 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
5277 (nbsd_nat_target::insert_exec_catchpoint)
5278 (nbsd_nat_target::remove_exec_catchpoint)
5279 (nbsd_nat_target::set_syscall_catchpoint): Add.
5280 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
5281 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
5282 `nbsd_get_syscall_number'.
5283
fc49bc72
TT
52842020-04-29 Tom Tromey <tom@tromey.com>
5285
5286 * stack.c (print_block_frame_labels): Remove.
5287
d642b692
HD
52882020-04-29 Hannes Domani <ssbssa@yahoo.de>
5289
5290 PR gdb/17320
5291 * ada-valprint.c (val_print_packed_array_elements): Move array
5292 end bracket to new line.
5293 (ada_val_print_string): Remove extra spaces before first array
5294 element.
5295 * c-valprint.c (c_value_print_array): Likewise.
5296 * m2-valprint.c (m2_print_array_contents): Likewise.
5297 (m2_value_print_inner): Likewise.
5298 * p-valprint.c (pascal_value_print_inner): Likewise.
5299 * valprint.c (generic_val_print_array): Likewise.
5300 (value_print_array_elements): Move first array element and array
5301 end bracket to new line.
5302
ea90f227
TV
53032020-04-29 Tom de Vries <tdevries@suse.de>
5304
5305 PR symtab/25889
5306 * linespec.c (find_method): Fix ix calculation.
5307
4498ef4f
KR
53082020-04-28 Kamil Rytarowski <n54@gmx.com>
5309
5310 * syscalls/update-netbsd.sh: New file.
5311 * syscalls/netbsd.xml: Regenerate.
5312 * data-directory/Makefile.in: Register `netbsd.xml' in
5313 `SYSCALLS_FILES'.
5314
a55e30b5
SM
53152020-04-28 Simon Marchi <simon.marchi@efficios.com>
5316
5317 * syscalls/update-freebsd.sh: Add double quotes.
5318
2b2fbab8
TT
53192020-04-28 Tom Tromey <tom@tromey.com>
5320
5321 * NEWS: Update.
5322 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
5323 (cmdpy_init): Allow class_tui.
5324
a65189c9
TV
53252020-04-28 Mark Williams <mark@myosotissp.com>
5326
5327 PR gdb/24480
5328 * dwarf2read.c: Add missing assingments to list_in_scope when
5329 start_symtab was already called.
5330
1b95cdb7
SM
53312020-04-28 Simon Marchi <simon.marchi@efficios.com>
5332
5333 PR gdb/25881
5334 * dwarf2/read.c (offset_map_type): Use
5335 gdb:hash_enum<sect_offset> as hash function.
5336
15cd93d0
TV
53372020-04-28 Tom de Vries <tdevries@suse.de>
5338
5339 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
5340 with DW_AT_signature.
5341
1eb39914
SM
53422020-04-27 Simon Marchi <simon.marchi@efficios.com>
5343
5344 * configure.ac: Remove check for fs_base/gs_base in
5345 user_regs_struct.
5346 * configure: Re-generate.
5347 * config.in: Re-generate.
5348 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
5349 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
5350 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
5351
991a3e2e
LM
53522020-04-27 Luis Machado <luis.machado@linaro.org>
5353
5354 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
5355 problematic inline frame unwinding situation.
5356 * frame.c (frame_id_computed_p): New function.
5357 * frame.h (frame_id_computed_p): New prototype.
5358
361ba0e8
TT
53592020-04-26 Tom Tromey <tom@tromey.com>
5360
5361 * command.h (enum command_class) <class_pseudo>: Remove.
5362
bc3609fd
PW
53632020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5364
5365 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
5366 and whitespace.
5367
b9771db7
KR
53682020-04-25 Kamil Rytarowski <n54@gmx.com>
5369
ec16513e
SM
5370 * inf-ptrace.c (inf_ptrace_target::wait): Remove
5371 `PT_GET_PROCESS_STATE' block.
b9771db7 5372
7151c1af
TT
53732020-04-24 Tom Tromey <tom@tromey.com>
5374
5375 * symtab.h (symbol_get_demangled_name): Don't declare.
5376 * symtab.c (symbol_get_demangled_name): Remove.
5377 (general_symbol_info::natural_name)
5378 (general_symbol_info::demangled_name): Update.
5379
906bb4c5
TT
53802020-04-24 Tom Tromey <tom@tromey.com>
5381
5382 PR rust/25025:
5383 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
5384
bcfe6157
TT
53852020-04-24 Tom Tromey <tom@tromey.com>
5386
5387 PR symtab/12707:
5388 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
5389 exists.
5390 (new_symbol): Likewise.
5391 * compile/compile-object-load.c (get_out_value_type): Use
5392 symbol_matches_search_name.
5393
f049a313
TT
53942020-04-24 Tom Tromey <tom@tromey.com>
5395
5396 * dwarf2/read.c (add_partial_symbol): Do not call
5397 compute_and_set_names.
5398
76e288d1
TT
53992020-04-24 Tom Tromey <tom@tromey.com>
5400
5401 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
5402 overload.
5403
2467f4f6
TT
54042020-04-24 Tom Tromey <tom@tromey.com>
5405
5406 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
5407 (add_psymbol_to_list): New overload. Make old overload call new
5408 one.
5409 * psympriv.h (add_psymbol_to_list): New overload.
5410
e61108c9
TT
54112020-04-24 Tom Tromey <tom@tromey.com>
5412
5413 * dwarf2/read.c (partial_die_info::read) <case
5414 DW_AT_linkage_name>: Use value_as_string.
5415 (dwarf2_string_attr): Use value_as_string.
5416 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
5417 method.
5418 * dwarf2/attribute.c (attribute::value_as_string): New method.
5419
8c87a452
TT
54202020-04-24 Tom Tromey <tom@tromey.com>
5421
5422 * symtab.c (general_symbol_info::natural_name)
5423 (general_symbol_info::demangled_name): Check for language_rust.
5424
787de330
TT
54252020-04-24 Tom Tromey <tom@tromey.com>
5426
5427 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
5428 (dwarf2_physname): ... from here.
5429 (partial_die_info::read): Add Rust "{" hack.
5430
ff985671
TT
54312020-04-24 Tom Tromey <tom@tromey.com>
5432
5433 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
5434 method.
5435 (symbol_set_demangled_name): Don't declare.
5436 * symtab.c (general_symbol_info::set_demangled_name): Rename from
5437 symbol_set_demangled_name.
5438 (general_symbol_info::set_language)
5439 (general_symbol_info::compute_and_set_names): Update.
5440 * minsyms.c (minimal_symbol_reader::install): Update.
5441 * dwarf2/read.c (new_symbol): Update.
5442
1acda803
TT
54432020-04-24 Tom Tromey <tromey@adacore.com>
5444
5445 PR python/23662:
5446 * python/py-type.c (convert_field): Handle
5447 FIELD_LOC_KIND_DWARF_BLOCK.
5448 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
5449 (typy_get_dynamic): Nw function.
5450 (type_object_getset): Add "dynamic".
5451 * NEWS: Add entry.
5452
d656f129
TT
54532020-04-24 Tom Tromey <tromey@adacore.com>
5454
5455 * ada-typeprint.c (print_choices, print_variant_part)
5456 (print_record_field_types_dynamic): New functions.
5457 (print_record_field_types): Use print_record_field_types_dynamic.
5458
7d79de9a
TT
54592020-04-24 Tom Tromey <tromey@adacore.com>
5460
5461 * dwarf2/read.c (handle_data_member_location): New overload.
5462 (dwarf2_add_field): Use it.
5463 (decode_locdesc): Add "computed" parameter. Update comment.
5464 * gdbtypes.c (is_dynamic_type_internal): Also look for
5465 FIELD_LOC_KIND_DWARF_BLOCK.
5466 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
5467 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
5468 virtual base classes.
5469 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
5470 FIELD_LOC_KIND_DWARF_BLOCK.
5471
f8e89861
TT
54722020-04-24 Tom Tromey <tromey@adacore.com>
5473
5474 * dwarf2/read.c (read_structure_type): Handle dynamic length.
5475 * gdbtypes.c (is_dynamic_type_internal): Check
5476 TYPE_HAS_DYNAMIC_LENGTH.
5477 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
5478 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
5479 New macros.
5480 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
5481 constant.
5482
9c6a1327
TT
54832020-04-24 Tom Tromey <tromey@adacore.com>
5484
5485 * dwarf2/read.c (struct variant_field): Rewrite.
5486 (struct variant_part_builder): New.
5487 (struct nextfield): Remove "variant" field. Add "offset".
5488 (struct field_info): Add "current_variant_part" and
5489 "variant_parts".
5490 (alloc_discriminant_info): Remove.
5491 (alloc_rust_variant): New function.
5492 (quirk_rust_enum): Update.
5493 (dwarf2_add_field): Set "offset" member. Don't handle
5494 DW_TAG_variant_part.
5495 (offset_map_type): New typedef.
5496 (convert_variant_range, create_one_variant)
5497 (create_one_variant_part, create_variant_parts)
5498 (add_variant_property): New functions.
5499 (dwarf2_attach_fields_to_type): Call add_variant_property.
5500 (read_structure_type): Don't handle DW_TAG_variant_part.
5501 (handle_variant_part, handle_variant): New functions.
5502 (handle_struct_member_die): Use them.
5503 (process_structure_scope): Don't handle variant parts.
5504 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
5505 (struct discriminant_info): Remove.
5506 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
5507 (struct main_type) <flag_discriminated_union>: Remove.
5508 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
5509 (rust_enum_variant): Return int. Remove "contents". Rewrite.
5510 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
5511 Update.
5512 * valops.c (value_union_variant): Remove.
5513 * value.h (value_union_variant): Don't declare.
5514
b249d2c2
TT
55152020-04-24 Tom Tromey <tromey@adacore.com>
5516
5517 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
5518 (ada_value_primitive_packed_val): Update.
5519 * ada-valprint.c (ada_value_print_1): Update.
5520 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
5521 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
5522 just an address. Use evaluate_for_locexpr_baton.
5523 (dwarf2_evaluate_property): Update.
5524 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
5525 array_view.
5526 * findvar.c (default_read_var_value): Update.
5527 * gdbtypes.c (compute_variant_fields_inner)
5528 (resolve_dynamic_type_internal): Update.
5529 (resolve_dynamic_type): Change type of valaddr parameter.
5530 * gdbtypes.h (resolve_dynamic_type): Update.
5531 * valarith.c (value_subscripted_rvalue): Update.
5532 * value.c (value_from_contents_and_address): Update.
5533
61122aa9
TT
55342020-04-24 Tom Tromey <tromey@adacore.com>
5535
5536 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
5537 "push_initial_value" parameter.
5538 (dwarf2_evaluate_property): Likewise.
5539 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
5540
ef83a141
TT
55412020-04-24 Tom Tromey <tromey@adacore.com>
5542
5543 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
5544 (variant::matches, compute_variant_fields_recurse)
5545 (compute_variant_fields_inner, compute_variant_fields): New
5546 functions.
5547 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
5548 Use resolved_type after type is made.
5549 (operator==): Add new cases.
5550 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
5551 (struct discriminant_range, struct variant, struct variant_part):
5552 New.
5553 (union dynamic_prop_data) <variant_parts, original_type>: New
5554 members.
5555 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
5556 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
5557 constants.
5558 * value.c (unpack_bits_as_long): Now public.
5559 * value.h (unpack_bits_as_long): Declare.
5560
675127ec
TT
55612020-04-24 Tom Tromey <tromey@adacore.com>
5562
5563 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
5564 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
5565
9852ceef
HD
55662020-04-24 Hannes Domani <ssbssa@yahoo.de>
5567
5568 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
5569
7632c6ce
KR
55702020-04-24 Kamil Rytarowski <n54@gmx.com>
5571
5572 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
5573 (remove_fork_catchpoint, post_startup_inferior)
5574 (post_attach): Move...
5575 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
5576 (remove_fork_catchpoint, post_startup_inferior)
5577 (post_attach): ...here.
5578 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
5579 (remove_fork_catchpoint, post_startup_inferior)
5580 (post_attach): Move...
5581 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
5582 (remove_fork_catchpoint, post_startup_inferior)
5583 (post_attach): ...here.
5584
7be2bb4f
TT
55852020-04-24 Tom Tromey <tromey@adacore.com>
5586
5587 * nat/windows-nat.h (struct windows_thread_info)
5588 <pc_adjusted>: New member.
5589 * windows-nat.c (windows_fetch_one_register): Check
5590 pc_adjusted.
5591 (windows_nat_target::get_windows_debug_event)
5592 (windows_nat_target::wait): Set pc_adjusted.
5593
f80cb3b4
TV
55942020-04-24 Tom de Vries <tdevries@suse.de>
5595
5596 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
5597 Run gdb-add-index inside temp dir.
5598
29514b87
TT
55992020-04-23 Tom Tromey <tromey@adacore.com>
5600
5601 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
5602 in loop.
5603
5939967b
LM
56042020-04-23 Luis Machado <luis.machado@linaro.org>
5605
5606 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
5607 get_frame_register instead of gdbarch_unwind_pc.
5608
70bc38f5
TV
56092020-04-23 Tom de Vries <tdevries@suse.de>
5610
5611 * symtab.c (lookup_global_symbol): Prefer def over decl.
5612
de82891c
TV
56132020-04-23 Tom de Vries <tdevries@suse.de>
5614
5615 PR symtab/25807
5616 * block.c (best_symbol, better_symbol): Promote to external.
5617 * block.h (best_symbol, better_symbol): Declare.
5618 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
5619 decl.
5620
ecc6c606
TT
56212020-04-23 Tom Tromey <tromey@adacore.com>
5622
5623 PR ada/25837:
5624 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
5625 "const char *", not a "const std::string &".
5626 <name_and_matcher::operator==>: Update.
5627 * unittests/lookup_name_info-selftests.c: Change type of
5628 "result".
5629
740480b8
TT
56302020-04-23 Tom Tromey <tom@tromey.com>
5631
5632 * inferior.h (iterate_over_inferiors): Don't declare.
5633 * inferior.c (iterate_over_inferiors): Remove.
5634 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
5635 Remove.
5636 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
5637 use iterate_over_inferiors.
5638 (darwin_resume_inferior_it)
5639 (struct resume_inferior_threads_param)
5640 (darwin_resume_inferior_threads_it): Remove.
5641 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
5642
ae3ab1f0
TV
56432020-04-23 Tom de Vries <tdevries@suse.de>
5644
5645 * blockframe.c (find_pc_partial_function): Use
5646 find_pc_sect_compunit_symtab rather than
5647 objfile->sf->qf->find_pc_sect_compunit_symtab.
5648
317d2668
TV
56492020-04-22 Tom de Vries <tdevries@suse.de>
5650
5651 PR symtab/25764
5652 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
5653 in psymtabs.
5654
eea9e357
TV
56552020-04-22 Tom de Vries <tdevries@suse.de>
5656
5657 PR symtab/25801
5658 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
5659 symtabs.
5660
3d5afab3
TV
56612020-04-22 Tom de Vries <tdevries@suse.de>
5662
5663 PR symtab/25700
5664 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
5665 CU if already created.
5666
d43b7a2d
TBA
56672020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5668
5669 * infrun.c (displaced_step_fixup): Switch to the event_thread
5670 before calling displaced_step_restore, not after.
5671
d89edf9b
MM
56722020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5673
5674 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
5675 its inferior is not recorded by us.
5676 (record_btrace_target_open): Replace call to
5677 all_non_exited_threads () with call to current_inferior
5678 ()->non_exited_threads ().
5679 (record_btrace_target::stop_recording): Likewise.
5680 (record_btrace_target::close): Likewise.
5681 (record_btrace_target::wait): Likewise.
5682 (record_btrace_target::record_stop_replaying): Likewise.
5683
5897fd49
MM
56842020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5685
5686 * btrace.c (btrace_enable): Throw an error on double enables and
5687 when enabling recording fails.
5688 (btrace_disable): Throw an error if the thread is not recorded.
5689
1a476b6d
MM
56902020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5691
5692 * record-btrace.c (record_btrace_target::fetch_registers): Forward
5693 request if we do not have a thread_info.
5694
4778a5f8
TV
56952020-04-21 Tom de Vries <tdevries@suse.de>
5696
5697 PR gdb/25471
5698 * thread.c
5699 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
5700 exception in get_frame_id.
5701
0fa7617d
TT
57022020-04-20 Tom Tromey <tromey@adacore.com>
5703
5704 * python/python.c (struct gdbpy_event): Mark move constructor as
5705 noexcept.
5706 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
5707 constructor as noexcept.
5708 * completer.h (struct completion_result): Mark move constructor as
5709 noexcept.
5710 * completer.c (completion_result::completion_result): Use
5711 initialization style. Don't call reset_match_list.
5712
ad23bda0
MS
57132020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
5714
5715 * MAINTAINERS (Write After Approval): Add myself.
5716
45e1f031
TT
57172020-04-18 Tom Tromey <tom@tromey.com>
5718
5719 * windows-tdep.c (init_w32_command_list)
5720 (w32_prefix_command_valid): Restore.
5721 (_initialize_windows_tdep): Call init_w32_command_list.
5722
08feed99
TT
57232020-04-18 Tom Tromey <tom@tromey.com>
5724
5725 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
5726 * value.c (value_fn_field): Update.
5727 * valops.c (find_function_in_inferior)
5728 (value_allocate_space_in_inferior): Update.
5729 * tui/tui-winsource.c (tui_update_source_windows_with_line):
5730 Update.
5731 * tui/tui-source.c (tui_source_window::set_contents): Update.
5732 * symtab.c (lookup_global_or_static_symbol)
5733 (find_function_start_sal_1, skip_prologue_sal)
5734 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
5735 * symmisc.c (dump_msymbols, dump_symtab_1)
5736 (maintenance_print_one_line_table): Update.
5737 * symfile.c (init_entry_point_info, section_is_mapped)
5738 (list_overlays_command, simple_read_overlay_table)
5739 (simple_overlay_update_1): Update.
5740 * stap-probe.c (handle_stap_probe): Update.
5741 * stabsread.c (dbx_init_float_type, define_symbol)
5742 (read_one_struct_field, read_enum_type, read_range_type): Update.
5743 * source.c (info_line_command): Update.
5744 * python/python.c (gdbpy_source_objfile_script)
5745 (gdbpy_execute_objfile_script): Update.
5746 * python/py-type.c (save_objfile_types): Update.
5747 * python/py-objfile.c (py_free_objfile): Update.
5748 * python/py-inferior.c (python_new_objfile): Update.
5749 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
5750 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
5751 (maintenance_check_psymtabs): Update.
5752 * printcmd.c (info_address_command): Update.
5753 * objfiles.h (struct objfile) <arch>: New method, from
5754 get_objfile_arch.
5755 (get_objfile_arch): Don't declare.
5756 * objfiles.c (get_objfile_arch): Remove.
5757 (filter_overlapping_sections): Update.
5758 * minsyms.c (msymbol_is_function): Update.
5759 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
5760 (output_nondebug_symbol): Update.
5761 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
5762 (mdebug_expand_psymtab): Update.
5763 * machoread.c (macho_add_oso_symfile): Update.
5764 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
5765 Update.
5766 * linux-fork.c (checkpoint_command): Update.
5767 * linespec.c (convert_linespec_to_sals): Update.
5768 * jit.c (finalize_symtab): Update.
5769 * infrun.c (insert_exception_resume_from_probe): Update.
5770 * ia64-tdep.c (ia64_find_unwind_table): Update.
5771 * hppa-tdep.c (internalize_unwinds): Update.
5772 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
5773 Update.
5774 * gcore.c (call_target_sbrk): Update.
5775 * elfread.c (record_minimal_symbol, elf_symtab_read)
5776 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
5777 (elf_gnu_ifunc_resolve_by_got): Update.
5778 * dwarf2/read.c (create_addrmap_from_index)
5779 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
5780 (read_debug_names_from_section)
5781 (process_psymtab_comp_unit_reader, add_partial_symbol)
5782 (add_partial_subprogram, process_full_comp_unit)
5783 (read_file_scope, read_func_scope, read_lexical_block_scope)
5784 (read_call_site_scope, dwarf2_ranges_read)
5785 (dwarf2_record_block_ranges, dwarf2_add_field)
5786 (mark_common_block_symbol_computed, read_tag_pointer_type)
5787 (read_tag_string_type, dwarf2_init_float_type)
5788 (dwarf2_init_complex_target_type, read_base_type)
5789 (partial_die_info::read, partial_die_info::read)
5790 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
5791 (dwarf2_fetch_die_loc_sect_off): Update.
5792 * dwarf2/loc.c (dwarf2_find_location_expression)
5793 (class dwarf_evaluate_loc_desc, rw_pieced_value)
5794 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
5795 (dwarf2_loc_desc_get_symbol_read_needs)
5796 (locexpr_describe_location_piece, locexpr_describe_location_1)
5797 (loclist_describe_location): Update.
5798 * dwarf2/index-write.c (write_debug_names): Update.
5799 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
5800 * dtrace-probe.c (dtrace_process_dof): Update.
5801 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
5802 (process_one_symbol): Update.
5803 * ctfread.c (ctf_init_float_type, read_base_type): Update.
5804 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
5805 (coff_read_enum_type): Update.
5806 * cli/cli-cmds.c (edit_command, list_command): Update.
5807 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
5808 * breakpoint.c (create_overlay_event_breakpoint)
5809 (create_longjmp_master_breakpoint)
5810 (create_std_terminate_master_breakpoint)
5811 (create_exception_master_breakpoint, get_sal_arch): Update.
5812 * block.c (block_gdbarch): Update.
5813 * annotate.c (annotate_source_line): Update.
5814
0743fc83
TT
58152020-04-17 Tom Tromey <tromey@adacore.com>
5816
5817 * auto-load.c (show_auto_load_cmd): Remove.
5818 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
5819 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
5820 (maintenance_print_arc_command): Remove.
5821 * tui/tui-win.c (tui_command): Remove.
5822 (tui_get_cmd_list): Use add_basic_prefix_cmd.
5823 * tui/tui-layout.c (tui_layout_command): Remove.
5824 (_initialize_tui_layout): Use add_basic_prefix_cmd.
5825 * python/python.c (user_set_python, user_show_python): Remove.
5826 (_initialize_python): Use add_basic_prefix_cmd,
5827 add_show_prefix_cmd.
5828 * guile/guile.c (set_guile_command, show_guile_command): Remove.
5829 (install_gdb_commands): Use add_basic_prefix_cmd,
5830 add_show_prefix_cmd.
5831 (info_guile_command): Remove.
5832 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
5833 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
5834 add_show_prefix_cmd.
5835 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
5836 Remove do_set and do_show parameters.
5837 * cli/cli-style.c (set_style, show_style): Remove.
5838 (_initialize_cli_style): Use add_basic_prefix_cmd,
5839 add_show_prefix_cmd.
5840 (cli_style_option::add_setshow_commands): Remove do_set and
5841 do_show parameters.
5842 (cli_style_option::add_setshow_commands): Use
5843 add_basic_prefix_cmd, add_show_prefix_cmd.
5844 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
5845 (set_style_name): Remove.
5846 * cli/cli-dump.c (dump_command, append_command): Remove.
5847 (srec_dump_command, ihex_dump_command, verilog_dump_command)
5848 (tekhex_dump_command, binary_dump_command)
5849 (binary_append_command): Remove.
5850 (_initialize_cli_dump): Use add_basic_prefix_cmd.
5851 * windows-tdep.c (w32_prefix_command_valid): Remove global.
5852 (init_w32_command_list): Remove; move into ...
5853 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
5854 * valprint.c (set_print, show_print, set_print_raw)
5855 (show_print_raw): Remove.
5856 (_initialize_valprint): Use add_basic_prefix_cmd,
5857 add_show_prefix_cmd.
5858 * typeprint.c (set_print_type, show_print_type): Remove.
5859 (_initialize_typeprint): Use add_basic_prefix_cmd,
5860 add_show_prefix_cmd.
5861 * record.c (set_record_command, show_record_command): Remove.
5862 (_initialize_record): Use add_basic_prefix_cmd,
5863 add_show_prefix_cmd.
5864 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
5865 add_show_prefix_cmd.
5866 (info_command, show_command, set_debug, show_debug): Remove.
5867 * top.h (set_history, show_history): Don't declare.
5868 * top.c (set_history, show_history): Remove.
5869 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
5870 (unset_tdesc_cmd): Remove.
5871 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
5872 add_show_prefix_cmd.
5873 * symtab.c (info_module_command): Remove.
5874 (_initialize_symtab): Use add_basic_prefix_cmd.
5875 * symfile.c (overlay_command): Remove.
5876 (_initialize_symfile): Use add_basic_prefix_cmd.
5877 * sparc64-tdep.c (info_adi_command): Remove.
5878 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
5879 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
5880 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
5881 add_show_prefix_cmd.
5882 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
5883 (_initialize_serial): Use add_basic_prefix_cmd,
5884 add_show_prefix_cmd.
5885 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
5886 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
5887 add_show_prefix_cmd.
5888 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
5889 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
5890 add_show_prefix_cmd.
5891 * riscv-tdep.c (show_riscv_command, set_riscv_command)
5892 (show_debug_riscv_command, set_debug_riscv_command): Remove.
5893 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
5894 add_show_prefix_cmd.
5895 * remote.c (remote_command, set_remote_cmd): Remove.
5896 (_initialize_remote): Use add_basic_prefix_cmd.
5897 * record-full.c (set_record_full_command)
5898 (show_record_full_command): Remove.
5899 (_initialize_record_full): Use add_basic_prefix_cmd,
5900 add_show_prefix_cmd.
5901 * record-btrace.c (cmd_set_record_btrace)
5902 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
5903 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
5904 (cmd_show_record_btrace_pt): Remove.
5905 (_initialize_record_btrace): Use add_basic_prefix_cmd,
5906 add_show_prefix_cmd.
5907 * ravenscar-thread.c (set_ravenscar_command)
5908 (show_ravenscar_command): Remove.
5909 (_initialize_ravenscar): Use add_basic_prefix_cmd,
5910 add_show_prefix_cmd.
5911 * mips-tdep.c (show_mips_command, set_mips_command)
5912 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
5913 add_show_prefix_cmd.
5914 * maint.c (maintenance_command, maintenance_info_command)
5915 (maintenance_check_command, maintenance_print_command)
5916 (maintenance_set_cmd, maintenance_show_cmd): Remove.
5917 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
5918 add_show_prefix_cmd.
5919 (show_per_command_cmd): Remove.
5920 * maint-test-settings.c (maintenance_set_test_settings_cmd):
5921 Remove.
5922 (maintenance_show_test_settings_cmd): Remove.
5923 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
5924 add_show_prefix_cmd.
5925 * maint-test-options.c (maintenance_test_options_command):
5926 Remove.
5927 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
5928 * macrocmd.c (macro_command): Remove
5929 (_initialize_macrocmd): Use add_basic_prefix_cmd.
5930 * language.c (set_check, show_check): Remove.
5931 (_initialize_language): Use add_basic_prefix_cmd,
5932 add_show_prefix_cmd.
5933 * infcmd.c (unset_command): Remove.
5934 (_initialize_infcmd): Use add_basic_prefix_cmd.
5935 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
5936 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
5937 add_show_prefix_cmd.
5938 * go32-nat.c (go32_info_dos_command): Remove.
5939 (_initialize_go32_nat): Use add_basic_prefix_cmd.
5940 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
5941 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
5942 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
5943 (_initialize_frame): Use add_basic_prefix_cmd,
5944 add_show_prefix_cmd.
5945 * dcache.c (set_dcache_command, show_dcache_command): Remove.
5946 (_initialize_dcache): Use add_basic_prefix_cmd,
5947 add_show_prefix_cmd.
5948 * cp-support.c (maint_cplus_command): Remove.
5949 (_initialize_cp_support): Use add_basic_prefix_cmd.
5950 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
5951 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
5952 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
5953 add_basic_prefix_cmd, add_show_prefix_cmd.
5954 * breakpoint.c (save_command): Remove.
5955 (_initialize_breakpoint): Use add_basic_prefix_cmd.
5956 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
5957 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
5958 add_show_prefix_cmd.
5959 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
5960 (set_ada_command, show_ada_command): Remove.
5961 (_initialize_ada_language): Use add_basic_prefix_cmd,
5962 add_show_prefix_cmd.
5963 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
5964
3557f442
KR
59652020-04-16 Kamil Rytarowski <n54@gmx.com>
5966
5967 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
5968 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
5969
16197208
SM
59702020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
5971
5972 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
5973 warning messages.
5974
00ac85d3
SM
59752020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
5976
5977 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
5978 import table is not at beginning of .idata section.
5979
381ce63f
PA
59802020-04-16 Pedro Alves <palves@redhat.com>
5981
5982 * inferior.c (delete_inferior): Use delete operator directly
5983 instead of delete_program_space.
5984 * progspace.c (add_program_space): New, factored out from
5985 program_space::program_space.
5986 (remove_program_space): New, factored out from
5987 delete_program_space.
5988 (program_space::program_space): Remove intro comment. Rewrite.
5989 (program_space::~program_space): Remove intro comment. Call
5990 remove_program_space.
5991 (delete_program_space): Delete.
5992 * progspace.h (program_space::program_space): Make explicit. Move
5993 intro comment here, adjusted.
5994 (program_space::~program_space): Move intro comment here,
5995 adjusted.
5996 (delete_program_space): Remove.
5997
a010605f
TT
59982020-04-16 Tom Tromey <tromey@adacore.com>
5999
6000 * windows-nat.c (windows_nat::handle_access_violation): New
6001 function.
6002 * nat/windows-nat.h (handle_access_violation): Declare.
6003 * nat/windows-nat.c (handle_exception): Move Cygwin code to
6004 windows-nat.c. Call handle_access_violation.
6005
efba5c23
TV
60062020-04-16 Tom de Vries <tdevries@suse.de>
6007
6008 PR symtab/25791
6009 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
6010 CUs without psymtab.
6011
97ed802d
KB
60122020-04-16 Kevin Buettner <kevinb@redhat.com>
6013
6014 * python/python.c (do_start_initialization): Don't call
6015 PyEval_InitThreads for Python 3.9 and beyond.
6016
c7d64809
KR
60172020-04-15 Kamil Rytarowski <n54@gmx.com>
6018
6019 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
6020 thread functions.
6021 (obsd_nat_target::wait): Likewise.
6022
ce127a96
TT
60232020-04-15 Tom Tromey <tromey@adacore.com>
6024
6025 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
6026 (DEBUG_EXCEPT): Use debug_printf.
6027
99f1bc6a
AB
60282020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
6029
6030 * completer.c (class completion_tracker::completion_hash_entry)
6031 <hash_name>: New member function.
6032 (completion_tracker::discard_completions): New callback to hash a
6033 completion_hash_entry, pass this to htab_create_alloc.
6034
a0e9b532
JT
60352016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
6036
6037 * windows-nat.c (windows_make_so): Warn rather than stopping with
6038 an error if realpath() fails.
6039
06ca5dd4
KR
60402020-04-14 Kamil Rytarowski <n54@gmx.com>
6041
6042 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
6043 (nbsd_nat_target::info_proc): Add do_status.
6044
194d088f
TV
60452020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
6046 Tom de Vries <tdevries@suse.de>
6047
6048 PR symtab/25718
6049 * psympriv.h (struct partial_symtab::read_symtab)
6050 (struct partial_symtab::expand_psymtab)
6051 (struct partial_symtab::read_dependencies): Update comments.
6052 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
6053 read_symtab for includer.
6054 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
6055 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
6056 (struct dwarf2_include_psymtab::m_readin): Remove.
6057 (struct dwarf2_include_psymtab::includer): New member function.
6058 (dwarf2_psymtab::expand_psymtab): Assert !readin.
6059
c1a66c06
TV
60602020-04-14 Tom de Vries <tdevries@suse.de>
6061
6062 PR symtab/25720
6063 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
6064 with NULL symbol_matcher and lookup_name.
6065 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
6066 and lookup_name.
6067 * dwarf2/read.c (dw2_expand_symtabs_matching)
6068 (dw2_debug_names_expand_symtabs_matching): Same.
6069 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
6070 Make lookup_name a pointer. Update comment.
6071 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
6072 lookup_name being a pointer.
6073 * symfile.c (expand_symtabs_matching): Same.
6074 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
6075 * linespec.c (iterate_over_all_matching_symtabs): Same.
6076
400b5eca
TT
60772020-04-13 Tom Tromey <tom@tromey.com>
6078
6079 * run-on-main-thread.c: Update include.
6080 * unittests/main-thread-selftests.c: Update include.
6081 * tui/tui-win.c: Update include.
6082 * tui/tui-io.c: Update include.
6083 * tui/tui-interp.c: Update include.
6084 * tui/tui-hooks.c: Update include.
6085 * top.h: Update include.
6086 * top.c: Update include.
6087 * ser-base.c: Update include.
6088 * remote.c: Update include.
6089 * remote-notif.c: Update include.
6090 * remote-fileio.c: Update include.
6091 * record-full.c: Update include.
6092 * record-btrace.c: Update include.
6093 * python/python.c: Update include.
6094 * posix-hdep.c: Update include.
6095 * mingw-hdep.c: Update include.
6096 * mi/mi-main.c: Update include.
6097 * mi/mi-interp.c: Update include.
6098 * main.c: Update include.
6099 * linux-nat.c: Update include.
6100 * interps.c: Update include.
6101 * infrun.c: Update include.
6102 * inf-loop.c: Update include.
6103 * event-top.c: Update include.
6104 * event-loop.c: Move to ../gdbsupport/.
6105 * event-loop.h: Move to ../gdbsupport/.
6106 * async-event.h: Update include.
6107 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
6108
93b54c8e
TT
61092020-04-13 Tom Tromey <tom@tromey.com>
6110
6111 * tui/tui-win.c: Include async-event.h.
6112 * remote.c: Include async-event.h.
6113 * remote-notif.c: Include async-event.h.
6114 * record-full.c: Include async-event.h.
6115 * record-btrace.c: Include async-event.h.
6116 * infrun.c: Include async-event.h.
6117 * event-top.c: Include async-event.h.
6118 * event-loop.h: Move some declarations to async-event.h.
6119 * event-loop.c: Don't include ser-event.h or top.h. Move some
6120 code to async-event.c.
6121 * async-event.h: New file.
6122 * async-event.c: New file.
6123 * Makefile.in (COMMON_SFILES): Add async-event.c.
6124 (HFILES_NO_SRCDIR): Add async-event.h.
6125
c1cd3163
TT
61262020-04-13 Tom Tromey <tom@tromey.com>
6127
6128 * utils.c (flush_streams): New function.
6129 * event-loop.c (gdb_wait_for_event): Call flush_streams.
6130
29f2bf4f
TT
61312020-04-13 Tom Tromey <tom@tromey.com>
6132
6133 * event-loop.c (handle_file_event): Use warning, not
6134 printf_unfiltered.
6135
98029d02
TT
61362020-04-13 Tom Tromey <tom@tromey.com>
6137
6138 * event-loop.c: Include <chrono>.
6139
06cc9596
TT
61402020-04-13 Tom Tromey <tom@tromey.com>
6141
6142 * gdb_select.h: Move to ../gdbsupport/.
6143 * event-loop.c: Update include path.
6144 * top.c: Update include path.
6145 * ser-base.c: Update include path.
6146 * ui-file.c: Update include path.
6147 * ser-tcp.c: Update include path.
6148 * guile/scm-ports.c: Update include path.
6149 * posix-hdep.c: Update include path.
6150 * ser-unix.c: Update include path.
6151 * gdb_usleep.c: Update include path.
6152 * mingw-hdep.c: Update include path.
6153 * inflow.c: Update include path.
6154 * infrun.c: Update include path.
6155 * event-top.c: Update include path.
6156
8ae8e197
TT
61572020-04-13 Tom Tromey <tom@tromey.com>
6158
6159 * configure: Rebuild.
6160 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
6161
58cf28e8
TT
61622020-04-13 Tom Tromey <tom@tromey.com>
6163
6164 * event-loop.h (start_event_loop): Don't declare.
6165 * event-loop.c (start_event_loop): Move...
6166 * main.c (start_event_loop): ...here. Now static.
6167
b7f999ae
SDJ
61682020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
6169
6170 * MAINTAINERS: Update my email address.
6171
1085dfd4
KR
61722020-04-12 Kamil Rytarowski <n54@gmx.com>
6173
6174 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
6175 IP_ALL.
6176
49d1d1f5
KR
61772020-04-12 Kamil Rytarowski <n54@gmx.com>
6178
6179 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 6180 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 6181
b4848d2a
KR
61822020-04-12 Kamil Rytarowski <n54@gmx.com>
6183
6184 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 6185 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 6186
51c133d5
KR
61872020-04-12 Kamil Rytarowski <n54@gmx.com>
6188
6189 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
6190
54b8cbd0
KR
61912020-04-11 Kamil Rytarowski <n54@gmx.com>
6192
6193 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
6194 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
6195 (nbsd_nat_target::info_proc): New functions.
6196 * nbsd-nat.c (kinfo_get_vmmap): New function.
6197 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
6198 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
6199 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
6200 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
6201 functions.
6202 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
6203 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
6204 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
6205 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
6206 (KINFO_VME_FLAG_GROWS_DOWN): New.
6207
cf83625d
AS
62082020-04-10 Artur Shepilko <nomadbyte@gmail.com>
6209
6210 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
6211 bit shift.
6212
0c4311ab
TT
62132020-04-10 Tom Tromey <tromey@adacore.com>
6214
6215 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
6216
3e65b3e9
TT
62172020-04-10 Tom Tromey <tromey@adacore.com>
6218
6219 * symtab.c (get_symbol_address, get_msymbol_address): Skip
6220 separate debug files.
6221
13302e95
HD
62222020-04-10 Hannes Domani <ssbssa@yahoo.de>
6223
6224 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6225 Move to...
6226 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6227 ... here.
6228 * windows-nat.c (windows_nat_target::get_windows_debug_event):
6229 Check for STATUS_WX86_BREAKPOINT.
6230 (windows_nat_target::wait): Same.
6231
bdfc1e8a
TV
62322020-04-10 Tom de Vries <tdevries@suse.de>
6233
6234 PR cli/25808
6235 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
6236
f4460aec
SM
62372020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
6238
6239 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
6240 (Write After Approval): Remove Tom de Vries.
6241
a25198bb
BE
62422020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
6243
6244 revert partially:
6245 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6246
aac66a4c
SM
6247 * buildsym.c (record_line): Fix undefined behavior and preserve
6248 lines at eof.
a25198bb 6249
206c98a6
KR
62502020-04-09 Kamil Rytarowski <n54@gmx.com>
6251
6252 * auxv.h (svr4_auxv_parse): New.
6253 * auxv.c (default_auxv_parse): Split into default_auxv_parse
6254 and generic_auxv_parse.
6255 (svr4_auxv_parse): Add.
6256 * obsd-tdep.c: Include "auxv.h".
6257 (obsd_auxv_parse): Remove.
6258 (obsd_init_abi): Remove comment.
6259 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
6260 from `obsd_auxv_parse' to `svr4_auxv_parse'.
6261 * nbsd-tdep.c: Include "auxv.h".
6262 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
6263
71fbdbaf
TT
62642020-04-08 Tom Tromey <tromey@adacore.com>
6265
6266 * nat/windows-nat.h (last_wait_event): Don't declare.
6267 (wait_for_debug_event): Update comment.
6268 * nat/windows-nat.c (last_wait_event): Now static.
6269
2c1d95e8
TT
62702020-04-08 Tom Tromey <tromey@adacore.com>
6271
6272 * windows-nat.c (wait_for_debug_event): Move to
6273 nat/windows-nat.c.
6274 * nat/windows-nat.h (wait_for_debug_event): Declare.
6275 * nat/windows-nat.c (wait_for_debug_event): Move from
6276 windows-nat.c. No longer static.
6277
d2977bc4
TT
62782020-04-08 Tom Tromey <tromey@adacore.com>
6279
6280 * windows-nat.c (get_windows_debug_event): Use
6281 fetch_pending_stop.
6282 * nat/windows-nat.h (fetch_pending_stop): Declare.
6283 * nat/windows-nat.c (fetch_pending_stop): New function.
6284
e758e19c
TT
62852020-04-08 Tom Tromey <tromey@adacore.com>
6286
6287 * windows-nat.c (windows_continue): Use matching_pending_stop and
6288 continue_last_debug_event.
6289 * nat/windows-nat.h (matching_pending_stop)
6290 (continue_last_debug_event): Declare.
6291 * nat/windows-nat.c (DEBUG_EVENTS): New define.
6292 (matching_pending_stop, continue_last_debug_event): New
6293 functions.
6294
8d30e395
TT
62952020-04-08 Tom Tromey <tromey@adacore.com>
6296
6297 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
6298 (handle_exception_result): Move to nat/windows-nat.h.
6299 (DEBUG_EXCEPTION_SIMPLE): Remove.
6300 (windows_nat::handle_ms_vc_exception): New function.
6301 (handle_exception): Move to nat/windows-nat.c.
6302 (get_windows_debug_event): Update.
6303 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
6304 nat/windows-nat.c.
6305 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
6306 (handle_exception_result): Move from windows-nat.c.
6307 (handle_exception): Declare.
6308 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
6309 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
6310 windows-nat.c.
6311
29de418d
TT
63122020-04-08 Tom Tromey <tromey@adacore.com>
6313
6314 * windows-nat.c (exception_count, event_count): Remove.
6315 (handle_exception, get_windows_debug_event)
6316 (do_initial_windows_stuff): Update.
6317
a816ba18
TT
63182020-04-08 Tom Tromey <tromey@adacore.com>
6319
6320 * windows-nat.c (windows_nat::handle_load_dll)
6321 (windows_nat::handle_unload_dll): Rename. No longer static.
6322 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
6323 Declare.
6324
a00caa12
TT
63252020-04-08 Tom Tromey <tromey@adacore.com>
6326
6327 * complaints.h (stop_whining): Declare at top-level.
6328 (complaint): Don't declare stop_whining.
6329
d41b524f
TT
63302020-04-08 Tom Tromey <tromey@adacore.com>
6331
6332 * windows-nat.c (windows_nat::handle_output_debug_string):
6333 Rename. No longer static.
6334 * nat/windows-nat.h (handle_output_debug_string): Declare.
6335
3c76026d
TT
63362020-04-08 Tom Tromey <tromey@adacore.com>
6337
6338 * windows-nat.c (current_process_handle, current_process_id)
6339 (main_thread_id, last_sig, current_event, last_wait_event)
6340 (current_windows_thread, desired_stop_thread_id, pending_stops)
6341 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
6342 (display_selectors, fake_create_process)
6343 (get_windows_debug_event): Update.
6344 * nat/windows-nat.h (current_process_handle, current_process_id)
6345 (main_thread_id, last_sig, current_event, last_wait_event)
6346 (current_windows_thread, desired_stop_thread_id, pending_stops)
6347 (struct pending_stop, siginfo_er): Move from windows-nat.c.
6348 * nat/windows-nat.c (current_process_handle, current_process_id)
6349 (main_thread_id, last_sig, current_event, last_wait_event)
6350 (current_windows_thread, desired_stop_thread_id, pending_stops)
6351 (siginfo_er): New globals. Move from windows-nat.c.
6352
9d8679cc
TT
63532020-04-08 Tom Tromey <tromey@adacore.com>
6354
6355 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
6356 (handle_load_dll): Update.
6357 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
6358
28688adf
TT
63592020-04-08 Tom Tromey <tromey@adacore.com>
6360
6361 * windows-nat.c (enum thread_disposition_type): Move to
6362 nat/windows-nat.h.
6363 (windows_nat::thread_rec): Rename from thread_rec. No longer
6364 static.
6365 (windows_add_thread, windows_nat_target::fetch_registers)
6366 (windows_nat_target::store_registers, handle_exception)
6367 (windows_nat_target::resume, get_windows_debug_event)
6368 (windows_nat_target::get_tib_address)
6369 (windows_nat_target::thread_name)
6370 (windows_nat_target::thread_alive): Update.
6371 * nat/windows-nat.h (enum thread_disposition_type): Move from
6372 windows-nat.c.
6373 (thread_rec): Declare.
6374
4834dad0
TT
63752020-04-08 Tom Tromey <tromey@adacore.com>
6376
6377 * windows-nat.c: Add "using namespace".
6378 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
6379 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
6380
65bafd5b
TT
63812020-04-08 Tom Tromey <tromey@adacore.com>
6382
6383 * nat/windows-nat.h (struct windows_thread_info): Declare
6384 destructor.
6385 * nat/windows-nat.c (~windows_thread_info): New.
6386
0a4afda3
TT
63872020-04-08 Tom Tromey <tromey@adacore.com>
6388
6389 PR gdb/22992
6390 * windows-nat.c (current_event): Update comment.
6391 (last_wait_event, desired_stop_thread_id): New globals.
6392 (struct pending_stop): New.
6393 (pending_stops): New global.
6394 (windows_nat_target) <stopped_by_sw_breakpoint>
6395 <supports_stopped_by_sw_breakpoint>: New methods.
6396 (windows_fetch_one_register): Add assertions. Adjust PC.
6397 (windows_continue): Handle pending stops. Suspend other threads
6398 when stepping. Use last_wait_event
6399 (wait_for_debug_event): New function.
6400 (get_windows_debug_event): Use wait_for_debug_event. Handle
6401 pending stops. Queue spurious stops.
6402 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
6403 (windows_nat_target::kill): Use wait_for_debug_event.
6404 * nat/windows-nat.h (struct windows_thread_info)
6405 <stopped_at_software_breakpoint>: New field.
6406 * nat/windows-nat.c (windows_thread_info::resume): Clear
6407 stopped_at_software_breakpoint.
6408
8e61ebec
TT
64092020-04-08 Tom Tromey <tromey@adacore.com>
6410
6411 * windows-nat.c (enum thread_disposition_type): New.
6412 (thread_rec): Replace "get_context" parameter with "disposition";
6413 change type.
6414 (windows_add_thread, windows_nat_target::fetch_registers)
6415 (windows_nat_target::store_registers, handle_exception)
6416 (windows_nat_target::resume, get_windows_debug_event)
6417 (windows_nat_target::get_tib_address)
6418 (windows_nat_target::thread_name)
6419 (windows_nat_target::thread_alive): Update.
6420
98a03287
TT
64212020-04-08 Tom Tromey <tromey@adacore.com>
6422
6423 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
6424 (windows_continue): Use windows_continue::resume.
6425 * nat/windows-nat.h (struct windows_thread_info) <suspend,
6426 resume>: Declare new methods.
6427 * nat/windows-nat.c: New file.
6428 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
6429
7c7411bc
TT
64302020-04-08 Tom Tromey <tromey@adacore.com>
6431
6432 * windows-nat.c (windows_add_thread, windows_delete_thread)
6433 (windows_nat_target::fetch_registers)
6434 (windows_nat_target::store_registers, fake_create_process)
6435 (windows_nat_target::resume, windows_nat_target::resume)
6436 (get_windows_debug_event, windows_nat_target::wait)
6437 (windows_nat_target::pid_to_str)
6438 (windows_nat_target::get_tib_address)
6439 (windows_nat_target::get_ada_task_ptid)
6440 (windows_nat_target::thread_name)
6441 (windows_nat_target::thread_alive): Use lwp, not tid.
6442
2950fdf7
TT
64432020-04-08 Tom Tromey <tromey@adacore.com>
6444
6445 * windows-nat.c (handle_exception)
6446 (windows_nat_target::thread_name): Update.
6447 * nat/windows-nat.h (windows_thread_info): Remove destructor.
6448 <name>: Now unique_xmalloc_ptr.
6449
62fe396b
TT
64502020-04-08 Tom Tromey <tromey@adacore.com>
6451
6452 * windows-nat.c (thread_rec)
6453 (windows_nat_target::fetch_registers): Update.
6454 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
6455 Update comment.
6456 <debug_registers_changed, reload_context>: Now bool.
6457
e9534bd2
TT
64582020-04-08 Tom Tromey <tromey@adacore.com>
6459
6460 * windows-nat.c (windows_add_thread): Use new.
6461 (windows_init_thread_list, windows_delete_thread): Use delete.
6462 (get_windows_debug_event): Update.
6463 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
6464 destructor, and initializers.
6465
ae1f8880
TT
64662020-04-08 Tom Tromey <tromey@adacore.com>
6467
6468 * windows-nat.c (struct windows_thread_info): Remove.
6469 * nat/windows-nat.h: New file.
6470
55a1e039
TT
64712020-04-08 Tom Tromey <tromey@adacore.com>
6472
6473 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
6474 (thread_rec, windows_add_thread, windows_delete_thread)
6475 (windows_continue): Update.
6476
93366324
TT
64772020-04-08 Tom Tromey <tromey@adacore.com>
6478
6479 * windows-nat.c (struct windows_thread_info): Remove typedef.
6480 (thread_head): Remove.
6481 (thread_list): New global.
6482 (thread_rec, windows_add_thread, windows_init_thread_list)
6483 (windows_delete_thread, windows_continue): Update.
6484
0f2265e2
SM
64852020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6486
6487 * windows-tdep.h (windows_init_abi): Add comment.
6488 (cygwin_init_abi): New declaration.
6489 * windows-tdep.c: Split signal enumeration in two, one for
6490 Windows and one for Cygwin.
6491 (windows_gdb_signal_to_target): Only deal with signal of the
6492 Windows OS ABI.
6493 (cygwin_gdb_signal_to_target): New function.
6494 (windows_init_abi): Rename to windows_init_abi_common, don't set
6495 gdb_signal_to_target gdbarch method. Add new new function with
6496 this name.
6497 (cygwin_init_abi): New function.
6498 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
6499 comment. Don't call windows_init_abi.
6500 (amd64_windows_init_abi): Add comment, call windows_init_abi.
6501 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
6502 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
6503 i386_windows_init_abi_common, don't call windows_init_abi. Add
6504 a new function of this name.
6505 (i386_cygwin_init_abi): New function.
6506 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
6507 OS ABI Cygwin.
6508
3810f182
SM
65092020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6510
6511 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
6512 parameter.c.
6513 (dwarf2_read_gdb_index): Update.
6514
063f8e80
KR
65152020-04-07 Kamil Rytarowski <n54@gmx.com>
6516
6517 * nbsd-tdep.c: Include "objfiles.h".
6518 (nbsd_skip_solib_resolver): New.
6519 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
6520
85a9510c 65212020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6522
6523 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
6524 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
6525 with DW_LLE_base_addressx are being emitted in DWARFv5.
6526 Add the newly added kind DW_LOC_OFFSET_PAIR also.
6527 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
6528 unsigned integer.
6529
9fc3eaae 65302020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6531
6532 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
6533 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
6534 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
6535 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
6536 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
6537 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
6538 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
6539
6540
41144253 65412020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6542
6543 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
6544 (read_loclist_index): New function definition.
6545 (lookup_loclist_base): New function definition.
6546 (read_loclist_header): New function definition.
6547 (dwarf2_cu): Add loclist_base and loclist_header field.
6548 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
6549 (read_full_die_1): Read the value of DW_AT_loclists_base.
6550 (read_attribute_reprocess): Handle DW_FORM_loclistx.
6551 (read_attribute_value): Handle DW_FORM_loclistx.
6552 (skip_one_die): Handle DW_FORM_loclistx.
6553 (loclist_header): New structure declaration.
6554 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
6555
9f4e76a4
SM
65562020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
6557
6558 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
6559 constructor. Remove `addr` parameter from other constructor and
6560 add `per_cu` parameter.
6561 * dwarf2/read.c (create_partial_symtab): Update.
6562
25c11aca
TV
65632020-04-07 Tom de Vries <tdevries@suse.de>
6564
6565 PR symtab/25796
6566 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
6567 (partial_die_info::fixup): Inherit has_const_value.
6568
5707e24b
TV
65692020-04-07 Tom de Vries <tdevries@suse.de>
6570
6571 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
6572 symbols without address.
6573
05f00e22
KR
65742020-04-06 Kamil Rytarowski <n54@gmx.com>
6575
6576 * nbsd-nat.h (struct thread_info): Add forward declaration.
6577 (nbsd_nat_target::thread_alive): Add.
6578 (nbsd_nat_target::thread_name): Likewise.
6579 (nbsd_nat_target::update_thread_list): Likewise.
6580 (update_thread_list::post_attach): Likewise.
6581 (post_attach::pid_to_str): Likewise.
6582 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
6583 (nbsd_thread_lister): Add.
6584 (nbsd_nat_target::thread_alive): Likewise.
6585 (nbsd_nat_target::thread_name): Likewise.
6586 (nbsd_add_threads): Likewise.
6587 (update_thread_list::post_attach): Likewise.
6588 (nbsd_nat_target::update_thread_list): Likewise.
6589 (post_attach::pid_to_str): Likewise.
6590
6ee448cc
TT
65912020-04-06 Tom Tromey <tromey@adacore.com>
6592
6593 * ada-valprint.c (print_variant_part): Extract the variant field.
6594 (print_field_values): Use the field as the outer value when
6595 recursing.
6596
dea34e8c
TT
65972020-04-06 Tom Tromey <tromey@adacore.com>
6598
6599 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
6600 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
6601 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
6602 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
6603 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
6604
93689ce9
TT
66052020-04-06 Tom Tromey <tromey@adacore.com>
6606
6607 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
6608 TYPE_CODE_ERROR.
6609
79743962
KR
66102020-04-06 Kamil Rytarowski <n54@gmx.com>
6611
6612 * nbsd-tdep.c: Include "gdbarch.h".
6613 Define enum with NetBSD signal numbers.
6614 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
6615 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
6616 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
6617 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
6618 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
6619 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
6620 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
6621 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
6622 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
6623 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
6624 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
6625 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
6626
9e7c9a03
HD
66272020-04-03 Hannes Domani <ssbssa@yahoo.de>
6628
6629 PR gdb/25325
6630 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
6631
d9e49b61
TT
66322020-04-03 Tom Tromey <tromey@adacore.com>
6633
6634 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
6635 Read constant block.
6636
e0fc5c3f
SM
66372020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6638
6639 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
6640 (gdb_bfd_get_full_section_contents): New declaration.
6641 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
6642 * windows-tdep.c (is_linked_with_cygwin_dll): Use
6643 gdb_bfd_get_full_section_contents.
6644
e2ff18a0
SM
66452020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6646
6647 * exec.c (build_section_table): Replace internal_error with
6648 gdb_assert.
6649 (section_table_xfer_memory_partial): Likewise.
6650 * mdebugread.c (parse_partial_symbols): Likewise.
6651 * psymtab.c (lookup_partial_symbol): Likewise.
6652 * utils.c (wrap_here): Likewise.
6653
0830d301
TT
66542020-04-02 Tom Tromey <tromey@adacore.com>
6655
6656 * f-lang.c (build_fortran_types): Use arch_type to initialize
6657 builtin_complex_s32 in the TYPE_CODE_ERROR case.
6658
e7da7f8f
TT
66592020-04-02 Tom Tromey <tromey@adacore.com>
6660
6661 * dwarf2/read.c (partial_die_info::read): Do not create a vector
6662 of attributes.
6663
c90d28ac
AB
66642020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
6665 Bernd Edlinger <bernd.edlinger@hotmail.de>
6666 Tom Tromey <tromey@adacore.com>
6667
6668 * buildsym.c (buildsym_compunit::record_line): Remove
6669 deduplication code.
6670
1aa98955
TV
66712020-04-02 Tom de Vries <tdevries@suse.de>
6672
6673 PR ada/24671
6674 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
6675
d3214198
TV
66762020-04-02 Tom de Vries <tdevries@suse.de>
6677
6678 * dwarf2/read.c (dwarf2_gdb_index_functions,
6679 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
6680 NULL.
6681 * psymtab.c (psym_lookup_global_symbol_language): New function.
6682 (psym_functions): Init psym_lookup_global_symbol_language with
6683 psym_lookup_global_symbol_language.
6684 * symfile-debug.c (debug_sym_quick_functions): Init
6685 lookup_global_symbol_language with NULL.
6686 * symfile.c (set_initial_language): Remove fixme comment.
6687 * symfile.h (struct quick_symbol_functions): Add
6688 lookup_global_symbol_language.
6689 * symtab.c (find_quick_global_symbol_language): New function.
6690 (find_main_name): Use find_quick_global_symbol_language.
6691
2836752f
SM
66922020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
6693
6694 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
6695
64dc2d4b
BE
66962020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6697
6698 * buildsym.c (record_line): Fix undefined behavior and preserve
6699 lines at eof.
6700
bbe3dc41
BE
67012020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6702
6703 * buildsym.c (record_line): Fix the resizing condition.
6704
6b4a335b
TT
67052020-04-01 Tom Tromey <tom@tromey.com>
6706
6707 * value.h (value_literal_complex): Add comment.
6708 * valops.c (value_literal_complex): Refer to value.h.
6709
3638a098
TT
67102020-04-01 Tom Tromey <tom@tromey.com>
6711
6712 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
6713 (scalar_type): New rule, from typebase.
6714 (typebase): Use scalar_type. Recognize complex types.
6715 (field_name): Handle FLOAT_KEYWORD.
6716 (ident_tokens): Add _Complex and __complex__.
6717
c34e8714
TT
67182020-04-01 Tom Tromey <tom@tromey.com>
6719
6720 PR exp/25299:
6721 * valarith.c (promotion_type, complex_binop): New functions.
6722 (scalar_binop): Handle complex numbers. Use promotion_type.
6723 (value_pos, value_neg, value_complement): Handle complex numbers.
6724
fa649bb7
TT
67252020-04-01 Tom Tromey <tom@tromey.com>
6726
6727 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
6728 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
6729 (parse_number): Handle complex numbers.
6730
981c08ce
TT
67312020-04-01 Tom Tromey <tom@tromey.com>
6732
6733 * c-valprint.c (c_decorations): Change complex suffix to "i".
6734
4c99290d
TT
67352020-04-01 Tom Tromey <tom@tromey.com>
6736
6737 * valprint.c (generic_value_print_complex): Use accessors.
6738 * value.h (value_real_part, value_imaginary_part): Declare.
6739 * valops.c (value_real_part, value_imaginary_part): New
6740 functions.
6741 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
6742
5b930b45
TT
67432020-04-01 Tom Tromey <tom@tromey.com>
6744
6745 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
6746 (read_range_type): Update.
6747 * mdebugread.c (basic_type): Update.
6748 * go-lang.c (build_go_types): Use init_complex_type.
6749 * gdbtypes.h (struct main_type) <complex_type>: New member.
6750 (init_complex_type): Update.
6751 (arch_complex_type): Don't declare.
6752 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
6753 Make name if none given. Use alloc_type_copy. Look for cached
6754 complex type.
6755 (arch_complex_type): Remove.
6756 (gdbtypes_post_init): Use init_complex_type.
6757 * f-lang.c (build_fortran_types): Use init_complex_type.
6758 * dwarf2/read.c (read_base_type): Update.
6759 * d-lang.c (build_d_types): Use init_complex_type.
6760 * ctfread.c (read_base_type): Update.
6761
53cccef1
TBA
67622020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6763
6764 * infrun.c (stop_all_threads): Update assertion, plus when
6765 stopping threads, take into account that we might be trying
6766 to stop an all-stop target.
6767 (stop_waiting): Call 'stop_all_threads' if there exists a
6768 non-stop target.
6769
a0714d30
TBA
67702020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6771
6772 * target.h (exists_non_stop_target): New function declaration.
6773 * target.c (exists_non_stop_target): New function.
6774
60e22c1e
HD
67752020-04-01 Hannes Domani <ssbssa@yahoo.de>
6776
6777 PR gdb/24789
6778 * eval.c (is_integral_or_integral_reference): New function.
6779 (evaluate_subexp_standard): Allow integer references in
6780 pointer arithmetic.
6781
e139a727
TBA
67822020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6783
6784 * remote.c (remote_target::remote_parse_stop_reply): Remove the
6785 check for no ptid in the stop reply when the target is non-stop.
6786
e0802d59
TT
67872020-04-01 Tom Tromey <tromey@adacore.com>
6788
6789 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
6790 "name" parameter to rvalue reference. Initialize m_name_holder.
6791 <lookup_name_info>: New overloads.
6792 <name>: Return gdb::string_view.
6793 <c_str>: New method.
6794 <make_ignore_params>: Update.
6795 <search_name_hash>: Update.
6796 <language_lookup_name>: Return const char *.
6797 <m_name>: Change type.
6798 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
6799 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
6800 (lookup_name_info::match_any): Update.
6801 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
6802 Update.
6803 * minsyms.c (linkage_name_str): Update.
6804 * language.c (default_symbol_name_matcher): Update.
6805 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
6806 Update.
6807 * ada-lang.c (ada_fold_name): Change parameter to string_view.
6808 (ada_lookup_name_info::ada_lookup_name_info): Update.
6809 (literal_symbol_name_matcher): Update.
6810
8c072cb6
TT
68112020-04-01 Tom Tromey <tromey@adacore.com>
6812
6813 * psymtab.c (psymtab_search_name): Remove function.
6814 (psym_lookup_symbol): Create search name and lookup name here.
6815 (lookup_partial_symbol): Remove "name" parameter; add
6816 lookup_name.
6817 (psym_expand_symtabs_for_function): Update.
6818
6f29a534
TT
68192020-03-31 Joel Jones <joelkevinjones@gmail.com>
6820
6821 PR tui/25597:
6822 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
6823
af62665e
TT
68242020-03-31 Tom Tromey <tromey@adacore.com>
6825
6826 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
6827 memcpy.
6828
d1a89da5
NC
68292020-03-30 Nelson Chu <nelson.chu@sifive.com>
6830
6831 * features/riscv/32bit-csr.xml: Regenerated.
6832 * features/riscv/64bit-csr.xml: Regenerated.
6833
d8af9068
TT
68342020-03-30 Tom Tromey <tromey@adacore.com>
6835
6836 * ada-valprint.c (print_variant_part): Update.
6837 * ada-lang.h (ada_which_variant_applies): Update.
6838 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
6839 outer_valaddr parameters; replace with "outer" value parameter.
6840 (to_fixed_variant_branch_type): Update.
6841
227c0bf4
PFC
68422020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6843
6844 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
6845 <list>. Remove inclusion of observable.h.
6846 (PPC_DEBUG_CURRENT_VERSION): Move up define.
6847 (struct arch_lwp_info): New struct.
6848 (class ppc_linux_dreg_interface): New class.
6849 (struct ppc_linux_process_info): New struct.
6850 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
6851 <low_new_clone, low_forget_process, low_prepare_to_resume>
6852 <copy_thread_dreg_state, mark_thread_stale>
6853 <mark_debug_registers_changed, register_hw_breakpoint>
6854 <clear_hw_breakpoint, register_wp, clear_wp>
6855 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
6856 <num_memory_accesses, get_trigger_type>
6857 <create_watchpoint_request, hwdebug_point_cmp>
6858 <init_arch_lwp_info, get_arch_lwp_info>
6859 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
6860 methods.
6861 <struct ptid_hash>: New inner struct.
6862 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
6863 members.
6864 (saved_dabr_value, hwdebug_info, max_slots_number)
6865 (struct hw_break_tuple, struct thread_points, ppc_threads)
6866 (have_ptrace_hwdebug_interface)
6867 (hwdebug_find_thread_points_by_tid)
6868 (hwdebug_insert_point, hwdebug_remove_point): Remove.
6869 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
6870 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
6871 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
6872 use m_dreg_interface.
6873 (hwdebug_point_cmp): Change to...
6874 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
6875 reference arguments instead of pointers.
6876 (ppc_linux_nat_target::ranged_break_num_registers): Use
6877 m_dreg_interface.
6878 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
6879 m_dreg_interface. Call register_hw_breakpoint.
6880 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
6881 m_dreg_interface. Call clear_hw_breakpoint.
6882 (get_trigger_type): Change to...
6883 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
6884 comment.
6885 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
6886 use m_dreg_interface. Call register_hw_breakpoint.
6887 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
6888 use m_dreg_interface. Call clear_hw_breakpoint.
6889 (can_use_watchpoint_cond_accel): Change to...
6890 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
6891 method. Update comment, use m_dreg_interface and
6892 m_process_info.
6893 (calculate_dvc): Change to...
6894 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
6895 m_dreg_interface.
6896 (num_memory_accesses): Change to...
6897 (ppc_linux_nat_target::num_memory_accesses): ...this method.
6898 (check_condition): Change to...
6899 (ppc_linux_nat_target::check_condition): ...this method.
6900 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
6901 comment, use m_dreg_interface.
6902 (create_watchpoint_request): Change to...
6903 (ppc_linux_nat_target::create_watchpoint_request): ...this
6904 method. Use m_dreg_interface.
6905 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
6906 m_dreg_interface. Call register_hw_breakpoint or register_wp.
6907 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
6908 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
6909 (ppc_linux_nat_target::low_forget_process)
6910 (ppc_linux_nat_target::low_new_fork)
6911 (ppc_linux_nat_target::low_new_clone)
6912 (ppc_linux_nat_target::low_delete_thread)
6913 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
6914 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
6915 only call mark_thread_stale.
6916 (ppc_linux_thread_exit): Remove.
6917 (ppc_linux_nat_target::stopped_data_address): Change to...
6918 (ppc_linux_nat_target::low_stopped_data_address): This. Add
6919 comment, use m_dreg_interface and m_thread_hw_breakpoints.
6920 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
6921 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
6922 comment. Call low_stopped_data_address.
6923 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
6924 m_dreg_interface.
6925 (ppc_linux_nat_target::masked_watch_num_registers): Use
6926 m_dreg_interface.
6927 (ppc_linux_nat_target::copy_thread_dreg_state)
6928 (ppc_linux_nat_target::mark_thread_stale)
6929 (ppc_linux_nat_target::mark_debug_registers_changed)
6930 (ppc_linux_nat_target::register_hw_breakpoint)
6931 (ppc_linux_nat_target::clear_hw_breakpoint)
6932 (ppc_linux_nat_target::register_wp)
6933 (ppc_linux_nat_target::clear_wp)
6934 (ppc_linux_nat_target::init_arch_lwp_info)
6935 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
6936 (_initialize_ppc_linux_nat): Remove observer callback.
6937
4db10d8f
PFC
69382020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6939
6940 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
6941 (ppc_linux_nat_target::auxv_parse)
6942 (ppc_linux_nat_target::read_description)
6943 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
6944 Move up.
6945
1310c1b0
PFC
69462020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6947
6948 * linux-nat.h (low_new_clone): New method.
6949 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
6950
69b037c3
SM
69512020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6952
6953 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
6954 (dbx_expand_psymtab): ... this.
6955 (start_psymtab): Update.
6956 * mdebugread.c (psymtab_to_symtab_1): Rename to...
6957 (mdebug_expand_psymtab): ... this.
6958 (parse_partial_symbols): Update.
6959 (new_psymtab): Update.
6960 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
6961 (xcoff_expand_psymtab): ... this.
6962 (xcoff_start_psymtab): Update.
6963
48993951
SM
69642020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6965
6966 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
6967 <expand_dependencies>: ... this.
6968 * psymtab.c (partial_symtab::read_dependencies): Rename to...
6969 (partial_symtab::expand_dependencies): ... this.
6970 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
6971 Update.
6972 (dwarf2_psymtab::expand_psymtab): Update.
6973 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
6974 * mdebugread.c (psymtab_to_symtab_1): Update.
6975 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
6976
3ad83046
SM
69772020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6978
6979 * psympriv.h (discard_psymtab): Remove.
6980 * dbxread.c (dbx_end_psymtab): Update.
6981 * xcoffread.c (xcoff_end_psymtab): Update.
6982
4d1b9ab6
TT
69832020-03-28 Tom Tromey <tom@tromey.com>
6984
6985 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
6986 comment.
6987
f1749218
TT
69882020-03-28 Tom Tromey <tom@tromey.com>
6989
6990 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
6991
ebea7626
HD
69922020-03-27 Hannes Domani <ssbssa@yahoo.de>
6993
6994 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
6995
a879b4d5
JB
69962020-03-26 John Baldwin <jhb@FreeBSD.org>
6997
6998 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
6999
0826b30a
TT
70002020-03-26 Tom Tromey <tom@tromey.com>
7001
7002 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
7003 (mark_common_block_symbol_computed, read_tag_string_type)
7004 (attr_to_dynamic_prop, read_subrange_type): Update.
7005 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
7006 to be methods on struct attribute.
7007 (skip_one_die, process_imported_unit_die, read_namespace_alias)
7008 (read_call_site_scope, partial_die_info::read)
7009 (partial_die_info::read, lookup_die_type, follow_die_ref):
7010 Update.
7011 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
7012 from dwarf2_get_ref_die_offset.
7013 (attribute::constant_value): New method, from
7014 dwarf2_get_attr_constant_value.
7015 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
7016 Declare method.
7017 <constant_value>: New method.
7018
2b2558bf
TT
70192020-03-26 Tom Tromey <tom@tromey.com>
7020
7021 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
7022 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
7023 (dwarf_type_encoding_name): Move to stringify.c.
7024 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
7025 * dwarf2/stringify.c: New file.
7026 * dwarf2/stringify.h: New file.
7027
eeb64781
TT
70282020-03-26 Tom Tromey <tom@tromey.com>
7029
7030 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
7031 Rewrite.
7032
a39fdb41
TT
70332020-03-26 Tom Tromey <tom@tromey.com>
7034
7035 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
7036 methods.
7037 * dwarf2/read.c (lookup_addr_base): Move to die.h.
7038 (lookup_ranges_base): Likewise.
7039 (read_cutu_die_from_dwo, read_full_die_1): Update.
7040
436c571c
TT
70412020-03-26 Tom Tromey <tom@tromey.com>
7042
7043 * dwarf2/read.c (read_import_statement, read_file_scope)
7044 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
7045 (read_lexical_block_scope, read_call_site_scope)
7046 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
7047 (handle_struct_member_die, process_structure_scope)
7048 (update_enumeration_type_from_children)
7049 (process_enumeration_scope, read_array_type, read_common_block)
7050 (read_namespace, read_module, read_subroutine_type): Update.
7051 (sibling_die): Remove.
7052
052c8bb8
TT
70532020-03-26 Tom Tromey <tom@tromey.com>
7054
7055 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
7056 (build_type_psymtabs_reader, read_structure_type)
7057 (read_enumeration_type, read_full_die_1): Update.
7058 (dwarf2_attr_no_follow): Move to die.h.
7059 * dwarf2/die.h (struct die_info) <attr>: New method.
7060
2b24b6e4
TT
70612020-03-26 Tom Tromey <tom@tromey.com>
7062
7063 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
7064 <base_address>: Now an optional.
7065 (dwarf2_find_base_address, dwarf2_rnglists_process)
7066 (dwarf2_ranges_process, fill_in_loclist_baton)
7067 (dwarf2_symbol_mark_computed): Update.
7068
c2d50fd0
TT
70692020-03-26 Tom Tromey <tom@tromey.com>
7070
7071 * dwarf2/read.c (struct die_info): Move to die.h.
7072 * dwarf2/die.h: New file.
7073
0df7ad3a
TT
70742020-03-26 Tom Tromey <tom@tromey.com>
7075
7076 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
7077 * dwarf2/read.c
7078 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7079 Move to line-header.c.
7080 (read_checked_initial_length_and_offset, read_formatted_entries):
7081 Likewise.
7082 (dwarf_decode_line_header): Split into two.
7083 * dwarf2/line-header.c
7084 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7085 Move from read.c.
7086 (read_checked_initial_length_and_offset, read_formatted_entries):
7087 Likewise.
7088 (dwarf_decode_line_header): New function, split from read.c.
7089
86c0bb4c
TT
70902020-03-26 Tom Tromey <tom@tromey.com>
7091
7092 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
7093 Declare method.
7094 * dwarf2/read.c (read_attribute_value): Update.
7095 (dwarf2_per_objfile::read_line_string): Rename from
7096 read_indirect_line_string.
7097 (read_formatted_entries): Update.
7098
2ef46c2f
TT
70992020-03-26 Tom Tromey <tom@tromey.com>
7100
7101 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
7102 variable.
7103
4f9c1eda
TT
71042020-03-26 Tom Tromey <tom@tromey.com>
7105
7106 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
7107 const.
7108 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
7109 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
7110 parameter const.
7111
5a0e026f
TT
71122020-03-26 Tom Tromey <tom@tromey.com>
7113
7114 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
7115 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
7116 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
7117 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
7118
8844c11b
TT
71192020-03-26 Tom Tromey <tom@tromey.com>
7120
7121 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
7122 file_names_size, file_full_name, file_file_name>: Use const.
7123 <file_name_at, file_names>: Add const overload.
7124 * dwarf2/line-header.c (line_header::file_file_name)
7125 (line_header::file_full_name): Update.
7126
c90ec28a
TT
71272020-03-26 Tom Tromey <tom@tromey.com>
7128
7129 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
7130 (macro_start_file, consume_improper_spaces)
7131 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
7132 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
7133 (dwarf_decode_macros): Move to macro.c.
7134 * dwarf2/macro.c: New file.
7135 * dwarf2/macro.h: New file.
7136 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
7137
4f44ae6c
TT
71382020-03-26 Tom Tromey <tom@tromey.com>
7139
7140 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
7141 method.
7142 * dwarf2/section.c: New method. From
7143 read_indirect_string_at_offset_from.
7144 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
7145 (read_indirect_string_at_offset_from): Move to section.c.
7146 (read_indirect_string_at_offset): Rewrite.
7147 (read_indirect_line_string_at_offset): Remove.
7148 (read_indirect_string, read_indirect_line_string)
7149 (dwarf_decode_macro_bytes): Update.
7150
a0194fa8
TT
71512020-03-26 Tom Tromey <tom@tromey.com>
7152
7153 * dwarf2/section.h (struct dwarf2_section_info)
7154 <overload_complaint>: Declare.
7155 (dwarf2_section_buffer_overflow_complaint): Don't declare.
7156 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
7157 Rename from dwarf2_section_buffer_overflow_complaint.
7158 * dwarf2/read.c (skip_one_die, partial_die_info::read)
7159 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
7160
3d27bbdb
TT
71612020-03-26 Tom Tromey <tom@tromey.com>
7162
7163 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
7164 Declare.
7165 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
7166 Move from read.c.
7167 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
7168 to section.c.
7169
9eac9650
TT
71702020-03-26 Tom Tromey <tom@tromey.com>
7171
7172 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
7173
bf80d710
TT
71742020-03-26 Tom Tromey <tom@tromey.com>
7175
7176 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
7177 "builder".
7178 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
7179 parameter.
7180 (dwarf_decode_macros): Update.
7181
0314b390
TT
71822020-03-26 Tom Tromey <tom@tromey.com>
7183
7184 * dwarf2/read.c (read_attribute_value): Update.
7185 (read_indirect_string_from_dwz): Move to dwz.c; change into
7186 method.
7187 (dwarf_decode_macro_bytes): Update.
7188 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
7189 * dwarf2/dwz.c: New file.
7190 * Makefile.in (COMMON_SFILES): Add dwz.c.
7191
9fda78b6
TT
71922020-03-26 Tom Tromey <tom@tromey.com>
7193
7194 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
7195 * dwarf2/read.c: Add include.
7196 * dwarf2/index-write.c: Add include.
7197 * dwarf2/index-cache.c: Add include.
7198 * dwarf2/dwz.h: New file.
7199
33aa3c10
TT
72002020-03-25 Tom Tromey <tom@tromey.com>
7201
7202 * compile/compile-object-load.c (get_out_value_type): Mention
7203 correct symbol name in error message.
7204
d503b685
HD
72052020-03-25 Hannes Domani <ssbssa@yahoo.de>
7206
7207 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7208
7b1eff95
TV
72092020-03-25 Tom de Vries <tdevries@suse.de>
7210
7211 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
7212 * symmisc.c (dump_symtab_1): Print user and includes fields.
7213 (maintenance_info_symtabs): Same.
7214
dd895392
AB
72152020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
7216
7217 PR gdb/25534
7218 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
7219 (riscv_regcache_cooked_write): New function.
7220 (riscv_push_dummy_call): Use new function.
7221 (riscv_return_value): Likewise.
7222
5ab2fbf1
SM
72232020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
7224
7225 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
7226 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
7227 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
7228 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
7229 * infrun.c (follow_fork): Likewise.
7230 (follow_fork_inferior): Likewise.
7231 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
7232 * linux-nat.h (class linux_nat_target): Likewise.
7233 * remote.c (class remote_target) <follow_fork>: Likewise.
7234 (remote_target::follow_fork): Likewise.
7235 * target-delegates.c: Re-generate.
7236 * target.c (default_follow_fork): Likewise.
7237 (target_follow_fork): Likewise.
7238 * target.h (struct target_ops) <follow_fork>: Likewise.
7239 (target_follow_fork): Likewise.
7240
a64fafb5
TV
72412020-03-24 Tom de Vries <tdevries@suse.de>
7242
7243 * psymtab.c (maintenance_info_psymtabs): Print user field.
7244
fe26d3a3
TT
72452020-03-20 Tom Tromey <tromey@adacore.com>
7246
7247 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
7248 const.
7249 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
7250 const.
7251
c884cc46
SM
72522020-03-20 Simon Marchi <simon.marchi@efficios.com>
7253
7254 * ptrace.m4: Don't check for ptrace declaration.
7255 * config.in: Re-generate.
7256 * configure: Re-generate.
7257 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
7258 not defined.
7259
1ff700c2
KR
72602020-03-20 Kamil Rytarowski <n54@gmx.com>
7261
7262 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
7263 `PTRACE_TYPE_RET'.
7264 * i386-bsd-nat.c (gdb_ptrace): Likewise.
7265 * sparc-nat.c (gdb_ptrace): Likewise.
7266 * x86-bsd-nat.c (gdb_ptrace): Likewise.
7267
f7d4f0b1
TT
72682020-03-20 Tom Tromey <tromey@adacore.com>
7269
7270 * c-exp.y (lex_one_token): Fix assert.
7271
f67210ff
TT
72722020-03-20 Tom Tromey <tromey@adacore.com>
7273
7274 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
7275 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
7276 strncpy call.
7277
1773be9e
TT
72782020-03-20 Tom Tromey <tromey@adacore.com>
7279
7280 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
7281
70304be9
TT
72822020-03-20 Tom Tromey <tromey@adacore.com>
7283
7284 * ada-valprint.c (print_variant_part): Remove parameters; switch
7285 to value-based API.
7286 (print_field_values): Likewise.
7287 (ada_val_print_struct_union): Likewise.
7288 (ada_value_print_1): Update.
7289
9faa006d
KR
72902020-03-20 Kamil Rytarowski <n54@gmx.com>
7291
7292 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
7293 nbsd_nat_target instead of inf_ptrace_target.
7294 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7295 nbsd_nat_target.
7296
4a90f062
KR
72972020-03-20 Kamil Rytarowski <n54@gmx.com>
7298
7299 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
7300 it to the ptrace call.
7301 * (store_registers): Likewise.
7302
73032020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
7304
7305 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
7306 it to the ptrace call.
7307 * (store_registers): Likewise.
7308
2d07da27
LM
73092020-03-19 Luis Machado <luis.machado@linaro.org>
7310
7311 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
7312 valid, fetch vg value from ptrace.
7313
f09db380
KR
73142020-03-19 Kamil Rytarowski <n54@gmx.com>
7315 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
7316 * inf-ptrace.c: Likewise.
7317 * (gdb_ptrace): Add.
7318 * (inf_ptrace_target::resume): Update.
7319 * (inf_ptrace_target::xfer_partial): Likewise.
7320 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
7321 * (inf_ptrace_peek_poke): Update.
7322
fcc7376e
KR
73232020-03-19 Kamil Rytarowski <n54@gmx.com>
7324
7325 * x86-bsd-nat.c (gdb_ptrace): New.
7326 * (x86bsd_dr_set): Add new argument `ptid'.
7327 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
7328 x86bsd_dr_set_addr): Update.
7329
cada5fc9
AB
73302020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7331
7332 * remote.c (remote_target::process_stop_reply): Handle events for
7333 all threads differently.
7334
19a2740f
AB
73352020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7336
7337 * completer.c (completion_tracker::remove_completion): Define new
7338 function.
7339 * completer.h (completion_tracker::remove_completion): Declare new
7340 function.
7341 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
7342 when adding a C++ function symbol.
7343
724fd9ba
AB
73442020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7345
7346 * completer.c (completion_tracker::completion_hash_entry): Define
7347 new class.
7348 (advance_to_filename_complete_word_point): Call
7349 recompute_lowest_common_denominator.
7350 (completion_tracker::completion_tracker): Call discard_completions
7351 to setup the hash table.
7352 (completion_tracker::discard_completions): Allow for being called
7353 from the constructor, pass new equal function, and element deleter
7354 when constructing the hash table. Initialise new class member
7355 variables.
7356 (completion_tracker::maybe_add_completion): Remove use of
7357 m_entries_vec, and store more information into m_entries_hash.
7358 (completion_tracker::recompute_lcd_visitor): New function, most
7359 content taken from...
7360 (completion_tracker::recompute_lowest_common_denominator):
7361 ...here, this now just visits each item in the hash calling the
7362 above visitor.
7363 (completion_tracker::build_completion_result): Remove use of
7364 m_entries_vec, call recompute_lowest_common_denominator.
7365 * completer.h (completion_tracker::have_completions): Remove use
7366 of m_entries_vec.
7367 (completion_tracker::completion_hash_entry): Declare new class.
7368 (completion_tracker::recompute_lowest_common_denominator): Change
7369 function signature.
7370 (completion_tracker::recompute_lcd_visitor): Declare new function.
7371 (completion_tracker::m_entries_vec): Delete.
7372 (completion_tracker::m_entries_hash): Initialize to NULL.
7373 (completion_tracker::m_lowest_common_denominator_valid): New
7374 member variable.
7375 (completion_tracker::m_lowest_common_denominator_max_length): New
7376 member variable.
7377
5a82b8a1
KR
73782020-03-17 Kamil Rytarowski <n54@gmx.com>
7379
7380 * regformats/regdef.h: Put reg in gdb namespace.
7381
fb516a69
KR
73822020-03-17 Kamil Rytarowski <n54@gmx.com>
7383
7384 * i386-bsd-nat.c (gdb_ptrace): New.
7385 * (i386bsd_fetch_inferior_registers,
7386 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7387 * (i386bsd_fetch_inferior_registers,
7388 i386bsd_store_inferior_registers) Use gdb_ptrace.
7389
1c0aa1fb
KR
73902020-03-17 Kamil Rytarowski <n54@gmx.com>
7391
7392 * amd64-bsd-nat.c (gdb_ptrace): New.
7393 * (amd64bsd_fetch_inferior_registers,
7394 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7395 * (amd64bsd_fetch_inferior_registers,
7396 amd64bsd_store_inferior_registers) Use gdb_ptrace.
7397
5ccd2fb7
KR
73982020-03-17 Kamil Rytarowski <n54@gmx.com>
7399
7400 * user-regs.c (user_reg::read): Rename to...
7401 (user_reg::xread): ...this.
7402 * (append_user_reg): Rename argument `read' to `xread'.
7403 * (user_reg_add_builtin): Likewise.
7404 * (user_reg_add): Likewise.
7405 * (value_of_user_reg): Likewise.
7406
2108a63a
KR
74072020-03-17 Kamil Rytarowski <n54@gmx.com>
7408
7409 * sparc-nat.c (gdb_ptrace): New.
7410 * sparc-nat.c (sparc_fetch_inferior_registers)
7411 (sparc_store_inferior_registers) Remove obsolete comment.
7412 * sparc-nat.c (sparc_fetch_inferior_registers)
7413 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
7414 * sparc-nat.c (sparc_fetch_inferior_registers)
7415 (sparc_store_inferior_registers) Use gdb_ptrace.
7416
a225c9a8
KR
74172020-03-17 Kamil Rytarowski <n54@gmx.com>
7418
7419 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
7420 it to the ptrace call.
7421 * sh-nbsd-nat.c (store_registers): Likewise.
7422
98097623
KR
74232020-03-17 Kamil Rytarowski <n54@gmx.com>
7424
7425 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
7426 nbsd_nat_target instead of inf_ptrace_target.
7427 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7428 nbsd_nat_target.
7429
9e38d619
KR
74302020-03-17 Kamil Rytarowski <n54@gmx.com>
7431
7432 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
7433
a2ecbe9f
KR
74342020-03-17 Kamil Rytarowski <n54@gmx.com>
7435
7436 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
7437 <sys/sysctl.h>.
7438 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
7439
58990295
TV
74402020-03-17 Tom de Vries <tdevries@suse.de>
7441
7442 PR gdb/23710
7443 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
7444 fields.
7445 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
7446 fields.
7447 (process_imported_unit_die): Skip import of c++ CUs.
7448
771dd3a8
TT
74492020-03-16 Tom Tromey <tom@tromey.com>
7450
7451 * p-valprint.c (pascal_object_print_value): Initialize
7452 base_value.
7453
817a7585
AK
74542020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
7455 Shahab Vahedi <shahab@synopsys.com>
7456
7457 * Makefile.in: Add arch/arc.o
7458 * configure.tgt: Likewise.
7459 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
7460 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 7461 (arc_read_description): New function to cache target descriptions.
817a7585
AK
7462 * arc-tdep.h (arc_read_description): Add proto type.
7463 * arch/arc.c: New file.
7464 * arch/arc.h: Likewise.
7465 * features/Makefile: Replace old target descriptions with new.
7466 * features/arc-arcompact.c: Remove.
7467 * features/arc-arcompact.xml: Likewise.
7468 * features/arc-v2.c: Likewise
7469 * features/arc-v2.xml: Likewise
7470 * features/arc/aux-arcompact.xml: New file.
7471 * features/arc/aux-v2.xml: Likewise.
7472 * features/arc/core-arcompact.xml: Likewise.
7473 * features/arc/core-v2.xml: Likewise.
7474 * features/arc/aux-arcompact.c: Generate.
7475 * features/arc/aux-v2.c: Likewise.
7476 * features/arc/core-arcompact.c: Likewise.
7477 * features/arc/core-v2.c: Likewise.
7478 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
7479
67430cd0
TT
74802020-03-16 Tom Tromey <tromey@adacore.com>
7481
7482 PR gdb/25663:
7483 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
7484 putting value into bcache.
7485
30efb6c7
SM
74862020-03-16 Simon Marchi <simon.marchi@efficios.com>
7487
7488 PR gdb/21500
7489 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
7490 to...
7491 (amd64_windows_init_abi_common): ... this. Don't set size of
7492 long type.
7493 (amd64_windows_init_abi): New function.
7494 (amd64_cygwin_init_abi): New function.
7495 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
7496 the Cygwin OS ABI.
7497 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
7498 comment.
7499
8db52437
SM
75002020-03-16 Simon Marchi <simon.marchi@efficios.com>
7501
7502 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
7503 * windows-tdep.c (CYGWIN_DLL_NAME): New.
7504 (pe_import_directory_entry): New struct type.
7505 (is_linked_with_cygwin_dll): New function.
7506 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
7507 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
7508 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
7509
5982a56a
SM
75102020-03-16 Simon Marchi <simon.marchi@efficios.com>
7511
7512 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
7513 i386_cygwin_core_osabi_sniffer.
7514
7a1998df
SM
75152020-03-16 Simon Marchi <simon.marchi@efficios.com>
7516
7517 * i386-cygwin-tdep.c: Rename to...
7518 * i386-windows-tdep.c: ... this.
7519 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
7520 i386-windows-tdep.c.
7521 * configure.tgt: Likewise.
7522
053205cc
SM
75232020-03-16 Simon Marchi <simon.marchi@efficios.com>
7524
7525 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
7526 * osabi.c (gdb_osabi_names): Add "Windows".
7527 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
7528 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
7529 (i386_cygwin_core_osabi_sniffer): New function, extracted from
7530 i386_cygwin_osabi_sniffer.
7531 (_initialize_i386_cygwin_tdep): Register OS ABI
7532 GDB_OSABI_WINDOWS for i386.
7533 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
7534 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
7535 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
7536 for x86-64.
7537 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
7538 when the target matches '*-*-mingw*'.
7539
fe4b2ee6
SM
75402020-03-16 Simon Marchi <simon.marchi@efficios.com>
7541
7542 * defs.h (enum gdb_osabi): Move to...
7543 * osabi.h (enum gdb_osabi): ... here.
7544 * gdbarch.sh: Include osabi.h in gdbarch.h.
7545 * gdbarch.h: Re-generate.
7546
cb9b645d
SM
75472020-03-16 Simon Marchi <simon.marchi@efficios.com>
7548
7549 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
7550 function.
7551 (_initialize_amd64_windows_tdep): Register osabi sniffer.
7552
3293bbaf
TT
75532020-03-14 Tom Tromey <tom@tromey.com>
7554
7555 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
7556 for C++.
7557 (c_type_print_modifier): Likewise. Add "language" parameter.
7558 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
7559 (c_type_print_base_1): Update.
7560 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
7561 constants.
7562 * type-stack.c (type_stack::insert): Handle tp_atomic and
7563 tp_restrict.
7564 (type_stack::follow_type_instance_flags): Likewise.
7565 (type_stack::follow_types): Likewise. Merge type-following code.
7566 * c-exp.y (RESTRICT, ATOMIC): New tokens.
7567 (space_identifier, cv_with_space_id)
7568 (const_or_volatile_or_space_identifier_noopt)
7569 (const_or_volatile_or_space_identifier): Remove.
7570 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
7571 rules.
7572 (ptr_operator, typebase): Update.
7573 (enum token_flag) <FLAG_C>: New constant.
7574 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
7575 "_Atomic".
7576 (lex_one_token): Handle FLAG_C.
7577
154151a6
KR
75782020-03-14 Kamil Rytarowski <n54@gmx.com>
7579
7580 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
7581 it to the ptrace call.
7582 * m68k-bsd-nat.c (store_registers): Likewise.
7583
bc107784
KR
75842020-03-14 Kamil Rytarowski <n54@gmx.com>
7585
7586 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
7587 gdb_byte *.
7588 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
7589 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
7590 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
7591
01a80117
KR
75922020-03-14 Kamil Rytarowski <n54@gmx.com>
7593
7594 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
7595 nbsd_nat_target instead of inf_ptrace_target.
7596 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7597 nbsd_nat_target.
7598
f90280ca
KR
75992020-03-14 Kamil Rytarowski <n54@gmx.com>
7600
7601 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
7602 register_t.
7603
6def66f1
KR
76042020-03-14 Kamil Rytarowski <n54@gmx.com>
7605
7606 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
7607 it to the ptrace call.
7608 * alpha-bsd-nat.c (store_registers): Likewise.
7609
66eaca97
KR
76102020-03-14 Kamil Rytarowski <n54@gmx.com>
7611
7612 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
7613 includes.
7614 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
7615 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
7616 fill_fpregset): Likewise.
7617
4fed520b
KR
76182020-03-14 Kamil Rytarowski <n54@gmx.com>
7619
7620 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
7621 nbsd_nat_target instead of inf_ptrace_target.
7622 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7623 nbsd_nat_target.
7624
2190cf06
KR
76252020-03-14 Kamil Rytarowski <n54@gmx.com>
7626
7627 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
7628 register_t.
7629
75c56d3d
KR
76302020-03-14 Kamil Rytarowski <n54@gmx.com>
7631
7632 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
7633 it to the ptrace call.
7634 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
7635 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
7636 * arm-nbsd-nat.c (store_register): Likewise.
7637 * arm-nbsd-nat.c (store_regs): Likewise.
7638 * arm-nbsd-nat.c (store_fp_register): Likewise.
7639 * arm-nbsd-nat.c (store_fp_regs): Likewise.
7640
6018d381
KR
76412020-03-14 Kamil Rytarowski <n54@gmx.com>
7642
7643 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
7644 nbsd_nat_target instead of inf_ptrace_target.
7645 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7646 nbsd_nat_target.
7647
013f99f0
KR
76482020-03-14 Kamil Rytarowski <n54@gmx.com>
7649
7650 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
7651 it to the ptrace call.
7652 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
7653
12753073
KR
76542020-03-14 Kamil Rytarowski <n54@gmx.com>
7655
6227b330
KR
7656 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
7657 it to the ptrace call.
7658 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
7659
76602020-03-14 Kamil Rytarowski <n54@gmx.com>
7661
7662 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
7663 gdb_byte *.
12753073
KR
7664 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
7665
d5be5fa4
KR
76662020-03-14 Kamil Rytarowski <n54@gmx.com>
7667
7668 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
7669 instead of inf_ptrace_target.
7670 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7671 nbsd_nat_target.
7672
8110f842
KR
76732020-03-14 Kamil Rytarowski <n54@gmx.com>
7674
7675 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7676 register_t.
7677
52feded7
KR
76782020-03-14 Kamil Rytarowski <n54@gmx.com>
7679
7680 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7681 register_t.
7682
25567eee
KR
76832020-03-14 Kamil Rytarowski <n54@gmx.com>
7684
7685 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
7686 register_t.
7687
426a9c18
TT
76882020-03-13 Tom Tromey <tom@tromey.com>
7689
7690 * value.h (val_print): Don't declare.
7691 * valprint.h (val_print_array_elements)
7692 (val_print_scalar_formatted, generic_val_print): Don't declare.
7693 * valprint.c (generic_val_print_array): Take a struct value.
7694 (generic_val_print_ptr, generic_val_print_memberptr)
7695 (generic_val_print_bool, generic_val_print_int)
7696 (generic_val_print_char, generic_val_print_complex)
7697 (generic_val_print): Remove.
7698 (generic_value_print): Update.
7699 (do_val_print): Remove unused parameters. Don't call
7700 la_val_print.
7701 (val_print): Remove.
7702 (common_val_print): Update. Don't call value_check_printable.
7703 (val_print_scalar_formatted, val_print_array_elements): Remove.
7704 * rust-lang.c (rust_val_print): Remove.
7705 (rust_language_defn): Update.
7706 * p-valprint.c (pascal_val_print): Remove.
7707 (pascal_value_print_inner): Update.
7708 (pascal_object_print_val_fields, pascal_object_print_val):
7709 Remove.
7710 (pascal_object_print_static_field): Update.
7711 * p-lang.h (pascal_val_print): Don't declare.
7712 * p-lang.c (pascal_language_defn): Update.
7713 * opencl-lang.c (opencl_language_defn): Update.
7714 * objc-lang.c (objc_language_defn): Update.
7715 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
7716 * m2-lang.h (m2_val_print): Don't declare.
7717 * m2-lang.c (m2_language_defn): Update.
7718 * language.h (struct language_defn) <la_val_print>: Remove.
7719 * language.c (unk_lang_value_print_inner): Rename. Change
7720 argument types.
7721 (unknown_language_defn, auto_language_defn): Update.
7722 * go-valprint.c (go_val_print): Remove.
7723 * go-lang.h (go_val_print): Don't declare.
7724 * go-lang.c (go_language_defn): Update.
7725 * f-valprint.c (f_val_print): Remove.
7726 * f-lang.h (f_value_print): Don't declare.
7727 * f-lang.c (f_language_defn): Update.
7728 * d-valprint.c (d_val_print): Remove.
7729 * d-lang.h (d_value_print): Don't declare.
7730 * d-lang.c (d_language_defn): Update.
7731 * cp-valprint.c (cp_print_value_fields)
7732 (cp_print_value_fields_rtti, cp_print_value): Remove.
7733 (cp_print_static_field): Update.
7734 * c-valprint.c (c_val_print_array, c_val_print_ptr)
7735 (c_val_print_struct, c_val_print_union, c_val_print_int)
7736 (c_val_print_memberptr, c_val_print): Remove.
7737 * c-lang.h (c_val_print_array, cp_print_value_fields)
7738 (cp_print_value_fields_rtti): Don't declare.
7739 * c-lang.c (c_language_defn, cplus_language_defn)
7740 (asm_language_defn, minimal_language_defn): Update.
7741 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
7742 (ada_val_print_enum): Take a struct value.
7743 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
7744 (ada_val_print): Remove.
7745 (ada_value_print_1): Update.
7746 (printable_val_type): Remove.
7747 * ada-lang.h (ada_val_print): Don't declare.
7748 * ada-lang.c (ada_language_defn): Update.
7749
42331a1e
TT
77502020-03-13 Tom Tromey <tom@tromey.com>
7751
7752 * valprint.c (do_val_print): Update.
7753 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
7754 a struct value.
7755 (value_to_value_object_no_release): Declare.
7756 * python/py-value.c (value_to_value_object_no_release): New
7757 function.
7758 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
7759 struct value.
7760 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
7761 function.
7762 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
7763 a struct value.
7764 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
7765 Declare.
7766 (gdbscm_apply_val_pretty_printer): Take a struct value.
7767 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
7768 value.
7769 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
7770 value.
7771 * extension-priv.h (struct extension_language_ops)
7772 <apply_val_pretty_printer>: Take a struct value.
7773 * cp-valprint.c (cp_print_value): Create a struct value.
7774 (cp_print_value): Update.
7775
3a916a97
TT
77762020-03-13 Tom Tromey <tom@tromey.com>
7777
7778 * ada-valprint.c (print_field_values): Call common_val_print.
7779
b59eac37
TT
77802020-03-13 Tom Tromey <tom@tromey.com>
7781
7782 * ada-valprint.c (val_print_packed_array_elements): Remove
7783 bitoffset and val parameters. Call common_val_print.
7784 (ada_val_print_string): Remove offset, address, and original_value
7785 parameters.
7786 (ada_val_print_array): Update.
7787 (ada_value_print_array): New function.
7788 (ada_value_print_1): Call it.
7789
03371129
TT
77902020-03-13 Tom Tromey <tom@tromey.com>
7791
7792 * ada-valprint.c (ada_value_print): Use common_val_print.
7793
2e088f8b
TT
77942020-03-13 Tom Tromey <tom@tromey.com>
7795
7796 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
7797
39ef85a8
TT
77982020-03-13 Tom Tromey <tom@tromey.com>
7799
7800 * ada-valprint.c (ada_value_print_num): New function.
7801 (ada_value_print_1): Use it.
7802
b9fa6e07
TT
78032020-03-13 Tom Tromey <tom@tromey.com>
7804
7805 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
7806
416595d6
TT
78072020-03-13 Tom Tromey <tom@tromey.com>
7808
7809 * ada-valprint.c (ada_value_print_ptr): New function.
7810 (ada_value_print_1): Use it.
7811
5b5e15ec
TT
78122020-03-13 Tom Tromey <tom@tromey.com>
7813
7814 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
7815 call common_val_print.
7816 (ada_val_print_1): Update.
7817 (ada_value_print_1): New function.
7818 (ada_value_print_inner): Rewrite.
7819
fbf54e75
TT
78202020-03-13 Tom Tromey <tom@tromey.com>
7821
7822 * cp-valprint.c (cp_print_value_fields): Update.
7823 (cp_print_value): New function.
7824
64b653ca
TT
78252020-03-13 Tom Tromey <tom@tromey.com>
7826
7827 * m2-valprint.c (m2_value_print_inner): Use
7828 cp_print_value_fields.
7829 * cp-valprint.c (cp_print_value_fields): New function.
7830 * c-valprint.c (c_value_print_struct): New function.
7831 (c_value_print_inner): Use c_value_print_struct.
7832 * c-lang.h (cp_print_value_fields): Declare.
7833
6999f067
TT
78342020-03-13 Tom Tromey <tom@tromey.com>
7835
7836 * c-valprint.c (c_value_print_array): New function.
7837 (c_value_print_inner): Use it.
7838
ce80b8bd
TT
78392020-03-13 Tom Tromey <tom@tromey.com>
7840
7841 * c-valprint.c (c_value_print_memberptr): New function.
7842 (c_value_print_inner): Use it.
7843
2faac269
TT
78442020-03-13 Tom Tromey <tom@tromey.com>
7845
7846 * c-valprint.c (c_value_print_int): New function.
7847 (c_value_print_inner): Use it.
7848
da3e2c29
TT
78492020-03-13 Tom Tromey <tom@tromey.com>
7850
7851 * c-valprint.c (c_value_print_ptr): New function.
7852 (c_value_print_inner): Use it.
7853
50836231
TT
78542020-03-13 Tom Tromey <tom@tromey.com>
7855
7856 * c-valprint.c (c_value_print_inner): Rewrite.
7857
4f412b6e
TT
78582020-03-13 Tom Tromey <tom@tromey.com>
7859
7860 * valprint.c (generic_value_print_complex): New function.
7861 (generic_value_print): Use it.
7862
f5354008
TT
78632020-03-13 Tom Tromey <tom@tromey.com>
7864
7865 * valprint.c (generic_val_print_float): Don't call
7866 val_print_scalar_formatted.
7867 (generic_val_print, generic_value_print): Update.
7868
3eec3b05
TT
78692020-03-13 Tom Tromey <tom@tromey.com>
7870
7871 * valprint.c (generic_value_print_char): New function
7872 (generic_value_print): Use it.
7873
fdddfccb
TT
78742020-03-13 Tom Tromey <tom@tromey.com>
7875
7876 * valprint.c (generic_value_print_int): New function.
7877 (generic_value_print): Use it.
7878
6dde7521
TT
78792020-03-13 Tom Tromey <tom@tromey.com>
7880
7881 * valprint.c (generic_value_print_bool): New function.
7882 (generic_value_print): Use it.
7883
4112d2e6
TT
78842020-03-13 Tom Tromey <tom@tromey.com>
7885
7886 * valprint.c (generic_val_print_func): Simplify.
7887 (generic_val_print, generic_value_print): Update.
7888
65786af6
TT
78892020-03-13 Tom Tromey <tom@tromey.com>
7890
7891 * valprint.c (generic_val_print_flags): Remove.
7892 (generic_val_print, generic_value_print): Update.
7893 (val_print_type_code_flags): Add original_value parameter.
7894
40f3ce18
TT
78952020-03-13 Tom Tromey <tom@tromey.com>
7896
7897 * valprint.c (generic_val_print): Update.
7898 (generic_value_print): Update.
7899 * valprint.c (generic_val_print_enum): Don't call
7900 val_print_scalar_formatted.
7901
2a5b130b
TT
79022020-03-13 Tom Tromey <tom@tromey.com>
7903
7904 * valprint.c (generic_value_print): Call generic_value_print_ptr.
7905 * valprint.c (generic_value_print_ptr): New function.
7906
abc66ce9
TT
79072020-03-13 Tom Tromey <tom@tromey.com>
7908
7909 * valprint.c (generic_value_print): Rewrite.
7910
07a32858
TT
79112020-03-13 Tom Tromey <tom@tromey.com>
7912
7913 * p-valprint.c (pascal_object_print_value_fields)
7914 (pascal_object_print_value): New functions.
7915
64d64d3a
TT
79162020-03-13 Tom Tromey <tom@tromey.com>
7917
7918 * p-valprint.c (pascal_value_print_inner): Rewrite.
7919
6a95a1f5
TT
79202020-03-13 Tom Tromey <tom@tromey.com>
7921
7922 * f-valprint.c (f_value_print_innner): Rewrite.
7923
59fcdac6
TT
79242020-03-13 Tom Tromey <tom@tromey.com>
7925
7926 * m2-valprint.c (m2_print_unbounded_array): New overload.
7927 (m2_print_unbounded_array): Update.
7928 (m2_print_array_contents): Take a struct value.
7929 (m2_value_print_inner): Rewrite.
7930
d133c3e1
TT
79312020-03-13 Tom Tromey <tom@tromey.com>
7932
7933 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
7934 (d_value_print_inner): New function.
7935 * d-lang.h (d_value_print_inner): Declare.
7936 * d-lang.c (d_language_defn): Use d_value_print_inner.
7937
23b0f06b
TT
79382020-03-13 Tom Tromey <tom@tromey.com>
7939
7940 * go-valprint.c (go_value_print_inner): New function.
7941 * go-lang.h (go_value_print_inner): Declare.
7942 * go-lang.c (go_language_defn): Use go_value_print_inner.
7943
5f56f7cb
TT
79442020-03-13 Tom Tromey <tom@tromey.com>
7945
7946 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
7947 API.
7948 (rust_val_print): Rewrite.
7949 (rust_value_print_inner): New function, from rust_val_print.
7950 (rust_language_defn): Use rust_value_print_inner.
7951
26792ee0
TT
79522020-03-13 Tom Tromey <tom@tromey.com>
7953
7954 * ada-valprint.c (ada_value_print_inner): New function.
7955 * ada-lang.h (ada_value_print_inner): Declare.
7956 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
7957
24051bbe
TT
79582020-03-13 Tom Tromey <tom@tromey.com>
7959
7960 * f-valprint.c (f_value_print_innner): New function.
7961 * f-lang.h (f_value_print_innner): Declare.
7962 * f-lang.c (f_language_defn): Use f_value_print_innner.
7963
c0941be6
TT
79642020-03-13 Tom Tromey <tom@tromey.com>
7965
7966 * p-valprint.c (pascal_value_print_inner): New function.
7967 * p-lang.h (pascal_value_print_inner): Declare.
7968 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
7969
62c4663d
TT
79702020-03-13 Tom Tromey <tom@tromey.com>
7971
7972 * m2-valprint.c (m2_value_print_inner): New function.
7973 * m2-lang.h (m2_value_print_inner): Declare.
7974 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
7975
62182190
TT
79762020-03-13 Tom Tromey <tom@tromey.com>
7977
7978 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
7979 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
7980 * c-valprint.c (c_value_print_inner): New function.
7981 * c-lang.h (c_value_print_inner): Declare.
7982 * c-lang.c (c_language_defn, cplus_language_defn)
7983 (asm_language_defn, minimal_language_defn): Use
7984 c_value_print_inner.
7985
1e592a8a
TT
79862020-03-13 Tom Tromey <tom@tromey.com>
7987
7988 * p-valprint.c (pascal_object_print_value_fields): Now static.
7989 * p-lang.h (pascal_object_print_value_fields): Don't declare.
7990
7fe471e9
TT
79912020-03-13 Tom Tromey <tom@tromey.com>
7992
7993 * c-valprint.c (c_val_print_array): Simplify.
7994
d121c6ce
TT
79952020-03-13 Tom Tromey <tom@tromey.com>
7996
7997 * valprint.c (value_print_array_elements): New function.
7998 * valprint.h (value_print_array_elements): Declare.
7999
4dba70ee
TT
80002020-03-13 Tom Tromey <tom@tromey.com>
8001
8002 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
8003 * mips-tdep.c (mips_print_register): Use
8004 value_print_scalar_formatted.
8005
4f9ae810
TT
80062020-03-13 Tom Tromey <tom@tromey.com>
8007
8008 * valprint.h (value_print_scalar_formatted): Declare.
8009 * valprint.c (value_print_scalar_formatted): New function.
8010
156bfec9
TT
80112020-03-13 Tom Tromey <tom@tromey.com>
8012
8013 * valprint.h (generic_value_print): Declare.
8014 * valprint.c (generic_value_print): New function.
8015
2b4e573d
TT
80162020-03-13 Tom Tromey <tom@tromey.com>
8017
8018 * valprint.c (do_val_print): Call la_value_print_inner, if
8019 available.
8020 * rust-lang.c (rust_language_defn): Update.
8021 * p-lang.c (pascal_language_defn): Update.
8022 * opencl-lang.c (opencl_language_defn): Update.
8023 * objc-lang.c (objc_language_defn): Update.
8024 * m2-lang.c (m2_language_defn): Update.
8025 * language.h (struct language_defn) <la_value_print_inner>: New
8026 member.
8027 * language.c (unknown_language_defn, auto_language_defn): Update.
8028 * go-lang.c (go_language_defn): Update.
8029 * f-lang.c (f_language_defn): Update.
8030 * d-lang.c (d_language_defn): Update.
8031 * c-lang.c (c_language_defn, cplus_language_defn)
8032 (asm_language_defn, minimal_language_defn): Update.
8033 * ada-lang.c (ada_language_defn): Update.
8034
a1f6a07c
TT
80352020-03-13 Tom Tromey <tom@tromey.com>
8036
8037 * c-valprint.c (c_value_print): Use common_val_print.
8038
410cf315
TT
80392020-03-13 Tom Tromey <tom@tromey.com>
8040
8041 * cp-valprint.c (cp_print_static_field): Use common_val_print.
8042
72a45c93
TT
80432020-03-13 Tom Tromey <tom@tromey.com>
8044
8045 * f-valprint.c (f77_print_array_1, f_val_print): Use
8046 common_val_print.
8047
040f66bd
TT
80482020-03-13 Tom Tromey <tom@tromey.com>
8049
8050 * riscv-tdep.c (riscv_print_one_register_info): Use
8051 common_val_print.
8052
a6e05a6c
TT
80532020-03-13 Tom Tromey <tom@tromey.com>
8054
8055 * mi/mi-main.c (output_register): Use common_val_print.
8056
3444c526
TT
80572020-03-13 Tom Tromey <tom@tromey.com>
8058
8059 * infcmd.c (default_print_one_register_info): Use
8060 common_val_print.
8061
c2a44efe
TT
80622020-03-13 Tom Tromey <tom@tromey.com>
8063
8064 * valprint.h (common_val_print_checked): Declare.
8065 * valprint.c (common_val_print_checked): New function.
8066 * stack.c (print_frame_arg): Use common_val_print_checked.
8067
b0c26e99
TT
80682020-03-13 Tom Tromey <tom@tromey.com>
8069
8070 * valprint.c (do_val_print): New function, from val_print.
8071 (val_print): Use do_val_print.
8072 (common_val_print): Use do_val_print.
8073
ce3acbe9
TT
80742020-03-13 Tom Tromey <tom@tromey.com>
8075
8076 * valprint.c (value_print): Use scoped_value_mark.
8077
96c7f873
TV
80782020-03-13 Tom de Vries <tdevries@suse.de>
8079
8080 PR symtab/25646
8081 * psymtab.c (partial_symtab::partial_symtab): Don't set
8082 globals_offset and statics_offset. Push element onto
8083 current_global_psymbols and current_static_psymbols stacks.
8084 (concat): New function.
8085 (end_psymtab_common): Set globals_offset and statics_offset. Pop
8086 element from current_global_psymbols and current_static_psymbols
8087 stacks. Concat popped elements to global_psymbols and
8088 static_symbols.
8089 (add_psymbol_to_list): Use current_global_psymbols and
8090 current_static_psymbols stacks.
8091 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
8092 current_static_psymbols fields.
8093
6ba0a321
CB
80942020-03-12 Christian Biesinger <cbiesinger@google.com>
8095
8096 * corelow.c (sniff_core_bfd): Remove.
8097 (class core_target) <m_core_vec>: Remove.
8098 (core_target::core_target): Update.
8099 (core_file_fns): Remove.
8100 (deprecated_add_core_fns): Remove.
8101 (default_core_sniffer): Remove.
8102 (sniff_core_bfd): Remove.
8103 (default_check_format): Remove.
8104 (gdb_check_format): Remove.
8105 (core_target_open): Update.
8106 (core_target::get_core_register_section): Update.
8107 (get_core_registers_cb): Update.
8108 (core_target::fetch_registers): Update.
8109 * gdbcore.h (struct core_fns): Remove.
8110 (deprecated_add_core_fns): Remove.
8111 (default_core_sniffer): Remove.
8112 (default_check_format): Remove.
8113
227031b2
TT
81142020-03-12 Tom Tromey <tom@tromey.com>
8115
8116 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
8117 CORE_ADDR.
8118 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
8119
53807e9f
TT
81202020-03-12 Tom Tromey <tom@tromey.com>
8121
8122 * remote.c (remote_target::download_tracepoint)
8123 (remote_target::enable_tracepoint)
8124 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
8125 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
8126 sprintf_vma.
8127
64f25102
TT
81282020-03-12 Tom Tromey <tom@tromey.com>
8129
8130 * symfile-mem.c: Update CORE_ADDR size assert.
8131
272cd5a3
SM
81322020-03-12 Simon Marchi <simon.marchi@efficios.com>
8133
8134 * selftest.m4: Move to gdbsupport/.
8135 * acinclude.m4: Update path to selftest.m4.
8136
74cd3f9d
SM
81372020-03-12 Simon Marchi <simon.marchi@efficios.com>
8138
8139 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
8140 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
8141 gdbarch-selfselftests.c and selftest-arch.c.
8142 (SUBDIR_UNITTESTS_OBS): Rename to...
8143 (SELFTESTS_OBS): ... this.
8144 (COMMON_SFILES): Remove disasm-selftests.c and
8145 gdbarch-selftests.c.
8146 * configure.ac: Don't add selftest-arch.{c,o} to
8147 CONFIG_{SRCS,OBS}.
8148 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
8149 preprocessor conditions.
8150
db6878ac
SM
81512020-03-12 Simon Marchi <simon.marchi@efficios.com>
8152
8153 * configure.ac: Don't source bfd/development.sh.
8154 * selftest.m4: Modify comment.
8155 * configure: Re-generate.
8156
4d696a5c
SM
81572020-03-12 Simon Marchi <simon.marchi@efficios.com>
8158
8159 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
8160 not "true" or "false".
8161 * configure: Re-generate.
8162
8dd8e1c7
CB
81632020-03-12 Christian Biesinger <cbiesinger@google.com>
8164
8165 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
8166 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
8167 renamed to arm_nbsd_supply_gregset.
8168 (fetch_register): Update to call arm_nbsd_supply_gregset.
8169 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
8170 (arm_netbsd_nat_target::fetch_registers): Update.
8171 (fetch_elfcore_registers): Removed.
8172 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
8173 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
8174 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
8175 not require NetBSD system headers.
8176 (arm_nbsd_regset): New struct.
8177 (arm_nbsd_iterate_over_regset_sections): New function.
8178 (arm_netbsd_init_abi_common): Updated to call
8179 set_gdbarch_iterate_over_regset_sections.
8180 * arm-nbsd-tdep.h: New file.
8181
dd69bf7a
KB
81822020-03-11 Kevin Buettner <kevinb@redhat.com>
8183
8184 * symtab.c (find_pc_sect_line): Add check which prevents infinite
8185 recursion.
8186
a0761e34
SM
81872020-03-11 Simon Marchi <simon.marchi@efficios.com>
8188
8189 * configure: Re-generate.
8190
e7a82140
TT
81912020-03-11 Tom Tromey <tromey@adacore.com>
8192
8193 * ada-typeprint.c (print_choices): Fix comment.
8194
dcc050c8
AB
81952020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
8196
8197 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
8198 previous item in the list, when the list has no items.
8199
1c33af77
TV
82002020-03-11 Tom de Vries <tdevries@suse.de>
8201
8202 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
8203 PROP_LOCLIST handling code.
8204
8c95582d
AB
82052020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
8206
8207 * buildsym-legacy.c (record_line): Pass extra parameter to
8208 record_line.
8209 * buildsym.c (buildsym_compunit::record_line): Take an extra
8210 parameter, reduce duplication in the line table, and record the
8211 is_stmt flag in the line table.
8212 * buildsym.h (buildsym_compunit::record_line): Add extra
8213 parameter.
8214 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
8215 non-statement lines.
8216 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
8217 this to the symtab builder.
8218 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
8219 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
8220 through to dwarf_record_line_1.
8221 * infrun.c (process_event_stop_test): When stepping, don't stop at
8222 a non-statement instruction, and only refresh the step info when
8223 we land in the middle of a line's range. Also add an extra
8224 comment.
8225 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
8226 field.
8227 * record-btrace.c (btrace_find_line_range): Only record lines
8228 marked as is-statement.
8229 * stack.c (frame_show_address): Show the frame address if we are
8230 in a non-statement sal.
8231 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
8232 (maintenance_print_one_line_table): Print a header for the is_stmt
8233 column, and include is_stmt information in the output.
8234 * symtab.c (find_pc_sect_line): Find lines marked as statements in
8235 preference to non-statements.
8236 (find_pcs_for_symtab_line): Prefer is-statement entries.
8237 (find_line_common): Likewise.
8238 * symtab.h (struct linetable_entry): Add is_stmt field.
8239 (struct symtab_and_line): Likewise.
8240 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
8241 arranging the line table.
8242
e4003a34
TV
82432020-03-07 Tom de Vries <tdevries@suse.de>
8244
8245 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
8246 DIE.
8247
e8932576
TT
82482020-03-07 Tom Tromey <tom@tromey.com>
8249
8250 * valops.c (value_literal_complex): Remove obsolete comment.
8251 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
8252 comment.
8253
29734269
SM
82542020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
8255
8256 * infrun.h: Forward-declare thread_info.
8257 (set_step_info): Add thread_info parameter, add doc.
8258 * infrun.c (set_step_info): Add thread_info parameter, move doc
8259 to header.
8260 * infrun.c (process_event_stop_test): Pass thread to
8261 set_step_info call.
8262 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
8263 set_step_info.
8264 (prepare_one_step): Add thread_info parameter, pass it to
8265 set_step_frame and prepare_one_step (recursive) call.
8266 (step_1): Pass thread to prepare_one_step call.
8267 (step_command_fsm::should_stop): Pass thread to
8268 prepare_one_step.
8269 (until_next_fsm): Pass thread to set_step_frame call.
8270 (finish_command): Pass thread to set_step_info call.
8271
b7d64b29
HD
82722020-03-06 Hannes Domani <ssbssa@yahoo.de>
8273
8274 * windows-tdep.c (windows_solib_create_inferior_hook):
8275 Check if inferior is running.
8276
09f2921c
TV
82772020-03-06 Tom de Vries <tdevries@suse.de>
8278
8279 * NEWS: Fix "the the".
8280 * ctfread.c: Same.
8281
fd760e79
TV
82822020-03-06 Tom de Vries <tdevries@suse.de>
8283
8284 * psymtab.c (psymtab_to_symtab): Don't print "done.".
8285
20ea4a60
AB
82862020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8287
8288 * .dir-locals.el: Add a comment referencing the other copies of
8289 this file.
8290
0afbabf0
JB
82912020-03-05 John Baldwin <jhb@FreeBSD.org>
8292
8293 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
8294 psargs.
8295
842806cb
TBA
82962020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8297
8298 * .gitattributes: New file.
8299
be1e3d3e
TT
83002020-03-04 Tom Tromey <tom@tromey.com>
8301
8302 * symmisc.c (print_symbol_bcache_statistics)
8303 (print_objfile_statistics): Update.
8304 * symfile.c (allocate_symtab): Use intern.
8305 * psymtab.c (partial_symtab::partial_symtab): Use intern.
8306 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
8307 macro_cache>: Remove.
8308 <string_cache>: New member.
8309 (struct objfile) <intern>: New methods.
8310 * elfread.c (elf_symtab_read): Use intern.
8311 * dwarf2/read.c (fixup_go_packaging): Intern package name.
8312 (dwarf2_compute_name, dwarf2_physname)
8313 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
8314 names.
8315 (guess_partial_die_structure_name): Update.
8316 (partial_die_info::fixup): Intern name.
8317 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
8318 name.
8319 (dwarf2_name): Intern name. Update.
8320 * buildsym.c (buildsym_compunit::get_macro_table): Use
8321 string_cache.
8322
4e7625fd
TT
83232020-03-04 Tom Tromey <tom@tromey.com>
8324
8325 * jit.c (bfd_open_from_target_memory): Make "target" const.
8326 * corefile.c (gnutarget): Now const.
8327 * gdbcore.h (gnutarget): Now const.
8328
46f9f931
HD
83292020-03-04 Hannes Domani <ssbssa@yahoo.de>
8330
8331 * NEWS: Mention support for WOW64 processes.
8332 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
8333 (amd64_windows_segment_register_p): Remove static.
8334 (_initialize_amd64_windows_nat): Update.
8335 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
8336 * i386-windows-nat.c (context_offset): Update.
8337 (i386_mappings): Rename and remove static.
8338 (i386_windows_segment_register_p): Remove static.
8339 (_initialize_i386_windows_nat): Update.
8340 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
8341 (STATUS_WX86_SINGLE_STEP): New macro.
8342 (EnumProcessModulesEx): New macro.
8343 (Wow64SuspendThread): New macro.
8344 (Wow64GetThreadContext): New macro.
8345 (Wow64SetThreadContext): New macro.
8346 (Wow64GetThreadSelectorEntry): New macro.
8347 (windows_set_context_register_offsets): Add static.
8348 (windows_set_segment_register_p): Likewise.
8349 (windows_add_thread): Adapt for WOW64 processes.
8350 (windows_fetch_one_register): Likewise.
8351 (windows_nat_target::fetch_registers): Likewise.
8352 (windows_store_one_register): Likewise.
8353 (display_selector): Likewise.
8354 (display_selectors): Likewise.
8355 (handle_exception): Likewise.
8356 (windows_continue): Likewise.
8357 (windows_nat_target::resume): Likewise.
8358 (windows_add_all_dlls): Likewise.
8359 (do_initial_windows_stuff): Likewise.
8360 (windows_nat_target::attach): Likewise.
8361 (windows_get_exec_module_filename): Likewise.
8362 (windows_nat_target::create_inferior): Likewise.
8363 (windows_xfer_siginfo): Likewise.
8364 (_initialize_loadable): Initialize Wow64SuspendThread,
8365 Wow64GetThreadContext, Wow64SetThreadContext,
8366 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
8367 * windows-nat.h (windows_set_context_register_offsets):
8368 Remove declaration.
8369 (windows_set_segment_register_p): Likewise.
8370 (i386_windows_segment_register_p): Add declaration.
8371 (amd64_windows_segment_register_p): Likewise.
8372
440cf44e
LM
83732020-03-04 Luis Machado <luis.machado@linaro.org>
8374
8375 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
8376 in "info registers" for AArch64/ARM.
8377
8378 The change caused "info registers" to not print GPR's.
8379
8380 gdb/ChangeLog:
8381
8382 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
8383
8384 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
8385 when reg->group is empty and reggroup is not.
8386
1009d92f
TT
83872020-03-03 Tom Tromey <tromey@adacore.com>
8388
8389 * dwarf2/frame.c (struct dwarf2_frame_cache)
8390 <checked_tailcall_bottom, entry_cfa_sp_offset,
8391 entry_cfa_sp_offset_p>: Remove members.
8392 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
8393 (dwarf2_frame_prev_register): Don't call
8394 dwarf2_tailcall_sniffer_first.
8395 (dwarf2_append_unwinders): Don't append tailcall unwinder.
8396 * frame-unwind.c (add_unwinder): New fuction.
8397 (frame_unwind_init): Use it. Add tailcall unwinder.
8398
5e5d66b6
AB
83992020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
8400 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8401
8402 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
8403 value should be printed as true.
8404
584cf46d
HD
84052020-03-03 Hannes Domani <ssbssa@yahoo.de>
8406
8407 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
8408 (windows_init_abi): Set and use windows_so_ops.
8409
7b973adc
SDJ
84102020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
8411
8412 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
8413 when verifying if dealing with a convenience variable.
8414
bb7b70ab
LM
84152020-03-03 Luis Machado <luis.machado@linaro.org>
8416
8417 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
8418
9822cb57
SM
84192020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
8420
8421 * infrun.c (gdbarch_supports_displaced_stepping): New.
8422 (use_displaced_stepping): Break up conditions in smaller pieces.
8423 Use gdbarch_supports_displaced_stepping.
8424 (displaced_step_prepare_throw): Use
8425 gdbarch_supports_displaced_stepping.
8426
63e163f2
AB
84272020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8428
8429 * NEWS: Mention new behaviour of the history filename.
8430 * top.c (write_history_p): Add comment.
8431 (show_write_history_p): Add header comment, give a different
8432 message when history writing is on, but the history filename is
8433 empty.
8434 (history_filename): Add comment.
8435 (history_filename_empty): New function.
8436 (show_history_filename): Add header comment, give a different
8437 message when the filename is empty.
8438 (init_history): Compare history_filename against nullptr, and only
8439 read history if the filename is not empty.
8440 (set_history_filename): Add header comment, and only make
8441 non-empty filenames absolute.
8442 (init_main): Make the filename argument to 'set history filename'
8443 optional.
8444
81b86b97
CB
84452020-03-02 Christian Biesinger <cbiesinger@google.com>
8446
8447 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
8448 (arm_supply_vfpregset): ...this, and update to use VFP registers.
8449 (fetch_fp_register): Update.
8450 (fetch_fp_regs): Update.
8451 (store_fp_register): Update.
8452 (store_fp_regs): Update.
8453 (arm_netbsd_nat_target::read_description): New function.
8454 (fetch_elfcore_registers): Update.
8455
24ed6739
AB
84562020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8457
8458 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
8459 general_thread if the stop reply is missing a thread-id.
8460 (remote_target::process_stop_reply): Use the first non-exited
8461 thread if the target didn't pass a thread-id.
8462 * infrun.c (do_target_wait): Move call to
8463 switch_to_inferior_no_thread to ....
8464 (do_target_wait_1): ... here.
8465
a84bb2a0
JT
84662020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
8467
8468 * debuginfod-support.c: Include defs.h first.
8469
658dadf0
TV
84702020-02-28 Tom de Vries <tdevries@suse.de>
8471
8472 * symfile.c (set_initial_language): Use default language for lookup.
8473
4ebe4877
SM
84742020-02-28 Simon Marchi <simon.marchi@efficios.com>
8475
8476 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
8477 reader variable, pass `this` to read_cutu_die_from_dwo.
8478
e5da1139
AM
84792020-02-27 Aaron Merey <amerey@redhat.com>
8480
8481 * source.c (open_source_file): Check for nullptr when computing
8482 srcpath.
8483
317f7127
TT
84842020-02-27 Tom Tromey <tromey@adacore.com>
8485
8486 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
8487 member.
8488 (dwarf2_add_field): Don't update nfields.
8489 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
8490
3104d9ee
AB
84912020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8492
8493 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
8494 abs.
8495
b83470bf
TT
84962020-02-26 Tom Tromey <tom@tromey.com>
8497
8498 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
8499 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
8500 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
8501 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
8502 per_cu_data.
8503
edfe0a0c
TT
85042020-02-26 Tom Tromey <tom@tromey.com>
8505
8506 * dwarf2/index-write.c (psym_index_map): Change type.
8507 (add_address_entry_worker, write_one_signatured_type)
8508 (recursively_count_psymbols, recursively_write_psymbols)
8509 (class debug_names, psyms_seen_size, write_gdbindex)
8510 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
8511
0d79cdc4
AM
85122020-02-26 Aaron Merey <amerey@redhat.com>
8513
8514 * Makefile.in: Handle optional debuginfod support.
8515 * NEWS: Update.
8516 * README: Add --with-debuginfod summary.
8517 * config.in: Regenerate.
8518 * configure: Regenerate.
8519 * configure.ac: Handle optional debuginfod support.
8520 * debuginfod-support.c: debuginfod helper functions.
8521 * debuginfod-support.h: Ditto.
8522 * doc/gdb.texinfo: Add --with-debuginfod to configure options
8523 summary.
8524 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
8525 when a dwz file cannot be found.
8526 * elfread.c (elf_symfile_read): Query debuginfod servers when a
8527 debuginfo file cannot be found.
8528 * source.c (open_source_file): Query debuginfod servers when a
8529 source file cannot be found.
8530 * top.c (print_gdb_configuration): Include
8531 --{with,without}-debuginfod in the output.
8532
b65ce565
JG
85332020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
8534
8535 * thread.c (thr_try_catch_cmd): Print thread name.
8536
d4c9a4f8
SM
85372020-02-26 Simon Marchi <simon.marchi@efficios.com>
8538
8539 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
8540 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8541 dwarf2_fetch_die_type_sect_off): Move to...
8542 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
8543 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8544 dwarf2_fetch_die_type_sect_off): ... here.
8545 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
8546 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8547 dwarf2_fetch_die_type_sect_off): Move doc to header file.
8548
0dce4280
TV
85492020-02-26 Tom de Vries <tdevries@suse.de>
8550
8551 PR gdb/25603
8552 * symfile.c (set_initial_language): Exit-early if
8553 language_mode == language_mode_manual.
8554
450a1bfc
SM
85552020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8556
8557 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
8558 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
8559 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
8560
9e80cfa1
AB
85612020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
8562
8563 * gdbtypes.c (create_array_type_with_stride): Handle negative
8564 array strides.
8565 * valarith.c (value_subscripted_rvalue): Likewise.
8566
09624f1f
LM
85672020-02-25 Luis Machado <luis.machado@linaro.org>
8568
8569 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
8570
8cb5117c
SM
85712020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8572
8573 * loc.h (dwarf2_get_die_type): Move to...
8574 * read.h (dwarf2_get_die_type): ... here.
8575 * read.c (dwarf2_get_die_type): Move doc to header.
8576
c325c44e
JB
85772020-02-25 Joel Brobecker <brobecker@adacore.com>
8578
8579 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
8580 'gnulib/Makefile.in' to the list.
8581
4ac93832
TT
85822020-02-24 Tom Tromey <tom@tromey.com>
8583
8584 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
8585 Remove.
8586 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
8587 XOBNEWVEC.
8588
197400e8
TT
85892020-02-24 Tom Tromey <tom@tromey.com>
8590
8591 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
8592 New method.
8593 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
8594 (dw2_do_instantiate_symtab, dw2_get_file_names)
8595 (build_type_psymtab_dependencies, load_full_type_unit): Update.
8596
76935768
TT
85972020-02-24 Tom Tromey <tom@tromey.com>
8598
8599 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
8600 make_scoped_restore.
8601 (dwarf2_psymtab::read_symtab): Don't clear
8602 reading_partial_symbols.
8603
a88ef40d
TV
86042020-02-24 Tom de Vries <tdevries@suse.de>
8605
8606 PR gdb/25592
8607 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
8608
c9af6521
TV
86092020-02-24 Tom de Vries <tdevries@suse.de>
8610
8611 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
8612 commands layout next/prev/regs.
8613
5707a07a
TT
86142020-02-22 Tom Tromey <tom@tromey.com>
8615
8616 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
8617 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
8618
3b0fb49e
TT
86192020-02-22 Tom Tromey <tom@tromey.com>
8620
8621 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
8622
283be8bf
TT
86232020-02-22 Tom Tromey <tom@tromey.com>
8624
8625 * tui/tui-win.c (_initialize_tui_win): Add usage text.
8626 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
8627 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
8628 * tui/tui.c (_initialize_tui): Add usage text.
8629
ca793b96
TT
86302020-02-22 Tom Tromey <tom@tromey.com>
8631
8632 * tui/tui-win.c (tui_set_focus_command)
8633 (tui_set_win_height_command): Use error_no_arg.
8634 (_initialize_tui_win): Update help text.
8635 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
8636
432b5c40
TT
86372020-02-22 Tom Tromey <tom@tromey.com>
8638
8639 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
8640 * tui/tui-disasm.h (struct tui_disasm_window)
8641 <display_start_addr>: Declare.
8642 * tui/tui-source.h (struct tui_source_window)
8643 <display_start_addr>: Declare.
8644 * tui/tui-winsource.h (struct tui_source_window_base)
8645 <show_source_line, display_start_addr>: New methods.
8646 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
8647 Rename and move to protected section.
8648 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
8649 (tui_source_window_base::do_erase_source_content): Update.
8650 (tui_source_window_base::show_source_line): Now a method.
8651 (tui_source_window_base::show_source_content)
8652 (tui_source_window_base::tui_source_window_base)
8653 (tui_source_window_base::rerender)
8654 (tui_source_window_base::refill)
8655 (tui_source_window_base::do_scroll_horizontal)
8656 (tui_source_window_base::set_is_exec_point_at)
8657 (tui_source_window_base::update_breakpoint_info)
8658 (tui_source_window_base::update_exec_info): Update.
8659 * tui/tui-source.c (tui_source_window::set_contents)
8660 (tui_source_window::showing_source_p)
8661 (tui_source_window::do_scroll_vertical)
8662 (tui_source_window::location_matches_p)
8663 (tui_source_window::line_is_displayed): Update.
8664 (tui_source_window::display_start_addr): New method.
8665 * tui/tui-disasm.c (tui_disasm_window::set_contents)
8666 (tui_disasm_window::do_scroll_vertical)
8667 (tui_disasm_window::location_matches_p): Update.
8668 (tui_disasm_window::display_start_addr): New method.
8669
01b1af32
TT
86702020-02-22 Tom Tromey <tom@tromey.com>
8671
8672 * NEWS: Add entry for gdb.register_window_type.
8673 * tui/tui-layout.h (window_factory): New typedef.
8674 (tui_register_window): Declare.
8675 * tui/tui-layout.c (saved_tui_windows): New global.
8676 (tui_apply_current_layout): Use it.
8677 (tui_register_window): New function.
8678 * python/python.c (do_start_initialization): Call
8679 gdbpy_initialize_tui.
8680 (python_GdbMethods): Add "register_window_type" function.
8681 * python/python-internal.h (gdbpy_register_tui_window)
8682 (gdbpy_initialize_tui): Declare.
8683 * python/py-tui.c: New file.
8684 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
8685
fc96d20b
TT
86862020-02-22 Tom Tromey <tom@tromey.com>
8687
8688 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
8689
935c78c0
TT
86902020-02-22 Tom Tromey <tom@tromey.com>
8691
8692 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
8693 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
8694 * tui/tui-data.c (tui_set_win_with_focus): Remove.
8695 (tui_set_win_focus_to): Move from tui-win.c.
8696
0240c8f1
TT
86972020-02-22 Tom Tromey <tom@tromey.com>
8698
8699 * tui/tui-layout.c (make_standard_window, get_locator_window): New
8700 functions.
8701 (known_window_types): New global.
8702 (tui_get_window_by_name): Reimplement.
8703 (initialize_known_windows): New function.
8704 (validate_window_name): Rewrite.
8705 (_initialize_tui_layout): Call initialize_known_windows.
8706
fdb01f0c
TT
87072020-02-22 Tom Tromey <tom@tromey.com>
8708
8709 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
8710 Remove constants.
8711 * tui/tui-winsource.h (struct tui_source_window_base)
8712 <tui_source_window_base>: Remove parameter.
8713 * tui/tui-winsource.c
8714 (tui_source_window_base::tui_source_window_base): Remove
8715 parameter.
8716 (tui_source_window_base::refill): Update.
8717 * tui/tui-stack.h (struct tui_locator_window)
8718 <tui_locator_window>: Update.
8719 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
8720 Default the constructor.
8721 * tui/tui-regs.h (struct tui_data_item_window)
8722 <tui_data_item_window>: Default the constructor.
8723 (struct tui_data_window) <tui_data_window>: Likewise.
8724 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
8725 Default the constructor.
8726 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
8727 Default the constructor.
8728 <type>: Remove.
8729 (struct tui_win_info) <tui_win_info>: Default the constructor.
8730 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
8731 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
8732 Default the constructor.
8733
865a5aec
TT
87342020-02-22 Tom Tromey <tom@tromey.com>
8735
8736 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
8737 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
8738 * tui/tui-win.c (tui_resize_all): Don't call
8739 tui_delete_invisible_windows.
8740 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
8741 done.
8742 (tui_set_layout): Update.
8743 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
8744 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
8745 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
8746
e098d18c
TT
87472020-02-22 Tom Tromey <tom@tromey.com>
8748
8749 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
8750 correctly.
8751
eb9c8874
TT
87522020-02-22 Tom Tromey <tom@tromey.com>
8753
8754 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
8755
7eed1a8e
TT
87562020-02-22 Tom Tromey <tom@tromey.com>
8757
8758 * tui/tui-winsource.h (struct tui_source_window_iterator)
8759 <inner_iterator>: New etytypedef.
8760 <tui_source_window_iterator>: Take "end" parameter.
8761 <tui_source_window_iterator>: Take iterator.
8762 <operator*, advance>: Update.
8763 <m_iter>: Change type.
8764 <m_end>: New field.
8765 (struct tui_source_windows) <begin, end>: Update.
8766 * tui/tui-layout.c (tui_windows): New global.
8767 (tui_apply_current_layout): Clear tui_windows.
8768 (tui_layout_window::apply): Update tui_windows.
8769 * tui/tui-data.h (tui_windows): Declare.
8770 (all_tui_windows): Now inline function.
8771 (class tui_window_iterator, struct all_tui_windows): Remove.
8772
7c043ba6
TT
87732020-02-22 Tom Tromey <tom@tromey.com>
8774
8775 PR tui/17850:
8776 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
8777 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
8778 "height" argument.
8779 (class tui_layout_window) <get_sizes>: Likewise.
8780 (class tui_layout_split) <tui_layout_split>: Add "vertical"
8781 argument.
8782 <get_sizes>: Add "height" argument.
8783 <m_vertical>: New field.
8784 * tui/tui-layout.c (tui_layout_split::clone): Update.
8785 (tui_layout_split::get_sizes): Add "height" argument.
8786 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
8787 (tui_new_layout_command): Parse "-horizontal".
8788 (_initialize_tui_layout): Update help string.
8789 (tui_layout_split::specification): Add "-horizontal" when needed.
8790 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
8791 argument.
8792 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
8793 New methods.
8794
6bc56648
TT
87952020-02-22 Tom Tromey <tom@tromey.com>
8796
8797 * tui/tui-layout.h (enum tui_adjust_result): New.
8798 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
8799 (class tui_layout_window) <adjust_size>: Return
8800 tui_adjust_result. Rewrite.
8801 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
8802 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
8803
c22fef7e
TT
88042020-02-22 Tom Tromey <tom@tromey.com>
8805
8806 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
8807 parameter and return types.
8808 (class tui_layout_base) <specification>: Add "depth".
8809 (class tui_layout_window) <specification>: Add "depth".
8810 (class tui_layout_split) <specification>: Add "depth".
8811 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
8812 and return types.
8813 (tui_new_layout_command): Parse sub-layouts.
8814 (_initialize_tui_layout): Update help string.
8815 (tui_layout_window::specification): Add "depth".
8816 (add_layout_command): Update.
8817
ee325b61
TT
88182020-02-22 Tom Tromey <tom@tromey.com>
8819
8820 * NEWS: Add "tui new-layout" item.
8821 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
8822 Add new-layout command to help text.
8823 (validate_window_name): New function.
8824 (tui_new_layout_command): New function.
8825 (_initialize_tui_layout): Register "new-layout".
8826 (tui_layout_window::specification): New method.
8827 (tui_layout_window::specification): New method.
8828 * tui/tui-layout.h (class tui_layout_base) <specification>: New
8829 method.
8830 (class tui_layout_window) <specification>: New method.
8831 (class tui_layout_split) <specification>: New method.
8832
416eb92d
TT
88332020-02-22 Tom Tromey <tom@tromey.com>
8834
8835 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
8836 * tui/tui-win.c (window_name_completer): Update comment.
8837 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
8838 Declare method.
8839 (class tui_layout_window) <replace_window>: Likewise.
8840 (class tui_layout_split) <replace_window>: Likewise.
8841 (tui_set_layout): Don't declare.
8842 (tui_set_initial_layout): Declare function.
8843 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
8844 (asm_regs_layout): New globals.
8845 (tui_current_layout, show_layout): Remove.
8846 (tui_set_layout, tui_add_win_to_layout): Rewrite.
8847 (find_layout, tui_apply_layout): New function.
8848 (layout_completer): Remove.
8849 (tui_next_layout): Reimplement.
8850 (tui_next_layout_command): New function.
8851 (tui_set_initial_layout, tui_prev_layout_command): New functions.
8852 (tui_regs_layout): Reimplement.
8853 (tui_regs_layout_command): New function.
8854 (extract_display_start_addr): Rewrite.
8855 (next_layout, prev_layout): Remove.
8856 (tui_layout_window::replace_window): New method.
8857 (tui_layout_split::replace_window): New method.
8858 (destroy_layout): New function.
8859 (layout_list): New global.
8860 (add_layout_command): New function.
8861 (initialize_layouts): Update.
8862 (tui_layout_command): New function.
8863 (_initialize_tui_layout): Install "layout" commands.
8864 * tui/tui-data.h (enum tui_layout_type): Remove.
8865 (tui_current_layout): Don't declare.
8866
0dbc2fc7
TT
88672020-02-22 Tom Tromey <tom@tromey.com>
8868
8869 * tui/tui-regs.c (tui_reg_layout): Remove.
8870 (tui_reg_command): Use tui_regs_layout.
8871 * tui/tui-layout.h (tui_reg_command): Declare.
8872 * tui/tui-layout.c (tui_reg_command): New function.
8873
5afe342e
TT
88742020-02-22 Tom Tromey <tom@tromey.com>
8875
8876 * tui/tui.c (tui_rl_delete_other_windows): Call
8877 tui_remove_some_windows.
8878 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
8879 Declare method.
8880 (class tui_layout_window) <remove_windows>: New method.
8881 (class tui_layout_split) <remove_windows>: Declare.
8882 (tui_remove_some_windows): Declare.
8883 * tui/tui-layout.c (tui_remove_some_windows): New function.
8884 (tui_layout_split::remove_windows): New method.
8885
427326a8
TT
88862020-02-22 Tom Tromey <tom@tromey.com>
8887
8888 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
8889 * tui/tui-layout.h (tui_next_layout): Declare.
8890 * tui/tui-layout.c (tui_next_layout): New function.
8891
3fe12b6d
TT
88922020-02-22 Tom Tromey <tom@tromey.com>
8893
8894 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
8895 correct coordinates.
8896
59b8b5d2
TT
88972020-02-22 Tom Tromey <tom@tromey.com>
8898
8899 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
8900 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
8901 DATA_WIN case.
8902
2a3d458b
TT
89032020-02-22 Tom Tromey <tom@tromey.com>
8904
8905 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
8906 TUI_DISASM_WIN, not tui_win_list.
8907
3f0cbb04
TT
89082020-02-22 Tom Tromey <tom@tromey.com>
8909
8910 * valprint.c (generic_val_print_enum_1)
8911 (val_print_type_code_flags): Style member names.
8912 * rust-lang.c (val_print_struct, rust_print_enum)
8913 (rust_print_struct_def, rust_internal_print_type): Style member
8914 names.
8915 * p-valprint.c (pascal_object_print_value_fields): Style member
8916 names. Only call fprintf_symbol_filtered for static members.
8917 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
8918 * f-valprint.c (f_val_print): Style member names.
8919 * f-typeprint.c (f_type_print_base): Style member names.
8920 * cp-valprint.c (cp_print_value_fields): Style member names. Only
8921 call fprintf_symbol_filtered for static members.
8922 (cp_print_class_member): Style member names.
8923 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
8924 member names.
8925 * ada-valprint.c (ada_print_scalar): Style enum names.
8926 (ada_val_print_enum): Likewise.
8927 * ada-typeprint.c (print_enum_type): Style enum names.
8928
d4d947ae
TT
89292020-02-21 Tom Tromey <tom@tromey.com>
8930
8931 * psympriv.h (struct partial_symtab): Update comment.
8932
e94e944b
TT
89332020-02-21 Tom Tromey <tromey@adacore.com>
8934
8935 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
8936 type is CORE_ADDR.
8937
1eb73179
TV
89382020-02-21 Tom de Vries <tdevries@suse.de>
8939
8940 PR gdb/25534
8941 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
8942 if dependencies[i]->user != NULL.
8943
4f180d53
AT
89442020-02-21 Ali Tamur <tamur@google.com>
8945
8946 * dwarf2/read.c (dwarf2_name): Add null check.
8947
22b6cd70
TT
89482020-02-20 Tom Tromey <tom@tromey.com>
8949
8950 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
8951 ">=", in binary search.
8952 (dwarf2_find_containing_comp_unit): New overload.
8953 (run_test): New self-test.
8954 (_initialize_dwarf2_read): Register new test.
8955
bd0cf5a6
NC
89562020-02-20 Nelson Chu <nelson.chu@sifive.com>
8957
8958 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
8959 * riscv-tdep.h: Likewise.
8960 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
8961 rv32-only CSR.
8962 * features/riscv/64bit-csr.xml: Regenerated.
8963
3f702acd
SDJ
89642020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
8965 Tom Tromey <tom@tromey.com>
8966
8967 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
8968 of 'fputc_unfiltered'.
8969 (putchar_unfiltered): Call 'fputc_unfiltered'.
8970 (fputc_unfiltered): Call 'fputs_unfiltered'.
8971
d13c7322
AB
89722020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
8973
8974 * config.in: Regenerate.
8975 * configure: Regenerate.
8976 * configure.ac: Add --with-python-libdir option.
8977 * main.c: Use WITH_PYTHON_LIBDIR.
8978
869d8950
TT
89792020-02-19 Tom Tromey <tom@tromey.com>
8980
8981 * symtab.c (general_symbol_info::compute_and_set_names): Use
8982 obstack_strndup. Simplify call to symbol_set_demangled_name.
8983
298e9637
SM
89842020-02-19 Simon Marchi <simon.marchi@efficios.com>
8985
8986 * dwarf2/read.c (allocate_signatured_type_table,
8987 allocate_dwo_unit_table, allocate_type_unit_groups_table,
8988 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
8989 Remove objfile parameter, update all callers.
8990
08410482
DE
89912020-02-19 Doug Evans <dje@google.com>
8992
8993 PR rust/25535
8994 * rust-lang.c (rust_print_enum): Apply embedded_offset to
8995 rust_enum_variant calculation.
8996
dfdeeca1
TT
89972020-02-19 Tom Tromey <tromey@adacore.com>
8998
8999 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
9000
2ef5453b
TT
90012020-02-19 Tom Tromey <tromey@adacore.com>
9002
9003 * ada-lang.c (cache_symbol): Use obstack_strdup.
9004
9f1528a1
AB
90052020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9006
9007 * configure: Regenerate.
9008
d3c22fa8
TT
90092020-02-19 Tom Tromey <tromey@adacore.com>
9010
9011 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
9012 NULL check.
9013
bf84f706
MR
90142020-02-19 Maciej W. Rozycki <macro@wdc.com>
9015
9016 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
9017
d1c9b20f
AB
90182020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9019
9020 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
9021 if GDBSERVER is not defined.
9022 (riscv_tdesc_cache): Likewise, also store const target_desc.
9023 (STATIC_IN_GDB): Define.
9024 (riscv_create_target_description): Update declaration with
9025 STATIC_IN_GDB.
9026 (riscv_lookup_target_description): New function, only define if
9027 GDBSERVER is not defined.
9028 * arch/riscv.h (riscv_create_target_description): Declare only
9029 when GDBSERVER is defined.
9030 (riscv_lookup_target_description): New declaration when GDBSERVER
9031 is not defined.
9032 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
9033 (riscv_linux_read_features): ...this, and return
9034 riscv_gdbarch_features instead of target_desc.
9035 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
9036 (riscv_linux_read_description): Rename to...
9037 (riscv_linux_read_features): ...this.
9038 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9039 Update to use riscv_gdbarch_features and
9040 riscv_lookup_target_description.
9041 * riscv-tdep.c (riscv_find_default_target_description): Use
9042 riscv_lookup_target_description instead of
9043 riscv_create_target_description.
9044
373d7ac0
SM
90452020-02-18 Simon Marchi <simon.marchi@efficios.com>
9046
9047 * valprint.c (generic_val_print_enum_1): When printing a flag
9048 enum with value 0 and there is no enumerator with value 0, print
9049 just "0" instead of "(unknown: 0x0)".
9050
b29a2df0
SM
90512020-02-18 Simon Marchi <simon.marchi@efficios.com>
9052
9053 * valprint.c (generic_val_print_enum_1): Print unknown part of
9054 flag enum in hex.
9055
6740f0cc
SM
90562020-02-18 Simon Marchi <simon.marchi@efficios.com>
9057
9058 * dwarf2/read.c (update_enumeration_type_from_children): Allow
9059 flag enums to contain duplicate enumerators.
9060 * valprint.c (generic_val_print_enum_1): Update comment.
9061
edd45eb0
SM
90622020-02-18 Simon Marchi <simon.marchi@efficios.com>
9063
9064 * dwarf2/read.c: Include "count-one-bits.h".
9065 (update_enumeration_type_from_children): If an enumerator has
9066 multiple bits set, don't treat the enumeration as a "flag enum".
9067 * valprint.c (generic_val_print_enum_1): Assert that enumerators
9068 of flag enums have 0 or 1 bit set.
9069
6d0cf446
BE
90702020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
9071
9072 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
9073 conversion.
9074 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9075 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9076 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9077 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9078 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9079
7001c1b7
SM
90802020-02-18 Simon Marchi <simon.marchi@efficios.com>
9081
9082 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
9083
fdb61c6c
SM
90842020-02-14 Simon Marchi <simon.marchi@efficios.com>
9085
9086 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
9087 displaced_step_closure_up.
9088 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9089 (struct displaced_step_closure_up):
9090 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9091 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9092 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
9093 Likewise.
9094 * gdbarch.sh (displaced_step_copy_insn): Likewise.
9095 * gdbarch.c, gdbarch.h: Re-generate.
9096 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
9097 displaced_step_closure_up.
9098 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9099 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9100 * infrun.h (displaced_step_closure_up): New type alias.
9101 (struct displaced_step_inferior_state) <step_closure>: Change
9102 type to displaced_step_closure_up.
9103 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
9104 displaced_step_closure_up.
9105 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9106
a4a38eb4
TT
91072020-02-14 Tom Tromey <tom@tromey.com>
9108
9109 * minidebug.c (gnu_debug_key): New global.
9110 (find_separate_debug_file_in_section): Use it.
9111
e8217e61
SM
91122020-02-14 Simon Marchi <simon.marchi@efficios.com>
9113
9114 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
9115 std::unique_ptr.
9116 * gdbarch.c: Re-generate.
9117 * gdbarch.h: Re-generate.
9118 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
9119 change.
9120 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
9121 type to std::unique_ptr.
9122 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9123 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9124 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9125 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9126 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
9127 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9128 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9129 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9130 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9131
d8d83535
SM
91322020-02-14 Simon Marchi <simon.marchi@efficios.com>
9133
9134 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
9135 std::unique_ptr.
9136 (displaced_step_clear): Rename to...
9137 (displaced_step_reset): ... this. Just call displaced->reset ().
9138 (displaced_step_clear_cleanup): Rename to...
9139 (displaced_step_reset_cleanup): ... this.
9140 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
9141 (displaced_step_fixup): Likewise.
9142 (resume_1): Likewise.
9143 (handle_inferior_event): Restore child's memory before calling
9144 displaced_step_fixup on the parent.
9145 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
9146 to std::unique_ptr.
9147 <step_closure>: Change type to std::unique_ptr.
9148
5f661e03
SM
91492020-02-14 Simon Marchi <simon.marchi@efficios.com>
9150
9151 * arm-tdep.c: Include count-one-bits.h.
9152 (cleanup_block_store_pc): Use count_one_bits.
9153 (cleanup_block_load_pc): Use count_one_bits.
9154 (arm_copy_block_xfer): Use count_one_bits.
9155 (thumb2_copy_block_xfer): Use count_one_bits.
9156 (thumb_copy_pop_pc_16bit): Use count_one_bits.
9157 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
9158 (thumb_get_next_pcs_raw): Use count_one_bits.
9159 (arm_get_next_pcs_raw): Use count_one_bits_l.
9160 * arch/arm.c (bitcount): Remove.
9161 * arch/arm.h (bitcount): Remove.
9162
8084e579
TT
91632020-02-14 Tom Tromey <tromey@adacore.com>
9164
9165 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
9166 Update.
9167 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
9168 * dwarf2/loc.c (call_site_find_chain_1): Return
9169 unique_xmalloc_ptr.
9170 (call_site_find_chain): Likewise.
9171
258bf0ee
RB
91722020-02-14 Richard Biener <rguenther@suse.de>
9173
9174 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
9175 on expression with division operators.
9176
f98a8458
AKS
91772020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9178
9179 * MAINTAINERS (Write After Approval): Adding myself.
9180
d1437c0e
TT
91812020-02-12 Tom Tromey <tom@tromey.com>
9182
9183 * event-loop.c (event_data, gdb_event, event_handler_func):
9184 Remove.
9185
3d4560f7
TT
91862020-02-12 Tom Tromey <tom@tromey.com>
9187
9188 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
9189 (dwarf2_frame_objfile_data): Add comment.
9190 (find_comp_unit, set_comp_unit): New functions.
9191 (dwarf2_frame_find_fde): Use find_comp_unit.
9192 (dwarf2_build_frame_info): Use set_comp_unit.
9193
21982304
TT
91942020-02-12 Tom Tromey <tom@tromey.com>
9195
9196 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
9197 (comp_unit): Don't initialize objfile.
9198 (execute_cfa_program): Add text_offset parameter.
9199 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
9200 (dwarf2_frame_cache): Update.
9201 (dwarf2_build_frame_info): Don't set "objfile" member.
9202
4debb237
TT
92032020-02-12 Tom Tromey <tom@tromey.com>
9204
9205 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
9206 (decode_frame_entry): Likewise.
9207 (dwarf2_build_frame_info): Update.
9208
0d404d44
TT
92092020-02-12 Tom Tromey <tom@tromey.com>
9210
9211 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
9212 (decode_frame_entry_1): Use the comp_unit obstack.
9213
a7a3ae5c
TT
92142020-02-12 Tom Tromey <tom@tromey.com>
9215
9216 * dwarf2/frame.c (struct comp_unit): Add initializers and
9217 constructor.
9218 (dwarf2_frame_objfile_data): Store a comp_unit.
9219 (dwarf2_frame_find_fde): Update.
9220 (dwarf2_build_frame_info): Use "new".
9221
a9d65418
TT
92222020-02-12 Tom Tromey <tom@tromey.com>
9223
9224 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
9225 (dwarf2_fde_table): Typedef for std::vector.
9226 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
9227 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
9228 (decode_frame_entry): Update.
9229 (dwarf2_build_frame_info): Use "new".
9230
7559c217
CB
92312020-02-12 Christian Biesinger <cbiesinger@google.com>
9232
9233 * arm-tdep.c (arm_gdbarch_init): Update.
9234 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
9235 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
9236 have_neon, is_m>: Change to bool.
9237
aeefc73c
CB
92382020-02-12 Christian Biesinger <cbiesinger@google.com>
9239
9240 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
9241
d27b8e5f
TT
92422020-02-12 Tom Tromey <tom@tromey.com>
9243
9244 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
9245
cd5900f3
HD
92462020-02-12 Hannes Domani <ssbssa@yahoo.de>
9247
9248 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
9249 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
9250
f056b22b
TT
92512020-02-11 Tom Tromey <tom@tromey.com>
9252
9253 * psymtab.h: Update comment.
9254
f92ff6b5
TT
92552020-02-11 Tom Tromey <tom@tromey.com>
9256
9257 * gdb_obstack.h (struct auto_obstack): Use
9258 DISABLE_COPY_AND_ASSIGN.
9259
3fd6912b
TT
92602020-02-11 Tom Tromey <tom@tromey.com>
9261
9262 * dwarf2/frame.h (struct objfile): Don't forward declare.
9263
69ed9b74
CB
92642020-02-11 Christian Biesinger <cbiesinger@google.com>
9265
9266 * cris-tdep.c (cris_supply_gregset): Change signature to match
9267 what struct regset expects.
9268 (cris_regset): New struct.
9269 (fetch_core_registers): Remove.
9270 (cris_iterate_over_regset_sections): New function.
9271 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
9272 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
9273
bda874f6
CB
92742020-02-11 Christian Biesinger <cbiesinger@google.com>
9275
9276 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
9277 registers.
9278
754e1564
CB
92792020-02-11 Christian Biesinger <cbiesinger@google.com>
9280
9281 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
9282
8ddd8e0e
SM
92832020-02-11 Simon Marchi <simon.marchi@efficios.com>
9284
9285 * configure: Re-generate.
9286
898e7f60
SM
92872020-02-11 Simon Marchi <simon.marchi@efficios.com>
9288
9289 * configure: Re-generate.
9290
58df732b
SM
92912020-02-11 Simon Marchi <simon.marchi@efficios.com>
9292
9293 * acinclude: Update warning.m4 path.
9294 * warning.m4: Move to gdbsupport.
9295
da5bd37e
TT
92962020-02-11 Tom Tromey <tromey@adacore.com>
9297
9298 * remote.c (remote_console_output): Update.
9299 * printcmd.c (printf_command): Update.
9300 * event-loop.c (gdb_wait_for_event): Update.
9301 * linux-nat.c (sigchld_handler): Update.
9302 * remote-sim.c (gdb_os_write_stdout): Update.
9303 (gdb_os_flush_stdout): Update.
9304 (gdb_os_flush_stderr): Update.
9305 (gdb_os_write_stderr): Update.
9306 * exceptions.c (print_exception): Update.
9307 * remote-fileio.c (remote_fileio_func_read): Update.
9308 (remote_fileio_func_write): Update.
9309 * tui/tui.c (tui_enable): Update.
9310 * tui/tui-interp.c (tui_interp::init): Update.
9311 * utils.c (init_page_info): Update.
9312 (putchar_unfiltered, fputc_unfiltered): Update.
9313 (gdb_flush): Update.
9314 (emit_style_escape): Update.
9315 (flush_wrap_buffer, fputs_maybe_filtered): Update.
9316 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
9317 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
9318 (stderr_file::write): Update.
9319 (stderr_file::puts): Update.
9320 * ui-file.h (ui_file_isatty, ui_file_write)
9321 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
9322 (ui_file_puts): Don't declare.
9323
85f0dd3c
TV
93242020-02-10 Tom de Vries <tdevries@suse.de>
9325
9326 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
9327 sentinel to char *.
9328
2e927613
TV
93292020-02-09 Tom de Vries <tdevries@suse.de>
9330
9331 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
9332 filename if it matches "<artificial>".
9333
6bafc845
HD
93342020-02-09 Hannes Domani <ssbssa@yahoo.de>
9335
9336 * windows-tdep.c (struct enum_value_name): New struct.
9337 (create_enum): New function.
9338 (windows_get_siginfo_type): Create and use enum types.
9339
7928d571
HD
93402020-02-09 Hannes Domani <ssbssa@yahoo.de>
9341
9342 * NEWS: Mention $_siginfo support for Windows.
9343 * windows-nat.c (handle_exception): Set siginfo_er.
9344 (windows_nat_target::mourn_inferior): Reset siginfo_er.
9345 (windows_xfer_siginfo): New function.
9346 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
9347 * windows-tdep.c (struct windows_gdbarch_data): New struct.
9348 (init_windows_gdbarch_data): New function.
9349 (get_windows_gdbarch_data): New function.
9350 (windows_get_siginfo_type): New function.
9351 (windows_init_abi): Register windows_get_siginfo_type.
9352 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
9353
6751ebae
TT
93542020-02-08 Tom Tromey <tom@tromey.com>
9355
9356 * dwarf2/read.c (class cutu_reader) <cutu_reader,
9357 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
9358 <keep>: Declare method.
9359 <m_keep>: Remove member.
9360 <~cutu_reader>: Remove.
9361 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9362 (cutu_reader::cutu_reader): Update.
9363 (cutu_reader::keep): Rename from ~cutu_reader.
9364 (process_psymtab_comp_unit, build_type_psymtabs_1)
9365 (process_skeletonless_type_unit, load_partial_comp_unit)
9366 (load_full_comp_unit, dwarf2_read_addr_index)
9367 (read_signatured_type): Update.
9368
135f5437
TT
93692020-02-08 Tom Tromey <tom@tromey.com>
9370
9371 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
9372 "want_partial_unit" parameter.
9373 (process_psymtab_comp_unit): Change want_partial_unit to bool.
9374 Inline check for DW_TAG_partial_unit.
9375 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
9376
9f66ff1c
TT
93772020-02-08 Tom Tromey <tom@tromey.com>
9378
9379 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
9380 read.c.
9381 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
9382 read.c.
9383
c8a7a66f
TT
93842020-02-08 Tom Tromey <tom@tromey.com>
9385
9386 * dwarf2/read.c (read_address): Move to comp-unit.c.
9387 (dwarf2_rnglists_process, dwarf2_ranges_process)
9388 (read_attribute_value, dwarf_decode_lines_1)
9389 (var_decode_location, decode_locdesc): Update.
9390 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
9391 read.c. Remove "cu" parameter.
9392 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
9393 method.
9394
8266302d
TT
93952020-02-08 Tom Tromey <tom@tromey.com>
9396
9397 * dwarf2/read.c (read_attribute_value, read_indirect_string)
9398 (read_indirect_line_string): Update.
9399 * dwarf2/comp-unit.c (read_offset): Remove.
9400 (read_comp_unit_head): Update.
9401 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
9402 method.
9403 (read_offset): Don't declare.
9404
4057dfde
TT
94052020-02-08 Tom Tromey <tom@tromey.com>
9406
9407 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
9408 * dwarf2/read.c (struct comp_unit_head): Move to
9409 dwarf2/comp-unit.h.
9410 (enum class rcuh_kind): Move to comp-unit.h.
9411 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
9412 (read_comp_unit_head, error_check_comp_unit_head)
9413 (read_and_check_comp_unit_head): Move to comp-unit.c.
9414 (read_offset, dwarf_unit_type_name): Likewise.
9415 (create_debug_type_hash_table, read_cutu_die_from_dwo)
9416 (cutu_reader::cutu_reader, read_call_site_scope)
9417 (find_partial_die, follow_die_offset): Update.
9418 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
9419
24aa364d
TT
94202020-02-08 Tom Tromey <tom@tromey.com>
9421
9422 * dwarf2/read.c (read_offset_1): Move to leb.c.
9423 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
9424 (dwarf_decode_macro_bytes): Update.
9425 * dwarf2/leb.c (read_offset): Rename; move from read.c.
9426 * dwarf2/leb.h (read_offset): Declare.
9427
2c7d5afc
TT
94282020-02-08 Tom Tromey <tom@tromey.com>
9429
9430 * dwarf2/read.c (dwarf2_section_size): Remove.
9431 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
9432 Update.
9433 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
9434
4075cb26
TT
94352020-02-08 Tom Tromey <tom@tromey.com>
9436
9437 * dwarf2/read.c (read_initial_length): Move to leb.c.
9438 * dwarf2/leb.h (read_initial_length): Declare.
9439 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
9440 handle_nonstd parameter.
9441 * dwarf2/frame.c (read_initial_length): Remove.
9442 (decode_frame_entry_1): Update.
9443
09ba997f
TT
94442020-02-08 Tom Tromey <tom@tromey.com>
9445
9446 * dwarf2/loc.c (dwarf2_find_location_expression)
9447 (dwarf_evaluate_loc_desc::get_tls_address)
9448 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
9449 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
9450 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
9451 (dwarf2_compile_property_to_c)
9452 (dwarf2_loc_desc_get_symbol_read_needs)
9453 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
9454 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
9455 (loclist_describe_location, loclist_tracepoint_var_ref)
9456 (loclist_generate_c_location): Update.
9457 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
9458 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
9459 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
9460 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
9461 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
9462 (dwarf2_per_cu_data::addr_size)
9463 (dwarf2_per_cu_data::ref_addr_size)
9464 (dwarf2_per_cu_data::text_offset)
9465 (dwarf2_per_cu_data::addr_type): Now methods.
9466 (per_cu_header_read_in): Make per_cu "const".
9467 (dwarf2_version): Remove.
9468 (dwarf2_per_cu_data::int_type): Now a method.
9469 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
9470 (set_die_type, read_array_type, read_subrange_index_type)
9471 (read_tag_string_type, read_subrange_type): Update.
9472 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
9473 offset_size, ref_addr_size, text_offset, addr_type, version,
9474 objfile, int_type, addr_sized_int_type>: Declare methods.
9475
96c738c0
TT
94762020-02-08 Tom Tromey <tom@tromey.com>
9477
9478 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
9479 Move earlier.
9480
8fdd972c
TT
94812020-02-08 Tom Tromey <tom@tromey.com>
9482
9483 * dwarf2/read.h (dwarf_line_debug): Declare.
9484 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
9485 * dwarf2/read.c: Move line_header code to new files.
9486 (dwarf_line_debug): No longer static.
9487 * dwarf2/line-header.c: New file.
9488 * dwarf2/line-header.h: New file.
9489
03075812
TT
94902020-02-08 Tom Tromey <tom@tromey.com>
9491
9492 * dwarf2/read.c (struct line_header) <file_full_name,
9493 file_file_name>: Return unique_xmalloc_ptr.
9494 (line_header::file_file_name): Update.
9495 (line_header::file_full_name): Update.
9496 (dw2_get_file_names_reader): Update.
9497 (macro_start_file): Update.
9498
bb822404
TT
94992020-02-08 Tom Tromey <tom@tromey.com>
9500
9501 * dwarf2/read.c (struct line_header) <file_full_name,
9502 file_file_name>: Declare methods.
9503 (dw2_get_file_names_reader): Update.
9504 (file_file_name): Now a method.
9505 (file_full_name): Likewise.
9506 (macro_start_file): Update.
9507
009b64fc
TT
95082020-02-08 Tom Tromey <tom@tromey.com>
9509
9510 * dwarf2/read.c (dwarf_always_disassemble)
9511 (show_dwarf_always_disassemble): Move to loc.c.
9512 (_initialize_dwarf2_read): Move "always-disassemble" registration
9513 to loc.c.
9514 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
9515 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
9516 static.
9517 (show_dwarf_always_disassemble): Move from read.c.
9518 (_initialize_dwarf2loc): Move always-disassemble from read.c.
9519
5895093f
TT
95202020-02-08 Tom Tromey <tom@tromey.com>
9521
9522 * dwarf2/read.c (~dwarf2_per_objfile): Update.
9523 (create_quick_file_names_table): Return htab_up.
9524 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
9525 Update.
9526 * dwarf2/read.h (struct dwarf2_per_objfile)
9527 <quick_file_names_table>: Now htab_up.
9528
b3b32279
TT
95292020-02-08 Tom Tromey <tom@tromey.com>
9530
9531 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
9532
1d33d811
TT
95332020-02-08 Tom Tromey <tom@tromey.com>
9534
9535 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
9536 Rewrite.
9537 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
9538 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
9539 (abbrev_table::abbrev_table): No longer inline.
9540 (ABBREV_HASH_SIZE): Remove.
9541 (abbrev_table::m_abbrevs): Now an htab_up.
9542
86de1d91
TT
95432020-02-08 Tom Tromey <tom@tromey.com>
9544
9545 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
9546 (cutu_reader): Update.
9547 (build_type_psymtabs_1): Update.
9548 * dwarf2/abbrev.c (abbrev_table::read): Rename.
9549 (abbrev_table::alloc_abbrev): Update.
9550 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
9551 (abbrev_table::read): New static method, renamed from
9552 abbrev_table_read_table.
9553 (abbrev_table::alloc_abbrev)
9554 (abbrev_table::add_abbrev): Now private.
9555 (abbrev_table::abbrev_table): Now private.
9556 (abbrev_table::m_abbrev_obstack): Now private. Rename.
9557
0335378b
TT
95582020-02-08 Tom Tromey <tom@tromey.com>
9559
9560 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
9561 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
9562 htab_up.
9563
48b490f2
TT
95642020-02-08 Tom Tromey <tom@tromey.com>
9565
9566 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
9567 htab_up.
9568 (lookup_dwo_unit_in_dwp): Update.
9569 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
9570 on obstack.
9571
bc68fb19
TT
95722020-02-08 Tom Tromey <tom@tromey.com>
9573
9574 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
9575 obstack.
9576
d15acc42
TT
95772020-02-08 Tom Tromey <tom@tromey.com>
9578
9579 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
9580 line_header_hash.
9581 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
9582 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
9583 Change type to htab_up.
9584
eaa5fa8b
TT
95852020-02-08 Tom Tromey <tom@tromey.com>
9586
9587 * dwarf2/read.c (allocate_type_unit_groups_table): Return
9588 htab_up. Don't allocate on obstack.
9589 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
9590 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
9591 Change type to htab_up.
9592
b0b6a987
TT
95932020-02-08 Tom Tromey <tom@tromey.com>
9594
9595 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
9596 Change type to htab_up.
9597 * dwarf2/read.c (create_signatured_type_table_from_index)
9598 (create_signatured_type_table_from_debug_names)
9599 (create_all_type_units, add_type_unit)
9600 (lookup_dwo_signatured_type, lookup_signatured_type)
9601 (process_skeletonless_type_unit): Update.
9602 (create_debug_type_hash_table, create_debug_types_hash_table):
9603 Change type of types_htab.
9604 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
9605 htab_up. Don't allocate on obstack.
9606 (create_cus_hash_table): Change type of cus_htab parameter.
9607 (struct dwo_file) <cus, tus>: Now htab_up.
9608 (lookup_dwo_signatured_type, lookup_dwo_cutu)
9609 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
9610 (queue_and_load_all_dwo_tus): Update.
9611 * dwarf2/index-write.c (write_gdbindex): Update.
9612 (write_debug_names): Update.
9613
39856def
TT
96142020-02-08 Tom Tromey <tom@tromey.com>
9615
9616 * dwarf2/read.h (struct dwarf2_queue_item): Move from
9617 dwarf2/read.c. Remove "next" member. Add constructor ntad
9618 destructor.
9619 (struct dwarf2_per_objfile) <queue>: New member.
9620 * dwarf2/read.c (struct dwarf2_queue_item): Move to
9621 dwarf2/read.h.
9622 (dwarf2_queue, dwarf2_queue_tail): Remove.
9623 (class dwarf2_queue_guard): Add parameter to constructor. Use
9624 DISABLE_COPY_AND_ASSIGN.
9625 <m_per_objfile>: New member.
9626 <~dwarf2_queue_guard>: Rewrite.
9627 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
9628 Update.
9629 (~dwarf2_queue_item): New.
9630
3e225074
TT
96312020-02-08 Tom Tromey <tom@tromey.com>
9632
9633 * dwarf2/read.c (struct die_info) <has_children>: New member.
9634 (dw2_get_file_names_reader): Remove has_children.
9635 (dw2_get_file_names): Update.
9636 (read_cutu_die_from_dwo): Remove has_children.
9637 (cutu_reader::init_tu_and_read_dwo_dies)
9638 (cutu_reader::cutu_reader): Update.
9639 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
9640 Remove has_children.
9641 (build_type_psymtabs_1, process_skeletonless_type_unit)
9642 (load_partial_comp_unit, load_full_comp_unit): Update.
9643 (create_dwo_cu_reader): Remove has_children.
9644 (create_cus_hash_table, read_die_and_children): Update.
9645 (read_full_die_1,read_full_die): Remove has_children.
9646 (read_signatured_type): Update.
9647 (class cutu_reader) <has_children>: Remove.
9648
82ca8957
TT
96492020-02-08 Tom Tromey <tom@tromey.com>
9650
9651 * dwarf2/expr.c: Rename from dwarf2expr.c.
9652 * dwarf2/expr.h: Rename from dwarf2expr.h.
9653 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
9654 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
9655 * dwarf2/frame.c: Rename from dwarf2-frame.c.
9656 * dwarf2/frame.h: Rename from dwarf2-frame.h.
9657 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
9658 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
9659 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
9660 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
9661 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
9662 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
9663 * dwarf2/loc.c: Rename from dwarf2loc.c.
9664 * dwarf2/loc.h: Rename from dwarf2loc.h.
9665 * dwarf2/read.c: Rename from dwarf2read.c.
9666 * dwarf2/read.h: Rename from dwarf2read.h.
9667 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
9668 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
9669 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
9670 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
9671 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
9672 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
9673 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
9674 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
9675 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
9676 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
9677 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
9678 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
9679 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
9680 Update.
9681 * Makefile.in (COMMON_SFILES): Update.
9682 (HFILES_NO_SRCDIR): Update.
9683
9e35d499
TT
96842020-02-08 Tom Tromey <tom@tromey.com>
9685
9686 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
9687 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
9688
1eba2311
TT
96892020-02-08 Tom Tromey <tom@tromey.com>
9690
9691 * dwarf2read.h (struct die_info): Don't declare.
9692
e41c2da2
TT
96932020-02-08 Tom Tromey <tom@tromey.com>
9694
9695 * dwarf2read.h (die_info_ptr): Remove typedef.
9696
4fc6c0d5
TT
96972020-02-08 Tom Tromey <tom@tromey.com>
9698
9699 * dwarf2read.c (read_call_site_scope)
9700 (handle_data_member_location, dwarf2_add_member_fn)
9701 (mark_common_block_symbol_computed, read_common_block)
9702 (attr_to_dynamic_prop, partial_die_info::read)
9703 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
9704 (dwarf2_symbol_mark_computed, set_die_type): Update.
9705 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
9706 method.
9707 (attr_form_is_block): Don't declare.
9708 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
9709
cd6c91b4
TT
97102020-02-08 Tom Tromey <tom@tromey.com>
9711
9712 * dwarf2read.c (dwarf2_find_base_address, )
9713 (read_call_site_scope, rust_containing_type)
9714 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
9715 (handle_data_member_location, dwarf2_add_member_fn)
9716 (get_alignment, read_structure_type, process_structure_scope)
9717 (mark_common_block_symbol_computed, read_common_block)
9718 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
9719 (partial_die_info::read, read_attribute_value, new_symbol)
9720 (lookup_die_type, dwarf2_get_ref_die_offset)
9721 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
9722 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
9723 (dwarf2_symbol_mark_computed): Update.
9724 * dwarf2/attribute.h (struct attribute) <value_as_address,
9725 form_is_section_offset, form_is_constant, form_is_ref>: Declare
9726 methods.
9727 (value_as_address, attr_form_is_section_offset)
9728 (attr_form_is_constant, attr_form_is_ref): Don't declare.
9729 * dwarf2/attribute.c (attribute::value_as_address)
9730 (attribute::form_is_section_offset, attribute::form_is_constant)
9731 (attribute::form_is_ref): Now methods.
9732
162dce55
TT
97332020-02-08 Tom Tromey <tom@tromey.com>
9734
9735 * dwarf2read.c (struct attribute, DW_STRING)
9736 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
9737 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
9738 (attr_form_is_block, attr_form_is_section_offset)
9739 (attr_form_is_constant, attr_form_is_ref): Move.
9740 * dwarf2/attribute.h: New file.
9741 * dwarf2/attribute.c: New file, from dwarf2read.c.
9742 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
9743
3054dd54
TT
97442020-02-08 Tom Tromey <tom@tromey.com>
9745
9746 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
9747 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
9748 Move.
9749 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
9750 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
9751 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
9752 abbrev.c.
9753 * dwarf2/abbrev.h: New file.
9754 * dwarf2/abbrev.c: New file, from dwarf2read.c.
9755 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
9756
96b79293
TT
97572020-02-08 Tom Tromey <tom@tromey.com>
9758
9759 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
9760 (dwarf2_section_size, dwarf2_get_section_info)
9761 (create_signatured_type_table_from_debug_names)
9762 (create_addrmap_from_aranges, read_debug_names_from_section)
9763 (get_gdb_index_contents_from_section, read_comp_unit_head)
9764 (error_check_comp_unit_head, read_abbrev_offset)
9765 (create_debug_type_hash_table, init_cu_die_reader)
9766 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
9767 (read_comp_units_from_section, create_cus_hash_table)
9768 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
9769 (create_dwp_v2_section, dwarf2_rnglists_process)
9770 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
9771 (abbrev_table_read_table, read_indirect_string_at_offset_from)
9772 (read_indirect_string_from_dwz, read_addr_index_1)
9773 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
9774 (dwarf_decode_macro_bytes, dwarf_decode_macros)
9775 (fill_in_loclist_baton): Update.
9776 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
9777 get_containing_section, get_bfd_owner, get_bfd_section,
9778 get_file_name, get_id, get_flags, empty, read>: Declare methods.
9779 (dwarf2_read_section, get_section_name, get_section_file_name)
9780 (get_containing_section, get_section_bfd_owner)
9781 (get_section_bfd_section, get_section_name, get_section_file_name)
9782 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
9783 declare.
9784 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
9785 (dwarf2_section_info::get_bfd_owner)
9786 (dwarf2_section_info::get_bfd_section)
9787 (dwarf2_section_info::get_name)
9788 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
9789 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
9790 (dwarf2_section_info::read): Now methods.
9791 * dwarf-index-write.c (class debug_names): Update.
9792
2c86cff9
TT
97932020-02-08 Tom Tromey <tom@tromey.com>
9794
9795 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
9796 Move to dwarf2/section.h.
9797 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
9798 (get_section_bfd_section, get_section_name)
9799 (get_section_file_name, get_section_id, get_section_flags)
9800 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
9801 dwarf2/section.c.
9802 * dwarf2/section.h: New file.
9803 * dwarf2/section.c: New file, from dwarf2read.c.
9804 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
9805
f4382c45
TT
98062020-02-08 Tom Tromey <tom@tromey.com>
9807
9808 * dwarf2read.h (read_unsigned_leb128): Don't declare.
9809 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
9810 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
9811 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
9812 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
9813 * dwarf2/leb.h: New file, from dwarf2read.c.
9814 * dwarf2/leb.c: New file, from dwarf2read.c.
9815 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
9816 Remove.
9817 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
9818 (COMMON_SFILES): Add dwarf2/leb.c.
9819
01840b7a
JB
98202020-02-08 Joel Brobecker <brobecker@adacore.com>
9821
9822 GDB 9.1 released.
9823
dfcb27e4
IB
98242020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9825
9826 PR gdb/25190:
aac66a4c
SM
9827 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
9828 * gdb/remote.c (remote_console_output): Update.
9829 * gdb/ui-file.c (fputs_unfiltered): Rename to...
9830 (ui_file_puts): ...this.
9831 * gdb/ui-file.h (ui_file_puts): Add declaration.
9832 * gdb/utils.c (emit_style_escape): Update.
9833 (flush_wrap_buffer): Update.
9834 (fputs_maybe_filtered): Update.
9835 (fputs_unfiltered): Add function.
dfcb27e4 9836
faa17681
IB
98372020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9838
aac66a4c
SM
9839 * gdb/event-loop.c (gdb_wait_for_event): Update.
9840 * gdb/printcmd.c (printf_command): Update.
9841 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
9842 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
9843 (gdb_os_flush_stderr): Update.
9844 * gdb/remote.c (remote_console_output): Update.
9845 * gdb/ui-file.c (gdb_flush): Rename to...
9846 (ui_file_flush): ...this.
9847 (stderr_file::write): Update.
9848 (stderr_file::puts): Update.
9849 * gdb/ui-file.h (gdb_flush): Rename to...
9850 (ui_file_flush): ...this.
9851 * gdb/utils.c (gdb_flush): Add function.
9852 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 9853
5abbbe1d
TT
98542020-02-07 Tom Tromey <tromey@adacore.com>
9855
9856 PR breakpoints/24915:
9857 * source.c (find_and_open_source): Do not check basenames_may_differ.
9858
919adfe8
TT
98592020-02-07 Tom Tromey <tom@tromey.com>
9860
9861 * README: Update gdbserver documentation.
9862 * gdbserver: Move to top level.
9863 * configure.tgt (build_gdbserver): Remove.
9864 * configure.ac: Remove --enable-gdbserver.
9865 * configure: Rebuild.
9866 * Makefile.in (distclean): Don't mention gdbserver.
9867
1d5d29e7
SV
98682020-02-06 Shahab Vahedi <shahab@synopsys.com>
9869
9870 * source-cache.c (source_cache::ensure): Surround
9871 get_plain_source_lines with a try/catch.
9872 (source_cache::get_line_charpos): Get rid of try/catch
9873 and only check for the return value of "ensure".
9874 * tui/tui-source.c (tui_source_window::set_contents):
9875 Simplify "nlines" calculation.
9876
6eb1129c
SV
98772020-02-06 Shahab Vahedi <shahab@synopsys.com>
9878
9879 * MAINTAINERS (Write After Approval): Add myself.
9880
c6a42d11
CB
98812020-02-05 Christian Biesinger <cbiesinger@google.com>
9882
9883 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
9884 function call.
9885
c8ecdda6
CB
98862020-02-05 Christian Biesinger <cbiesinger@google.com>
9887
9888 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
9889
f6480e70
MR
98902020-02-05 Maciej W. Rozycki <macro@wdc.com>
9891
9892 * nat/riscv-linux-tdesc.h: New file.
9893 * nat/riscv-linux-tdesc.c: New file, taking code from...
9894 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9895 ... here.
9896 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
9897 NATDEPFILES.
9898
dcc9fbc6
AB
98992020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
9900
9901 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
9902 we don't set the fake simulator ptid to the null_ptid.
9903
719546c4
SM
99042020-02-03 Simon Marchi <simon.marchi@efficios.com>
9905
9906 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
9907 * gdbthread.h (class thread_info) <resumed>: Likewise.
9908 * infrun.c (resume_1): Likewise.
9909 (proceed): Likewise.
9910 (infrun_thread_stop_requested): Likewise.
9911 (stop_all_threads): Likewise.
9912 (handle_inferior_event): Likewise.
9913 (restart_threads): Likewise.
9914 (finish_step_over): Likewise.
9915 (keep_going_stepped_thread): Likewise.
9916 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
9917 (linux_handle_extended_wait): Likewise.
9918 * record-btrace.c (get_thread_current_frame_id): Likewise.
9919 * record-full.c (record_full_wait_1): Likewise.
9920 * remote.c (remote_target::process_initial_stop_replies): Likewise.
9921 * target.c (target_resume): Likewise.
9922 * thread.c (set_running_thread): Likewise.
9923
e409c542
AKS
99242020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9925
9926 * f-valprint.c (f77_print_array_1): Changed datatype of index
9927 variable to LONGEST from int to enable it to contain bound
9928 values correctly.
9929
ee98c0da
MR
99302020-02-03 Maciej W. Rozycki <macro@wdc.com>
9931
9932 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
9933 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
9934 offsets according to FLEN determined.
9935 (riscv_linux_nat_target::read_description): Determine FLEN
9936 dynamically.
9937 (riscv_linux_nat_target::fetch_registers): Size regset buffer
9938 according to FLEN determined.
9939 (riscv_linux_nat_target::store_registers): Likewise.
9940
aa66aac4
SV
99412020-02-01 Shahab Vahedi <shahab@synopsys.com>
9942
9943 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
9944 when reg->group is empty and reggroup is not.
9945
fd9faca8
TT
99462020-01-31 Tom Tromey <tromey@adacore.com>
9947
9948 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
9949 Call beneath target's mourn_inferior after unpushing.
9950
42330a68
AB
99512020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
9952
9953 PR tui/9765
9954 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
9955 have enough lines to fill the screen, still return the lowest
9956 address we found.
9957
7a27a45b
AB
99582020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
9959
9960 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
9961 '-', '<', and '>' commands.
9962
c47f70e2
PA
99632020-01-29 Pedro Alves <palves@redhat.com>
9964 Sergio Durigan Junior <sergiodj@redhat.com>
9965
9966 * infcmd.c (construct_inferior_arguments): Assert that
9967 'argc' is greater than 0.
9968
5133a315
LM
99692020-01-29 Luis Machado <luis.machado@linaro.org>
9970
9971 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
9972 (BRK_INSN_MASK): Define to 0xd4200000.
9973 (aarch64_program_breakpoint_here_p): New function.
9974 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
9975 * arch-utils.c (default_program_breakpoint_here_p): Moved from
9976 breakpoint.c.
9977 * arch-utils.h (default_program_breakpoint_here_p): Moved from
9978 breakpoint.h
9979 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
9980 call gdbarch_program_breakpoint_here_p.
9981 (program_breakpoint_here): Moved to arch-utils.c, renamed to
9982 default_program_breakpoint_here_p, changed return type to bool and
9983 simplified.
9984 * breakpoint.h (program_breakpoint_here): Moved prototype to
9985 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
9986 return type to bool.
9987 * gdbarch.c: Regenerate.
9988 * gdbarch.h: Regenerate.
9989 * gdbarch.sh (program_breakpoint_here_p): New method.
9990 * infrun.c (handle_signal_stop): Call
9991 gdbarch_program_breakpoint_here_p.
9992
168f8c6b
TT
99932020-01-26 Tom Tromey <tom@tromey.com>
9994
9995 * ctfread.c (struct ctf_fp_info): Reindent.
9996 (_initialize_ctfread): Remove.
9997
128a391f
TT
99982020-01-26 Tom Tromey <tom@tromey.com>
9999
10000 * psymtab.c (partial_map_expand_apply)
10001 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
10002 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
10003 (psym_print_stats, psym_expand_symtabs_for_function)
10004 (psym_map_symbol_filenames, psym_map_matching_symbols)
10005 (psym_expand_symtabs_matching)
10006 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
10007 (maintenance_check_psymtabs): Use new methods.
10008 * psympriv.h (struct partial_symtab) <readin_p,
10009 get_compunit_symtab>: New methods.
10010 <readin, compunit_symtab>: Remove members.
10011 (struct standard_psymtab): New.
10012 (struct legacy_psymtab): Derive from standard_psymtab.
10013 * dwarf2read.h (struct dwarf2_psymtab): Derive from
10014 standard_psymtab.
10015 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
10016
0494dbec
TT
100172020-01-26 Tom Tromey <tom@tromey.com>
10018
10019 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
10020 read_dependencies. Add assert.
10021 * psymtab.c (partial_symtab::read_dependencies): New method.
10022 * psympriv.h (struct partial_symtab) <read_dependencies>: New
10023 method.
10024 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
10025 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
10026 read_dependencies.
10027 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
10028 Add assert.
10029
8566b89b
TT
100302020-01-26 Tom Tromey <tom@tromey.com>
10031
10032 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
10033 Call expand_psymtab.
10034 (xcoff_read_symtab): Call expand_psymtab.
10035 (xcoff_start_psymtab, xcoff_end_psymtab): Set
10036 legacy_expand_psymtab.
10037 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
10038 method.
10039 (struct legacy_psymtab) <expand_psymtab>: Implement.
10040 <legacy_expand_psymtab>: New member.
10041 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
10042 (parse_partial_symbols): Set legacy_expand_psymtab.
10043 (psymtab_to_symtab_1): Change argument order. Call
10044 expand_psymtab.
10045 (new_psymtab): Set legacy_expand_psymtab.
10046 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
10047 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
10048 expand_psymtab.
10049 (dwarf2_psymtab::expand_psymtab): Rename from
10050 psymtab_to_symtab_1. Call expand_psymtab.
10051 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
10052 (dbx_end_psymtab): Likewise.
10053 (dbx_psymtab_to_symtab_1): Change argument order. Call
10054 expand_psymtab.
10055 (dbx_read_symtab): Call expand_psymtab.
10056 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
10057 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
10058 (ctf_psymtab::read_symtab): Call expand_psymtab.
10059
077cbab2
TT
100602020-01-26 Tom Tromey <tom@tromey.com>
10061
10062 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
10063 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
10064 messages.
10065 * mdebugread.c (mdebug_read_symtab): Remove prints.
10066 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
10067 assert.
10068 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
10069
891813be
TT
100702020-01-26 Tom Tromey <tom@tromey.com>
10071
10072 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
10073 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
10074 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
10075 legacy_symtab.
10076 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
10077 * psymtab.c (psymtab_to_symtab): Call method.
10078 (dump_psymtab): Update.
10079 * psympriv.h (struct partial_symtab): Add virtual destructor.
10080 <read_symtab>: New method.
10081 (struct legacy_symtab): New.
10082 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
10083 (struct pst_map) <pst>: Now a legacy_psymtab.
10084 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
10085 (new_psymtab): Use legacy_psymtab.
10086 * dwarf2read.h (struct dwarf2_psymtab): New.
10087 (struct dwarf2_per_cu_data) <psymtab>: Use it.
10088 * dwarf2read.c (dwarf2_create_include_psymtab)
10089 (dwarf2_build_include_psymtabs, create_type_unit_group)
10090 (create_partial_symtab, process_psymtab_comp_unit_reader)
10091 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
10092 (set_partial_user): Use dwarf2_psymtab.
10093 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
10094 (psymtab_to_symtab_1, process_full_comp_unit)
10095 (process_full_type_unit, dwarf2_ranges_read)
10096 (dwarf2_get_pc_bounds, psymtab_include_file_name)
10097 (dwarf_decode_lines): Use dwarf2_psymtab.
10098 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
10099 (add_address_entry_worker, write_one_signatured_type)
10100 (recursively_count_psymbols, recursively_write_psymbols)
10101 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
10102 (write_debug_names): Likewise.
10103 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
10104 <pst>: Now a legacy_psymtab.
10105 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
10106 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
10107 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
10108 * ctfread.c (struct ctf_psymtab): New.
10109 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
10110 ctf_psymtab.
10111 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
10112 (create_partial_symtab): Return a ctf_psymtab.
10113 (scan_partial_symbols): Update.
10114
c3693a1d
TT
101152020-01-26 Tom Tromey <tom@tromey.com>
10116
10117 * xcoffread.c (xcoff_start_psymtab): Use new.
10118 * psymtab.c (partial_symtab::partial_symtab): New constructor,
10119 renamed from start_psymtab_common.
10120 * psympriv.h (struct partial_symtab): Add new constructor.
10121 (start_psymtab_common): Don't declare.
10122 * mdebugread.c (parse_partial_symbols): Use new.
10123 * dwarf2read.c (create_partial_symtab): Use new.
10124 * dbxread.c (start_psymtab): Use new.
10125 * ctfread.c (create_partial_symtab): Use new.
10126
32caafd0
TT
101272020-01-26 Tom Tromey <tom@tromey.com>
10128
10129 * xcoffread.c (xcoff_end_psymtab): Use new.
10130 * psymtab.c (start_psymtab_common): Use new.
10131 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
10132 Update.
10133 * psympriv.h (struct partial_symtab): Add parameters to
10134 constructor. Don't inline.
10135 (allocate_psymtab): Don't declare.
10136 * mdebugread.c (new_psymtab): Use new.
10137 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
10138 * dbxread.c (dbx_end_psymtab): Use new.
10139
abaa2f23
TT
101402020-01-26 Tom Tromey <tom@tromey.com>
10141
10142 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
10143 allocate_psymtab. Update documentation.
10144 * psymtab.c (psymtab_storage::install_psymtab): Rename from
10145 allocate_psymtab. Do not use new.
10146 (allocate_psymtab): Use new. Update.
10147
6d94535f
TT
101482020-01-26 Tom Tromey <tom@tromey.com>
10149
10150 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
10151 * psymtab.c (psym_print_stats): Update.
10152 * psympriv.h (struct partial_symtab) <readin,
10153 psymtabs_addrmap_supported, anonymous>: Now bool.
10154 * mdebugread.c (psymtab_to_symtab_1): Update.
10155 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
10156 (build_type_psymtabs_reader, psymtab_to_symtab_1)
10157 (process_full_comp_unit, process_full_type_unit): Update.
10158 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
10159 * ctfread.c (psymtab_to_symtab): Update.
10160
6f17252b
TT
101612020-01-26 Tom Tromey <tom@tromey.com>
10162
10163 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
10164 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
10165 * psymtab.c (psymtab_storage): Delete psymtabs.
10166 (psymtab_storage::allocate_psymtab): Use new.
10167 (psymtab_storage::discard_psymtab): Use delete.
10168 * psympriv.h (struct partial_symtab): Add constructor and
10169 initializers.
10170
f6f1cebc
TT
101712020-01-26 Tom Tromey <tom@tromey.com>
10172
10173 * machoread.c: Do not include psympriv.h.
10174
e47e48f6
PW
101752020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10176
10177 * NEWS: Mention the new option and the set/show commands.
10178
a2fedca9
PW
101792020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10180
10181 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
10182 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
10183 (validate_exec_file): New variables, enums, functions.
10184 (exec_file_locate_attach, print_section_info): Style the filenames.
10185 (_initialize_exec): Install show_exec_file_mismatch_command and
10186 set_exec_file_mismatch_command.
10187 * gdbcore.h (validate_exec_file): Declare.
10188 * infcmd.c (attach_command): Call validate_exec_file.
10189 * remote.c ( remote_target::remote_add_inferior): Likewise.
10190
7ffa82e1
AB
101912020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10192
10193 * frame.c (find_frame_sal): Move call to get_next_frame into more
10194 inner scope.
10195 * inline-frame.c (inilne_state) <inline_state>: Update argument
10196 types.
10197 (inilne_state) <skipped_symbol>: Rename to...
10198 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
10199 (skip_inline_frames): Build vector of skipped symbols and use this
10200 to reate the inline_state.
10201 (inline_skipped_symbol): Add a comment and some assertions, fetch
10202 skipped symbol from the list.
10203
3d92a3e3
AB
102042020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10205
10206 * buildsym.c (lte_is_less_than): Delete.
10207 (buildsym_compunit::end_symtab_with_blockvector): Create local
10208 lambda function to sort line table entries, and use
10209 std::stable_sort instead of std::sort.
10210 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
10211 markers when looking for a previous line.
10212
94a72be7
AB
102132020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10214
10215 * dwarf2read.c (lnp_state_machine::record_line): Include
10216 end_sequence parameter in debug print out. Record the line if we
10217 are at an end_sequence marker even if it's not the start of a
10218 statement.
10219 * symmisc.c (maintenance_print_one_line_table): Print end of
10220 sequence markers with 'END' not '0'.
10221
53af73bf
PA
102222020-01-24 Pedro Alves <palves@redhat.com>
10223
10224 PR gdb/25410
10225 * thread.c (scoped_restore_current_thread::restore): Use
10226 switch_to_inferior_no_thread.
10227 * exec.c: Include "progspace-and-thread.h".
10228 (add_target_sections, remove_target_sections):
10229 scoped_restore_current_pspace_and_thread instead of
10230 scoped_restore_current_thread.
10231 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
10232 and aspace to the inferior before calling clone_program_space.
10233 Remove stale comment.
10234
3050c6f4
CB
102352020-01-24 Christian Biesinger <cbiesinger@google.com>
10236
10237 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
10238 (arm_netbsd_nat_target::fetch_registers): ...this.
10239 (arm_nbsd_nat_target::store_registers): Rename to...
10240 (arm_netbsd_nat_target::store_registers): ...this.
10241
73685c7e
CB
102422020-01-24 Christian Biesinger <cbiesinger@google.com>
10243
10244 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10245 register_t.
10246
89203d40
CB
102472020-01-24 Christian Biesinger <cbiesinger@google.com>
10248
10249 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
10250 Update comment.
10251 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
10252 Likewise.
10253 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
10254 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
10255 the correct replacement (iterate_over_regset_sections).
10256 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
10257 Update comment.
10258
1ba1ac88
AB
102592020-01-24 Graham Markall <graham.markall@embecosm.com>
10260
10261 PR gdb/23718
10262 * gdb/python/python.c (execute_gdb_command): Call
10263 async_enable_stdin in catch block.
10264
f3364a6d
AB
102652020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10266
10267 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
10268 SWITCH_THRU_ALL_UIS.
10269
733d0a67
AB
102702020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10271
10272 PR tui/9765
10273 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
10274 comment, add extra parameter, and update to store previous symbol
10275 when appropriate.
10276 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
10277 add extra parameter.
10278 * tui/tui-disasm.c (tui_disassemble): Update header comment,
10279 remove unneeded parameter, add try/catch around gdb_print_insn,
10280 rewrite to add items to asm_lines vector.
10281 (tui_find_backward_disassembly_start_address): New function.
10282 (tui_find_disassembly_address): Updated throughout.
10283 (tui_disasm_window::set_contents): Update for changes to
10284 tui_disassemble.
10285 (tui_disasm_window::do_scroll_vertical): No need to adjust the
10286 number of lines to scroll.
10287
b3b3bada
SM
102882020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
10289
10290 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
10291 (SECT_OFF_DATA): Likewise.
10292 (SECT_OFF_RODATA): Likewise.
10293 (SECT_OFF_TEXT): Likewise.
10294 (SECT_OFF_BSS): Likewise.
10295 (struct objfile) <text_section_offset, data_section_offset>: New
10296 methods.
10297 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
10298 objfile::text_section_offset.
10299 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
10300 * coffread.c (coff_symtab_read): Likewise.
10301 (enter_linenos): Likewise.
10302 (process_coff_symbol): Likewise.
10303 * ctfread.c (get_objfile_text_range): Likewise.
10304 * dtrace-probe.c (dtrace_probe::get_relocated_address):
10305 Use objfile::data_section_offset.
10306 * dwarf2-frame.c (execute_cfa_program): Use
10307 objfile::text_section_offset.
10308 (dwarf2_frame_find_fde): Likewise.
10309 * dwarf2read.c (create_addrmap_from_index): Likewise.
10310 (create_addrmap_from_aranges): Likewise.
10311 (dw2_find_pc_sect_compunit_symtab): Likewise.
10312 (process_psymtab_comp_unit_reader): Likewise.
10313 (add_partial_symbol): Likewise.
10314 (add_partial_subprogram): Likewise.
10315 (process_full_comp_unit): Likewise.
10316 (read_file_scope): Likewise.
10317 (read_func_scope): Likewise.
10318 (read_lexical_block_scope): Likewise.
10319 (read_call_site_scope): Likewise.
10320 (dwarf2_rnglists_process): Likewise.
10321 (dwarf2_ranges_process): Likewise.
10322 (dwarf2_ranges_read): Likewise.
10323 (dwarf_decode_lines_1): Likewise.
10324 (new_symbol): Likewise.
10325 (dwarf2_fetch_die_loc_sect_off): Likewise.
10326 (dwarf2_per_cu_text_offset): Likewise.
10327 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
10328 * hppa-tdep.c (read_unwind_info): Likewise.
10329 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
10330 * psympriv.h (struct partial_symtab): Likewise.
10331 * psymtab.c (find_pc_sect_psymtab): Likewise.
10332 * solib-svr4.c (enable_break): Likewise.
10333 * stap-probe.c (relocate_address): Use
10334 objfile::data_section_offset.
10335 * xcoffread.c (enter_line_range): Use
10336 objfile::text_section_offset.
10337 (read_xcoff_symtab): Likewise.
10338
ab53f382
SM
103392020-01-23 Simon Marchi <simon.marchi@efficios.com>
10340
10341 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
10342 declaration to narrower scopes.
10343
e7eee665
SM
103442020-01-23 Simon Marchi <simon.marchi@efficios.com>
10345
10346 * darwin-nat.h (struct darwin_exception_msg, enum
10347 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
10348 Move up.
10349 (class darwin_nat_target) <wait_1, check_new_threads,
10350 decode_exception_message, decode_message, stop_inferior,
10351 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
10352 * darwin-nat.c (darwin_check_new_threads): Rename to...
10353 (darwin_nat_target::check_new_threads): ... this.
10354 (darwin_suspend_inferior_it): Remove.
10355 (darwin_decode_exception_message): Rename to...
10356 (darwin_nat_target::decode_exception_message): ... this.
10357 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
10358 (darwin_decode_message): Rename to...
10359 (darwin_nat_target::decode_message): ... this.
10360 (cancel_breakpoint): Rename to...
10361 (darwin_nat_target::cancel_breakpoint): ... this.
10362 (darwin_wait): Rename to...
10363 (darwin_nat_target::wait_1): ... this. Use range-based for loop
10364 instead of iterate_over_inferiors.
10365 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
10366 (darwin_stop_inferior): Rename to...
10367 (darwin_nat_target::stop_inferior): ... this.
10368 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
10369 (darwin_init_thread_list): Rename to...
10370 (darwin_nat_target::init_thread_list): ... this.
10371 (darwin_ptrace_him): Rename to...
10372 (darwin_nat_target::ptrace_him): ... this.
10373 (darwin_nat_target::create_inferior): Pass lambda function to
10374 fork_inferior.
10375 (darwin_nat_target::detach): Call stop_inferior instead of
10376 darwin_stop_inferior.
10377 * fork-inferior.h (fork_inferior): Change init_trace_fun
10378 parameter to gdb::function_view.
10379 * fork-inferior.c (fork_inferior): Likewise.
10380
c162ed3e
HD
103812020-01-23 Hannes Domani <ssbssa@yahoo.de>
10382
10383 * i386-cygwin-tdep.c (core_process_module_section): Update.
10384 * windows-nat.c (struct lm_info_windows): Add text_offset.
10385 (windows_xfer_shared_libraries): Update.
10386 * windows-tdep.c (windows_xfer_shared_library):
10387 Add text_offset_cached argument.
10388 * windows-tdep.h (windows_xfer_shared_library): Update.
10389
a1237872
SM
103902020-01-21 Simon Marchi <simon.marchi@efficios.com>
10391
10392 * gdbarch.sh: Add declaration for _initialize_gdbarch.
10393
b3ee6dd9
SM
103942020-01-21 Simon Marchi <simon.marchi@efficios.com>
10395
10396 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
10397 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
10398 replace with range-based for.
10399 (gdbsim_interrupt_inferior): Remove.
10400 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
10401 with a range-based for. Inline code from
10402 gdbsim_interrupt_inferior.
10403
f9fac3c8
SM
104042020-01-21 Simon Marchi <simon.marchi@efficios.com>
10405
10406 * infrun.c (proceed): Fix indentation.
10407
f6474de9
TT
104082020-01-21 Tom Tromey <tromey@adacore.com>
10409
10410 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
10411 * python/python.c (python_extension_ops): Update.
10412 (gdbpy_colorize): New function.
10413 * python/lib/gdb/__init__.py (colorize): New function.
10414 * extension.h (ext_lang_colorize): Declare.
10415 * extension.c (ext_lang_colorize): New function.
10416 * extension-priv.h (struct extension_language_ops) <colorize>: New
10417 member.
10418 * cli/cli-style.c (_initialize_cli_style): Update help text.
10419
f0c702d4
LM
104202020-01-21 Luis Machado <luis.machado@linaro.org>
10421
10422 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
10423 <cond>: Change type to bool.
10424 (aarch64_displaced_step_b_cond): Update cond to use bool type.
10425 (aarch64_displaced_step_cb): Likewise.
10426 (aarch64_displaced_step_tb): Likewise.
10427
1ab139e5
LM
104282020-01-21 Luis Machado <luis.machado@linaro.org>
10429
10430 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
10431 output.
10432
0c271889
LM
104332020-01-21 Luis Machado <luis.machado@linaro.org>
10434
10435 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
10436 <pc_adjust>: Adjust the documentation.
10437 (aarch64_displaced_step_fixup): Check if PC really moved before
10438 adjusting it.
10439
4d89c1c7
TT
104402020-01-19 Tom Tromey <tom@tromey.com>
10441
10442 * disasm.c (~gdb_disassembler): New destructor.
10443 (gdb_buffered_insn_length): Call disassemble_free_target.
10444 * disasm.h (class gdb_disassembler): Declare destructor. Use
10445 DISABLE_COPY_AND_ASSIGN.
10446
c0ab21c2
TT
104472020-01-19 Tom Tromey <tom@tromey.com>
10448
10449 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
10450 (die_reader_func_ftype): Remove.
10451 (cutu_reader): New class.
10452 (dw2_get_file_names_reader): Remove "data" parameter.
10453 (dw2_get_file_names): Use cutu_reader.
10454 (create_debug_type_hash_table): Update.
10455 (read_cutu_die_from_dwo): Update comment.
10456 (lookup_dwo_unit): Add dwo_name parameter.
10457 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
10458 die_reader_func_ftype and data parameters.
10459 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
10460 Remove die_reader_func_ftype and data parameters.
10461 (~cutu_reader): New; from init_cutu_and_read_dies.
10462 (cutu_reader::cutu_reader): Rename from
10463 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
10464 and data parameters.
10465 (init_cutu_and_read_dies_simple): Remove.
10466 (struct process_psymtab_comp_unit_data): Remove.
10467 (process_psymtab_comp_unit_reader): Remove data parameter; add
10468 want_partial_unit and pretend_language parameters.
10469 (process_psymtab_comp_unit): Use cutu_reader.
10470 (build_type_psymtabs_reader): Remove data parameter.
10471 (build_type_psymtabs_1): Use cutu_reader.
10472 (process_skeletonless_type_unit): Likewise.
10473 (load_partial_comp_unit_reader): Remove.
10474 (load_partial_comp_unit): Use cutu_reader.
10475 (load_full_comp_unit_reader): Remove.
10476 (load_full_comp_unit): Use cutu_reader.
10477 (struct create_dwo_cu_data): Remove.
10478 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
10479 dwo_unit parameters.
10480 (create_cus_hash_table): Use cutu_reader.
10481 (struct dwarf2_read_addr_index_data): Remove.
10482 (dwarf2_read_addr_index_reader): Remove.
10483 (dwarf2_read_addr_index): Use cutu_reader.
10484 (read_signatured_type_reader): Remove.
10485 (read_signatured_type): Use cutu_reader.
10486
45bbae5c
TT
104872020-01-19 Tom Tromey <tom@tromey.com>
10488
10489 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
10490 * tui/tui-wingeneral.h (class tui_suppress_output): New.
10491 (tui_wrefresh): Declare.
10492 * tui/tui-wingeneral.c (suppress_output): New global.
10493 (tui_suppress_output, ~tui_suppress_output): New constructor and
10494 destructor.
10495 (tui_wrefresh): New function.
10496 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
10497 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
10498 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
10499 method.
10500 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
10501 tui_wrefresh.
10502 (tui_data_window::no_refresh): New method.
10503 (tui_data_item_window::refresh_window): Call tui_wrefresh.
10504 (tui_reg_command): Use tui_suppress_output
10505 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
10506 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
10507 method.
10508 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
10509
4f13c1c0
TT
105102020-01-19 Tom Tromey <tom@tromey.com>
10511
10512 * tui/tui-winsource.c (tui_update_source_windows_with_line):
10513 Handle case where symtab is null.
10514
fa47e446
SM
105152020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
10516
10517 * linux-fork.c (one_fork_p): Simplify.
10518
26f42329
SM
105192020-01-17 Simon Marchi <simon.marchi@efficios.com>
10520
10521 * top.c (struct qt_args): Remove.
10522 (kill_or_detach): Change return type to void, replace `void *`
10523 parameter with a proper one.
10524 (print_inferior_quit_action): Likewise.
10525 (quit_confirm): Use range-based for loop to iterate over inferiors.
10526 (quit_force): Likewise.
10527
a9ac81b1
SM
105282020-01-17 Simon Marchi <simon.marchi@efficios.com>
10529
10530 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
10531 `void *` parameter with proper parameters.
10532 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
10533 (print_one_inferior): Change return type to void, replace `void *`
10534 parameter with proper parameters.
10535 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
10536 inferiors.
10537 (get_other_inferior): Remove.
10538 (mi_cmd_remove_inferior): Use range-based loop to iterate over
10539 inferiors.
10540
788eca49
SM
105412020-01-17 Simon Marchi <simon.marchi@efficios.com>
10542
10543 * mi/mi-interp.c (report_initial_inferior): Remove.
10544 (mi_interp::init): Use range-based for to iterate over inferiors.
10545
d9bc85b6
SM
105462020-01-17 Simon Marchi <simon.marchi@efficios.com>
10547
10548 * python/py-inferior.c (build_inferior_list): Remove.
10549 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
10550
40c94099
CB
105512020-01-16 Christian Biesinger <cbiesinger@google.com>
10552
10553 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
10554 (btrace_stitch_trace): Likewise.
10555 * charset.c (intermediate_encoding): Likewise (vaild).
10556 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
10557 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
10558 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
10559
e0cdfe3c
HD
105602020-01-16 Hannes Domani <ssbssa@yahoo.de>
10561
10562 * windows-tdep.c (windows_get_tlb_type):
10563 Add rtl_user_process_parameters type.
10564
790f1718 105652020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 10566 Norbert Lange <nolange79@gmail.com>
790f1718
PA
10567
10568 PR build/24805
10569 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
10570 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
10571 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
10572 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
10573 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
10574 (ps_plog): Redeclare exported functions with default visibility.
10575
3112ed97
NA
105762020-01-16 Nitika Achra <Nitika.Achra@amd.com>
10577
10578 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
10579 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
10580
8dc3273e
SM
105812020-01-15 Simon Marchi <simon.marchi@efficios.com>
10582
10583 * infcmd.c (post_create_inferior): Use get_thread_regcache
10584 instead of get_current_regcache.
10585
ff47f4f0
TT
105862020-01-14 Tom Tromey <tom@tromey.com>
10587
10588 PR symtab/12535:
10589 * python/python.c (gdbpy_decode_line): Treat empty string the same
10590 as no argument.
10591
975f45b7
TT
105922020-01-14 Tom Tromey <tom@tromey.com>
10593
10594 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
10595
25e57356
TT
105962020-01-14 Tom Tromey <tom@tromey.com>
10597
10598 * nat/linux-btrace.c: Don't include <config.h>.
10599 * nat/linux-ptrace.c: Don't include <config.h>.
10600 * nat/x86-linux-dregs.c: Don't include <config.h>.
10601
05ea2a05
TT
106022020-01-14 Tom Tromey <tom@tromey.com>
10603
10604 * configure: Rebuild.
10605 * configure.ac: Move many checks to ../gdbsupport/common.m4.
10606
01027315
TT
106072020-01-14 Tom Tromey <tom@tromey.com>
10608
10609 * nat/x86-linux-dregs.c: Include configh.h.
10610 * nat/linux-ptrace.c: Include configh.h.
10611 * nat/linux-btrace.c: Include configh.h.
10612 * defs.h: Include config.h, bfd.h.
10613 * configure.ac: Don't source common.host.
10614 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
10615 * configure: Rebuild.
10616 * acinclude.m4: Update path.
10617 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
10618 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
10619 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
10620 (CLIBS): Add LIBSUPPORT.
10621 (CDEPS): Likewise.
10622 (COMMON_SFILES): Remove gdbsupport files.
10623 (HFILES_NO_SRCDIR): Likewise.
10624 (stamp-version): Update path to create-version.sh.
10625 (ALLDEPFILES): Remove gdbsupport files.
10626
b2ceabe8
TT
106272020-01-14 Tom Tromey <tom@tromey.com>
10628
10629 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
10630 USE_WIN32API when needed.
10631 * configure.ac (USE_WIN32API): Don't define.
10632 (WIN32LIBS): Use WIN32APILIBS.
10633 * configure: Rebuild.
10634
25c51f71
TT
106352020-01-14 Tom Tromey <tom@tromey.com>
10636
10637 * configure: Rebuild.
10638 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
10639
717c684d
BE
106402020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
10641
10642 * skip.c (skip_function_command): Make skip w/o arguments use the
10643 name of the inlined function if pc is inside any inlined function.
10644
7da6a5b9
LM
106452020-01-14 Luis Machado <luis.machado@linaro.org>
10646
10647 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
10648 * infrun.c (resume_1): Likewise.
10649 (handle_inferior_event): Remove stale comment.
10650 * linux-nat.c (linux_nat_target::resume): Update comments.
10651 (save_stop_reason): Likewise.
10652 (linux_nat_filter_event): Likewise.
10653 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
10654
44e4c775
AB
106552020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10656
10657 * elfread.c (record_minimal_symbol): Set section index to 0 for
10658 non-allocatable sections.
10659
18a8505e
AT
10660
106612020-01-13 Ali Tamur <tamur@google.com>
10662
10663 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
10664 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
10665 to gdb::optional. Update comments.
10666 (dwo_file): Update comments.
10667 (read_attribute): Update API to take an additional out parameter,
10668 need_reprocess. This is used to mark attributes that need other
10669 attributes (e.g. str_offsets_base) for correct computation which may not
10670 have been read yet.
10671 (read_attribute_reprocess): New function declaration.
10672 (read_addr_index): Likewise.
10673 (read_dwo_str_index): Likewise.
10674 (read_stub_str_index): Likewise.
10675 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
10676 (lookup_addr_base): New function definition.
10677 (lookup_ranges_base): Likewise.
10678 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
10679 lookup_ranges_base.
10680 (init_cutu_and_read_dies): Update comments.
10681 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
10682 unit. This is used to inherit parent's str_offsets_base and addr_base.
10683 Update comments.
10684 (init_cutu_and_read_dies_simple): Reflect API changes.
10685 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
10686 (create_cus_hash_table): Change API to take parent compile unit.
10687 Reflect API changes.
10688 (open_and_init_dwo_file): Reflect API changes.
10689 (dwarf2_get_pc_bounds): Update comments.
10690 (dwarf2_record_block_ranges): Likewise.
10691 (read_full_die_1): Change implementation to reprocess attributes that
10692 need str_offsets_base and addr_base.
10693 (partial_die_info::read): Likewise.
10694 (read_attribute_reprocess): New function definition.
10695 (read_attribute_value): Change API to take an additional out parameter,
10696 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
10697 when a non-dwo compile unit has index based attributes.
10698 (read_attribute): Reflect API changes.
10699 (read_addr_index_1): Reflect API changes. Update comments.
10700 (dwarf2_read_addr_index_data): Reflect API changes.
10701 (dwarf2_read_addr_index): Likewise.
10702 (read_str_index): Change API and implementation. This becomes a helper
10703 to be used by the new string index related methods. Update error
10704 message and comments.
10705 (read_dwo_str_index): New function definition.
10706 (read_stub_str_index): Likewise.
10707 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
10708 * symfile.h (dwarf2_debug_sections): Likewise.
10709 * xcoffread.c (dwarf2_debug_sections): Likewise.
10710
0cac9354
SM
107112020-01-13 Simon Marchi <simon.marchi@efficios.com>
10712
10713 * gdbcore.h (struct core_fns) <core_read_registers>: Change
10714 core_reg_sect type to gdb_byte *.
10715 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
10716 * cris-tdep.c (fetch_core_registers): Likewise.
10717 * corelow.c (core_target::get_core_register_section): Change
10718 type of `contents` to gdb::byte_vector.
10719
9a6d629c
AB
107202020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10721
10722 * tui/tui-wingeneral.c (box_win): Position the title in the center
10723 of the border.
10724
d8b2f9e3
SM
107252020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10726
10727 * corelow.c (core_target::get_core_register_section): Use
10728 std::vector instead of alloca.
10729
bb564c58
SM
107302020-01-13 Simon Marchi <simon.marchi@efficios.com>
10731
10732 * warning.m4: Add -Wmissing-declarations to build_warnings.
10733 * configure: Re-generate.
10734
6b366111
SM
107352020-01-13 Simon Marchi <simon.marchi@efficios.com>
10736
10737 * python/python.c (init__gdb_module): Add declaration.
10738
6c265988
SM
107392020-01-13 Simon Marchi <simon.marchi@efficios.com>
10740
10741 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
10742 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
10743 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
10744 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
10745 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
10746 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
10747 * ada-exp.y (_initialize_ada_exp): Add declaration.
10748 * ada-lang.c (_initialize_ada_language): Add declaration.
10749 * ada-tasks.c (_initialize_tasks): Add declaration.
10750 * agent.c (_initialize_agent): Add declaration.
10751 * aix-thread.c (_initialize_aix_thread): Add declaration.
10752 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
10753 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
10754 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
10755 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
10756 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
10757 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
10758 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
10759 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
10760 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
10761 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
10762 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
10763 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
10764 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
10765 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
10766 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
10767 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
10768 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
10769 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
10770 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
10771 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
10772 * annotate.c (_initialize_annotate): Add declaration.
10773 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
10774 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
10775 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
10776 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
10777 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
10778 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
10779 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
10780 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
10781 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
10782 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
10783 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
10784 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
10785 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
10786 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
10787 * auto-load.c (_initialize_auto_load): Add declaration.
10788 * auxv.c (_initialize_auxv): Add declaration.
10789 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
10790 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
10791 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
10792 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
10793 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
10794 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
10795 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
10796 * breakpoint.c (_initialize_breakpoint): Add declaration.
10797 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
10798 * btrace.c (_initialize_btrace): Add declaration.
10799 * charset.c (_initialize_charset): Add declaration.
10800 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
10801 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
10802 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
10803 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
10804 * cli/cli-script.c (_initialize_cli_script): Add declaration.
10805 * cli/cli-style.c (_initialize_cli_style): Add declaration.
10806 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
10807 * coffread.c (_initialize_coffread): Add declaration.
10808 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
10809 * compile/compile.c (_initialize_compile): Add declaration.
10810 * complaints.c (_initialize_complaints): Add declaration.
10811 * completer.c (_initialize_completer): Add declaration.
10812 * copying.c (_initialize_copying): Add declaration.
10813 * corefile.c (_initialize_core): Add declaration.
10814 * corelow.c (_initialize_corelow): Add declaration.
10815 * cp-abi.c (_initialize_cp_abi): Add declaration.
10816 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
10817 * cp-support.c (_initialize_cp_support): Add declaration.
10818 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
10819 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
10820 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
10821 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
10822 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
10823 * ctfread.c (_initialize_ctfread): Add declaration.
10824 * d-lang.c (_initialize_d_language): Add declaration.
10825 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
10826 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
10827 * dbxread.c (_initialize_dbxread): Add declaration.
10828 * dcache.c (_initialize_dcache): Add declaration.
10829 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
10830 * disasm.c (_initialize_disasm): Add declaration.
10831 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
10832 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
10833 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
10834 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
10835 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
10836 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
10837 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
10838 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
10839 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
10840 * elfread.c (_initialize_elfread): Add declaration.
10841 * exec.c (_initialize_exec): Add declaration.
10842 * extension.c (_initialize_extension): Add declaration.
10843 * f-lang.c (_initialize_f_language): Add declaration.
10844 * f-valprint.c (_initialize_f_valprint): Add declaration.
10845 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
10846 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
10847 * filesystem.c (_initialize_filesystem): Add declaration.
10848 * findcmd.c (_initialize_mem_search): Add declaration.
10849 * findvar.c (_initialize_findvar): Add declaration.
10850 * fork-child.c (_initialize_fork_child): Add declaration.
10851 * frame-base.c (_initialize_frame_base): Add declaration.
10852 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
10853 * frame.c (_initialize_frame): Add declaration.
10854 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
10855 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
10856 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
10857 * gcore.c (_initialize_gcore): Add declaration.
10858 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
10859 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
10860 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
10861 * gdbarch.c (_initialize_gdbarch): Add declaration.
10862 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
10863 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
10864 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
10865 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
10866 * go-lang.c (_initialize_go_language): Add declaration.
10867 * go32-nat.c (_initialize_go32_nat): Add declaration.
10868 * guile/guile.c (_initialize_guile): Add declaration.
10869 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
10870 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
10871 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
10872 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
10873 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
10874 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
10875 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
10876 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
10877 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
10878 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
10879 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
10880 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
10881 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
10882 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
10883 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
10884 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
10885 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
10886 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
10887 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
10888 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
10889 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
10890 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
10891 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
10892 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
10893 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
10894 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
10895 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
10896 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
10897 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
10898 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
10899 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
10900 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
10901 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
10902 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
10903 * infcall.c (_initialize_infcall): Add declaration.
10904 * infcmd.c (_initialize_infcmd): Add declaration.
10905 * inflow.c (_initialize_inflow): Add declaration.
10906 * infrun.c (_initialize_infrun): Add declaration.
10907 * interps.c (_initialize_interpreter): Add declaration.
10908 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
10909 * jit.c (_initialize_jit): Add declaration.
10910 * language.c (_initialize_language): Add declaration.
10911 * linux-fork.c (_initialize_linux_fork): Add declaration.
10912 * linux-nat.c (_initialize_linux_nat): Add declaration.
10913 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
10914 * linux-thread-db.c (_initialize_thread_db): Add declaration.
10915 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
10916 * m2-lang.c (_initialize_m2_language): Add declaration.
10917 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
10918 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
10919 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
10920 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
10921 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
10922 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
10923 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
10924 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
10925 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
10926 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
10927 * machoread.c (_initialize_machoread): Add declaration.
10928 * macrocmd.c (_initialize_macrocmd): Add declaration.
10929 * macroscope.c (_initialize_macroscope): Add declaration.
10930 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
10931 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
10932 * maint.c (_initialize_maint_cmds): Add declaration.
10933 * mdebugread.c (_initialize_mdebugread): Add declaration.
10934 * memattr.c (_initialize_mem): Add declaration.
10935 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
10936 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
10937 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
10938 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
10939 * mi/mi-main.c (_initialize_mi_main): Add declaration.
10940 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
10941 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
10942 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
10943 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
10944 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
10945 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
10946 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
10947 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
10948 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
10949 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
10950 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
10951 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
10952 * mipsread.c (_initialize_mipsread): Add declaration.
10953 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
10954 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
10955 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
10956 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
10957 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
10958 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
10959 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
10960 * nto-procfs.c (_initialize_procfs): Add declaration.
10961 * objc-lang.c (_initialize_objc_language): Add declaration.
10962 * observable.c (_initialize_observer): Add declaration.
10963 * opencl-lang.c (_initialize_opencl_language): Add declaration.
10964 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
10965 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
10966 * osabi.c (_initialize_gdb_osabi): Add declaration.
10967 * osdata.c (_initialize_osdata): Add declaration.
10968 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
10969 * parse.c (_initialize_parse): Add declaration.
10970 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
10971 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
10972 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
10973 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
10974 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
10975 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
10976 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
10977 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
10978 * printcmd.c (_initialize_printcmd): Add declaration.
10979 * probe.c (_initialize_probe): Add declaration.
10980 * proc-api.c (_initialize_proc_api): Add declaration.
10981 * proc-events.c (_initialize_proc_events): Add declaration.
10982 * proc-service.c (_initialize_proc_service): Add declaration.
10983 * procfs.c (_initialize_procfs): Add declaration.
10984 * producer.c (_initialize_producer): Add declaration.
10985 * psymtab.c (_initialize_psymtab): Add declaration.
10986 * python/python.c (_initialize_python): Add declaration.
10987 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
10988 * record-btrace.c (_initialize_record_btrace): Add declaration.
10989 * record-full.c (_initialize_record_full): Add declaration.
10990 * record.c (_initialize_record): Add declaration.
10991 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
10992 * regcache.c (_initialize_regcache): Add declaration.
10993 * reggroups.c (_initialize_reggroup): Add declaration.
10994 * remote-notif.c (_initialize_notif): Add declaration.
10995 * remote-sim.c (_initialize_remote_sim): Add declaration.
10996 * remote.c (_initialize_remote): Add declaration.
10997 * reverse.c (_initialize_reverse): Add declaration.
10998 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
10999 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
11000 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
11001 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
11002 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
11003 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
11004 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
11005 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
11006 Add declaration.
11007 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
11008 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
11009 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
11010 * rust-exp.y (_initialize_rust_exp): Add declaration.
11011 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
11012 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
11013 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
11014 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
11015 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
11016 * score-tdep.c (_initialize_score_tdep): Add declaration.
11017 * ser-go32.c (_initialize_ser_dos): Add declaration.
11018 * ser-mingw.c (_initialize_ser_windows): Add declaration.
11019 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
11020 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
11021 * ser-uds.c (_initialize_ser_socket): Add declaration.
11022 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
11023 * serial.c (_initialize_serial): Add declaration.
11024 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
11025 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
11026 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
11027 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
11028 * skip.c (_initialize_step_skip): Add declaration.
11029 * sol-thread.c (_initialize_sol_thread): Add declaration.
11030 * solib-aix.c (_initialize_solib_aix): Add declaration.
11031 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
11032 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
11033 * solib-frv.c (_initialize_frv_solib): Add declaration.
11034 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
11035 * solib-target.c (_initialize_solib_target): Add declaration.
11036 * solib.c (_initialize_solib): Add declaration.
11037 * source-cache.c (_initialize_source_cache): Add declaration.
11038 * source.c (_initialize_source): Add declaration.
11039 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
11040 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
11041 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
11042 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
11043 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
11044 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
11045 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
11046 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
11047 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
11048 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
11049 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
11050 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
11051 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
11052 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
11053 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
11054 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
11055 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
11056 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
11057 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
11058 * stabsread.c (_initialize_stabsread): Add declaration.
11059 * stack.c (_initialize_stack): Add declaration.
11060 * stap-probe.c (_initialize_stap_probe): Add declaration.
11061 * std-regs.c (_initialize_frame_reg): Add declaration.
11062 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
11063 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
11064 * symfile.c (_initialize_symfile): Add declaration.
11065 * symmisc.c (_initialize_symmisc): Add declaration.
11066 * symtab.c (_initialize_symtab): Add declaration.
11067 * target.c (_initialize_target): Add declaration.
11068 * target-connection.c (_initialize_target_connection): Add
11069 declaration.
11070 * target-dcache.c (_initialize_target_dcache): Add declaration.
11071 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
11072 * thread.c (_initialize_thread): Add declaration.
11073 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
11074 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
11075 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
11076 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
11077 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
11078 * tracectf.c (_initialize_ctf): Add declaration.
11079 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
11080 * tracefile.c (_initialize_tracefile): Add declaration.
11081 * tracepoint.c (_initialize_tracepoint): Add declaration.
11082 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
11083 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
11084 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
11085 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
11086 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
11087 * tui/tui-win.c (_initialize_tui_win): Add declaration.
11088 * tui/tui.c (_initialize_tui): Add declaration.
11089 * typeprint.c (_initialize_typeprint): Add declaration.
11090 * ui-style.c (_initialize_ui_style): Add declaration.
11091 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
11092 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
11093 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
11094 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
11095 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
11096 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
11097 * unittests/filtered_iterator-selftests.c
11098 (_initialize_filtered_iterator_selftests): Add declaration.
11099 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
11100 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
11101 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
11102 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
11103 * unittests/main-thread-selftests.c
11104 (_initialize_main_thread_selftests): Add declaration.
11105 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
11106 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
11107 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
11108 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
11109 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
11110 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
11111 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
11112 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
11113 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
11114 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
11115 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
11116 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
11117 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
11118 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
11119 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
11120 declaration.
11121 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
11122 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
11123 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
11124 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
11125 * user-regs.c (_initialize_user_regs): Add declaration.
11126 * utils.c (_initialize_utils): Add declaration.
11127 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
11128 * valops.c (_initialize_valops): Add declaration.
11129 * valprint.c (_initialize_valprint): Add declaration.
11130 * value.c (_initialize_values): Add declaration.
11131 * varobj.c (_initialize_varobj): Add declaration.
11132 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
11133 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
11134 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
11135 * windows-nat.c (_initialize_windows_nat): Add declaration.
11136 (_initialize_check_for_gdb_ini): Add declaration.
11137 (_initialize_loadable): Add declaration.
11138 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
11139 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
11140 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
11141 * xcoffread.c (_initialize_xcoffread): Add declaration.
11142 * xml-support.c (_initialize_xml_support): Add declaration.
11143 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
11144 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
11145 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
11146 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
11147
e2de1eec
SM
111482020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11149
11150 * regformats/regdat.sh: Generate declaration for init function.
11151
e0037b4c
SM
111522020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11153
11154 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
11155 up.
11156 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
11157 close_one_inferior>: New methods.
11158 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
11159 pass down target to find_inferior_pid.
11160 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
11161 Pass down target to find_inferior_ptid.
11162 (gdbsim_target::create_inferior): Pass down target to
11163 add_thread_silent.
11164 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
11165 target down to find_inferior_ptid and switch_to_thread.
11166 (gdbsim_target::close): Update to call close_one_inferior.
11167 (struct resume_data): Remove.
11168 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
11169 directly, rather than through a void pointer.
11170 (gdbsim_target::resume): Update to call resume_one_inferior.
11171
58920b5b
SM
111722020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
11173
11174 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
11175
4ec89149
PA
111762020-01-12 Pedro Alves <palves@redhat.com>
11177
11178 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
11179 directly for the current inferior instead of
11180 discard_all_inferiors.
11181 (discard_all_inferiors): Delete.
11182
7c392d1d
TT
111832020-01-11 Tom Tromey <tom@tromey.com>
11184
11185 * tui/tui-wingeneral.c (box_win): Check cli_styling.
11186 * tui/tui-winsource.c (tui_source_window_base::refill): Use
11187 deprecated_safe_get_selected_frame.
11188
d9ebdab7
TBA
111892020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11190
11191 * inferior.c (print_inferior): Switch inferior before printing it.
11192
f3c469b9
PA
111932020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
11194 Pedro Alves <palves@redhat.com>
11195
11196 * progspace-and-thread.c (switch_to_program_space_and_thread):
11197 Assert there's an inferior for PSPACE. Use
11198 switch_to_inferior_no_thread to switch the inferior too.
11199 * progspace.c (program_space::~program_space): Call
11200 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
11201 (program_space::free_all_objfiles): Don't call clear_symtab_users
11202 here.
11203 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
11204
65c574f6
PA
112052020-01-10 Pedro Alves <palves@redhat.com>
11206
11207 * NEWS: Mention multi-target debugging, "info connections", and
11208 "add-inferior -no-connection".
11209
2f4fcf00
PA
112102020-01-10 Pedro Alves <palves@redhat.com>
11211
11212 * infrun.c: Include "target-connection.h".
11213 (check_multi_target_resumption): New.
11214 (proceed): Call it.
11215 * target-connection.c (make_target_connection_string): Make
11216 extern.
11217 * target-connection.h (make_target_connection_string): Declare.
11218
121b3efd
PA
112192020-01-10 Pedro Alves <palves@redhat.com>
11220
11221 * Makefile.in (COMMON_SFILES): Add target-connection.c.
11222 * inferior.c (uiout_field_connection): New function.
11223 (print_inferior): Add new "connection-id" column.
11224 (add_inferior_command): Show connection number/string of added
11225 inferior.
11226 * process-stratum-target.h
11227 (process_stratum_target::connection_string): New virtual method.
11228 (process_stratum_target::connection_number): New field.
11229 * remote.c (remote_target::connection_string): New override.
11230 * target-connection.c: New file.
11231 * target-connection.h: New file.
11232 * target.c (decref_target): Remove process_stratum targets from
11233 the connection list.
11234 (target_stack::push): Add process_stratum targets to the
11235 connection list.
11236
4f837581
PA
112372020-01-10 Pedro Alves <palves@redhat.com>
11238
11239 Revert:
11240 2016-04-12 Pedro Alves <palves@redhat.com>
11241 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
11242 Remove references to name.
11243 * serial.h (struct serial) <name>: Delete.
11244
f4ec508e
PA
112452020-01-10 Pedro Alves <palves@redhat.com>
11246
11247 * gdbarch-selftests.c (register_to_value_test): Remove "target
11248 already pushed" check.
11249
5b6d1e4f
PA
112502020-01-10 Pedro Alves <palves@redhat.com>
11251 John Baldwin <jhb@FreeBSD.org>
11252
11253 * aarch64-linux-nat.c
11254 (aarch64_linux_nat_target::thread_architecture): Adjust.
11255 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
11256 (task_command_1): Likewise.
11257 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
11258 (aix_thread_target::wait, aix_thread_target::fetch_registers)
11259 (aix_thread_target::store_registers)
11260 (aix_thread_target::thread_alive): Adjust.
11261 * amd64-fbsd-tdep.c: Include "inferior.h".
11262 (amd64fbsd_get_thread_local_address): Pass down target.
11263 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
11264 thread's gdbarch instead of target_gdbarch.
11265 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
11266 get_last_target_status.
11267 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
11268 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
11269 inferiors.
11270 (update_inserted_breakpoint_locations): Skip if inferiors with no
11271 execution.
11272 (update_global_location_list): When handling moribund locations,
11273 find representative inferior for location's pspace, and use thread
11274 count of its process_stratum target.
11275 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
11276 * bsd-uthread.c (bsd_uthread_target::wait): Use
11277 as_process_stratum_target and adjust thread_change_ptid and
11278 add_thread calls.
11279 (bsd_uthread_target::update_thread_list): Use
11280 as_process_stratum_target and adjust find_thread_ptid,
11281 thread_change_ptid and add_thread calls.
11282 * btrace.c (maint_btrace_packet_history_cmd): Adjust
11283 find_thread_ptid call.
11284 * corelow.c (add_to_thread_list): Adjust add_thread call.
11285 (core_target_open): Adjust add_thread_silent and thread_count
11286 calls.
11287 (core_target::pid_to_str): Adjust find_inferior_ptid call.
11288 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
11289 * event-top.c (async_disconnect): Pop targets from all inferiors.
11290 * exec.c (add_target_sections): Push exec target on all inferiors
11291 sharing the program space.
11292 (remove_target_sections): Remove the exec target from all
11293 inferiors sharing the program space.
11294 (exec_on_vfork): New.
11295 * exec.h (exec_on_vfork): Declare.
11296 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
11297 Pass it down.
11298 (fbsd_nat_target::update_thread_list): Adjust.
11299 (fbsd_nat_target::resume): Adjust.
11300 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
11301 down.
11302 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
11303 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
11304 get_thread_arch_regcache call.
11305 * fork-child.c (gdb_startup_inferior): Pass target down to
11306 startup_inferior and set_executing.
11307 * gdbthread.h (struct process_stratum_target): Forward declare.
11308 (add_thread, add_thread_silent, add_thread_with_info)
11309 (in_thread_list): Add process_stratum_target parameter.
11310 (find_thread_ptid(inferior*, ptid_t)): New overload.
11311 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
11312 parameter.
11313 (all_threads()): Delete overload.
11314 (all_threads, all_non_exited_threads): Add process_stratum_target
11315 parameter.
11316 (all_threads_safe): Use brace initialization.
11317 (thread_count): Add process_stratum_target parameter.
11318 (set_resumed, set_running, set_stop_requested, set_executing)
11319 (threads_are_executing, finish_thread_state): Add
11320 process_stratum_target parameter.
11321 (switch_to_thread): Use is_current_thread.
11322 * i386-fbsd-tdep.c: Include "inferior.h".
11323 (i386fbsd_get_thread_local_address): Pass down target.
11324 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
11325 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
11326 have_inferiors check.
11327 * inf-ptrace.c (inf_ptrace_target::create_inferior)
11328 (inf_ptrace_target::attach): Adjust.
11329 * infcall.c (run_inferior_call): Adjust.
11330 * infcmd.c (run_command_1): Pass target to
11331 scoped_finish_thread_state.
11332 (proceed_thread_callback): Skip inferiors with no execution.
11333 (continue_command): Rename 'all_threads' local to avoid hiding
11334 'all_threads' function. Adjust get_last_target_status call.
11335 (prepare_one_step): Adjust set_running call.
11336 (signal_command): Use user_visible_resume_target. Compare thread
11337 pointers instead of inferior_ptid.
11338 (info_program_command): Adjust to pass down target.
11339 (attach_command): Mark target's 'thread_executing' flag.
11340 (stop_current_target_threads_ns): New, factored out from ...
11341 (interrupt_target_1): ... this. Switch inferior before making
11342 target calls.
11343 * inferior-iter.h
11344 (struct all_inferiors_iterator, struct all_inferiors_range)
11345 (struct all_inferiors_safe_range)
11346 (struct all_non_exited_inferiors_range): Filter on
11347 process_stratum_target too. Remove explicit.
11348 * inferior.c (inferior::inferior): Push dummy target on target
11349 stack.
11350 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
11351 Add process_stratum_target parameter, and pass it down.
11352 (have_live_inferiors): Adjust.
11353 (switch_to_inferior_and_push_target): New.
11354 (add_inferior_command, clone_inferior_command): Handle
11355 "-no-connection" parameter. Use
11356 switch_to_inferior_and_push_target.
11357 (_initialize_inferior): Mention "-no-connection" option in
11358 the help of "add-inferior" and "clone-inferior" commands.
11359 * inferior.h: Include "process-stratum-target.h".
11360 (interrupt_target_1): Use bool.
11361 (struct inferior) <push_target, unpush_target, target_is_pushed,
11362 find_target_beneath, top_target, process_target, target_at,
11363 m_stack>: New.
11364 (discard_all_inferiors): Delete.
11365 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
11366 (all_inferiors, all_non_exited_inferiors): Add
11367 process_stratum_target parameter.
11368 * infrun.c: Include "gdb_select.h" and <unordered_map>.
11369 (target_last_proc_target): New global.
11370 (follow_fork_inferior): Push target on new inferior. Pass target
11371 to add_thread_silent. Call exec_on_vfork. Handle target's
11372 reference count.
11373 (follow_fork): Adjust get_last_target_status call. Also consider
11374 target.
11375 (follow_exec): Push target on new inferior.
11376 (struct execution_control_state) <target>: New field.
11377 (user_visible_resume_target): New.
11378 (do_target_resume): Call target_async.
11379 (resume_1): Set target's threads_executing flag. Consider resume
11380 target.
11381 (commit_resume_all_targets): New.
11382 (proceed): Also consider resume target. Skip threads of inferiors
11383 with no execution. Commit resumtion in all targets.
11384 (start_remote): Pass current inferior to wait_for_inferior.
11385 (infrun_thread_stop_requested): Consider target as well. Pass
11386 thread_info pointer to clear_inline_frame_state instead of ptid.
11387 (infrun_thread_thread_exit): Consider target as well.
11388 (random_pending_event_thread): New inferior parameter. Use it.
11389 (do_target_wait): Rename to ...
11390 (do_target_wait_1): ... this. Add inferior parameter, and pass it
11391 down.
11392 (threads_are_resumed_pending_p, do_target_wait): New.
11393 (prepare_for_detach): Adjust calls.
11394 (wait_for_inferior): New inferior parameter. Handle it. Use
11395 do_target_wait_1 instead of do_target_wait.
11396 (fetch_inferior_event): Adjust. Switch to representative
11397 inferior. Pass target down.
11398 (set_last_target_status): Add process_stratum_target parameter.
11399 Save target in global.
11400 (get_last_target_status): Add process_stratum_target parameter and
11401 handle it.
11402 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
11403 (context_switch): Check inferior_ptid == null_ptid before calling
11404 inferior_thread().
11405 (get_inferior_stop_soon): Pass down target.
11406 (wait_one): Rename to ...
11407 (poll_one_curr_target): ... this.
11408 (struct wait_one_event): New.
11409 (wait_one): New.
11410 (stop_all_threads): Adjust.
11411 (handle_no_resumed, handle_inferior_event): Adjust to consider the
11412 event's target.
11413 (switch_back_to_stepped_thread): Also consider target.
11414 (print_stop_event): Update.
11415 (normal_stop): Update. Also consider the resume target.
11416 * infrun.h (wait_for_inferior): Remove declaration.
11417 (user_visible_resume_target): New declaration.
11418 (get_last_target_status, set_last_target_status): New
11419 process_stratum_target parameter.
11420 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11421 process_stratum_target parameter, and use it.
11422 (clear_inline_frame_state (thread_info*)): New.
11423 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11424 process_stratum_target parameter.
11425 (clear_inline_frame_state (thread_info*)): Declare.
11426 * linux-fork.c (delete_checkpoint_command): Pass target down to
11427 find_thread_ptid.
11428 (checkpoint_command): Adjust.
11429 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
11430 instead of just tweaking inferior_ptid.
11431 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
11432 (exit_lwp): Pass target down to find_thread_ptid.
11433 (attach_proc_task_lwp_callback): Pass target down to
11434 add_thread/set_running/set_executing.
11435 (linux_nat_target::attach): Pass target down to
11436 thread_change_ptid.
11437 (get_detach_signal): Pass target down to find_thread_ptid.
11438 Consider last target status's target.
11439 (linux_resume_one_lwp_throw, resume_lwp)
11440 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
11441 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
11442 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
11443 (linux_nat_target::async_wait_fd): New.
11444 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
11445 target down.
11446 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
11447 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
11448 * linux-thread-db.c (struct thread_db_info::process_target): New
11449 field.
11450 (add_thread_db_info): Save target.
11451 (get_thread_db_info): New process_stratum_target parameter. Also
11452 match target.
11453 (delete_thread_db_info): New process_stratum_target parameter.
11454 Also match target.
11455 (thread_from_lwp): Adjust to pass down target.
11456 (thread_db_notice_clone): Pass down target.
11457 (check_thread_db_callback): Pass down target.
11458 (try_thread_db_load_1): Always push the thread_db target.
11459 (try_thread_db_load, record_thread): Pass target down.
11460 (thread_db_target::detach): Pass target down. Always unpush the
11461 thread_db target.
11462 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
11463 target down. Always unpush the thread_db target.
11464 (find_new_threads_callback, thread_db_find_new_threads_2)
11465 (thread_db_target::update_thread_list): Pass target down.
11466 (thread_db_target::pid_to_str): Pass current inferior down.
11467 (thread_db_target::get_thread_local_address): Pass target down.
11468 (thread_db_target::resume, maintenance_check_libthread_db): Pass
11469 target down.
11470 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
11471 * procfs.c (procfs_target::procfs_init_inferior): Declare.
11472 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
11473 (procfs_init_inferior): Rename to ...
11474 (procfs_target::procfs_init_inferior): ... this and adjust.
11475 (procfs_target::create_inferior, procfs_notice_thread)
11476 (procfs_do_thread_registers): Adjust.
11477 * ppc-fbsd-tdep.c: Include "inferior.h".
11478 (ppcfbsd_get_thread_local_address): Pass down target.
11479 * proc-service.c (ps_xfer_memory): Switch current inferior and
11480 program space as well.
11481 (get_ps_regcache): Pass target down.
11482 * process-stratum-target.c
11483 (process_stratum_target::thread_address_space)
11484 (process_stratum_target::thread_architecture): Pass target down.
11485 * process-stratum-target.h
11486 (process_stratum_target::threads_executing): New field.
11487 (as_process_stratum_target): New.
11488 * ravenscar-thread.c
11489 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
11490 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
11491 down.
11492 * record-btrace.c (record_btrace_target::info_record): Adjust.
11493 (record_btrace_target::record_method)
11494 (record_btrace_target::record_is_replaying)
11495 (record_btrace_target::fetch_registers)
11496 (get_thread_current_frame_id, record_btrace_target::resume)
11497 (record_btrace_target::wait, record_btrace_target::stop): Pass
11498 target down.
11499 * record-full.c (record_full_wait_1): Switch to event thread.
11500 Pass target down.
11501 * regcache.c (regcache::regcache)
11502 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
11503 process_stratum_target parameter and handle it.
11504 (current_thread_target): New global.
11505 (get_thread_regcache): Add process_stratum_target parameter and
11506 handle it. Switch inferior before calling target method.
11507 (get_thread_regcache): Pass target down.
11508 (get_thread_regcache_for_ptid): Pass target down.
11509 (registers_changed_ptid): Add process_stratum_target parameter and
11510 handle it.
11511 (registers_changed_thread, registers_changed): Pass target down.
11512 (test_get_thread_arch_aspace_regcache): New.
11513 (current_regcache_test): Define a couple local test_target_ops
11514 instances and use them for testing.
11515 (readwrite_regcache): Pass process_stratum_target parameter.
11516 (cooked_read_test, cooked_write_test): Pass mock_target down.
11517 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
11518 (get_thread_arch_aspace_regcache): Add process_stratum_target
11519 parameter.
11520 (regcache::target): New method.
11521 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
11522 (regcache::registers_changed_ptid): Add process_stratum_target
11523 parameter.
11524 (regcache::m_target): New field.
11525 (registers_changed_ptid): Add process_stratum_target parameter.
11526 * remote.c (remote_state::supports_vCont_probed): New field.
11527 (remote_target::async_wait_fd): New method.
11528 (remote_unpush_and_throw): Add remote_target parameter.
11529 (get_current_remote_target): Adjust.
11530 (remote_target::remote_add_inferior): Push target.
11531 (remote_target::remote_add_thread)
11532 (remote_target::remote_notice_new_inferior)
11533 (get_remote_thread_info): Pass target down.
11534 (remote_target::update_thread_list): Skip threads of inferiors
11535 bound to other targets. (remote_target::close): Don't discard
11536 inferiors. (remote_target::add_current_inferior_and_thread)
11537 (remote_target::process_initial_stop_replies)
11538 (remote_target::start_remote)
11539 (remote_target::remote_serial_quit_handler): Pass down target.
11540 (remote_target::remote_unpush_target): New remote_target
11541 parameter. Unpush the target from all inferiors.
11542 (remote_target::remote_unpush_and_throw): New remote_target
11543 parameter. Pass it down.
11544 (remote_target::open_1): Check whether the current inferior has
11545 execution instead of checking whether any inferior is live. Pass
11546 target down.
11547 (remote_target::remote_detach_1): Pass down target. Use
11548 remote_unpush_target.
11549 (extended_remote_target::attach): Pass down target.
11550 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
11551 (remote_target::append_resumption): Pass down target.
11552 (remote_target::append_pending_thread_resumptions)
11553 (remote_target::remote_resume_with_hc, remote_target::resume)
11554 (remote_target::commit_resume): Pass down target.
11555 (remote_target::remote_stop_ns): Check supports_vCont_probed.
11556 (remote_target::interrupt_query)
11557 (remote_target::remove_new_fork_children)
11558 (remote_target::check_pending_events_prevent_wildcard_vcont)
11559 (remote_target::remote_parse_stop_reply)
11560 (remote_target::process_stop_reply): Pass down target.
11561 (first_remote_resumed_thread): New remote_target parameter. Pass
11562 it down.
11563 (remote_target::wait_as): Pass down target.
11564 (unpush_and_perror): New remote_target parameter. Pass it down.
11565 (remote_target::readchar, remote_target::remote_serial_write)
11566 (remote_target::getpkt_or_notif_sane_1)
11567 (remote_target::kill_new_fork_children, remote_target::kill): Pass
11568 down target.
11569 (remote_target::mourn_inferior): Pass down target. Use
11570 remote_unpush_target.
11571 (remote_target::core_of_thread)
11572 (remote_target::remote_btrace_maybe_reopen): Pass down target.
11573 (remote_target::pid_to_exec_file)
11574 (remote_target::thread_handle_to_thread_info): Pass down target.
11575 (remote_target::async_wait_fd): New.
11576 * riscv-fbsd-tdep.c: Include "inferior.h".
11577 (riscv_fbsd_get_thread_local_address): Pass down target.
11578 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
11579 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
11580 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
11581 Adjust.
11582 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
11583 * solib-svr4.c (enable_break): Pass down target.
11584 * spu-multiarch.c (parse_spufs_run): Pass down target.
11585 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
11586 * target-delegates.c: Regenerate.
11587 * target.c (g_target_stack): Delete.
11588 (current_top_target): Return the current inferior's top target.
11589 (target_has_execution_1): Refer to the passed-in inferior's top
11590 target.
11591 (target_supports_terminal_ours): Check whether the initial
11592 inferior was already created.
11593 (decref_target): New.
11594 (target_stack::push): Incref/decref the target.
11595 (push_target, push_target, unpush_target): Adjust.
11596 (target_stack::unpush): Defref target.
11597 (target_is_pushed): Return bool. Adjust to refer to the current
11598 inferior's target stack.
11599 (dispose_inferior): Delete, and inline parts ...
11600 (target_preopen): ... here. Only dispose of the current inferior.
11601 (target_detach): Hold strong target reference while detaching.
11602 Pass target down.
11603 (target_thread_name): Add assertion.
11604 (target_resume): Pass down target.
11605 (target_ops::beneath, find_target_at): Adjust to refer to the
11606 current inferior's target stack.
11607 (get_dummy_target): New.
11608 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
11609 has a thread running.
11610 (initialize_targets): Rename to ...
11611 (_initialize_target): ... this.
11612 * target.h: Include "gdbsupport/refcounted-object.h".
11613 (struct target_ops): Inherit refcounted_object.
11614 (target_ops::shortname, target_ops::longname): Make const.
11615 (target_ops::async_wait_fd): New method.
11616 (decref_target): Declare.
11617 (struct target_ops_ref_policy): New.
11618 (target_ops_ref): New typedef.
11619 (get_dummy_target): Declare function.
11620 (target_is_pushed): Return bool.
11621 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
11622 (all_matching_threads_iterator::all_matching_threads_iterator):
11623 Handle filter target.
11624 * thread-iter.h (struct all_matching_threads_iterator, struct
11625 all_matching_threads_range, class all_non_exited_threads_range):
11626 Filter by target too. Remove explicit.
11627 * thread.c (threads_executing): Delete.
11628 (inferior_thread): Pass down current inferior.
11629 (clear_thread_inferior_resources): Pass down thread pointer
11630 instead of ptid_t.
11631 (add_thread_silent, add_thread_with_info, add_thread): Add
11632 process_stratum_target parameter. Use it for thread and inferior
11633 searches.
11634 (is_current_thread): New.
11635 (thread_info::deletable): Use it.
11636 (find_thread_ptid, thread_count, in_thread_list)
11637 (thread_change_ptid, set_resumed, set_running): New
11638 process_stratum_target parameter. Pass it down.
11639 (set_executing): New process_stratum_target parameter. Pass it
11640 down. Adjust reference to 'threads_executing'.
11641 (threads_are_executing): New process_stratum_target parameter.
11642 Adjust reference to 'threads_executing'.
11643 (set_stop_requested, finish_thread_state): New
11644 process_stratum_target parameter. Pass it down.
11645 (switch_to_thread): Also match inferior.
11646 (switch_to_thread): New process_stratum_target parameter. Pass it
11647 down.
11648 (update_threads_executing): Reimplement.
11649 * top.c (quit_force): Pop targets from all inferior.
11650 (gdb_init): Don't call initialize_targets.
11651 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
11652 Declare.
11653 (windows_add_thread, windows_delete_thread): Adjust.
11654 (get_windows_debug_event): Rename to ...
11655 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
11656 * tracefile-tfile.c (tfile_target_open): Pass down target.
11657 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
11658 Forward declare.
11659 (switch_to_thread): Add process_stratum_target parameter.
11660 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
11661 parameter. Use it.
11662 (mi_on_resume): Pass target down.
11663 * nat/fork-inferior.c (startup_inferior): Add
11664 process_stratum_target parameter. Pass it down.
11665 * nat/fork-inferior.h (startup_inferior): Add
11666 process_stratum_target parameter.
11667 * python/py-threadevent.c (py_get_event_thread): Pass target down.
11668
75c6c844
PA
116692020-01-10 Pedro Alves <palves@redhat.com>
11670
11671 * remote.c (remote_target::start_remote): Don't set inferior_ptid
11672 directly. Instead find the first thread in the thread list and
11673 use switch_to_thread.
11674
78f2c40a
PA
116752020-01-10 Pedro Alves <palves@redhat.com>
11676
11677 * remote.c (remote_target::remote_add_inferior): Don't bind a
11678 process to the current inferior if the current inferior is already
11679 bound to a process.
11680
e7af6c70
TBA
116812020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11682 Pedro Alves <palves@redhat.com>
11683
11684 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
11685 If no process is specified, return null_ptid instead of
11686 inferior_ptid.
11687 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
11688 TARGET_WAITKIND_SIGNALLED with no pid.
11689
31ba933e
PA
116902020-01-10 Pedro Alves <palves@redhat.com>
11691
11692 * remote.c (first_remote_resumed_thread): New.
11693 (remote_target::wait_as): Use it as default event_ptid instead of
11694 inferior_ptid.
11695
735fc2ca
PA
116962020-01-10 Pedro Alves <palves@redhat.com>
11697
11698 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
11699
c17e02e1
PA
117002020-01-10 Pedro Alves <palves@redhat.com>
11701
11702 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
11703 not -1.
11704
ab1ddbcf
PA
117052020-01-10 Pedro Alves <palves@redhat.com>
11706
11707 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
11708 ptid to get_last_target_status.
11709 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
11710 ptid to get_last_target_status.
11711 * infcmd.c (continue_command): Don't pass a target_waitstatus to
11712 get_last_target_status.
11713 (info_program_command): Don't pass a target_waitstatus to
11714 get_last_target_status.
11715 * infrun.c (init_wait_for_inferior): Use
11716 nullify_last_target_wait_ptid.
11717 (get_last_target_status): Handle nullptr arguments.
11718 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
11719 (print_stop_event): Don't pass a ptid to get_last_target_status.
11720 (normal_stop): Don't pass a ptid to get_last_target_status.
11721 * infrun.h (get_last_target_status, set_last_target_status): Move
11722 comments here and update.
11723 (nullify_last_target_wait_ptid): Declare.
11724 * linux-fork.c (fork_load_infrun_state): Remove local extern
11725 declaration of nullify_last_target_wait_ptid.
11726 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
11727 to get_last_target_status.
11728
f3f8ece4
PA
117292020-01-10 Pedro Alves <palves@redhat.com>
11730
11731 * gdbthread.h (scoped_restore_current_thread)
11732 <dont_restore, restore, m_dont_restore>: Declare.
11733 * thread.c (thread_alive): Add assertion. Return bool.
11734 (switch_to_thread_if_alive): New.
11735 (prune_threads): Switch inferior/thread.
11736 (print_thread_info_1): Switch thread before calling target methods.
11737 (scoped_restore_current_thread::restore): New, factored out from
11738 ...
11739 (scoped_restore_current_thread::~scoped_restore_current_thread):
11740 ... this.
11741 (scoped_restore_current_thread::scoped_restore_current_thread):
11742 Add assertion.
11743 (thread_apply_all_command, thread_select): Use
11744 switch_to_thread_if_alive.
11745 * infrun.c (proceed, restart_threads, handle_signal_stop)
11746 (switch_back_to_stepped_thread): Switch current thread before
11747 calling target methods.
11748
db2d40f7
PA
117492020-01-10 Pedro Alves <palves@redhat.com>
11750
11751 * inferior.c (switch_to_inferior_no_thread): New function,
11752 factored out from ...
11753 (inferior_command): ... here.
11754 * inferior.h (switch_to_inferior_no_thread): Declare.
11755 * mi/mi-main.c (run_one_inferior): Use
11756 switch_to_inferior_no_thread.
11757
bd420a2d
PA
117582020-01-10 Pedro Alves <palves@redhat.com>
11759
11760 * infcmd.c (kill_command): Remove dead code.
11761
ddf5db90
PA
117622020-01-10 Pedro Alves <palves@redhat.com>
11763
11764 * remote.c (remote_target::mourn_inferior): No longer check
11765 whether the target is running.
11766
5018ce90
PA
117672020-01-10 Pedro Alves <palves@redhat.com>
11768
11769 * corelow.c (core_target::has_execution): Change parameter type to
11770 inferior pointer.
11771 * inferior.c (number_of_live_inferiors): Use
11772 inferior::has_execution instead of target_has_execution_1.
11773 * inferior.h (inferior::has_execution): New.
11774 * linux-thread-db.c (thread_db_target::update_thread_list): Use
11775 inferior::has_execution instead of target_has_execution_1.
11776 * process-stratum-target.c
11777 (process_stratum_target::has_execution): Change parameter type to
11778 inferior pointer. Check the inferior's PID instead of
11779 inferior_ptid.
11780 * process-stratum-target.h
11781 (process_stratum_target::has_execution): Change parameter type to
11782 inferior pointer.
11783 * record-full.c (record_full_core_target::has_execution): Change
11784 parameter type to inferior pointer.
11785 * target.c (target_has_execution_1): Change parameter type to
11786 inferior pointer.
11787 (target_has_execution_current): Adjust.
11788 * target.h (target_ops::has_execution): Change parameter type to
11789 inferior pointer.
11790 (target_has_execution_1): Change parameter type to inferior
11791 pointer. Change return type to bool.
11792 * tracefile.h (tracefile_target::has_execution): Change parameter
11793 type to inferior pointer.
11794
74375d18
PA
117952020-01-10 Pedro Alves <palves@redhat.com>
11796
11797 * exceptions.c (print_flush): Remove current_top_target() check.
11798
acdf84a6
PA
117992020-01-10 Pedro Alves <palves@redhat.com>
11800
11801 * remote.c (show_remote_exec_file): Show the current inferior's
11802 exec-file instead of the command variable's value.
11803
ec506636
PA
118042020-01-10 Pedro Alves <palves@redhat.com>
11805
11806 * record-full.c (record_full_resume_ptid): New global.
11807 (record_full_target::resume): Set it.
11808 (record_full_wait_1): Use record_full_resume_ptid instead of
11809 inferior_ptid.
11810
873657b9
PA
118112020-01-10 Pedro Alves <palves@redhat.com>
11812
11813 * gdbthread.h (scoped_restore_current_thread)
11814 <dont_restore, restore, m_dont_restore>: Declare.
11815 * thread.c (thread_alive): Add assertion. Return bool.
11816 (switch_to_thread_if_alive): New.
11817 (prune_threads): Switch inferior/thread.
11818 (print_thread_info_1): Switch thread before calling target methods.
11819 (scoped_restore_current_thread::restore): New, factored out from
11820 ...
11821 (scoped_restore_current_thread::~scoped_restore_current_thread):
11822 ... this.
11823 (scoped_restore_current_thread::scoped_restore_current_thread):
11824 Add assertion.
11825 (thread_apply_all_command, thread_select): Use
11826 switch_to_thread_if_alive.
11827
7f0ae84c
GB
118282020-01-10 George Barrett <bob@bob131.so>
11829
11830 * stap-probe.c (stap_modify_semaphore): Don't check for null
11831 semaphores.
11832 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
11833 for null semaphores.
11834
f5a7c406
AB
118352020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11836
11837 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
11838 all source windows, and maintain horizontal scroll status while
11839 doing so.
11840
9ae6bf64
TT
118412020-01-09 Tom Tromey <tom@tromey.com>
11842
11843 PR tui/18932:
11844 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
11845 update_source_window, not print_source_lines.
11846
b2efe70c
AB
118472020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11848
11849 * tui/tui.c (tui_enable): Register tui hooks after calling
11850 tui_display_main.
11851
5f23a082
CB
118522020-01-09 Christian Biesinger <cbiesinger@google.com>
11853
11854 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
11855
3061113b
SM
118562020-01-08 Simon Marchi <simon.marchi@efficios.com>
11857
11858 * thread.c (print_thread_info_1): Fix indentation.
11859
57d75002
CB
118602020-01-09 Christian Biesinger <cbiesinger@google.com>
11861
11862 * symtab.c (general_symbol_info::compute_and_set_names): Move the
11863 unique_xmalloc_ptr outside the if to always free the demangled name.
11864
6a053cb1
TT
118652020-01-08 Tom Tromey <tromey@adacore.com>
11866
11867 * xcoffread.c (enter_line_range, read_xcoff_symtab)
11868 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
11869 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
11870 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
11871 Remove.
11872 (section_offsets): New typedef.
11873 * symtab.c (fixup_section, get_msymbol_address): Update.
11874 * symmisc.c (dump_msymbols): Update.
11875 * symfile.h (relative_addr_info_to_section_offsets)
11876 (symfile_map_offsets_to_segments): Update.
11877 * symfile.c (build_section_addr_info_from_objfile)
11878 (init_objfile_sect_indices): Update.
11879 (struct place_section_arg): Change type of "offsets".
11880 (place_section): Update.
11881 (relative_addr_info_to_section_offsets): Change type of
11882 "section_offsets". Remove "num_sections" parameter.
11883 (default_symfile_offsets, syms_from_objfile_1)
11884 (set_objfile_default_section_offset): Update.
11885 (reread_symbols): No need to preserve section offsets by hand.
11886 (symfile_map_offsets_to_segments): Change type of "offsets".
11887 * stap-probe.c (relocate_address): Update.
11888 * stabsread.h (process_one_symbol): Update.
11889 * solib-target.c (struct lm_info_target) <offsets>: Change type.
11890 (solib_target_relocate_section_addresses): Update.
11891 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
11892 Update.
11893 * solib-frv.c (frv_relocate_main_executable): Update.
11894 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
11895 * solib-aix.c (solib_aix_get_section_offsets): Change return
11896 type.
11897 (solib_aix_solib_create_inferior_hook): Update.
11898 * remote.c (remote_target::get_offsets): Update.
11899 * psymtab.c (find_pc_sect_psymtab): Update.
11900 * psympriv.h (struct partial_symbol) <address, text_low,
11901 text_high>: Update.
11902 * objfiles.h (obj_section_offset): Update.
11903 (struct objfile) <section_offsets>: Change type.
11904 <num_sections>: Remove.
11905 (objfile_relocate): Update.
11906 * objfiles.c (entry_point_address_query): Update
11907 (relocate_one_symbol): Change type of "section_offsets".
11908 (objfile_relocate1, objfile_relocate1): Change type of
11909 "new_offsets".
11910 (objfile_rebase1): Update.
11911 * mipsread.c (mipscoff_symfile_read): Update.
11912 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
11913 parameter.
11914 * mdebugread.c (parse_symbol): Change type of "section_offsets".
11915 (parse_external, psymtab_to_symtab_1): Update.
11916 * machoread.c (macho_symfile_offsets): Update.
11917 * ia64-tdep.c (ia64_find_unwind_table): Update.
11918 * hppa-tdep.c (read_unwind_info): Update.
11919 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
11920 * dwarf2read.c (create_addrmap_from_index)
11921 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11922 (process_psymtab_comp_unit_reader, add_partial_symbol)
11923 (add_partial_subprogram, process_full_comp_unit)
11924 (read_file_scope, read_func_scope, read_lexical_block_scope)
11925 (read_call_site_scope, dwarf2_rnglists_process)
11926 (dwarf2_ranges_process, dwarf2_ranges_read)
11927 (dwarf_decode_lines_1, var_decode_location, new_symbol)
11928 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
11929 Update.
11930 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
11931 Update.
11932 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
11933 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
11934 (process_one_symbol): Change type of "section_offsets".
11935 * ctfread.c (get_objfile_text_range): Update.
11936 * coffread.c (coff_symtab_read, enter_linenos)
11937 (process_coff_symbol): Update.
11938 * coff-pe-read.c (add_pe_forwarded_sym): Update.
11939 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
11940
456e800a
TT
119412020-01-08 Tom Tromey <tromey@adacore.com>
11942
11943 * dwarf2read.c (parse_macro_definition): Use std::string.
11944 (parse_macro_definition): Likewise.
11945
6dfa2fc2
TT
119462020-01-08 Tom Tromey <tromey@adacore.com>
11947
11948 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
11949 (ATTR_ALLOC_CHUNK): Remove.
11950
421d1616
TT
119512020-01-08 Tom Tromey <tromey@adacore.com>
11952
11953 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
11954
43816ebc
TT
119552020-01-08 Tom Tromey <tromey@adacore.com>
11956
11957 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
11958 (dwarf2_compute_name, open_dwo_file): Likewise.
11959 (process_enumeration_scope): Use std::vector.
11960 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
11961 (partial_die_info::fixup, dwarf2_start_subfile)
11962 (guess_full_die_structure_name, dwarf2_name): Likewise.
11963 (determine_prefix): Update.
11964 (guess_full_die_structure_name): Make return type const.
11965 (partial_die_full_name): Return unique_xmalloc_ptr.
11966 (DW_FIELD_ALLOC_CHUNK): Remove.
11967
4212d509
TT
119682020-01-07 Tom Tromey <tromey@adacore.com>
11969
11970 PR build/24937:
11971 * stap-probe.c (class stap_static_probe_ops): Add constructor.
11972
06a6207a
JT
119732020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
11974
11975 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
11976
153d79c4
AB
119772020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
11978
11979 * stack.c (print_frame_info): Move disassemble_next_line code
11980 inside source_print block.
11981
66182876
EZ
119822020-01-06 Eli Zaretskii <eliz@gnu.org>
11983
11984 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
11985 gdb/signals.h, as we are now using native signal symbols.
11986
cbfa8581
SV
119872020-01-06 Shahab Vahedi <shahab@synopsys.com>
11988
11989 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
11990 overflow by an early check of content vs threshold.
aac66a4c 11991 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
11992 Likewise.
11993
3f602821
EZ
119942020-01-06 Eli Zaretskii <eliz@gnu.org>
11995
11996 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
11997
a08c904d
JT
119982020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
11999
12000 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
12001 export table if no section contains it's RVA.
12002
89a65580
EZ
120032020-01-06 Eli Zaretskii <eliz@gnu.org>
12004
12005 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
12006
8b7fcda2
HD
120072020-01-06 Hannes Domani <ssbssa@yahoo.de>
12008
12009 * source.c (print_source_lines_base): Set last_line_listed.
12010
a61b4f69
SV
120112020-01-06 Shahab Vahedi <shahab@synopsys.com>
12012
12013 * tui/tui-disasm.c: Remove trailing spaces.
12014
559e7e50
EZ
120152020-01-06 Eli Zaretskii <eliz@gnu.org>
12016 Pedro Alves <palves@redhat.com>
12017
12018 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
12019 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
12020 (windows_gdb_signal_to_target): New function, uses the above
12021 enumeration to convert GDB internal signal codes to equivalent
12022 Windows codes.
12023 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
12024 * windows-nat.c: Include "gdb_wait.h".
12025 (get_windows_debug_event): Extract the fatal exception from the
12026 exit status and convert to the equivalent Posix signal number.
12027 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
12028 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
12029 * gdbsupport/gdb_wait.c: New file, implements
12030 windows_status_to_termsig.
12031 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
12032 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
12033
f2302a34
AB
120342020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
12035
12036 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
12037 show_layout.
12038
6a5206eb
LM
120392020-01-05 Luis Machado <luis.machado@linaro.org>
12040
12041 * aarch64-linux-nat.c
12042 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
12043 and bfd_mach_aarch64.
12044
6ec1d75e
PW
120452020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12046
12047 * ui-file.c (stdio_file::can_emit_style_escape)
12048 (tee_file::can_emit_style_escape): Ensure style is used also on
12049 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
12050 to gdb_stdout.
12051 * main.c (set_gdb_data_directory): Use file style to output the
12052 warning that the given pathname is not a directory.
12053 * top.c (show_history_filename, gdb_safe_append_history)
12054 (show_gdb_datadir): Use file style.
12055
44f81a76
HD
120562020-01-03 Hannes Domani <ssbssa@yahoo.de>
12057
12058 * solib-target.c (struct lm_info_target):
12059 Change offsets to be a unique_xmalloc_ptr.
12060 (solib_target_relocate_section_addresses): Update.
12061
25057eb0
HD
120622020-01-03 Hannes Domani <ssbssa@yahoo.de>
12063
12064 * windows-nat.c (windows_clear_solib): Free so_list linked list.
12065
6e2118f5
BE
120662020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
12067
12068 * MAINTAINERS (Write After Approval): Add myself.
12069
8133c7dc
LM
120702020-01-02 Luis Machado <luis.machado@linaro.org>
12071
12072 * proc-service.c (get_ps_regcache): Remove reference to obsolete
12073 Cell BE architecture.
12074 * target.h (struct target_ops) <thread_architecture>: Likewise.
12075
48189bec
HD
120762020-01-01 Hannes Domani <ssbssa@yahoo.de>
12077
12078 * Makefile.in: Use INSTALL_PROGRAM_ENV.
12079
ead1063b
HD
120802020-01-01 Hannes Domani <ssbssa@yahoo.de>
12081
12082 * MAINTAINERS (Write After Approval): Add myself.
12083
e5d78223
JB
120842020-01-01 Joel Brobecker <brobecker@adacore.com>
12085
12086 * gdbarch.sh: Update copyright year range of generated files.
12087
b811d2c2
JB
120882020-01-01 Joel Brobecker <brobecker@adacore.com>
12089
12090 Update copyright year range in all GDB files.
12091
5f4def5c
JB
120922020-01-01 Joel Brobecker <brobecker@adacore.com>
12093
12094 * copyright.py: Convert to Python 3.
12095
51fd4002
JB
120962020-01-01 Joel Brobecker <brobecker@adacore.com>
12097
12098 * copyright.py: Adapt after move of gnulib directory from gdb
12099 directory to toplevel directory.
12100
5fb651f2
JB
121012020-01-01 Joel Brobecker <brobecker@adacore.com>
12102
12103 * copyright.py (main): Exit if run from the wrong directory.
12104
5dd8bf88
JB
121052020-01-01 Joel Brobecker <brobecker@adacore.com>
12106
12107 * top.c (print_gdb_version): Change copyright year to 2020.
12108
9f71dacb 121092020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 12110
9f71dacb 12111 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 12112
9f71dacb 12113For older changes see ChangeLog-2019.
c906108c
SS
12114\f
12115Local Variables:
12116mode: change-log
12117left-margin: 8
12118fill-column: 74
12119version-control: never
57da7796 12120coding: utf-8
c906108c 12121End: