]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
gdb: refactor test_get_thread_arch_aspace_regcache
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
dd125343
SM
12020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2
3 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
4 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
5 gdbarch and aspace parameter. Use current inferior's aspace.
6 Validate regcache's arch value.
7 (regcaches_test): Update.
8
3ee93972
SM
92020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
10
11 * regcache.c (regcaches_test): Call registers_changed.
12
33bf4c5c
TBA
132020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
14
15 * infrun.c (process_event_stop_test): Fix typo "breapoint".
16
c2fd7fae
AKS
172020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
18
19 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
20 to find the end of prologue for flang compiled binaries.
21 * arm-tdep.c (arm_skip_prologue): Likewise.
22 * i386-tdep.c (i386_skip_prologue): Likewise.
23 * producer.c (producer_is_llvm): New function.
24 (producer_parsing_tests): Added new tests for clang/flang.
25 * producer.h (producer_is_llvm): New declaration.
26
9327494e
SM
272020-08-18 Simon Marchi <simon.marchi@efficios.com>
28
29 * linux-nat.c (linux_nat_debug_printf): New function.
30 (linux_nat_debug_printf_1): New macro. Use throughout the file.
31
d138725a
AM
322020-08-18 Aaron Merey <amerey@redhat.com>
33
34 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
35 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
36 (CLIBS): Add DEBUGINFOD_LIBS.
37
f9b11e6b
ST
382020-08-17 Sergei Trofimovich <siarheit@google.com>
39
40 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
41 'gdbarch_num_regs'.
42
3ae7ab99
TT
432020-08-17 Tom Tromey <tromey@adacore.com>
44
45 * ada-varobj.c (ada_varobj_decode_var): Handle case where
46 ada_get_decoded_value returns NULL.
47
b017825f
TT
482020-08-17 Tom Tromey <tromey@adacore.com>
49
50 * python/py-inferior.c (infpy_search_memory): Use
51 gdb_py_object_from_ulongest.
52 * python/py-infevents.c (create_inferior_call_event_object)
53 (create_memory_changed_event_object): Use
54 gdb_py_object_from_ulongest.
55 * python/py-linetable.c (ltpy_entry_get_pc): Use
56 gdb_py_object_from_ulongest.
57
7635cf79
SM
582020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
59
60 * loc.c (class symbol_needs_eval_context): Fix indentation.
61
f54be24b
SM
622020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
63
64 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
65 bool.
66
53d5a2a5
TV
672020-08-17 Tom de Vries <tdevries@suse.de>
68
69 PR gdb/26393
70 * gdbtypes.c (dump_dynamic_prop): New function.
71 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
72
547ce8f0
TV
732020-08-15 Tom de Vries <tdevries@suse.de>
74
75 PR backtrace/26390
76 * stack.c (print_frame_args): Temporarily set the selected
77 frame to FRAME while printing the frame's arguments.
78
6ea815e7
PFC
792020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
80
81 PR breakpoints/26385
82 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
83 Always clear watchpoint with PTRACE_SET_DEBUGREG.
84
6e562fa3
PFC
852020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
86
87 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
88 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
89 and >= to check return value instead of == -1 and != -1.
90
d369b608
SM
912020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
92
93 * utils.h (class gdb_argv) <as_array_view>: New method.
94 * utils.c (gdb_argv_as_array_view_test): New.
95 (_initialize_utils): Register selftest.
96 * maint.c (maintenance_selftest): Use the new method.
97
b31488a3
KR
982020-08-13 Kamil Rytarowski <n54@gmx.com>
99
100 * target.h (supports_dumpcore, dumpcore): New
101 function declarations.
102 * target.c (supports_dumpcore, dumpcore): New
103 functions.
104 * target-delegates.c: Rebuild.
105 * gcore.c (gcore_command): Use target_supports_dumpcore ()
106 and target_dumpcore ().
107
002a3166
AM
1082020-08-13 Aaron Merey <amerey@redhat.com>
109
110 * debuginfod-support.c: Replace global variables with user_data.
111
ece5bc8a
SM
1122020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
113
114 * maint.c (maintenance_selftest): Split args and pass array_view
115 to run_tests.
116
6d8a0a5e
LM
1172020-08-12 Luis Machado <luis.machado@linaro.org>
118
119 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
120 type's length.
121 Use %s and pulongest to print the length.
122
7cf663a9
PA
1232020-08-12 Pedro Alves <palves@redhat.com>
124
125 * NEWS: Move "Multi-target debugging support" item to the
126 "Changes since GDB 9" section.
127
27c7b875
PA
1282020-08-12 Pedro Alves <palves@redhat.com>
129
130 PR gdb/26336
131 * progspace.c (program_space::remove_objfile): Invalidate the
132 frame cache.
133
1796a2a1
TV
1342020-08-11 Tom de Vries <tdevries@suse.de>
135
136 * MAINTAINERS: Mark ms1 as deleted.
137
f8e3fe0d
LM
1382020-08-10 Luis Machado <luis.machado@linaro.org>
139
140 PR gdb/26310
141
142 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
143 act accordingly.
144 (aarch64_analyze_prologue_test): Add more unit tests to exercise
145 movz/str/stur/stp skipping behavior.
146
cc308722
LM
1472020-08-10 Luis Machado <luis.machado@linaro.org>
148
149 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
150 struct user_sve_header instead of struct sve_context.
151
041d9819
SM
1522020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
153
154 * read.h (dwarf2_fetch_die_loc_sect_off,
155 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
156 `void *` parameter with function_view.
157 * read.c (dwarf2_fetch_die_loc_sect_off,
158 dwarf2_fetch_die_loc_cu_off): Likewise.
159 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
160 (per_cu_dwarf_call): Adjust.
161 (get_frame_address_in_block_wrapper): Remove.
162 (indirect_synthetic_pointer): Adjust.
163 (get_ax_pc): Remove.
164 (dwarf2_compile_expr_to_ax): Adjust.
165
38f8aa06
TV
1662020-08-08 Tom de Vries <tdevries@suse.de>
167
168 PR build/26344
169 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
170 constructor.
171 * regcache.c (get_thread_arch_aspace_regcache): Same.
172
a52b3ae2
TT
1732020-08-07 Tom Tromey <tromey@adacore.com>
174
175 * ravenscar-thread.c
176 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
177 New method.
178 (ravenscar_thread_target::wait): Check
179 runtime_initialized.
180 (ravenscar_thread_target::prepare_to_store)
181 (ravenscar_thread_target::stopped_by_sw_breakpoint)
182 (ravenscar_thread_target::stopped_by_hw_breakpoint)
183 (ravenscar_thread_target::stopped_by_watchpoint)
184 (ravenscar_thread_target::stopped_data_address)
185 (ravenscar_thread_target::core_of_thread): Use
186 scoped_restore_current_thread and
187 set_base_thread_from_ravenscar_task.
188
0e29517d
TT
1892020-08-07 Tom Tromey <tromey@adacore.com>
190
191 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
192
592f9bd7
TT
1932020-08-07 Tom Tromey <tromey@adacore.com>
194
195 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
196 update_inferior_ptid before update_thread_list.
197 (temporarily_change_regcache_ptid): New class.
198 (ravenscar_thread_target::fetch_registers)
199 (ravenscar_thread_target::store_registers)
200 (ravenscar_thread_target::prepare_to_store): Use base thread when
201 forwarding operation.
202
39e2018a
TT
2032020-08-07 Tom Tromey <tromey@adacore.com>
204
205 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
206 "is_pid" case.
207
2080266b
TT
2082020-08-07 Tom Tromey <tromey@adacore.com>
209
210 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
211 New methods.
212 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
213 first.
214 (ravenscar_thread_target::add_thread): Rename from
215 ravenscar_add_thread.
216 (ravenscar_thread_target::update_thread_list): Use a lambda.
217 (ravenscar_thread_target::xfer_partial): New method.
218
78c02f21
TT
2192020-08-07 Tom Tromey <tromey@adacore.com>
220
221 * ada-lang.h (ada_task_list_iterator_ftype): Now a
222 gdb::function_view.
223 (iterate_over_live_ada_tasks): Change type of argument.
224 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
225 of argument.
226
d5d833af
TT
2272020-08-07 Tom Tromey <tromey@adacore.com>
228
229 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
230 Remove.
231 (ravenscar_thread_target::extra_thread_info): Remove.
232 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
233 defer to target beneath for non-Ravenscar threads.
234
a8ac85bb
TT
2352020-08-07 Tom Tromey <tromey@adacore.com>
236
237 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
238 get_base_thread_from_ravenscar_task>: Now methods.
239 <m_cpu_map>: New member.
240 (ravenscar_thread_target::get_thread_base_cpu): Rename from
241 ravenscar_get_thread_base_cpu. Check m_cpu_map.
242 (ravenscar_thread_target::task_is_currently_active): Update.
243 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
244 Now a method.
245 (ravenscar_thread_target::add_active_thread): Put initial thread
246 into the m_cpu_map.
247
550ab58d
TT
2482020-08-07 Tom Tromey <tromey@adacore.com>
249
250 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
251 event_ptid.
252
e9546579
TT
2532020-08-07 Tom Tromey <tromey@adacore.com>
254
255 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
256 runtime_initialized.
257
3d4470e5
TT
2582020-08-07 Tom Tromey <tromey@adacore.com>
259
260 * ravenscar-thread.c (ravenscar_thread_target): Don't call
261 add_active_thread.
262 (ravenscar_thread_target::add_active_thread): Now public.
263 (ravenscar_inferior_created): Call add_active_thread after pushing
264 the target.
265
888bdb2b
SM
2662020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
267
268 * regcache.c (ptid_regcache_map): New type.
269 (target_ptid_regcache_map): New type.
270 (regcaches): Change type to target_ptid_regcache_map.
271 (get_thread_arch_aspace_regcache): Update to regcaches' new
272 type.
273 (regcache_thread_ptid_changed): Likewise.
274 (registers_changed_ptid): Likewise.
275 (regcaches_size): Likewise.
276 (regcaches_test): Update.
277 (regcache_thread_ptid_changed): Update.
278 * regcache.h (regcache_up): New type.
279 * gdbsupport/ptid.h (hash_ptid): New struct.
280
b161a60d
SM
2812020-08-07 Simon Marchi <simon.marchi@efficios.com>
282
283 * observable.h (thread_ptid_changed): Add parameter
284 `process_stratum_target *`.
285 * infrun.c (infrun_thread_ptid_changed): Add parameter
286 `process_stratum_target *` and use it.
287 (selftests): New namespace.
288 (infrun_thread_ptid_changed): New function.
289 (_initialize_infrun): Register selftest.
290 * regcache.c (regcache_thread_ptid_changed): Add parameter
291 `process_stratum_target *` and use it.
292 (regcache_thread_ptid_changed): New function.
293 (_initialize_regcache): Register selftest.
294 * thread.c (thread_change_ptid): Pass target to
295 thread_ptid_changed observable.
296
d2854d8d
CT
2972020-08-06 Caroline Tice <cmtice@google.com>
298
fe4c3d43
SM
299 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
300 (struct dwp_sections): Update field comments. Add loclists and
301 rnglists fields.
302 (struct virtual_v2_dwo_sections): Rename struct to
303 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
304 size & offset fields for loclists and rnglists.
305 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
306 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
307 skipping dummy type units.
308 (create_dwp_hash_table): Update the large comment above the function to
309 discuss Version 5 DWP files as well, with references. Update all the
310 version checks in the function to check for version 5 as well. Add new
311 section at the end to create dwp hash table for version 5.
312 (create_dwp_v2_section): Rename function to
313 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
314 Add V5 to error message text.
315 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
316 into calls to create_dwp_v2_or_v5_section.
317 (create_dwo_unit_in_dwp_v5): New function.
318 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
319 check for version2; add else clause to handle version 5.
320 (open_and_init_dwo_file): Add code to check dwarf version & only call
321 create_debug_types_hash_table (with sections.types) if version is not 5;
322 else call create_debug_type_hash_table, with sections.info.
323 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
324 version 5.
325 (dwarf2_locate_v5_dwp_sections): New function.
326 (open_and_init_dwp_file): Add else-if clause for version 5 to call
327 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 328
159ed7d9
SM
3292020-08-06 Simon Marchi <simon.marchi@efficios.com>
330
331 * regcache.h (class regcache): Remove friend
332 registers_changed_ptid.
333 <regcache_thread_ptid_changed>: Remove.
334 <regcaches>: Remove.
335 * regcache.c (regcache::regcaches): Rename to...
336 (regcaches): ... this. Make static.
337 (get_thread_arch_aspace_regcache): Update.
338 (regcache::regcache_thread_ptid_changed): Rename to...
339 (regcache_thread_ptid_changed): ... this. Update.
340 (class regcache_access): Remove.
341 (regcaches_test): Update.
342 (_initialize_regcache): Update.
343 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
344 <forward_list>.
345
174981ae
SM
3462020-08-06 Simon Marchi <simon.marchi@efficios.com>
347
348 * regcache.h (class regcache) <current_regcache>: Rename to...
349 <regcaches>: ... this. Move doc here.
350 * regcache.c (regcache::current_regcache) Rename to...
351 (regcache::regcaches): ... this. Move doc to header.
352 (get_thread_arch_aspace_regcache): Update.
353 (regcache::regcache_thread_ptid_changed): Update.
354 (registers_changed_ptid): Update.
355 (class regcache_access) <current_regcache_size>: Rename to...
356 <regcaches_size>: ... this.
357 (current_regcache_test): Rename to...
358 (regcaches_test): ... this.
359 (_initialize_regcache): Update.
360
ed908db6
VC
3612020-08-06 Victor Collod <vcollod@nvidia.com>
362
363 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
364
b5582ab7
KB
3652020-08-05 Kevin Buettner <kevinb@redhat.com>
366
367 * corelow.c (core_target::build_file_mappings): Don't output
368 null pathname in warning.
369
ea946b86
SM
3702020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
371
372 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
373 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
374 gdb.dwarf2/dw2-single-line-discriminators.exp,
375 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
376
57d02173
TT
3772020-08-05 Tom Tromey <tromey@adacore.com>
378
379 PR rust/26197:
380 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
381 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
382 Fix off-by-one and type size errors in ordinary case.
383
5555c86d
TV
3842020-08-05 Tom de Vries <tdevries@suse.de>
385
386 * gdbtypes.c (type_not_allocated, type_not_associated): Use
387 "prop->const_val () == 0" instead of "prop->const_val () != 0".
388
97916bfe
SM
3892020-08-04 Simon Marchi <simon.marchi@efficios.com>
390
391 * frame.h (frame_id_p): Return bool.
392 (frame_id_artificial_p): Return bool.
393 (frame_id_eq): Return bool.
394 (has_stack_frames): Return bool.
395 (get_selected_frame): Fix typo in comment.
396 (get_frame_pc_if_available): Return bool.
397 (get_frame_address_in_block_if_available): Return bool.
398 (get_frame_func_if_available): Return bool.
399 (read_frame_register_unsigned): Return bool.
400 (get_frame_register_bytes): Return bool.
401 (safe_frame_unwind_memory): Return bool.
402 (deprecated_frame_register_read): Return bool.
403 (frame_unwinder_is): Return bool.
404 * frame.c (struct frame_info) <prev_arch::p>: Change type to
405 bool.
406 <this_id::p>: Likewise.
407 <prev_p>: Likewise.
408 (frame_stash_add): Return bool.
409 (get_frame_id): Use bool.
410 (frame_id_build_special) Use bool.
411 (frame_id_build_unavailable_stack): Use bool.
412 (frame_id_build): Use bool.
413 (frame_id_p): Return bool, use true/false instead of 1/0.
414 (frame_id_artificial_p): Likewise.
415 (frame_id_eq): Likewise.
416 (frame_id_inner): Likewise.
417 (get_frame_func_if_available): Likewise.
418 (read_frame_register_unsigned): Likewise.
419 (deprecated_frame_register_read): Likewise.
420 (get_frame_register_bytes): Likewise.
421 (has_stack_frames): Likewise.
422 (inside_main_func): Likewise.
423 (inside_entry_func): Likewise.
424 (get_frame_pc_if_available): Likewise.
425 (get_frame_address_in_block_if_available): Likewise.
426 (frame_unwinder_is): Likewise.
427 (safe_frame_unwind_memory): Likewise.
428 (frame_unwind_arch): Likewise.
429
fedfee88
SM
4302020-08-04 Simon Marchi <simon.marchi@efficios.com>
431
432 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
433 type to cached_copy_status.
434 (fprintf_frame): Adjust.
435 (get_frame_func_if_available): Adjust.
436 (frame_cleanup_after_sniffer): Adjust.
437
6cfa9b59
MW
4382020-08-04 Mark Wielaard <mark@klomp.org>
439
440 * MAINTAINERS (Write After Approval): Update email address.
441
66d6346b
SM
4422020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
443
444 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
445 dynamic_prop::const_val.
446
8a6d5e35
SM
4472020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
448
449 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
450 dynamic_prop::kind.
451
51d6067d
SM
4522020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
453
454 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
455
b26e2ae7
JM
4562020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
457
458 * configure.tgt: Set gdb_sim for bpf-*-* targets.
459
39791af2
JM
4602020-08-04 Weimin Pan <weimin.pan@oracle.com>
461 Jose E. Marchesi <jose.marchesi@oracle.com>
462
463 * configure.tgt: Add entry for bpf-*-*.
464 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
465 (ALLDEPFILES): Add bpf-tdep.c.
466 * bpf-tdep.c: New file.
467 * MAINTAINERS: Add bpf target and maintainer.
468 * NEWS: Mention the support for the new target.
469
521894aa
TV
4702020-08-04 Tom de Vries <tdevries@suse.de>
471
472 PR symtab/23270
473 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
474 Error.
475
5d6356e9
JB
4762020-08-03 John Baldwin <jhb@FreeBSD.org>
477
478 * syscalls/freebsd.xml: Regenerate.
479
0cf82b81
JB
4802020-08-03 John Baldwin <jhb@FreeBSD.org>
481
482 * syscalls/update-freebsd.sh: Fix usage and year range.
483
8f34b746
TV
4842020-08-03 Tom de Vries <tdevries@suse.de>
485
486 PR symtab/26333
487 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
488 DW_LNE_lo_user/DW_LNE_hi_user range.
489
5e500d33
SM
4902020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
491
492 PR ada/26318
493 * ada-lang.c (ada_modulus): Return 0 if property is not of const
494 kind.
495
78319c15
TBA
4962020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
497
498 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
499
4c55e970
TBA
5002020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
501
502 * breakpoint.c (set_breakpoint_condition): Update the condition
503 expressions after checking that the input condition string parses
504 successfully and does not contain junk at the end.
505
1e620590
TBA
5062020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
507
508 * breakpoint.c (set_breakpoint_condition): Update the
509 condition string after parsing the new condition successfully.
510
c8693053
RO
5112020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
512
513 * proc-api.c (_STRUCTURED_PROC): Don't define.
514 * proc-events.c: Likewise.
515 * proc-flags.c: Likewise.
516 * proc-why.c: Likewise.
517 * procfs.c: Likewise.
518
519 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
520 * configure, config.in: Regenerate.
521
5a99adb8
TV
5222020-07-30 Tom de Vries <tdevries@suse.de>
523
524 PR build/26320
525 * ui-style.h (struct ui_file_style::color): Wrap m_value and
526 m_red/m_green/m_blue in a union.
527
8ba83e91
TV
5282020-07-29 Tom de Vries <tdevries@suse.de>
529
530 PR tdep/26280
531 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
532
f75a0693
AB
5332020-07-28 Tom Tromey <tromey@adacore.com>
534
535 PR symtab/26270:
536 * symtab.h (find_pc_partial_function_sym): Declare.
537 * cli/cli-cmds.c (disassemble_command): Use
538 find_pc_partial_function_sym. Check asm_demangle.
539 * blockframe.c (cache_pc_function_sym): New global.
540 (cache_pc_function_name): Remove.
541 (clear_pc_function_cache): Update.
542 (find_pc_partial_function_sym): New function, from
543 find_pc_partial_function.
544 (find_pc_partial_function): Rewrite using
545 find_pc_partial_function_sym.
546
16f3242c
TT
5472020-07-28 Tom Tromey <tromey@adacore.com>
548
549 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
550 help. Add usage.
551
4888741a
TT
5522020-07-28 Tom Tromey <tromey@adacore.com>
553
554 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
555 <DW_OP_GNU_variable_value>: Cast to address type.
556
4d46f402
KR
5572020-07-28 Kamil Rytarowski <n54@gmx.com>
558
559 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
560 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
561 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
562 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
563 (nbsd_get_siginfo_type): New.
564 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
565 (_initialize_nbsd_tdep): New.
566
d70f978b
L
5672020-07-28 H.J. Lu <hongjiu.lu@intel.com>
568
569 PR binutils/26301
570 * configure: Regenerated.
571
377170fa
L
5722020-07-28 H.J. Lu <hongjiu.lu@intel.com>
573
574 PR binutils/26301
575 * configure: Regenerated.
576
43d5901d
AB
5772020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
578
579 * python/py-frame.c: Remove 'user-regs.h' include.
580 (frapy_read_register): Rewrite to make use of
581 gdbpy_parse_register_id.
582 * python/py-registers.c (gdbpy_parse_register_id): New function,
583 moved here from python/py-unwind.c. Updated the return type, and
584 also accepts register descriptor objects.
585 * python/py-unwind.c: Remove 'user-regs.h' include.
586 (pyuw_parse_register_id): Moved to python/py-registers.c.
587 (unwind_infopy_add_saved_register): Update to use
588 gdbpy_parse_register_id.
589 (pending_framepy_read_register): Likewise.
590 * python/python-internal.h (gdbpy_parse_register_id): Declare.
591
14fa8fb3
AB
5922020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
593
594 * python/py-registers.c: Add 'user-regs.h' include.
595 (register_descriptor_iter_find): New function.
596 (register_descriptor_iterator_object_methods): New static global
597 methods array.
598 (register_descriptor_iterator_object_type): Add pointer to methods
599 array.
600
ddce1758
JB
6012020-07-27 John Baldwin <jhb@FreeBSD.org>
602
603 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
604 for all architectures on FreeBSD 11.3 and later.
605
a4089f52
TT
6062020-07-27 Tom Tromey <tromey@adacore.com>
607
608 * gcore.h (load_corefile): Don't declare.
609
95420d30
TV
6102020-07-27 Tom de Vries <tdevries@suse.de>
611
612 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
613 * config.in: Regenerate.
614 * configure: Regenerate.
615
05a6b8c2
EZ
6162020-07-26 Eli Zaretskii <eliz@gnu.org>
617
618 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
619 ws2tcpip.h. When checking whether socklen_t type is defined, use
620 ws2tcpip.h if it is available and sys/socket.h isn't.
621 * configure: Regenerate.
622 * config.in: Regenerate.
623
e79eb02f
AB
6242020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
625
626 PR fortran/23051
627 PR fortran/26139
628 * valops.c (value_ind): Pass address to
629 readjust_indirect_value_type.
630 * value.c (readjust_indirect_value_type): Make parameter
631 non-const, and add extra address parameter. Resolve original type
632 before using it.
633 * value.h (readjust_indirect_value_type): Update function
634 signature and comment.
635
876518dd
TV
6362020-07-25 Tom de Vries <tdevries@suse.de>
637
638 PR symtab/26243
639 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
640 entries.
641
f6720b1c
AM
6422020-07-24 Aaron Merey <amerey@redhat.com>
643
644 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
645 * configure: Rebuild.
646
513487e1
KB
6472020-07-23 Kevin Buettner <kevinb@redhat.com>
648
649 PR corefiles/26294
650 * corelow.c (_initialize_corelow): Add period to help text
651 for "maintenance print core-file-backed-mappings".
652
e7bc9db8
PA
6532020-07-23 Pedro Alves <pedro@palves.net>
654
655 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
656 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
657 meanwhile.
658 * frame.c (frame_cache_generation, get_frame_cache_generation):
659 New.
660 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
661 (get_prev_frame_if_no_cycle): On exception, don't touch
662 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
663 * frame.h (get_frame_cache_generation): Declare.
664
90fcc466
TV
6652020-07-23 Tom de Vries <tdevries@suse.de>
666
667 PR tui/26282
668 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
669 New default constructor.
670
78344df7
AB
6712020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
672
673 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
674 exclude non-statement entries.
675
b089853a
KB
6762020-07-22 Kevin Buettner <kevinb@redhat.com>
677
678 * NEWS (New commands): Mention new command
679 "maintenance print core-file-backed-mappings".
680
09c2f5d4
KB
6812020-07-22 Kevin Buettner <kevinb@redhat.com>
682
683 * corelow.c (gdbcmd.h): Include.
684 (core_target::info_proc_mappings): New method.
685 (get_current_core_target): New function.
686 (maintenance_print_core_file_backed_mappings): New function.
687 (_initialize_corelow): Add core-file-backed-mappings to
688 "maint print" commands.
689
9c5ec5c2 6902020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 691
9c5ec5c2
KB
692 * linux-tdep.c (dump_note_entry_p): New function.
693 (linux_dump_mapping_p_ftype): New typedef.
694 (linux_find_memory_regions_full): Add new parameter,
695 should_dump_mapping_p.
696 (linux_find_memory_regions): Adjust call to
697 linux_find_memory_regions_full.
698 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
699 call to linux_find_memory_regions_full.
700
db082f59
KB
7012020-07-22 Kevin Buettner <kevinb@redhat.com>
702
703 * corelow.c (solist.h, unordered_map): Include.
704 (class core_target): Add field m_core_file_mappings and
705 method build_file_mappings.
706 (core_target::core_target): Call build_file_mappings.
707 (core_target::~core_target): Free memory associated with
708 m_core_file_mappings.
709 (core_target::build_file_mappings): New method.
710 (core_target::xfer_partial): Use m_core_file_mappings
711 for memory transfers.
712 * linux-tdep.c (linux_read_core_file_mappings): New
713 function.
714 (linux_core_info_proc_mappings): Rewrite to use
715 linux_read_core_file_mappings.
716 (linux_init_abi): Register linux_read_core_file_mappings.
717
7e183d27
KB
7182020-07-22 Kevin Buettner <kevinb@redhat.com>
719
720 * arch-utils.c (default_read_core_file_mappings): New function.
721 * arch-utils.c (default_read_core_file_mappings): Declare.
722 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
723 * gdbarch.h, gdbarch.c: Regenerate.
724
2735d421
KB
7252020-07-22 Kevin Buettner <kevinb@redhat.com>
726
727 PR corefiles/25631
728 * corelow.c (core_target:xfer_partial): Revise
729 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
730 case after first checking the stratum beneath the core
731 target.
732 (has_all_memory): Return true.
733 * target.c (raw_memory_xfer_partial): Revise comment
734 regarding use of has_all_memory.
735
e56cb451
KB
7362020-07-22 Kevin Buettner <kevinb@redhat.com>
737
738 * exec.h (section_table_xfer_memory): Revise declaration,
739 replacing section name parameter with an optional callback
740 predicate.
741 * exec.c (section_table_xfer_memory): Likewise.
742 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
743 of section_table_xfer_memory.
744
32fa152e
TT
7452020-07-22 Tom Tromey <tromey@adacore.com>
746
747 * mi/mi-cmd-stack.c (list_args_or_locals): Use
748 lookup_symbol_search_name.
749
a67a1c41
AB
7502020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
751
752 * python/py-registers.c (gdbpy_register_object_data_init): Remove
753 redundant local variable.
754 (gdbpy_get_register_descriptor): Extract descriptor vector as a
755 reference, not pointer, update code accordingly.
756
a7b4ff4f
SM
7572020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
758 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
759
760 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
761 * jit.c (jit_breakpoint_re_set_internal): Use the
762 `skip_jit_symbol_lookup` field.
763
2340e834
SM
7642020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
765 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
766
767 * jit.c (jit_read_descriptor): Define the descriptor address once,
768 use twice.
769 (jit_breakpoint_deleted): Move the declaration of the loop variable
770 `iter` into the loop header.
771 (jit_breakpoint_re_set_internal): Move the declaration of the local
772 variable `objf_data` to the first point of definition.
773 (jit_event_handler): Move the declaration of local variables
774 `code_entry`, `entry_addr`, and `objf` to their first point of use.
775 Rename `objf` to `jited`.
776
c1072906
SM
7772020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
778
779 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
780 Remove.
781 * jit.c (get_jiter_objfile_data): Update.
782
c8474dc3
TBA
7832020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
784 Simon Marchi <simon.marchi@polymtl.ca>
785
786 * jit.c (struct jit_program_space_data): Remove.
787 (jit_program_space_key): Remove.
788 (jiter_objfile_data::~jiter_objfile_data): Remove program space
789 stuff.
790 (get_jit_program_space_data): Remove.
791 (jit_breakpoint_deleted): Iterate on all of the program space's
792 objfiles.
793 (jit_inferior_init): Likewise.
794 (jit_breakpoint_re_set_internal): Likewise. Also change return
795 type to void.
796 (jit_breakpoint_re_set): Pass current_program_space to
797 jit_breakpoint_re_set_internal.
798
77208eb7
SM
7992020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
800
801 * jit.h (struct jiter_objfile_data) <cached_code_address,
802 jit_breakpoint>: Move to here from ...
803 * jit.c (jit_program_space_data): ... here.
804 (jiter_objfile_data::~jiter_objfile_data): Update.
805 (jit_breakpoint_deleted): Update.
806 (jit_breakpoint_re_set_internal): Update.
807
8c1c720f
SM
8082020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
809
810 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
811 checks.
812 (jit_read_descriptor): Remove NULL check.
813 (jit_event_handler): Add an assertion.
814
0e74a041
SM
8152020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
816
817 * jit.h (struct jit_objfile_data): Split into...
818 (struct jiter_objfile_data): ... this ...
819 (struct jited_objfile_data): ... and this.
820 * objfiles.h (struct objfile) <jit_data>: Remove.
821 <jiter_data, jited_data>: New fields.
822 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
823 (jiter_objfile_data::~jiter_objfile_data): ... this.
824 (get_jit_objfile_data): Rename to ...
825 (get_jiter_objfile_data): ... this.
826 (add_objfile_entry): Update.
827 (jit_read_descriptor): Use get_jiter_objfile_data.
828 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
829 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
830 (jit_inferior_exit_hook): Use objfile's jited_data field.
831
238b5c9f
SM
8322020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
833
834 * jit.h: Forward-declare `struct minimal_symbol`.
835 (struct jit_objfile_data): Migrate to here from jit.c; also add a
836 constructor, destructor, and an objfile* field.
837 * jit.c (jit_objfile_data): Remove.
838 (struct jit_objfile_data): Migrate from here to jit.h.
839 (jit_objfile_data::~jit_objfile_data): New destructor
840 implementation with code moved from free_objfile_data.
841 (free_objfile_data): Delete.
842 (get_jit_objfile_data): Update to use the jit_data field of objfile.
843 (jit_find_objf_with_entry_addr): Ditto.
844 (jit_inferior_exit_hook): Ditto.
845 (_initialize_jit): Remove the call to
846 register_objfile_data_with_cleanup.
847 * objfiles.h (struct objfile) <jit_data>: New field.
848
fe053b9e
TBA
8492020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
850
851 * jit.h: Forward-declare `struct objfile`.
852 (jit_event_handler): Add a second parameter, the JITer objfile.
853 * jit.c (jit_read_descriptor): Change the signature to take the
854 JITer objfile as an argument instead of the jit_program_space_data.
855 (jit_inferior_init): Update the call to jit_read_descriptor.
856 (jit_event_handler): Use the new JITer objfile argument when calling
857 jit_read_descriptor.
858 * breakpoint.c (handle_jit_event): Update the call to
859 jit_event_handler to pass the JITer objfile.
860
4cec0c66
JB
8612020-07-21 John Baldwin <jhb@FreeBSD.org>
862
863 * gdbarch.c: Regenerate.
864 * gdbarch.h: Regenerate.
865 * gdbarch.sh (handle_segmentation_fault): Remove method.
866 * infrun.c (handle_segmentation_fault): Remove.
867 (print_signal_received_reason): Remove call to
868 handle_segmentation_fault.
869
0e42f66a
JB
8702020-07-21 John Baldwin <jhb@FreeBSD.org>
871
872 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
873 Rename to sparc64_linux_report_signal_info and add siggnal
874 argument.
875 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
876 instead of sparc64_linux_handle_segmentation_fault.
877
77bdfeb2
JB
8782020-07-21 John Baldwin <jhb@FreeBSD.org>
879
880 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
881 i386_linux_report_signal_info instead of
882 i386_linux_handle_segmentation_fault.
883 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
884 to i386_linux_report_signal_info and add siggnal argument.
885 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
886 of i386_linux_handle_segmentation_fault.
887 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
888 to i386_linux_report_signal_info and add siggnal argument.
889
ad97bfc5
JB
8902020-07-21 John Baldwin <jhb@FreeBSD.org>
891
892 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
893 hook if present.
894
272bb05c
JB
8952020-07-21 John Baldwin <jhb@FreeBSD.org>
896
897 * gdbarch.c: Regenerate.
898 * gdbarch.h: Regenerate.
899 * gdbarch.sh (report_signal_info): New method.
900 * infrun.c (print_signal_received_reason): Invoke gdbarch
901 report_signal_info hook if present.
902
baf8791e
AB
9032020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
904
905 * python/py-registers.c : Add 'unordered_map' include.
906 (gdbpy_new_reggroup): Renamed to...
907 (gdbpy_get_reggroup): ...this. Update to only create register
908 group descriptors when needed.
909 (gdbpy_reggroup_iter_next): Update.
910
f7306dac
AB
9112020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
912
913 * python/py-registers.c (gdbpy_register_object_data): New static
914 global.
915 (gdbpy_register_object_data_init): New function.
916 (gdbpy_new_register_descriptor): Renamed to...
917 (gdbpy_get_register_descriptor): ...this, and update to reuse
918 existing register descriptors where possible.
919 (gdbpy_register_descriptor_iter_next): Update.
920 (gdbpy_initialize_registers): Register new gdbarch data.
921
05c309a8
SM
9222020-07-21 Simon Marchi <simon.marchi@efficios.com>
923
924 * linux-nat.c (stopped_pids): Make static.
925
d1fd641e
SM
9262020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
927
928 PR ada/26235
929 * gdbtypes.c (ada_discrete_type_low_bound,
930 ada_discrete_type_high_bound): Handle undefined bounds.
931
1de14d77
KR
9322020-07-21 Kamil Rytarowski <n54@gmx.com>
933
934 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
935 declaration.
936 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
937 function.
938
ed810cc7
JB
9392020-07-20 John Baldwin <jhb@FreeBSD.org>
940
941 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
942 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
943 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
944 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
945 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
946 method.
947
ae5369e7
LC
9482020-07-20 Ludovic Courtès <ludo@gnu.org>
949
950 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
951 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
952 which are deprecated in Guile 3.0.
953 * configure.ac (try_guile_versions): Add "guile-3.0".
954 * configure (try_guile_versions): Regenerate.
955 * NEWS: Update entry.
956
68cf161c
LC
9572020-07-20 Ludovic Courtès <ludo@gnu.org>
958 Doug Evans <dje@google.com>
959
960 PR gdb/21104
961 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
962 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
963 USING_GUILE_BEFORE_2_2.
964 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
965 Change type to 'scm_t_port_type *'.
966 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
967 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
968 parameter and honor it. Update callers.
969 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
970 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
971 functions.
972 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
973 USING_GUILE_BEFORE_2_2.
974 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
975 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
976 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
977 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
978 and 'SCM_PORT_TYPE'.
979 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
980 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
981 (gdbscm_memory_port_read, gdbscm_memory_port_write)
982 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
983 [!USING_GUILE_BEFORE_2_2]: New functions.
984 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
985 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
986 'gdbscm_memory_port_read'.
987 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
988 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
989 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
990 function.
991 (ioscm_init_memory_port): Remove.
992 (ioscm_init_memory_port_stream): New function
993 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
994 function.
995 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
996 Return scm_from_uint (0).
997 (gdbscm_set_memory_port_read_buffer_size_x)
998 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
999 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
1000 Return scm_from_uint (0).
1001 (gdbscm_set_memory_port_write_buffer_size_x)
1002 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
1003 * configure.ac (try_guile_versions): Add "guile-2.2".
1004 * configure: Regenerate.
1005 * NEWS: Add entry.
1006
aee91db3
TT
10072020-07-18 Tom Tromey <tom@tromey.com>
1008
1009 * linux-nat.c (linux_multi_process): Remove.
1010 (linux_nat_target::supports_multi_process): Return true.
1011
0e267416
AB
10122020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
1013
1014 * arch/riscv.c (riscv_tdesc_cache): Change map type.
1015 (riscv_lookup_target_description): Return pointer out of
1016 unique_ptr.
1017 * target-descriptions.c (allocate_target_description): Add
1018 comment.
1019 (target_desc_deleter::operator()): Likewise.
1020 * target-descriptions.h (struct target_desc_deleter): Moved to
1021 gdbsupport/tdesc.h.
1022 (target_desc_up): Likewise.
1023
f80c8ec4
TT
10242020-07-17 Tom Tromey <tromey@adacore.com>
1025
1026 * linux-nat.c (linux_nat_target::supports_non_stop)
1027 (linux_nat_target::always_non_stop_p): Use "true".
1028 (linux_nat_target::supports_disable_randomization): Use "true" and
1029 "false".
1030
d0ce17d8
CT
10312020-07-16 Caroline Tice <cmtice@google.com>
1032
1033 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
1034 (RNGLIST_HEADER_SIZE64): New constant definition.
1035 (struct dwop_section_names): Add rnglists_dwo.
1036 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
1037 (struct loclist_header): Rename to 'loclists_rnglists_header'.
1038 (struct dwo_sections): Add rnglists field.
1039 (read_attribut_reprocess): Add tag parameter.
1040 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
1041 (cu_debug_rnglists_section): New function (decl & definition).
1042 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
1043 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
1044 die whose range is being checked; get rnglist section from
1045 cu_debug_rnglists_section, to get from either objfile or dwo file as
1046 appropriate. Add cases for DW_RLE_base_addressx,
1047 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
1048 the base address to DW_RLE_offset_pairs (not to all ranges), moving
1049 test inside if-condition and updating complaint message.
1050 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
1051 dwarf2_rnglists_process.
1052 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
1053 dwarf2_ranges_process.
1054 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
1055 need_ranges_base and update comment appropriately. Also pass die tag
1056 to dwarf2_ranges_read.
1057 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
1058 need_ranges_base and update comment appropriately. Also pass die tag
1059 to dwarf2_ranges_process.
1060 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
1061 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
1062 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
1063 need_ranges_base and update comment appropriately. Also pass die tag
1064 to read_attribute_reprocess and dwarf2_ranges_read.
1065 (read_loclist_header): Rename function to read_loclists_rnglists_header,
1066 and update function comment appropriately.
1067 (read_loclist_index): Call read_loclists_rnglists_header instead of
1068 read_loclist_header.
1069 (read_rnglist_index): New function.
1070 (read_attribute_reprocess): Add tag parameter. Add code for
1071 DW_FORM_rnglistx, passing tag to read_rnglist_index.
1072 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
1073
3dcc261c
AB
10742020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
1075
1076 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
1077 being resolved.
1078
ccb9eba6
AB
10792020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
1080
1081 * arch-utils.c (show_architecture): Update formatting of messages.
1082
cf88be68
SM
10832020-07-12 Simon Marchi <simon.marchi@efficios.com>
1084
1085 * gdbtypes.h (struct type) <bounds>: Handle array and string
1086 types.
1087 * ada-lang.c (assign_aggregate): Use type::bounds on
1088 array/string type.
1089 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
1090 * c-varobj.c (c_number_of_children): Likewise.
1091 (c_describe_child): Likewise.
1092 * eval.c (evaluate_subexp_for_sizeof): Likewise.
1093 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
1094 (f_type_print_base): Likewise.
1095 * f-valprint.c (f77_array_offset_tbl): Likewise.
1096 (f77_get_upperbound): Likewise.
1097 (f77_print_array_1): Likewise.
1098 * guile/scm-type.c (gdbscm_type_range): Likewise.
1099 * m2-typeprint.c (m2_array): Likewise.
1100 (m2_is_long_set_of_type): Likewise.
1101 * m2-valprint.c (get_long_set_bounds): Likewise.
1102 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1103 * python/py-type.c (typy_range): Likewise.
1104 * rust-lang.c (rust_internal_print_type): Likewise.
1105 * type-stack.c (type_stack::follow_types): Likewise.
1106 * valarith.c (value_subscripted_rvalue): Likewise.
1107 * valops.c (value_cast): Likewise.
1108
509971ae
SM
11092020-07-12 Simon Marchi <simon.marchi@efficios.com>
1110
1111 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
1112 callers to use the equivalent accessor methods.
1113
107406b7
SM
11142020-07-12 Simon Marchi <simon.marchi@efficios.com>
1115
1116 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
1117 (struct type) <bit_stride>: New method.
1118 (TYPE_BIT_STRIDE): Remove.
1119 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
1120
bb789949
SM
11212020-07-12 Simon Marchi <simon.marchi@efficios.com>
1122
1123 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
1124 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
1125 callers to use the equivalent accessor methods instead.
1126
39498edb
SM
11272020-07-12 Simon Marchi <simon.marchi@efficios.com>
1128
1129 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
1130 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
1131 callers to use the equivalent accessor methods instead.
1132
3b606f38
SM
11332020-07-12 Simon Marchi <simon.marchi@efficios.com>
1134
1135 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
1136 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
1137 to use dynamic_prop::kind.
1138
064d9cb9
SM
11392020-07-12 Simon Marchi <simon.marchi@efficios.com>
1140
1141 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
1142 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
1143 to get the bound property's kind and check against
1144 PROP_UNDEFINED.
1145
5537ddd0
SM
11462020-07-12 Simon Marchi <simon.marchi@efficios.com>
1147
1148 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
1149 all callers to use type::range_bounds followed by
1150 dynamic_prop::{low,high}.
1151
8c2e4e06
SM
11522020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1153
1154 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
1155 const_val, set_const_val, baton, set_locexpr, set_loclist,
1156 set_addr_offset, variant_parts, set_variant_parts,
1157 original_type, set_original_type>: New methods.
1158 <kind>: Rename to...
1159 <m_kind>: ... this. Update all users to use the new methods
1160 instead.
1161 <data>: Rename to...
1162 <m_data>: ... this. Update all users to use the new methods
1163 instead.
1164
7c6f2712
SM
11652020-07-12 Simon Marchi <simon.marchi@efficios.com>
1166
1167 * gdbtypes.c (get_discrete_bounds): Return failure if
1168 the range type's bounds are not both defined and constant
1169 values.
1170 (get_array_bounds): Update comment. Remove undefined bound check.
1171
599088e3
SM
11722020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1173
1174 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
1175 the type::bounds method directly.
1176
c4dfcb36
SM
11772020-07-12 Simon Marchi <simon.marchi@efficios.com>
1178
1179 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
1180 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
1181 are used to set the range type's bounds to use set_bounds.
1182
0a278aa7
PW
11832020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1184
1185 * exec.c (_initialize_exec): Update exec-file-mismatch help.
1186
cce20f10
PA
11872020-07-10 Pedro Alves <pedro@palves.net>
1188
1189 * gdbthread.h (inferior_ref): Define.
1190 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
1191 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
1192 * thread.c
1193 (scoped_restore_current_thread::restore):
1194 Adjust to gdb::ref_ptr.
1195 (scoped_restore_current_thread::~scoped_restore_current_thread):
1196 Remove manual decref handling.
1197 (scoped_restore_current_thread::scoped_restore_current_thread):
1198 Adjust to use
1199 inferior_ref::new_reference/thread_info_ref::new_reference.
1200 Incref the thread before calling get_frame_id instead of after.
1201 Let TARGET_CLOSE_ERROR propagate.
1202
6d7aa592
PA
12032020-07-10 Pedro Alves <pedro@palves.net>
1204
1205 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
1206 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
1207 NOT_AVAILABLE_ERROR.
1208 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
1209 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
1210
b3e3a4c1
SM
12112020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
1212 Pedro Alves <pedro@palves.net>
1213
1214 PR gdb/26199
1215 * infrun.c (threads_are_resumed_pending_p): Delete.
1216 (do_target_wait): Remove threads_are_executing and
1217 threads_are_resumed_pending_p checks from the inferior_matches
1218 lambda. Update comments.
1219
d6cc5d98
PA
12202020-07-10 Pedro Alves <pedro@palves.net>
1221
1222 PR gdb/26199
1223 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
1224 executing threads.
1225
7d3badc6
PA
12262020-07-10 Pedro Alves <pedro@palves.net>
1227
1228 PR gdb/26199
1229 * infrun.c (handle_no_resumed): Handle multiple targets.
1230
42bd97a6
PA
12312020-07-10 Pedro Alves <pedro@palves.net>
1232
1233 PR gdb/26199
1234 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
1235 target_is_async_p.
1236
43667cc6
PA
12372020-07-10 Pedro Alves <pedro@palves.net>
1238
1239 PR gdb/26199
1240 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
1241 threads, not all threads.
1242
96118d11
PA
12432020-07-10 Pedro Alves <pedro@palves.net>
1244
1245 PR gdb/26199
1246 * remote.c (remote_target::open_1): Pass remote target pointer as
1247 data to create_async_event_handler.
1248 (remote_async_inferior_event_handler): Mark async event handler
1249 before returning if the remote target still has either pending
1250 events or unacknowledged notifications.
1251
54904d81
JB
12522020-07-10 John Baldwin <jhb@FreeBSD.org>
1253
1254 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
1255 declaration.
1256 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
1257 function.
1258
f37e5866
JB
12592020-07-09 John Baldwin <jhb@FreeBSD.org>
1260
1261 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
1262 inferior_ptid.
1263
fc238d4a
JB
12642020-07-09 John Baldwin <jhb@FreeBSD.org>
1265
1266 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
1267 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
1268 AT_FREEBSD_PS_STRINGS.
1269
6e2469ff
HD
12702020-07-08 Hannes Domani <ssbssa@yahoo.de>
1271
1272 * auto-load.c (auto_load_objfile_script_1): Convert drive part
1273 of debugfile path on Windows.
1274
d1076c41
JB
12752020-07-08 John Baldwin <jhb@FreeBSD.org>
1276
1277 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
1278 argument to 'data'.
1279
15f3b077
TT
12802020-07-08 Tom Tromey <tromey@adacore.com>
1281
1282 * ada-lang.c (ada_exception_message_1): Use read_memory.
1283
9fc501fd
AB
12842020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1285
1286 PR python/22748
1287 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
1288 special handling for inline frames.
1289 * findvar.c (value_of_register_lazy): Skip inline frames when
1290 creating lazy register values.
1291 * frame.c (frame_id_computed_p): Delete definition.
1292 * frame.h (frame_id_computed_p): Delete declaration.
1293
64cb3757
AB
12942020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1295
1296 * NEWS: Mention additions to Python API.
1297 * python/py-arch.c (archpy_register_groups): New function.
1298 (arch_object_methods): Add 'register_groups' method.
1299 * python/py-registers.c (reggroup_iterator_object): New struct.
1300 (reggroup_object): New struct.
1301 (gdbpy_new_reggroup): New function.
1302 (gdbpy_reggroup_to_string): New function.
1303 (gdbpy_reggroup_name): New function.
1304 (gdbpy_reggroup_iter): New function.
1305 (gdbpy_reggroup_iter_next): New function.
1306 (gdbpy_new_reggroup_iterator): New function
1307 (gdbpy_initialize_registers): Register new types.
1308 (reggroup_iterator_object_type): Define new Python type.
1309 (gdbpy_reggroup_getset): New static global.
1310 (reggroup_object_type): Define new Python type.
1311 * python/python-internal.h
1312
0f767f94
AB
13132020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1314
1315 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
1316 * python/py-arch.c (archpy_registers): New function.
1317 (arch_object_methods): Add 'registers' method.
1318 * python/py-registers.c: New file.
1319 * python/python-internal.h
1320 (gdbpy_new_register_descriptor_iterator): Declare.
1321 (gdbpy_initialize_registers): Declare.
1322 * python/python.c (do_start_initialization): Call
1323 gdbpy_initialize_registers.
1324 * NEWS: Mention additions to the Python API.
1325
87dbc774
AB
13262020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1327
1328 * NEWS: Mention new Python API method.
1329 * python/py-unwind.c (pending_framepy_architecture): New function.
1330 (pending_frame_object_methods): Add architecture method.
1331
3bc98c0c
AB
13322020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1333
1334 * gdbarch.c: Regenerate.
1335 * gdbarch.h: Regenerate.
1336 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
1337 (gdbarch_data): Use internal_error for the case where
1338 deprecated_set_gdbarch_data was originally needed.
1339 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
1340 and use passed in obstack.
1341 (libunwind_frame_set_descr): Should no longer get back NULL from
1342 gdbarch_data.
1343 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
1344 type.
1345 * user-regs.c (user_regs_init): Update parameters, and use passed
1346 in obstack.
1347 (user_reg_add): Should no longer get back NULL from gdbarch_data.
1348 (_initialize_user_regs): Register as a pre-init gdbarch data type.
1349
d8cc8af6
TV
13502020-07-06 Tom de Vries <tdevries@suse.de>
1351
1352 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
1353 End-Of-Sequence in lte_is_less_than.
1354 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
1355 "gdb: Don't reorder line table entries too much when sorting".
1356
947f7597
TV
13572020-07-06 Tom de Vries <tdevries@suse.de>
1358
1359 PR tui/26205
1360 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
1361
1e7c1b22
TV
13622020-07-05 Tom de Vries <tdevries@suse.de>
1363
1364 PR build/26187
1365 * inferior.h (struct infcall_suspend_state_deleter): If available, use
1366 std::uncaught_exceptions instead of deprecated
1367 std::uncaught_exception.
1368
a36158ec
SM
13692020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1370
1371 * macroexp.h (macro_stringify): Return
1372 gdb::unique_xmalloc_ptr<char>.
1373 * macroexp.c (macro_stringify): Likewise.
1374 * macrotab.c (fixup_definition): Update.
1375
14d960c8
SM
13762020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1377
1378 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
1379 (lex_one_token): Update.
1380 * macroexp.c (struct macro_buffer) <release>: Return
1381 gdb::unique_xmalloc_ptr<char>.
1382 (macro_stringify): Update.
1383 (macro_expand): Update.
1384 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
1385 * macroexp.h (macro_expand_next): Likewise.
1386
211d5b1c
SM
13872020-07-02 Simon Marchi <simon.marchi@efficios.com>
1388
1389 * macroexp.h (macro_lookup_ftype): Remove.
1390 (macro_expand, macro_expand_once, macro_expand_next): Remove
1391 lookup function parameters, add scope parameter.
1392 * macroexp.c (scan, substitute_args, expand, maybe_expand,
1393 macro_expand, macro_expand_once, macro_expand_next): Likewise.
1394 * macroscope.h (standard_macro_lookup): Change parameter type
1395 to macro_scope.
1396 * macroscope.c (standard_macro_lookup): Likewise.
1397 * c-exp.y (lex_one_token): Update.
1398 * macrocmd.c (macro_expand_command): Likewise.
1399 (macro_expand_once_command): Likewise.
1400
b1a35af2
SM
14012020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1402
1403 * inf-loop.c (inferior_event_handler): Remove client_data param.
1404 * inf-loop.h (inferior_event_handler): Likewise.
1405 * infcmd.c (step_1): Adjust.
1406 * infrun.c (proceed): Adjust.
1407 (fetch_inferior_event): Remove client_data param.
1408 (infrun_async_inferior_event_handler): Adjust.
1409 * infrun.h (fetch_inferior_event): Remove `void *` param.
1410 * linux-nat.c (handle_target_event): Adjust.
1411 * record-btrace.c (record_btrace_handle_async_inferior_event):
1412 Adjust.
1413 * record-full.c (record_full_async_inferior_event_handler):
1414 Adjust.
1415 * remote.c (remote_async_inferior_event_handler): Adjust.
1416
1cdf9e33
TT
14172020-07-01 Tom Tromey <tom@tromey.com>
1418
1419 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
1420 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
1421
32c1e210
TT
14222020-07-01 Tom Tromey <tom@tromey.com>
1423
1424 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
1425 tui_gen_win_info.
1426 (tui_win_info::make_window): Merge with
1427 tui_gen_win_info::make_window.
1428 (tui_win_info::make_visible): Move from tui_gen_win_info.
1429 * tui/tui-win.c (tui_win_info::max_width): Move from
1430 tui_gen_win_info.
1431 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
1432 type.
1433 <window_factory>: Likewise.
1434 * tui/tui-layout.c (tui_win_info::resize): Move from
1435 tui_gen_win_info.
1436 (make_standard_window): Change return type.
1437 (get_locator_window, tui_get_window_by_name): Likewise.
1438 (tui_layout_window::apply): Remove a cast.
1439 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
1440 (struct tui_win_info): Merge with tui_gen_win_info.
1441 (struct tui_gen_win_info): Remove.
1442
a30cb6da
TT
14432020-07-01 Tom Tromey <tom@tromey.com>
1444
1445 * tui/tui-stack.h (struct tui_locator_window): Derive from
1446 tui_win_info.
1447 <do_scroll_horizontal, do_scroll_vertical>: New methods.
1448 <can_box>: New method.
1449
1eb2161f
TT
14502020-07-01 Tom Tromey <tom@tromey.com>
1451
1452 * tui/tui-stack.h (struct tui_locator_window): Remove body.
1453
7134f2eb
TT
14542020-07-01 Tom Tromey <tom@tromey.com>
1455
1456 * tui/tui-regs.c (tui_data_window::display_registers_from)
1457 (tui_data_window::display_registers_from)
1458 (tui_data_window::first_data_item_displayed)
1459 (tui_data_window::delete_data_content_windows): Update.
1460 (tui_data_window::refresh_window, tui_data_window::no_refresh):
1461 Remove.
1462 (tui_data_window::check_register_values): Update.
1463 (tui_data_item_window::rerender): Add parameters. Update.
1464 (tui_data_item_window::refresh_window): Remove.
1465 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
1466 virtual.
1467 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
1468 tui_gen_win_info.
1469 <refresh_window, max_height, min_height>: Remove.
1470 <rerender>: Add parameters.
1471 <x, y, visible>: New members.
1472 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
1473 <m_item_width>: New member.
1474
22b7b041
TT
14752020-07-01 Tom Tromey <tom@tromey.com>
1476
1477 * tui/tui-regs.c (tui_data_window::show_register_group)
1478 (tui_data_window::check_register_values): Update.
1479 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
1480 from item_no.
1481
c9753adb
TT
14822020-07-01 Tom Tromey <tom@tromey.com>
1483
1484 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
1485 useless "if".
1486
9ab26b4a
TT
14872020-07-01 Tom Tromey <tom@tromey.com>
1488
1489 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
1490 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
1491
e555083f
TT
14922020-07-01 Tom Tromey <tom@tromey.com>
1493
1494 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
1495 * tui/tui-winsource.h (enum tui_line_or_address_kind)
1496 (struct tui_line_or_address): Move from tui-data.h.
1497 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
1498 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
1499 (tui_cmd_window, tui_source_window_base, tui_source_window)
1500 (tui_disasm_window): Don't declare.
1501 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
1502 to tui-winsource.h.
1503 (SINGLE_KEY): Move to tui-stack.c.
1504
7a02bab7
TT
15052020-07-01 Tom Tromey <tom@tromey.com>
1506
1507 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
1508 std::string.
1509 * tui/tui-regs.c (class tab_expansion_file): New.
1510 (tab_expansion_file::write): New method.
1511 (tui_register_format): Change return type. Use
1512 tab_expansion_file.
1513 (tui_get_register, tui_data_window::display_registers_from)
1514 (tui_data_item_window::rerender): Update.
1515 * tui/tui-io.h (tui_expand_tabs): Don't declare.
1516 * tui/tui-io.c (tui_expand_tabs): Remove.
1517
ea68593b
TT
15182020-07-01 Tom Tromey <tom@tromey.com>
1519
1520 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
1521
a8caed5d
FS
15222020-07-01 Fangrui Song <maskray@google.com>
1523
1524 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
1525
9cdf9820
AKS
15262020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1527
1528 * dwarf2/read.c (set_die_type): Removed conditions to restrict
1529 forms for DW_AT_associated and DW_AT_allocated attributes,
1530 which is already checked in function attr_to_dynamic_prop.
1531
a1520ad8
TT
15322020-06-30 Tom Tromey <tromey@adacore.com>
1533
1534 * dwarf2/read.c (quirk_rust_enum): Correctly call
1535 alloc_rust_variant for default-less enum.
1536
5ac58899
TT
15372020-06-30 Tom Tromey <tromey@adacore.com>
1538
1539 PR build/26183:
1540 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
1541 gdb::to_string.
1542
19b187a9
SM
15432020-06-29 Simon Marchi <simon.marchi@efficios.com>
1544
1545 * gdbarch.sh (displaced_step_copy_insn): Update doc.
1546 * gdbarch.h: Re-generate.
1547
cd4c4c07
TT
15482020-06-28 Tom Tromey <tom@tromey.com>
1549
1550 * command.h (cmd_types): Remove.
1551 (cmd_type): Don't declare.
1552 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
1553 typedef.
1554 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
1555 * cli/cli-decode.c (cmd_type): Remove.
1556
05779d57
PA
15572020-06-27 Pedro Alves <palves@redhat.com>
1558
1559 * fork-child.c (prefork_hook): Adjust.
1560 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
1561 Delete.
1562 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
1563 * inferior.c (inferior::set_tty, inferior::tty): New methods.
1564 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
1565 Remove declarations.
1566 (struct inferior) <set_tty, tty>: New methods.
1567 (struct inferior) <terminal>: Rename to ...
1568 (struct inferior) <m_terminal>: ... this and make private.
1569 * main.c (captured_main_1): Adjust.
1570 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
1571 (mi_cmd_inferior_tty_show): Adjust.
1572 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
1573 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
1574
1776e3e5
NA
15752020-06-26 Nick Alcock <nick.alcock@oracle.com>
1576
1577 * configure.ac: Add --enable-libctf: handle --disable-static
1578 properly.
1579 * acinclude.m4: sinclude ../config/enable.m4.
1580 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
1581 (LIBCTF): Substitute in.
1582 (CTF_DEPS): New, likewise.
1583 (CLIBS): libctf needs symbols from libbfd: move earlier.
1584 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
1585 flags.
1586 * ctfread.c: Surround in ENABLE_LIBCTF.
1587 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
1588 * configure: Regenerate.
1589 * config.in: Likewise.
1590
58373b80
SM
15912020-06-25 Simon Marchi <simon.marchi@efficios.com>
1592
1593 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
1594
277474ee
SM
15952020-06-25 Simon Marchi <simon.marchi@efficios.com>
1596
1597 * inferior.h (struct inferior) <terminal>: Change type to
1598 gdb::unique_xmalloc_ptr<char>.
1599 * inferior.c (inferior::~inferior): Don't free inf->terminal.
1600 * infcmd.c (set_inferior_io_terminal): Don't free terminal
1601 field, adjust to unique pointer.
1602 (get_inferior_io_terminal): Adjust to unique pointer.
1603
6d74da72
AB
16042020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1605
1606 * riscv-tdep.c (riscv_print_registers_info): Loop over all
1607 registers, not just the known core set of registers.
1608
2e52d038
AB
16092020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1610
1611 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
1612 fflags, frm, and fcsr registers.
1613 (riscv_register_reggroup_p): Remove unknown CSRs from save and
1614 restore groups.
1615 (riscv_tdesc_unknown_reg): New function.
1616 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
1617 tdesc_use_registers.
1618 * riscv-tdep.h (struct gdbarch_tdep): Add
1619 unknown_csrs_first_regnum, unknown_csrs_count,
1620 duplicate_fflags_regnum, duplicate_frm_regnum, and
1621 duplicate_fcsr_regnum fields.
1622
be64fd07
AB
16232020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1624
1625 * target-descriptions.c (tdesc_use_registers): Add new parameter a
1626 callback, use the callback (when not null) to help number unknown
1627 registers.
1628 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
1629 (tdesc_use_registers): Add extra parameter to declaration.
1630
3b9fce96
AB
16312020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1632
1633 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
1634 in the file.
1635 (class riscv_pending_register_alias): Likewise.
1636 (riscv_register_feature::register_info): Change 'required_p' field
1637 to 'required', and change its type. Add 'check' member function.
1638 (riscv_register_feature::register_info::check): Define new member
1639 function.
1640 (riscv_xreg_feature): Change initialisation of 'required' field.
1641 (riscv_freg_feature): Likewise.
1642 (riscv_virtual_feature): Likewise.
1643 (riscv_csr_feature): Likewise.
1644 (riscv_check_tdesc_feature): Take extra parameter, the csr
1645 tdesc_feature, rewrite the function to use the new
1646 riscv_register_feature::register_info::check function.
1647 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
1648
865bad26
AB
16492020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1650
1651 * features/Makefile: Remove all references to the deleted files
1652 below.
1653 * features/riscv/32bit-csr.c: Deleted.
1654 * features/riscv/32bit-csr.xml: Deleted.
1655 * features/riscv/64bit-csr.c: Deleted.
1656 * features/riscv/64bit-csr.xml: Deleted.
1657 * features/riscv/rebuild-csr-xml.sh: Deleted.
1658
ed69cbc8
AB
16592020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1660
1661 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
1662 whitespace error for declaration of names member variable.
1663 (struct riscv_register_feature): Add new prefer_first_name member
1664 variable, and fix whitespace error in declaration of registers.
1665 (riscv_xreg_feature): Initialize prefer_first_name field.
1666 (riscv_freg_feature): Likewise.
1667 (riscv_virtual_feature): Likewise.
1668 (riscv_csr_feature): Likewise.
1669 (riscv_register_name): Expand on comments. Remove register name
1670 modifications for CSR and virtual registers.
1671
4445e8f5
AB
16722020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1673
1674 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
1675 errors.
1676
767a879e
AB
16772020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1678
1679 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
1680 riscv-opc.h.
1681 (class riscv_pending_register_alias): New class.
1682 (riscv_check_tdesc_feature): Take vector of pending aliases and
1683 populate it as appropriate.
1684 (riscv_setup_register_aliases): Delete.
1685 (riscv_gdbarch_init): Create vector of pending aliases and pass it
1686 to riscv_check_tdesc_feature in all cases. Use the vector to
1687 create the register aliases.
1688
bb6e55f3
RO
16892020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1690
1691 * sol2-tdep.c (sol2_static_transform_name): Remove.
1692 (sol2_init_abi): Don't register it.
1693 * gdbarch.sh (static_transform_name): Remove.
1694 * gdbarch.c, gdbarch.h: Regenerate.
1695
1696 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
1697 gdbarch_static_transform_name.
1698 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
1699 * stabsread.c (define_symbol) <'X'>: Remove.
1700 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
1701 handling.
1702 <'V'>: Likewise.
1703 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
1704 <'S'>: Remove call to gdbarch_static_transform_name.
1705
c6d36836
RO
17062020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1707
1708 * procfs.c (procfs_pre_trace): New function.
1709 (procfs_target::create_inferior): Pass it to fork_inferior.
1710
a7e6196b
RO
17112020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1712
1713 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
1714 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
1715 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
1716 sol2-tdep.o, sparc-sol2-tdep.o.
1717 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
1718 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
1719 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
1720 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
1721
d412e696
RO
17222020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1723
1724 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
1725 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
1726 Call sol2_init_abi.
1727 Remove calls to set_gdbarch_skip_solib_resolver,
1728 set_gdbarch_core_pid_to_str.
1729 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
1730 (i386_sol2_static_transform_name): Remove.
1731 (i386_sol2_init_abi): Call sol2_init_abi.
1732 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1733 set_gdbarch_static_transform_name,
1734 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1735 Use sol2_sigtramp_p.
1736 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
1737 (sol2_sigtramp_p): New function.
1738 (sol2_static_transform_name): New function.
1739 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
1740 (sol2_init_abi): New function.
1741 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
1742 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
1743 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
1744 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
1745 (sparc_sol2_static_transform_name): Remove.
1746 (sparc32_sol2_init_abi): Call sol2_init_abi.
1747 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1748 set_gdbarch_static_transform_name,
1749 set_gdbarch_skip_solib_resolver,
1750 set_gdbarch_core_pid_to_str.
1751 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
1752 (sparc_sol2_static_transform_name): Remove
1753 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
1754 call sol2_sigtramp_p.
1755 (sparc64_sol2_init_abi): Call sol2_init_abi.
1756 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1757 set_gdbarch_static_transform_name,
1758 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1759
a8654e7d
PW
17602020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1761
1762 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
1763 * exec.c (validate_exec_file): If from_tty, set both
1764 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
1765 * symfile.c (symbol_file_add_with_addrs): if always_confirm
1766 and from_tty, unconditionally ask a confirmation.
1767
caa7fd04
AB
17682020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1769
1770 * target-descriptions.c (tdesc_architecture_name): Protect against
1771 NULL pointer dereference.
1772 (maint_print_xml_tdesc_cmd): New function.
1773 (_initialize_target_descriptions): Register new 'maint print
1774 xml-tdesc' command and give it the filename completer.
1775 * NEWS: Mention new 'maint print xml-tdesc' command.
1776
fbf42f4e
AB
17772020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1778
1779 * target-descriptions.c (class tdesc_compatible_info): New class.
1780 (struct target_desc): Change type of compatible vector.
1781 (tdesc_compatible_p): Update for change in type of
1782 target_desc::compatible.
1783 (tdesc_compatible_info_list): New function.
1784 (tdesc_compatible_info_arch_name): New function.
1785 (tdesc_add_compatible): Update for change in type of
1786 target_desc::compatible.
1787 (print_c_tdesc::visit_pre): Likewise.
1788
20821f4e
AB
17892020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1790
1791 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
1792 whitespace to underscore.
1793 (maint_print_c_tdesc_cmd): Use fake filename for target
1794 descriptions that came from the target.
1795 (_initialize_target_descriptions): Add filename command completion
1796 for 'maint print c-tdesc'.
1797
1fb5ee62
SM
17982020-06-23 Simon Marchi <simon.marchi@efficios.com>
1799
1800 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
1801 lines.
1802
fc3ecb3e
SM
18032020-06-23 Simon Marchi <simon.marchi@efficios.com>
1804
1805 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
1806 lines.
1807 (dwarf2_find_location_expression): Likewise.
1808 (call_site_parameter_matches): Likewise.
1809 (dwarf2_compile_expr_to_ax): Likewise.
1810 (disassemble_dwarf_expression): Likewise.
1811 (loclist_describe_location): Likewise.
1812
236ef034
PA
18132020-06-23 Pedro Alves <palves@redhat.com>
1814
1815 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
1816 progspace-and-thread.h. Include scoped-mock-context.h instead.
1817 (register_to_value_test): Use scoped_mock_context.
1818 * regcache.c: Include "scoped-mock-context.h".
1819 (cooked_read_test): Don't error out if a target is already pushed.
1820 Use scoped_mock_context. Adjust.
1821 * scoped-mock-context.h: New file.
1822
39e7ecca
AB
18232020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1824
1825 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
1826 initializer.
1827 (ada_language::is_string_type_p): New member function.
1828 * c-lang.c (c_language_data): Delete la_is_string_type_p
1829 initializer.
1830 (cplus_language_data): Likewise.
1831 (asm_language_data): Likewise.
1832 (minimal_language_data): Likewise.
1833 * d-lang.c (d_language_data): Likewise.
1834 * f-lang.c (f_is_string_type_p): Delete function, implementation
1835 moved to f_language::is_string_type_p.
1836 (f_language_data): Delete la_is_string_type_p initializer.
1837 (f_language::is_string_type_p): New member function,
1838 implementation from f_is_string_type_p.
1839 * go-lang.c (go_is_string_type_p): Delete function, implementation
1840 moved to go_language::is_string_type_p.
1841 (go_language_data): Delete la_is_string_type_p initializer.
1842 (go_language::is_string_type_p): New member function,
1843 implementation from go_is_string_type_p.
1844 * language.c (language_defn::is_string_type_p): Define new member
1845 function.
1846 (default_is_string_type_p): Make static, add comment copied from
1847 header file.
1848 (unknown_language_data): Delete la_is_string_type_p initializer.
1849 (unknown_language::is_string_type_p): New member function.
1850 (auto_language_data): Delete la_is_string_type_p initializer.
1851 (auto_language::is_string_type_p): New member function.
1852 * language.h (language_data): Delete la_is_string_type_p field.
1853 (language_defn::is_string_type_p): Declare new function.
1854 (default_is_string_type_p): Delete desclaration, move comment to
1855 definition.
1856 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
1857 moved to m2_language::is_string_type_p.
1858 (m2_language_data): Delete la_is_string_type_p initializer.
1859 (m2_language::is_string_type_p): New member function,
1860 implementation from m2_is_string_type_p.
1861 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
1862 initializer.
1863 * opencl-lang.c (opencl_language_data): Likewise.
1864 * p-lang.c (pascal_is_string_type_p): Delete function,
1865 implementation moved to pascal_language::is_string_type_p.
1866 (pascal_language_data): Delete la_is_string_type_p initializer.
1867 (pascal_language::is_string_type_p): New member function,
1868 implementation from pascal_is_string_type_p.
1869 * rust-lang.c (rust_is_string_type_p): Delete function,
1870 implementation moved to rust_language::is_string_type_p.
1871 (rust_language_data): Delete la_is_string_type_p initializer.
1872 (rust_language::is_string_type_p): New member function,
1873 implementation from rust_is_string_type_p.
1874 * valprint.c (val_print_scalar_or_string_type_p): Update call to
1875 is_string_type_p.
1876
4ffc13fb
AB
18772020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1878
1879 * ada-lang.c (ada_language_data): Delete la_print_typedef
1880 initializer.
1881 (ada_language::print_typedef): New member function.
1882 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
1883 (cplus_language_data): Likewise.
1884 (asm_language_data): Likewise.
1885 (minimal_language_data): Likewise.
1886 * d-lang.c (d_language_data): Likewise.
1887 * f-lang.c (f_language_data): Likewise.
1888 (f_language::print_typedef): New member function.
1889 * go-lang.c (go_language_data): Delete la_print_typedef
1890 initializer.
1891 * language.c (language_defn::print_typedef): Define member
1892 function.
1893 (unknown_language_data): Delete la_print_typedef initializer.
1894 (unknown_language::print_typedef): New member function.
1895 (auto_language_data): Delete la_print_typedef initializer.
1896 (auto_language::print_typedef): New member function.
1897 * language.h (language_data): Delete la_print_typedef field.
1898 (language_defn::print_typedef): Declare new member function.
1899 (LA_PRINT_TYPEDEF): Update call to print_typedef.
1900 (default_print_typedef): Delete declaration.
1901 * m2-lang.c (m2_language_data): Delete la_print_typedef
1902 initializer.
1903 (m2_language::print_typedef): New member function.
1904 * objc-lang.c (objc_language_data): Delete la_print_typedef
1905 initializer.
1906 * opencl-lang.c (opencl_language_data): Likewise.
1907 * p-lang.c (pascal_language_data): Likewise.
1908 (pascal_language::print_typedef): New member function.
1909 * rust-lang.c (rust_print_typedef): Delete function,
1910 implementation moved to rust_language::print_typedef.
1911 (rust_language): Delete la_print_typedef initializer.
1912 (rust_language::print_typedef): New member function,
1913 implementation from rust_print_typedef.
1914 * typeprint.c (default_print_typedef): Delete.
1915
d711ee67
AB
19162020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1917
1918 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
1919 (ada_language::printstr): New member function.
1920 * c-lang.c (c_language_data): Delete la_printstr initializer.
1921 (cplus_language_data): Likewise.
1922 (asm_language_data): Likewise.
1923 (minimal_language_data): Likewise.
1924 * d-lang.c (d_language_data): Likewise.
1925 * f-lang.c (f_printstr): Rename to f_language::printstr.
1926 (f_language_data): Delete la_printstr initializer.
1927 (f_language::printstr): New member function, implementation from
1928 f_printstr.
1929 * go-lang.c (go_language_data): Delete la_printstr initializer.
1930 * language.c (language_defn::printstr): Define new member
1931 function.
1932 (unk_lang_printstr): Delete.
1933 (unknown_language_data): Delete la_printstr initializer.
1934 (unknown_language::printstr): New member function.
1935 (auto_language_data): Delete la_printstr initializer.
1936 (auto_language::printstr): New member function.
1937 * language.h (language_data): Delete la_printstr field.
1938 (language_defn::printstr): Declare new member function.
1939 (LA_PRINT_STRING): Update call to printstr.
1940 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
1941 (m2_language_data): Delete la_printstr initializer.
1942 (m2_language::printstr): New member function, implementation from
1943 m2_printstr.
1944 * objc-lang.c (objc_language_data): Delete la_printstr
1945 initializer.
1946 * opencl-lang.c (opencl_language_data): Likewise.
1947 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
1948 (pascal_language_data): Delete la_printstr initializer.
1949 (pascal_language::printstr): New member function, implementation
1950 from pascal_printstr.
1951 * p-lang.h (pascal_printstr): Delete declaration.
1952 * rust-lang.c (rust_printstr): Update header comment.
1953 (rust_language_data): Delete la_printstr initializer.
1954 (rust_language::printstr): New member function.
1955
52b50f2c
AB
19562020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1957
1958 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
1959 (ada_language::printchar): New member function.
1960 * c-lang.c (c_language_data): Delete la_printchar initializer.
1961 (cplus_language_data): Likewise.
1962 (asm_language_data): Likewise.
1963 (minimal_language_data): Likewise.
1964 * d-lang.c (d_language_data): Likewise.
1965 * f-lang.c (f_printchar): Rename to f_language::printchar.
1966 (f_language_data): Delete la_printchar initializer.
1967 (f_language::printchar): New member function, implementation from
1968 f_printchar.
1969 * go-lang.c (go_language_data): Delete la_printchar initializer.
1970 * language.c (unk_lang_printchar): Delete.
1971 (language_defn::printchar): Define new member function.
1972 (unknown_language_data): Delete la_printchar initializer.
1973 (unknown_language::printchar): New member function.
1974 (auto_language_data): Delete la_printchar initializer.
1975 (auto_language::printchar): New member function.
1976 * language.h (language_data): Delete la_printchar field.
1977 (language_defn::printchar): Declare new member function.
1978 (LA_PRINT_CHAR): Update call to printchar.
1979 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
1980 (m2_language::printchar): New member function.
1981 * objc-lang.c (objc_language_data): Delete la_printchar
1982 initializer.
1983 * opencl-lang.c (opencl_language_data): Likewise.
1984 * p-lang.c (pascal_language_data): Delete la_printchar
1985 initializer.
1986 (pascal_language::printchar): New member function.
1987 * rust-lang.c (rust_printchar): Rename to
1988 rust_language::printchar.
1989 (rust_language_data): Delete la_printchar initializer.
1990 (rust_language::printchar): New member function, implementation
1991 from rust_printchar.
1992
ec8cec5b
AB
19932020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1994
1995 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
1996 (ada_language_data): Delete la_emitchar initializer.
1997 (ada_language::emitchar): New member function, implementation from
1998 emit_char.
1999 * c-lang.c (c_language_data): Delete la_emitchar initializer.
2000 (cplus_language_data): Likewise.
2001 (asm_language_data): Likewise.
2002 (minimal_language_data): Likewise.
2003 * d-lang.c (d_language_data): Likewise.
2004 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
2005 (f_language_data): Delete la_emitchar initializer.
2006 (f_language::emitchar): New member function, implementation from
2007 f_emit_char.
2008 * go-lang.c (go_language_data): Delete la_emitchar initializer.
2009 * language.c (unk_lang_emit_char): Delete.
2010 (language_defn::emitchar): New member function definition.
2011 (unknown_language_data): Delete la_emitchar initializer.
2012 (unknown_language::emitchar): New member function.
2013 (auto_language_data): Delete la_emitchar initializer.
2014 (auto_language::emitchar): New member function.
2015 * language.h (language_data): Delete la_emitchar field.
2016 (language_defn::emitchar): New member field declaration.
2017 (LA_EMIT_CHAR): Update call to emitchar.
2018 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
2019 (m2_language_data): Delete la_emitchar initializer.
2020 (m2_language::emitchar): New member function, implementation from
2021 m2_emit_char.
2022 * objc-lang.c (objc_language_data): Delete la_emitchar
2023 initializer.
2024 * opencl-lang.c (opencl_language_data): Likewise.
2025 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
2026 (pascal_language_data): Delete la_emitchar initializer.
2027 (pascal_language::emitchar): New member function, implementation
2028 from pascal_emit_char.
2029 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
2030 (rust_language_data): Delete la_emitchar initializer.
2031 (rust_language::emitchar): New member function, implementation
2032 from rust_emitchar.
2033
1bf9c363
AB
20342020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2035
2036 * ada-lang.c (resolve): Rename to ada_language::post_parser.
2037 (ada_language_data): Delete la_post_parser initializer.
2038 (ada_language::post_parser): New member function.
2039 * c-lang.c (c_language_data): Delete la_post_parser initializer.
2040 (cplus_language_data): Likewise.
2041 (asm_language_data): Likewise.
2042 (minimal_language_data): Likewise.
2043 * d-lang.c (d_language_data): Likewise.
2044 * f-lang.c (f_language_data): Likewise.
2045 * go-lang.c (go_language_data): Likewise.
2046 * language.c (unknown_language_data): Likewise.
2047 (auto_language_data): Likewise.
2048 * language.h (language_data): Delete la_post_parser field.
2049 (language_defn::post_parser): New member function.
2050 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
2051 * objc-lang.c (objc_language_data): Likewise.
2052 * opencl-lang.c (opencl_language_data): Likewise.
2053 * p-lang.c (pascal_language_data): Likewise.
2054 * parse.c (parse_exp_in_context): Update call to post_parser.
2055 (null_post_parser): Delete definition.
2056 * parser-defs.h (null_post_parser): Delete declaration.
2057 * rust-lang.c (rust_language_data): Delete la_post_parser
2058 initializer.
2059
87afa652
AB
20602020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2061
2062 * ada-lang.c (parse): Rename to ada_language::parser.
2063 (ada_language_data): Delete la_parser initializer.
2064 (ada_language::parser): New member function, implementation from
2065 parse.
2066 * c-lang.c (c_language_data): Delete la_parser initializer.
2067 (cplus_language_data): Likewise.
2068 (asm_language_data): Likewise.
2069 (minimal_language_data): Likewise.
2070 * d-lang.c (d_language_data): Likewise.
2071 (d_language::parser): New member function.
2072 * f-lang.c (f_language_data): Delete la_parser initializer.
2073 (f_language::parser): New member function.
2074 * go-lang.c (go_language_data): Delete la_parser initializer.
2075 (go_language::parser): New member function.
2076 * language.c (unk_lang_parser): Delete.
2077 (language_defn::parser): Define new member function.
2078 (unknown_language_data): Delete la_parser initializer.
2079 (unknown_language::parser): New member function.
2080 (auto_language_data): Delete la_parser initializer.
2081 (auto_language::parser): New member function.
2082 * language.h (language_data): Delete la_parser field.
2083 (language_defn::parser): Declare new member function.
2084 * m2-lang.c (m2_language_data): Delete la_parser initializer.
2085 (m2_language::parser): New member function.
2086 * objc-lang.c (objc_language_data): Delete la_parser initializer.
2087 * opencl-lang.c (opencl_language_data): Likewise.
2088 * p-lang.c (pascal_language_data): Likewise.
2089 (pascal_language::parser): New member function.
2090 * parse.c (parse_exp_in_context): Update call to parser.
2091 * rust-lang.c (rust_language_data): Delete la_parser initializer.
2092 (rust_language::parser): New member function.
2093
37825800
AB
20942020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2095
2096 * top.c (print_gdb_configuration): Print --with-python-libdir
2097 configuration value.
2098
5b860c93
PW
20992020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2100
2101 * NEWS: Mention change to the alias command.
2102
cf00cd6f
PW
21032020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2104
2105 * cli/cli-cmds.c (lookup_cmd_for_default_args)
2106 (alias_command_completer)
2107 (make_alias_options_def_group): New functions.
2108 (alias_opts, alias_option_defs): New struct and array.
2109 (alias_usage_error): Update usage.
2110 (alias_command): Handles optional DEFAULT-ARGS... arguments.
2111 Use option framework.
2112 (_initialize_cli_cmds): Update alias command help.
2113 Update aliases command help.
2114 (show_user):
2115 Add NULL for new default_args lookup_cmd argument.
2116 (valid_command_p): Rename to validate_aliased_command.
2117 Add NULL for new default_args lookup_cmd argument. Verify that the
2118 aliased_command has no default args.
2119 * cli/cli-decode.c (help_cmd): Show aliases definitions.
2120 (lookup_cmd_1, lookup_cmd): New argument default_args.
2121 (add_alias_cmd):
2122 Add NULL for new default_args lookup_cmd argument.
2123 (print_help_for_command): Show default args under the layout
2124 alias some_alias = some_aliased_cmd some_alias_default_arg.
2125 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
2126 xfree default_args in destructor.
2127 * cli/cli-script.c (process_next_line, do_define_command):
2128 Add NULL for new default_args lookup_cmd argument.
2129 * command.h: Declare new default_args argument in lookup_cmd
2130 and lookup_cmd_1.
2131 * completer.c (complete_line_internal_1):
2132 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2133 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
2134 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
2135 Likewise.
2136 * infcmd.c (_initialize_infcmd): Likewise.
2137 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
2138 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
2139 * python/py-param.c (add_setshow_generic): Likewise.
2140 * remote.c (_initialize_remote): Likewise.
2141 * top.c (execute_command): Prepend default_args if command has some.
2142 (set_verbose):
2143 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2144 * tracepoint.c (validate_actionline, encode_actions_1):
2145 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2146
bd920864
TBA
21472020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2148
2149 * jit.c (jit_read_descriptor): Use bool as the return type.
2150 (jit_breakpoint_re_set_internal): Use bool as the return type.
2151 Invert the return value logic; return true if the jit breakpoint
2152 has been successfully initialized.
2153 (jit_inferior_init): Update the call to
2154 jit_breakpoint_re_set_internal.
2155
f8098322
PA
21562020-06-22 Pedro Alves <palves@redhat.com>
2157
2158 PR gdb/25939
2159 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
2160 Use the current inferior instead. Don't return
2161 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
2162 wait again.
2163 * sol-thread.c (sol_thread_target::wait): Don't reference
2164 inferior_ptid.
2165 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
2166 (sol_update_thread_list_callback): Use the current inferior's pid
2167 instead of inferior_ptid.
2168
196535a6
RO
21692020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2170
2171 * procfs.c: Cleanup many comments.
2172
2173 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
2174 (AFTER_WATCHFLAG): Replace by value.
2175
2176 (MAIN_PROC_NAME_FORMAT): Inline ...
2177 (create_procinfo): ... here.
2178
2179 (procfs_debug_inferior): Remove SYS_exec handling.
2180 (syscall_is_exec): Likewise.
2181 (procfs_set_exec_trap): Likewise.
2182
2183 (syscall_is_lwp_exit): Inline in callers.
2184 (syscall_is_exit): Likewise.
2185 (syscall_is_exec): Likewise.
2186 (syscall_is_lwp_create): Likewise.
2187
2188 (invalidate_cache): Remove #if 0 code.
2189
2190 (make_signal_thread_runnable): Remove.
2191 (procfs_target::resume): Remove #if 0 code.
2192
cf6f3e86
RO
21932020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2194
2195 PR gdb/25939
2196 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
2197 call ...
2198 (procfs_target::create_inferior): ... here.
2199
48e9cc84
PW
22002020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2201
2202 * exec.c (validate_exec_file): Ensure the build-id is up to
2203 date by calling reopen_exec_file (that checks file timestamp
2204 to decide to re-read the file).
2205
3922b302
PA
22062020-06-18 Pedro Alves <palves@redhat.com>
2207
2208 PR gdb/25412
2209 * gdbthread.h (delete_thread, delete_thread_silent)
2210 (find_thread_ptid): Update comments.
2211 * thread.c (current_thread_): New global.
2212 (is_current_thread): Move higher, and reimplement.
2213 (inferior_thread): Reimplement.
2214 (set_thread_exited): Use bool. Add assertions.
2215 (add_thread_silent): Simplify thread-reuse handling by always
2216 calling delete_thread.
2217 (delete_thread): Remove intro comment.
2218 (find_thread_ptid): Skip exited threads.
2219 (switch_to_thread_no_regs): Write to current_thread_.
2220 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
2221 INFERIOR_PTID. Clear current_thread_.
2222
6dbdab44
PA
22232020-06-18 Pedro Alves <palves@redhat.com>
2224
2225 * aix-thread.c (pd_update): Use switch_to_thread.
2226
2da4b788
PA
22272020-06-18 Pedro Alves <palves@redhat.com>
2228
2229 * ravenscar-thread.c (ravenscar_thread_target): Update.
2230 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
2231 (ravenscar_thread_target::add_active_thread): ... this. Don't
2232 set m_base_ptid here. Update to avoid referencing inferior_ptid.
2233 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
2234
50838d1b
PA
22352020-06-18 Pedro Alves <palves@redhat.com>
2236
2237 * nat/windows-nat.c (current_windows_thread): Remove.
2238 * nat/windows-nat.h (current_windows_thread): Remove.
2239 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
2240 Adjust.
2241 (display_selectors): Adjust to fetch the current
2242 windows_thread_info based on inferior_ptid.
2243 (fake_create_process): No longer write to current_windows_thread.
2244 (windows_nat_target::get_windows_debug_event):
2245 Don't set inferior_ptid or current_windows_thread.
2246 (windows_nat_target::wait): Adjust to not rely on
2247 current_windows_thread.
2248 (do_initial_windows_stuff): Now a method of windows_nat_target.
2249 Switch to the last_ptid thread.
2250 (windows_nat_target::attach): Adjust.
2251 (windows_nat_target::detach): Use switch_to_no_thread instead of
2252 writing to inferior_ptid directly.
2253 (windows_nat_target::create_inferior): Adjust.
2254
31ce04e9
PA
22552020-06-18 Pedro Alves <palves@redhat.com>
2256
2257 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
2258
1ee1a363
PA
22592020-06-18 Pedro Alves <palves@redhat.com>
2260
2261 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
2262 after creating it, instead of writing to inferior_ptid. Don't
2263 write to inferior_ptid.
2264
6d350754
PA
22652020-06-18 Pedro Alves <palves@redhat.com>
2266
2267 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
2268
5d971d48
PA
22692020-06-18 Pedro Alves <palves@redhat.com>
2270
2271 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
2272 it, instead of writing to inferior_ptid.
2273
86e57d1b
PA
22742020-06-18 Pedro Alves <palves@redhat.com>
2275
2276 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
2277 to inferior_ptid.
2278
f2e1c129
PA
22792020-06-18 Pedro Alves <palves@redhat.com>
2280
2281 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
2282 instead of writing to inferior_ptid directly.
2283
60db1b85
PA
22842020-06-18 Pedro Alves <palves@redhat.com>
2285
2286 * corelow.c (core_target::close): Use switch_to_no_thread instead
2287 of writing to inferior_ptid directly.
2288 (add_to_thread_list, core_target_open): Use switch_to_thread
2289 instead of writing to inferior_ptid directly.
2290
fe7d6a8d
PA
22912020-06-18 Pedro Alves <palves@redhat.com>
2292
2293 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
2294 inferior_ptid.
2295 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
2296 inferior_ptid.
2297 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
2298 inferior_ptid directly.
2299 (darwin_nat_target::init_thread_list): Switch to thread, instead
2300 of writing to inferior_ptid.
2301 (darwin_nat_target::attach): Don't write to inferior_ptid.
2302 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
2303
975f8708
PA
23042020-06-18 Pedro Alves <palves@redhat.com>
2305
2306 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
2307 thread.
2308 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
2309 Instead use switch_to_thread.
2310 (gnu_nat_target::detach): Use switch_to_no_thread
2311 instead of writing to inferior_ptid directly. Used passed-in
2312 inferior instead of looking up the inferior by pid.
2313
1a204730
PA
23142020-06-18 Pedro Alves <palves@redhat.com>
2315
2316 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
2317 inferior_ptid.
2318
ebe84f23
PA
23192020-06-18 Pedro Alves <palves@redhat.com>
2320
2321 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
2322 inferior_ptid.
2323 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
2324 thread.
2325 (nto_procfs_target::detach): Avoid referencing
2326 inferior_ptid. Use switch_to_no_thread instead of writing to
2327 inferior_ptid directly.
2328 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
2329 instead of writing to inferior_ptid directly.
2330 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
2331 to thread.
2332
191f02e5
PA
23332020-06-18 Pedro Alves <palves@redhat.com>
2334
2335 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
2336 after creating it, instead of writing to inferior_ptid.
2337 (gdbsim_target_open): Use switch_to_no_thread instead of writing
2338 to inferior_ptid directly.
2339 (gdbsim_target::wait): Don't write to inferior_ptid.
2340
0ac55310
PA
23412020-06-18 Pedro Alves <palves@redhat.com>
2342
2343 * remote.c (remote_target::remote_notice_new_inferior): Use
2344 switch_to_thread instead of writing to inferior_ptid directly.
2345 (remote_target::add_current_inferior_and_thread): Use
2346 switch_to_no_thread instead of writing to inferior_ptid directly.
2347 (extended_remote_target::attach): Use switch_to_inferior_no_thread
2348 and switch_to_thread instead of using set_current_inferior or
2349 writing to inferior_ptid directly.
2350
5233f39b
PA
23512020-06-18 Pedro Alves <palves@redhat.com>
2352
2353 * tracectf.c (ctf_target_open): Switch to added thread instead of
2354 writing to inferior_ptid directly.
2355 (ctf_target::close): Use switch_to_no_thread instead of writing to
2356 inferior_ptid directly.
2357
087e161b
PA
23582020-06-18 Pedro Alves <palves@redhat.com>
2359
2360 * tracefile-tfile.c (tfile_target_open): Don't write to
2361 inferior_ptid directly, instead switch to added thread.
2362 (tfile_target::close): Use switch_to_no_thread instead of writing
2363 to inferior_ptid directly.
2364
7fb43e53
PA
23652020-06-18 Pedro Alves <palves@redhat.com>
2366
2367 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
2368 (procfs_target::detach): Use switch_to_no_thread
2369 instead of writing to inferior_ptid directly.
2370 (do_attach): Change return type to void. Switch to the added
2371 thread.
2372 (procfs_target::create_inferior): Switch to the added thread.
2373 (procfs_do_thread_registers): Don't write to inferior_ptid.
2374
18493a00
PA
23752020-06-18 Pedro Alves <palves@redhat.com>
2376
2377 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
2378 of writing to inferior_ptid.
2379 (scoped_restore_exited_inferior): Delete.
2380 (handle_vfork_child_exec_or_exit): Simplify using
2381 scoped_restore_current_pspace_and_thread. Use switch_to_thread
2382 instead of writing to inferior_ptid.
2383 (THREAD_STOPPED_BY): Delete.
2384 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
2385 (thread_stopped_by_hw_breakpoint): Delete.
2386 (save_waitstatus): Use
2387 scoped_restore_current_thread+switch_to_thread, and call
2388 target_stopped_by_watchpoint instead of
2389 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
2390 instead of thread_stopped_by_sw_breakpoint, and
2391 target_stopped_by_hw_breakpoint instead of
2392 thread_stopped_by_hw_breakpoint.
2393 (handle_inferior_event)
2394 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
2395 inferior_ptid directly, nor
2396 set_current_inferior/set_current_program_space. Use
2397 switch_to_thread / switch_to_inferior_no_thread instead.
2398
a0776b13
PA
23992020-06-18 Pedro Alves <palves@redhat.com>
2400
2401 * target.c (generic_mourn_inferior): Use switch_to_no_thread
2402 instead of writing to inferior_ptid.
2403
6155c136
PA
24042020-06-18 Pedro Alves <palves@redhat.com>
2405
2406 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
2407 added thread.
2408 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
2409 to the added thread.
2410 (inf_ptrace_target::detach_success): Use switch_to_no_thread
2411 instead of writing to inferior_ptid.
2412
c5316fc6
PA
24132020-06-18 Pedro Alves <palves@redhat.com>
2414
2415 * gdbarch-selftests.c: Include "progspace-and-thread.h".
2416 (register_to_value_test): Mock a program_space too. Heap-allocate
2417 the address space. Don't write to inferior_ptid. Use
2418 switch_to_thread instead.
2419
8df01799
PA
24202020-06-18 Pedro Alves <palves@redhat.com>
2421
2422 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
2423 Delete.
2424 (find_signalled_thread()): New, factored out from
2425 linux_make_corefile_notes and adjusted to handle exited threads.
2426 (linux_make_corefile_notes): Adjust to use the new
2427 find_signalled_thread.
2428
41792d68
PA
24292020-06-18 Pedro Alves <palves@redhat.com>
2430
2431 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
2432 of saving/restoring inferior_ptid.
2433
612f258a
TT
24342020-06-17 Tom Tromey <tom@tromey.com>
2435
2436 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
2437 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
2438 declare.
2439 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
2440
efb763a5
SM
24412020-06-15 Simon Marchi <simon.marchi@efficios.com>
2442
2443 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
2444 of partial symtabs.
2445
2951f6c0
SM
24462020-06-17 Simon Marchi <simon.marchi@efficios.com>
2447
2448 * regformats/reg-arm.dat: Remove.
2449 * regformats/reg-bfin.dat: Remove.
2450 * regformats/reg-cris.dat: Remove.
2451 * regformats/reg-crisv32.dat: Remove.
2452 * regformats/reg-m32r.dat: Remove.
2453 * regformats/reg-tilegx.dat: Remove.
2454 * regformats/reg-tilegx32.dat: Remove.
2455
7d458ea5
SM
24562020-06-17 Simon Marchi <simon.marchi@efficios.com>
2457
2458 * features/Makefile (WHICH): Remove arm files.
2459 * regformats/arm/arm-with-iwmmxt.dat: Remove.
2460 * regformats/arm/arm-with-neon.dat: Remove.
2461 * regformats/arm/arm-with-vfpv2.dat: Remove.
2462 * regformats/arm/arm-with-vfpv3.dat: Remove.
2463
3af96c0d
SM
24642020-06-17 Simon Marchi <simon.marchi@efficios.com>
2465
2466 * features/Makefile (XMLTOC): Remove rx.xml.
2467
b25e22fd
PA
24682020-06-17 Pedro Alves <palves@redhat.com>
2469
2470 * gdbthread.h (thread_control_state) <trap_expected> Update
2471 comments.
2472
a78a19b1
AB
24732020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2474
2475 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
2476 ada_language::lookup_symbol_nonlocal.
2477 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
2478 (ada_language::lookup_symbol_nonlocal): New member function,
2479 implementation from ada_lookup_symbol_nonlocal.
2480 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
2481 initializer.
2482 (cplus_language_data): Delete la_lookup_symbol_nonlocal
2483 initializer.
2484 (cplus_language::lookup_symbol_nonlocal): New member function.
2485 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
2486 (minimal_language_data) Likewise.
2487 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
2488 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
2489 initializer.
2490 (d_language::lookup_symbol_nonlocal): New member function.
2491 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
2492 initializer.
2493 (f_language::lookup_symbol_nonlocal): New member function.
2494 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
2495 initializer.
2496 * language.c (unknown_language_data): Likewise.
2497 (auto_language_data): Likewise.
2498 * language.h (language_data): Delete la_lookup_symbol_nonlocal
2499 field.
2500 (language_defn::lookup_symbol_nonlocal): New member function.
2501 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
2502 initializer.
2503 * objc-lang.c (objc_language_data): Likewise.
2504 * opencl-lang.c (opencl_language_data): Likewise.
2505 * p-lang.c (pascal_language_data): Likewise.
2506 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
2507 rust_language::lookup_symbol_nonlocal.
2508 (rust_language_data): Delete la_lookup_symbol_nonlocal
2509 initializer.
2510 (rust_language::lookup_symbol_nonlocal): New member function,
2511 implementation from rust_lookup_symbol_nonlocal.
2512 * symtab.c (lookup_symbol_aux): Update call to
2513 lookup_symbol_nonlocal.
2514 (basic_lookup_symbol_nonlocal): Rename to...
2515 (language_defn::lookup_symbol_nonlocal): ...this, and update
2516 header comment. Remove language_defn parameter, and replace with
2517 uses of `this'.
2518 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
2519
ebe2334e
AB
25202020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2521
2522 * ada-lang.c (ada_language_data): Delete la_value_print_inner
2523 initializer.
2524 (ada_language::value_print_inner): New member function.
2525 * c-lang.c (c_language_data): Delete la_value_print_inner
2526 initializer.
2527 (cplus_language_data): Likewise.
2528 (asm_language_data): Likewise.
2529 (minimal_language_data): Likewise.
2530 * d-lang.c (d_language_data): Likewise.
2531 (d_language::value_print_inner): New member function.
2532 * f-lang.c (f_language_data): Delete la_value_print_inner
2533 initializer.
2534 (f_language::value_print_inner): New member function.
2535 * f-lang.h (f_value_print_innner): Rename to...
2536 (f_value_print_inner): ...this (note spelling of 'inner').
2537 * f-valprint.c (f_value_print_innner): Rename to...
2538 (f_value_print_inner): ...this (note spelling of 'inner').
2539 * go-lang.c (go_language_data): Delete la_value_print_inner
2540 initializer.
2541 (go_language::value_print_inner): New member function.
2542 * language.c (language_defn::value_print_inner): Define new member
2543 function.
2544 (unk_lang_value_print_inner): Delete.
2545 (unknown_language_data): Delete la_value_print_inner initializer.
2546 (unknown_language::value_print_inner): New member function.
2547 (auto_language_data): Delete la_value_print_inner initializer.
2548 (auto_language::value_print_inner): New member function.
2549 * language.h (language_data): Delete la_value_print_inner field.
2550 (language_defn::value_print_inner): Delcare new member function.
2551 * m2-lang.c (m2_language_data): Delete la_value_print_inner
2552 initializer.
2553 (m2_language::value_print_inner): New member function.
2554 * objc-lang.c (objc_language_data): Delete la_value_print_inner
2555 initializer.
2556 * opencl-lang.c (opencl_language_data): Likewise.
2557 * p-lang.c (pascal_language_data): Likewise.
2558 (pascal_language::value_print_inner): New member function.
2559 * rust-lang.c (rust_language_data): Delete la_value_print_inner
2560 initializer.
2561 (rust_language::value_print_inner): New member function.
2562 * valprint.c (do_val_print): Update call to value_print_inner.
2563
a1d1fa3e
AB
25642020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2565
2566 * ada-lang.c (ada_language_data): Delete la_value_print
2567 initializer.
2568 (ada_language::value_print): New member function.
2569 * c-lang.c (c_language_data): Delete la_value_print initializer.
2570 (cplus_language_data): Likewise.
2571 (asm_language_data): Likewise.
2572 (minimal_language_data): Likewise.
2573 * d-lang.c (d_language_data): Likewise.
2574 * f-lang.c (f_language_data): Likewise.
2575 * go-lang.c (go_language_data): Likewise.
2576 * language.c (unk_lang_value_print): Delete.
2577 (language_defn::value_print): Define new member function.
2578 (unknown_language_data): Delete la_value_print initializer.
2579 (unknown_language::value_print): New member function.
2580 (auto_language_data): Delete la_value_print initializer.
2581 (auto_language::value_print): New member function.
2582 * language.h (language_data): Delete la_value_print field.
2583 (language_defn::value_print): Declare new member function.
2584 (LA_VALUE_PRINT): Update call to value_print.
2585 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
2586 * objc-lang.c (objc_language_data): Likewise.
2587 * opencl-lang.c (opencl_language_data): Likewise.
2588 * p-lang.c (pascal_language_data): Likewise.
2589 (pascal_language::value_print): New member function.
2590 * rust-lang.c (rust_language_data): Delete la_value_print
2591 initializer.
2592
f16a9f57
AB
25932020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2594
2595 * ada-lang.c (ada_watch_location_expression): Rename to
2596 ada_language::watch_location_expression.
2597 (ada_language_data): Delete la_watch_location_expression
2598 initializer.
2599 (ada_language::watch_location_expression): New member function,
2600 implementation from ada_watch_location_expression.
2601 * breakpoint.c (watch_command_1): Update call to
2602 watch_location_expression.
2603 * c-lang.c (c_watch_location_expression): Rename to
2604 language_defn::watch_location_expression.
2605 (c_language_data): Delete la_watch_location_expression
2606 initializer.
2607 (cplus_language_data): Likewise.
2608 (asm_language_data): Likewise.
2609 (minimal_language_data): Likewise.
2610 * c-lang.h (c_watch_location_expression): Delete declaration.
2611 * d-lang.c (d_language_data): Delete la_watch_location_expression
2612 initializer.
2613 * f-lang.c (f_language_data): Likewise.
2614 * go-lang.c (go_language_data): Likewise.
2615 * language.c (language_defn::watch_location_expression): Member
2616 function implementation from c_watch_location_expression.
2617 (unknown_language_data): Delete la_watch_location_expression
2618 initializer.
2619 (auto_language_data): Likewise.
2620 * language.h (language_data): Delete la_watch_location_expression
2621 field.
2622 (language_defn::watch_location_expression): Declare new member
2623 function.
2624 * m2-lang.c (m2_language_data): Delete
2625 la_watch_location_expression initializer.
2626 * objc-lang.c (objc_language_data): Likewise.
2627 * opencl-lang.c (opencl_language_data): Likewise.
2628 * p-lang.c (pascal_language_data): Likewise.
2629 * rust-lang.c (rust_watch_location_expression): Rename to
2630 rust_language::watch_location_expression.
2631 (rust_language_data): Delete la_watch_location_expression
2632 initializer.
2633 (rust_language::watch_location_expression): New member function,
2634 implementation from rust_watch_location_expression.
2635
7e56227d
AB
26362020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2637
2638 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
2639 ada_language::collect_symbol_completion_matches.
2640 (ada_language_data): Delete la_collect_symbol_completion_matches
2641 initializer.
2642 (ada_language::collect_symbol_completion_matches): New member
2643 function, implementation from
2644 ada_collect_symbol_completion_matches.
2645 * c-lang.c (c_language_data): Delete
2646 la_collect_symbol_completion_matches initializer.
2647 (cplus_language_data): Likewise.
2648 (asm_language_data): Likewise.
2649 (minimal_language_data): Likewise.
2650 * d-lang.c (d_language_data): Likewise.
2651 * f-lang.c (f_collect_symbol_completion_matches): Rename to
2652 f_language::collect_symbol_completion_matches.
2653 (f_language_data): Delete la_collect_symbol_completion_matches
2654 initializer.
2655 (f_language::collect_symbol_completion_matches) New member
2656 function, implementation from f_collect_symbol_completion_matches.
2657 * go-lang.c (go_language_data): Delete
2658 la_collect_symbol_completion_matches initializer.
2659 * language.c (unknown_language_data): Likewise.
2660 (auto_language_data): Likewise.
2661 * language.h (language_data): Delete
2662 la_collect_symbol_completion_matches field.
2663 (language_defn::collect_symbol_completion_matches): New member
2664 function.
2665 * m2-lang.c (m2_language_data): Delete
2666 la_collect_symbol_completion_matches initializer.
2667 * objc-lang.c (objc_language_data): Likewise.
2668 * opencl-lang.c (opencl_language_data): Likewise.
2669 * p-lang.c (pascal_language_data): Likewise.
2670 * rust-lang.c (rust_language_data): Likewise.
2671 * symtab.c (default_collect_symbol_completion_matches): Delete.
2672 (collect_symbol_completion_matches): Update call to
2673 collect_symbol_completion_matches.
2674 (collect_symbol_completion_matches_type): Likewise.
2675 * symtab.h (default_collect_symbol_completion_matches): Delete
2676 declaration.
2677
53fc67f8
AB
26782020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2679
2680 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
2681 (ada_language_data): Delete la_word_break_characters initializer.
2682 (ada_language::word_break_characters): New member function.
2683 * c-lang.c (c_language_data): Delete la_word_break_characters
2684 initializer.
2685 (cplus_language_data): Likewise.
2686 (asm_language_data): Likewise.
2687 (minimal_language_data): Likewise.
2688 * completer.c: Update global comment.
2689 (advance_to_expression_complete_word_point): Update call to
2690 word_break_characters.
2691 (complete_files_symbols): Likewise.
2692 (complete_line_internal_1): Likewise.
2693 (default_completer_handle_brkchars): Likewise.
2694 (skip_quoted_chars): Likewise.
2695 * d-lang.c (d_language_data): Delete la_word_break_characters
2696 initializer.
2697 * f-lang.c (f_word_break_characters): Delete.
2698 (f_language_data): Delete la_word_break_characters initializer.
2699 (f_language::word_break_characters): New member function.
2700 * go-lang.c (go_language_data): Delete la_word_break_characters
2701 initializer.
2702 * language.c (unknown_language_data): Likewise.
2703 (auto_language_data): Likewise.
2704 * language.h (default_word_break_characters): Move declaration to
2705 earlier in the file.
2706 (language_data): Delete la_word_break_characters field.
2707 (language_defn::word_break_characters): New member function.
2708 * m2-lang.c (m2_language_data): Delete la_word_break_characters
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
c9debfb9
AB
27152020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2716
2717 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
2718 (ada_language_data): Delete la_get_symbol_name_matcher
2719 initializer.
2720 (language_defn::get_symbol_name_matcher_inner): New member
2721 function.
2722 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
2723 initializer.
2724 (cplus_language_data): Likewise.
2725 (cplus_language::get_symbol_name_matcher_inner): New member
2726 function.
2727 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
2728 (minimal_language_data): Likewise.
2729 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
2730 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
2731 initializer.
2732 * dictionary.c (iter_match_first_hashed): Update call to
2733 get_symbol_name_matcher.
2734 (iter_match_next_hashed): Likewise.
2735 (iter_match_next_linear): Likewise.
2736 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
2737 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
2738 initializer.
2739 (f_language::get_symbol_name_matcher_inner): New member function.
2740 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
2741 initializer.
2742 * language.c (default_symbol_name_matcher): Update header comment,
2743 make static.
2744 (language_defn::get_symbol_name_matcher): New definition.
2745 (language_defn::get_symbol_name_matcher_inner): Likewise.
2746 (get_symbol_name_matcher): Delete.
2747 (unknown_language_data): Delete la_get_symbol_name_matcher
2748 initializer.
2749 (auto_language_data): Likewise.
2750 * language.h (language_data): Delete la_get_symbol_name_matcher
2751 field.
2752 (language_defn::get_symbol_name_matcher): New member function.
2753 (language_defn::get_symbol_name_matcher_inner): Likewise.
2754 (default_symbol_name_matcher): Delete declaration.
2755 * linespec.c (find_methods): Update call to
2756 get_symbol_name_matcher.
2757 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
2758 initializer.
2759 * minsyms.c (lookup_minimal_symbol): Update call to
2760 get_symbol_name_matcher.
2761 (iterate_over_minimal_symbols): Likewise.
2762 * objc-lang.c (objc_language_data): Delete
2763 la_get_symbol_name_matcher initializer.
2764 * opencl-lang.c (opencl_language_data): Likewise.
2765 * p-lang.c (pascal_language_data): Likewise.
2766 * psymtab.c (psymbol_name_matches): Update call to
2767 get_symbol_name_matcher.
2768 * rust-lang.c (rust_language_data): Delete
2769 la_get_symbol_name_matcher initializer.
2770 * symtab.c (symbol_matches_search_name): Update call to
2771 get_symbol_name_matcher.
2772 (compare_symbol_name): Likewise.
2773
9a49ad8c
AB
27742020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2775
2776 * ada-lang.c (ada_language_data): Delete la_compute_program
2777 initializer.
2778 * c-lang.c (c_language_data): Likewise.
2779 (c_language::compute_program): New member function.
2780 (cplus_language_data): Delete la_compute_program initializer.
2781 (cplus_language::compute_program): New member function.
2782 (asm_language_data): Delete la_compute_program initializer.
2783 (minimal_language_data): Likewise.
2784 * c-lang.h (c_compute_program): Update comment.
2785 (cplus_compute_program): Likewise.
2786 * compile/compile-c-support.c (c_compute_program): Likewise.
2787 (cplus_compute_program): Likewise.
2788 * compile/compile.c (compile_to_object): Update call to
2789 la_compute_program.
2790 * d-lang.c (d_language_data): Delete la_compute_program
2791 initializer.
2792 * f-lang.c (f_language_data): Likewise.
2793 * go-lang.c (go_language_data): Likewise.
2794 * language.c (unknown_language_data): Likewise.
2795 (auto_language_data): Likewise.
2796 * language.h (language_data): Delete la_compute_program field.
2797 (language_defn::compute_program): New member function.
2798 * m2-lang.c (m2_language_data): Delete la_compute_program
2799 initializer.
2800 * objc-lang.c (objc_language_data): Likewise.
2801 * opencl-lang.c (opencl_language_data): Likewise.
2802 * p-lang.c (pascal_language_data): Likewise.
2803 * rust-lang.c (rust_language_data): Likewise.
2804
eff93b4d
AB
28052020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2806
2807 * ada-lang.c (ada_language_data) Delete
2808 la_class_name_from_physname initializer.
2809 * c-lang.c (c_language_data): Likewise.
2810 (cplus_language_data): Likewise.
2811 (cplus_language::class_name_from_physname): New member function.
2812 (asm_language_data): Delete la_class_name_from_physname
2813 initializer.
2814 (minimal_language_data): Likewise.
2815 * d-lang.c (d_language_data): Likewise.
2816 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
2817 method on language_defn class.
2818 (guess_full_die_structure_name): Likewise.
2819 * f-lang.c (f_language_data): Delete la_class_name_from_physname
2820 initializer.
2821 * go-lang.c (go_language_data): Likewise.
2822 * language.c (language_class_name_from_physname): Delete.
2823 (unk_lang_class_name): Delete.
2824 (unknown_language_data): Delete la_class_name_from_physname
2825 initializer.
2826 (auto_language_data): Likewise.
2827 * language.h (language_data): Delete la_class_name_from_physname
2828 field.
2829 (language_defn::class_name_from_physname): New function.
2830 (language_class_name_from_physname): Delete declaration.
2831 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
2832 initializer.
2833 * objc-lang.c (objc_language_data): Likewise.
2834 * opencl-lang.c (opencl_language_data): Likewise.
2835 * p-lang.c (pascal_language_data): Likewise.
2836 * rust-lang.c (rust_language_data): Likewise.
2837
de543742
TT
28382020-06-16 Tom Tromey <tom@tromey.com>
2839
2840 * tui/tui-data.h (STATUS_NAME): New macro.
2841 * tui/tui-layout.c (tui_remove_some_windows)
2842 (initialize_known_windows, tui_register_window)
2843 (tui_layout_split::remove_windows, initialize_layouts)
2844 (tui_new_layout_command): Don't use hard-coded window names.
2845
a350efd4
TT
28462020-06-16 Tom Tromey <tom@tromey.com>
2847
2848 PR tui/25348:
2849 * tui/tui.c (tui_ensure_readline_initialized): Rename from
2850 tui_initialize_readline. Only run once. Call rl_initialize.
2851 * tui/tui.h (tui_ensure_readline_initialized): Rename from
2852 tui_initialize_readline.
2853 * tui/tui-io.c (tui_setup_io): Call
2854 tui_ensure_readline_initialized.
2855 * tui/tui-interp.c (tui_interp::init): Update.
2856
39ec0490
TT
28572020-06-16 Tom Tromey <tom@tromey.com>
2858
2859 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
2860 Also preserve the status window.
2861
d2d1ea20
TT
28622020-06-16 Tom Tromey <tom@tromey.com>
2863
2864 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
2865 where m_window==nullptr.
2866
66920317
TT
28672020-06-15 Tom Tromey <tromey@adacore.com>
2868
2869 * windows-nat.c (windows_nat::handle_output_debug_string):
2870 Update.
2871 (windows_nat::handle_ms_vc_exception): Update.
2872 * target.h (target_read_string): Change API.
2873 * target.c (target_read_string): Change API.
2874 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
2875 Update.
2876 * solib-frv.c (frv_current_sos): Update.
2877 * solib-dsbt.c (dsbt_current_sos): Update.
2878 * solib-darwin.c (darwin_current_sos): Update.
2879 * linux-thread-db.c (inferior_has_bug): Update.
2880 * expprint.c (print_subexp_standard): Update.
2881 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
2882 (ada_exception_message_1): Update.
2883
a5d871dd
TT
28842020-06-15 Tom Tromey <tromey@adacore.com>
2885
2886 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
2887
670e35fa
TT
28882020-06-15 Tom Tromey <tromey@adacore.com>
2889
2890 * valprint.c (read_string): Update comment.
2891 * target.c (MIN): Remove.
2892 (target_read_string): Rewrite.
2893
f5272a3b
TT
28942020-06-15 Tom Tromey <tromey@adacore.com>
2895
2896 * corefile.c (read_memory_string): Remove.
2897 * ada-valprint.c (ada_value_print_ptr): Update.
2898 * ada-lang.h (ada_tag_name): Change return type.
2899 * ada-lang.c (type_from_tag): Update.
2900 (ada_tag_name_from_tsd): Change return type. Use
2901 target_read_string.
2902 (ada_tag_name): Likewise.
2903 * gdbcore.h (read_memory_string): Don't declare.
2904
2c074f49
HD
29052020-06-14 Hannes Domani <ssbssa@yahoo.de>
2906
2907 * symtab.c (rbreak_command): Ignore Windows drive colon.
2908
6a17d503
SM
29092020-06-12 Simon Marchi <simon.marchi@efficios.com>
2910
2911 * NEWS: Mention removed GDBserver host support.
2912
453c733f
NC
29132020-06-12 Nelson Chu <nelson.chu@sifive.com>
2914
2915 * features/riscv/rebuild-csr-xml.sh: Updated.
2916
2b4e6a3f
TT
29172020-06-11 Tom Tromey <tom@tromey.com>
2918
2919 PR gdb/18318:
2920 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
2921
4412332f
JG
29222020-06-09 Jonny Grant <jg@jguk.org>
29232020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
2924
2925 * main.c (captured_main_1): Don't print new line after help.
2926 (print_gdb_help): add mailing list and IRC channel information
2927 to --help. Add new lines between items in the footer. Remove
2928 quotes around bug url.
2929
2f33032a
KS
29302020-06-11 Keith Seitz <keiths@redhat.com>
2931
2932 PR gdb/21356
2933 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
2934 Resolve typedefs for type length calculations.
2935
7ab96794
TV
29362020-06-10 Tom de Vries <tdevries@suse.de>
2937
2938 PR ada/24713
2939 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
2940 (write_psymbols): Enable .gdb_index for ada.
2941 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
2942 ada.
2943
e5f3ece2
TV
29442020-06-10 Tom de Vries <tdevries@suse.de>
2945
2946 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
2947 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
2948 namei" instead of "const char *name" argument.
2949 (dw2_map_matching_symbols): Use "offset_type namei" variant of
2950 dw2_symtab_iter_init.
2951
940da03e
SM
29522020-06-08 Simon Marchi <simon.marchi@efficios.com>
2953
2954 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
2955 to use type::field and field::type instead.
2956
b6cdac4b
SM
29572020-06-08 Simon Marchi <simon.marchi@efficios.com>
2958
2959 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
2960 to use field::type instead.
2961
5d14b6e5
SM
29622020-06-08 Simon Marchi <simon.marchi@efficios.com>
2963
2964 * gdbtypes.h (struct field) <type, set_type>: New methods.
2965 Rename `type` field to...
2966 <m_type>: ... this. Change references throughout to use type or
2967 set_type methods.
2968 (FIELD_TYPE): Use field::type. Change call sites that modify
2969 the field's type to use field::set_type instead.
2970
3d967001
SM
29712020-06-08 Simon Marchi <simon.marchi@efficios.com>
2972
2973 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
2974 to use type::index_type instead.
2975
262abc0d
SM
29762020-06-08 Simon Marchi <simon.marchi@efficios.com>
2977
2978 * gdbtypes.h (struct type) <index_type, set_index_type>: New
2979 methods.
2980 (TYPE_INDEX_TYPE): Use type::index_type.
2981 * gdbtypes.c (create_array_type_with_stride): Likewise.
2982
82836c92
TT
29832020-06-07 Tom Tromey <tom@tromey.com>
2984
2985 * valprint.c (generic_val_print_float): Remove "embedded_offset"
2986 parameter.
2987 (generic_value_print): Update.
2988
940dace9
AB
29892020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2990
2991 Revert commit 982a38f60b0.
2992 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
2993
982a38f6
AB
29942020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2995
2996 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
2997 avoid use after free.
2998
82f06518
TV
29992020-06-05 Tom de Vries <tdevries@suse.de>
3000
3001 * NEWS: Fix typos.
3002
f8c41851
SM
30032020-06-04 Simon Marchi <simon.marchi@efficios.com>
3004
3005 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
3006 the per_bfd object.
3007 (dwarf2_read_debug_names): Likewise.
3008 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
3009 object when re-using a per_bfd object with an index.
3010
f9b5d5ea
TV
30112020-06-03 Tom de Vries <tdevries@suse.de>
3012
3013 PR symtab/26046
3014 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
3015 children for C++.
3016 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
3017 DW_TAG_subprogram.
3018
f6eee2d0
AB
30192020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3020
3021 * ada-lang.c (ada_language_data): Delete skip_trampoline
3022 initializer.
3023 * c-lang.c (c_language_data): Likewise.
3024 (cplus_language_data): Likewise.
3025 (cplus_language::skip_trampoline): New member function.
3026 (asm_language_data): Delete skip_trampoline initializer.
3027 (minimal_language_data): Likewise.
3028 * d-lang.c (d_language_data): Likewise.
3029 * f-lang.c (f_language_data): Likewise.
3030 * go-lang.c (go_language_data): Likewise.
3031 * language.c (unk_lang_trampoline): Delete function.
3032 (skip_language_trampoline): Update.
3033 (unknown_language_data): Delete skip_trampoline initializer.
3034 (auto_language_data): Likewise.
3035 * language.h (language_data): Delete skip_trampoline field.
3036 (language_defn::skip_trampoline): New function.
3037 * m2-lang.c (m2_language_data): Delete skip_trampoline
3038 initializer.
3039 * objc-lang.c (objc_skip_trampoline): Delete function, move
3040 implementation to objc_language::skip_trampoline.
3041 (objc_language_data): Delete skip_trampoline initializer.
3042 (objc_language::skip_trampoline): New member function with
3043 implementation from objc_skip_trampoline.
3044 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
3045 initializer.
3046 * p-lang.c (pascal_language_data): Likewise.
3047 * rust-lang.c (rust_language_data): Likewise.
3048
0a50df5d
AB
30492020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3050
3051 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
3052 (ada_language::demangle): New member function.
3053 * c-lang.c (c_language_data): Delete la_demangle initializer.
3054 (cplus_language_data): Delete la_demangle initializer.
3055 (cplus_language::demangle): New member function.
3056 (asm_language_data): Delete la_demangle initializer.
3057 (minimal_language_data): Delete la_demangle initializer.
3058 * d-lang.c (d_language_data): Delete la_demangle initializer.
3059 (d_language::demangle): New member function.
3060 * f-lang.c (f_language_data): Delete la_demangle initializer.
3061 (f_language::demangle): New member function.
3062 * go-lang.c (go_language_data): Delete la_demangle initializer.
3063 (go_language::demangle): New member function.
3064 * language.c (language_demangle): Update.
3065 (unk_lang_demangle): Delete.
3066 (unknown_language_data): Delete la_demangle initializer.
3067 (unknown_language::demangle): New member function.
3068 (auto_language_data): Delete la_demangle initializer.
3069 (auto_language::demangle): New member function.
3070 * language.h (language_data): Delete la_demangle field.
3071 (language_defn::demangle): New function.
3072 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
3073 * objc-lang.c (objc_language_data): Delete la_demangle
3074 initializer.
3075 (objc_language::demangle): New member function.
3076 * opencl-lang.c (opencl_language_data): Delete la_demangle
3077 initializer.
3078 * p-lang.c (pascal_language_data): Likewise.
3079 * rust-lang.c (rust_language_data): Likewise.
3080 (rust_language::demangle): New member function.
3081
fbfb0a46
AB
30822020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3083
3084 * ada-lang.c (ada_language_data): Delete la_print_type
3085 initializer.
3086 (ada_language::print_type): New member function.
3087 * c-lang.c (c_language_data): Delete la_print_type initializer.
3088 (c_language::print_type): New member function.
3089 (cplus_language_data): Delete la_print_type initializer.
3090 (cplus_language::print_type): New member function.
3091 (asm_language_data): Delete la_print_type initializer.
3092 (asm_language::print_type): New member function.
3093 (minimal_language_data): Delete la_print_type initializer.
3094 (minimal_language::print_type): New member function.
3095 * d-lang.c (d_language_data): Delete la_print_type initializer.
3096 (d_language::print_type): New member function.
3097 * f-lang.c (f_language_data): Delete la_print_type initializer.
3098 (f_language::print_type): New member function.
3099 * go-lang.c (go_language_data): Delete la_print_type initializer.
3100 (go_language::print_type): New member function.
3101 * language.c (unk_lang_print_type): Delete.
3102 (unknown_language_data): Delete la_print_type initializer.
3103 (unknown_language::print_type): New member function.
3104 (auto_language_data): Delete la_print_type initializer.
3105 (auto_language::print_type): New member function.
3106 * language.h (language_data): Delete la_print_type field.
3107 (language_defn::print_type): New function.
3108 (LA_PRINT_TYPE): Update.
3109 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
3110 (m2_language::print_type): New member function.
3111 * objc-lang.c (objc_language_data): Delete la_print_type
3112 initializer.
3113 (objc_language::print_type): New member function.
3114 * opencl-lang.c (opencl_print_type): Delete, implementation moved
3115 to opencl_language::print_type.
3116 (opencl_language_data): Delete la_print_type initializer.
3117 (opencl_language::print_type): New member function, implementation
3118 from opencl_print_type.
3119 * p-lang.c (pascal_language_data): Delete la_print_type
3120 initializer.
3121 (pascal_language::print_type): New member function.
3122 * rust-lang.c (rust_print_type): Delete, implementation moved to
3123 rust_language::print_type.
3124 (rust_language_data): Delete la_print_type initializer.
3125 (rust_language::print_type): New member function, implementation
3126 from rust_print_type.
3127
6f827019
AB
31282020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3129
3130 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
3131 implementation moves to...
3132 (ada_language::sniff_from_mangled_name): ...here. Update return
3133 type.
3134 (ada_language_data): Delete la_sniff_from_mangled_name
3135 initializer.
3136 * c-lang.c (c_language_data): Likewise.
3137 (cplus_language_data): Likewise.
3138 (cplus_language::sniff_from_mangled_name): New member function,
3139 implementation taken from gdb_sniff_from_mangled_name.
3140 (asm_language_data): Delete la_sniff_from_mangled_name
3141 initializer.
3142 (minimal_language_data): Likewise.
3143 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
3144 implementation moves to cplus_language::sniff_from_mangled_name.
3145 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
3146 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
3147 moves to...
3148 (d_language::sniff_from_mangled_name): ...here.
3149 (d_language_data): Delete la_sniff_from_mangled_name initializer.
3150 * f-lang.c (f_language_data): Likewise.
3151 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
3152 moves to...
3153 (go_language::sniff_from_mangled_name): ...here.
3154 (go_language_data): Delete la_sniff_from_mangled_name initializer.
3155 * language.c (language_sniff_from_mangled_name): Delete.
3156 (unknown_language_data): Delete la_sniff_from_mangled_name
3157 initializer.
3158 (auto_language_data): Likewise.
3159 * language.h (language_data): Delete la_sniff_from_mangled_name
3160 field.
3161 (language_defn::sniff_from_mangled_name): New function.
3162 (language_sniff_from_mangled_name): Delete declaration.
3163 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
3164 field.
3165 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
3166 implementation moves to...
3167 (objc_language::sniff_from_mangled_name): ...here.
3168 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
3169 * opencl-lang.c (opencl_language_data): Likewise.
3170 * p-lang.c (pascal_language_data): Likewise.
3171 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
3172 implementation moves to...
3173 (rust_language::sniff_from_mangled_name): ...here.
3174 (rust_language_data): Delete la_sniff_from_mangled_name
3175 initializer.
3176 * symtab.c (symbol_find_demangled_name): Call
3177 sniff_from_mangled_name member function.
3178
fb8006fd
AB
31792020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3180
3181 * ada-lang.c (ada_language_data): Delete la_search_name_hash
3182 initializer.
3183 * c-lang.c (c_language_data): Likewise.
3184 (cplus_language_data): Likewise.
3185 (cplus_language::search_name_hash): New member function.
3186 (asm_language_data): Delete la_search_name_hash initializer.
3187 (minimal_language_data): Likewise.
3188 * d-lang.c (d_language_data): Likewise.
3189 * dictionary.c (default_search_name_hash): Rename to...
3190 (language_defn::search_name_hash): ...this.
3191 * f-lang.c (f_language_data): Likewise.
3192 (f_language::search_name_hash): New member function.
3193 * go-lang.c (go_language_data): Delete la_search_name_hash
3194 initializer.
3195 * language.c (unknown_language_data): Likewise.
3196 (auto_language_data): Likewise.
3197 * language.h (struct language_data): Delete la_search_name_hash
3198 field.
3199 (language_defn::search_name_hash): Declare new member function.
3200 (default_search_name_hash): Delete declaration.
3201 * m2-lang.c (m2_language_data): Delete la_search_name_hash
3202 initializer.
3203 * objc-lang.c (objc_language_data): Likewise.
3204 * opencl-lang.c (opencl_language_data): Likewise.
3205 * p-lang.c (pascal_language_data): Likewise.
3206 * rust-lang.c (rust_language_data): Likewise.
3207 * symtab.c (search_name_hash): Update call.
3208
8e25bafe
AB
32092020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3210
3211 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
3212 initializer.
3213 * c-lang.c (class compile_instance): Declare.
3214 (c_language_data): Delete la_get_compile_instance initializer.
3215 (c_language::get_compile_instance): New member function.
3216 (cplus_language_data): Delete la_get_compile_instance initializer.
3217 (cplus_language::get_compile_instance): New member function.
3218 (asm_language_data): Delete la_get_compile_instance initializer.
3219 (minimal_language_data): Likewise.
3220 * c-lang.h (c_get_compile_context): Update comment.
3221 (cplus_get_compile_context): Update comment.
3222 * compile/compile.c (compile_to_object): Update calls, don't rely
3223 on function pointer being NULL.
3224 * d-lang.c (d_language_data): Delete la_get_compile_instance
3225 initializer.
3226 * f-lang.c (f_language_data): Likewise.
3227 * go-lang.c (go_language_data): Likewise.
3228 * language.c (unknown_language_data): Likewise.
3229 (auto_language_data): Likewise.
3230 * language.h (language_data): Delete la_get_compile_instance field.
3231 (language_defn::get_compile_instance): New member function.
3232 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
3233 initializer.
3234 * objc-lang.c (objc_language_data): Likewise.
3235 * opencl-lang.c (opencl_language_data): Likewise.
3236 * p-lang.c (pascal_language_data): Likewise.
3237 * rust-lang.c (rust_language_data): Likewise.
3238
4009ee92
AB
32392020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3240
3241 * ada-lang.c (ada_add_all_symbols): Update comment.
3242 (ada_iterate_over_symbols): Delete, move implementation to...
3243 (ada_language::iterate_over_symbols): ...here, a new member
3244 function, rewrite to use range based for loop.
3245 (ada_language_data): Delete la_iterate_over_symbols initializer.
3246 * c-lang.c (c_language_data): Likewise.
3247 (cplus_language_data): Likewise.
3248 (asm_language_data): Likewise.
3249 (minimal_language_data): Likewise.
3250 * d-lang.c (d_language_data): Likewise.
3251 * f-lang.c (f_language_data): Likewise.
3252 * go-lang.c (go_language_data): Likewise.
3253 * language.c (unknown_language_data): Likewise.
3254 (auto_language_data): Likewise.
3255 * language.h (language_data): Delete la_iterate_over_symbols field.
3256 (language_defn::iterate_over_symbols): New member function.
3257 (LA_ITERATE_OVER_SYMBOLS): Update.
3258 * linespec.c (iterate_over_all_matching_symtabs): Update.
3259 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
3260 initializer.
3261 * objc-lang.c (objc_language_data): Likewise.
3262 * opencl-lang.c (opencl_language_data): Likewise.
3263 * p-lang.c (pascal_language_data): Likewise.
3264 * rust-lang.c (rust_language_data): Likewise.
3265
54f4ca46
AB
32662020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3267
3268 * ada-lang.c (ada_language_data): Delete
3269 la_lookup_transparent_type initializer.
3270 * c-lang.c (c_language_data): Likewise.
3271 (cplus_language_data): Likewise.
3272 (cplus_language::lookup_transparent_type): New member function.
3273 (asm_language_data): Delete la_lookup_transparent_type
3274 initializer.
3275 (minimal_language_data): Likewise.
3276 * d-lang.c (d_language_data): Likewise.
3277 * f-lang.c (f_language_data): Likewise.
3278 * go-lang.c (go_language_data): Likewise.
3279 * language.c (unknown_language_data): Likewise.
3280 (auto_language_data): Likewise.
3281 * language.h (struct language_data): Delete
3282 la_lookup_transparent_type field.
3283 (language_defn::lookup_transparent_type): New member function.
3284 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
3285 initializer.
3286 * objc-lang.c (objc_language_data): Likewise.
3287 * opencl-lang.c (opencl_language_data): Likewise.
3288 * p-lang.c (pascal_language_data): Likewise.
3289 * rust-lang.c (rust_language_data): Likewise.
3290 * symtab.c (symbol_matches_domain): Update call.
3291
1fb314aa
AB
32922020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3293
3294 * ada-lang.c (ada_language_arch_info): Delete function, move
3295 implementation to...
3296 (ada_language::language_arch_info): ...here, a new member
3297 function.
3298 (ada_language_data): Delete la_language_arch_info.
3299 * c-lang.c (c_language_data): Likewise.
3300 (c_language::language_arch_info): New member function.
3301 (cplus_language_arch_info): Delete function, move
3302 implementation to...
3303 (cplus_language::language_arch_info): ...here, a new member
3304 function.
3305 (cplus_language_data): Delete la_language_arch_info.
3306 (asm_language_data): Likewise.
3307 (asm_language::language_arch_info): New member function.
3308 (minimal_language_data): Delete la_language_arch_info.
3309 (minimal_language::language_arch_info): New member function.
3310 * d-lang.c (d_language_arch_info): Delete function, move
3311 implementation to...
3312 (d_language::language_arch_info): ...here, a new member
3313 function.
3314 (d_language_data): Delete la_language_arch_info.
3315 * f-lang.c (f_language_arch_info): Delete function, move
3316 implementation to...
3317 (f_language::language_arch_info): ...here, a new member
3318 function.
3319 (f_language_data): Delete la_language_arch_info.
3320 * go-lang.c (go_language_arch_info): Delete function, move
3321 implementation to...
3322 (go_language::language_arch_info): ...here, a new member
3323 function.
3324 (go_language_data): Delete la_language_arch_info.
3325 * language.c (unknown_language_data): Likewise.
3326 (unknown_language::language_arch_info): New member function.
3327 (auto_language_data): Delete la_language_arch_info.
3328 (auto_language::language_arch_info): New member function.
3329 (language_gdbarch_post_init): Update call to
3330 la_language_arch_info.
3331 * language.h (language_data): Delete la_language_arch_info
3332 function pointer.
3333 (language_defn::language_arch_info): New function.
3334 * m2-lang.c (m2_language_arch_info): Delete function, move
3335 implementation to...
3336 (m2_language::language_arch_info): ...here, a new member
3337 function.
3338 (m2_language_data): Delete la_language_arch_info.
3339 * objc-lang.c (objc_language_arch_info): Delete function, move
3340 implementation to...
3341 (objc_language::language_arch_info): ...here, a new member
3342 function.
3343 (objc_language_data): Delete la_language_arch_info.
3344 * opencl-lang.c (opencl_language_arch_info): Delete function, move
3345 implementation to...
3346 (opencl_language::language_arch_info): ...here, a new member
3347 function.
3348 (opencl_language_data): Delete la_language_arch_info.
3349 * p-lang.c (pascal_language_arch_info): Delete function, move
3350 implementation to...
3351 (pascal_language::language_arch_info): ...here, a new member
3352 function.
3353 (pascal_language_data): Delete la_language_arch_info.
3354 * rust-lang.c (rust_language_arch_info): Delete function, move
3355 implementation to...
3356 (rust_language::language_arch_info): ...here, a new member
3357 function.
3358 (rust_language_data): Delete la_language_arch_info.
3359
48448202
AB
33602020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3361
3362 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
3363 initializer.
3364 * c-lang.c (c_language_data): Likewise.
3365 (cplus_language_data): Likewise.
3366 (cplus_language::pass_by_reference_info): New method.
3367 (asm_language_data): Delete la_pass_by_reference initializer.
3368 (minimal_language_data): Likewise.
3369 * cp-abi.c (cp_pass_by_reference): Remove use of
3370 default_pass_by_reference.
3371 * d-lang.c (d_language_data): Likewise.
3372 * f-lang.c (f_language_data): Likewise.
3373 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
3374 default_pass_by_reference.
3375 * go-lang.c (go_language_data): Likewise.
3376 * language.c (language_pass_by_reference): Update.
3377 (default_pass_by_reference): Delete.
3378 (unknown_language_data): Delete la_pass_by_reference
3379 initializer.
3380 (auto_language_data): Likewise.
3381 * language.h (struct language_data): Delete la_pass_by_reference
3382 field.
3383 (language_defn::pass_by_reference_info): New member function.
3384 (default_pass_by_reference): Delete declaration.
3385 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
3386 initializer.
3387 * objc-lang.c (objc_language_data): Likewise.
3388 * opencl-lang.c (opencl_language_data): Likewise.
3389 * p-lang.c (pascal_language_data): Likewise.
3390 * rust-lang.c (rust_language_data): Likewise.
3391
15e5fd35
AB
33922020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3393
3394 * ada-lang.c (ada_read_var_value): Delete function, move
3395 implementation to...
3396 (ada_language::read_var_value): ...here.
3397 (ada_language_data): Delete la_read_var_value initializer.
3398 * c-lang.c (c_language_data): Likewise.
3399 (cplus_language_data): Likewise.
3400 (minimal_language_data): Likewise.
3401 * d-lang.c (d_language_data): Likewise.
3402 * f-lang.c (f_language_data): Likewise.
3403 * findvar.c (default_read_var_value): Rename to...
3404 (language_defn::read_var_value): ...this.
3405 * findvar.c (read_var_value): Update header comment, and change to
3406 call member function instead of function pointer.
3407 * go-lang.c (go_language_data): Likewise.
3408 * language.c (unknown_language_data): Delete la_read_var_value
3409 initializer.
3410 (auto_language_data): Likewise.
3411 * language.h (struct language_data): Delete la_read_var_value
3412 field.
3413 (language_defn::read_var_value): New member function.
3414 (default_read_var_value): Delete declaration.
3415 * m2-lang.c (m2_language_data): Delete la_read_var_value
3416 initializer.
3417 * objc-lang.c (objc_language_data): Likewise.
3418 * opencl-lang.c (opencl_language_data): Likewise.
3419 * p-lang.c (pascal_language_data): Likewise.
3420 * rust-lang.c (rust_language_data): Likewise.
3421 * value.h (default_read_var_value): Delete declaration.
3422
5bd40f2a
AB
34232020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3424
3425 * ada-lang.c (ada_print_array_index): Delete function, move
3426 implementation to...
3427 (ada_language::print_array_index): ...here.
3428 (ada_language_data): Delete la_print_array_index initializer.
3429 * c-lang.c (c_language_data): Likewise.
3430 (cplus_language_data): Likewise.
3431 (minimal_language_data): Likewise.
3432 * d-lang.c (d_language_data): Likewise.
3433 * f-lang.c (f_language_data): Likewise.
3434 * go-lang.c (go_language_data): Likewise.
3435 * language.c (default_print_array_index): Delete function, move
3436 implementation to...
3437 (language_defn::print_array_index): ...here.
3438 (unknown_language_data): Delete la_print_array_index initializer.
3439 (auto_language_data): Likewise.
3440 * language.h (struct language_data): Delete la_print_array_index
3441 field.
3442 (language_defn::print_array_index): New member function.
3443 (LA_PRINT_ARRAY_INDEX): Update.
3444 (default_print_array_index): Delete declaration.
3445 * m2-lang.c (m2_language_data): Delete la_print_array_index
3446 initializer.
3447 * objc-lang.c (objc_language_data): Likewise.
3448 * opencl-lang.c (opencl_language_data): Likewise.
3449 * p-lang.c (pascal_language_data): Likewise.
3450 * rust-lang.c (rust_language_data): Likewise.
3451
0874fd07
AB
34522020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3453
3454 * gdb/ada-lang.c (ada_language_defn): Convert to...
3455 (ada_language_data): ...this.
3456 (class ada_language): New class.
3457 (ada_language_defn): New static global.
3458 * gdb/c-lang.c (c_language_defn): Convert to...
3459 (c_language_data): ...this.
3460 (class c_language): New class.
3461 (c_language_defn): New static global.
3462 (cplus_language_defn): Convert to...
3463 (cplus_language_data): ...this.
3464 (class cplus_language): New class.
3465 (cplus_language_defn): New static global.
3466 (asm_language_defn): Convert to...
3467 (asm_language_data): ...this.
3468 (class asm_language): New class.
3469 (asm_language_defn): New static global.
3470 (minimal_language_defn): Convert to...
3471 (minimal_language_data): ...this.
3472 (class minimal_language): New class.
3473 (minimal_language_defn): New static global.
3474 * gdb/d-lang.c (d_language_defn): Convert to...
3475 (d_language_data): ...this.
3476 (class d_language): New class.
3477 (d_language_defn): New static global.
3478 * gdb/f-lang.c (f_language_defn): Convert to...
3479 (f_language_data): ...this.
3480 (class f_language): New class.
3481 (f_language_defn): New static global.
3482 * gdb/go-lang.c (go_language_defn): Convert to...
3483 (go_language_data): ...this.
3484 (class go_language): New class.
3485 (go_language_defn): New static global.
3486 * gdb/language.c (unknown_language_defn): Remove declaration.
3487 (current_language): Initialize to nullptr, real initialization is
3488 moved to _initialize_language.
3489 (languages): Delete global.
3490 (language_defn::languages): Define.
3491 (set_language_command): Use language_defn::languages.
3492 (set_language): Likewise.
3493 (range_error): Likewise.
3494 (language_enum): Likewise.
3495 (language_def): Likewise.
3496 (add_set_language_command): Use language_def::languages for the
3497 language list, and language_def to lookup language pointers.
3498 (skip_language_trampoline): Use language_defn::languages.
3499 (unknown_language_defn): Convert to...
3500 (unknown_language_data): ...this.
3501 (class unknown_language): New class.
3502 (unknown_language_defn): New static global.
3503 (auto_language_defn): Convert to...
3504 (auto_language_data): ...this.
3505 (class auto_language): New class.
3506 (auto_language_defn): New static global.
3507 (language_gdbarch_post_init): Use language_defn::languages.
3508 (_initialize_language): Initialize current_language.
3509 * gdb/language.h (struct language_defn): Rename to...
3510 (struct language_data): ...this.
3511 (struct language_defn): New.
3512 (auto_language_defn): Delete.
3513 (unknown_language_defn): Delete.
3514 (minimal_language_defn): Delete.
3515 (ada_language_defn): Delete.
3516 (asm_language_defn): Delete.
3517 (c_language_defn): Delete.
3518 (cplus_language_defn): Delete.
3519 (d_language_defn): Delete.
3520 (f_language_defn): Delete.
3521 (go_language_defn): Delete.
3522 (m2_language_defn): Delete.
3523 (objc_language_defn): Delete.
3524 (opencl_language_defn): Delete.
3525 (pascal_language_defn): Delete.
3526 (rust_language_defn): Delete.
3527 * gdb/m2-lang.c (m2_language_defn): Convert to...
3528 (m2_language_data): ...this.
3529 (class m2_language): New class.
3530 (m2_language_defn): New static global.
3531 * gdb/objc-lang.c (objc_language_defn): Convert to...
3532 (objc_language_data): ...this.
3533 (class objc_language): New class.
3534 (objc_language_defn): New static global.
3535 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
3536 (opencl_language_data): ...this.
3537 (class opencl_language): New class.
3538 (opencl_language_defn): New static global.
3539 * gdb/p-lang.c (pascal_language_defn): Convert to...
3540 (pascal_language_data): ...this.
3541 (class pascal_language): New class.
3542 (pascal_language_defn): New static global.
3543 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
3544 language pointer, update comment format.
3545 * gdb/rust-lang.c (rust_language_defn): Convert to...
3546 (rust_language_data): ...this.
3547 (class rust_language): New class.
3548 (rust_language_defn): New static global.
3549
1313c56e
AB
35502020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
3551
3552 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
3553 member variable.
3554 <m_stmt_at_address>: New member variable.
3555 (lnp_state_machine::record_line): Don't record some lines, update
3556 tracking of is_stmt at the same address.
3557 (lnp_state_machine::lnp_state_machine): Initialise new member
3558 variables.
3559
b7ed9f3d
ST
35602020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
3561
3562 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
3563 "-include gnu-nat-mig.h".
3564 * gnu-nat-mig.h: New file.
3565 * gnu-nat.c: Include "gnu-nat-mig.h".
3566 (exc_server, msg_reply_server, notify_server,
3567 process_reply_server): Remove declarations.
3568
14a8ad62
ST
35692020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3570
3571 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
3572 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
3573 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
3574 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
3575 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
3576 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
3577 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
3578 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
3579 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
3580 to gnu_nat_target class.
3581 * gnu-nat.c: Likewise.
3582 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
3583 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
3584 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
3585 object.
3586 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
3587 instead of `gnu_target'.
3588
0af5e106
ST
35892020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3590
3591 * i386-gnu-tdep.c: Include "gdbcore.h"
3592 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
3593 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
3594 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
3595 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
3596 i386_gnu_sigcontext_addr): New functions
3597 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
3598 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
3599 tdep.
3600
078f2fc9
ST
36012020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3602
3603 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
3604 before fork_inferior call. Avoid calling it if target_is_pushed returns
3605 true.
3606
53dff92c
ST
36072020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3608
3609 * gnu-nat.h (gnu_target): New variable declaration.
3610 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
3611 gnu_target.
3612 * gnu-nat.c (gnu_target): New variable.
3613 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
3614 add_thread_silent, and add_thread calls.
3615 (gnu_nat_target::create_inferior): Pass gnu_target to
3616 add_thread_silent, thread_change_ptid call.
3617 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
3618 call.
3619
5a8b8627
ST
36202020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3621
3622 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
3623 (gnu_nat_target::find_memory_regions): Remove unused
3624 `old_address' variable.
3625
366f550a
ST
36262020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3627
3628 * gnu-nat.c: Include "gdbarch.h".
3629
f14871bf
ST
36302020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3631
3632 * reply_mig_hack.awk (Error return): Cast function through
3633 void *, to bypass compiler function call check.
3634
c6887cfb
ST
36352020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3636
3637 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
3638 $(srcdir)/reply_mig_hack.awk.
3639
6930bffe
ST
36402020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3641
3642 * gnu-nat.h (gnu_debug_flag): Set type to bool.
3643
112c22ed
JG
36442020-05-30 Jonny Grant <jg@jguk.org>
3645
3646 * configure.ac (ACX_BUGURL): change bug URL to https.
3647
f68f85b5
PA
36482020-05-30 Pedro Alves <palves@redhat.com>
3649
3650 * cp-support.c (replace_typedefs_template): New.
3651 (replace_typedefs_qualified_name): Handle
3652 DEMANGLE_COMPONENT_TEMPLATE.
3653
976ca316
SM
36542020-05-29 Simon Marchi <simon.marchi@efficios.com>
3655
3656 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
3657 dwarf2/index-cache.h, dwarf2/index-write.c,
3658 dwarf2/index-write.h, dwarf2/line-header.c,
3659 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
3660 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
3661 variables and fields from `dwarf2_per_objfile` to just
3662 `per_objfile` throughout.
3663
989ade05
SM
36642020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
3665
3666 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3667 <push_dwarf_reg_entry_value>: Add comment.
3668
c47bae85
KB
36692020-05-28 Kevin Buettner <kevinb@redhat.com>
3670 Keith Seitz <keiths@redhat.com>
3671
3672 * python/python.c (do_start_initialization): Call PyEval_SaveThread
3673 instead of PyEval_ReleaseLock.
3674 (class gdbpy_gil): Move to earlier in file.
3675 (finalize_python): Set gdb_python_initialized.
3676 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
3677 when not initialized.
3678
44486dcf
SM
36792020-05-28 Simon Marchi <simon.marchi@efficios.com>
3680
3681 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3682 <push_dwarf_reg_entry_value>: Remove assert. Override
3683 per_objfile with caller_per_objfile.
3684
f030440d
TV
36852020-05-28 Tom de Vries <tdevries@suse.de>
3686
3687 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
3688 PR gold/15646 workaround to symbol kind "type".
3689
f0fbb768
TT
36902020-05-27 Tom Tromey <tromey@adacore.com>
3691
3692 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
3693
af0b2a3e
TT
36942020-05-27 Tom Tromey <tromey@adacore.com>
3695
3696 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
3697 Use htab_find_with_hash.
3698 <add_abbrev>: Remove "abbrev_number" parameter.
3699 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
3700 "abbrev_number" parameter. Use htab_find_slot_with_hash.
3701 (hash_abbrev): Add comment.
3702 (abbrev_table::lookup_abbrev): Move to header file.
3703 (abbrev_table::read): Update.
3704
7d00ffec
TT
37052020-05-27 Tom Tromey <tromey@adacore.com>
3706
3707 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
3708 method.
3709 <canonical_name>: New member.
3710 <raw_name>: Rename from "name".
3711 (partial_die_info): Initialize canonical_name.
3712 (scan_partial_symbols): Check raw_name.
3713 (partial_die_parent_scope, partial_die_full_name)
3714 (add_partial_symbol, add_partial_subprogram)
3715 (add_partial_enumeration, load_partial_dies): Use "name" method.
3716 (partial_die_info::name): New method.
3717 (partial_die_info::read, guess_partial_die_structure_name)
3718 (partial_die_info::fixup): Update.
3719
697bba18
TT
37202020-05-27 Tom Tromey <tromey@adacore.com>
3721
3722 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
3723 <get_ref_die_offset>: Inline.
3724 <get_ref_die_offset_complaint>: New method.
3725 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
3726 (attribute::get_ref_die_offset_complaint): Rename from
3727 get_ref_die_offset. Just issue complaint.
3728
c17ace43
HD
37292020-05-27 Hannes Domani <ssbssa@yahoo.de>
3730
3731 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
3732
96445f0b
HD
37332020-05-27 Hannes Domani <ssbssa@yahoo.de>
3734
3735 * exec.c (exec_file_attach): Use errno value of first openp failure.
3736
ac637ec3
HD
37372020-05-27 Hannes Domani <ssbssa@yahoo.de>
3738
3739 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
3740 Don't close thread handle.
3741
17ee85fc
TT
37422020-05-27 Tom Tromey <tom@tromey.com>
3743 Simon Marchi <simon.marchi@efficios.com>
3744
3745 * objfiles.h (struct objfile) <partial_symtabs>: Now a
3746 shared_ptr.
3747 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
3748 member.
3749 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
3750 dwarf2_per_bfd_objfile_data_key>: New globals.
3751 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
3752 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
3753 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
3754 shared.
3755 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
3756 short-circuit when sharing.
3757 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
3758 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
3759
39b16f87
SM
37602020-05-27 Simon Marchi <simon.marchi@efficios.com>
3761
3762 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
3763 to...
3764 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
3765 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
3766
fcf23d5b
SM
37672020-05-27 Simon Marchi <simon.marchi@efficios.com>
3768
3769 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
3770 build_name_components, find_name_components_bounds>:
3771 Add per_objfile parameter.
3772 (struct mapped_index) <symbol_name_at>: Likewise.
3773 (struct mapped_debug_names): Remove constructor.
3774 <dwarf2_per_objfile>: Remove field.
3775 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
3776 (mapped_index_base::find_name_components_bounds,
3777 mapped_index_base::build_name_components,
3778 dw2_expand_symtabs_matching_symbol): Likewise.
3779 (class mock_mapped_index) <symbol_name_at>: Likewise.
3780 (check_match): Likewise.
3781 (check_find_bounds_finds): Likewise.
3782 (test_mapped_index_find_name_component_bounds): Update.
3783 (CHECK_MATCH): Update.
3784 (dw2_expand_symtabs_matching): Update.
3785 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
3786 per_objfile parameter.
3787 <find_vec_in_debug_names>: Likewise.
3788 <m_per_objfile>: New field.
3789 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
3790 parameter.
3791 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
3792 (dw2_debug_names_iterator::next): Update.
3793 (dw2_debug_names_lookup_symbol): Update.
3794 (dw2_debug_names_expand_symtabs_for_function): Update.
3795 (dw2_debug_names_map_matching_symbols): Update.
3796 (dw2_debug_names_expand_symtabs_matching): Update.
3797 (dwarf2_read_debug_names): Update.
3798
7188ed02
SM
37992020-05-27 Simon Marchi <simon.marchi@efficios.com>
3800
3801 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
3802 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
3803 move to dwarf2_per_objfile.
3804 <read_in_chain>: Remove.
3805 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
3806 remove_all_cus, age_comp_units>: New methods.
3807 <m_dwarf2_cus>: New member.
3808 (struct dwarf2_per_cu_data) <cu>: Remove.
3809 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
3810 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
3811 moved to methods of dwarf2_per_objfile.
3812 (dwarf2_clear_marks): Remove.
3813 (dwarf2_queue_item::~dwarf2_queue_item): Update.
3814 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
3815 (dwarf2_per_bfd::free_cached_comp_units): Remove.
3816 (dwarf2_per_objfile::remove_all_cus): New.
3817 (class free_cached_comp_units) <~free_cached_comp_units>:
3818 Update.
3819 (load_cu): Update.
3820 (dw2_do_instantiate_symtab): Adjust.
3821 (fill_in_sig_entry_from_dwo_entry): Adjust.
3822 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3823 (cutu_reader::cutu_reader): Likewise.
3824 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
3825 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
3826 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
3827 and dwarf2_per_objfile::age_comp_units.
3828 (load_partial_comp_unit): Update.
3829 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
3830 (process_queue): Likewise.
3831 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
3832 backlink.
3833 (dwarf2_read_addr_index): Likewise.
3834 (follow_die_offset): Likewise.
3835 (dwarf2_fetch_die_loc_sect_off): Likewise.
3836 (dwarf2_fetch_constant_bytes): Likewise.
3837 (dwarf2_fetch_die_type_sect_off): Likewise.
3838 (follow_die_sig_1): Likewise.
3839 (load_full_type_unit): Likewise.
3840 (read_signatured_type): Likewise.
3841 (dwarf2_cu::dwarf2_cu): Don't set cu field.
3842 (dwarf2_cu::~dwarf2_cu): Remove.
3843 (dwarf2_per_objfile::get_cu): New.
3844 (dwarf2_per_objfile::set_cu): New.
3845 (age_cached_comp_units): Rename to...
3846 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
3847 to std::unordered_map.
3848 (free_one_cached_comp_unit): Rename to...
3849 (dwarf2_per_objfile::remove_cu): ... this. Adjust
3850 to std::unordered_map.
3851 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
3852 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
3853 a dwarf2_per_objfile in data.
3854 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
3855 (dwarf2_clear_marks): Remove.
3856
2e671100
SM
38572020-05-27 Simon Marchi <simon.marchi@efficios.com>
3858
3859 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
3860 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
3861 (init_tu_and_read_dwo_dies): Likewise.
3862 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
3863 (cutu_reader::cutu_reader): Likewise.
3864 (load_partial_comp_unit): Likewise.
3865 (process_psymtab_comp_unit): Update.
3866 (build_type_psymtabs_1): Update.
3867 (process_skeletonless_type_unit): Update.
3868 (load_full_comp_unit): Update.
3869 (find_partial_die): Update.
3870 (dwarf2_read_addr_index): Update.
3871 (read_signatured_type): Update.
3872
2e6a9f79
SM
38732020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3874
3875 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
3876 m_header_read_in>: New fields.
3877 <get_header>: New method.
3878 * dwarf2/read.c (per_cu_header_read_in): Remove.
3879 (dwarf2_per_cu_data::get_header): New.
3880 (dwarf2_per_cu_data::addr_size): Update.
3881 (dwarf2_per_cu_data::offset_size): Update.
3882 (dwarf2_per_cu_data::ref_addr_size): Update.
3883
1b555f17
SM
38842020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3885
3886 * dwarf2/read.c (load_cu): Return dwarf2_cu.
3887 (dw2_do_instantiate_symtab): Update.
3888 (queue_and_load_all_dwo_tus): Change parameter from
3889 dwarf2_per_cu_data to dwarf2_cu.
3890 (dwarf2_fetch_die_loc_sect_off): Update.
3891 (dwarf2_fetch_constant_bytes): Update.
3892 (dwarf2_fetch_die_type_sect_off): Update.
3893
8fc0b21d
SM
38942020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3895
3896 * dwarf2/read.c (process_full_comp_unit,
3897 process_full_type_unit): Remove per_cu, per_objfile paramters.
3898 Add dwarf2_cu parameter.
3899 (process_queue): Update.
3900
168c9250
SM
39012020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3902
3903 * dwarf2/read.c (create_cu_from_index_list): Replace
3904 dwarf2_per_objfile parameter with dwarf2_per_bfd.
3905 (create_cus_from_index_list): Likewise.
3906 (create_cus_from_index): Likewise.
3907 (create_signatured_type_table_from_index): Likewise.
3908 (create_cus_from_debug_names_list): Likewise.
3909 (create_cus_from_debug_names): Likewise.
3910 (dwarf2_read_gdb_index): Update.
3911 (dwarf2_read_debug_names): Update.
3912
e286671b
TT
39132020-05-27 Tom Tromey <tom@tromey.com>
3914 Simon Marchi <simon.marchi@efficios.com>
3915
3916 * dwarf2/read.h (struct dwarf2_per_objfile)
3917 <get_type_for_signatured_type, set_type_for_signatured_type>:
3918 New methods.
3919 <m_type_map>: New member.
3920 (struct signatured_type) <type>: Remove.
3921 * dwarf2/read.c
3922 (dwarf2_per_objfile::get_type_for_signatured_type,
3923 dwarf2_per_objfile::set_type_for_signatured_type): New.
3924 (get_signatured_type): Use new methods.
3925
8adb8487
TT
39262020-05-27 Tom Tromey <tom@tromey.com>
3927 Simon Marchi <simon.marchi@efficios.com>
3928
3929 * dwarf2/read.h (struct type_unit_group_unshareable): New.
3930 (struct dwarf2_per_objfile) <type_units>: New member.
3931 <get_type_unit_group_unshareable>: New method.
3932 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
3933 num_symtabs, symtabs>: Remove; move to
3934 type_unit_group_unshareable.
3935 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
3936 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
3937 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
3938
127bbf4b
SM
39392020-05-27 Simon Marchi <simon.marchi@efficios.com>
3940
3941 * dwarf2/read.h (struct dwarf2_per_cu_data):
3942 <dwarf2_per_objfile>: Remove.
3943 * dwarf2/read.c (create_cu_from_index_list): Don't assign
3944 dwarf2_per_objfile.
3945 (create_signatured_type_table_from_index): Likewise.
3946 (create_signatured_type_table_from_debug_names): Likewise.
3947 (create_debug_type_hash_table): Likewise.
3948 (fill_in_sig_entry_from_dwo_entry): Likewise.
3949 (create_type_unit_group): Likewise.
3950 (read_comp_units_from_section): Likewise.
3951 (create_cus_hash_table): Likewise.
3952
f6e649dd
SM
39532020-05-27 Simon Marchi <simon.marchi@efficios.com>
3954
3955 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
3956 dwarf2_per_cu_data::dwarf2_per_objfile.
3957 (compute_compunit_symtab_includes): Likewise.
3958 (dwarf2_cu::start_symtab): Likewise.
3959
aa66c379
SM
39602020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3961
3962 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
3963 parameter.
3964 * dwarf2/read.c (get_die_type_at_offset): Likewise.
3965 (read_namespace_alias): Update.
3966 (lookup_die_type): Update.
3967 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
3968 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
3969 Update.
3970 (disassemble_dwarf_expression): Update.
3971
120ce1b5
SM
39722020-05-27 Simon Marchi <simon.marchi@efficios.com>
3973
3974 * dwarf2/read.h (struct dwarf2_queue_item): Add
3975 dwarf2_per_objfile parameter, assign new parameter.
3976 <per_objfile>: New field.
3977 * dwarf2/read.c (free_one_cached_comp_unit): Add
3978 dwarf2_per_objfile parameter.
3979 (queue_comp_unit): Likewise.
3980 (dw2_do_instantiate_symtab): Update.
3981 (process_psymtab_comp_unit): Update.
3982 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
3983 (process_imported_unit_die): Update.
3984 (queue_and_load_dwo_tu): Update.
3985 (follow_die_offset): Update.
3986 (follow_die_sig_1): Update.
3987
9f47c707
SM
39882020-05-27 Simon Marchi <simon.marchi@efficios.com>
3989
3990 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
3991 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
3992 (read_call_site_scope): Assign per_objfile.
3993 (dwarf2_per_cu_data::objfile): Remove.
3994 * gdbtypes.h (struct call_site) <per_objfile>: New member.
3995 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
3996 dwarf2_per_objfile parameter.
3997 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
3998 dwarf2_per_objfile parameter.
3999 (dwarf_expr_reg_to_entry_parameter): Add output
4000 dwarf2_per_objfile parameter.
4001 (locexpr_get_frame_base): Update.
4002 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
4003 <push_dwarf_reg_entry_value>: Update.
4004 <call_site_to_target_addr>: Update.
4005 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
4006 parameter.
4007 (value_of_dwarf_reg_entry): Update.
4008 (rw_pieced_value): Update.
4009 (indirect_synthetic_pointer): Update.
4010 (dwarf2_evaluate_property): Update.
4011 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
4012 parameter.
4013 (locexpr_read_variable): Update.
4014 (locexpr_get_symbol_read_needs): Update.
4015 (loclist_read_variable): Update.
4016
14095eb3
SM
40172020-05-27 Simon Marchi <simon.marchi@efficios.com>
4018
4019 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
4020 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4021 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
4022 parameter.
4023 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
4024 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4025 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
4026 parameter.
4027 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
4028 sect_variable_value): Add dwarf2_per_objfile parameter.
4029 (class dwarf_evaluate_loc_desc) <dwarf_call,
4030 dwarf_variable_value>: Update.
4031 (fetch_const_value_from_synthetic_pointer): Add
4032 dwarf2_per_objfile parameter.
4033 (fetch_const_value_from_synthetic_pointer): Update.
4034 (coerced_pieced_ref): Update.
4035 (class symbol_needs_eval_context) <dwarf_call,
4036 dwarf_variable_value>: Update.
4037 (dwarf2_compile_expr_to_ax): Update.
4038
3c3cd3d4
SM
40392020-05-27 Simon Marchi <simon.marchi@efficios.com>
4040
4041 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
4042 parameter.
4043 (dwarf2_evaluate_loc_desc_full): Update.
4044
82ca3f51
SM
40452020-05-27 Simon Marchi <simon.marchi@efficios.com>
4046
4047 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
4048 parameter.
4049 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
4050 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
4051 dwarf2_per_objfile parameter.
4052 (decode_debug_loc_dwo_addresses): Likewise.
4053 (dwarf2_find_location_expression): Update.
4054 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
4055 (locexpr_describe_location_piece): Add dwarf2_per_objfile
4056 parameter.
4057 (disassemble_dwarf_expression): Add dwarf2_per_objfile
4058 parameter.
4059 (locexpr_describe_location_1): Likewise.
4060 (locexpr_describe_location): Update.
4061
4b167ea1
SM
40622020-05-27 Simon Marchi <simon.marchi@efficios.com>
4063
4064 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
4065 Remove.
4066 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
4067 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
4068 (dwarf2_compile_property_to_c): Update.
4069 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
4070 use text offset from objfile.
4071 (locexpr_tracepoint_var_ref): Update.
4072 (locexpr_generate_c_location): Update.
4073 (loclist_describe_location): Update.
4074 (loclist_tracepoint_var_ref): Update.
4075 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
4076 dwarf2_per_objfile parameter.
4077 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
4078 use text offset from objfile.
4079 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
4080
89b07335
SM
40812020-05-27 Simon Marchi <simon.marchi@efficios.com>
4082
4083 * dwarf2/expr.h (struct dwarf_expr_context)
4084 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
4085 <offset>: Remove.
4086 <per_objfile>: New member.
4087 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
4088 dwarf2_per_objfile parameter. Don't set offset, set
4089 per_objfile.
4090 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
4091 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
4092 a dwarf2_per_objfile object instead of an offset.
4093 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
4094 constructor.
4095 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
4096 to dwarf2_expr_executor constructor. Don't set offset.
4097 (dwarf2_fetch_cfa_info): Update.
4098 (struct dwarf2_frame_cache) <text_offset>: Remove.
4099 <per_objfile>: New field.
4100 (dwarf2_frame_cache): Update.
4101 (dwarf2_frame_prev_register): Update.
4102 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4103 <dwarf_evaluate_loc_desc>: Add constructor.
4104 (dwarf2_evaluate_loc_desc_full): Update.
4105 (dwarf2_locexpr_baton_eval): Update.
4106 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
4107 Add constructor.
4108 (dwarf2_loc_desc_get_symbol_read_needs): Update.
4109
293e7e51
SM
41102020-05-27 Simon Marchi <simon.marchi@efficios.com>
4111
4112 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
4113 addr_sized_int_type>: Move to dwarf2_cu.
4114 <int_type>: Move to dwarf2_per_objfile.
4115 (struct dwarf2_per_objfile) <int_type>: Move here.
4116 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
4117 addr_sized_int_type>: Move here.
4118 (read_func_scope): Update.
4119 (read_array_type): Update.
4120 (read_tag_string_type): Update.
4121 (attr_to_dynamic_prop): Update.
4122 (dwarf2_per_cu_data::int_type): Rename to...
4123 (dwarf2_per_objfile::int_type): ... this.
4124 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
4125 (dwarf2_cu::addr_sized_int_type): ... this.
4126 (read_subrange_type): Update.
4127 (dwarf2_per_cu_data::addr_type): Rename to...
4128 (dwarf2_cu::addr_type): ... this.
4129 (set_die_type): Update.
4130
64874a40
SM
41312020-05-27 Simon Marchi <simon.marchi@efficios.com>
4132
4133 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
4134 data through per_cu->cu.
4135
4ab09049
SM
41362020-05-27 Simon Marchi <simon.marchi@efficios.com>
4137
4138 * dwarf2/read.c (lookup_dwo_comp_unit): Change
4139 dwarf2_per_cu_data parameter fo dwarf2_cu.
4140 (lookup_dwo_type_unit): Likewise.
4141 (read_cutu_die_from_dwo): Likewise.
4142 (lookup_dwo_unit): Likewise.
4143 (open_and_init_dwo_file): Likewise.
4144 (lookup_dwo_cutu): Likewise.
4145 (lookup_dwo_comp_unit): Likewise.
4146 (lookup_dwo_type_unit): Likewise.
4147 (cutu_reader::init_tu_and_read_dwo_dies): Update.
4148 (cutu_reader::cutu_reader): Update.
4149
47b14e86
SM
41502020-05-27 Simon Marchi <simon.marchi@efficios.com>
4151
4152 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
4153 parameter.
4154 (process_full_type_unit): Likewise.
4155 (process_queue): Update.
4156
43182c09
SM
41572020-05-27 Simon Marchi <simon.marchi@efficios.com>
4158
4159 * dwarf2/read.c (recursively_compute_inclusions): Add
4160 dwarf2_per_objfile parameter.
4161 (compute_compunit_symtab_includes): Likewise.
4162 (process_cu_includes): Update.
4163
7aa104c4
SM
41642020-05-27 Simon Marchi <simon.marchi@efficios.com>
4165
4166 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
4167 parameter.
4168 (create_type_unit_group): Update.
4169 (process_psymtab_comp_unit_reader): Update.
4170 (build_type_psymtabs_reader): Update.
4171
e3beb21d
SM
41722020-05-27 Simon Marchi <simon.marchi@efficios.com>
4173
4174 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
4175 object through m_this_cu->cu.
4176
d460f660
SM
41772020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4178
4179 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
4180 the info parameter.
4181 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
4182
ab432490
SM
41832020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4184
4185 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
4186 per_objfile parameter.
4187 (load_full_type_unit): Add per_objfile parameter.
4188 (read_signatured_type): Likewise.
4189 (load_full_comp_unit): Likewise.
4190 (load_cu): Likewise.
4191 (dw2_do_instantiate_symtab): Likewise.
4192 (dw2_get_file_names): Likewise.
4193 (dw2_map_symtabs_matching_filename): Update.
4194 (dw_expand_symtabs_matching_file_matcher): Update.
4195 (dw2_map_symbol_filenames): Update.
4196 (process_psymtab_comp_unit): Add per_objfile parameter.
4197 (build_type_psymtabs_1): Update.
4198 (process_skeletonless_type_unit): Update.
4199 (dwarf2_build_psymtabs_hard): Update.
4200 (load_partial_comp_unit): Add per_objfile parameter.
4201 (scan_partial_symbols): Update.
4202 (load_full_comp_unit): Add per_objfile parameter.
4203 (process_imported_unit_die): Update.
4204 (create_cus_hash_table): Update.
4205 (find_partial_die): Update.
4206 (dwarf2_read_addr_index): Update.
4207 (follow_die_offset): Update.
4208 (dwarf2_fetch_die_loc_sect_off): Update.
4209 (dwarf2_fetch_constant_bytes): Update.
4210 (dwarf2_fetch_die_type_sect_off): Update.
4211 (follow_die_sig_1): Update.
4212 (load_full_type_unit): Add per_objfile parameter.
4213 (read_signatured_type): Likewise.
4214
313bad1b
SM
42152020-05-27 Simon Marchi <simon.marchi@efficios.com>
4216
4217 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
4218 of objfile_name.
4219
c3699833
SM
42202020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4221
4222 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
4223 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4224 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
4225 field.
4226 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4227 (create_cus_from_index): Update.
4228 (dwarf2_read_gdb_index): Update.
4229 (create_cus_from_debug_names): Update.
4230 (dwarf2_read_debug_names): Update.
4231 (get_abbrev_section_for_cu): Update.
4232 (create_all_comp_units): Update.
4233 (read_attribute_value): Update.
4234 (get_debug_line_section): Update.
4235 * dwarf2/index-cache.c (index_cache::store): Update.
4236 * dwarf2/index-write.c (save_gdb_index_command): Update.
4237 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
4238
1859c670
SM
42392020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4240
4241 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
4242 member.
4243 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
4244 dwarf2_per_cu_data::per_bfd.
4245 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
4246 (create_type_unit_group): Likewise.
4247 (queue_comp_unit): Remove reference to
4248 per_cu->dwarf2_per_objfile.
4249 (maybe_queue_comp_unit): Likewise.
4250 (fill_in_sig_entry_from_dwo_entry): Assign new field.
4251 (create_cus_hash_table): Assign new field.
4252
5e22e966
SM
42532020-05-27 Simon Marchi <simon.marchi@efficios.com>
4254
4255 * dwarf2/read.c: Replace
4256 dwarf2_cu->per_cu->dwarf2_per_objfile references with
4257 dwarf2_cu->per_objfile throughout.
4258
97a1449a
SM
42592020-05-27 Simon Marchi <simon.marchi@efficios.com>
4260
4261 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
4262 parameter, don't use per_cu->dwarf2_per_objfile.
4263 (dw2_instantiate_symtab): Likewise.
4264 (dw2_find_last_source_symtab): Update.
4265 (dw2_map_expand_apply): Update.
4266 (dw2_lookup_symbol): Update.
4267 (dw2_expand_symtabs_for_function): Update.
4268 (dw2_expand_all_symtabs): Update.
4269 (dw2_expand_symtabs_with_fullname): Update.
4270 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
4271 don't use per_cu->dwarf2_per_objfile.
4272 (dw2_expand_marked_cus): Update.
4273 (dw2_find_pc_sect_compunit_symtab): Update.
4274 (dw2_debug_names_lookup_symbol): Update.
4275 (dw2_debug_names_expand_symtabs_for_function): Update.
4276 (dw2_debug_names_map_matching_symbols): Update.
4277 (dwarf2_psymtab::expand_psymtab): Update.
4278
9e021579
SM
42792020-05-27 Simon Marchi <simon.marchi@efficios.com>
4280
4281 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
4282 <per_objfile>: New member.
4283 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
4284 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
4285 call to dwarf2_cu.
4286 (cutu_reader::cutu_reader): Update.
4287 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
4288
ae090bdb
SM
42892020-05-27 Simon Marchi <simon.marchi@efficios.com>
4290
4291 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
4292 struct dwarf2_per_objfile.
4293 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
4294 dwarf2_per_bfd.
4295 * dwarf2/read.c (set_die_type): Update.
4296 (get_die_type_at_offset): Update.
4297
af758d11
SM
42982020-05-27 Tom Tromey <tom@tromey.com>
4299 Simon Marchi <simon.marchi@efficios.com>
4300
4301 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
4302 method.
4303 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
4304 get_symtab, set_symtab>: New methods.
4305 <m_symtabs>: New field.
4306 (struct dwarf2_psymtab): Derive from partial_symtab.
4307 <readin_p, get_compunit_symtab>: Declare methods.
4308 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
4309 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
4310 New methods.
4311 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
4312 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
4313 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
4314 (dw2_symtab_iter_next, dw2_print_stats)
4315 (dw2_expand_symtabs_with_fullname)
4316 (dw2_expand_symtabs_matching_one)
4317 (dw_expand_symtabs_matching_file_matcher)
4318 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
4319 (dw2_debug_names_iterator::next)
4320 (dw2_debug_names_map_matching_symbols)
4321 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
4322 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
4323 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
4324 New methods.
4325 (get_compunit_symtab, process_full_comp_unit)
4326 (process_full_type_unit): Update.
4327 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
4328
5989a64e
SM
43292020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4330
4331 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
4332 then introduce a new dwarf2_per_objfile type.
4333 <read_line_string>: Move to the new dwarf2_per_objfile type.
4334 <objfile>: Likewise.
4335 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
4336 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
4337 dwarf2_per_objfile->per_bfd.
4338 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
4339 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
4340 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
4341 (dwarf2_per_bfd::free_cached_comp_units): ... this.
4342 (dwarf2_has_info): Allocate dwarf2_per_bfd.
4343 (dwarf2_per_objfile::locate_sections): Rename to...
4344 (dwarf2_per_bfd::locate_sections): ... this.
4345 (dwarf2_per_objfile::get_cutu): Rename to...
4346 (dwarf2_per_bfd::get_cutu): ... this.
4347 (dwarf2_per_objfile::get_cu): Rename to...
4348 (dwarf2_per_bfd::get_cu): ... this.
4349 (dwarf2_per_objfile::get_tu): Rename to...
4350 (dwarf2_per_bfd::get_tu): ... this.
4351 (dwarf2_per_objfile::allocate_per_cu): Rename to...
4352 (dwarf2_per_bfd::allocate_per_cu): ... this.
4353 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
4354 (dwarf2_per_bfd::allocate_signatured_type): ... this.
4355 (get_gdb_index_contents_ftype): Change parameter from
4356 dwarf2_per_objfile to dwarf2_per_bfd.
4357 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
4358 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
4359
a50264ba
TT
43602020-05-27 Tom Tromey <tom@tromey.com>
4361 Simon Marchi <simon.marchi@efficios.com>
4362
4363 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
4364 (allocate_piece_closure): Set "per_objfile" member.
4365 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
4366 (locexpr_describe_location, loclist_describe_location): Use new
4367 member.
4368 * dwarf2/read.c (read_call_site_scope)
4369 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
4370 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
4371 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
4372 handle_data_member_location): Set per_objfile member.
4373 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
4374 member.
4375 (struct dwarf2_loclist_baton) <per_objfile>: New member.
4376
d3473f0c
TT
43772020-05-27 Tom Tromey <tom@tromey.com>
4378
4379 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
4380 allocate_signatured_type>: Declare new methods.
4381 <m_num_psymtabs>: New member.
4382 (struct dwarf2_per_cu_data) <index>: New member.
4383 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
4384 (dwarf2_per_objfile::allocate_signatured_type): New methods.
4385 (create_cu_from_index_list): Use allocate_per_cu.
4386 (create_signatured_type_table_from_index)
4387 (create_signatured_type_table_from_debug_names)
4388 (create_debug_type_hash_table, add_type_unit)
4389 (read_comp_units_from_section): Use allocate_signatured_type.
4390
5717c425
TT
43912020-05-27 Tom Tromey <tom@tromey.com>
4392
4393 * psymtab.c (partial_map_expand_apply)
4394 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
4395 (psym_lookup_global_symbol_language)
4396 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
4397 (psym_print_stats, psym_expand_symtabs_for_function)
4398 (psym_map_symbol_filenames, psym_map_matching_symbols)
4399 (psym_expand_symtabs_matching)
4400 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
4401 (maintenance_check_psymtabs): Update.
4402 * psympriv.h (struct partial_symtab) <readin_p,
4403 get_compunit_symtab>: Add objfile parameter.
4404 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
4405 Likewise.
4406 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
4407 get_compunit_symtab>: Likewise.
4408 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
4409
45940949
TT
44102020-05-27 Tom Tromey <tom@tromey.com>
4411
4412 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
4413 member.
4414 * dwarf2/read.c (delete_file_name_entry): Fix comment.
4415 (create_cu_from_index_list)
4416 (create_signatured_type_table_from_index)
4417 (create_signatured_type_table_from_debug_names)
4418 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
4419 (dwarf2_create_include_psymtab)
4420 (create_debug_type_hash_table, add_type_unit)
4421 (create_type_unit_group, read_comp_units_from_section)
4422 (dwarf2_compute_name, create_cus_hash_table)
4423 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
4424 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
4425 obstack.
4426 (dw2_get_real_path): Likewise. Change argument to
4427 dwarf2_per_objfile.
4428
f8c6d152
LM
44292020-05-27 Luis Machado <luis.machado@linaro.org>
4430
4431 PR tdep/26000
4432 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
4433 for ldrd (immediate).
4434
e98d2e6d
PW
44352020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4436
4437 * command.h: Add comment giving the name of class_tui.
4438 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
4439 create the fake command for the help for class_tui.
4440
53a47a3e
TT
44412020-05-26 Tom Tromey <tromey@adacore.com>
4442
4443 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
4444 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
4445 (val_atr): New function.
4446 (value_val_atr): Use it.
4447 * ada-valprint.c (print_optional_low_bound): Change low bound
4448 handling for enums.
4449 (val_print_packed_array_elements): Don't call discrete_position.
4450 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
4451 discrete_position for enum types.
4452 * language.c (default_print_array_index): Change type.
4453 * language.h (struct language_defn) <la_print_array_index>: Add
4454 index_type parameter, change type of index_value.
4455 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
4456 (default_print_array_index): Update.
4457 * valprint.c (maybe_print_array_index): Don't call
4458 value_from_longest. Update.
4459 (value_print_array_elements): Don't call discrete_position.
4460
0bc2354b
TT
44612020-05-26 Tom Tromey <tromey@adacore.com>
4462
4463 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
4464 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
4465
1218a4bf
CDA
44662020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
4467
4468 PR gdb/13519
4469 * avr-tdep.c (avr_integer_to_address): Return data or code
4470 address accordingly to the second 'type' argument of the
4471 function.
4472
92651b1d
MW
44732020-05-25 Michael Weghorn <m.weghorn@posteo.de>
4474
4475 * infcmd.c, inferior.h: (construct_inferior_arguments):
4476 Moved function from here to gdbsupport/common-inferior.{h,cc}
4477
0a4f5f8c
TT
44782020-05-23 Tom Tromey <tom@tromey.com>
4479
4480 Revert commit eca1f90c:
4481 * NEWS: Remove entry for completion styling.
4482 * completer.c (_rl_completion_prefix_display_length): Move
4483 declaration later.
4484 (gdb_fnprint): Revert.
4485 (gdb_display_match_list_1): Likewise.
4486 * cli/cli-style.c (completion_prefix_style)
4487 (completion_difference_style, completion_suffix_style): Remove.
4488 (_initialize_cli_style): Revert.
4489 * cli/cli-style.h (completion_prefix_style)
4490 (completion_difference_style, completion_suffix_style): Don't
4491 declare.
4492
e08bd6c5
PA
44932020-05-24 Pedro Alves <palves@redhat.com>
4494
4495 * symtab.c (completion_list_add_name): Return boolean indication
4496 of whether the symbol matched.
4497 (completion_list_add_symbol): Don't try to remove C++ aliases if
4498 the symbol didn't match in the first place.
4499 * symtab.h (completion_list_add_name): Return bool.
4500
ceacbf6e
SM
45012020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
4502
4503 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
4504 type::field.
4505
26f16254
JB
45062020-05-23 Joel Brobecker <brobecker@adacore.com>
4507
4508 GDB 9.2 released.
4509
eca1f90c
TT
45102020-05-23 Tom Tromey <tom@tromey.com>
4511
4512 * NEWS: Add entry for completion styling.
4513 * completer.c (_rl_completion_prefix_display_length): Move
4514 declaration earlier.
4515 (gdb_fnprint): Use completion_style.
4516 (gdb_display_match_list_1): Likewise.
4517 * cli/cli-style.c (completion_prefix_style)
4518 (completion_difference_style, completion_suffix_style): New
4519 globals.
4520 (_initialize_cli_style): Register new globals.
4521 * cli/cli-style.h (completion_prefix_style)
4522 (completion_difference_style, completion_suffix_style): Declare.
4523
51e2cfa2
PA
45242020-05-23 Pedro Alves <palves@redhat.com>
4525
4526 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
4527 (parse_escape): Use ISDIGIT instead of isdigit.
4528 (puts_debug): Use gdb_isprint instead of isprint.
4529 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
4530 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
4531 ISSPACE instead of isspace.
4532 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
4533 instead of isspace.
4534 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
4535 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
4536 instead of isxdigit and ISDIGIT instead of isdigit.
4537
80fc5e77
SM
45382020-05-22 Simon Marchi <simon.marchi@efficios.com>
4539
4540 * gdbtypes.h (struct type) <field>: New method.
4541 (TYPE_FIELDS): Remove, replace all uses with either type::fields
4542 or type::field.
4543
3cabb6b0
SM
45442020-05-22 Simon Marchi <simon.marchi@efficios.com>
4545
4546 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
4547 (TYPE_FIELDS): Use type::fields. Change all call sites that
4548 modify the propery to use type::set_fields instead.
4549
1f704f76
SM
45502020-05-22 Simon Marchi <simon.marchi@efficios.com>
4551
4552 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
4553 type::num_fields instead.
4554
5e33d5f4
SM
45552020-05-22 Simon Marchi <simon.marchi@efficios.com>
4556
4557 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
4558 methods.
4559 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
4560 that modify the number of fields to use type::set_num_fields
4561 instead.
4562
9392ebb3
TT
45632020-05-22 Tom Tromey <tromey@adacore.com>
4564
4565 * compile/compile-object-load.h (munmap_list_free): Don't
4566 declare.
4567
7c13f4e8
AB
45682020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
4569
4570 * annotate.c (annotate_source_line): Update return type, add call
4571 to update current symtab and line.
4572 * annotate.h (annotate_source_line): Update return type, and
4573 extend header comment.
4574 * source.c (info_line_command): Check annotation_level before
4575 calling annotate_source_line.
4576 * stack.c (print_frame_info): If calling annotate_source_line
4577 returns true, then don't print any other source line information.
4578
aa370940
SM
45792020-05-21 Simon Marchi <simon.marchi@efficios.com>
4580
4581 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
4582
84d53fa9
SM
45832020-05-21 Simon Marchi <simon.marchi@efficios.com>
4584
4585 * coffread.c (patch_type): Remove NULL check before xfree.
4586 * corefile.c (set_gnutarget): Likewise.
4587 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
4588 * exec.c (build_section_table): Likewise.
4589 * remote.c (remote_target::pass_signals): Likewise.
4590 * utils.c (n_spaces): Likewise.
4591 * cli/cli-script.c (document_command): Likewise.
4592 * i386-windows-tdep.c (core_process_module_section): Likewise.
4593 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
4594
9d428aae
SM
45952020-05-20 Simon Marchi <simon.marchi@efficios.com>
4596
4597 * symfile.c (reread_symbols): Clear objfile's section_offsets
4598 vector and section indices, re-compute them by calling
4599 sym_offsets.
4600
250106a7
TT
46012020-05-20 Tom Tromey <tromey@adacore.com>
4602
4603 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 4604 (desc_one_bound, desc_index_type): Compute field name.
250106a7 4605
9a0bacfb
TV
46062020-05-20 Tom de Vries <tdevries@suse.de>
4607
4608 PR symtab/25833
4609 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
4610
7b958a48
AM
46112020-05-20 Alan Modra <amodra@gmail.com>
4612
4613 PR 25993
4614 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
4615 bfd_set_filename.
4616 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
4617 passed to bfd_set_filename.
4618 * symfile-mem.c (add_vsyscall_page): Likewise for string
4619 passed to symbol_file_add_from_memory.
4620 (symbol_file_add_from_memory): Make name param a const char* and
4621 don't strdup.
4622
c7e97679
AM
46232020-05-20 Alan Modra <amodra@gmail.com>
4624
4625 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
4626 rather than accessing bfd->filename directly.
4627 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
4628 and use bfd_section_name.
4629 * dwarf2/frame.c (decode_frame_entry): Likewise.
4630 * exec.c (exec_set_section_address): Likewise.
4631 * solib-aix.c (solib_aix_bfd_open): Likewise.
4632 * stap-probe.c (get_stap_base_address): Likewise.
4633 * symfile.c (reread_symbols): Likewise.
4634
563c591b
TT
46352020-05-19 Tom Tromey <tromey@adacore.com>
4636
4637 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
4638
f408d82c
SM
46392020-05-19 Simon Marchi <simon.marchi@efficios.com>
4640
4641 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
4642
98c59b52
PA
46432020-05-19 Pedro Alves <palves@redhat.com>
4644
4645 * NEWS (set exec-file-mismatch): Adjust entry.
4646 * exec.c: Include "build-id.h".
4647 (validate_exec_file): Try to match build IDs instead of filenames.
4648 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
4649 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
4650 and pass down 'warn_if_slow'.
4651 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
4652 gdb_bfd_open_closure to pass it down.
4653 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
4654
4111f652
PA
46552020-05-19 Pedro Alves <palves@redhat.com>
4656
4657 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
4658 * target.c (target_fileio_open_1): Rename to target_fileio_open
4659 and make extern. Use bool.
4660 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
4661 (target_fileio_read_alloc_1): Adjust.
4662 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
4663 (target_fileio_open_warn_if_slow): Delete declaration.
4664
ad80db5b
PA
46652020-05-19 Pedro Alves <palves@redhat.com>
4666
4667 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
4668 Adjust all callers.
4669
1d6ce4d3
YS
46702020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
4671
4672 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
4673 whether disp is negative.
4674
9005fbbb
SM
46752020-05-19 Simon Marchi <simon.marchi@efficios.com>
4676
4677 * symfile.h (struct symfile_segment_data)
4678 <~symfile_segment_data>: Remove.
4679 <segment_info>: Change to std::vector.
4680 * symfile.c (default_symfile_segments): Update.
4681 * elfread.c (elf_symfile_segments): Update.
4682
68b888ff
SM
46832020-05-19 Simon Marchi <simon.marchi@efficios.com>
4684
4685 * symfile.h (struct symfile_segment_data) <struct segment>: New.
4686 <segments>: New.
4687 <segment_bases, segment_sizes>: Remove.
4688 * symfile.c (default_symfile_segments): Update.
4689 * elfread.c (elf_symfile_segments): Update.
4690 * remote.c (remote_target::get_offsets): Update.
4691 * solib-target.c (solib_target_relocate_section_addresses):
4692 Update.
4693
62982abd
SM
46942020-05-19 Simon Marchi <simon.marchi@efficios.com>
4695
4696 * symfile.h (struct symfile_segment_data): Initialize fields.
4697 <~symfile_segment_data>: Add.
4698 (symfile_segment_data_up): New.
4699 (struct sym_fns) <sym_segments>: Return a
4700 symfile_segment_data_up.
4701 (default_symfile_segments): Return a symfile_segment_data_up.
4702 (free_symfile_segment_data): Remove.
4703 (get_symfile_segment_data): Return a symfile_segment_data_up.
4704 * symfile.c (default_symfile_segments): Likewise.
4705 (get_symfile_segment_data): Likewise.
4706 (free_symfile_segment_data): Remove.
4707 (symfile_find_segment_sections): Update.
4708 * elfread.c (elf_symfile_segments): Return a
4709 symfile_segment_data_up.
4710 * remote.c (remote_target::get_offsets): Update.
4711 * solib-target.c (solib_target_relocate_section_addresses):
4712 Update.
4713 * symfile-debug.c (debug_sym_segments): Return a
4714 symfile_segment_data_up.
4715
7f204339
RO
47162020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4717
e52a0f1b
RO
4718 PR build/25981
4719 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
4720 Hardcode register numbers.
4721
7f204339
RO
4722 PR build/25981
4723 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
4724 procfs_find_LDT_entry): Remove.
4725 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
4726 procfs_find_LDT_entry): Remove.
4727 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
4728 Remove.
4729
7f32a4d5
PA
47302020-05-17 Pedro Alves <palves@redhat.com>
4731 Andrew Burgess <andrew.burgess@embecosm.com>
4732 Keno Fischer <keno@juliacomputing.com>
4733
4734 PR gdb/25741
4735 * breakpoint.c (build_target_condition_list): Update comments.
4736 (build_target_command_list): Update comments and skip matching
4737 locations.
4738 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
4739 a separate function. Simplify "set breakpoint auto-hw off"
4740 handling.
4741 (insert_breakpoints): Update comment.
4742 (tracepoint_locations_match): New parameter. For breakpoints,
4743 compare location types too, if the caller wants to.
4744 (handle_automatic_hardware_breakpoints): New functions.
4745 (bp_location_is_less_than): Also sort by location type and
4746 hardware breakpoint length.
4747 (update_global_location_list): Handle "set breakpoint auto-hw on"
4748 here.
4749 (update_breakpoint_locations): Ask breakpoint_locations_match to
4750 ignore location types.
4751
7d93a1e0
SM
47522020-05-16 Simon Marchi <simon.marchi@efficios.com>
4753
4754 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
4755 type::name instead.
4756
d0e39ea2
SM
47572020-05-16 Simon Marchi <simon.marchi@efficios.com>
4758
4759 * gdbtypes.h (struct type) <name, set_name>: New methods.
4760 (TYPE_CODE): Use type::name. Change all call sites used to set
4761 the name to use type::set_name instead.
4762
2dab0c7b
TT
47632020-05-16 Tom Tromey <tom@tromey.com>
4764
4765 * top.c (quit_force): Update.
4766 * infrun.c (handle_no_resumed): Update.
4767 * top.h (all_uis): New function.
4768 (ALL_UIS): Remove.
4769
59f7bd8d
SM
47702020-05-16 Simon Marchi <simon.marchi@efficios.com>
4771
4772 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
4773
9bf058f0
PA
47742020-05-16 Pedro Alves <palves@redhat.com>
4775
4776 * ia64-linux-nat.c
4777 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
4778 Declare method.
4779 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
4780
8f86ae1a
SM
47812020-05-15 Simon Marchi <simon.marchi@efficios.com>
4782
4783 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
4784 (sparc64_adi_info): Likewise.
4785
d6bc0792
TT
47862020-05-15 Tom Tromey <tom@tromey.com>
4787
4788 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
4789 block_objfile.
4790 (lookup_objfile_from_block): Remove.
4791 (lookup_symbol_in_block, lookup_symbol_in_static_block)
4792 (lookup_global_symbol): Use block_objfile.
4793 * symtab.h (lookup_objfile_from_block): Don't declare.
4794 * printcmd.c (clear_dangling_display_expressions): Use
4795 block_objfile.
4796 * parse.c (operator_check_standard): Use block_objfile.
4797
8c14c3a3
TT
47982020-05-15 Tom Tromey <tom@tromey.com>
4799
4800 * language.c (language_alloc_type_symbol): Set
4801 SYMBOL_SECTION.
4802 * symtab.c (initialize_objfile_symbol): Remove.
4803 (allocate_symbol): Remove.
4804 (allocate_template_symbol): Remove.
4805 * dwarf2/read.c (fixup_go_packaging): Use "new".
4806 (new_symbol): Use "new".
4807 (read_variable): Don't call initialize_objfile_symbol. Use
4808 "new".
4809 (read_func_scope): Use "new".
4810 * xcoffread.c (process_xcoff_symbol): Don't call
4811 initialize_objfile_symbol.
4812 (SYMBOL_DUP): Remove.
4813 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
4814 "new".
4815 * symtab.h (allocate_symbol, initialize_objfile_symbol)
4816 (allocate_template_symbol): Don't declare.
4817 (struct symbol): Add copy constructor. Change defaults.
4818 * jit.c (finalize_symtab): Use "new".
4819 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
4820 Use "new".
4821 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
4822 (common_block_end): Use "new".
4823 * mdebugread.c (parse_symbol): Use "new".
4824 (new_symbol): Likewise.
4825
5b4a1a8d
PW
48262020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4827
4828 * NEWS: Mention changes to help and apropos.
4829
57b4f16e
PW
48302020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4831
4832 * command.h (enum command_class): Improve comments, document
4833 that class_alias is for user-defined aliases, give the class
4834 name for each class, remove unused class_xdb.
4835 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
4836 * breakpoint.c (_initialize_breakpoint): Replace class_alias
4837 by a precise class.
4838 * infcmd.c (_initialize_infcmd): Likewise.
4839 * reverse.c (_initialize_reverse): Likewise.
4840 * stack.c (_initialize_stack): Likewise.
4841 * symfile.c (_initialize_symfile): Likewise.
4842 * tracepoint.c (_initialize_tracepoint): Likewise.
4843
7c05caf7
PW
48442020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4845
4846 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
4847 when their aliased command is traversed.
4848 (help_cmd): Add fput_command_names_styled call to
4849 output command name and aliases when command has an alias.
4850
3b3aaacb
PW
48512020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4852
4853 * cli/cli-decode.h (help_cmd_list): Remove declaration.
4854 * cli/cli-decode.c (help_cmd_list): Declare as static,
4855 remove prefix argument, use bool for recurse arg, rework to show the aliases of
4856 a command together with the command.
4857 (fput_command_name_styled, fput_command_names_styled): New functions.
4858 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
4859 fput_command_name_styled.
4860 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
4861 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
4862
7aa1b46f
PW
48632020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4864
4865 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
4866 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
4867 * command.h (cmd_show_list): Likewise.
4868 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
4869 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
4870
89bcba74
PW
48712020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4872
4873 * unittests/command-def-selftests.c (traverse_command_structure):
4874 Verify all commands of a list have the same prefix command and
4875 that only the top cmdlist commands have a null prefix.
4876
3f4d92eb
PW
48772020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4878
4879 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
4880 as prefix, not one of its aliases.
4881 (set_cmd_prefix): Remove.
4882 (do_add_cmd): Centralize the setting of the prefix of a command, when
4883 command is defined after its full chain of prefix commands.
4884 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
4885 (add_setshow_cmd_full): Likewise.
4886 (update_prefix_field_of_prefixed_commands): New function.
4887 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
4888 update_prefix_field_of_prefixed_commands.
4889 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
4890 addresses of remote_set_cmdlist and remote_show_cmdlist given
4891 as argument, not the address of an argument.
4892 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
4893 * gdb/remote.c (_initialize_remote): Likewise.
4894
0605465f
PW
48952020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4896
4897 * cli/cli-cmds.c (alias_command): Check for an existing alias
4898 using lookup_cmd_composition, as valid_command_p is too strict
4899 and forbids aliases that are the prefix of an existing alias
4900 or command.
4901 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
4902 command is properly recognised as a valid command.
4903
58e6ac70
PW
49042020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4905
4906 * unittests/help-doc-selftests.c: Rename to
4907 unittests/command-def-selftests.c
4908 * unittests/command-def-selftests.c (help_doc_tests): Update some
4909 comments.
4910 (command_structure_tests, traverse_command_structure): New namespace
4911 and function.
4912 (command_structure_invariants_tests): New function.
4913 (_initialize_command_def_selftests) Renamed from
4914 _initialize_help_doc_selftests, register command_structure_invariants
4915 selftest.
4916
a7b9ceb8
PW
49172020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4918
4919 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
4920 an alias of 'show'.
4921
b2188a06
JB
49222020-05-15 Joel Brobecker <brobecker@adacore.com>
4923
4924 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
4925 ada_is_fixed_point_type. Update all callers.
4926 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
4927 all callers.
4928 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
4929 Update all callers.
4930 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
4931 print_fixed_point_type. Update all callers.
4932 * ada-valprint.c (ada_value_print_num): Replace call to
4933 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
4934
a51951c2
KB
49352020-05-14 Kevin Buettner <kevinb@redhat.com>
4936
4937 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
4938 processors.
4939 (cpu_supports_bts): Add CV_AMD case.
4940
29d6859f
LM
49412020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
4942 Simon Marchi <simon.marchi@efficios.com>
4943
4944 * infrun.c (stop_all_threads): Collect multiple wait events at
4945 each pass.
4946
78134374
SM
49472020-05-14 Simon Marchi <simon.marchi@efficios.com>
4948
4949 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
4950 type::code instead.
4951
67607e24
SM
49522020-05-14 Simon Marchi <simon.marchi@efficios.com>
4953
4954 * gdbtypes.h (struct type) <code, set_code>: New methods.
4955 (TYPE_CODE): Use type::code. Change all call sites used to set
4956 the code to use type::set_code instead.
4957
a05575d3
TBA
49582020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4959 Tom de Vries <tdevries@suse.de>
4960 Pedro Alves <palves@redhat.com>
4961
4962 PR threads/25478
4963 * infrun.c (stop_all_threads): Do NOT ignore
4964 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
4965 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
4966 received.
4967 (handle_no_resumed): Remove code handling a live inferior with no
4968 threads.
4969 * remote.c (has_single_non_exited_thread): New.
4970 (remote_target::update_thread_list): Do not delete a thread if is
4971 the last thread of the process.
4972 * thread.c (thread_select): Call delete_exited_threads instead of
4973 prune_threads.
4974
6ad82919
TBA
49752020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4976
4977 * infrun.c (stop_all_threads): Enable/disable thread events of all
4978 targets. Move a debug message denoting the end of the function
4979 into the SCOPED_EXIT block.
4980
d890404b
TBA
49812020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4982
4983 * process-stratum-target.h: Include <set>.
4984 (all_non_exited_process_targets, switch_to_target_no_thread): New
4985 function declarations.
4986 * process-stratum-target.c (all_non_exited_process_targets)
4987 (switch_to_target_no_thread): New function implementations.
4988
293b3ebc
TBA
49892020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4990
4991 * infrun.c (handle_inferior_event): Extract out a piece of code
4992 into...
4993 (mark_non_executing_threads): ...this new function.
4994
7ca9b62a
TBA
49952020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4996
4997 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
4998 use.
4999
fc75c28b
TBA
50002020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5001
5002 * regcache.c (regcache_read_pc_protected): New function
5003 implementation that returns 0 if the PC cannot read via
5004 'regcache_read_pc'.
5005 * infrun.c (proceed): Call 'regcache_read_pc_protected'
5006 instead of 'regcache_read_pc'.
5007 (keep_going_pass_signal): Ditto.
5008
a89febbd
TT
50092020-05-13 Tom Tromey <tromey@adacore.com>
5010
5011 * ada-lang.c (align_value): Remove.
5012 (ada_template_to_fixed_record_type_1): Use align_up.
5013
f7e23710
TBA
50142020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5015
5016 * async-event.c: Update the copyright year.
5017 * async-event.h: Update the copyright year.
5018
02ff80c2
SM
50192020-05-12 Simon Marchi <simon.marchi@efficios.com>
5020
5021 * objfiles.h (is_addr_in_objfile,
5022 shared_objfile_contains_address_p): Return bool.
5023 * objfile.c (is_addr_in_objfile,
5024 shared_objfile_contains_address_p): Return bool.
5025
4fd6c7e8
TT
50262020-05-11 Tom Tromey <tromey@adacore.com>
5027
5028 * cli/cli-cmds.c (info_command): Restore.
5029 (_initialize_cli_cmds): Use add_prefix_command for "info".
5030 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
5031
5eb68a39
TT
50322020-05-11 Tom Tromey <tromey@adacore.com>
5033
5034 * ada-lang.c (ada_value_primitive_field): Now public.
5035 * ada-lang.h (ada_value_primitive_field): Declare.
5036 * ada-valprint.c (print_field_values): Use
5037 ada_value_primitive_field for wrapper fields.
5038
7666722f
TV
50392020-05-11 Tom de Vries <tdevries@suse.de>
5040
5041 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
5042 MODULE_DOMAIN.
5043
3ee6bb11
TV
50442020-05-11 Tom de Vries <tdevries@suse.de>
5045
5046 PR symtab/25941
5047 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
5048 with length 0, if not gdb-produced.
5049 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
5050
43434996
TV
50512020-05-09 Tom de Vries <tdevries@suse.de>
5052
5053 PR gdb/25955
5054 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
5055 calculation.
5056
2f78cffc
TT
50572020-05-09 Tom Tromey <tom@tromey.com>
5058
5059 * top.c (server_command): Now bool.
5060 * top.h (server_command): Now bool.
5061
4f7bc5ed
TT
50622020-05-08 Tom Tromey <tromey@adacore.com>
5063
5064 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
5065 already being processed.
5066
8be4b118
TT
50672020-05-08 Tom Tromey <tom@tromey.com>
5068
5069 * printcmd.c (struct display) <next>: Remove.
5070 <display>: New constructor.
5071 <exp_string>: Now a std::string.
5072 <enabled_p>: Now a bool.
5073 (display_number): Move definition earlier.
5074 (displays): Rename from display_chain. Now a std::vector.
5075 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
5076 (display_command): Update.
5077 (do_one_display, disable_display)
5078 (enable_disable_display_command, do_enable_disable_display):
5079 Update.
5080 (free_display): Remove.
5081 (clear_displays): Rewrite.
5082 (delete_display): Update.
5083 (map_display_numbers): Use function_view. Remove "data"
5084 parameter. Update.
5085 (do_delete_display): Remove.
5086 (undisplay_command): Update.
5087 (do_one_display, do_displays, disable_display)
5088 (info_display_command): Update.
5089 (do_enable_disable_display): Remove.
5090 (enable_disable_display_command)
5091 (clear_dangling_display_expressions): Update.
5092
94c93c35
TT
50932020-05-08 Tom Tromey <tom@tromey.com>
5094
5095 * symtab.c (set_symbol_cache_size)
5096 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
5097 (maintenance_print_symbol_cache_statistics): Update.
5098 * symmisc.c (print_symbol_bcache_statistics)
5099 (print_objfile_statistics, maintenance_print_objfiles)
5100 (maintenance_info_symtabs, maintenance_check_symtabs)
5101 (maintenance_expand_symtabs, maintenance_info_line_tables):
5102 Update.
5103 * symfile-debug.c (set_debug_symfile): Update.
5104 * source.c (forget_cached_source_info): Update.
5105 * python/python.c (gdbpy_progspaces): Update.
5106 * psymtab.c (maintenance_info_psymtabs): Update.
5107 * probe.c (parse_probes): Update.
5108 * linespec.c (iterate_over_all_matching_symtabs)
5109 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
5110 * guile/scm-progspace.c (gdbscm_progspaces): Update.
5111 * exec.c (exec_target::close): Update.
5112 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
5113 * breakpoint.c (print_one_breakpoint_location)
5114 (create_longjmp_master_breakpoint)
5115 (create_std_terminate_master_breakpoint): Update.
5116 * progspace.c (program_spaces): Now a std::vector.
5117 (maybe_new_address_space): Update.
5118 (add_program_space): Remove.
5119 (program_space::program_space): Update.
5120 (remove_program_space): Update.
5121 (number_of_program_spaces): Remove.
5122 (print_program_space, update_address_spaces): Update.
5123 * progspace.h (program_spaces): Change type.
5124 (ALL_PSPACES): Remove.
5125 (number_of_program_spaces): Don't declare.
5126 (struct program_space) <next>: Remove.
5127
a1fd1ac9
TT
51282020-05-08 Tom Tromey <tom@tromey.com>
5129
5130 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
5131 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
5132 (enable_break): Update.
5133 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
5134 (frv_fdpic_find_canonical_descriptor): Update.
5135 (frv_fetch_objfile_link_map): Update.
5136 * progspace.c (program_space::free_all_objfiles): Update.
5137 (program_space::solibs): New method.
5138 * progspace.h (struct program_space) <solibs>: New method.
5139 * solist.h (master_so_list): Don't declare.
5140 (ALL_SO_LIBS): Remove.
5141 * solib.h (so_list_head): Remove.
5142 (update_solib_list): Update comment.
5143 * solib.c (master_so_list): Remove.
5144 (solib_used, update_solib_list, solib_add)
5145 (info_sharedlibrary_command, clear_solib)
5146 (reload_shared_libraries_1, remove_user_added_objfile): Update.
5147
38eae084
TT
51482020-05-08 Tom Tromey <tom@tromey.com>
5149
5150 * extension.c (extension_languages): Now a std::array.
5151 (ALL_EXTENSION_LANGUAGES): Remove.
5152 (get_ext_lang_defn, get_ext_lang_of_file)
5153 (eval_ext_lang_from_control_command): Update.
5154 (finish_ext_lang_initialization)
5155 (auto_load_ext_lang_scripts_for_objfile)
5156 (ext_lang_type_printers::ext_lang_type_printers)
5157 (apply_ext_lang_type_printers)
5158 (ext_lang_type_printers::~ext_lang_type_printers)
5159 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
5160 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
5161 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
5162 (get_matching_xmethod_workers, ext_lang_colorize)
5163 (ext_lang_before_prompt): Update.
5164 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
5165
596dc4ad
TT
51662020-05-08 Tom Tromey <tom@tromey.com>
5167
5168 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
5169 overload.
5170 <swap_string, m_string>: Remove.
5171 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
5172 Update.
5173 * stabsread.c (define_symbol, read_type): Update.
5174 * linespec.c (find_linespec_symbols): Update.
5175 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
5176 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
5177 * dbxread.c (read_dbx_symtab): Update.
5178 * cp-support.h (cp_canonicalize_string_full)
5179 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
5180 Return unique_xmalloc_ptr.
5181 * cp-support.c (inspect_type): Update.
5182 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
5183 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
5184 Likewise.
5185 * c-typeprint.c (print_name_maybe_canonical): Update.
5186 * break-catch-throw.c (check_status_exception_catchpoint):
5187 Update.
5188
bf4cb9be
TV
51892020-05-08 Tom de Vries <tdevries@suse.de>
5190
5191 * infrun.c (follow_fork): Copy current_line and current_symtab to
5192 child thread.
5193
a1b68f28
SM
51942020-05-07 Simon Marchi <simon.marchi@efficios.com>
5195
5196 * async-event.c (struct async_signal_handler, struct
5197 async_event_handler): Reformat, remove typedef.
5198
98d48915
SM
51992020-05-07 Simon Marchi <simon.marchi@efficios.com>
5200
5201 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
5202 access thistype->main_type->dyn_prop_list directly.
5203
7aa91313
SM
52042020-05-07 Simon Marchi <simon.marchi@efficios.com>
5205
5206 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
5207 (remove_dyn_prop): Remove. Update all users to use
5208 type::remove_dyn_prop.
5209 * gdbtypes.c (remove_dyn_prop): Rename to...
5210 (type::remove_dyn_prop): ... this.
5211
5c54719c
SM
52122020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
5213
5214 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
5215 (add_dyn_prop): Remove. Update all users to use
5216 type::add_dyn_prop.
5217 * gdbtypes.c (add_dyn_prop): Rename to...
5218 (type::add_dyn_prop): ... this.
5219
24e99c6c
SM
52202020-05-07 Simon Marchi <simon.marchi@efficios.com>
5221
5222 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
5223 (get_dyn_prop): Remove. Update all users to use
5224 type::dyn_prop.
5225 * gdbtypes.c (get_dyn_prop): Rename to...
5226 (type::dyn_prop): ... this.
5227
0d4bf016
SM
52282020-05-06 Simon Marchi <simon.marchi@efficios.com>
5229
5230 * gdbtypes.h (struct main_type) <flag_static>: Remove.
5231
ac4a4f1c
SM
52322020-05-06 Simon Marchi <simon.marchi@efficios.com>
5233
5234 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
5235 instruction, skip it if it's there.
5236
a3bbacc1
SM
52372020-05-05 Simon Marchi <simon.marchi@efficios.com>
5238
5239 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
5240
c3236f84
SM
52412020-05-04 Simon Marchi <simon.marchi@efficios.com>
5242
5243 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
5244 * gdbtypes.c (recursive_dump_type): Remove use of
5245 TYPE_INCOMPLETE.
5246
3b6acaee
TT
52472020-05-03 Tom Tromey <tom@tromey.com>
5248
5249 * breakpoint.c (catch_command, tcatch_command): Remove.
5250 (_initialize_breakpoint): Use add_basic_prefix_cmd,
5251 add_show_prefix_cmd.
5252 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
5253 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
5254 Remove.
5255 (add_internal_problem_command): Use add_basic_prefix_cmd,
5256 add_show_prefix_cmd.
5257 * mips-tdep.c (set_mipsfpu_command): Remove.
5258 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
5259 * dwarf2/index-cache.c (set_index_cache_command): Remove.
5260 (_initialize_index_cache): Use add_basic_prefix_cmd.
5261 * memattr.c (dummy_cmd): Remove.
5262 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
5263 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
5264 (_initialize_tui_win): Use add_basic_prefix_cmd,
5265 add_show_prefix_cmd.
5266 * cli/cli-logging.c (set_logging_command): Remove.
5267 (_initialize_cli_logging): Use add_basic_prefix_cmd,
5268 add_show_prefix_cmd.
5269 (show_logging_command): Remove.
5270 * target.c (target_command): Remove.
5271 (add_target): Use add_basic_prefix_cmd.
5272
a51119cd
HD
52732020-05-02 Hannes Domani <ssbssa@yahoo.de>
5274
5275 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
5276
652fc23a 52772020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 5278
652fc23a
PW
5279 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
5280 info_command.
5281
117539e6
KR
52822020-04-30 Kamil Rytarowski <n54@gmx.com>
5283
5284 * nbsd-nat.c (nbsd_enable_proc_events)
5285 (nbsd_nat_target::post_startup_inferior): Add.
5286 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
5287 (nbsd_nat_target::update_thread_list): Rewrite.
5288 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
5289 "PTRACE_LWP_CREATE".
5290 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
5291
102e38eb 52922020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 5293
102e38eb
PW
5294 * stack.c (_initialize_stack): Remove duplicated creation
5295 of "frame" command and "f" alias.
5296
ee9d1e5f
HD
52972020-04-30 Hannes Domani <ssbssa@yahoo.de>
5298
5299 PR gdb/18706
5300 * gdbtypes.c (check_typedef): Calculate size of array of
5301 stubbed type.
5302
627c7fb8
HD
53032020-04-30 Hannes Domani <ssbssa@yahoo.de>
5304
5305 PR gdb/15559
5306 * i386-tdep.c (i386_push_dummy_call): Call
5307 i386_thiscall_push_dummy_call.
5308 (i386_thiscall_push_dummy_call): New function.
5309 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
5310 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
5311 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
5312
ffc2844e
SM
53132020-04-29 Simon Marchi <simon.marchi@efficios.com>
5314
5315 * gdbarch.sh (do_read): Add shellcheck disable directive for
5316 warning SC2162.
5317
1207375d
SM
53182020-04-29 Simon Marchi <simon.marchi@efficios.com>
5319
5320 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
5321 "referenced but not assigned" warning.
5322
9fdb2916
SM
53232020-04-29 Simon Marchi <simon.marchi@efficios.com>
5324
5325 * gdbarch.sh: Remove code that sets fallbackdefault.
5326
759cea5e
SM
53272020-04-29 Simon Marchi <simon.marchi@efficios.com>
5328
5329 * gdbarch.sh: Use shell operators && and || instead of
5330 -a and -o.
5331
cb02ab24
SM
53322020-04-29 Simon Marchi <simon.marchi@efficios.com>
5333
5334 * gdbarch.sh: Use $(...) instead of `...`.
5335
a6fc5ffc
SM
53362020-04-29 Simon Marchi <simon.marchi@efficios.com>
5337
5338 * gdbarch.sh: Use double quotes around variables.
5339
8d113d13
SM
53402020-04-29 Simon Marchi <simon.marchi@efficios.com>
5341
5342 * gdbarch.sh: Use %s with printf, instead of variables in the
5343 format string.
5344
ed6acedd
TT
53452020-04-29 Tom Tromey <tromey@adacore.com>
5346
5347 PR ada/25875:
5348 * dwarf2/read.c (update_enumeration_type_from_children): Compute
5349 type fields here.
5350 (read_enumeration_type): Call
5351 update_enumeration_type_from_children later. Update comments.
5352 (process_enumeration_scope): Don't create type fields.
5353
b68b1b58
KR
53542020-04-29 Kamil Rytarowski <n54@gmx.com>
5355
5356 * nbsd-tdep.c: Include "xml-syscall.h".
5357 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
5358
f94b2e03
KR
53592020-04-29 Kamil Rytarowski <n54@gmx.com>
5360
5361 * nbsd-nat.c: Include "sys/wait.h".
5362 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
5363 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
5364 (nbsd_nat_target::remove_exec_catchpoint)
5365 (nbsd_nat_target::set_syscall_catchpoint): Add.
5366 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
5367 (nbsd_nat_target::insert_exec_catchpoint)
5368 (nbsd_nat_target::remove_exec_catchpoint)
5369 (nbsd_nat_target::set_syscall_catchpoint): Add.
5370 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
5371 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
5372 `nbsd_get_syscall_number'.
5373
fc49bc72
TT
53742020-04-29 Tom Tromey <tom@tromey.com>
5375
5376 * stack.c (print_block_frame_labels): Remove.
5377
d642b692
HD
53782020-04-29 Hannes Domani <ssbssa@yahoo.de>
5379
5380 PR gdb/17320
5381 * ada-valprint.c (val_print_packed_array_elements): Move array
5382 end bracket to new line.
5383 (ada_val_print_string): Remove extra spaces before first array
5384 element.
5385 * c-valprint.c (c_value_print_array): Likewise.
5386 * m2-valprint.c (m2_print_array_contents): Likewise.
5387 (m2_value_print_inner): Likewise.
5388 * p-valprint.c (pascal_value_print_inner): Likewise.
5389 * valprint.c (generic_val_print_array): Likewise.
5390 (value_print_array_elements): Move first array element and array
5391 end bracket to new line.
5392
ea90f227
TV
53932020-04-29 Tom de Vries <tdevries@suse.de>
5394
5395 PR symtab/25889
5396 * linespec.c (find_method): Fix ix calculation.
5397
4498ef4f
KR
53982020-04-28 Kamil Rytarowski <n54@gmx.com>
5399
5400 * syscalls/update-netbsd.sh: New file.
5401 * syscalls/netbsd.xml: Regenerate.
5402 * data-directory/Makefile.in: Register `netbsd.xml' in
5403 `SYSCALLS_FILES'.
5404
a55e30b5
SM
54052020-04-28 Simon Marchi <simon.marchi@efficios.com>
5406
5407 * syscalls/update-freebsd.sh: Add double quotes.
5408
2b2fbab8
TT
54092020-04-28 Tom Tromey <tom@tromey.com>
5410
5411 * NEWS: Update.
5412 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
5413 (cmdpy_init): Allow class_tui.
5414
a65189c9
TV
54152020-04-28 Mark Williams <mark@myosotissp.com>
5416
5417 PR gdb/24480
5418 * dwarf2read.c: Add missing assingments to list_in_scope when
5419 start_symtab was already called.
5420
1b95cdb7
SM
54212020-04-28 Simon Marchi <simon.marchi@efficios.com>
5422
5423 PR gdb/25881
5424 * dwarf2/read.c (offset_map_type): Use
5425 gdb:hash_enum<sect_offset> as hash function.
5426
15cd93d0
TV
54272020-04-28 Tom de Vries <tdevries@suse.de>
5428
5429 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
5430 with DW_AT_signature.
5431
1eb39914
SM
54322020-04-27 Simon Marchi <simon.marchi@efficios.com>
5433
5434 * configure.ac: Remove check for fs_base/gs_base in
5435 user_regs_struct.
5436 * configure: Re-generate.
5437 * config.in: Re-generate.
5438 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
5439 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
5440 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
5441
991a3e2e
LM
54422020-04-27 Luis Machado <luis.machado@linaro.org>
5443
5444 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
5445 problematic inline frame unwinding situation.
5446 * frame.c (frame_id_computed_p): New function.
5447 * frame.h (frame_id_computed_p): New prototype.
5448
361ba0e8
TT
54492020-04-26 Tom Tromey <tom@tromey.com>
5450
5451 * command.h (enum command_class) <class_pseudo>: Remove.
5452
bc3609fd
PW
54532020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5454
5455 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
5456 and whitespace.
5457
b9771db7
KR
54582020-04-25 Kamil Rytarowski <n54@gmx.com>
5459
ec16513e
SM
5460 * inf-ptrace.c (inf_ptrace_target::wait): Remove
5461 `PT_GET_PROCESS_STATE' block.
b9771db7 5462
7151c1af
TT
54632020-04-24 Tom Tromey <tom@tromey.com>
5464
5465 * symtab.h (symbol_get_demangled_name): Don't declare.
5466 * symtab.c (symbol_get_demangled_name): Remove.
5467 (general_symbol_info::natural_name)
5468 (general_symbol_info::demangled_name): Update.
5469
906bb4c5
TT
54702020-04-24 Tom Tromey <tom@tromey.com>
5471
5472 PR rust/25025:
5473 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
5474
bcfe6157
TT
54752020-04-24 Tom Tromey <tom@tromey.com>
5476
5477 PR symtab/12707:
5478 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
5479 exists.
5480 (new_symbol): Likewise.
5481 * compile/compile-object-load.c (get_out_value_type): Use
5482 symbol_matches_search_name.
5483
f049a313
TT
54842020-04-24 Tom Tromey <tom@tromey.com>
5485
5486 * dwarf2/read.c (add_partial_symbol): Do not call
5487 compute_and_set_names.
5488
76e288d1
TT
54892020-04-24 Tom Tromey <tom@tromey.com>
5490
5491 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
5492 overload.
5493
2467f4f6
TT
54942020-04-24 Tom Tromey <tom@tromey.com>
5495
5496 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
5497 (add_psymbol_to_list): New overload. Make old overload call new
5498 one.
5499 * psympriv.h (add_psymbol_to_list): New overload.
5500
e61108c9
TT
55012020-04-24 Tom Tromey <tom@tromey.com>
5502
5503 * dwarf2/read.c (partial_die_info::read) <case
5504 DW_AT_linkage_name>: Use value_as_string.
5505 (dwarf2_string_attr): Use value_as_string.
5506 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
5507 method.
5508 * dwarf2/attribute.c (attribute::value_as_string): New method.
5509
8c87a452
TT
55102020-04-24 Tom Tromey <tom@tromey.com>
5511
5512 * symtab.c (general_symbol_info::natural_name)
5513 (general_symbol_info::demangled_name): Check for language_rust.
5514
787de330
TT
55152020-04-24 Tom Tromey <tom@tromey.com>
5516
5517 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
5518 (dwarf2_physname): ... from here.
5519 (partial_die_info::read): Add Rust "{" hack.
5520
ff985671
TT
55212020-04-24 Tom Tromey <tom@tromey.com>
5522
5523 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
5524 method.
5525 (symbol_set_demangled_name): Don't declare.
5526 * symtab.c (general_symbol_info::set_demangled_name): Rename from
5527 symbol_set_demangled_name.
5528 (general_symbol_info::set_language)
5529 (general_symbol_info::compute_and_set_names): Update.
5530 * minsyms.c (minimal_symbol_reader::install): Update.
5531 * dwarf2/read.c (new_symbol): Update.
5532
1acda803
TT
55332020-04-24 Tom Tromey <tromey@adacore.com>
5534
5535 PR python/23662:
5536 * python/py-type.c (convert_field): Handle
5537 FIELD_LOC_KIND_DWARF_BLOCK.
5538 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
5539 (typy_get_dynamic): Nw function.
5540 (type_object_getset): Add "dynamic".
5541 * NEWS: Add entry.
5542
d656f129
TT
55432020-04-24 Tom Tromey <tromey@adacore.com>
5544
5545 * ada-typeprint.c (print_choices, print_variant_part)
5546 (print_record_field_types_dynamic): New functions.
5547 (print_record_field_types): Use print_record_field_types_dynamic.
5548
7d79de9a
TT
55492020-04-24 Tom Tromey <tromey@adacore.com>
5550
5551 * dwarf2/read.c (handle_data_member_location): New overload.
5552 (dwarf2_add_field): Use it.
5553 (decode_locdesc): Add "computed" parameter. Update comment.
5554 * gdbtypes.c (is_dynamic_type_internal): Also look for
5555 FIELD_LOC_KIND_DWARF_BLOCK.
5556 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
5557 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
5558 virtual base classes.
5559 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
5560 FIELD_LOC_KIND_DWARF_BLOCK.
5561
f8e89861
TT
55622020-04-24 Tom Tromey <tromey@adacore.com>
5563
5564 * dwarf2/read.c (read_structure_type): Handle dynamic length.
5565 * gdbtypes.c (is_dynamic_type_internal): Check
5566 TYPE_HAS_DYNAMIC_LENGTH.
5567 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
5568 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
5569 New macros.
5570 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
5571 constant.
5572
9c6a1327
TT
55732020-04-24 Tom Tromey <tromey@adacore.com>
5574
5575 * dwarf2/read.c (struct variant_field): Rewrite.
5576 (struct variant_part_builder): New.
5577 (struct nextfield): Remove "variant" field. Add "offset".
5578 (struct field_info): Add "current_variant_part" and
5579 "variant_parts".
5580 (alloc_discriminant_info): Remove.
5581 (alloc_rust_variant): New function.
5582 (quirk_rust_enum): Update.
5583 (dwarf2_add_field): Set "offset" member. Don't handle
5584 DW_TAG_variant_part.
5585 (offset_map_type): New typedef.
5586 (convert_variant_range, create_one_variant)
5587 (create_one_variant_part, create_variant_parts)
5588 (add_variant_property): New functions.
5589 (dwarf2_attach_fields_to_type): Call add_variant_property.
5590 (read_structure_type): Don't handle DW_TAG_variant_part.
5591 (handle_variant_part, handle_variant): New functions.
5592 (handle_struct_member_die): Use them.
5593 (process_structure_scope): Don't handle variant parts.
5594 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
5595 (struct discriminant_info): Remove.
5596 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
5597 (struct main_type) <flag_discriminated_union>: Remove.
5598 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
5599 (rust_enum_variant): Return int. Remove "contents". Rewrite.
5600 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
5601 Update.
5602 * valops.c (value_union_variant): Remove.
5603 * value.h (value_union_variant): Don't declare.
5604
b249d2c2
TT
56052020-04-24 Tom Tromey <tromey@adacore.com>
5606
5607 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
5608 (ada_value_primitive_packed_val): Update.
5609 * ada-valprint.c (ada_value_print_1): Update.
5610 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
5611 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
5612 just an address. Use evaluate_for_locexpr_baton.
5613 (dwarf2_evaluate_property): Update.
5614 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
5615 array_view.
5616 * findvar.c (default_read_var_value): Update.
5617 * gdbtypes.c (compute_variant_fields_inner)
5618 (resolve_dynamic_type_internal): Update.
5619 (resolve_dynamic_type): Change type of valaddr parameter.
5620 * gdbtypes.h (resolve_dynamic_type): Update.
5621 * valarith.c (value_subscripted_rvalue): Update.
5622 * value.c (value_from_contents_and_address): Update.
5623
61122aa9
TT
56242020-04-24 Tom Tromey <tromey@adacore.com>
5625
5626 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
5627 "push_initial_value" parameter.
5628 (dwarf2_evaluate_property): Likewise.
5629 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
5630
ef83a141
TT
56312020-04-24 Tom Tromey <tromey@adacore.com>
5632
5633 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
5634 (variant::matches, compute_variant_fields_recurse)
5635 (compute_variant_fields_inner, compute_variant_fields): New
5636 functions.
5637 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
5638 Use resolved_type after type is made.
5639 (operator==): Add new cases.
5640 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
5641 (struct discriminant_range, struct variant, struct variant_part):
5642 New.
5643 (union dynamic_prop_data) <variant_parts, original_type>: New
5644 members.
5645 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
5646 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
5647 constants.
5648 * value.c (unpack_bits_as_long): Now public.
5649 * value.h (unpack_bits_as_long): Declare.
5650
675127ec
TT
56512020-04-24 Tom Tromey <tromey@adacore.com>
5652
5653 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
5654 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
5655
9852ceef
HD
56562020-04-24 Hannes Domani <ssbssa@yahoo.de>
5657
5658 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
5659
7632c6ce
KR
56602020-04-24 Kamil Rytarowski <n54@gmx.com>
5661
5662 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
5663 (remove_fork_catchpoint, post_startup_inferior)
5664 (post_attach): Move...
5665 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
5666 (remove_fork_catchpoint, post_startup_inferior)
5667 (post_attach): ...here.
5668 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
5669 (remove_fork_catchpoint, post_startup_inferior)
5670 (post_attach): Move...
5671 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
5672 (remove_fork_catchpoint, post_startup_inferior)
5673 (post_attach): ...here.
5674
7be2bb4f
TT
56752020-04-24 Tom Tromey <tromey@adacore.com>
5676
5677 * nat/windows-nat.h (struct windows_thread_info)
5678 <pc_adjusted>: New member.
5679 * windows-nat.c (windows_fetch_one_register): Check
5680 pc_adjusted.
5681 (windows_nat_target::get_windows_debug_event)
5682 (windows_nat_target::wait): Set pc_adjusted.
5683
f80cb3b4
TV
56842020-04-24 Tom de Vries <tdevries@suse.de>
5685
5686 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
5687 Run gdb-add-index inside temp dir.
5688
29514b87
TT
56892020-04-23 Tom Tromey <tromey@adacore.com>
5690
5691 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
5692 in loop.
5693
5939967b
LM
56942020-04-23 Luis Machado <luis.machado@linaro.org>
5695
5696 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
5697 get_frame_register instead of gdbarch_unwind_pc.
5698
70bc38f5
TV
56992020-04-23 Tom de Vries <tdevries@suse.de>
5700
5701 * symtab.c (lookup_global_symbol): Prefer def over decl.
5702
de82891c
TV
57032020-04-23 Tom de Vries <tdevries@suse.de>
5704
5705 PR symtab/25807
5706 * block.c (best_symbol, better_symbol): Promote to external.
5707 * block.h (best_symbol, better_symbol): Declare.
5708 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
5709 decl.
5710
ecc6c606
TT
57112020-04-23 Tom Tromey <tromey@adacore.com>
5712
5713 PR ada/25837:
5714 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
5715 "const char *", not a "const std::string &".
5716 <name_and_matcher::operator==>: Update.
5717 * unittests/lookup_name_info-selftests.c: Change type of
5718 "result".
5719
740480b8
TT
57202020-04-23 Tom Tromey <tom@tromey.com>
5721
5722 * inferior.h (iterate_over_inferiors): Don't declare.
5723 * inferior.c (iterate_over_inferiors): Remove.
5724 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
5725 Remove.
5726 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
5727 use iterate_over_inferiors.
5728 (darwin_resume_inferior_it)
5729 (struct resume_inferior_threads_param)
5730 (darwin_resume_inferior_threads_it): Remove.
5731 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
5732
ae3ab1f0
TV
57332020-04-23 Tom de Vries <tdevries@suse.de>
5734
5735 * blockframe.c (find_pc_partial_function): Use
5736 find_pc_sect_compunit_symtab rather than
5737 objfile->sf->qf->find_pc_sect_compunit_symtab.
5738
317d2668
TV
57392020-04-22 Tom de Vries <tdevries@suse.de>
5740
5741 PR symtab/25764
5742 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
5743 in psymtabs.
5744
eea9e357
TV
57452020-04-22 Tom de Vries <tdevries@suse.de>
5746
5747 PR symtab/25801
5748 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
5749 symtabs.
5750
3d5afab3
TV
57512020-04-22 Tom de Vries <tdevries@suse.de>
5752
5753 PR symtab/25700
5754 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
5755 CU if already created.
5756
d43b7a2d
TBA
57572020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5758
5759 * infrun.c (displaced_step_fixup): Switch to the event_thread
5760 before calling displaced_step_restore, not after.
5761
d89edf9b
MM
57622020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5763
5764 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
5765 its inferior is not recorded by us.
5766 (record_btrace_target_open): Replace call to
5767 all_non_exited_threads () with call to current_inferior
5768 ()->non_exited_threads ().
5769 (record_btrace_target::stop_recording): Likewise.
5770 (record_btrace_target::close): Likewise.
5771 (record_btrace_target::wait): Likewise.
5772 (record_btrace_target::record_stop_replaying): Likewise.
5773
5897fd49
MM
57742020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5775
5776 * btrace.c (btrace_enable): Throw an error on double enables and
5777 when enabling recording fails.
5778 (btrace_disable): Throw an error if the thread is not recorded.
5779
1a476b6d
MM
57802020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5781
5782 * record-btrace.c (record_btrace_target::fetch_registers): Forward
5783 request if we do not have a thread_info.
5784
4778a5f8
TV
57852020-04-21 Tom de Vries <tdevries@suse.de>
5786
5787 PR gdb/25471
5788 * thread.c
5789 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
5790 exception in get_frame_id.
5791
0fa7617d
TT
57922020-04-20 Tom Tromey <tromey@adacore.com>
5793
5794 * python/python.c (struct gdbpy_event): Mark move constructor as
5795 noexcept.
5796 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
5797 constructor as noexcept.
5798 * completer.h (struct completion_result): Mark move constructor as
5799 noexcept.
5800 * completer.c (completion_result::completion_result): Use
5801 initialization style. Don't call reset_match_list.
5802
ad23bda0
MS
58032020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
5804
5805 * MAINTAINERS (Write After Approval): Add myself.
5806
45e1f031
TT
58072020-04-18 Tom Tromey <tom@tromey.com>
5808
5809 * windows-tdep.c (init_w32_command_list)
5810 (w32_prefix_command_valid): Restore.
5811 (_initialize_windows_tdep): Call init_w32_command_list.
5812
08feed99
TT
58132020-04-18 Tom Tromey <tom@tromey.com>
5814
5815 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
5816 * value.c (value_fn_field): Update.
5817 * valops.c (find_function_in_inferior)
5818 (value_allocate_space_in_inferior): Update.
5819 * tui/tui-winsource.c (tui_update_source_windows_with_line):
5820 Update.
5821 * tui/tui-source.c (tui_source_window::set_contents): Update.
5822 * symtab.c (lookup_global_or_static_symbol)
5823 (find_function_start_sal_1, skip_prologue_sal)
5824 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
5825 * symmisc.c (dump_msymbols, dump_symtab_1)
5826 (maintenance_print_one_line_table): Update.
5827 * symfile.c (init_entry_point_info, section_is_mapped)
5828 (list_overlays_command, simple_read_overlay_table)
5829 (simple_overlay_update_1): Update.
5830 * stap-probe.c (handle_stap_probe): Update.
5831 * stabsread.c (dbx_init_float_type, define_symbol)
5832 (read_one_struct_field, read_enum_type, read_range_type): Update.
5833 * source.c (info_line_command): Update.
5834 * python/python.c (gdbpy_source_objfile_script)
5835 (gdbpy_execute_objfile_script): Update.
5836 * python/py-type.c (save_objfile_types): Update.
5837 * python/py-objfile.c (py_free_objfile): Update.
5838 * python/py-inferior.c (python_new_objfile): Update.
5839 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
5840 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
5841 (maintenance_check_psymtabs): Update.
5842 * printcmd.c (info_address_command): Update.
5843 * objfiles.h (struct objfile) <arch>: New method, from
5844 get_objfile_arch.
5845 (get_objfile_arch): Don't declare.
5846 * objfiles.c (get_objfile_arch): Remove.
5847 (filter_overlapping_sections): Update.
5848 * minsyms.c (msymbol_is_function): Update.
5849 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
5850 (output_nondebug_symbol): Update.
5851 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
5852 (mdebug_expand_psymtab): Update.
5853 * machoread.c (macho_add_oso_symfile): Update.
5854 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
5855 Update.
5856 * linux-fork.c (checkpoint_command): Update.
5857 * linespec.c (convert_linespec_to_sals): Update.
5858 * jit.c (finalize_symtab): Update.
5859 * infrun.c (insert_exception_resume_from_probe): Update.
5860 * ia64-tdep.c (ia64_find_unwind_table): Update.
5861 * hppa-tdep.c (internalize_unwinds): Update.
5862 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
5863 Update.
5864 * gcore.c (call_target_sbrk): Update.
5865 * elfread.c (record_minimal_symbol, elf_symtab_read)
5866 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
5867 (elf_gnu_ifunc_resolve_by_got): Update.
5868 * dwarf2/read.c (create_addrmap_from_index)
5869 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
5870 (read_debug_names_from_section)
5871 (process_psymtab_comp_unit_reader, add_partial_symbol)
5872 (add_partial_subprogram, process_full_comp_unit)
5873 (read_file_scope, read_func_scope, read_lexical_block_scope)
5874 (read_call_site_scope, dwarf2_ranges_read)
5875 (dwarf2_record_block_ranges, dwarf2_add_field)
5876 (mark_common_block_symbol_computed, read_tag_pointer_type)
5877 (read_tag_string_type, dwarf2_init_float_type)
5878 (dwarf2_init_complex_target_type, read_base_type)
5879 (partial_die_info::read, partial_die_info::read)
5880 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
5881 (dwarf2_fetch_die_loc_sect_off): Update.
5882 * dwarf2/loc.c (dwarf2_find_location_expression)
5883 (class dwarf_evaluate_loc_desc, rw_pieced_value)
5884 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
5885 (dwarf2_loc_desc_get_symbol_read_needs)
5886 (locexpr_describe_location_piece, locexpr_describe_location_1)
5887 (loclist_describe_location): Update.
5888 * dwarf2/index-write.c (write_debug_names): Update.
5889 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
5890 * dtrace-probe.c (dtrace_process_dof): Update.
5891 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
5892 (process_one_symbol): Update.
5893 * ctfread.c (ctf_init_float_type, read_base_type): Update.
5894 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
5895 (coff_read_enum_type): Update.
5896 * cli/cli-cmds.c (edit_command, list_command): Update.
5897 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
5898 * breakpoint.c (create_overlay_event_breakpoint)
5899 (create_longjmp_master_breakpoint)
5900 (create_std_terminate_master_breakpoint)
5901 (create_exception_master_breakpoint, get_sal_arch): Update.
5902 * block.c (block_gdbarch): Update.
5903 * annotate.c (annotate_source_line): Update.
5904
0743fc83
TT
59052020-04-17 Tom Tromey <tromey@adacore.com>
5906
5907 * auto-load.c (show_auto_load_cmd): Remove.
5908 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
5909 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
5910 (maintenance_print_arc_command): Remove.
5911 * tui/tui-win.c (tui_command): Remove.
5912 (tui_get_cmd_list): Use add_basic_prefix_cmd.
5913 * tui/tui-layout.c (tui_layout_command): Remove.
5914 (_initialize_tui_layout): Use add_basic_prefix_cmd.
5915 * python/python.c (user_set_python, user_show_python): Remove.
5916 (_initialize_python): Use add_basic_prefix_cmd,
5917 add_show_prefix_cmd.
5918 * guile/guile.c (set_guile_command, show_guile_command): Remove.
5919 (install_gdb_commands): Use add_basic_prefix_cmd,
5920 add_show_prefix_cmd.
5921 (info_guile_command): Remove.
5922 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
5923 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
5924 add_show_prefix_cmd.
5925 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
5926 Remove do_set and do_show parameters.
5927 * cli/cli-style.c (set_style, show_style): Remove.
5928 (_initialize_cli_style): Use add_basic_prefix_cmd,
5929 add_show_prefix_cmd.
5930 (cli_style_option::add_setshow_commands): Remove do_set and
5931 do_show parameters.
5932 (cli_style_option::add_setshow_commands): Use
5933 add_basic_prefix_cmd, add_show_prefix_cmd.
5934 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
5935 (set_style_name): Remove.
5936 * cli/cli-dump.c (dump_command, append_command): Remove.
5937 (srec_dump_command, ihex_dump_command, verilog_dump_command)
5938 (tekhex_dump_command, binary_dump_command)
5939 (binary_append_command): Remove.
5940 (_initialize_cli_dump): Use add_basic_prefix_cmd.
5941 * windows-tdep.c (w32_prefix_command_valid): Remove global.
5942 (init_w32_command_list): Remove; move into ...
5943 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
5944 * valprint.c (set_print, show_print, set_print_raw)
5945 (show_print_raw): Remove.
5946 (_initialize_valprint): Use add_basic_prefix_cmd,
5947 add_show_prefix_cmd.
5948 * typeprint.c (set_print_type, show_print_type): Remove.
5949 (_initialize_typeprint): Use add_basic_prefix_cmd,
5950 add_show_prefix_cmd.
5951 * record.c (set_record_command, show_record_command): Remove.
5952 (_initialize_record): Use add_basic_prefix_cmd,
5953 add_show_prefix_cmd.
5954 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
5955 add_show_prefix_cmd.
5956 (info_command, show_command, set_debug, show_debug): Remove.
5957 * top.h (set_history, show_history): Don't declare.
5958 * top.c (set_history, show_history): Remove.
5959 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
5960 (unset_tdesc_cmd): Remove.
5961 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
5962 add_show_prefix_cmd.
5963 * symtab.c (info_module_command): Remove.
5964 (_initialize_symtab): Use add_basic_prefix_cmd.
5965 * symfile.c (overlay_command): Remove.
5966 (_initialize_symfile): Use add_basic_prefix_cmd.
5967 * sparc64-tdep.c (info_adi_command): Remove.
5968 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
5969 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
5970 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
5971 add_show_prefix_cmd.
5972 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
5973 (_initialize_serial): Use add_basic_prefix_cmd,
5974 add_show_prefix_cmd.
5975 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
5976 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
5977 add_show_prefix_cmd.
5978 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
5979 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
5980 add_show_prefix_cmd.
5981 * riscv-tdep.c (show_riscv_command, set_riscv_command)
5982 (show_debug_riscv_command, set_debug_riscv_command): Remove.
5983 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
5984 add_show_prefix_cmd.
5985 * remote.c (remote_command, set_remote_cmd): Remove.
5986 (_initialize_remote): Use add_basic_prefix_cmd.
5987 * record-full.c (set_record_full_command)
5988 (show_record_full_command): Remove.
5989 (_initialize_record_full): Use add_basic_prefix_cmd,
5990 add_show_prefix_cmd.
5991 * record-btrace.c (cmd_set_record_btrace)
5992 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
5993 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
5994 (cmd_show_record_btrace_pt): Remove.
5995 (_initialize_record_btrace): Use add_basic_prefix_cmd,
5996 add_show_prefix_cmd.
5997 * ravenscar-thread.c (set_ravenscar_command)
5998 (show_ravenscar_command): Remove.
5999 (_initialize_ravenscar): Use add_basic_prefix_cmd,
6000 add_show_prefix_cmd.
6001 * mips-tdep.c (show_mips_command, set_mips_command)
6002 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
6003 add_show_prefix_cmd.
6004 * maint.c (maintenance_command, maintenance_info_command)
6005 (maintenance_check_command, maintenance_print_command)
6006 (maintenance_set_cmd, maintenance_show_cmd): Remove.
6007 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
6008 add_show_prefix_cmd.
6009 (show_per_command_cmd): Remove.
6010 * maint-test-settings.c (maintenance_set_test_settings_cmd):
6011 Remove.
6012 (maintenance_show_test_settings_cmd): Remove.
6013 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
6014 add_show_prefix_cmd.
6015 * maint-test-options.c (maintenance_test_options_command):
6016 Remove.
6017 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
6018 * macrocmd.c (macro_command): Remove
6019 (_initialize_macrocmd): Use add_basic_prefix_cmd.
6020 * language.c (set_check, show_check): Remove.
6021 (_initialize_language): Use add_basic_prefix_cmd,
6022 add_show_prefix_cmd.
6023 * infcmd.c (unset_command): Remove.
6024 (_initialize_infcmd): Use add_basic_prefix_cmd.
6025 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
6026 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
6027 add_show_prefix_cmd.
6028 * go32-nat.c (go32_info_dos_command): Remove.
6029 (_initialize_go32_nat): Use add_basic_prefix_cmd.
6030 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
6031 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
6032 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
6033 (_initialize_frame): Use add_basic_prefix_cmd,
6034 add_show_prefix_cmd.
6035 * dcache.c (set_dcache_command, show_dcache_command): Remove.
6036 (_initialize_dcache): Use add_basic_prefix_cmd,
6037 add_show_prefix_cmd.
6038 * cp-support.c (maint_cplus_command): Remove.
6039 (_initialize_cp_support): Use add_basic_prefix_cmd.
6040 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
6041 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
6042 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
6043 add_basic_prefix_cmd, add_show_prefix_cmd.
6044 * breakpoint.c (save_command): Remove.
6045 (_initialize_breakpoint): Use add_basic_prefix_cmd.
6046 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
6047 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
6048 add_show_prefix_cmd.
6049 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
6050 (set_ada_command, show_ada_command): Remove.
6051 (_initialize_ada_language): Use add_basic_prefix_cmd,
6052 add_show_prefix_cmd.
6053 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
6054
3557f442
KR
60552020-04-16 Kamil Rytarowski <n54@gmx.com>
6056
6057 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
6058 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
6059
16197208
SM
60602020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6061
6062 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
6063 warning messages.
6064
00ac85d3
SM
60652020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6066
6067 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
6068 import table is not at beginning of .idata section.
6069
381ce63f
PA
60702020-04-16 Pedro Alves <palves@redhat.com>
6071
6072 * inferior.c (delete_inferior): Use delete operator directly
6073 instead of delete_program_space.
6074 * progspace.c (add_program_space): New, factored out from
6075 program_space::program_space.
6076 (remove_program_space): New, factored out from
6077 delete_program_space.
6078 (program_space::program_space): Remove intro comment. Rewrite.
6079 (program_space::~program_space): Remove intro comment. Call
6080 remove_program_space.
6081 (delete_program_space): Delete.
6082 * progspace.h (program_space::program_space): Make explicit. Move
6083 intro comment here, adjusted.
6084 (program_space::~program_space): Move intro comment here,
6085 adjusted.
6086 (delete_program_space): Remove.
6087
a010605f
TT
60882020-04-16 Tom Tromey <tromey@adacore.com>
6089
6090 * windows-nat.c (windows_nat::handle_access_violation): New
6091 function.
6092 * nat/windows-nat.h (handle_access_violation): Declare.
6093 * nat/windows-nat.c (handle_exception): Move Cygwin code to
6094 windows-nat.c. Call handle_access_violation.
6095
efba5c23
TV
60962020-04-16 Tom de Vries <tdevries@suse.de>
6097
6098 PR symtab/25791
6099 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
6100 CUs without psymtab.
6101
97ed802d
KB
61022020-04-16 Kevin Buettner <kevinb@redhat.com>
6103
6104 * python/python.c (do_start_initialization): Don't call
6105 PyEval_InitThreads for Python 3.9 and beyond.
6106
c7d64809
KR
61072020-04-15 Kamil Rytarowski <n54@gmx.com>
6108
6109 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
6110 thread functions.
6111 (obsd_nat_target::wait): Likewise.
6112
ce127a96
TT
61132020-04-15 Tom Tromey <tromey@adacore.com>
6114
6115 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
6116 (DEBUG_EXCEPT): Use debug_printf.
6117
99f1bc6a
AB
61182020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
6119
6120 * completer.c (class completion_tracker::completion_hash_entry)
6121 <hash_name>: New member function.
6122 (completion_tracker::discard_completions): New callback to hash a
6123 completion_hash_entry, pass this to htab_create_alloc.
6124
a0e9b532
JT
61252016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
6126
6127 * windows-nat.c (windows_make_so): Warn rather than stopping with
6128 an error if realpath() fails.
6129
06ca5dd4
KR
61302020-04-14 Kamil Rytarowski <n54@gmx.com>
6131
6132 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
6133 (nbsd_nat_target::info_proc): Add do_status.
6134
194d088f
TV
61352020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
6136 Tom de Vries <tdevries@suse.de>
6137
6138 PR symtab/25718
6139 * psympriv.h (struct partial_symtab::read_symtab)
6140 (struct partial_symtab::expand_psymtab)
6141 (struct partial_symtab::read_dependencies): Update comments.
6142 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
6143 read_symtab for includer.
6144 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
6145 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
6146 (struct dwarf2_include_psymtab::m_readin): Remove.
6147 (struct dwarf2_include_psymtab::includer): New member function.
6148 (dwarf2_psymtab::expand_psymtab): Assert !readin.
6149
c1a66c06
TV
61502020-04-14 Tom de Vries <tdevries@suse.de>
6151
6152 PR symtab/25720
6153 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
6154 with NULL symbol_matcher and lookup_name.
6155 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
6156 and lookup_name.
6157 * dwarf2/read.c (dw2_expand_symtabs_matching)
6158 (dw2_debug_names_expand_symtabs_matching): Same.
6159 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
6160 Make lookup_name a pointer. Update comment.
6161 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
6162 lookup_name being a pointer.
6163 * symfile.c (expand_symtabs_matching): Same.
6164 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
6165 * linespec.c (iterate_over_all_matching_symtabs): Same.
6166
400b5eca
TT
61672020-04-13 Tom Tromey <tom@tromey.com>
6168
6169 * run-on-main-thread.c: Update include.
6170 * unittests/main-thread-selftests.c: Update include.
6171 * tui/tui-win.c: Update include.
6172 * tui/tui-io.c: Update include.
6173 * tui/tui-interp.c: Update include.
6174 * tui/tui-hooks.c: Update include.
6175 * top.h: Update include.
6176 * top.c: Update include.
6177 * ser-base.c: Update include.
6178 * remote.c: Update include.
6179 * remote-notif.c: Update include.
6180 * remote-fileio.c: Update include.
6181 * record-full.c: Update include.
6182 * record-btrace.c: Update include.
6183 * python/python.c: Update include.
6184 * posix-hdep.c: Update include.
6185 * mingw-hdep.c: Update include.
6186 * mi/mi-main.c: Update include.
6187 * mi/mi-interp.c: Update include.
6188 * main.c: Update include.
6189 * linux-nat.c: Update include.
6190 * interps.c: Update include.
6191 * infrun.c: Update include.
6192 * inf-loop.c: Update include.
6193 * event-top.c: Update include.
6194 * event-loop.c: Move to ../gdbsupport/.
6195 * event-loop.h: Move to ../gdbsupport/.
6196 * async-event.h: Update include.
6197 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
6198
93b54c8e
TT
61992020-04-13 Tom Tromey <tom@tromey.com>
6200
6201 * tui/tui-win.c: Include async-event.h.
6202 * remote.c: Include async-event.h.
6203 * remote-notif.c: Include async-event.h.
6204 * record-full.c: Include async-event.h.
6205 * record-btrace.c: Include async-event.h.
6206 * infrun.c: Include async-event.h.
6207 * event-top.c: Include async-event.h.
6208 * event-loop.h: Move some declarations to async-event.h.
6209 * event-loop.c: Don't include ser-event.h or top.h. Move some
6210 code to async-event.c.
6211 * async-event.h: New file.
6212 * async-event.c: New file.
6213 * Makefile.in (COMMON_SFILES): Add async-event.c.
6214 (HFILES_NO_SRCDIR): Add async-event.h.
6215
c1cd3163
TT
62162020-04-13 Tom Tromey <tom@tromey.com>
6217
6218 * utils.c (flush_streams): New function.
6219 * event-loop.c (gdb_wait_for_event): Call flush_streams.
6220
29f2bf4f
TT
62212020-04-13 Tom Tromey <tom@tromey.com>
6222
6223 * event-loop.c (handle_file_event): Use warning, not
6224 printf_unfiltered.
6225
98029d02
TT
62262020-04-13 Tom Tromey <tom@tromey.com>
6227
6228 * event-loop.c: Include <chrono>.
6229
06cc9596
TT
62302020-04-13 Tom Tromey <tom@tromey.com>
6231
6232 * gdb_select.h: Move to ../gdbsupport/.
6233 * event-loop.c: Update include path.
6234 * top.c: Update include path.
6235 * ser-base.c: Update include path.
6236 * ui-file.c: Update include path.
6237 * ser-tcp.c: Update include path.
6238 * guile/scm-ports.c: Update include path.
6239 * posix-hdep.c: Update include path.
6240 * ser-unix.c: Update include path.
6241 * gdb_usleep.c: Update include path.
6242 * mingw-hdep.c: Update include path.
6243 * inflow.c: Update include path.
6244 * infrun.c: Update include path.
6245 * event-top.c: Update include path.
6246
8ae8e197
TT
62472020-04-13 Tom Tromey <tom@tromey.com>
6248
6249 * configure: Rebuild.
6250 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
6251
58cf28e8
TT
62522020-04-13 Tom Tromey <tom@tromey.com>
6253
6254 * event-loop.h (start_event_loop): Don't declare.
6255 * event-loop.c (start_event_loop): Move...
6256 * main.c (start_event_loop): ...here. Now static.
6257
b7f999ae
SDJ
62582020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
6259
6260 * MAINTAINERS: Update my email address.
6261
1085dfd4
KR
62622020-04-12 Kamil Rytarowski <n54@gmx.com>
6263
6264 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
6265 IP_ALL.
6266
49d1d1f5
KR
62672020-04-12 Kamil Rytarowski <n54@gmx.com>
6268
6269 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 6270 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 6271
b4848d2a
KR
62722020-04-12 Kamil Rytarowski <n54@gmx.com>
6273
6274 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 6275 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 6276
51c133d5
KR
62772020-04-12 Kamil Rytarowski <n54@gmx.com>
6278
6279 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
6280
54b8cbd0
KR
62812020-04-11 Kamil Rytarowski <n54@gmx.com>
6282
6283 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
6284 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
6285 (nbsd_nat_target::info_proc): New functions.
6286 * nbsd-nat.c (kinfo_get_vmmap): New function.
6287 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
6288 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
6289 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
6290 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
6291 functions.
6292 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
6293 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
6294 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
6295 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
6296 (KINFO_VME_FLAG_GROWS_DOWN): New.
6297
cf83625d
AS
62982020-04-10 Artur Shepilko <nomadbyte@gmail.com>
6299
6300 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
6301 bit shift.
6302
0c4311ab
TT
63032020-04-10 Tom Tromey <tromey@adacore.com>
6304
6305 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
6306
3e65b3e9
TT
63072020-04-10 Tom Tromey <tromey@adacore.com>
6308
6309 * symtab.c (get_symbol_address, get_msymbol_address): Skip
6310 separate debug files.
6311
13302e95
HD
63122020-04-10 Hannes Domani <ssbssa@yahoo.de>
6313
6314 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6315 Move to...
6316 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6317 ... here.
6318 * windows-nat.c (windows_nat_target::get_windows_debug_event):
6319 Check for STATUS_WX86_BREAKPOINT.
6320 (windows_nat_target::wait): Same.
6321
bdfc1e8a
TV
63222020-04-10 Tom de Vries <tdevries@suse.de>
6323
6324 PR cli/25808
6325 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
6326
f4460aec
SM
63272020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
6328
6329 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
6330 (Write After Approval): Remove Tom de Vries.
6331
a25198bb
BE
63322020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
6333
6334 revert partially:
6335 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6336
aac66a4c
SM
6337 * buildsym.c (record_line): Fix undefined behavior and preserve
6338 lines at eof.
a25198bb 6339
206c98a6
KR
63402020-04-09 Kamil Rytarowski <n54@gmx.com>
6341
6342 * auxv.h (svr4_auxv_parse): New.
6343 * auxv.c (default_auxv_parse): Split into default_auxv_parse
6344 and generic_auxv_parse.
6345 (svr4_auxv_parse): Add.
6346 * obsd-tdep.c: Include "auxv.h".
6347 (obsd_auxv_parse): Remove.
6348 (obsd_init_abi): Remove comment.
6349 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
6350 from `obsd_auxv_parse' to `svr4_auxv_parse'.
6351 * nbsd-tdep.c: Include "auxv.h".
6352 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
6353
71fbdbaf
TT
63542020-04-08 Tom Tromey <tromey@adacore.com>
6355
6356 * nat/windows-nat.h (last_wait_event): Don't declare.
6357 (wait_for_debug_event): Update comment.
6358 * nat/windows-nat.c (last_wait_event): Now static.
6359
2c1d95e8
TT
63602020-04-08 Tom Tromey <tromey@adacore.com>
6361
6362 * windows-nat.c (wait_for_debug_event): Move to
6363 nat/windows-nat.c.
6364 * nat/windows-nat.h (wait_for_debug_event): Declare.
6365 * nat/windows-nat.c (wait_for_debug_event): Move from
6366 windows-nat.c. No longer static.
6367
d2977bc4
TT
63682020-04-08 Tom Tromey <tromey@adacore.com>
6369
6370 * windows-nat.c (get_windows_debug_event): Use
6371 fetch_pending_stop.
6372 * nat/windows-nat.h (fetch_pending_stop): Declare.
6373 * nat/windows-nat.c (fetch_pending_stop): New function.
6374
e758e19c
TT
63752020-04-08 Tom Tromey <tromey@adacore.com>
6376
6377 * windows-nat.c (windows_continue): Use matching_pending_stop and
6378 continue_last_debug_event.
6379 * nat/windows-nat.h (matching_pending_stop)
6380 (continue_last_debug_event): Declare.
6381 * nat/windows-nat.c (DEBUG_EVENTS): New define.
6382 (matching_pending_stop, continue_last_debug_event): New
6383 functions.
6384
8d30e395
TT
63852020-04-08 Tom Tromey <tromey@adacore.com>
6386
6387 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
6388 (handle_exception_result): Move to nat/windows-nat.h.
6389 (DEBUG_EXCEPTION_SIMPLE): Remove.
6390 (windows_nat::handle_ms_vc_exception): New function.
6391 (handle_exception): Move to nat/windows-nat.c.
6392 (get_windows_debug_event): Update.
6393 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
6394 nat/windows-nat.c.
6395 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
6396 (handle_exception_result): Move from windows-nat.c.
6397 (handle_exception): Declare.
6398 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
6399 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
6400 windows-nat.c.
6401
29de418d
TT
64022020-04-08 Tom Tromey <tromey@adacore.com>
6403
6404 * windows-nat.c (exception_count, event_count): Remove.
6405 (handle_exception, get_windows_debug_event)
6406 (do_initial_windows_stuff): Update.
6407
a816ba18
TT
64082020-04-08 Tom Tromey <tromey@adacore.com>
6409
6410 * windows-nat.c (windows_nat::handle_load_dll)
6411 (windows_nat::handle_unload_dll): Rename. No longer static.
6412 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
6413 Declare.
6414
a00caa12
TT
64152020-04-08 Tom Tromey <tromey@adacore.com>
6416
6417 * complaints.h (stop_whining): Declare at top-level.
6418 (complaint): Don't declare stop_whining.
6419
d41b524f
TT
64202020-04-08 Tom Tromey <tromey@adacore.com>
6421
6422 * windows-nat.c (windows_nat::handle_output_debug_string):
6423 Rename. No longer static.
6424 * nat/windows-nat.h (handle_output_debug_string): Declare.
6425
3c76026d
TT
64262020-04-08 Tom Tromey <tromey@adacore.com>
6427
6428 * windows-nat.c (current_process_handle, current_process_id)
6429 (main_thread_id, last_sig, current_event, last_wait_event)
6430 (current_windows_thread, desired_stop_thread_id, pending_stops)
6431 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
6432 (display_selectors, fake_create_process)
6433 (get_windows_debug_event): Update.
6434 * nat/windows-nat.h (current_process_handle, current_process_id)
6435 (main_thread_id, last_sig, current_event, last_wait_event)
6436 (current_windows_thread, desired_stop_thread_id, pending_stops)
6437 (struct pending_stop, siginfo_er): Move from windows-nat.c.
6438 * nat/windows-nat.c (current_process_handle, current_process_id)
6439 (main_thread_id, last_sig, current_event, last_wait_event)
6440 (current_windows_thread, desired_stop_thread_id, pending_stops)
6441 (siginfo_er): New globals. Move from windows-nat.c.
6442
9d8679cc
TT
64432020-04-08 Tom Tromey <tromey@adacore.com>
6444
6445 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
6446 (handle_load_dll): Update.
6447 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
6448
28688adf
TT
64492020-04-08 Tom Tromey <tromey@adacore.com>
6450
6451 * windows-nat.c (enum thread_disposition_type): Move to
6452 nat/windows-nat.h.
6453 (windows_nat::thread_rec): Rename from thread_rec. No longer
6454 static.
6455 (windows_add_thread, windows_nat_target::fetch_registers)
6456 (windows_nat_target::store_registers, handle_exception)
6457 (windows_nat_target::resume, get_windows_debug_event)
6458 (windows_nat_target::get_tib_address)
6459 (windows_nat_target::thread_name)
6460 (windows_nat_target::thread_alive): Update.
6461 * nat/windows-nat.h (enum thread_disposition_type): Move from
6462 windows-nat.c.
6463 (thread_rec): Declare.
6464
4834dad0
TT
64652020-04-08 Tom Tromey <tromey@adacore.com>
6466
6467 * windows-nat.c: Add "using namespace".
6468 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
6469 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
6470
65bafd5b
TT
64712020-04-08 Tom Tromey <tromey@adacore.com>
6472
6473 * nat/windows-nat.h (struct windows_thread_info): Declare
6474 destructor.
6475 * nat/windows-nat.c (~windows_thread_info): New.
6476
0a4afda3
TT
64772020-04-08 Tom Tromey <tromey@adacore.com>
6478
6479 PR gdb/22992
6480 * windows-nat.c (current_event): Update comment.
6481 (last_wait_event, desired_stop_thread_id): New globals.
6482 (struct pending_stop): New.
6483 (pending_stops): New global.
6484 (windows_nat_target) <stopped_by_sw_breakpoint>
6485 <supports_stopped_by_sw_breakpoint>: New methods.
6486 (windows_fetch_one_register): Add assertions. Adjust PC.
6487 (windows_continue): Handle pending stops. Suspend other threads
6488 when stepping. Use last_wait_event
6489 (wait_for_debug_event): New function.
6490 (get_windows_debug_event): Use wait_for_debug_event. Handle
6491 pending stops. Queue spurious stops.
6492 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
6493 (windows_nat_target::kill): Use wait_for_debug_event.
6494 * nat/windows-nat.h (struct windows_thread_info)
6495 <stopped_at_software_breakpoint>: New field.
6496 * nat/windows-nat.c (windows_thread_info::resume): Clear
6497 stopped_at_software_breakpoint.
6498
8e61ebec
TT
64992020-04-08 Tom Tromey <tromey@adacore.com>
6500
6501 * windows-nat.c (enum thread_disposition_type): New.
6502 (thread_rec): Replace "get_context" parameter with "disposition";
6503 change type.
6504 (windows_add_thread, windows_nat_target::fetch_registers)
6505 (windows_nat_target::store_registers, handle_exception)
6506 (windows_nat_target::resume, get_windows_debug_event)
6507 (windows_nat_target::get_tib_address)
6508 (windows_nat_target::thread_name)
6509 (windows_nat_target::thread_alive): Update.
6510
98a03287
TT
65112020-04-08 Tom Tromey <tromey@adacore.com>
6512
6513 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
6514 (windows_continue): Use windows_continue::resume.
6515 * nat/windows-nat.h (struct windows_thread_info) <suspend,
6516 resume>: Declare new methods.
6517 * nat/windows-nat.c: New file.
6518 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
6519
7c7411bc
TT
65202020-04-08 Tom Tromey <tromey@adacore.com>
6521
6522 * windows-nat.c (windows_add_thread, windows_delete_thread)
6523 (windows_nat_target::fetch_registers)
6524 (windows_nat_target::store_registers, fake_create_process)
6525 (windows_nat_target::resume, windows_nat_target::resume)
6526 (get_windows_debug_event, windows_nat_target::wait)
6527 (windows_nat_target::pid_to_str)
6528 (windows_nat_target::get_tib_address)
6529 (windows_nat_target::get_ada_task_ptid)
6530 (windows_nat_target::thread_name)
6531 (windows_nat_target::thread_alive): Use lwp, not tid.
6532
2950fdf7
TT
65332020-04-08 Tom Tromey <tromey@adacore.com>
6534
6535 * windows-nat.c (handle_exception)
6536 (windows_nat_target::thread_name): Update.
6537 * nat/windows-nat.h (windows_thread_info): Remove destructor.
6538 <name>: Now unique_xmalloc_ptr.
6539
62fe396b
TT
65402020-04-08 Tom Tromey <tromey@adacore.com>
6541
6542 * windows-nat.c (thread_rec)
6543 (windows_nat_target::fetch_registers): Update.
6544 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
6545 Update comment.
6546 <debug_registers_changed, reload_context>: Now bool.
6547
e9534bd2
TT
65482020-04-08 Tom Tromey <tromey@adacore.com>
6549
6550 * windows-nat.c (windows_add_thread): Use new.
6551 (windows_init_thread_list, windows_delete_thread): Use delete.
6552 (get_windows_debug_event): Update.
6553 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
6554 destructor, and initializers.
6555
ae1f8880
TT
65562020-04-08 Tom Tromey <tromey@adacore.com>
6557
6558 * windows-nat.c (struct windows_thread_info): Remove.
6559 * nat/windows-nat.h: New file.
6560
55a1e039
TT
65612020-04-08 Tom Tromey <tromey@adacore.com>
6562
6563 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
6564 (thread_rec, windows_add_thread, windows_delete_thread)
6565 (windows_continue): Update.
6566
93366324
TT
65672020-04-08 Tom Tromey <tromey@adacore.com>
6568
6569 * windows-nat.c (struct windows_thread_info): Remove typedef.
6570 (thread_head): Remove.
6571 (thread_list): New global.
6572 (thread_rec, windows_add_thread, windows_init_thread_list)
6573 (windows_delete_thread, windows_continue): Update.
6574
0f2265e2
SM
65752020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6576
6577 * windows-tdep.h (windows_init_abi): Add comment.
6578 (cygwin_init_abi): New declaration.
6579 * windows-tdep.c: Split signal enumeration in two, one for
6580 Windows and one for Cygwin.
6581 (windows_gdb_signal_to_target): Only deal with signal of the
6582 Windows OS ABI.
6583 (cygwin_gdb_signal_to_target): New function.
6584 (windows_init_abi): Rename to windows_init_abi_common, don't set
6585 gdb_signal_to_target gdbarch method. Add new new function with
6586 this name.
6587 (cygwin_init_abi): New function.
6588 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
6589 comment. Don't call windows_init_abi.
6590 (amd64_windows_init_abi): Add comment, call windows_init_abi.
6591 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
6592 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
6593 i386_windows_init_abi_common, don't call windows_init_abi. Add
6594 a new function of this name.
6595 (i386_cygwin_init_abi): New function.
6596 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
6597 OS ABI Cygwin.
6598
3810f182
SM
65992020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6600
6601 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
6602 parameter.c.
6603 (dwarf2_read_gdb_index): Update.
6604
063f8e80
KR
66052020-04-07 Kamil Rytarowski <n54@gmx.com>
6606
6607 * nbsd-tdep.c: Include "objfiles.h".
6608 (nbsd_skip_solib_resolver): New.
6609 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
6610
85a9510c 66112020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6612
6613 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
6614 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
6615 with DW_LLE_base_addressx are being emitted in DWARFv5.
6616 Add the newly added kind DW_LOC_OFFSET_PAIR also.
6617 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
6618 unsigned integer.
6619
9fc3eaae 66202020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6621
6622 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
6623 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
6624 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
6625 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
6626 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
6627 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
6628 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
6629
6630
41144253 66312020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6632
6633 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
6634 (read_loclist_index): New function definition.
6635 (lookup_loclist_base): New function definition.
6636 (read_loclist_header): New function definition.
6637 (dwarf2_cu): Add loclist_base and loclist_header field.
6638 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
6639 (read_full_die_1): Read the value of DW_AT_loclists_base.
6640 (read_attribute_reprocess): Handle DW_FORM_loclistx.
6641 (read_attribute_value): Handle DW_FORM_loclistx.
6642 (skip_one_die): Handle DW_FORM_loclistx.
6643 (loclist_header): New structure declaration.
6644 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
6645
9f4e76a4
SM
66462020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
6647
6648 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
6649 constructor. Remove `addr` parameter from other constructor and
6650 add `per_cu` parameter.
6651 * dwarf2/read.c (create_partial_symtab): Update.
6652
25c11aca
TV
66532020-04-07 Tom de Vries <tdevries@suse.de>
6654
6655 PR symtab/25796
6656 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
6657 (partial_die_info::fixup): Inherit has_const_value.
6658
5707e24b
TV
66592020-04-07 Tom de Vries <tdevries@suse.de>
6660
6661 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
6662 symbols without address.
6663
05f00e22
KR
66642020-04-06 Kamil Rytarowski <n54@gmx.com>
6665
6666 * nbsd-nat.h (struct thread_info): Add forward declaration.
6667 (nbsd_nat_target::thread_alive): Add.
6668 (nbsd_nat_target::thread_name): Likewise.
6669 (nbsd_nat_target::update_thread_list): Likewise.
6670 (update_thread_list::post_attach): Likewise.
6671 (post_attach::pid_to_str): Likewise.
6672 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
6673 (nbsd_thread_lister): Add.
6674 (nbsd_nat_target::thread_alive): Likewise.
6675 (nbsd_nat_target::thread_name): Likewise.
6676 (nbsd_add_threads): Likewise.
6677 (update_thread_list::post_attach): Likewise.
6678 (nbsd_nat_target::update_thread_list): Likewise.
6679 (post_attach::pid_to_str): Likewise.
6680
6ee448cc
TT
66812020-04-06 Tom Tromey <tromey@adacore.com>
6682
6683 * ada-valprint.c (print_variant_part): Extract the variant field.
6684 (print_field_values): Use the field as the outer value when
6685 recursing.
6686
dea34e8c
TT
66872020-04-06 Tom Tromey <tromey@adacore.com>
6688
6689 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
6690 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
6691 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
6692 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
6693 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
6694
93689ce9
TT
66952020-04-06 Tom Tromey <tromey@adacore.com>
6696
6697 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
6698 TYPE_CODE_ERROR.
6699
79743962
KR
67002020-04-06 Kamil Rytarowski <n54@gmx.com>
6701
6702 * nbsd-tdep.c: Include "gdbarch.h".
6703 Define enum with NetBSD signal numbers.
6704 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
6705 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
6706 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
6707 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
6708 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
6709 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
6710 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
6711 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
6712 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
6713 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
6714 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
6715 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
6716
9e7c9a03
HD
67172020-04-03 Hannes Domani <ssbssa@yahoo.de>
6718
6719 PR gdb/25325
6720 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
6721
d9e49b61
TT
67222020-04-03 Tom Tromey <tromey@adacore.com>
6723
6724 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
6725 Read constant block.
6726
e0fc5c3f
SM
67272020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6728
6729 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
6730 (gdb_bfd_get_full_section_contents): New declaration.
6731 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
6732 * windows-tdep.c (is_linked_with_cygwin_dll): Use
6733 gdb_bfd_get_full_section_contents.
6734
e2ff18a0
SM
67352020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6736
6737 * exec.c (build_section_table): Replace internal_error with
6738 gdb_assert.
6739 (section_table_xfer_memory_partial): Likewise.
6740 * mdebugread.c (parse_partial_symbols): Likewise.
6741 * psymtab.c (lookup_partial_symbol): Likewise.
6742 * utils.c (wrap_here): Likewise.
6743
0830d301
TT
67442020-04-02 Tom Tromey <tromey@adacore.com>
6745
6746 * f-lang.c (build_fortran_types): Use arch_type to initialize
6747 builtin_complex_s32 in the TYPE_CODE_ERROR case.
6748
e7da7f8f
TT
67492020-04-02 Tom Tromey <tromey@adacore.com>
6750
6751 * dwarf2/read.c (partial_die_info::read): Do not create a vector
6752 of attributes.
6753
c90d28ac
AB
67542020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
6755 Bernd Edlinger <bernd.edlinger@hotmail.de>
6756 Tom Tromey <tromey@adacore.com>
6757
6758 * buildsym.c (buildsym_compunit::record_line): Remove
6759 deduplication code.
6760
1aa98955
TV
67612020-04-02 Tom de Vries <tdevries@suse.de>
6762
6763 PR ada/24671
6764 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
6765
d3214198
TV
67662020-04-02 Tom de Vries <tdevries@suse.de>
6767
6768 * dwarf2/read.c (dwarf2_gdb_index_functions,
6769 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
6770 NULL.
6771 * psymtab.c (psym_lookup_global_symbol_language): New function.
6772 (psym_functions): Init psym_lookup_global_symbol_language with
6773 psym_lookup_global_symbol_language.
6774 * symfile-debug.c (debug_sym_quick_functions): Init
6775 lookup_global_symbol_language with NULL.
6776 * symfile.c (set_initial_language): Remove fixme comment.
6777 * symfile.h (struct quick_symbol_functions): Add
6778 lookup_global_symbol_language.
6779 * symtab.c (find_quick_global_symbol_language): New function.
6780 (find_main_name): Use find_quick_global_symbol_language.
6781
2836752f
SM
67822020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
6783
6784 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
6785
64dc2d4b
BE
67862020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6787
6788 * buildsym.c (record_line): Fix undefined behavior and preserve
6789 lines at eof.
6790
bbe3dc41
BE
67912020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6792
6793 * buildsym.c (record_line): Fix the resizing condition.
6794
6b4a335b
TT
67952020-04-01 Tom Tromey <tom@tromey.com>
6796
6797 * value.h (value_literal_complex): Add comment.
6798 * valops.c (value_literal_complex): Refer to value.h.
6799
3638a098
TT
68002020-04-01 Tom Tromey <tom@tromey.com>
6801
6802 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
6803 (scalar_type): New rule, from typebase.
6804 (typebase): Use scalar_type. Recognize complex types.
6805 (field_name): Handle FLOAT_KEYWORD.
6806 (ident_tokens): Add _Complex and __complex__.
6807
c34e8714
TT
68082020-04-01 Tom Tromey <tom@tromey.com>
6809
6810 PR exp/25299:
6811 * valarith.c (promotion_type, complex_binop): New functions.
6812 (scalar_binop): Handle complex numbers. Use promotion_type.
6813 (value_pos, value_neg, value_complement): Handle complex numbers.
6814
fa649bb7
TT
68152020-04-01 Tom Tromey <tom@tromey.com>
6816
6817 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
6818 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
6819 (parse_number): Handle complex numbers.
6820
981c08ce
TT
68212020-04-01 Tom Tromey <tom@tromey.com>
6822
6823 * c-valprint.c (c_decorations): Change complex suffix to "i".
6824
4c99290d
TT
68252020-04-01 Tom Tromey <tom@tromey.com>
6826
6827 * valprint.c (generic_value_print_complex): Use accessors.
6828 * value.h (value_real_part, value_imaginary_part): Declare.
6829 * valops.c (value_real_part, value_imaginary_part): New
6830 functions.
6831 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
6832
5b930b45
TT
68332020-04-01 Tom Tromey <tom@tromey.com>
6834
6835 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
6836 (read_range_type): Update.
6837 * mdebugread.c (basic_type): Update.
6838 * go-lang.c (build_go_types): Use init_complex_type.
6839 * gdbtypes.h (struct main_type) <complex_type>: New member.
6840 (init_complex_type): Update.
6841 (arch_complex_type): Don't declare.
6842 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
6843 Make name if none given. Use alloc_type_copy. Look for cached
6844 complex type.
6845 (arch_complex_type): Remove.
6846 (gdbtypes_post_init): Use init_complex_type.
6847 * f-lang.c (build_fortran_types): Use init_complex_type.
6848 * dwarf2/read.c (read_base_type): Update.
6849 * d-lang.c (build_d_types): Use init_complex_type.
6850 * ctfread.c (read_base_type): Update.
6851
53cccef1
TBA
68522020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6853
6854 * infrun.c (stop_all_threads): Update assertion, plus when
6855 stopping threads, take into account that we might be trying
6856 to stop an all-stop target.
6857 (stop_waiting): Call 'stop_all_threads' if there exists a
6858 non-stop target.
6859
a0714d30
TBA
68602020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6861
6862 * target.h (exists_non_stop_target): New function declaration.
6863 * target.c (exists_non_stop_target): New function.
6864
60e22c1e
HD
68652020-04-01 Hannes Domani <ssbssa@yahoo.de>
6866
6867 PR gdb/24789
6868 * eval.c (is_integral_or_integral_reference): New function.
6869 (evaluate_subexp_standard): Allow integer references in
6870 pointer arithmetic.
6871
e139a727
TBA
68722020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6873
6874 * remote.c (remote_target::remote_parse_stop_reply): Remove the
6875 check for no ptid in the stop reply when the target is non-stop.
6876
e0802d59
TT
68772020-04-01 Tom Tromey <tromey@adacore.com>
6878
6879 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
6880 "name" parameter to rvalue reference. Initialize m_name_holder.
6881 <lookup_name_info>: New overloads.
6882 <name>: Return gdb::string_view.
6883 <c_str>: New method.
6884 <make_ignore_params>: Update.
6885 <search_name_hash>: Update.
6886 <language_lookup_name>: Return const char *.
6887 <m_name>: Change type.
6888 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
6889 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
6890 (lookup_name_info::match_any): Update.
6891 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
6892 Update.
6893 * minsyms.c (linkage_name_str): Update.
6894 * language.c (default_symbol_name_matcher): Update.
6895 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
6896 Update.
6897 * ada-lang.c (ada_fold_name): Change parameter to string_view.
6898 (ada_lookup_name_info::ada_lookup_name_info): Update.
6899 (literal_symbol_name_matcher): Update.
6900
8c072cb6
TT
69012020-04-01 Tom Tromey <tromey@adacore.com>
6902
6903 * psymtab.c (psymtab_search_name): Remove function.
6904 (psym_lookup_symbol): Create search name and lookup name here.
6905 (lookup_partial_symbol): Remove "name" parameter; add
6906 lookup_name.
6907 (psym_expand_symtabs_for_function): Update.
6908
6f29a534
TT
69092020-03-31 Joel Jones <joelkevinjones@gmail.com>
6910
6911 PR tui/25597:
6912 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
6913
af62665e
TT
69142020-03-31 Tom Tromey <tromey@adacore.com>
6915
6916 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
6917 memcpy.
6918
d1a89da5
NC
69192020-03-30 Nelson Chu <nelson.chu@sifive.com>
6920
6921 * features/riscv/32bit-csr.xml: Regenerated.
6922 * features/riscv/64bit-csr.xml: Regenerated.
6923
d8af9068
TT
69242020-03-30 Tom Tromey <tromey@adacore.com>
6925
6926 * ada-valprint.c (print_variant_part): Update.
6927 * ada-lang.h (ada_which_variant_applies): Update.
6928 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
6929 outer_valaddr parameters; replace with "outer" value parameter.
6930 (to_fixed_variant_branch_type): Update.
6931
227c0bf4
PFC
69322020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6933
6934 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
6935 <list>. Remove inclusion of observable.h.
6936 (PPC_DEBUG_CURRENT_VERSION): Move up define.
6937 (struct arch_lwp_info): New struct.
6938 (class ppc_linux_dreg_interface): New class.
6939 (struct ppc_linux_process_info): New struct.
6940 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
6941 <low_new_clone, low_forget_process, low_prepare_to_resume>
6942 <copy_thread_dreg_state, mark_thread_stale>
6943 <mark_debug_registers_changed, register_hw_breakpoint>
6944 <clear_hw_breakpoint, register_wp, clear_wp>
6945 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
6946 <num_memory_accesses, get_trigger_type>
6947 <create_watchpoint_request, hwdebug_point_cmp>
6948 <init_arch_lwp_info, get_arch_lwp_info>
6949 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
6950 methods.
6951 <struct ptid_hash>: New inner struct.
6952 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
6953 members.
6954 (saved_dabr_value, hwdebug_info, max_slots_number)
6955 (struct hw_break_tuple, struct thread_points, ppc_threads)
6956 (have_ptrace_hwdebug_interface)
6957 (hwdebug_find_thread_points_by_tid)
6958 (hwdebug_insert_point, hwdebug_remove_point): Remove.
6959 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
6960 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
6961 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
6962 use m_dreg_interface.
6963 (hwdebug_point_cmp): Change to...
6964 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
6965 reference arguments instead of pointers.
6966 (ppc_linux_nat_target::ranged_break_num_registers): Use
6967 m_dreg_interface.
6968 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
6969 m_dreg_interface. Call register_hw_breakpoint.
6970 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
6971 m_dreg_interface. Call clear_hw_breakpoint.
6972 (get_trigger_type): Change to...
6973 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
6974 comment.
6975 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
6976 use m_dreg_interface. Call register_hw_breakpoint.
6977 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
6978 use m_dreg_interface. Call clear_hw_breakpoint.
6979 (can_use_watchpoint_cond_accel): Change to...
6980 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
6981 method. Update comment, use m_dreg_interface and
6982 m_process_info.
6983 (calculate_dvc): Change to...
6984 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
6985 m_dreg_interface.
6986 (num_memory_accesses): Change to...
6987 (ppc_linux_nat_target::num_memory_accesses): ...this method.
6988 (check_condition): Change to...
6989 (ppc_linux_nat_target::check_condition): ...this method.
6990 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
6991 comment, use m_dreg_interface.
6992 (create_watchpoint_request): Change to...
6993 (ppc_linux_nat_target::create_watchpoint_request): ...this
6994 method. Use m_dreg_interface.
6995 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
6996 m_dreg_interface. Call register_hw_breakpoint or register_wp.
6997 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
6998 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
6999 (ppc_linux_nat_target::low_forget_process)
7000 (ppc_linux_nat_target::low_new_fork)
7001 (ppc_linux_nat_target::low_new_clone)
7002 (ppc_linux_nat_target::low_delete_thread)
7003 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
7004 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
7005 only call mark_thread_stale.
7006 (ppc_linux_thread_exit): Remove.
7007 (ppc_linux_nat_target::stopped_data_address): Change to...
7008 (ppc_linux_nat_target::low_stopped_data_address): This. Add
7009 comment, use m_dreg_interface and m_thread_hw_breakpoints.
7010 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
7011 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
7012 comment. Call low_stopped_data_address.
7013 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
7014 m_dreg_interface.
7015 (ppc_linux_nat_target::masked_watch_num_registers): Use
7016 m_dreg_interface.
7017 (ppc_linux_nat_target::copy_thread_dreg_state)
7018 (ppc_linux_nat_target::mark_thread_stale)
7019 (ppc_linux_nat_target::mark_debug_registers_changed)
7020 (ppc_linux_nat_target::register_hw_breakpoint)
7021 (ppc_linux_nat_target::clear_hw_breakpoint)
7022 (ppc_linux_nat_target::register_wp)
7023 (ppc_linux_nat_target::clear_wp)
7024 (ppc_linux_nat_target::init_arch_lwp_info)
7025 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
7026 (_initialize_ppc_linux_nat): Remove observer callback.
7027
4db10d8f
PFC
70282020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7029
7030 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
7031 (ppc_linux_nat_target::auxv_parse)
7032 (ppc_linux_nat_target::read_description)
7033 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
7034 Move up.
7035
1310c1b0
PFC
70362020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7037
7038 * linux-nat.h (low_new_clone): New method.
7039 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
7040
69b037c3
SM
70412020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7042
7043 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
7044 (dbx_expand_psymtab): ... this.
7045 (start_psymtab): Update.
7046 * mdebugread.c (psymtab_to_symtab_1): Rename to...
7047 (mdebug_expand_psymtab): ... this.
7048 (parse_partial_symbols): Update.
7049 (new_psymtab): Update.
7050 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
7051 (xcoff_expand_psymtab): ... this.
7052 (xcoff_start_psymtab): Update.
7053
48993951
SM
70542020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7055
7056 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
7057 <expand_dependencies>: ... this.
7058 * psymtab.c (partial_symtab::read_dependencies): Rename to...
7059 (partial_symtab::expand_dependencies): ... this.
7060 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
7061 Update.
7062 (dwarf2_psymtab::expand_psymtab): Update.
7063 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
7064 * mdebugread.c (psymtab_to_symtab_1): Update.
7065 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
7066
3ad83046
SM
70672020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7068
7069 * psympriv.h (discard_psymtab): Remove.
7070 * dbxread.c (dbx_end_psymtab): Update.
7071 * xcoffread.c (xcoff_end_psymtab): Update.
7072
4d1b9ab6
TT
70732020-03-28 Tom Tromey <tom@tromey.com>
7074
7075 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
7076 comment.
7077
f1749218
TT
70782020-03-28 Tom Tromey <tom@tromey.com>
7079
7080 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
7081
ebea7626
HD
70822020-03-27 Hannes Domani <ssbssa@yahoo.de>
7083
7084 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7085
a879b4d5
JB
70862020-03-26 John Baldwin <jhb@FreeBSD.org>
7087
7088 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
7089
0826b30a
TT
70902020-03-26 Tom Tromey <tom@tromey.com>
7091
7092 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
7093 (mark_common_block_symbol_computed, read_tag_string_type)
7094 (attr_to_dynamic_prop, read_subrange_type): Update.
7095 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
7096 to be methods on struct attribute.
7097 (skip_one_die, process_imported_unit_die, read_namespace_alias)
7098 (read_call_site_scope, partial_die_info::read)
7099 (partial_die_info::read, lookup_die_type, follow_die_ref):
7100 Update.
7101 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
7102 from dwarf2_get_ref_die_offset.
7103 (attribute::constant_value): New method, from
7104 dwarf2_get_attr_constant_value.
7105 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
7106 Declare method.
7107 <constant_value>: New method.
7108
2b2558bf
TT
71092020-03-26 Tom Tromey <tom@tromey.com>
7110
7111 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
7112 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
7113 (dwarf_type_encoding_name): Move to stringify.c.
7114 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
7115 * dwarf2/stringify.c: New file.
7116 * dwarf2/stringify.h: New file.
7117
eeb64781
TT
71182020-03-26 Tom Tromey <tom@tromey.com>
7119
7120 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
7121 Rewrite.
7122
a39fdb41
TT
71232020-03-26 Tom Tromey <tom@tromey.com>
7124
7125 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
7126 methods.
7127 * dwarf2/read.c (lookup_addr_base): Move to die.h.
7128 (lookup_ranges_base): Likewise.
7129 (read_cutu_die_from_dwo, read_full_die_1): Update.
7130
436c571c
TT
71312020-03-26 Tom Tromey <tom@tromey.com>
7132
7133 * dwarf2/read.c (read_import_statement, read_file_scope)
7134 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
7135 (read_lexical_block_scope, read_call_site_scope)
7136 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
7137 (handle_struct_member_die, process_structure_scope)
7138 (update_enumeration_type_from_children)
7139 (process_enumeration_scope, read_array_type, read_common_block)
7140 (read_namespace, read_module, read_subroutine_type): Update.
7141 (sibling_die): Remove.
7142
052c8bb8
TT
71432020-03-26 Tom Tromey <tom@tromey.com>
7144
7145 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
7146 (build_type_psymtabs_reader, read_structure_type)
7147 (read_enumeration_type, read_full_die_1): Update.
7148 (dwarf2_attr_no_follow): Move to die.h.
7149 * dwarf2/die.h (struct die_info) <attr>: New method.
7150
2b24b6e4
TT
71512020-03-26 Tom Tromey <tom@tromey.com>
7152
7153 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
7154 <base_address>: Now an optional.
7155 (dwarf2_find_base_address, dwarf2_rnglists_process)
7156 (dwarf2_ranges_process, fill_in_loclist_baton)
7157 (dwarf2_symbol_mark_computed): Update.
7158
c2d50fd0
TT
71592020-03-26 Tom Tromey <tom@tromey.com>
7160
7161 * dwarf2/read.c (struct die_info): Move to die.h.
7162 * dwarf2/die.h: New file.
7163
0df7ad3a
TT
71642020-03-26 Tom Tromey <tom@tromey.com>
7165
7166 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
7167 * dwarf2/read.c
7168 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7169 Move to line-header.c.
7170 (read_checked_initial_length_and_offset, read_formatted_entries):
7171 Likewise.
7172 (dwarf_decode_line_header): Split into two.
7173 * dwarf2/line-header.c
7174 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7175 Move from read.c.
7176 (read_checked_initial_length_and_offset, read_formatted_entries):
7177 Likewise.
7178 (dwarf_decode_line_header): New function, split from read.c.
7179
86c0bb4c
TT
71802020-03-26 Tom Tromey <tom@tromey.com>
7181
7182 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
7183 Declare method.
7184 * dwarf2/read.c (read_attribute_value): Update.
7185 (dwarf2_per_objfile::read_line_string): Rename from
7186 read_indirect_line_string.
7187 (read_formatted_entries): Update.
7188
2ef46c2f
TT
71892020-03-26 Tom Tromey <tom@tromey.com>
7190
7191 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
7192 variable.
7193
4f9c1eda
TT
71942020-03-26 Tom Tromey <tom@tromey.com>
7195
7196 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
7197 const.
7198 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
7199 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
7200 parameter const.
7201
5a0e026f
TT
72022020-03-26 Tom Tromey <tom@tromey.com>
7203
7204 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
7205 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
7206 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
7207 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
7208
8844c11b
TT
72092020-03-26 Tom Tromey <tom@tromey.com>
7210
7211 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
7212 file_names_size, file_full_name, file_file_name>: Use const.
7213 <file_name_at, file_names>: Add const overload.
7214 * dwarf2/line-header.c (line_header::file_file_name)
7215 (line_header::file_full_name): Update.
7216
c90ec28a
TT
72172020-03-26 Tom Tromey <tom@tromey.com>
7218
7219 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
7220 (macro_start_file, consume_improper_spaces)
7221 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
7222 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
7223 (dwarf_decode_macros): Move to macro.c.
7224 * dwarf2/macro.c: New file.
7225 * dwarf2/macro.h: New file.
7226 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
7227
4f44ae6c
TT
72282020-03-26 Tom Tromey <tom@tromey.com>
7229
7230 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
7231 method.
7232 * dwarf2/section.c: New method. From
7233 read_indirect_string_at_offset_from.
7234 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
7235 (read_indirect_string_at_offset_from): Move to section.c.
7236 (read_indirect_string_at_offset): Rewrite.
7237 (read_indirect_line_string_at_offset): Remove.
7238 (read_indirect_string, read_indirect_line_string)
7239 (dwarf_decode_macro_bytes): Update.
7240
a0194fa8
TT
72412020-03-26 Tom Tromey <tom@tromey.com>
7242
7243 * dwarf2/section.h (struct dwarf2_section_info)
7244 <overload_complaint>: Declare.
7245 (dwarf2_section_buffer_overflow_complaint): Don't declare.
7246 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
7247 Rename from dwarf2_section_buffer_overflow_complaint.
7248 * dwarf2/read.c (skip_one_die, partial_die_info::read)
7249 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
7250
3d27bbdb
TT
72512020-03-26 Tom Tromey <tom@tromey.com>
7252
7253 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
7254 Declare.
7255 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
7256 Move from read.c.
7257 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
7258 to section.c.
7259
9eac9650
TT
72602020-03-26 Tom Tromey <tom@tromey.com>
7261
7262 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
7263
bf80d710
TT
72642020-03-26 Tom Tromey <tom@tromey.com>
7265
7266 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
7267 "builder".
7268 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
7269 parameter.
7270 (dwarf_decode_macros): Update.
7271
0314b390
TT
72722020-03-26 Tom Tromey <tom@tromey.com>
7273
7274 * dwarf2/read.c (read_attribute_value): Update.
7275 (read_indirect_string_from_dwz): Move to dwz.c; change into
7276 method.
7277 (dwarf_decode_macro_bytes): Update.
7278 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
7279 * dwarf2/dwz.c: New file.
7280 * Makefile.in (COMMON_SFILES): Add dwz.c.
7281
9fda78b6
TT
72822020-03-26 Tom Tromey <tom@tromey.com>
7283
7284 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
7285 * dwarf2/read.c: Add include.
7286 * dwarf2/index-write.c: Add include.
7287 * dwarf2/index-cache.c: Add include.
7288 * dwarf2/dwz.h: New file.
7289
33aa3c10
TT
72902020-03-25 Tom Tromey <tom@tromey.com>
7291
7292 * compile/compile-object-load.c (get_out_value_type): Mention
7293 correct symbol name in error message.
7294
d503b685
HD
72952020-03-25 Hannes Domani <ssbssa@yahoo.de>
7296
7297 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7298
7b1eff95
TV
72992020-03-25 Tom de Vries <tdevries@suse.de>
7300
7301 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
7302 * symmisc.c (dump_symtab_1): Print user and includes fields.
7303 (maintenance_info_symtabs): Same.
7304
dd895392
AB
73052020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
7306
7307 PR gdb/25534
7308 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
7309 (riscv_regcache_cooked_write): New function.
7310 (riscv_push_dummy_call): Use new function.
7311 (riscv_return_value): Likewise.
7312
5ab2fbf1
SM
73132020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
7314
7315 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
7316 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
7317 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
7318 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
7319 * infrun.c (follow_fork): Likewise.
7320 (follow_fork_inferior): Likewise.
7321 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
7322 * linux-nat.h (class linux_nat_target): Likewise.
7323 * remote.c (class remote_target) <follow_fork>: Likewise.
7324 (remote_target::follow_fork): Likewise.
7325 * target-delegates.c: Re-generate.
7326 * target.c (default_follow_fork): Likewise.
7327 (target_follow_fork): Likewise.
7328 * target.h (struct target_ops) <follow_fork>: Likewise.
7329 (target_follow_fork): Likewise.
7330
a64fafb5
TV
73312020-03-24 Tom de Vries <tdevries@suse.de>
7332
7333 * psymtab.c (maintenance_info_psymtabs): Print user field.
7334
fe26d3a3
TT
73352020-03-20 Tom Tromey <tromey@adacore.com>
7336
7337 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
7338 const.
7339 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
7340 const.
7341
c884cc46
SM
73422020-03-20 Simon Marchi <simon.marchi@efficios.com>
7343
7344 * ptrace.m4: Don't check for ptrace declaration.
7345 * config.in: Re-generate.
7346 * configure: Re-generate.
7347 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
7348 not defined.
7349
1ff700c2
KR
73502020-03-20 Kamil Rytarowski <n54@gmx.com>
7351
7352 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
7353 `PTRACE_TYPE_RET'.
7354 * i386-bsd-nat.c (gdb_ptrace): Likewise.
7355 * sparc-nat.c (gdb_ptrace): Likewise.
7356 * x86-bsd-nat.c (gdb_ptrace): Likewise.
7357
f7d4f0b1
TT
73582020-03-20 Tom Tromey <tromey@adacore.com>
7359
7360 * c-exp.y (lex_one_token): Fix assert.
7361
f67210ff
TT
73622020-03-20 Tom Tromey <tromey@adacore.com>
7363
7364 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
7365 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
7366 strncpy call.
7367
1773be9e
TT
73682020-03-20 Tom Tromey <tromey@adacore.com>
7369
7370 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
7371
70304be9
TT
73722020-03-20 Tom Tromey <tromey@adacore.com>
7373
7374 * ada-valprint.c (print_variant_part): Remove parameters; switch
7375 to value-based API.
7376 (print_field_values): Likewise.
7377 (ada_val_print_struct_union): Likewise.
7378 (ada_value_print_1): Update.
7379
9faa006d
KR
73802020-03-20 Kamil Rytarowski <n54@gmx.com>
7381
7382 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
7383 nbsd_nat_target instead of inf_ptrace_target.
7384 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7385 nbsd_nat_target.
7386
4a90f062
KR
73872020-03-20 Kamil Rytarowski <n54@gmx.com>
7388
7389 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
7390 it to the ptrace call.
7391 * (store_registers): Likewise.
7392
73932020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
7394
7395 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
7396 it to the ptrace call.
7397 * (store_registers): Likewise.
7398
2d07da27
LM
73992020-03-19 Luis Machado <luis.machado@linaro.org>
7400
7401 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
7402 valid, fetch vg value from ptrace.
7403
f09db380
KR
74042020-03-19 Kamil Rytarowski <n54@gmx.com>
7405 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
7406 * inf-ptrace.c: Likewise.
7407 * (gdb_ptrace): Add.
7408 * (inf_ptrace_target::resume): Update.
7409 * (inf_ptrace_target::xfer_partial): Likewise.
7410 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
7411 * (inf_ptrace_peek_poke): Update.
7412
fcc7376e
KR
74132020-03-19 Kamil Rytarowski <n54@gmx.com>
7414
7415 * x86-bsd-nat.c (gdb_ptrace): New.
7416 * (x86bsd_dr_set): Add new argument `ptid'.
7417 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
7418 x86bsd_dr_set_addr): Update.
7419
cada5fc9
AB
74202020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7421
7422 * remote.c (remote_target::process_stop_reply): Handle events for
7423 all threads differently.
7424
19a2740f
AB
74252020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7426
7427 * completer.c (completion_tracker::remove_completion): Define new
7428 function.
7429 * completer.h (completion_tracker::remove_completion): Declare new
7430 function.
7431 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
7432 when adding a C++ function symbol.
7433
724fd9ba
AB
74342020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7435
7436 * completer.c (completion_tracker::completion_hash_entry): Define
7437 new class.
7438 (advance_to_filename_complete_word_point): Call
7439 recompute_lowest_common_denominator.
7440 (completion_tracker::completion_tracker): Call discard_completions
7441 to setup the hash table.
7442 (completion_tracker::discard_completions): Allow for being called
7443 from the constructor, pass new equal function, and element deleter
7444 when constructing the hash table. Initialise new class member
7445 variables.
7446 (completion_tracker::maybe_add_completion): Remove use of
7447 m_entries_vec, and store more information into m_entries_hash.
7448 (completion_tracker::recompute_lcd_visitor): New function, most
7449 content taken from...
7450 (completion_tracker::recompute_lowest_common_denominator):
7451 ...here, this now just visits each item in the hash calling the
7452 above visitor.
7453 (completion_tracker::build_completion_result): Remove use of
7454 m_entries_vec, call recompute_lowest_common_denominator.
7455 * completer.h (completion_tracker::have_completions): Remove use
7456 of m_entries_vec.
7457 (completion_tracker::completion_hash_entry): Declare new class.
7458 (completion_tracker::recompute_lowest_common_denominator): Change
7459 function signature.
7460 (completion_tracker::recompute_lcd_visitor): Declare new function.
7461 (completion_tracker::m_entries_vec): Delete.
7462 (completion_tracker::m_entries_hash): Initialize to NULL.
7463 (completion_tracker::m_lowest_common_denominator_valid): New
7464 member variable.
7465 (completion_tracker::m_lowest_common_denominator_max_length): New
7466 member variable.
7467
5a82b8a1
KR
74682020-03-17 Kamil Rytarowski <n54@gmx.com>
7469
7470 * regformats/regdef.h: Put reg in gdb namespace.
7471
fb516a69
KR
74722020-03-17 Kamil Rytarowski <n54@gmx.com>
7473
7474 * i386-bsd-nat.c (gdb_ptrace): New.
7475 * (i386bsd_fetch_inferior_registers,
7476 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7477 * (i386bsd_fetch_inferior_registers,
7478 i386bsd_store_inferior_registers) Use gdb_ptrace.
7479
1c0aa1fb
KR
74802020-03-17 Kamil Rytarowski <n54@gmx.com>
7481
7482 * amd64-bsd-nat.c (gdb_ptrace): New.
7483 * (amd64bsd_fetch_inferior_registers,
7484 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7485 * (amd64bsd_fetch_inferior_registers,
7486 amd64bsd_store_inferior_registers) Use gdb_ptrace.
7487
5ccd2fb7
KR
74882020-03-17 Kamil Rytarowski <n54@gmx.com>
7489
7490 * user-regs.c (user_reg::read): Rename to...
7491 (user_reg::xread): ...this.
7492 * (append_user_reg): Rename argument `read' to `xread'.
7493 * (user_reg_add_builtin): Likewise.
7494 * (user_reg_add): Likewise.
7495 * (value_of_user_reg): Likewise.
7496
2108a63a
KR
74972020-03-17 Kamil Rytarowski <n54@gmx.com>
7498
7499 * sparc-nat.c (gdb_ptrace): New.
7500 * sparc-nat.c (sparc_fetch_inferior_registers)
7501 (sparc_store_inferior_registers) Remove obsolete comment.
7502 * sparc-nat.c (sparc_fetch_inferior_registers)
7503 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
7504 * sparc-nat.c (sparc_fetch_inferior_registers)
7505 (sparc_store_inferior_registers) Use gdb_ptrace.
7506
a225c9a8
KR
75072020-03-17 Kamil Rytarowski <n54@gmx.com>
7508
7509 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
7510 it to the ptrace call.
7511 * sh-nbsd-nat.c (store_registers): Likewise.
7512
98097623
KR
75132020-03-17 Kamil Rytarowski <n54@gmx.com>
7514
7515 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
7516 nbsd_nat_target instead of inf_ptrace_target.
7517 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7518 nbsd_nat_target.
7519
9e38d619
KR
75202020-03-17 Kamil Rytarowski <n54@gmx.com>
7521
7522 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
7523
a2ecbe9f
KR
75242020-03-17 Kamil Rytarowski <n54@gmx.com>
7525
7526 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
7527 <sys/sysctl.h>.
7528 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
7529
58990295
TV
75302020-03-17 Tom de Vries <tdevries@suse.de>
7531
7532 PR gdb/23710
7533 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
7534 fields.
7535 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
7536 fields.
7537 (process_imported_unit_die): Skip import of c++ CUs.
7538
771dd3a8
TT
75392020-03-16 Tom Tromey <tom@tromey.com>
7540
7541 * p-valprint.c (pascal_object_print_value): Initialize
7542 base_value.
7543
817a7585
AK
75442020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
7545 Shahab Vahedi <shahab@synopsys.com>
7546
7547 * Makefile.in: Add arch/arc.o
7548 * configure.tgt: Likewise.
7549 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
7550 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 7551 (arc_read_description): New function to cache target descriptions.
817a7585
AK
7552 * arc-tdep.h (arc_read_description): Add proto type.
7553 * arch/arc.c: New file.
7554 * arch/arc.h: Likewise.
7555 * features/Makefile: Replace old target descriptions with new.
7556 * features/arc-arcompact.c: Remove.
7557 * features/arc-arcompact.xml: Likewise.
7558 * features/arc-v2.c: Likewise
7559 * features/arc-v2.xml: Likewise
7560 * features/arc/aux-arcompact.xml: New file.
7561 * features/arc/aux-v2.xml: Likewise.
7562 * features/arc/core-arcompact.xml: Likewise.
7563 * features/arc/core-v2.xml: Likewise.
7564 * features/arc/aux-arcompact.c: Generate.
7565 * features/arc/aux-v2.c: Likewise.
7566 * features/arc/core-arcompact.c: Likewise.
7567 * features/arc/core-v2.c: Likewise.
7568 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
7569
67430cd0
TT
75702020-03-16 Tom Tromey <tromey@adacore.com>
7571
7572 PR gdb/25663:
7573 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
7574 putting value into bcache.
7575
30efb6c7
SM
75762020-03-16 Simon Marchi <simon.marchi@efficios.com>
7577
7578 PR gdb/21500
7579 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
7580 to...
7581 (amd64_windows_init_abi_common): ... this. Don't set size of
7582 long type.
7583 (amd64_windows_init_abi): New function.
7584 (amd64_cygwin_init_abi): New function.
7585 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
7586 the Cygwin OS ABI.
7587 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
7588 comment.
7589
8db52437
SM
75902020-03-16 Simon Marchi <simon.marchi@efficios.com>
7591
7592 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
7593 * windows-tdep.c (CYGWIN_DLL_NAME): New.
7594 (pe_import_directory_entry): New struct type.
7595 (is_linked_with_cygwin_dll): New function.
7596 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
7597 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
7598 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
7599
5982a56a
SM
76002020-03-16 Simon Marchi <simon.marchi@efficios.com>
7601
7602 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
7603 i386_cygwin_core_osabi_sniffer.
7604
7a1998df
SM
76052020-03-16 Simon Marchi <simon.marchi@efficios.com>
7606
7607 * i386-cygwin-tdep.c: Rename to...
7608 * i386-windows-tdep.c: ... this.
7609 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
7610 i386-windows-tdep.c.
7611 * configure.tgt: Likewise.
7612
053205cc
SM
76132020-03-16 Simon Marchi <simon.marchi@efficios.com>
7614
7615 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
7616 * osabi.c (gdb_osabi_names): Add "Windows".
7617 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
7618 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
7619 (i386_cygwin_core_osabi_sniffer): New function, extracted from
7620 i386_cygwin_osabi_sniffer.
7621 (_initialize_i386_cygwin_tdep): Register OS ABI
7622 GDB_OSABI_WINDOWS for i386.
7623 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
7624 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
7625 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
7626 for x86-64.
7627 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
7628 when the target matches '*-*-mingw*'.
7629
fe4b2ee6
SM
76302020-03-16 Simon Marchi <simon.marchi@efficios.com>
7631
7632 * defs.h (enum gdb_osabi): Move to...
7633 * osabi.h (enum gdb_osabi): ... here.
7634 * gdbarch.sh: Include osabi.h in gdbarch.h.
7635 * gdbarch.h: Re-generate.
7636
cb9b645d
SM
76372020-03-16 Simon Marchi <simon.marchi@efficios.com>
7638
7639 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
7640 function.
7641 (_initialize_amd64_windows_tdep): Register osabi sniffer.
7642
3293bbaf
TT
76432020-03-14 Tom Tromey <tom@tromey.com>
7644
7645 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
7646 for C++.
7647 (c_type_print_modifier): Likewise. Add "language" parameter.
7648 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
7649 (c_type_print_base_1): Update.
7650 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
7651 constants.
7652 * type-stack.c (type_stack::insert): Handle tp_atomic and
7653 tp_restrict.
7654 (type_stack::follow_type_instance_flags): Likewise.
7655 (type_stack::follow_types): Likewise. Merge type-following code.
7656 * c-exp.y (RESTRICT, ATOMIC): New tokens.
7657 (space_identifier, cv_with_space_id)
7658 (const_or_volatile_or_space_identifier_noopt)
7659 (const_or_volatile_or_space_identifier): Remove.
7660 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
7661 rules.
7662 (ptr_operator, typebase): Update.
7663 (enum token_flag) <FLAG_C>: New constant.
7664 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
7665 "_Atomic".
7666 (lex_one_token): Handle FLAG_C.
7667
154151a6
KR
76682020-03-14 Kamil Rytarowski <n54@gmx.com>
7669
7670 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
7671 it to the ptrace call.
7672 * m68k-bsd-nat.c (store_registers): Likewise.
7673
bc107784
KR
76742020-03-14 Kamil Rytarowski <n54@gmx.com>
7675
7676 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
7677 gdb_byte *.
7678 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
7679 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
7680 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
7681
01a80117
KR
76822020-03-14 Kamil Rytarowski <n54@gmx.com>
7683
7684 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
7685 nbsd_nat_target instead of inf_ptrace_target.
7686 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7687 nbsd_nat_target.
7688
f90280ca
KR
76892020-03-14 Kamil Rytarowski <n54@gmx.com>
7690
7691 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
7692 register_t.
7693
6def66f1
KR
76942020-03-14 Kamil Rytarowski <n54@gmx.com>
7695
7696 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
7697 it to the ptrace call.
7698 * alpha-bsd-nat.c (store_registers): Likewise.
7699
66eaca97
KR
77002020-03-14 Kamil Rytarowski <n54@gmx.com>
7701
7702 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
7703 includes.
7704 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
7705 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
7706 fill_fpregset): Likewise.
7707
4fed520b
KR
77082020-03-14 Kamil Rytarowski <n54@gmx.com>
7709
7710 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
7711 nbsd_nat_target instead of inf_ptrace_target.
7712 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7713 nbsd_nat_target.
7714
2190cf06
KR
77152020-03-14 Kamil Rytarowski <n54@gmx.com>
7716
7717 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
7718 register_t.
7719
75c56d3d
KR
77202020-03-14 Kamil Rytarowski <n54@gmx.com>
7721
7722 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
7723 it to the ptrace call.
7724 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
7725 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
7726 * arm-nbsd-nat.c (store_register): Likewise.
7727 * arm-nbsd-nat.c (store_regs): Likewise.
7728 * arm-nbsd-nat.c (store_fp_register): Likewise.
7729 * arm-nbsd-nat.c (store_fp_regs): Likewise.
7730
6018d381
KR
77312020-03-14 Kamil Rytarowski <n54@gmx.com>
7732
7733 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
7734 nbsd_nat_target instead of inf_ptrace_target.
7735 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7736 nbsd_nat_target.
7737
013f99f0
KR
77382020-03-14 Kamil Rytarowski <n54@gmx.com>
7739
7740 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
7741 it to the ptrace call.
7742 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
7743
12753073
KR
77442020-03-14 Kamil Rytarowski <n54@gmx.com>
7745
6227b330
KR
7746 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
7747 it to the ptrace call.
7748 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
7749
77502020-03-14 Kamil Rytarowski <n54@gmx.com>
7751
7752 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
7753 gdb_byte *.
12753073
KR
7754 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
7755
d5be5fa4
KR
77562020-03-14 Kamil Rytarowski <n54@gmx.com>
7757
7758 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
7759 instead of inf_ptrace_target.
7760 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7761 nbsd_nat_target.
7762
8110f842
KR
77632020-03-14 Kamil Rytarowski <n54@gmx.com>
7764
7765 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7766 register_t.
7767
52feded7
KR
77682020-03-14 Kamil Rytarowski <n54@gmx.com>
7769
7770 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7771 register_t.
7772
25567eee
KR
77732020-03-14 Kamil Rytarowski <n54@gmx.com>
7774
7775 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
7776 register_t.
7777
426a9c18
TT
77782020-03-13 Tom Tromey <tom@tromey.com>
7779
7780 * value.h (val_print): Don't declare.
7781 * valprint.h (val_print_array_elements)
7782 (val_print_scalar_formatted, generic_val_print): Don't declare.
7783 * valprint.c (generic_val_print_array): Take a struct value.
7784 (generic_val_print_ptr, generic_val_print_memberptr)
7785 (generic_val_print_bool, generic_val_print_int)
7786 (generic_val_print_char, generic_val_print_complex)
7787 (generic_val_print): Remove.
7788 (generic_value_print): Update.
7789 (do_val_print): Remove unused parameters. Don't call
7790 la_val_print.
7791 (val_print): Remove.
7792 (common_val_print): Update. Don't call value_check_printable.
7793 (val_print_scalar_formatted, val_print_array_elements): Remove.
7794 * rust-lang.c (rust_val_print): Remove.
7795 (rust_language_defn): Update.
7796 * p-valprint.c (pascal_val_print): Remove.
7797 (pascal_value_print_inner): Update.
7798 (pascal_object_print_val_fields, pascal_object_print_val):
7799 Remove.
7800 (pascal_object_print_static_field): Update.
7801 * p-lang.h (pascal_val_print): Don't declare.
7802 * p-lang.c (pascal_language_defn): Update.
7803 * opencl-lang.c (opencl_language_defn): Update.
7804 * objc-lang.c (objc_language_defn): Update.
7805 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
7806 * m2-lang.h (m2_val_print): Don't declare.
7807 * m2-lang.c (m2_language_defn): Update.
7808 * language.h (struct language_defn) <la_val_print>: Remove.
7809 * language.c (unk_lang_value_print_inner): Rename. Change
7810 argument types.
7811 (unknown_language_defn, auto_language_defn): Update.
7812 * go-valprint.c (go_val_print): Remove.
7813 * go-lang.h (go_val_print): Don't declare.
7814 * go-lang.c (go_language_defn): Update.
7815 * f-valprint.c (f_val_print): Remove.
7816 * f-lang.h (f_value_print): Don't declare.
7817 * f-lang.c (f_language_defn): Update.
7818 * d-valprint.c (d_val_print): Remove.
7819 * d-lang.h (d_value_print): Don't declare.
7820 * d-lang.c (d_language_defn): Update.
7821 * cp-valprint.c (cp_print_value_fields)
7822 (cp_print_value_fields_rtti, cp_print_value): Remove.
7823 (cp_print_static_field): Update.
7824 * c-valprint.c (c_val_print_array, c_val_print_ptr)
7825 (c_val_print_struct, c_val_print_union, c_val_print_int)
7826 (c_val_print_memberptr, c_val_print): Remove.
7827 * c-lang.h (c_val_print_array, cp_print_value_fields)
7828 (cp_print_value_fields_rtti): Don't declare.
7829 * c-lang.c (c_language_defn, cplus_language_defn)
7830 (asm_language_defn, minimal_language_defn): Update.
7831 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
7832 (ada_val_print_enum): Take a struct value.
7833 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
7834 (ada_val_print): Remove.
7835 (ada_value_print_1): Update.
7836 (printable_val_type): Remove.
7837 * ada-lang.h (ada_val_print): Don't declare.
7838 * ada-lang.c (ada_language_defn): Update.
7839
42331a1e
TT
78402020-03-13 Tom Tromey <tom@tromey.com>
7841
7842 * valprint.c (do_val_print): Update.
7843 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
7844 a struct value.
7845 (value_to_value_object_no_release): Declare.
7846 * python/py-value.c (value_to_value_object_no_release): New
7847 function.
7848 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
7849 struct value.
7850 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
7851 function.
7852 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
7853 a struct value.
7854 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
7855 Declare.
7856 (gdbscm_apply_val_pretty_printer): Take a struct value.
7857 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
7858 value.
7859 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
7860 value.
7861 * extension-priv.h (struct extension_language_ops)
7862 <apply_val_pretty_printer>: Take a struct value.
7863 * cp-valprint.c (cp_print_value): Create a struct value.
7864 (cp_print_value): Update.
7865
3a916a97
TT
78662020-03-13 Tom Tromey <tom@tromey.com>
7867
7868 * ada-valprint.c (print_field_values): Call common_val_print.
7869
b59eac37
TT
78702020-03-13 Tom Tromey <tom@tromey.com>
7871
7872 * ada-valprint.c (val_print_packed_array_elements): Remove
7873 bitoffset and val parameters. Call common_val_print.
7874 (ada_val_print_string): Remove offset, address, and original_value
7875 parameters.
7876 (ada_val_print_array): Update.
7877 (ada_value_print_array): New function.
7878 (ada_value_print_1): Call it.
7879
03371129
TT
78802020-03-13 Tom Tromey <tom@tromey.com>
7881
7882 * ada-valprint.c (ada_value_print): Use common_val_print.
7883
2e088f8b
TT
78842020-03-13 Tom Tromey <tom@tromey.com>
7885
7886 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
7887
39ef85a8
TT
78882020-03-13 Tom Tromey <tom@tromey.com>
7889
7890 * ada-valprint.c (ada_value_print_num): New function.
7891 (ada_value_print_1): Use it.
7892
b9fa6e07
TT
78932020-03-13 Tom Tromey <tom@tromey.com>
7894
7895 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
7896
416595d6
TT
78972020-03-13 Tom Tromey <tom@tromey.com>
7898
7899 * ada-valprint.c (ada_value_print_ptr): New function.
7900 (ada_value_print_1): Use it.
7901
5b5e15ec
TT
79022020-03-13 Tom Tromey <tom@tromey.com>
7903
7904 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
7905 call common_val_print.
7906 (ada_val_print_1): Update.
7907 (ada_value_print_1): New function.
7908 (ada_value_print_inner): Rewrite.
7909
fbf54e75
TT
79102020-03-13 Tom Tromey <tom@tromey.com>
7911
7912 * cp-valprint.c (cp_print_value_fields): Update.
7913 (cp_print_value): New function.
7914
64b653ca
TT
79152020-03-13 Tom Tromey <tom@tromey.com>
7916
7917 * m2-valprint.c (m2_value_print_inner): Use
7918 cp_print_value_fields.
7919 * cp-valprint.c (cp_print_value_fields): New function.
7920 * c-valprint.c (c_value_print_struct): New function.
7921 (c_value_print_inner): Use c_value_print_struct.
7922 * c-lang.h (cp_print_value_fields): Declare.
7923
6999f067
TT
79242020-03-13 Tom Tromey <tom@tromey.com>
7925
7926 * c-valprint.c (c_value_print_array): New function.
7927 (c_value_print_inner): Use it.
7928
ce80b8bd
TT
79292020-03-13 Tom Tromey <tom@tromey.com>
7930
7931 * c-valprint.c (c_value_print_memberptr): New function.
7932 (c_value_print_inner): Use it.
7933
2faac269
TT
79342020-03-13 Tom Tromey <tom@tromey.com>
7935
7936 * c-valprint.c (c_value_print_int): New function.
7937 (c_value_print_inner): Use it.
7938
da3e2c29
TT
79392020-03-13 Tom Tromey <tom@tromey.com>
7940
7941 * c-valprint.c (c_value_print_ptr): New function.
7942 (c_value_print_inner): Use it.
7943
50836231
TT
79442020-03-13 Tom Tromey <tom@tromey.com>
7945
7946 * c-valprint.c (c_value_print_inner): Rewrite.
7947
4f412b6e
TT
79482020-03-13 Tom Tromey <tom@tromey.com>
7949
7950 * valprint.c (generic_value_print_complex): New function.
7951 (generic_value_print): Use it.
7952
f5354008
TT
79532020-03-13 Tom Tromey <tom@tromey.com>
7954
7955 * valprint.c (generic_val_print_float): Don't call
7956 val_print_scalar_formatted.
7957 (generic_val_print, generic_value_print): Update.
7958
3eec3b05
TT
79592020-03-13 Tom Tromey <tom@tromey.com>
7960
7961 * valprint.c (generic_value_print_char): New function
7962 (generic_value_print): Use it.
7963
fdddfccb
TT
79642020-03-13 Tom Tromey <tom@tromey.com>
7965
7966 * valprint.c (generic_value_print_int): New function.
7967 (generic_value_print): Use it.
7968
6dde7521
TT
79692020-03-13 Tom Tromey <tom@tromey.com>
7970
7971 * valprint.c (generic_value_print_bool): New function.
7972 (generic_value_print): Use it.
7973
4112d2e6
TT
79742020-03-13 Tom Tromey <tom@tromey.com>
7975
7976 * valprint.c (generic_val_print_func): Simplify.
7977 (generic_val_print, generic_value_print): Update.
7978
65786af6
TT
79792020-03-13 Tom Tromey <tom@tromey.com>
7980
7981 * valprint.c (generic_val_print_flags): Remove.
7982 (generic_val_print, generic_value_print): Update.
7983 (val_print_type_code_flags): Add original_value parameter.
7984
40f3ce18
TT
79852020-03-13 Tom Tromey <tom@tromey.com>
7986
7987 * valprint.c (generic_val_print): Update.
7988 (generic_value_print): Update.
7989 * valprint.c (generic_val_print_enum): Don't call
7990 val_print_scalar_formatted.
7991
2a5b130b
TT
79922020-03-13 Tom Tromey <tom@tromey.com>
7993
7994 * valprint.c (generic_value_print): Call generic_value_print_ptr.
7995 * valprint.c (generic_value_print_ptr): New function.
7996
abc66ce9
TT
79972020-03-13 Tom Tromey <tom@tromey.com>
7998
7999 * valprint.c (generic_value_print): Rewrite.
8000
07a32858
TT
80012020-03-13 Tom Tromey <tom@tromey.com>
8002
8003 * p-valprint.c (pascal_object_print_value_fields)
8004 (pascal_object_print_value): New functions.
8005
64d64d3a
TT
80062020-03-13 Tom Tromey <tom@tromey.com>
8007
8008 * p-valprint.c (pascal_value_print_inner): Rewrite.
8009
6a95a1f5
TT
80102020-03-13 Tom Tromey <tom@tromey.com>
8011
8012 * f-valprint.c (f_value_print_innner): Rewrite.
8013
59fcdac6
TT
80142020-03-13 Tom Tromey <tom@tromey.com>
8015
8016 * m2-valprint.c (m2_print_unbounded_array): New overload.
8017 (m2_print_unbounded_array): Update.
8018 (m2_print_array_contents): Take a struct value.
8019 (m2_value_print_inner): Rewrite.
8020
d133c3e1
TT
80212020-03-13 Tom Tromey <tom@tromey.com>
8022
8023 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
8024 (d_value_print_inner): New function.
8025 * d-lang.h (d_value_print_inner): Declare.
8026 * d-lang.c (d_language_defn): Use d_value_print_inner.
8027
23b0f06b
TT
80282020-03-13 Tom Tromey <tom@tromey.com>
8029
8030 * go-valprint.c (go_value_print_inner): New function.
8031 * go-lang.h (go_value_print_inner): Declare.
8032 * go-lang.c (go_language_defn): Use go_value_print_inner.
8033
5f56f7cb
TT
80342020-03-13 Tom Tromey <tom@tromey.com>
8035
8036 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
8037 API.
8038 (rust_val_print): Rewrite.
8039 (rust_value_print_inner): New function, from rust_val_print.
8040 (rust_language_defn): Use rust_value_print_inner.
8041
26792ee0
TT
80422020-03-13 Tom Tromey <tom@tromey.com>
8043
8044 * ada-valprint.c (ada_value_print_inner): New function.
8045 * ada-lang.h (ada_value_print_inner): Declare.
8046 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
8047
24051bbe
TT
80482020-03-13 Tom Tromey <tom@tromey.com>
8049
8050 * f-valprint.c (f_value_print_innner): New function.
8051 * f-lang.h (f_value_print_innner): Declare.
8052 * f-lang.c (f_language_defn): Use f_value_print_innner.
8053
c0941be6
TT
80542020-03-13 Tom Tromey <tom@tromey.com>
8055
8056 * p-valprint.c (pascal_value_print_inner): New function.
8057 * p-lang.h (pascal_value_print_inner): Declare.
8058 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
8059
62c4663d
TT
80602020-03-13 Tom Tromey <tom@tromey.com>
8061
8062 * m2-valprint.c (m2_value_print_inner): New function.
8063 * m2-lang.h (m2_value_print_inner): Declare.
8064 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
8065
62182190
TT
80662020-03-13 Tom Tromey <tom@tromey.com>
8067
8068 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
8069 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
8070 * c-valprint.c (c_value_print_inner): New function.
8071 * c-lang.h (c_value_print_inner): Declare.
8072 * c-lang.c (c_language_defn, cplus_language_defn)
8073 (asm_language_defn, minimal_language_defn): Use
8074 c_value_print_inner.
8075
1e592a8a
TT
80762020-03-13 Tom Tromey <tom@tromey.com>
8077
8078 * p-valprint.c (pascal_object_print_value_fields): Now static.
8079 * p-lang.h (pascal_object_print_value_fields): Don't declare.
8080
7fe471e9
TT
80812020-03-13 Tom Tromey <tom@tromey.com>
8082
8083 * c-valprint.c (c_val_print_array): Simplify.
8084
d121c6ce
TT
80852020-03-13 Tom Tromey <tom@tromey.com>
8086
8087 * valprint.c (value_print_array_elements): New function.
8088 * valprint.h (value_print_array_elements): Declare.
8089
4dba70ee
TT
80902020-03-13 Tom Tromey <tom@tromey.com>
8091
8092 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
8093 * mips-tdep.c (mips_print_register): Use
8094 value_print_scalar_formatted.
8095
4f9ae810
TT
80962020-03-13 Tom Tromey <tom@tromey.com>
8097
8098 * valprint.h (value_print_scalar_formatted): Declare.
8099 * valprint.c (value_print_scalar_formatted): New function.
8100
156bfec9
TT
81012020-03-13 Tom Tromey <tom@tromey.com>
8102
8103 * valprint.h (generic_value_print): Declare.
8104 * valprint.c (generic_value_print): New function.
8105
2b4e573d
TT
81062020-03-13 Tom Tromey <tom@tromey.com>
8107
8108 * valprint.c (do_val_print): Call la_value_print_inner, if
8109 available.
8110 * rust-lang.c (rust_language_defn): Update.
8111 * p-lang.c (pascal_language_defn): Update.
8112 * opencl-lang.c (opencl_language_defn): Update.
8113 * objc-lang.c (objc_language_defn): Update.
8114 * m2-lang.c (m2_language_defn): Update.
8115 * language.h (struct language_defn) <la_value_print_inner>: New
8116 member.
8117 * language.c (unknown_language_defn, auto_language_defn): Update.
8118 * go-lang.c (go_language_defn): Update.
8119 * f-lang.c (f_language_defn): Update.
8120 * d-lang.c (d_language_defn): Update.
8121 * c-lang.c (c_language_defn, cplus_language_defn)
8122 (asm_language_defn, minimal_language_defn): Update.
8123 * ada-lang.c (ada_language_defn): Update.
8124
a1f6a07c
TT
81252020-03-13 Tom Tromey <tom@tromey.com>
8126
8127 * c-valprint.c (c_value_print): Use common_val_print.
8128
410cf315
TT
81292020-03-13 Tom Tromey <tom@tromey.com>
8130
8131 * cp-valprint.c (cp_print_static_field): Use common_val_print.
8132
72a45c93
TT
81332020-03-13 Tom Tromey <tom@tromey.com>
8134
8135 * f-valprint.c (f77_print_array_1, f_val_print): Use
8136 common_val_print.
8137
040f66bd
TT
81382020-03-13 Tom Tromey <tom@tromey.com>
8139
8140 * riscv-tdep.c (riscv_print_one_register_info): Use
8141 common_val_print.
8142
a6e05a6c
TT
81432020-03-13 Tom Tromey <tom@tromey.com>
8144
8145 * mi/mi-main.c (output_register): Use common_val_print.
8146
3444c526
TT
81472020-03-13 Tom Tromey <tom@tromey.com>
8148
8149 * infcmd.c (default_print_one_register_info): Use
8150 common_val_print.
8151
c2a44efe
TT
81522020-03-13 Tom Tromey <tom@tromey.com>
8153
8154 * valprint.h (common_val_print_checked): Declare.
8155 * valprint.c (common_val_print_checked): New function.
8156 * stack.c (print_frame_arg): Use common_val_print_checked.
8157
b0c26e99
TT
81582020-03-13 Tom Tromey <tom@tromey.com>
8159
8160 * valprint.c (do_val_print): New function, from val_print.
8161 (val_print): Use do_val_print.
8162 (common_val_print): Use do_val_print.
8163
ce3acbe9
TT
81642020-03-13 Tom Tromey <tom@tromey.com>
8165
8166 * valprint.c (value_print): Use scoped_value_mark.
8167
96c7f873
TV
81682020-03-13 Tom de Vries <tdevries@suse.de>
8169
8170 PR symtab/25646
8171 * psymtab.c (partial_symtab::partial_symtab): Don't set
8172 globals_offset and statics_offset. Push element onto
8173 current_global_psymbols and current_static_psymbols stacks.
8174 (concat): New function.
8175 (end_psymtab_common): Set globals_offset and statics_offset. Pop
8176 element from current_global_psymbols and current_static_psymbols
8177 stacks. Concat popped elements to global_psymbols and
8178 static_symbols.
8179 (add_psymbol_to_list): Use current_global_psymbols and
8180 current_static_psymbols stacks.
8181 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
8182 current_static_psymbols fields.
8183
6ba0a321
CB
81842020-03-12 Christian Biesinger <cbiesinger@google.com>
8185
8186 * corelow.c (sniff_core_bfd): Remove.
8187 (class core_target) <m_core_vec>: Remove.
8188 (core_target::core_target): Update.
8189 (core_file_fns): Remove.
8190 (deprecated_add_core_fns): Remove.
8191 (default_core_sniffer): Remove.
8192 (sniff_core_bfd): Remove.
8193 (default_check_format): Remove.
8194 (gdb_check_format): Remove.
8195 (core_target_open): Update.
8196 (core_target::get_core_register_section): Update.
8197 (get_core_registers_cb): Update.
8198 (core_target::fetch_registers): Update.
8199 * gdbcore.h (struct core_fns): Remove.
8200 (deprecated_add_core_fns): Remove.
8201 (default_core_sniffer): Remove.
8202 (default_check_format): Remove.
8203
227031b2
TT
82042020-03-12 Tom Tromey <tom@tromey.com>
8205
8206 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
8207 CORE_ADDR.
8208 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
8209
53807e9f
TT
82102020-03-12 Tom Tromey <tom@tromey.com>
8211
8212 * remote.c (remote_target::download_tracepoint)
8213 (remote_target::enable_tracepoint)
8214 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
8215 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
8216 sprintf_vma.
8217
64f25102
TT
82182020-03-12 Tom Tromey <tom@tromey.com>
8219
8220 * symfile-mem.c: Update CORE_ADDR size assert.
8221
272cd5a3
SM
82222020-03-12 Simon Marchi <simon.marchi@efficios.com>
8223
8224 * selftest.m4: Move to gdbsupport/.
8225 * acinclude.m4: Update path to selftest.m4.
8226
74cd3f9d
SM
82272020-03-12 Simon Marchi <simon.marchi@efficios.com>
8228
8229 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
8230 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
8231 gdbarch-selfselftests.c and selftest-arch.c.
8232 (SUBDIR_UNITTESTS_OBS): Rename to...
8233 (SELFTESTS_OBS): ... this.
8234 (COMMON_SFILES): Remove disasm-selftests.c and
8235 gdbarch-selftests.c.
8236 * configure.ac: Don't add selftest-arch.{c,o} to
8237 CONFIG_{SRCS,OBS}.
8238 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
8239 preprocessor conditions.
8240
db6878ac
SM
82412020-03-12 Simon Marchi <simon.marchi@efficios.com>
8242
8243 * configure.ac: Don't source bfd/development.sh.
8244 * selftest.m4: Modify comment.
8245 * configure: Re-generate.
8246
4d696a5c
SM
82472020-03-12 Simon Marchi <simon.marchi@efficios.com>
8248
8249 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
8250 not "true" or "false".
8251 * configure: Re-generate.
8252
8dd8e1c7
CB
82532020-03-12 Christian Biesinger <cbiesinger@google.com>
8254
8255 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
8256 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
8257 renamed to arm_nbsd_supply_gregset.
8258 (fetch_register): Update to call arm_nbsd_supply_gregset.
8259 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
8260 (arm_netbsd_nat_target::fetch_registers): Update.
8261 (fetch_elfcore_registers): Removed.
8262 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
8263 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
8264 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
8265 not require NetBSD system headers.
8266 (arm_nbsd_regset): New struct.
8267 (arm_nbsd_iterate_over_regset_sections): New function.
8268 (arm_netbsd_init_abi_common): Updated to call
8269 set_gdbarch_iterate_over_regset_sections.
8270 * arm-nbsd-tdep.h: New file.
8271
dd69bf7a
KB
82722020-03-11 Kevin Buettner <kevinb@redhat.com>
8273
8274 * symtab.c (find_pc_sect_line): Add check which prevents infinite
8275 recursion.
8276
a0761e34
SM
82772020-03-11 Simon Marchi <simon.marchi@efficios.com>
8278
8279 * configure: Re-generate.
8280
e7a82140
TT
82812020-03-11 Tom Tromey <tromey@adacore.com>
8282
8283 * ada-typeprint.c (print_choices): Fix comment.
8284
dcc050c8
AB
82852020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
8286
8287 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
8288 previous item in the list, when the list has no items.
8289
1c33af77
TV
82902020-03-11 Tom de Vries <tdevries@suse.de>
8291
8292 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
8293 PROP_LOCLIST handling code.
8294
8c95582d
AB
82952020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
8296
8297 * buildsym-legacy.c (record_line): Pass extra parameter to
8298 record_line.
8299 * buildsym.c (buildsym_compunit::record_line): Take an extra
8300 parameter, reduce duplication in the line table, and record the
8301 is_stmt flag in the line table.
8302 * buildsym.h (buildsym_compunit::record_line): Add extra
8303 parameter.
8304 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
8305 non-statement lines.
8306 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
8307 this to the symtab builder.
8308 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
8309 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
8310 through to dwarf_record_line_1.
8311 * infrun.c (process_event_stop_test): When stepping, don't stop at
8312 a non-statement instruction, and only refresh the step info when
8313 we land in the middle of a line's range. Also add an extra
8314 comment.
8315 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
8316 field.
8317 * record-btrace.c (btrace_find_line_range): Only record lines
8318 marked as is-statement.
8319 * stack.c (frame_show_address): Show the frame address if we are
8320 in a non-statement sal.
8321 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
8322 (maintenance_print_one_line_table): Print a header for the is_stmt
8323 column, and include is_stmt information in the output.
8324 * symtab.c (find_pc_sect_line): Find lines marked as statements in
8325 preference to non-statements.
8326 (find_pcs_for_symtab_line): Prefer is-statement entries.
8327 (find_line_common): Likewise.
8328 * symtab.h (struct linetable_entry): Add is_stmt field.
8329 (struct symtab_and_line): Likewise.
8330 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
8331 arranging the line table.
8332
e4003a34
TV
83332020-03-07 Tom de Vries <tdevries@suse.de>
8334
8335 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
8336 DIE.
8337
e8932576
TT
83382020-03-07 Tom Tromey <tom@tromey.com>
8339
8340 * valops.c (value_literal_complex): Remove obsolete comment.
8341 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
8342 comment.
8343
29734269
SM
83442020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
8345
8346 * infrun.h: Forward-declare thread_info.
8347 (set_step_info): Add thread_info parameter, add doc.
8348 * infrun.c (set_step_info): Add thread_info parameter, move doc
8349 to header.
8350 * infrun.c (process_event_stop_test): Pass thread to
8351 set_step_info call.
8352 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
8353 set_step_info.
8354 (prepare_one_step): Add thread_info parameter, pass it to
8355 set_step_frame and prepare_one_step (recursive) call.
8356 (step_1): Pass thread to prepare_one_step call.
8357 (step_command_fsm::should_stop): Pass thread to
8358 prepare_one_step.
8359 (until_next_fsm): Pass thread to set_step_frame call.
8360 (finish_command): Pass thread to set_step_info call.
8361
b7d64b29
HD
83622020-03-06 Hannes Domani <ssbssa@yahoo.de>
8363
8364 * windows-tdep.c (windows_solib_create_inferior_hook):
8365 Check if inferior is running.
8366
09f2921c
TV
83672020-03-06 Tom de Vries <tdevries@suse.de>
8368
8369 * NEWS: Fix "the the".
8370 * ctfread.c: Same.
8371
fd760e79
TV
83722020-03-06 Tom de Vries <tdevries@suse.de>
8373
8374 * psymtab.c (psymtab_to_symtab): Don't print "done.".
8375
20ea4a60
AB
83762020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8377
8378 * .dir-locals.el: Add a comment referencing the other copies of
8379 this file.
8380
0afbabf0
JB
83812020-03-05 John Baldwin <jhb@FreeBSD.org>
8382
8383 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
8384 psargs.
8385
842806cb
TBA
83862020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8387
8388 * .gitattributes: New file.
8389
be1e3d3e
TT
83902020-03-04 Tom Tromey <tom@tromey.com>
8391
8392 * symmisc.c (print_symbol_bcache_statistics)
8393 (print_objfile_statistics): Update.
8394 * symfile.c (allocate_symtab): Use intern.
8395 * psymtab.c (partial_symtab::partial_symtab): Use intern.
8396 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
8397 macro_cache>: Remove.
8398 <string_cache>: New member.
8399 (struct objfile) <intern>: New methods.
8400 * elfread.c (elf_symtab_read): Use intern.
8401 * dwarf2/read.c (fixup_go_packaging): Intern package name.
8402 (dwarf2_compute_name, dwarf2_physname)
8403 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
8404 names.
8405 (guess_partial_die_structure_name): Update.
8406 (partial_die_info::fixup): Intern name.
8407 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
8408 name.
8409 (dwarf2_name): Intern name. Update.
8410 * buildsym.c (buildsym_compunit::get_macro_table): Use
8411 string_cache.
8412
4e7625fd
TT
84132020-03-04 Tom Tromey <tom@tromey.com>
8414
8415 * jit.c (bfd_open_from_target_memory): Make "target" const.
8416 * corefile.c (gnutarget): Now const.
8417 * gdbcore.h (gnutarget): Now const.
8418
46f9f931
HD
84192020-03-04 Hannes Domani <ssbssa@yahoo.de>
8420
8421 * NEWS: Mention support for WOW64 processes.
8422 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
8423 (amd64_windows_segment_register_p): Remove static.
8424 (_initialize_amd64_windows_nat): Update.
8425 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
8426 * i386-windows-nat.c (context_offset): Update.
8427 (i386_mappings): Rename and remove static.
8428 (i386_windows_segment_register_p): Remove static.
8429 (_initialize_i386_windows_nat): Update.
8430 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
8431 (STATUS_WX86_SINGLE_STEP): New macro.
8432 (EnumProcessModulesEx): New macro.
8433 (Wow64SuspendThread): New macro.
8434 (Wow64GetThreadContext): New macro.
8435 (Wow64SetThreadContext): New macro.
8436 (Wow64GetThreadSelectorEntry): New macro.
8437 (windows_set_context_register_offsets): Add static.
8438 (windows_set_segment_register_p): Likewise.
8439 (windows_add_thread): Adapt for WOW64 processes.
8440 (windows_fetch_one_register): Likewise.
8441 (windows_nat_target::fetch_registers): Likewise.
8442 (windows_store_one_register): Likewise.
8443 (display_selector): Likewise.
8444 (display_selectors): Likewise.
8445 (handle_exception): Likewise.
8446 (windows_continue): Likewise.
8447 (windows_nat_target::resume): Likewise.
8448 (windows_add_all_dlls): Likewise.
8449 (do_initial_windows_stuff): Likewise.
8450 (windows_nat_target::attach): Likewise.
8451 (windows_get_exec_module_filename): Likewise.
8452 (windows_nat_target::create_inferior): Likewise.
8453 (windows_xfer_siginfo): Likewise.
8454 (_initialize_loadable): Initialize Wow64SuspendThread,
8455 Wow64GetThreadContext, Wow64SetThreadContext,
8456 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
8457 * windows-nat.h (windows_set_context_register_offsets):
8458 Remove declaration.
8459 (windows_set_segment_register_p): Likewise.
8460 (i386_windows_segment_register_p): Add declaration.
8461 (amd64_windows_segment_register_p): Likewise.
8462
440cf44e
LM
84632020-03-04 Luis Machado <luis.machado@linaro.org>
8464
8465 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
8466 in "info registers" for AArch64/ARM.
8467
8468 The change caused "info registers" to not print GPR's.
8469
8470 gdb/ChangeLog:
8471
8472 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
8473
8474 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
8475 when reg->group is empty and reggroup is not.
8476
1009d92f
TT
84772020-03-03 Tom Tromey <tromey@adacore.com>
8478
8479 * dwarf2/frame.c (struct dwarf2_frame_cache)
8480 <checked_tailcall_bottom, entry_cfa_sp_offset,
8481 entry_cfa_sp_offset_p>: Remove members.
8482 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
8483 (dwarf2_frame_prev_register): Don't call
8484 dwarf2_tailcall_sniffer_first.
8485 (dwarf2_append_unwinders): Don't append tailcall unwinder.
8486 * frame-unwind.c (add_unwinder): New fuction.
8487 (frame_unwind_init): Use it. Add tailcall unwinder.
8488
5e5d66b6
AB
84892020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
8490 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8491
8492 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
8493 value should be printed as true.
8494
584cf46d
HD
84952020-03-03 Hannes Domani <ssbssa@yahoo.de>
8496
8497 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
8498 (windows_init_abi): Set and use windows_so_ops.
8499
7b973adc
SDJ
85002020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
8501
8502 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
8503 when verifying if dealing with a convenience variable.
8504
bb7b70ab
LM
85052020-03-03 Luis Machado <luis.machado@linaro.org>
8506
8507 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
8508
9822cb57
SM
85092020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
8510
8511 * infrun.c (gdbarch_supports_displaced_stepping): New.
8512 (use_displaced_stepping): Break up conditions in smaller pieces.
8513 Use gdbarch_supports_displaced_stepping.
8514 (displaced_step_prepare_throw): Use
8515 gdbarch_supports_displaced_stepping.
8516
63e163f2
AB
85172020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8518
8519 * NEWS: Mention new behaviour of the history filename.
8520 * top.c (write_history_p): Add comment.
8521 (show_write_history_p): Add header comment, give a different
8522 message when history writing is on, but the history filename is
8523 empty.
8524 (history_filename): Add comment.
8525 (history_filename_empty): New function.
8526 (show_history_filename): Add header comment, give a different
8527 message when the filename is empty.
8528 (init_history): Compare history_filename against nullptr, and only
8529 read history if the filename is not empty.
8530 (set_history_filename): Add header comment, and only make
8531 non-empty filenames absolute.
8532 (init_main): Make the filename argument to 'set history filename'
8533 optional.
8534
81b86b97
CB
85352020-03-02 Christian Biesinger <cbiesinger@google.com>
8536
8537 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
8538 (arm_supply_vfpregset): ...this, and update to use VFP registers.
8539 (fetch_fp_register): Update.
8540 (fetch_fp_regs): Update.
8541 (store_fp_register): Update.
8542 (store_fp_regs): Update.
8543 (arm_netbsd_nat_target::read_description): New function.
8544 (fetch_elfcore_registers): Update.
8545
24ed6739
AB
85462020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8547
8548 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
8549 general_thread if the stop reply is missing a thread-id.
8550 (remote_target::process_stop_reply): Use the first non-exited
8551 thread if the target didn't pass a thread-id.
8552 * infrun.c (do_target_wait): Move call to
8553 switch_to_inferior_no_thread to ....
8554 (do_target_wait_1): ... here.
8555
a84bb2a0
JT
85562020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
8557
8558 * debuginfod-support.c: Include defs.h first.
8559
658dadf0
TV
85602020-02-28 Tom de Vries <tdevries@suse.de>
8561
8562 * symfile.c (set_initial_language): Use default language for lookup.
8563
4ebe4877
SM
85642020-02-28 Simon Marchi <simon.marchi@efficios.com>
8565
8566 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
8567 reader variable, pass `this` to read_cutu_die_from_dwo.
8568
e5da1139
AM
85692020-02-27 Aaron Merey <amerey@redhat.com>
8570
8571 * source.c (open_source_file): Check for nullptr when computing
8572 srcpath.
8573
317f7127
TT
85742020-02-27 Tom Tromey <tromey@adacore.com>
8575
8576 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
8577 member.
8578 (dwarf2_add_field): Don't update nfields.
8579 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
8580
3104d9ee
AB
85812020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8582
8583 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
8584 abs.
8585
b83470bf
TT
85862020-02-26 Tom Tromey <tom@tromey.com>
8587
8588 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
8589 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
8590 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
8591 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
8592 per_cu_data.
8593
edfe0a0c
TT
85942020-02-26 Tom Tromey <tom@tromey.com>
8595
8596 * dwarf2/index-write.c (psym_index_map): Change type.
8597 (add_address_entry_worker, write_one_signatured_type)
8598 (recursively_count_psymbols, recursively_write_psymbols)
8599 (class debug_names, psyms_seen_size, write_gdbindex)
8600 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
8601
0d79cdc4
AM
86022020-02-26 Aaron Merey <amerey@redhat.com>
8603
8604 * Makefile.in: Handle optional debuginfod support.
8605 * NEWS: Update.
8606 * README: Add --with-debuginfod summary.
8607 * config.in: Regenerate.
8608 * configure: Regenerate.
8609 * configure.ac: Handle optional debuginfod support.
8610 * debuginfod-support.c: debuginfod helper functions.
8611 * debuginfod-support.h: Ditto.
8612 * doc/gdb.texinfo: Add --with-debuginfod to configure options
8613 summary.
8614 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
8615 when a dwz file cannot be found.
8616 * elfread.c (elf_symfile_read): Query debuginfod servers when a
8617 debuginfo file cannot be found.
8618 * source.c (open_source_file): Query debuginfod servers when a
8619 source file cannot be found.
8620 * top.c (print_gdb_configuration): Include
8621 --{with,without}-debuginfod in the output.
8622
b65ce565
JG
86232020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
8624
8625 * thread.c (thr_try_catch_cmd): Print thread name.
8626
d4c9a4f8
SM
86272020-02-26 Simon Marchi <simon.marchi@efficios.com>
8628
8629 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
8630 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8631 dwarf2_fetch_die_type_sect_off): Move to...
8632 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
8633 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8634 dwarf2_fetch_die_type_sect_off): ... here.
8635 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
8636 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8637 dwarf2_fetch_die_type_sect_off): Move doc to header file.
8638
0dce4280
TV
86392020-02-26 Tom de Vries <tdevries@suse.de>
8640
8641 PR gdb/25603
8642 * symfile.c (set_initial_language): Exit-early if
8643 language_mode == language_mode_manual.
8644
450a1bfc
SM
86452020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8646
8647 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
8648 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
8649 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
8650
9e80cfa1
AB
86512020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
8652
8653 * gdbtypes.c (create_array_type_with_stride): Handle negative
8654 array strides.
8655 * valarith.c (value_subscripted_rvalue): Likewise.
8656
09624f1f
LM
86572020-02-25 Luis Machado <luis.machado@linaro.org>
8658
8659 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
8660
8cb5117c
SM
86612020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8662
8663 * loc.h (dwarf2_get_die_type): Move to...
8664 * read.h (dwarf2_get_die_type): ... here.
8665 * read.c (dwarf2_get_die_type): Move doc to header.
8666
c325c44e
JB
86672020-02-25 Joel Brobecker <brobecker@adacore.com>
8668
8669 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
8670 'gnulib/Makefile.in' to the list.
8671
4ac93832
TT
86722020-02-24 Tom Tromey <tom@tromey.com>
8673
8674 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
8675 Remove.
8676 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
8677 XOBNEWVEC.
8678
197400e8
TT
86792020-02-24 Tom Tromey <tom@tromey.com>
8680
8681 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
8682 New method.
8683 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
8684 (dw2_do_instantiate_symtab, dw2_get_file_names)
8685 (build_type_psymtab_dependencies, load_full_type_unit): Update.
8686
76935768
TT
86872020-02-24 Tom Tromey <tom@tromey.com>
8688
8689 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
8690 make_scoped_restore.
8691 (dwarf2_psymtab::read_symtab): Don't clear
8692 reading_partial_symbols.
8693
a88ef40d
TV
86942020-02-24 Tom de Vries <tdevries@suse.de>
8695
8696 PR gdb/25592
8697 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
8698
c9af6521
TV
86992020-02-24 Tom de Vries <tdevries@suse.de>
8700
8701 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
8702 commands layout next/prev/regs.
8703
5707a07a
TT
87042020-02-22 Tom Tromey <tom@tromey.com>
8705
8706 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
8707 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
8708
3b0fb49e
TT
87092020-02-22 Tom Tromey <tom@tromey.com>
8710
8711 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
8712
283be8bf
TT
87132020-02-22 Tom Tromey <tom@tromey.com>
8714
8715 * tui/tui-win.c (_initialize_tui_win): Add usage text.
8716 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
8717 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
8718 * tui/tui.c (_initialize_tui): Add usage text.
8719
ca793b96
TT
87202020-02-22 Tom Tromey <tom@tromey.com>
8721
8722 * tui/tui-win.c (tui_set_focus_command)
8723 (tui_set_win_height_command): Use error_no_arg.
8724 (_initialize_tui_win): Update help text.
8725 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
8726
432b5c40
TT
87272020-02-22 Tom Tromey <tom@tromey.com>
8728
8729 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
8730 * tui/tui-disasm.h (struct tui_disasm_window)
8731 <display_start_addr>: Declare.
8732 * tui/tui-source.h (struct tui_source_window)
8733 <display_start_addr>: Declare.
8734 * tui/tui-winsource.h (struct tui_source_window_base)
8735 <show_source_line, display_start_addr>: New methods.
8736 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
8737 Rename and move to protected section.
8738 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
8739 (tui_source_window_base::do_erase_source_content): Update.
8740 (tui_source_window_base::show_source_line): Now a method.
8741 (tui_source_window_base::show_source_content)
8742 (tui_source_window_base::tui_source_window_base)
8743 (tui_source_window_base::rerender)
8744 (tui_source_window_base::refill)
8745 (tui_source_window_base::do_scroll_horizontal)
8746 (tui_source_window_base::set_is_exec_point_at)
8747 (tui_source_window_base::update_breakpoint_info)
8748 (tui_source_window_base::update_exec_info): Update.
8749 * tui/tui-source.c (tui_source_window::set_contents)
8750 (tui_source_window::showing_source_p)
8751 (tui_source_window::do_scroll_vertical)
8752 (tui_source_window::location_matches_p)
8753 (tui_source_window::line_is_displayed): Update.
8754 (tui_source_window::display_start_addr): New method.
8755 * tui/tui-disasm.c (tui_disasm_window::set_contents)
8756 (tui_disasm_window::do_scroll_vertical)
8757 (tui_disasm_window::location_matches_p): Update.
8758 (tui_disasm_window::display_start_addr): New method.
8759
01b1af32
TT
87602020-02-22 Tom Tromey <tom@tromey.com>
8761
8762 * NEWS: Add entry for gdb.register_window_type.
8763 * tui/tui-layout.h (window_factory): New typedef.
8764 (tui_register_window): Declare.
8765 * tui/tui-layout.c (saved_tui_windows): New global.
8766 (tui_apply_current_layout): Use it.
8767 (tui_register_window): New function.
8768 * python/python.c (do_start_initialization): Call
8769 gdbpy_initialize_tui.
8770 (python_GdbMethods): Add "register_window_type" function.
8771 * python/python-internal.h (gdbpy_register_tui_window)
8772 (gdbpy_initialize_tui): Declare.
8773 * python/py-tui.c: New file.
8774 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
8775
fc96d20b
TT
87762020-02-22 Tom Tromey <tom@tromey.com>
8777
8778 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
8779
935c78c0
TT
87802020-02-22 Tom Tromey <tom@tromey.com>
8781
8782 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
8783 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
8784 * tui/tui-data.c (tui_set_win_with_focus): Remove.
8785 (tui_set_win_focus_to): Move from tui-win.c.
8786
0240c8f1
TT
87872020-02-22 Tom Tromey <tom@tromey.com>
8788
8789 * tui/tui-layout.c (make_standard_window, get_locator_window): New
8790 functions.
8791 (known_window_types): New global.
8792 (tui_get_window_by_name): Reimplement.
8793 (initialize_known_windows): New function.
8794 (validate_window_name): Rewrite.
8795 (_initialize_tui_layout): Call initialize_known_windows.
8796
fdb01f0c
TT
87972020-02-22 Tom Tromey <tom@tromey.com>
8798
8799 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
8800 Remove constants.
8801 * tui/tui-winsource.h (struct tui_source_window_base)
8802 <tui_source_window_base>: Remove parameter.
8803 * tui/tui-winsource.c
8804 (tui_source_window_base::tui_source_window_base): Remove
8805 parameter.
8806 (tui_source_window_base::refill): Update.
8807 * tui/tui-stack.h (struct tui_locator_window)
8808 <tui_locator_window>: Update.
8809 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
8810 Default the constructor.
8811 * tui/tui-regs.h (struct tui_data_item_window)
8812 <tui_data_item_window>: Default the constructor.
8813 (struct tui_data_window) <tui_data_window>: Likewise.
8814 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
8815 Default the constructor.
8816 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
8817 Default the constructor.
8818 <type>: Remove.
8819 (struct tui_win_info) <tui_win_info>: Default the constructor.
8820 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
8821 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
8822 Default the constructor.
8823
865a5aec
TT
88242020-02-22 Tom Tromey <tom@tromey.com>
8825
8826 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
8827 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
8828 * tui/tui-win.c (tui_resize_all): Don't call
8829 tui_delete_invisible_windows.
8830 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
8831 done.
8832 (tui_set_layout): Update.
8833 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
8834 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
8835 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
8836
e098d18c
TT
88372020-02-22 Tom Tromey <tom@tromey.com>
8838
8839 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
8840 correctly.
8841
eb9c8874
TT
88422020-02-22 Tom Tromey <tom@tromey.com>
8843
8844 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
8845
7eed1a8e
TT
88462020-02-22 Tom Tromey <tom@tromey.com>
8847
8848 * tui/tui-winsource.h (struct tui_source_window_iterator)
8849 <inner_iterator>: New etytypedef.
8850 <tui_source_window_iterator>: Take "end" parameter.
8851 <tui_source_window_iterator>: Take iterator.
8852 <operator*, advance>: Update.
8853 <m_iter>: Change type.
8854 <m_end>: New field.
8855 (struct tui_source_windows) <begin, end>: Update.
8856 * tui/tui-layout.c (tui_windows): New global.
8857 (tui_apply_current_layout): Clear tui_windows.
8858 (tui_layout_window::apply): Update tui_windows.
8859 * tui/tui-data.h (tui_windows): Declare.
8860 (all_tui_windows): Now inline function.
8861 (class tui_window_iterator, struct all_tui_windows): Remove.
8862
7c043ba6
TT
88632020-02-22 Tom Tromey <tom@tromey.com>
8864
8865 PR tui/17850:
8866 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
8867 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
8868 "height" argument.
8869 (class tui_layout_window) <get_sizes>: Likewise.
8870 (class tui_layout_split) <tui_layout_split>: Add "vertical"
8871 argument.
8872 <get_sizes>: Add "height" argument.
8873 <m_vertical>: New field.
8874 * tui/tui-layout.c (tui_layout_split::clone): Update.
8875 (tui_layout_split::get_sizes): Add "height" argument.
8876 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
8877 (tui_new_layout_command): Parse "-horizontal".
8878 (_initialize_tui_layout): Update help string.
8879 (tui_layout_split::specification): Add "-horizontal" when needed.
8880 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
8881 argument.
8882 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
8883 New methods.
8884
6bc56648
TT
88852020-02-22 Tom Tromey <tom@tromey.com>
8886
8887 * tui/tui-layout.h (enum tui_adjust_result): New.
8888 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
8889 (class tui_layout_window) <adjust_size>: Return
8890 tui_adjust_result. Rewrite.
8891 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
8892 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
8893
c22fef7e
TT
88942020-02-22 Tom Tromey <tom@tromey.com>
8895
8896 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
8897 parameter and return types.
8898 (class tui_layout_base) <specification>: Add "depth".
8899 (class tui_layout_window) <specification>: Add "depth".
8900 (class tui_layout_split) <specification>: Add "depth".
8901 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
8902 and return types.
8903 (tui_new_layout_command): Parse sub-layouts.
8904 (_initialize_tui_layout): Update help string.
8905 (tui_layout_window::specification): Add "depth".
8906 (add_layout_command): Update.
8907
ee325b61
TT
89082020-02-22 Tom Tromey <tom@tromey.com>
8909
8910 * NEWS: Add "tui new-layout" item.
8911 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
8912 Add new-layout command to help text.
8913 (validate_window_name): New function.
8914 (tui_new_layout_command): New function.
8915 (_initialize_tui_layout): Register "new-layout".
8916 (tui_layout_window::specification): New method.
8917 (tui_layout_window::specification): New method.
8918 * tui/tui-layout.h (class tui_layout_base) <specification>: New
8919 method.
8920 (class tui_layout_window) <specification>: New method.
8921 (class tui_layout_split) <specification>: New method.
8922
416eb92d
TT
89232020-02-22 Tom Tromey <tom@tromey.com>
8924
8925 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
8926 * tui/tui-win.c (window_name_completer): Update comment.
8927 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
8928 Declare method.
8929 (class tui_layout_window) <replace_window>: Likewise.
8930 (class tui_layout_split) <replace_window>: Likewise.
8931 (tui_set_layout): Don't declare.
8932 (tui_set_initial_layout): Declare function.
8933 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
8934 (asm_regs_layout): New globals.
8935 (tui_current_layout, show_layout): Remove.
8936 (tui_set_layout, tui_add_win_to_layout): Rewrite.
8937 (find_layout, tui_apply_layout): New function.
8938 (layout_completer): Remove.
8939 (tui_next_layout): Reimplement.
8940 (tui_next_layout_command): New function.
8941 (tui_set_initial_layout, tui_prev_layout_command): New functions.
8942 (tui_regs_layout): Reimplement.
8943 (tui_regs_layout_command): New function.
8944 (extract_display_start_addr): Rewrite.
8945 (next_layout, prev_layout): Remove.
8946 (tui_layout_window::replace_window): New method.
8947 (tui_layout_split::replace_window): New method.
8948 (destroy_layout): New function.
8949 (layout_list): New global.
8950 (add_layout_command): New function.
8951 (initialize_layouts): Update.
8952 (tui_layout_command): New function.
8953 (_initialize_tui_layout): Install "layout" commands.
8954 * tui/tui-data.h (enum tui_layout_type): Remove.
8955 (tui_current_layout): Don't declare.
8956
0dbc2fc7
TT
89572020-02-22 Tom Tromey <tom@tromey.com>
8958
8959 * tui/tui-regs.c (tui_reg_layout): Remove.
8960 (tui_reg_command): Use tui_regs_layout.
8961 * tui/tui-layout.h (tui_reg_command): Declare.
8962 * tui/tui-layout.c (tui_reg_command): New function.
8963
5afe342e
TT
89642020-02-22 Tom Tromey <tom@tromey.com>
8965
8966 * tui/tui.c (tui_rl_delete_other_windows): Call
8967 tui_remove_some_windows.
8968 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
8969 Declare method.
8970 (class tui_layout_window) <remove_windows>: New method.
8971 (class tui_layout_split) <remove_windows>: Declare.
8972 (tui_remove_some_windows): Declare.
8973 * tui/tui-layout.c (tui_remove_some_windows): New function.
8974 (tui_layout_split::remove_windows): New method.
8975
427326a8
TT
89762020-02-22 Tom Tromey <tom@tromey.com>
8977
8978 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
8979 * tui/tui-layout.h (tui_next_layout): Declare.
8980 * tui/tui-layout.c (tui_next_layout): New function.
8981
3fe12b6d
TT
89822020-02-22 Tom Tromey <tom@tromey.com>
8983
8984 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
8985 correct coordinates.
8986
59b8b5d2
TT
89872020-02-22 Tom Tromey <tom@tromey.com>
8988
8989 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
8990 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
8991 DATA_WIN case.
8992
2a3d458b
TT
89932020-02-22 Tom Tromey <tom@tromey.com>
8994
8995 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
8996 TUI_DISASM_WIN, not tui_win_list.
8997
3f0cbb04
TT
89982020-02-22 Tom Tromey <tom@tromey.com>
8999
9000 * valprint.c (generic_val_print_enum_1)
9001 (val_print_type_code_flags): Style member names.
9002 * rust-lang.c (val_print_struct, rust_print_enum)
9003 (rust_print_struct_def, rust_internal_print_type): Style member
9004 names.
9005 * p-valprint.c (pascal_object_print_value_fields): Style member
9006 names. Only call fprintf_symbol_filtered for static members.
9007 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
9008 * f-valprint.c (f_val_print): Style member names.
9009 * f-typeprint.c (f_type_print_base): Style member names.
9010 * cp-valprint.c (cp_print_value_fields): Style member names. Only
9011 call fprintf_symbol_filtered for static members.
9012 (cp_print_class_member): Style member names.
9013 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
9014 member names.
9015 * ada-valprint.c (ada_print_scalar): Style enum names.
9016 (ada_val_print_enum): Likewise.
9017 * ada-typeprint.c (print_enum_type): Style enum names.
9018
d4d947ae
TT
90192020-02-21 Tom Tromey <tom@tromey.com>
9020
9021 * psympriv.h (struct partial_symtab): Update comment.
9022
e94e944b
TT
90232020-02-21 Tom Tromey <tromey@adacore.com>
9024
9025 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
9026 type is CORE_ADDR.
9027
1eb73179
TV
90282020-02-21 Tom de Vries <tdevries@suse.de>
9029
9030 PR gdb/25534
9031 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
9032 if dependencies[i]->user != NULL.
9033
4f180d53
AT
90342020-02-21 Ali Tamur <tamur@google.com>
9035
9036 * dwarf2/read.c (dwarf2_name): Add null check.
9037
22b6cd70
TT
90382020-02-20 Tom Tromey <tom@tromey.com>
9039
9040 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
9041 ">=", in binary search.
9042 (dwarf2_find_containing_comp_unit): New overload.
9043 (run_test): New self-test.
9044 (_initialize_dwarf2_read): Register new test.
9045
bd0cf5a6
NC
90462020-02-20 Nelson Chu <nelson.chu@sifive.com>
9047
9048 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
9049 * riscv-tdep.h: Likewise.
9050 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
9051 rv32-only CSR.
9052 * features/riscv/64bit-csr.xml: Regenerated.
9053
3f702acd
SDJ
90542020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9055 Tom Tromey <tom@tromey.com>
9056
9057 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
9058 of 'fputc_unfiltered'.
9059 (putchar_unfiltered): Call 'fputc_unfiltered'.
9060 (fputc_unfiltered): Call 'fputs_unfiltered'.
9061
d13c7322
AB
90622020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
9063
9064 * config.in: Regenerate.
9065 * configure: Regenerate.
9066 * configure.ac: Add --with-python-libdir option.
9067 * main.c: Use WITH_PYTHON_LIBDIR.
9068
869d8950
TT
90692020-02-19 Tom Tromey <tom@tromey.com>
9070
9071 * symtab.c (general_symbol_info::compute_and_set_names): Use
9072 obstack_strndup. Simplify call to symbol_set_demangled_name.
9073
298e9637
SM
90742020-02-19 Simon Marchi <simon.marchi@efficios.com>
9075
9076 * dwarf2/read.c (allocate_signatured_type_table,
9077 allocate_dwo_unit_table, allocate_type_unit_groups_table,
9078 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
9079 Remove objfile parameter, update all callers.
9080
08410482
DE
90812020-02-19 Doug Evans <dje@google.com>
9082
9083 PR rust/25535
9084 * rust-lang.c (rust_print_enum): Apply embedded_offset to
9085 rust_enum_variant calculation.
9086
dfdeeca1
TT
90872020-02-19 Tom Tromey <tromey@adacore.com>
9088
9089 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
9090
2ef5453b
TT
90912020-02-19 Tom Tromey <tromey@adacore.com>
9092
9093 * ada-lang.c (cache_symbol): Use obstack_strdup.
9094
9f1528a1
AB
90952020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9096
9097 * configure: Regenerate.
9098
d3c22fa8
TT
90992020-02-19 Tom Tromey <tromey@adacore.com>
9100
9101 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
9102 NULL check.
9103
bf84f706
MR
91042020-02-19 Maciej W. Rozycki <macro@wdc.com>
9105
9106 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
9107
d1c9b20f
AB
91082020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9109
9110 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
9111 if GDBSERVER is not defined.
9112 (riscv_tdesc_cache): Likewise, also store const target_desc.
9113 (STATIC_IN_GDB): Define.
9114 (riscv_create_target_description): Update declaration with
9115 STATIC_IN_GDB.
9116 (riscv_lookup_target_description): New function, only define if
9117 GDBSERVER is not defined.
9118 * arch/riscv.h (riscv_create_target_description): Declare only
9119 when GDBSERVER is defined.
9120 (riscv_lookup_target_description): New declaration when GDBSERVER
9121 is not defined.
9122 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
9123 (riscv_linux_read_features): ...this, and return
9124 riscv_gdbarch_features instead of target_desc.
9125 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
9126 (riscv_linux_read_description): Rename to...
9127 (riscv_linux_read_features): ...this.
9128 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9129 Update to use riscv_gdbarch_features and
9130 riscv_lookup_target_description.
9131 * riscv-tdep.c (riscv_find_default_target_description): Use
9132 riscv_lookup_target_description instead of
9133 riscv_create_target_description.
9134
373d7ac0
SM
91352020-02-18 Simon Marchi <simon.marchi@efficios.com>
9136
9137 * valprint.c (generic_val_print_enum_1): When printing a flag
9138 enum with value 0 and there is no enumerator with value 0, print
9139 just "0" instead of "(unknown: 0x0)".
9140
b29a2df0
SM
91412020-02-18 Simon Marchi <simon.marchi@efficios.com>
9142
9143 * valprint.c (generic_val_print_enum_1): Print unknown part of
9144 flag enum in hex.
9145
6740f0cc
SM
91462020-02-18 Simon Marchi <simon.marchi@efficios.com>
9147
9148 * dwarf2/read.c (update_enumeration_type_from_children): Allow
9149 flag enums to contain duplicate enumerators.
9150 * valprint.c (generic_val_print_enum_1): Update comment.
9151
edd45eb0
SM
91522020-02-18 Simon Marchi <simon.marchi@efficios.com>
9153
9154 * dwarf2/read.c: Include "count-one-bits.h".
9155 (update_enumeration_type_from_children): If an enumerator has
9156 multiple bits set, don't treat the enumeration as a "flag enum".
9157 * valprint.c (generic_val_print_enum_1): Assert that enumerators
9158 of flag enums have 0 or 1 bit set.
9159
6d0cf446
BE
91602020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
9161
9162 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
9163 conversion.
9164 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9165 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9166 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9167 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9168 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9169
7001c1b7
SM
91702020-02-18 Simon Marchi <simon.marchi@efficios.com>
9171
9172 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
9173
fdb61c6c
SM
91742020-02-14 Simon Marchi <simon.marchi@efficios.com>
9175
9176 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
9177 displaced_step_closure_up.
9178 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9179 (struct displaced_step_closure_up):
9180 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9181 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9182 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
9183 Likewise.
9184 * gdbarch.sh (displaced_step_copy_insn): Likewise.
9185 * gdbarch.c, gdbarch.h: Re-generate.
9186 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
9187 displaced_step_closure_up.
9188 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9189 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9190 * infrun.h (displaced_step_closure_up): New type alias.
9191 (struct displaced_step_inferior_state) <step_closure>: Change
9192 type to displaced_step_closure_up.
9193 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
9194 displaced_step_closure_up.
9195 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9196
a4a38eb4
TT
91972020-02-14 Tom Tromey <tom@tromey.com>
9198
9199 * minidebug.c (gnu_debug_key): New global.
9200 (find_separate_debug_file_in_section): Use it.
9201
e8217e61
SM
92022020-02-14 Simon Marchi <simon.marchi@efficios.com>
9203
9204 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
9205 std::unique_ptr.
9206 * gdbarch.c: Re-generate.
9207 * gdbarch.h: Re-generate.
9208 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
9209 change.
9210 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
9211 type to std::unique_ptr.
9212 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9213 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9214 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9215 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9216 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
9217 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9218 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9219 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9220 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9221
d8d83535
SM
92222020-02-14 Simon Marchi <simon.marchi@efficios.com>
9223
9224 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
9225 std::unique_ptr.
9226 (displaced_step_clear): Rename to...
9227 (displaced_step_reset): ... this. Just call displaced->reset ().
9228 (displaced_step_clear_cleanup): Rename to...
9229 (displaced_step_reset_cleanup): ... this.
9230 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
9231 (displaced_step_fixup): Likewise.
9232 (resume_1): Likewise.
9233 (handle_inferior_event): Restore child's memory before calling
9234 displaced_step_fixup on the parent.
9235 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
9236 to std::unique_ptr.
9237 <step_closure>: Change type to std::unique_ptr.
9238
5f661e03
SM
92392020-02-14 Simon Marchi <simon.marchi@efficios.com>
9240
9241 * arm-tdep.c: Include count-one-bits.h.
9242 (cleanup_block_store_pc): Use count_one_bits.
9243 (cleanup_block_load_pc): Use count_one_bits.
9244 (arm_copy_block_xfer): Use count_one_bits.
9245 (thumb2_copy_block_xfer): Use count_one_bits.
9246 (thumb_copy_pop_pc_16bit): Use count_one_bits.
9247 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
9248 (thumb_get_next_pcs_raw): Use count_one_bits.
9249 (arm_get_next_pcs_raw): Use count_one_bits_l.
9250 * arch/arm.c (bitcount): Remove.
9251 * arch/arm.h (bitcount): Remove.
9252
8084e579
TT
92532020-02-14 Tom Tromey <tromey@adacore.com>
9254
9255 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
9256 Update.
9257 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
9258 * dwarf2/loc.c (call_site_find_chain_1): Return
9259 unique_xmalloc_ptr.
9260 (call_site_find_chain): Likewise.
9261
258bf0ee
RB
92622020-02-14 Richard Biener <rguenther@suse.de>
9263
9264 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
9265 on expression with division operators.
9266
f98a8458
AKS
92672020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9268
9269 * MAINTAINERS (Write After Approval): Adding myself.
9270
d1437c0e
TT
92712020-02-12 Tom Tromey <tom@tromey.com>
9272
9273 * event-loop.c (event_data, gdb_event, event_handler_func):
9274 Remove.
9275
3d4560f7
TT
92762020-02-12 Tom Tromey <tom@tromey.com>
9277
9278 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
9279 (dwarf2_frame_objfile_data): Add comment.
9280 (find_comp_unit, set_comp_unit): New functions.
9281 (dwarf2_frame_find_fde): Use find_comp_unit.
9282 (dwarf2_build_frame_info): Use set_comp_unit.
9283
21982304
TT
92842020-02-12 Tom Tromey <tom@tromey.com>
9285
9286 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
9287 (comp_unit): Don't initialize objfile.
9288 (execute_cfa_program): Add text_offset parameter.
9289 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
9290 (dwarf2_frame_cache): Update.
9291 (dwarf2_build_frame_info): Don't set "objfile" member.
9292
4debb237
TT
92932020-02-12 Tom Tromey <tom@tromey.com>
9294
9295 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
9296 (decode_frame_entry): Likewise.
9297 (dwarf2_build_frame_info): Update.
9298
0d404d44
TT
92992020-02-12 Tom Tromey <tom@tromey.com>
9300
9301 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
9302 (decode_frame_entry_1): Use the comp_unit obstack.
9303
a7a3ae5c
TT
93042020-02-12 Tom Tromey <tom@tromey.com>
9305
9306 * dwarf2/frame.c (struct comp_unit): Add initializers and
9307 constructor.
9308 (dwarf2_frame_objfile_data): Store a comp_unit.
9309 (dwarf2_frame_find_fde): Update.
9310 (dwarf2_build_frame_info): Use "new".
9311
a9d65418
TT
93122020-02-12 Tom Tromey <tom@tromey.com>
9313
9314 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
9315 (dwarf2_fde_table): Typedef for std::vector.
9316 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
9317 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
9318 (decode_frame_entry): Update.
9319 (dwarf2_build_frame_info): Use "new".
9320
7559c217
CB
93212020-02-12 Christian Biesinger <cbiesinger@google.com>
9322
9323 * arm-tdep.c (arm_gdbarch_init): Update.
9324 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
9325 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
9326 have_neon, is_m>: Change to bool.
9327
aeefc73c
CB
93282020-02-12 Christian Biesinger <cbiesinger@google.com>
9329
9330 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
9331
d27b8e5f
TT
93322020-02-12 Tom Tromey <tom@tromey.com>
9333
9334 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
9335
cd5900f3
HD
93362020-02-12 Hannes Domani <ssbssa@yahoo.de>
9337
9338 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
9339 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
9340
f056b22b
TT
93412020-02-11 Tom Tromey <tom@tromey.com>
9342
9343 * psymtab.h: Update comment.
9344
f92ff6b5
TT
93452020-02-11 Tom Tromey <tom@tromey.com>
9346
9347 * gdb_obstack.h (struct auto_obstack): Use
9348 DISABLE_COPY_AND_ASSIGN.
9349
3fd6912b
TT
93502020-02-11 Tom Tromey <tom@tromey.com>
9351
9352 * dwarf2/frame.h (struct objfile): Don't forward declare.
9353
69ed9b74
CB
93542020-02-11 Christian Biesinger <cbiesinger@google.com>
9355
9356 * cris-tdep.c (cris_supply_gregset): Change signature to match
9357 what struct regset expects.
9358 (cris_regset): New struct.
9359 (fetch_core_registers): Remove.
9360 (cris_iterate_over_regset_sections): New function.
9361 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
9362 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
9363
bda874f6
CB
93642020-02-11 Christian Biesinger <cbiesinger@google.com>
9365
9366 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
9367 registers.
9368
754e1564
CB
93692020-02-11 Christian Biesinger <cbiesinger@google.com>
9370
9371 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
9372
8ddd8e0e
SM
93732020-02-11 Simon Marchi <simon.marchi@efficios.com>
9374
9375 * configure: Re-generate.
9376
898e7f60
SM
93772020-02-11 Simon Marchi <simon.marchi@efficios.com>
9378
9379 * configure: Re-generate.
9380
58df732b
SM
93812020-02-11 Simon Marchi <simon.marchi@efficios.com>
9382
9383 * acinclude: Update warning.m4 path.
9384 * warning.m4: Move to gdbsupport.
9385
da5bd37e
TT
93862020-02-11 Tom Tromey <tromey@adacore.com>
9387
9388 * remote.c (remote_console_output): Update.
9389 * printcmd.c (printf_command): Update.
9390 * event-loop.c (gdb_wait_for_event): Update.
9391 * linux-nat.c (sigchld_handler): Update.
9392 * remote-sim.c (gdb_os_write_stdout): Update.
9393 (gdb_os_flush_stdout): Update.
9394 (gdb_os_flush_stderr): Update.
9395 (gdb_os_write_stderr): Update.
9396 * exceptions.c (print_exception): Update.
9397 * remote-fileio.c (remote_fileio_func_read): Update.
9398 (remote_fileio_func_write): Update.
9399 * tui/tui.c (tui_enable): Update.
9400 * tui/tui-interp.c (tui_interp::init): Update.
9401 * utils.c (init_page_info): Update.
9402 (putchar_unfiltered, fputc_unfiltered): Update.
9403 (gdb_flush): Update.
9404 (emit_style_escape): Update.
9405 (flush_wrap_buffer, fputs_maybe_filtered): Update.
9406 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
9407 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
9408 (stderr_file::write): Update.
9409 (stderr_file::puts): Update.
9410 * ui-file.h (ui_file_isatty, ui_file_write)
9411 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
9412 (ui_file_puts): Don't declare.
9413
85f0dd3c
TV
94142020-02-10 Tom de Vries <tdevries@suse.de>
9415
9416 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
9417 sentinel to char *.
9418
2e927613
TV
94192020-02-09 Tom de Vries <tdevries@suse.de>
9420
9421 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
9422 filename if it matches "<artificial>".
9423
6bafc845
HD
94242020-02-09 Hannes Domani <ssbssa@yahoo.de>
9425
9426 * windows-tdep.c (struct enum_value_name): New struct.
9427 (create_enum): New function.
9428 (windows_get_siginfo_type): Create and use enum types.
9429
7928d571
HD
94302020-02-09 Hannes Domani <ssbssa@yahoo.de>
9431
9432 * NEWS: Mention $_siginfo support for Windows.
9433 * windows-nat.c (handle_exception): Set siginfo_er.
9434 (windows_nat_target::mourn_inferior): Reset siginfo_er.
9435 (windows_xfer_siginfo): New function.
9436 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
9437 * windows-tdep.c (struct windows_gdbarch_data): New struct.
9438 (init_windows_gdbarch_data): New function.
9439 (get_windows_gdbarch_data): New function.
9440 (windows_get_siginfo_type): New function.
9441 (windows_init_abi): Register windows_get_siginfo_type.
9442 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
9443
6751ebae
TT
94442020-02-08 Tom Tromey <tom@tromey.com>
9445
9446 * dwarf2/read.c (class cutu_reader) <cutu_reader,
9447 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
9448 <keep>: Declare method.
9449 <m_keep>: Remove member.
9450 <~cutu_reader>: Remove.
9451 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9452 (cutu_reader::cutu_reader): Update.
9453 (cutu_reader::keep): Rename from ~cutu_reader.
9454 (process_psymtab_comp_unit, build_type_psymtabs_1)
9455 (process_skeletonless_type_unit, load_partial_comp_unit)
9456 (load_full_comp_unit, dwarf2_read_addr_index)
9457 (read_signatured_type): Update.
9458
135f5437
TT
94592020-02-08 Tom Tromey <tom@tromey.com>
9460
9461 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
9462 "want_partial_unit" parameter.
9463 (process_psymtab_comp_unit): Change want_partial_unit to bool.
9464 Inline check for DW_TAG_partial_unit.
9465 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
9466
9f66ff1c
TT
94672020-02-08 Tom Tromey <tom@tromey.com>
9468
9469 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
9470 read.c.
9471 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
9472 read.c.
9473
c8a7a66f
TT
94742020-02-08 Tom Tromey <tom@tromey.com>
9475
9476 * dwarf2/read.c (read_address): Move to comp-unit.c.
9477 (dwarf2_rnglists_process, dwarf2_ranges_process)
9478 (read_attribute_value, dwarf_decode_lines_1)
9479 (var_decode_location, decode_locdesc): Update.
9480 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
9481 read.c. Remove "cu" parameter.
9482 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
9483 method.
9484
8266302d
TT
94852020-02-08 Tom Tromey <tom@tromey.com>
9486
9487 * dwarf2/read.c (read_attribute_value, read_indirect_string)
9488 (read_indirect_line_string): Update.
9489 * dwarf2/comp-unit.c (read_offset): Remove.
9490 (read_comp_unit_head): Update.
9491 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
9492 method.
9493 (read_offset): Don't declare.
9494
4057dfde
TT
94952020-02-08 Tom Tromey <tom@tromey.com>
9496
9497 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
9498 * dwarf2/read.c (struct comp_unit_head): Move to
9499 dwarf2/comp-unit.h.
9500 (enum class rcuh_kind): Move to comp-unit.h.
9501 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
9502 (read_comp_unit_head, error_check_comp_unit_head)
9503 (read_and_check_comp_unit_head): Move to comp-unit.c.
9504 (read_offset, dwarf_unit_type_name): Likewise.
9505 (create_debug_type_hash_table, read_cutu_die_from_dwo)
9506 (cutu_reader::cutu_reader, read_call_site_scope)
9507 (find_partial_die, follow_die_offset): Update.
9508 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
9509
24aa364d
TT
95102020-02-08 Tom Tromey <tom@tromey.com>
9511
9512 * dwarf2/read.c (read_offset_1): Move to leb.c.
9513 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
9514 (dwarf_decode_macro_bytes): Update.
9515 * dwarf2/leb.c (read_offset): Rename; move from read.c.
9516 * dwarf2/leb.h (read_offset): Declare.
9517
2c7d5afc
TT
95182020-02-08 Tom Tromey <tom@tromey.com>
9519
9520 * dwarf2/read.c (dwarf2_section_size): Remove.
9521 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
9522 Update.
9523 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
9524
4075cb26
TT
95252020-02-08 Tom Tromey <tom@tromey.com>
9526
9527 * dwarf2/read.c (read_initial_length): Move to leb.c.
9528 * dwarf2/leb.h (read_initial_length): Declare.
9529 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
9530 handle_nonstd parameter.
9531 * dwarf2/frame.c (read_initial_length): Remove.
9532 (decode_frame_entry_1): Update.
9533
09ba997f
TT
95342020-02-08 Tom Tromey <tom@tromey.com>
9535
9536 * dwarf2/loc.c (dwarf2_find_location_expression)
9537 (dwarf_evaluate_loc_desc::get_tls_address)
9538 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
9539 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
9540 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
9541 (dwarf2_compile_property_to_c)
9542 (dwarf2_loc_desc_get_symbol_read_needs)
9543 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
9544 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
9545 (loclist_describe_location, loclist_tracepoint_var_ref)
9546 (loclist_generate_c_location): Update.
9547 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
9548 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
9549 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
9550 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
9551 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
9552 (dwarf2_per_cu_data::addr_size)
9553 (dwarf2_per_cu_data::ref_addr_size)
9554 (dwarf2_per_cu_data::text_offset)
9555 (dwarf2_per_cu_data::addr_type): Now methods.
9556 (per_cu_header_read_in): Make per_cu "const".
9557 (dwarf2_version): Remove.
9558 (dwarf2_per_cu_data::int_type): Now a method.
9559 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
9560 (set_die_type, read_array_type, read_subrange_index_type)
9561 (read_tag_string_type, read_subrange_type): Update.
9562 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
9563 offset_size, ref_addr_size, text_offset, addr_type, version,
9564 objfile, int_type, addr_sized_int_type>: Declare methods.
9565
96c738c0
TT
95662020-02-08 Tom Tromey <tom@tromey.com>
9567
9568 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
9569 Move earlier.
9570
8fdd972c
TT
95712020-02-08 Tom Tromey <tom@tromey.com>
9572
9573 * dwarf2/read.h (dwarf_line_debug): Declare.
9574 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
9575 * dwarf2/read.c: Move line_header code to new files.
9576 (dwarf_line_debug): No longer static.
9577 * dwarf2/line-header.c: New file.
9578 * dwarf2/line-header.h: New file.
9579
03075812
TT
95802020-02-08 Tom Tromey <tom@tromey.com>
9581
9582 * dwarf2/read.c (struct line_header) <file_full_name,
9583 file_file_name>: Return unique_xmalloc_ptr.
9584 (line_header::file_file_name): Update.
9585 (line_header::file_full_name): Update.
9586 (dw2_get_file_names_reader): Update.
9587 (macro_start_file): Update.
9588
bb822404
TT
95892020-02-08 Tom Tromey <tom@tromey.com>
9590
9591 * dwarf2/read.c (struct line_header) <file_full_name,
9592 file_file_name>: Declare methods.
9593 (dw2_get_file_names_reader): Update.
9594 (file_file_name): Now a method.
9595 (file_full_name): Likewise.
9596 (macro_start_file): Update.
9597
009b64fc
TT
95982020-02-08 Tom Tromey <tom@tromey.com>
9599
9600 * dwarf2/read.c (dwarf_always_disassemble)
9601 (show_dwarf_always_disassemble): Move to loc.c.
9602 (_initialize_dwarf2_read): Move "always-disassemble" registration
9603 to loc.c.
9604 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
9605 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
9606 static.
9607 (show_dwarf_always_disassemble): Move from read.c.
9608 (_initialize_dwarf2loc): Move always-disassemble from read.c.
9609
5895093f
TT
96102020-02-08 Tom Tromey <tom@tromey.com>
9611
9612 * dwarf2/read.c (~dwarf2_per_objfile): Update.
9613 (create_quick_file_names_table): Return htab_up.
9614 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
9615 Update.
9616 * dwarf2/read.h (struct dwarf2_per_objfile)
9617 <quick_file_names_table>: Now htab_up.
9618
b3b32279
TT
96192020-02-08 Tom Tromey <tom@tromey.com>
9620
9621 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
9622
1d33d811
TT
96232020-02-08 Tom Tromey <tom@tromey.com>
9624
9625 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
9626 Rewrite.
9627 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
9628 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
9629 (abbrev_table::abbrev_table): No longer inline.
9630 (ABBREV_HASH_SIZE): Remove.
9631 (abbrev_table::m_abbrevs): Now an htab_up.
9632
86de1d91
TT
96332020-02-08 Tom Tromey <tom@tromey.com>
9634
9635 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
9636 (cutu_reader): Update.
9637 (build_type_psymtabs_1): Update.
9638 * dwarf2/abbrev.c (abbrev_table::read): Rename.
9639 (abbrev_table::alloc_abbrev): Update.
9640 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
9641 (abbrev_table::read): New static method, renamed from
9642 abbrev_table_read_table.
9643 (abbrev_table::alloc_abbrev)
9644 (abbrev_table::add_abbrev): Now private.
9645 (abbrev_table::abbrev_table): Now private.
9646 (abbrev_table::m_abbrev_obstack): Now private. Rename.
9647
0335378b
TT
96482020-02-08 Tom Tromey <tom@tromey.com>
9649
9650 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
9651 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
9652 htab_up.
9653
48b490f2
TT
96542020-02-08 Tom Tromey <tom@tromey.com>
9655
9656 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
9657 htab_up.
9658 (lookup_dwo_unit_in_dwp): Update.
9659 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
9660 on obstack.
9661
bc68fb19
TT
96622020-02-08 Tom Tromey <tom@tromey.com>
9663
9664 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
9665 obstack.
9666
d15acc42
TT
96672020-02-08 Tom Tromey <tom@tromey.com>
9668
9669 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
9670 line_header_hash.
9671 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
9672 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
9673 Change type to htab_up.
9674
eaa5fa8b
TT
96752020-02-08 Tom Tromey <tom@tromey.com>
9676
9677 * dwarf2/read.c (allocate_type_unit_groups_table): Return
9678 htab_up. Don't allocate on obstack.
9679 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
9680 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
9681 Change type to htab_up.
9682
b0b6a987
TT
96832020-02-08 Tom Tromey <tom@tromey.com>
9684
9685 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
9686 Change type to htab_up.
9687 * dwarf2/read.c (create_signatured_type_table_from_index)
9688 (create_signatured_type_table_from_debug_names)
9689 (create_all_type_units, add_type_unit)
9690 (lookup_dwo_signatured_type, lookup_signatured_type)
9691 (process_skeletonless_type_unit): Update.
9692 (create_debug_type_hash_table, create_debug_types_hash_table):
9693 Change type of types_htab.
9694 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
9695 htab_up. Don't allocate on obstack.
9696 (create_cus_hash_table): Change type of cus_htab parameter.
9697 (struct dwo_file) <cus, tus>: Now htab_up.
9698 (lookup_dwo_signatured_type, lookup_dwo_cutu)
9699 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
9700 (queue_and_load_all_dwo_tus): Update.
9701 * dwarf2/index-write.c (write_gdbindex): Update.
9702 (write_debug_names): Update.
9703
39856def
TT
97042020-02-08 Tom Tromey <tom@tromey.com>
9705
9706 * dwarf2/read.h (struct dwarf2_queue_item): Move from
9707 dwarf2/read.c. Remove "next" member. Add constructor ntad
9708 destructor.
9709 (struct dwarf2_per_objfile) <queue>: New member.
9710 * dwarf2/read.c (struct dwarf2_queue_item): Move to
9711 dwarf2/read.h.
9712 (dwarf2_queue, dwarf2_queue_tail): Remove.
9713 (class dwarf2_queue_guard): Add parameter to constructor. Use
9714 DISABLE_COPY_AND_ASSIGN.
9715 <m_per_objfile>: New member.
9716 <~dwarf2_queue_guard>: Rewrite.
9717 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
9718 Update.
9719 (~dwarf2_queue_item): New.
9720
3e225074
TT
97212020-02-08 Tom Tromey <tom@tromey.com>
9722
9723 * dwarf2/read.c (struct die_info) <has_children>: New member.
9724 (dw2_get_file_names_reader): Remove has_children.
9725 (dw2_get_file_names): Update.
9726 (read_cutu_die_from_dwo): Remove has_children.
9727 (cutu_reader::init_tu_and_read_dwo_dies)
9728 (cutu_reader::cutu_reader): Update.
9729 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
9730 Remove has_children.
9731 (build_type_psymtabs_1, process_skeletonless_type_unit)
9732 (load_partial_comp_unit, load_full_comp_unit): Update.
9733 (create_dwo_cu_reader): Remove has_children.
9734 (create_cus_hash_table, read_die_and_children): Update.
9735 (read_full_die_1,read_full_die): Remove has_children.
9736 (read_signatured_type): Update.
9737 (class cutu_reader) <has_children>: Remove.
9738
82ca8957
TT
97392020-02-08 Tom Tromey <tom@tromey.com>
9740
9741 * dwarf2/expr.c: Rename from dwarf2expr.c.
9742 * dwarf2/expr.h: Rename from dwarf2expr.h.
9743 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
9744 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
9745 * dwarf2/frame.c: Rename from dwarf2-frame.c.
9746 * dwarf2/frame.h: Rename from dwarf2-frame.h.
9747 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
9748 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
9749 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
9750 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
9751 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
9752 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
9753 * dwarf2/loc.c: Rename from dwarf2loc.c.
9754 * dwarf2/loc.h: Rename from dwarf2loc.h.
9755 * dwarf2/read.c: Rename from dwarf2read.c.
9756 * dwarf2/read.h: Rename from dwarf2read.h.
9757 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
9758 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
9759 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
9760 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
9761 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
9762 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
9763 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
9764 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
9765 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
9766 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
9767 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
9768 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
9769 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
9770 Update.
9771 * Makefile.in (COMMON_SFILES): Update.
9772 (HFILES_NO_SRCDIR): Update.
9773
9e35d499
TT
97742020-02-08 Tom Tromey <tom@tromey.com>
9775
9776 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
9777 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
9778
1eba2311
TT
97792020-02-08 Tom Tromey <tom@tromey.com>
9780
9781 * dwarf2read.h (struct die_info): Don't declare.
9782
e41c2da2
TT
97832020-02-08 Tom Tromey <tom@tromey.com>
9784
9785 * dwarf2read.h (die_info_ptr): Remove typedef.
9786
4fc6c0d5
TT
97872020-02-08 Tom Tromey <tom@tromey.com>
9788
9789 * dwarf2read.c (read_call_site_scope)
9790 (handle_data_member_location, dwarf2_add_member_fn)
9791 (mark_common_block_symbol_computed, read_common_block)
9792 (attr_to_dynamic_prop, partial_die_info::read)
9793 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
9794 (dwarf2_symbol_mark_computed, set_die_type): Update.
9795 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
9796 method.
9797 (attr_form_is_block): Don't declare.
9798 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
9799
cd6c91b4
TT
98002020-02-08 Tom Tromey <tom@tromey.com>
9801
9802 * dwarf2read.c (dwarf2_find_base_address, )
9803 (read_call_site_scope, rust_containing_type)
9804 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
9805 (handle_data_member_location, dwarf2_add_member_fn)
9806 (get_alignment, read_structure_type, process_structure_scope)
9807 (mark_common_block_symbol_computed, read_common_block)
9808 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
9809 (partial_die_info::read, read_attribute_value, new_symbol)
9810 (lookup_die_type, dwarf2_get_ref_die_offset)
9811 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
9812 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
9813 (dwarf2_symbol_mark_computed): Update.
9814 * dwarf2/attribute.h (struct attribute) <value_as_address,
9815 form_is_section_offset, form_is_constant, form_is_ref>: Declare
9816 methods.
9817 (value_as_address, attr_form_is_section_offset)
9818 (attr_form_is_constant, attr_form_is_ref): Don't declare.
9819 * dwarf2/attribute.c (attribute::value_as_address)
9820 (attribute::form_is_section_offset, attribute::form_is_constant)
9821 (attribute::form_is_ref): Now methods.
9822
162dce55
TT
98232020-02-08 Tom Tromey <tom@tromey.com>
9824
9825 * dwarf2read.c (struct attribute, DW_STRING)
9826 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
9827 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
9828 (attr_form_is_block, attr_form_is_section_offset)
9829 (attr_form_is_constant, attr_form_is_ref): Move.
9830 * dwarf2/attribute.h: New file.
9831 * dwarf2/attribute.c: New file, from dwarf2read.c.
9832 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
9833
3054dd54
TT
98342020-02-08 Tom Tromey <tom@tromey.com>
9835
9836 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
9837 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
9838 Move.
9839 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
9840 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
9841 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
9842 abbrev.c.
9843 * dwarf2/abbrev.h: New file.
9844 * dwarf2/abbrev.c: New file, from dwarf2read.c.
9845 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
9846
96b79293
TT
98472020-02-08 Tom Tromey <tom@tromey.com>
9848
9849 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
9850 (dwarf2_section_size, dwarf2_get_section_info)
9851 (create_signatured_type_table_from_debug_names)
9852 (create_addrmap_from_aranges, read_debug_names_from_section)
9853 (get_gdb_index_contents_from_section, read_comp_unit_head)
9854 (error_check_comp_unit_head, read_abbrev_offset)
9855 (create_debug_type_hash_table, init_cu_die_reader)
9856 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
9857 (read_comp_units_from_section, create_cus_hash_table)
9858 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
9859 (create_dwp_v2_section, dwarf2_rnglists_process)
9860 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
9861 (abbrev_table_read_table, read_indirect_string_at_offset_from)
9862 (read_indirect_string_from_dwz, read_addr_index_1)
9863 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
9864 (dwarf_decode_macro_bytes, dwarf_decode_macros)
9865 (fill_in_loclist_baton): Update.
9866 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
9867 get_containing_section, get_bfd_owner, get_bfd_section,
9868 get_file_name, get_id, get_flags, empty, read>: Declare methods.
9869 (dwarf2_read_section, get_section_name, get_section_file_name)
9870 (get_containing_section, get_section_bfd_owner)
9871 (get_section_bfd_section, get_section_name, get_section_file_name)
9872 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
9873 declare.
9874 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
9875 (dwarf2_section_info::get_bfd_owner)
9876 (dwarf2_section_info::get_bfd_section)
9877 (dwarf2_section_info::get_name)
9878 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
9879 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
9880 (dwarf2_section_info::read): Now methods.
9881 * dwarf-index-write.c (class debug_names): Update.
9882
2c86cff9
TT
98832020-02-08 Tom Tromey <tom@tromey.com>
9884
9885 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
9886 Move to dwarf2/section.h.
9887 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
9888 (get_section_bfd_section, get_section_name)
9889 (get_section_file_name, get_section_id, get_section_flags)
9890 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
9891 dwarf2/section.c.
9892 * dwarf2/section.h: New file.
9893 * dwarf2/section.c: New file, from dwarf2read.c.
9894 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
9895
f4382c45
TT
98962020-02-08 Tom Tromey <tom@tromey.com>
9897
9898 * dwarf2read.h (read_unsigned_leb128): Don't declare.
9899 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
9900 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
9901 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
9902 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
9903 * dwarf2/leb.h: New file, from dwarf2read.c.
9904 * dwarf2/leb.c: New file, from dwarf2read.c.
9905 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
9906 Remove.
9907 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
9908 (COMMON_SFILES): Add dwarf2/leb.c.
9909
01840b7a
JB
99102020-02-08 Joel Brobecker <brobecker@adacore.com>
9911
9912 GDB 9.1 released.
9913
dfcb27e4
IB
99142020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9915
9916 PR gdb/25190:
aac66a4c
SM
9917 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
9918 * gdb/remote.c (remote_console_output): Update.
9919 * gdb/ui-file.c (fputs_unfiltered): Rename to...
9920 (ui_file_puts): ...this.
9921 * gdb/ui-file.h (ui_file_puts): Add declaration.
9922 * gdb/utils.c (emit_style_escape): Update.
9923 (flush_wrap_buffer): Update.
9924 (fputs_maybe_filtered): Update.
9925 (fputs_unfiltered): Add function.
dfcb27e4 9926
faa17681
IB
99272020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9928
aac66a4c
SM
9929 * gdb/event-loop.c (gdb_wait_for_event): Update.
9930 * gdb/printcmd.c (printf_command): Update.
9931 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
9932 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
9933 (gdb_os_flush_stderr): Update.
9934 * gdb/remote.c (remote_console_output): Update.
9935 * gdb/ui-file.c (gdb_flush): Rename to...
9936 (ui_file_flush): ...this.
9937 (stderr_file::write): Update.
9938 (stderr_file::puts): Update.
9939 * gdb/ui-file.h (gdb_flush): Rename to...
9940 (ui_file_flush): ...this.
9941 * gdb/utils.c (gdb_flush): Add function.
9942 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 9943
5abbbe1d
TT
99442020-02-07 Tom Tromey <tromey@adacore.com>
9945
9946 PR breakpoints/24915:
9947 * source.c (find_and_open_source): Do not check basenames_may_differ.
9948
919adfe8
TT
99492020-02-07 Tom Tromey <tom@tromey.com>
9950
9951 * README: Update gdbserver documentation.
9952 * gdbserver: Move to top level.
9953 * configure.tgt (build_gdbserver): Remove.
9954 * configure.ac: Remove --enable-gdbserver.
9955 * configure: Rebuild.
9956 * Makefile.in (distclean): Don't mention gdbserver.
9957
1d5d29e7
SV
99582020-02-06 Shahab Vahedi <shahab@synopsys.com>
9959
9960 * source-cache.c (source_cache::ensure): Surround
9961 get_plain_source_lines with a try/catch.
9962 (source_cache::get_line_charpos): Get rid of try/catch
9963 and only check for the return value of "ensure".
9964 * tui/tui-source.c (tui_source_window::set_contents):
9965 Simplify "nlines" calculation.
9966
6eb1129c
SV
99672020-02-06 Shahab Vahedi <shahab@synopsys.com>
9968
9969 * MAINTAINERS (Write After Approval): Add myself.
9970
c6a42d11
CB
99712020-02-05 Christian Biesinger <cbiesinger@google.com>
9972
9973 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
9974 function call.
9975
c8ecdda6
CB
99762020-02-05 Christian Biesinger <cbiesinger@google.com>
9977
9978 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
9979
f6480e70
MR
99802020-02-05 Maciej W. Rozycki <macro@wdc.com>
9981
9982 * nat/riscv-linux-tdesc.h: New file.
9983 * nat/riscv-linux-tdesc.c: New file, taking code from...
9984 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9985 ... here.
9986 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
9987 NATDEPFILES.
9988
dcc9fbc6
AB
99892020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
9990
9991 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
9992 we don't set the fake simulator ptid to the null_ptid.
9993
719546c4
SM
99942020-02-03 Simon Marchi <simon.marchi@efficios.com>
9995
9996 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
9997 * gdbthread.h (class thread_info) <resumed>: Likewise.
9998 * infrun.c (resume_1): Likewise.
9999 (proceed): Likewise.
10000 (infrun_thread_stop_requested): Likewise.
10001 (stop_all_threads): Likewise.
10002 (handle_inferior_event): Likewise.
10003 (restart_threads): Likewise.
10004 (finish_step_over): Likewise.
10005 (keep_going_stepped_thread): Likewise.
10006 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
10007 (linux_handle_extended_wait): Likewise.
10008 * record-btrace.c (get_thread_current_frame_id): Likewise.
10009 * record-full.c (record_full_wait_1): Likewise.
10010 * remote.c (remote_target::process_initial_stop_replies): Likewise.
10011 * target.c (target_resume): Likewise.
10012 * thread.c (set_running_thread): Likewise.
10013
e409c542
AKS
100142020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10015
10016 * f-valprint.c (f77_print_array_1): Changed datatype of index
10017 variable to LONGEST from int to enable it to contain bound
10018 values correctly.
10019
ee98c0da
MR
100202020-02-03 Maciej W. Rozycki <macro@wdc.com>
10021
10022 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
10023 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
10024 offsets according to FLEN determined.
10025 (riscv_linux_nat_target::read_description): Determine FLEN
10026 dynamically.
10027 (riscv_linux_nat_target::fetch_registers): Size regset buffer
10028 according to FLEN determined.
10029 (riscv_linux_nat_target::store_registers): Likewise.
10030
aa66aac4
SV
100312020-02-01 Shahab Vahedi <shahab@synopsys.com>
10032
10033 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
10034 when reg->group is empty and reggroup is not.
10035
fd9faca8
TT
100362020-01-31 Tom Tromey <tromey@adacore.com>
10037
10038 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
10039 Call beneath target's mourn_inferior after unpushing.
10040
42330a68
AB
100412020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10042
10043 PR tui/9765
10044 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
10045 have enough lines to fill the screen, still return the lowest
10046 address we found.
10047
7a27a45b
AB
100482020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10049
10050 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
10051 '-', '<', and '>' commands.
10052
c47f70e2
PA
100532020-01-29 Pedro Alves <palves@redhat.com>
10054 Sergio Durigan Junior <sergiodj@redhat.com>
10055
10056 * infcmd.c (construct_inferior_arguments): Assert that
10057 'argc' is greater than 0.
10058
5133a315
LM
100592020-01-29 Luis Machado <luis.machado@linaro.org>
10060
10061 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
10062 (BRK_INSN_MASK): Define to 0xd4200000.
10063 (aarch64_program_breakpoint_here_p): New function.
10064 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
10065 * arch-utils.c (default_program_breakpoint_here_p): Moved from
10066 breakpoint.c.
10067 * arch-utils.h (default_program_breakpoint_here_p): Moved from
10068 breakpoint.h
10069 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
10070 call gdbarch_program_breakpoint_here_p.
10071 (program_breakpoint_here): Moved to arch-utils.c, renamed to
10072 default_program_breakpoint_here_p, changed return type to bool and
10073 simplified.
10074 * breakpoint.h (program_breakpoint_here): Moved prototype to
10075 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
10076 return type to bool.
10077 * gdbarch.c: Regenerate.
10078 * gdbarch.h: Regenerate.
10079 * gdbarch.sh (program_breakpoint_here_p): New method.
10080 * infrun.c (handle_signal_stop): Call
10081 gdbarch_program_breakpoint_here_p.
10082
168f8c6b
TT
100832020-01-26 Tom Tromey <tom@tromey.com>
10084
10085 * ctfread.c (struct ctf_fp_info): Reindent.
10086 (_initialize_ctfread): Remove.
10087
128a391f
TT
100882020-01-26 Tom Tromey <tom@tromey.com>
10089
10090 * psymtab.c (partial_map_expand_apply)
10091 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
10092 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
10093 (psym_print_stats, psym_expand_symtabs_for_function)
10094 (psym_map_symbol_filenames, psym_map_matching_symbols)
10095 (psym_expand_symtabs_matching)
10096 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
10097 (maintenance_check_psymtabs): Use new methods.
10098 * psympriv.h (struct partial_symtab) <readin_p,
10099 get_compunit_symtab>: New methods.
10100 <readin, compunit_symtab>: Remove members.
10101 (struct standard_psymtab): New.
10102 (struct legacy_psymtab): Derive from standard_psymtab.
10103 * dwarf2read.h (struct dwarf2_psymtab): Derive from
10104 standard_psymtab.
10105 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
10106
0494dbec
TT
101072020-01-26 Tom Tromey <tom@tromey.com>
10108
10109 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
10110 read_dependencies. Add assert.
10111 * psymtab.c (partial_symtab::read_dependencies): New method.
10112 * psympriv.h (struct partial_symtab) <read_dependencies>: New
10113 method.
10114 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
10115 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
10116 read_dependencies.
10117 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
10118 Add assert.
10119
8566b89b
TT
101202020-01-26 Tom Tromey <tom@tromey.com>
10121
10122 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
10123 Call expand_psymtab.
10124 (xcoff_read_symtab): Call expand_psymtab.
10125 (xcoff_start_psymtab, xcoff_end_psymtab): Set
10126 legacy_expand_psymtab.
10127 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
10128 method.
10129 (struct legacy_psymtab) <expand_psymtab>: Implement.
10130 <legacy_expand_psymtab>: New member.
10131 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
10132 (parse_partial_symbols): Set legacy_expand_psymtab.
10133 (psymtab_to_symtab_1): Change argument order. Call
10134 expand_psymtab.
10135 (new_psymtab): Set legacy_expand_psymtab.
10136 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
10137 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
10138 expand_psymtab.
10139 (dwarf2_psymtab::expand_psymtab): Rename from
10140 psymtab_to_symtab_1. Call expand_psymtab.
10141 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
10142 (dbx_end_psymtab): Likewise.
10143 (dbx_psymtab_to_symtab_1): Change argument order. Call
10144 expand_psymtab.
10145 (dbx_read_symtab): Call expand_psymtab.
10146 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
10147 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
10148 (ctf_psymtab::read_symtab): Call expand_psymtab.
10149
077cbab2
TT
101502020-01-26 Tom Tromey <tom@tromey.com>
10151
10152 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
10153 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
10154 messages.
10155 * mdebugread.c (mdebug_read_symtab): Remove prints.
10156 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
10157 assert.
10158 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
10159
891813be
TT
101602020-01-26 Tom Tromey <tom@tromey.com>
10161
10162 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
10163 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
10164 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
10165 legacy_symtab.
10166 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
10167 * psymtab.c (psymtab_to_symtab): Call method.
10168 (dump_psymtab): Update.
10169 * psympriv.h (struct partial_symtab): Add virtual destructor.
10170 <read_symtab>: New method.
10171 (struct legacy_symtab): New.
10172 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
10173 (struct pst_map) <pst>: Now a legacy_psymtab.
10174 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
10175 (new_psymtab): Use legacy_psymtab.
10176 * dwarf2read.h (struct dwarf2_psymtab): New.
10177 (struct dwarf2_per_cu_data) <psymtab>: Use it.
10178 * dwarf2read.c (dwarf2_create_include_psymtab)
10179 (dwarf2_build_include_psymtabs, create_type_unit_group)
10180 (create_partial_symtab, process_psymtab_comp_unit_reader)
10181 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
10182 (set_partial_user): Use dwarf2_psymtab.
10183 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
10184 (psymtab_to_symtab_1, process_full_comp_unit)
10185 (process_full_type_unit, dwarf2_ranges_read)
10186 (dwarf2_get_pc_bounds, psymtab_include_file_name)
10187 (dwarf_decode_lines): Use dwarf2_psymtab.
10188 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
10189 (add_address_entry_worker, write_one_signatured_type)
10190 (recursively_count_psymbols, recursively_write_psymbols)
10191 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
10192 (write_debug_names): Likewise.
10193 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
10194 <pst>: Now a legacy_psymtab.
10195 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
10196 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
10197 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
10198 * ctfread.c (struct ctf_psymtab): New.
10199 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
10200 ctf_psymtab.
10201 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
10202 (create_partial_symtab): Return a ctf_psymtab.
10203 (scan_partial_symbols): Update.
10204
c3693a1d
TT
102052020-01-26 Tom Tromey <tom@tromey.com>
10206
10207 * xcoffread.c (xcoff_start_psymtab): Use new.
10208 * psymtab.c (partial_symtab::partial_symtab): New constructor,
10209 renamed from start_psymtab_common.
10210 * psympriv.h (struct partial_symtab): Add new constructor.
10211 (start_psymtab_common): Don't declare.
10212 * mdebugread.c (parse_partial_symbols): Use new.
10213 * dwarf2read.c (create_partial_symtab): Use new.
10214 * dbxread.c (start_psymtab): Use new.
10215 * ctfread.c (create_partial_symtab): Use new.
10216
32caafd0
TT
102172020-01-26 Tom Tromey <tom@tromey.com>
10218
10219 * xcoffread.c (xcoff_end_psymtab): Use new.
10220 * psymtab.c (start_psymtab_common): Use new.
10221 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
10222 Update.
10223 * psympriv.h (struct partial_symtab): Add parameters to
10224 constructor. Don't inline.
10225 (allocate_psymtab): Don't declare.
10226 * mdebugread.c (new_psymtab): Use new.
10227 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
10228 * dbxread.c (dbx_end_psymtab): Use new.
10229
abaa2f23
TT
102302020-01-26 Tom Tromey <tom@tromey.com>
10231
10232 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
10233 allocate_psymtab. Update documentation.
10234 * psymtab.c (psymtab_storage::install_psymtab): Rename from
10235 allocate_psymtab. Do not use new.
10236 (allocate_psymtab): Use new. Update.
10237
6d94535f
TT
102382020-01-26 Tom Tromey <tom@tromey.com>
10239
10240 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
10241 * psymtab.c (psym_print_stats): Update.
10242 * psympriv.h (struct partial_symtab) <readin,
10243 psymtabs_addrmap_supported, anonymous>: Now bool.
10244 * mdebugread.c (psymtab_to_symtab_1): Update.
10245 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
10246 (build_type_psymtabs_reader, psymtab_to_symtab_1)
10247 (process_full_comp_unit, process_full_type_unit): Update.
10248 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
10249 * ctfread.c (psymtab_to_symtab): Update.
10250
6f17252b
TT
102512020-01-26 Tom Tromey <tom@tromey.com>
10252
10253 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
10254 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
10255 * psymtab.c (psymtab_storage): Delete psymtabs.
10256 (psymtab_storage::allocate_psymtab): Use new.
10257 (psymtab_storage::discard_psymtab): Use delete.
10258 * psympriv.h (struct partial_symtab): Add constructor and
10259 initializers.
10260
f6f1cebc
TT
102612020-01-26 Tom Tromey <tom@tromey.com>
10262
10263 * machoread.c: Do not include psympriv.h.
10264
e47e48f6
PW
102652020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10266
10267 * NEWS: Mention the new option and the set/show commands.
10268
a2fedca9
PW
102692020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10270
10271 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
10272 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
10273 (validate_exec_file): New variables, enums, functions.
10274 (exec_file_locate_attach, print_section_info): Style the filenames.
10275 (_initialize_exec): Install show_exec_file_mismatch_command and
10276 set_exec_file_mismatch_command.
10277 * gdbcore.h (validate_exec_file): Declare.
10278 * infcmd.c (attach_command): Call validate_exec_file.
10279 * remote.c ( remote_target::remote_add_inferior): Likewise.
10280
7ffa82e1
AB
102812020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10282
10283 * frame.c (find_frame_sal): Move call to get_next_frame into more
10284 inner scope.
10285 * inline-frame.c (inilne_state) <inline_state>: Update argument
10286 types.
10287 (inilne_state) <skipped_symbol>: Rename to...
10288 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
10289 (skip_inline_frames): Build vector of skipped symbols and use this
10290 to reate the inline_state.
10291 (inline_skipped_symbol): Add a comment and some assertions, fetch
10292 skipped symbol from the list.
10293
3d92a3e3
AB
102942020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10295
10296 * buildsym.c (lte_is_less_than): Delete.
10297 (buildsym_compunit::end_symtab_with_blockvector): Create local
10298 lambda function to sort line table entries, and use
10299 std::stable_sort instead of std::sort.
10300 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
10301 markers when looking for a previous line.
10302
94a72be7
AB
103032020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10304
10305 * dwarf2read.c (lnp_state_machine::record_line): Include
10306 end_sequence parameter in debug print out. Record the line if we
10307 are at an end_sequence marker even if it's not the start of a
10308 statement.
10309 * symmisc.c (maintenance_print_one_line_table): Print end of
10310 sequence markers with 'END' not '0'.
10311
53af73bf
PA
103122020-01-24 Pedro Alves <palves@redhat.com>
10313
10314 PR gdb/25410
10315 * thread.c (scoped_restore_current_thread::restore): Use
10316 switch_to_inferior_no_thread.
10317 * exec.c: Include "progspace-and-thread.h".
10318 (add_target_sections, remove_target_sections):
10319 scoped_restore_current_pspace_and_thread instead of
10320 scoped_restore_current_thread.
10321 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
10322 and aspace to the inferior before calling clone_program_space.
10323 Remove stale comment.
10324
3050c6f4
CB
103252020-01-24 Christian Biesinger <cbiesinger@google.com>
10326
10327 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
10328 (arm_netbsd_nat_target::fetch_registers): ...this.
10329 (arm_nbsd_nat_target::store_registers): Rename to...
10330 (arm_netbsd_nat_target::store_registers): ...this.
10331
73685c7e
CB
103322020-01-24 Christian Biesinger <cbiesinger@google.com>
10333
10334 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10335 register_t.
10336
89203d40
CB
103372020-01-24 Christian Biesinger <cbiesinger@google.com>
10338
10339 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
10340 Update comment.
10341 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
10342 Likewise.
10343 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
10344 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
10345 the correct replacement (iterate_over_regset_sections).
10346 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
10347 Update comment.
10348
1ba1ac88
AB
103492020-01-24 Graham Markall <graham.markall@embecosm.com>
10350
10351 PR gdb/23718
10352 * gdb/python/python.c (execute_gdb_command): Call
10353 async_enable_stdin in catch block.
10354
f3364a6d
AB
103552020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10356
10357 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
10358 SWITCH_THRU_ALL_UIS.
10359
733d0a67
AB
103602020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10361
10362 PR tui/9765
10363 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
10364 comment, add extra parameter, and update to store previous symbol
10365 when appropriate.
10366 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
10367 add extra parameter.
10368 * tui/tui-disasm.c (tui_disassemble): Update header comment,
10369 remove unneeded parameter, add try/catch around gdb_print_insn,
10370 rewrite to add items to asm_lines vector.
10371 (tui_find_backward_disassembly_start_address): New function.
10372 (tui_find_disassembly_address): Updated throughout.
10373 (tui_disasm_window::set_contents): Update for changes to
10374 tui_disassemble.
10375 (tui_disasm_window::do_scroll_vertical): No need to adjust the
10376 number of lines to scroll.
10377
b3b3bada
SM
103782020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
10379
10380 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
10381 (SECT_OFF_DATA): Likewise.
10382 (SECT_OFF_RODATA): Likewise.
10383 (SECT_OFF_TEXT): Likewise.
10384 (SECT_OFF_BSS): Likewise.
10385 (struct objfile) <text_section_offset, data_section_offset>: New
10386 methods.
10387 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
10388 objfile::text_section_offset.
10389 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
10390 * coffread.c (coff_symtab_read): Likewise.
10391 (enter_linenos): Likewise.
10392 (process_coff_symbol): Likewise.
10393 * ctfread.c (get_objfile_text_range): Likewise.
10394 * dtrace-probe.c (dtrace_probe::get_relocated_address):
10395 Use objfile::data_section_offset.
10396 * dwarf2-frame.c (execute_cfa_program): Use
10397 objfile::text_section_offset.
10398 (dwarf2_frame_find_fde): Likewise.
10399 * dwarf2read.c (create_addrmap_from_index): Likewise.
10400 (create_addrmap_from_aranges): Likewise.
10401 (dw2_find_pc_sect_compunit_symtab): Likewise.
10402 (process_psymtab_comp_unit_reader): Likewise.
10403 (add_partial_symbol): Likewise.
10404 (add_partial_subprogram): Likewise.
10405 (process_full_comp_unit): Likewise.
10406 (read_file_scope): Likewise.
10407 (read_func_scope): Likewise.
10408 (read_lexical_block_scope): Likewise.
10409 (read_call_site_scope): Likewise.
10410 (dwarf2_rnglists_process): Likewise.
10411 (dwarf2_ranges_process): Likewise.
10412 (dwarf2_ranges_read): Likewise.
10413 (dwarf_decode_lines_1): Likewise.
10414 (new_symbol): Likewise.
10415 (dwarf2_fetch_die_loc_sect_off): Likewise.
10416 (dwarf2_per_cu_text_offset): Likewise.
10417 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
10418 * hppa-tdep.c (read_unwind_info): Likewise.
10419 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
10420 * psympriv.h (struct partial_symtab): Likewise.
10421 * psymtab.c (find_pc_sect_psymtab): Likewise.
10422 * solib-svr4.c (enable_break): Likewise.
10423 * stap-probe.c (relocate_address): Use
10424 objfile::data_section_offset.
10425 * xcoffread.c (enter_line_range): Use
10426 objfile::text_section_offset.
10427 (read_xcoff_symtab): Likewise.
10428
ab53f382
SM
104292020-01-23 Simon Marchi <simon.marchi@efficios.com>
10430
10431 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
10432 declaration to narrower scopes.
10433
e7eee665
SM
104342020-01-23 Simon Marchi <simon.marchi@efficios.com>
10435
10436 * darwin-nat.h (struct darwin_exception_msg, enum
10437 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
10438 Move up.
10439 (class darwin_nat_target) <wait_1, check_new_threads,
10440 decode_exception_message, decode_message, stop_inferior,
10441 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
10442 * darwin-nat.c (darwin_check_new_threads): Rename to...
10443 (darwin_nat_target::check_new_threads): ... this.
10444 (darwin_suspend_inferior_it): Remove.
10445 (darwin_decode_exception_message): Rename to...
10446 (darwin_nat_target::decode_exception_message): ... this.
10447 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
10448 (darwin_decode_message): Rename to...
10449 (darwin_nat_target::decode_message): ... this.
10450 (cancel_breakpoint): Rename to...
10451 (darwin_nat_target::cancel_breakpoint): ... this.
10452 (darwin_wait): Rename to...
10453 (darwin_nat_target::wait_1): ... this. Use range-based for loop
10454 instead of iterate_over_inferiors.
10455 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
10456 (darwin_stop_inferior): Rename to...
10457 (darwin_nat_target::stop_inferior): ... this.
10458 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
10459 (darwin_init_thread_list): Rename to...
10460 (darwin_nat_target::init_thread_list): ... this.
10461 (darwin_ptrace_him): Rename to...
10462 (darwin_nat_target::ptrace_him): ... this.
10463 (darwin_nat_target::create_inferior): Pass lambda function to
10464 fork_inferior.
10465 (darwin_nat_target::detach): Call stop_inferior instead of
10466 darwin_stop_inferior.
10467 * fork-inferior.h (fork_inferior): Change init_trace_fun
10468 parameter to gdb::function_view.
10469 * fork-inferior.c (fork_inferior): Likewise.
10470
c162ed3e
HD
104712020-01-23 Hannes Domani <ssbssa@yahoo.de>
10472
10473 * i386-cygwin-tdep.c (core_process_module_section): Update.
10474 * windows-nat.c (struct lm_info_windows): Add text_offset.
10475 (windows_xfer_shared_libraries): Update.
10476 * windows-tdep.c (windows_xfer_shared_library):
10477 Add text_offset_cached argument.
10478 * windows-tdep.h (windows_xfer_shared_library): Update.
10479
a1237872
SM
104802020-01-21 Simon Marchi <simon.marchi@efficios.com>
10481
10482 * gdbarch.sh: Add declaration for _initialize_gdbarch.
10483
b3ee6dd9
SM
104842020-01-21 Simon Marchi <simon.marchi@efficios.com>
10485
10486 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
10487 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
10488 replace with range-based for.
10489 (gdbsim_interrupt_inferior): Remove.
10490 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
10491 with a range-based for. Inline code from
10492 gdbsim_interrupt_inferior.
10493
f9fac3c8
SM
104942020-01-21 Simon Marchi <simon.marchi@efficios.com>
10495
10496 * infrun.c (proceed): Fix indentation.
10497
f6474de9
TT
104982020-01-21 Tom Tromey <tromey@adacore.com>
10499
10500 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
10501 * python/python.c (python_extension_ops): Update.
10502 (gdbpy_colorize): New function.
10503 * python/lib/gdb/__init__.py (colorize): New function.
10504 * extension.h (ext_lang_colorize): Declare.
10505 * extension.c (ext_lang_colorize): New function.
10506 * extension-priv.h (struct extension_language_ops) <colorize>: New
10507 member.
10508 * cli/cli-style.c (_initialize_cli_style): Update help text.
10509
f0c702d4
LM
105102020-01-21 Luis Machado <luis.machado@linaro.org>
10511
10512 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
10513 <cond>: Change type to bool.
10514 (aarch64_displaced_step_b_cond): Update cond to use bool type.
10515 (aarch64_displaced_step_cb): Likewise.
10516 (aarch64_displaced_step_tb): Likewise.
10517
1ab139e5
LM
105182020-01-21 Luis Machado <luis.machado@linaro.org>
10519
10520 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
10521 output.
10522
0c271889
LM
105232020-01-21 Luis Machado <luis.machado@linaro.org>
10524
10525 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
10526 <pc_adjust>: Adjust the documentation.
10527 (aarch64_displaced_step_fixup): Check if PC really moved before
10528 adjusting it.
10529
4d89c1c7
TT
105302020-01-19 Tom Tromey <tom@tromey.com>
10531
10532 * disasm.c (~gdb_disassembler): New destructor.
10533 (gdb_buffered_insn_length): Call disassemble_free_target.
10534 * disasm.h (class gdb_disassembler): Declare destructor. Use
10535 DISABLE_COPY_AND_ASSIGN.
10536
c0ab21c2
TT
105372020-01-19 Tom Tromey <tom@tromey.com>
10538
10539 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
10540 (die_reader_func_ftype): Remove.
10541 (cutu_reader): New class.
10542 (dw2_get_file_names_reader): Remove "data" parameter.
10543 (dw2_get_file_names): Use cutu_reader.
10544 (create_debug_type_hash_table): Update.
10545 (read_cutu_die_from_dwo): Update comment.
10546 (lookup_dwo_unit): Add dwo_name parameter.
10547 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
10548 die_reader_func_ftype and data parameters.
10549 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
10550 Remove die_reader_func_ftype and data parameters.
10551 (~cutu_reader): New; from init_cutu_and_read_dies.
10552 (cutu_reader::cutu_reader): Rename from
10553 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
10554 and data parameters.
10555 (init_cutu_and_read_dies_simple): Remove.
10556 (struct process_psymtab_comp_unit_data): Remove.
10557 (process_psymtab_comp_unit_reader): Remove data parameter; add
10558 want_partial_unit and pretend_language parameters.
10559 (process_psymtab_comp_unit): Use cutu_reader.
10560 (build_type_psymtabs_reader): Remove data parameter.
10561 (build_type_psymtabs_1): Use cutu_reader.
10562 (process_skeletonless_type_unit): Likewise.
10563 (load_partial_comp_unit_reader): Remove.
10564 (load_partial_comp_unit): Use cutu_reader.
10565 (load_full_comp_unit_reader): Remove.
10566 (load_full_comp_unit): Use cutu_reader.
10567 (struct create_dwo_cu_data): Remove.
10568 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
10569 dwo_unit parameters.
10570 (create_cus_hash_table): Use cutu_reader.
10571 (struct dwarf2_read_addr_index_data): Remove.
10572 (dwarf2_read_addr_index_reader): Remove.
10573 (dwarf2_read_addr_index): Use cutu_reader.
10574 (read_signatured_type_reader): Remove.
10575 (read_signatured_type): Use cutu_reader.
10576
45bbae5c
TT
105772020-01-19 Tom Tromey <tom@tromey.com>
10578
10579 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
10580 * tui/tui-wingeneral.h (class tui_suppress_output): New.
10581 (tui_wrefresh): Declare.
10582 * tui/tui-wingeneral.c (suppress_output): New global.
10583 (tui_suppress_output, ~tui_suppress_output): New constructor and
10584 destructor.
10585 (tui_wrefresh): New function.
10586 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
10587 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
10588 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
10589 method.
10590 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
10591 tui_wrefresh.
10592 (tui_data_window::no_refresh): New method.
10593 (tui_data_item_window::refresh_window): Call tui_wrefresh.
10594 (tui_reg_command): Use tui_suppress_output
10595 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
10596 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
10597 method.
10598 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
10599
4f13c1c0
TT
106002020-01-19 Tom Tromey <tom@tromey.com>
10601
10602 * tui/tui-winsource.c (tui_update_source_windows_with_line):
10603 Handle case where symtab is null.
10604
fa47e446
SM
106052020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
10606
10607 * linux-fork.c (one_fork_p): Simplify.
10608
26f42329
SM
106092020-01-17 Simon Marchi <simon.marchi@efficios.com>
10610
10611 * top.c (struct qt_args): Remove.
10612 (kill_or_detach): Change return type to void, replace `void *`
10613 parameter with a proper one.
10614 (print_inferior_quit_action): Likewise.
10615 (quit_confirm): Use range-based for loop to iterate over inferiors.
10616 (quit_force): Likewise.
10617
a9ac81b1
SM
106182020-01-17 Simon Marchi <simon.marchi@efficios.com>
10619
10620 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
10621 `void *` parameter with proper parameters.
10622 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
10623 (print_one_inferior): Change return type to void, replace `void *`
10624 parameter with proper parameters.
10625 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
10626 inferiors.
10627 (get_other_inferior): Remove.
10628 (mi_cmd_remove_inferior): Use range-based loop to iterate over
10629 inferiors.
10630
788eca49
SM
106312020-01-17 Simon Marchi <simon.marchi@efficios.com>
10632
10633 * mi/mi-interp.c (report_initial_inferior): Remove.
10634 (mi_interp::init): Use range-based for to iterate over inferiors.
10635
d9bc85b6
SM
106362020-01-17 Simon Marchi <simon.marchi@efficios.com>
10637
10638 * python/py-inferior.c (build_inferior_list): Remove.
10639 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
10640
40c94099
CB
106412020-01-16 Christian Biesinger <cbiesinger@google.com>
10642
10643 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
10644 (btrace_stitch_trace): Likewise.
10645 * charset.c (intermediate_encoding): Likewise (vaild).
10646 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
10647 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
10648 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
10649
e0cdfe3c
HD
106502020-01-16 Hannes Domani <ssbssa@yahoo.de>
10651
10652 * windows-tdep.c (windows_get_tlb_type):
10653 Add rtl_user_process_parameters type.
10654
790f1718 106552020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 10656 Norbert Lange <nolange79@gmail.com>
790f1718
PA
10657
10658 PR build/24805
10659 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
10660 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
10661 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
10662 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
10663 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
10664 (ps_plog): Redeclare exported functions with default visibility.
10665
3112ed97
NA
106662020-01-16 Nitika Achra <Nitika.Achra@amd.com>
10667
10668 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
10669 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
10670
8dc3273e
SM
106712020-01-15 Simon Marchi <simon.marchi@efficios.com>
10672
10673 * infcmd.c (post_create_inferior): Use get_thread_regcache
10674 instead of get_current_regcache.
10675
ff47f4f0
TT
106762020-01-14 Tom Tromey <tom@tromey.com>
10677
10678 PR symtab/12535:
10679 * python/python.c (gdbpy_decode_line): Treat empty string the same
10680 as no argument.
10681
975f45b7
TT
106822020-01-14 Tom Tromey <tom@tromey.com>
10683
10684 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
10685
25e57356
TT
106862020-01-14 Tom Tromey <tom@tromey.com>
10687
10688 * nat/linux-btrace.c: Don't include <config.h>.
10689 * nat/linux-ptrace.c: Don't include <config.h>.
10690 * nat/x86-linux-dregs.c: Don't include <config.h>.
10691
05ea2a05
TT
106922020-01-14 Tom Tromey <tom@tromey.com>
10693
10694 * configure: Rebuild.
10695 * configure.ac: Move many checks to ../gdbsupport/common.m4.
10696
01027315
TT
106972020-01-14 Tom Tromey <tom@tromey.com>
10698
10699 * nat/x86-linux-dregs.c: Include configh.h.
10700 * nat/linux-ptrace.c: Include configh.h.
10701 * nat/linux-btrace.c: Include configh.h.
10702 * defs.h: Include config.h, bfd.h.
10703 * configure.ac: Don't source common.host.
10704 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
10705 * configure: Rebuild.
10706 * acinclude.m4: Update path.
10707 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
10708 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
10709 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
10710 (CLIBS): Add LIBSUPPORT.
10711 (CDEPS): Likewise.
10712 (COMMON_SFILES): Remove gdbsupport files.
10713 (HFILES_NO_SRCDIR): Likewise.
10714 (stamp-version): Update path to create-version.sh.
10715 (ALLDEPFILES): Remove gdbsupport files.
10716
b2ceabe8
TT
107172020-01-14 Tom Tromey <tom@tromey.com>
10718
10719 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
10720 USE_WIN32API when needed.
10721 * configure.ac (USE_WIN32API): Don't define.
10722 (WIN32LIBS): Use WIN32APILIBS.
10723 * configure: Rebuild.
10724
25c51f71
TT
107252020-01-14 Tom Tromey <tom@tromey.com>
10726
10727 * configure: Rebuild.
10728 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
10729
717c684d
BE
107302020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
10731
10732 * skip.c (skip_function_command): Make skip w/o arguments use the
10733 name of the inlined function if pc is inside any inlined function.
10734
7da6a5b9
LM
107352020-01-14 Luis Machado <luis.machado@linaro.org>
10736
10737 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
10738 * infrun.c (resume_1): Likewise.
10739 (handle_inferior_event): Remove stale comment.
10740 * linux-nat.c (linux_nat_target::resume): Update comments.
10741 (save_stop_reason): Likewise.
10742 (linux_nat_filter_event): Likewise.
10743 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
10744
44e4c775
AB
107452020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10746
10747 * elfread.c (record_minimal_symbol): Set section index to 0 for
10748 non-allocatable sections.
10749
18a8505e
AT
10750
107512020-01-13 Ali Tamur <tamur@google.com>
10752
10753 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
10754 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
10755 to gdb::optional. Update comments.
10756 (dwo_file): Update comments.
10757 (read_attribute): Update API to take an additional out parameter,
10758 need_reprocess. This is used to mark attributes that need other
10759 attributes (e.g. str_offsets_base) for correct computation which may not
10760 have been read yet.
10761 (read_attribute_reprocess): New function declaration.
10762 (read_addr_index): Likewise.
10763 (read_dwo_str_index): Likewise.
10764 (read_stub_str_index): Likewise.
10765 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
10766 (lookup_addr_base): New function definition.
10767 (lookup_ranges_base): Likewise.
10768 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
10769 lookup_ranges_base.
10770 (init_cutu_and_read_dies): Update comments.
10771 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
10772 unit. This is used to inherit parent's str_offsets_base and addr_base.
10773 Update comments.
10774 (init_cutu_and_read_dies_simple): Reflect API changes.
10775 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
10776 (create_cus_hash_table): Change API to take parent compile unit.
10777 Reflect API changes.
10778 (open_and_init_dwo_file): Reflect API changes.
10779 (dwarf2_get_pc_bounds): Update comments.
10780 (dwarf2_record_block_ranges): Likewise.
10781 (read_full_die_1): Change implementation to reprocess attributes that
10782 need str_offsets_base and addr_base.
10783 (partial_die_info::read): Likewise.
10784 (read_attribute_reprocess): New function definition.
10785 (read_attribute_value): Change API to take an additional out parameter,
10786 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
10787 when a non-dwo compile unit has index based attributes.
10788 (read_attribute): Reflect API changes.
10789 (read_addr_index_1): Reflect API changes. Update comments.
10790 (dwarf2_read_addr_index_data): Reflect API changes.
10791 (dwarf2_read_addr_index): Likewise.
10792 (read_str_index): Change API and implementation. This becomes a helper
10793 to be used by the new string index related methods. Update error
10794 message and comments.
10795 (read_dwo_str_index): New function definition.
10796 (read_stub_str_index): Likewise.
10797 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
10798 * symfile.h (dwarf2_debug_sections): Likewise.
10799 * xcoffread.c (dwarf2_debug_sections): Likewise.
10800
0cac9354
SM
108012020-01-13 Simon Marchi <simon.marchi@efficios.com>
10802
10803 * gdbcore.h (struct core_fns) <core_read_registers>: Change
10804 core_reg_sect type to gdb_byte *.
10805 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
10806 * cris-tdep.c (fetch_core_registers): Likewise.
10807 * corelow.c (core_target::get_core_register_section): Change
10808 type of `contents` to gdb::byte_vector.
10809
9a6d629c
AB
108102020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10811
10812 * tui/tui-wingeneral.c (box_win): Position the title in the center
10813 of the border.
10814
d8b2f9e3
SM
108152020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10816
10817 * corelow.c (core_target::get_core_register_section): Use
10818 std::vector instead of alloca.
10819
bb564c58
SM
108202020-01-13 Simon Marchi <simon.marchi@efficios.com>
10821
10822 * warning.m4: Add -Wmissing-declarations to build_warnings.
10823 * configure: Re-generate.
10824
6b366111
SM
108252020-01-13 Simon Marchi <simon.marchi@efficios.com>
10826
10827 * python/python.c (init__gdb_module): Add declaration.
10828
6c265988
SM
108292020-01-13 Simon Marchi <simon.marchi@efficios.com>
10830
10831 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
10832 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
10833 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
10834 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
10835 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
10836 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
10837 * ada-exp.y (_initialize_ada_exp): Add declaration.
10838 * ada-lang.c (_initialize_ada_language): Add declaration.
10839 * ada-tasks.c (_initialize_tasks): Add declaration.
10840 * agent.c (_initialize_agent): Add declaration.
10841 * aix-thread.c (_initialize_aix_thread): Add declaration.
10842 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
10843 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
10844 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
10845 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
10846 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
10847 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
10848 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
10849 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
10850 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
10851 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
10852 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
10853 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
10854 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
10855 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
10856 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
10857 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
10858 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
10859 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
10860 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
10861 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
10862 * annotate.c (_initialize_annotate): Add declaration.
10863 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
10864 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
10865 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
10866 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
10867 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
10868 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
10869 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
10870 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
10871 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
10872 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
10873 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
10874 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
10875 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
10876 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
10877 * auto-load.c (_initialize_auto_load): Add declaration.
10878 * auxv.c (_initialize_auxv): Add declaration.
10879 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
10880 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
10881 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
10882 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
10883 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
10884 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
10885 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
10886 * breakpoint.c (_initialize_breakpoint): Add declaration.
10887 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
10888 * btrace.c (_initialize_btrace): Add declaration.
10889 * charset.c (_initialize_charset): Add declaration.
10890 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
10891 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
10892 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
10893 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
10894 * cli/cli-script.c (_initialize_cli_script): Add declaration.
10895 * cli/cli-style.c (_initialize_cli_style): Add declaration.
10896 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
10897 * coffread.c (_initialize_coffread): Add declaration.
10898 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
10899 * compile/compile.c (_initialize_compile): Add declaration.
10900 * complaints.c (_initialize_complaints): Add declaration.
10901 * completer.c (_initialize_completer): Add declaration.
10902 * copying.c (_initialize_copying): Add declaration.
10903 * corefile.c (_initialize_core): Add declaration.
10904 * corelow.c (_initialize_corelow): Add declaration.
10905 * cp-abi.c (_initialize_cp_abi): Add declaration.
10906 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
10907 * cp-support.c (_initialize_cp_support): Add declaration.
10908 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
10909 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
10910 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
10911 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
10912 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
10913 * ctfread.c (_initialize_ctfread): Add declaration.
10914 * d-lang.c (_initialize_d_language): Add declaration.
10915 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
10916 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
10917 * dbxread.c (_initialize_dbxread): Add declaration.
10918 * dcache.c (_initialize_dcache): Add declaration.
10919 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
10920 * disasm.c (_initialize_disasm): Add declaration.
10921 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
10922 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
10923 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
10924 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
10925 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
10926 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
10927 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
10928 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
10929 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
10930 * elfread.c (_initialize_elfread): Add declaration.
10931 * exec.c (_initialize_exec): Add declaration.
10932 * extension.c (_initialize_extension): Add declaration.
10933 * f-lang.c (_initialize_f_language): Add declaration.
10934 * f-valprint.c (_initialize_f_valprint): Add declaration.
10935 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
10936 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
10937 * filesystem.c (_initialize_filesystem): Add declaration.
10938 * findcmd.c (_initialize_mem_search): Add declaration.
10939 * findvar.c (_initialize_findvar): Add declaration.
10940 * fork-child.c (_initialize_fork_child): Add declaration.
10941 * frame-base.c (_initialize_frame_base): Add declaration.
10942 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
10943 * frame.c (_initialize_frame): Add declaration.
10944 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
10945 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
10946 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
10947 * gcore.c (_initialize_gcore): Add declaration.
10948 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
10949 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
10950 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
10951 * gdbarch.c (_initialize_gdbarch): Add declaration.
10952 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
10953 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
10954 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
10955 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
10956 * go-lang.c (_initialize_go_language): Add declaration.
10957 * go32-nat.c (_initialize_go32_nat): Add declaration.
10958 * guile/guile.c (_initialize_guile): Add declaration.
10959 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
10960 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
10961 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
10962 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
10963 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
10964 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
10965 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
10966 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
10967 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
10968 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
10969 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
10970 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
10971 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
10972 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
10973 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
10974 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
10975 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
10976 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
10977 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
10978 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
10979 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
10980 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
10981 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
10982 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
10983 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
10984 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
10985 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
10986 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
10987 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
10988 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
10989 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
10990 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
10991 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
10992 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
10993 * infcall.c (_initialize_infcall): Add declaration.
10994 * infcmd.c (_initialize_infcmd): Add declaration.
10995 * inflow.c (_initialize_inflow): Add declaration.
10996 * infrun.c (_initialize_infrun): Add declaration.
10997 * interps.c (_initialize_interpreter): Add declaration.
10998 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
10999 * jit.c (_initialize_jit): Add declaration.
11000 * language.c (_initialize_language): Add declaration.
11001 * linux-fork.c (_initialize_linux_fork): Add declaration.
11002 * linux-nat.c (_initialize_linux_nat): Add declaration.
11003 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
11004 * linux-thread-db.c (_initialize_thread_db): Add declaration.
11005 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
11006 * m2-lang.c (_initialize_m2_language): Add declaration.
11007 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
11008 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
11009 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
11010 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
11011 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
11012 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
11013 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
11014 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
11015 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
11016 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
11017 * machoread.c (_initialize_machoread): Add declaration.
11018 * macrocmd.c (_initialize_macrocmd): Add declaration.
11019 * macroscope.c (_initialize_macroscope): Add declaration.
11020 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
11021 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
11022 * maint.c (_initialize_maint_cmds): Add declaration.
11023 * mdebugread.c (_initialize_mdebugread): Add declaration.
11024 * memattr.c (_initialize_mem): Add declaration.
11025 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
11026 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
11027 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
11028 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
11029 * mi/mi-main.c (_initialize_mi_main): Add declaration.
11030 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
11031 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
11032 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
11033 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
11034 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
11035 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
11036 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
11037 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
11038 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
11039 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
11040 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
11041 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
11042 * mipsread.c (_initialize_mipsread): Add declaration.
11043 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
11044 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
11045 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
11046 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
11047 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
11048 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
11049 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
11050 * nto-procfs.c (_initialize_procfs): Add declaration.
11051 * objc-lang.c (_initialize_objc_language): Add declaration.
11052 * observable.c (_initialize_observer): Add declaration.
11053 * opencl-lang.c (_initialize_opencl_language): Add declaration.
11054 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
11055 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
11056 * osabi.c (_initialize_gdb_osabi): Add declaration.
11057 * osdata.c (_initialize_osdata): Add declaration.
11058 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
11059 * parse.c (_initialize_parse): Add declaration.
11060 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
11061 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
11062 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
11063 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
11064 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
11065 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
11066 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
11067 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
11068 * printcmd.c (_initialize_printcmd): Add declaration.
11069 * probe.c (_initialize_probe): Add declaration.
11070 * proc-api.c (_initialize_proc_api): Add declaration.
11071 * proc-events.c (_initialize_proc_events): Add declaration.
11072 * proc-service.c (_initialize_proc_service): Add declaration.
11073 * procfs.c (_initialize_procfs): Add declaration.
11074 * producer.c (_initialize_producer): Add declaration.
11075 * psymtab.c (_initialize_psymtab): Add declaration.
11076 * python/python.c (_initialize_python): Add declaration.
11077 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
11078 * record-btrace.c (_initialize_record_btrace): Add declaration.
11079 * record-full.c (_initialize_record_full): Add declaration.
11080 * record.c (_initialize_record): Add declaration.
11081 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
11082 * regcache.c (_initialize_regcache): Add declaration.
11083 * reggroups.c (_initialize_reggroup): Add declaration.
11084 * remote-notif.c (_initialize_notif): Add declaration.
11085 * remote-sim.c (_initialize_remote_sim): Add declaration.
11086 * remote.c (_initialize_remote): Add declaration.
11087 * reverse.c (_initialize_reverse): Add declaration.
11088 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
11089 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
11090 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
11091 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
11092 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
11093 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
11094 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
11095 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
11096 Add declaration.
11097 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
11098 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
11099 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
11100 * rust-exp.y (_initialize_rust_exp): Add declaration.
11101 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
11102 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
11103 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
11104 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
11105 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
11106 * score-tdep.c (_initialize_score_tdep): Add declaration.
11107 * ser-go32.c (_initialize_ser_dos): Add declaration.
11108 * ser-mingw.c (_initialize_ser_windows): Add declaration.
11109 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
11110 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
11111 * ser-uds.c (_initialize_ser_socket): Add declaration.
11112 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
11113 * serial.c (_initialize_serial): Add declaration.
11114 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
11115 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
11116 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
11117 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
11118 * skip.c (_initialize_step_skip): Add declaration.
11119 * sol-thread.c (_initialize_sol_thread): Add declaration.
11120 * solib-aix.c (_initialize_solib_aix): Add declaration.
11121 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
11122 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
11123 * solib-frv.c (_initialize_frv_solib): Add declaration.
11124 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
11125 * solib-target.c (_initialize_solib_target): Add declaration.
11126 * solib.c (_initialize_solib): Add declaration.
11127 * source-cache.c (_initialize_source_cache): Add declaration.
11128 * source.c (_initialize_source): Add declaration.
11129 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
11130 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
11131 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
11132 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
11133 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
11134 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
11135 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
11136 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
11137 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
11138 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
11139 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
11140 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
11141 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
11142 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
11143 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
11144 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
11145 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
11146 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
11147 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
11148 * stabsread.c (_initialize_stabsread): Add declaration.
11149 * stack.c (_initialize_stack): Add declaration.
11150 * stap-probe.c (_initialize_stap_probe): Add declaration.
11151 * std-regs.c (_initialize_frame_reg): Add declaration.
11152 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
11153 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
11154 * symfile.c (_initialize_symfile): Add declaration.
11155 * symmisc.c (_initialize_symmisc): Add declaration.
11156 * symtab.c (_initialize_symtab): Add declaration.
11157 * target.c (_initialize_target): Add declaration.
11158 * target-connection.c (_initialize_target_connection): Add
11159 declaration.
11160 * target-dcache.c (_initialize_target_dcache): Add declaration.
11161 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
11162 * thread.c (_initialize_thread): Add declaration.
11163 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
11164 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
11165 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
11166 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
11167 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
11168 * tracectf.c (_initialize_ctf): Add declaration.
11169 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
11170 * tracefile.c (_initialize_tracefile): Add declaration.
11171 * tracepoint.c (_initialize_tracepoint): Add declaration.
11172 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
11173 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
11174 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
11175 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
11176 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
11177 * tui/tui-win.c (_initialize_tui_win): Add declaration.
11178 * tui/tui.c (_initialize_tui): Add declaration.
11179 * typeprint.c (_initialize_typeprint): Add declaration.
11180 * ui-style.c (_initialize_ui_style): Add declaration.
11181 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
11182 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
11183 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
11184 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
11185 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
11186 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
11187 * unittests/filtered_iterator-selftests.c
11188 (_initialize_filtered_iterator_selftests): Add declaration.
11189 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
11190 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
11191 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
11192 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
11193 * unittests/main-thread-selftests.c
11194 (_initialize_main_thread_selftests): Add declaration.
11195 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
11196 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
11197 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
11198 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
11199 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
11200 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
11201 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
11202 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
11203 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
11204 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
11205 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
11206 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
11207 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
11208 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
11209 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
11210 declaration.
11211 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
11212 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
11213 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
11214 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
11215 * user-regs.c (_initialize_user_regs): Add declaration.
11216 * utils.c (_initialize_utils): Add declaration.
11217 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
11218 * valops.c (_initialize_valops): Add declaration.
11219 * valprint.c (_initialize_valprint): Add declaration.
11220 * value.c (_initialize_values): Add declaration.
11221 * varobj.c (_initialize_varobj): Add declaration.
11222 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
11223 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
11224 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
11225 * windows-nat.c (_initialize_windows_nat): Add declaration.
11226 (_initialize_check_for_gdb_ini): Add declaration.
11227 (_initialize_loadable): Add declaration.
11228 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
11229 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
11230 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
11231 * xcoffread.c (_initialize_xcoffread): Add declaration.
11232 * xml-support.c (_initialize_xml_support): Add declaration.
11233 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
11234 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
11235 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
11236 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
11237
e2de1eec
SM
112382020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11239
11240 * regformats/regdat.sh: Generate declaration for init function.
11241
e0037b4c
SM
112422020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11243
11244 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
11245 up.
11246 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
11247 close_one_inferior>: New methods.
11248 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
11249 pass down target to find_inferior_pid.
11250 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
11251 Pass down target to find_inferior_ptid.
11252 (gdbsim_target::create_inferior): Pass down target to
11253 add_thread_silent.
11254 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
11255 target down to find_inferior_ptid and switch_to_thread.
11256 (gdbsim_target::close): Update to call close_one_inferior.
11257 (struct resume_data): Remove.
11258 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
11259 directly, rather than through a void pointer.
11260 (gdbsim_target::resume): Update to call resume_one_inferior.
11261
58920b5b
SM
112622020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
11263
11264 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
11265
4ec89149
PA
112662020-01-12 Pedro Alves <palves@redhat.com>
11267
11268 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
11269 directly for the current inferior instead of
11270 discard_all_inferiors.
11271 (discard_all_inferiors): Delete.
11272
7c392d1d
TT
112732020-01-11 Tom Tromey <tom@tromey.com>
11274
11275 * tui/tui-wingeneral.c (box_win): Check cli_styling.
11276 * tui/tui-winsource.c (tui_source_window_base::refill): Use
11277 deprecated_safe_get_selected_frame.
11278
d9ebdab7
TBA
112792020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11280
11281 * inferior.c (print_inferior): Switch inferior before printing it.
11282
f3c469b9
PA
112832020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
11284 Pedro Alves <palves@redhat.com>
11285
11286 * progspace-and-thread.c (switch_to_program_space_and_thread):
11287 Assert there's an inferior for PSPACE. Use
11288 switch_to_inferior_no_thread to switch the inferior too.
11289 * progspace.c (program_space::~program_space): Call
11290 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
11291 (program_space::free_all_objfiles): Don't call clear_symtab_users
11292 here.
11293 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
11294
65c574f6
PA
112952020-01-10 Pedro Alves <palves@redhat.com>
11296
11297 * NEWS: Mention multi-target debugging, "info connections", and
11298 "add-inferior -no-connection".
11299
2f4fcf00
PA
113002020-01-10 Pedro Alves <palves@redhat.com>
11301
11302 * infrun.c: Include "target-connection.h".
11303 (check_multi_target_resumption): New.
11304 (proceed): Call it.
11305 * target-connection.c (make_target_connection_string): Make
11306 extern.
11307 * target-connection.h (make_target_connection_string): Declare.
11308
121b3efd
PA
113092020-01-10 Pedro Alves <palves@redhat.com>
11310
11311 * Makefile.in (COMMON_SFILES): Add target-connection.c.
11312 * inferior.c (uiout_field_connection): New function.
11313 (print_inferior): Add new "connection-id" column.
11314 (add_inferior_command): Show connection number/string of added
11315 inferior.
11316 * process-stratum-target.h
11317 (process_stratum_target::connection_string): New virtual method.
11318 (process_stratum_target::connection_number): New field.
11319 * remote.c (remote_target::connection_string): New override.
11320 * target-connection.c: New file.
11321 * target-connection.h: New file.
11322 * target.c (decref_target): Remove process_stratum targets from
11323 the connection list.
11324 (target_stack::push): Add process_stratum targets to the
11325 connection list.
11326
4f837581
PA
113272020-01-10 Pedro Alves <palves@redhat.com>
11328
11329 Revert:
11330 2016-04-12 Pedro Alves <palves@redhat.com>
11331 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
11332 Remove references to name.
11333 * serial.h (struct serial) <name>: Delete.
11334
f4ec508e
PA
113352020-01-10 Pedro Alves <palves@redhat.com>
11336
11337 * gdbarch-selftests.c (register_to_value_test): Remove "target
11338 already pushed" check.
11339
5b6d1e4f
PA
113402020-01-10 Pedro Alves <palves@redhat.com>
11341 John Baldwin <jhb@FreeBSD.org>
11342
11343 * aarch64-linux-nat.c
11344 (aarch64_linux_nat_target::thread_architecture): Adjust.
11345 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
11346 (task_command_1): Likewise.
11347 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
11348 (aix_thread_target::wait, aix_thread_target::fetch_registers)
11349 (aix_thread_target::store_registers)
11350 (aix_thread_target::thread_alive): Adjust.
11351 * amd64-fbsd-tdep.c: Include "inferior.h".
11352 (amd64fbsd_get_thread_local_address): Pass down target.
11353 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
11354 thread's gdbarch instead of target_gdbarch.
11355 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
11356 get_last_target_status.
11357 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
11358 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
11359 inferiors.
11360 (update_inserted_breakpoint_locations): Skip if inferiors with no
11361 execution.
11362 (update_global_location_list): When handling moribund locations,
11363 find representative inferior for location's pspace, and use thread
11364 count of its process_stratum target.
11365 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
11366 * bsd-uthread.c (bsd_uthread_target::wait): Use
11367 as_process_stratum_target and adjust thread_change_ptid and
11368 add_thread calls.
11369 (bsd_uthread_target::update_thread_list): Use
11370 as_process_stratum_target and adjust find_thread_ptid,
11371 thread_change_ptid and add_thread calls.
11372 * btrace.c (maint_btrace_packet_history_cmd): Adjust
11373 find_thread_ptid call.
11374 * corelow.c (add_to_thread_list): Adjust add_thread call.
11375 (core_target_open): Adjust add_thread_silent and thread_count
11376 calls.
11377 (core_target::pid_to_str): Adjust find_inferior_ptid call.
11378 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
11379 * event-top.c (async_disconnect): Pop targets from all inferiors.
11380 * exec.c (add_target_sections): Push exec target on all inferiors
11381 sharing the program space.
11382 (remove_target_sections): Remove the exec target from all
11383 inferiors sharing the program space.
11384 (exec_on_vfork): New.
11385 * exec.h (exec_on_vfork): Declare.
11386 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
11387 Pass it down.
11388 (fbsd_nat_target::update_thread_list): Adjust.
11389 (fbsd_nat_target::resume): Adjust.
11390 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
11391 down.
11392 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
11393 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
11394 get_thread_arch_regcache call.
11395 * fork-child.c (gdb_startup_inferior): Pass target down to
11396 startup_inferior and set_executing.
11397 * gdbthread.h (struct process_stratum_target): Forward declare.
11398 (add_thread, add_thread_silent, add_thread_with_info)
11399 (in_thread_list): Add process_stratum_target parameter.
11400 (find_thread_ptid(inferior*, ptid_t)): New overload.
11401 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
11402 parameter.
11403 (all_threads()): Delete overload.
11404 (all_threads, all_non_exited_threads): Add process_stratum_target
11405 parameter.
11406 (all_threads_safe): Use brace initialization.
11407 (thread_count): Add process_stratum_target parameter.
11408 (set_resumed, set_running, set_stop_requested, set_executing)
11409 (threads_are_executing, finish_thread_state): Add
11410 process_stratum_target parameter.
11411 (switch_to_thread): Use is_current_thread.
11412 * i386-fbsd-tdep.c: Include "inferior.h".
11413 (i386fbsd_get_thread_local_address): Pass down target.
11414 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
11415 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
11416 have_inferiors check.
11417 * inf-ptrace.c (inf_ptrace_target::create_inferior)
11418 (inf_ptrace_target::attach): Adjust.
11419 * infcall.c (run_inferior_call): Adjust.
11420 * infcmd.c (run_command_1): Pass target to
11421 scoped_finish_thread_state.
11422 (proceed_thread_callback): Skip inferiors with no execution.
11423 (continue_command): Rename 'all_threads' local to avoid hiding
11424 'all_threads' function. Adjust get_last_target_status call.
11425 (prepare_one_step): Adjust set_running call.
11426 (signal_command): Use user_visible_resume_target. Compare thread
11427 pointers instead of inferior_ptid.
11428 (info_program_command): Adjust to pass down target.
11429 (attach_command): Mark target's 'thread_executing' flag.
11430 (stop_current_target_threads_ns): New, factored out from ...
11431 (interrupt_target_1): ... this. Switch inferior before making
11432 target calls.
11433 * inferior-iter.h
11434 (struct all_inferiors_iterator, struct all_inferiors_range)
11435 (struct all_inferiors_safe_range)
11436 (struct all_non_exited_inferiors_range): Filter on
11437 process_stratum_target too. Remove explicit.
11438 * inferior.c (inferior::inferior): Push dummy target on target
11439 stack.
11440 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
11441 Add process_stratum_target parameter, and pass it down.
11442 (have_live_inferiors): Adjust.
11443 (switch_to_inferior_and_push_target): New.
11444 (add_inferior_command, clone_inferior_command): Handle
11445 "-no-connection" parameter. Use
11446 switch_to_inferior_and_push_target.
11447 (_initialize_inferior): Mention "-no-connection" option in
11448 the help of "add-inferior" and "clone-inferior" commands.
11449 * inferior.h: Include "process-stratum-target.h".
11450 (interrupt_target_1): Use bool.
11451 (struct inferior) <push_target, unpush_target, target_is_pushed,
11452 find_target_beneath, top_target, process_target, target_at,
11453 m_stack>: New.
11454 (discard_all_inferiors): Delete.
11455 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
11456 (all_inferiors, all_non_exited_inferiors): Add
11457 process_stratum_target parameter.
11458 * infrun.c: Include "gdb_select.h" and <unordered_map>.
11459 (target_last_proc_target): New global.
11460 (follow_fork_inferior): Push target on new inferior. Pass target
11461 to add_thread_silent. Call exec_on_vfork. Handle target's
11462 reference count.
11463 (follow_fork): Adjust get_last_target_status call. Also consider
11464 target.
11465 (follow_exec): Push target on new inferior.
11466 (struct execution_control_state) <target>: New field.
11467 (user_visible_resume_target): New.
11468 (do_target_resume): Call target_async.
11469 (resume_1): Set target's threads_executing flag. Consider resume
11470 target.
11471 (commit_resume_all_targets): New.
11472 (proceed): Also consider resume target. Skip threads of inferiors
11473 with no execution. Commit resumtion in all targets.
11474 (start_remote): Pass current inferior to wait_for_inferior.
11475 (infrun_thread_stop_requested): Consider target as well. Pass
11476 thread_info pointer to clear_inline_frame_state instead of ptid.
11477 (infrun_thread_thread_exit): Consider target as well.
11478 (random_pending_event_thread): New inferior parameter. Use it.
11479 (do_target_wait): Rename to ...
11480 (do_target_wait_1): ... this. Add inferior parameter, and pass it
11481 down.
11482 (threads_are_resumed_pending_p, do_target_wait): New.
11483 (prepare_for_detach): Adjust calls.
11484 (wait_for_inferior): New inferior parameter. Handle it. Use
11485 do_target_wait_1 instead of do_target_wait.
11486 (fetch_inferior_event): Adjust. Switch to representative
11487 inferior. Pass target down.
11488 (set_last_target_status): Add process_stratum_target parameter.
11489 Save target in global.
11490 (get_last_target_status): Add process_stratum_target parameter and
11491 handle it.
11492 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
11493 (context_switch): Check inferior_ptid == null_ptid before calling
11494 inferior_thread().
11495 (get_inferior_stop_soon): Pass down target.
11496 (wait_one): Rename to ...
11497 (poll_one_curr_target): ... this.
11498 (struct wait_one_event): New.
11499 (wait_one): New.
11500 (stop_all_threads): Adjust.
11501 (handle_no_resumed, handle_inferior_event): Adjust to consider the
11502 event's target.
11503 (switch_back_to_stepped_thread): Also consider target.
11504 (print_stop_event): Update.
11505 (normal_stop): Update. Also consider the resume target.
11506 * infrun.h (wait_for_inferior): Remove declaration.
11507 (user_visible_resume_target): New declaration.
11508 (get_last_target_status, set_last_target_status): New
11509 process_stratum_target parameter.
11510 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11511 process_stratum_target parameter, and use it.
11512 (clear_inline_frame_state (thread_info*)): New.
11513 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11514 process_stratum_target parameter.
11515 (clear_inline_frame_state (thread_info*)): Declare.
11516 * linux-fork.c (delete_checkpoint_command): Pass target down to
11517 find_thread_ptid.
11518 (checkpoint_command): Adjust.
11519 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
11520 instead of just tweaking inferior_ptid.
11521 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
11522 (exit_lwp): Pass target down to find_thread_ptid.
11523 (attach_proc_task_lwp_callback): Pass target down to
11524 add_thread/set_running/set_executing.
11525 (linux_nat_target::attach): Pass target down to
11526 thread_change_ptid.
11527 (get_detach_signal): Pass target down to find_thread_ptid.
11528 Consider last target status's target.
11529 (linux_resume_one_lwp_throw, resume_lwp)
11530 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
11531 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
11532 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
11533 (linux_nat_target::async_wait_fd): New.
11534 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
11535 target down.
11536 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
11537 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
11538 * linux-thread-db.c (struct thread_db_info::process_target): New
11539 field.
11540 (add_thread_db_info): Save target.
11541 (get_thread_db_info): New process_stratum_target parameter. Also
11542 match target.
11543 (delete_thread_db_info): New process_stratum_target parameter.
11544 Also match target.
11545 (thread_from_lwp): Adjust to pass down target.
11546 (thread_db_notice_clone): Pass down target.
11547 (check_thread_db_callback): Pass down target.
11548 (try_thread_db_load_1): Always push the thread_db target.
11549 (try_thread_db_load, record_thread): Pass target down.
11550 (thread_db_target::detach): Pass target down. Always unpush the
11551 thread_db target.
11552 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
11553 target down. Always unpush the thread_db target.
11554 (find_new_threads_callback, thread_db_find_new_threads_2)
11555 (thread_db_target::update_thread_list): Pass target down.
11556 (thread_db_target::pid_to_str): Pass current inferior down.
11557 (thread_db_target::get_thread_local_address): Pass target down.
11558 (thread_db_target::resume, maintenance_check_libthread_db): Pass
11559 target down.
11560 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
11561 * procfs.c (procfs_target::procfs_init_inferior): Declare.
11562 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
11563 (procfs_init_inferior): Rename to ...
11564 (procfs_target::procfs_init_inferior): ... this and adjust.
11565 (procfs_target::create_inferior, procfs_notice_thread)
11566 (procfs_do_thread_registers): Adjust.
11567 * ppc-fbsd-tdep.c: Include "inferior.h".
11568 (ppcfbsd_get_thread_local_address): Pass down target.
11569 * proc-service.c (ps_xfer_memory): Switch current inferior and
11570 program space as well.
11571 (get_ps_regcache): Pass target down.
11572 * process-stratum-target.c
11573 (process_stratum_target::thread_address_space)
11574 (process_stratum_target::thread_architecture): Pass target down.
11575 * process-stratum-target.h
11576 (process_stratum_target::threads_executing): New field.
11577 (as_process_stratum_target): New.
11578 * ravenscar-thread.c
11579 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
11580 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
11581 down.
11582 * record-btrace.c (record_btrace_target::info_record): Adjust.
11583 (record_btrace_target::record_method)
11584 (record_btrace_target::record_is_replaying)
11585 (record_btrace_target::fetch_registers)
11586 (get_thread_current_frame_id, record_btrace_target::resume)
11587 (record_btrace_target::wait, record_btrace_target::stop): Pass
11588 target down.
11589 * record-full.c (record_full_wait_1): Switch to event thread.
11590 Pass target down.
11591 * regcache.c (regcache::regcache)
11592 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
11593 process_stratum_target parameter and handle it.
11594 (current_thread_target): New global.
11595 (get_thread_regcache): Add process_stratum_target parameter and
11596 handle it. Switch inferior before calling target method.
11597 (get_thread_regcache): Pass target down.
11598 (get_thread_regcache_for_ptid): Pass target down.
11599 (registers_changed_ptid): Add process_stratum_target parameter and
11600 handle it.
11601 (registers_changed_thread, registers_changed): Pass target down.
11602 (test_get_thread_arch_aspace_regcache): New.
11603 (current_regcache_test): Define a couple local test_target_ops
11604 instances and use them for testing.
11605 (readwrite_regcache): Pass process_stratum_target parameter.
11606 (cooked_read_test, cooked_write_test): Pass mock_target down.
11607 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
11608 (get_thread_arch_aspace_regcache): Add process_stratum_target
11609 parameter.
11610 (regcache::target): New method.
11611 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
11612 (regcache::registers_changed_ptid): Add process_stratum_target
11613 parameter.
11614 (regcache::m_target): New field.
11615 (registers_changed_ptid): Add process_stratum_target parameter.
11616 * remote.c (remote_state::supports_vCont_probed): New field.
11617 (remote_target::async_wait_fd): New method.
11618 (remote_unpush_and_throw): Add remote_target parameter.
11619 (get_current_remote_target): Adjust.
11620 (remote_target::remote_add_inferior): Push target.
11621 (remote_target::remote_add_thread)
11622 (remote_target::remote_notice_new_inferior)
11623 (get_remote_thread_info): Pass target down.
11624 (remote_target::update_thread_list): Skip threads of inferiors
11625 bound to other targets. (remote_target::close): Don't discard
11626 inferiors. (remote_target::add_current_inferior_and_thread)
11627 (remote_target::process_initial_stop_replies)
11628 (remote_target::start_remote)
11629 (remote_target::remote_serial_quit_handler): Pass down target.
11630 (remote_target::remote_unpush_target): New remote_target
11631 parameter. Unpush the target from all inferiors.
11632 (remote_target::remote_unpush_and_throw): New remote_target
11633 parameter. Pass it down.
11634 (remote_target::open_1): Check whether the current inferior has
11635 execution instead of checking whether any inferior is live. Pass
11636 target down.
11637 (remote_target::remote_detach_1): Pass down target. Use
11638 remote_unpush_target.
11639 (extended_remote_target::attach): Pass down target.
11640 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
11641 (remote_target::append_resumption): Pass down target.
11642 (remote_target::append_pending_thread_resumptions)
11643 (remote_target::remote_resume_with_hc, remote_target::resume)
11644 (remote_target::commit_resume): Pass down target.
11645 (remote_target::remote_stop_ns): Check supports_vCont_probed.
11646 (remote_target::interrupt_query)
11647 (remote_target::remove_new_fork_children)
11648 (remote_target::check_pending_events_prevent_wildcard_vcont)
11649 (remote_target::remote_parse_stop_reply)
11650 (remote_target::process_stop_reply): Pass down target.
11651 (first_remote_resumed_thread): New remote_target parameter. Pass
11652 it down.
11653 (remote_target::wait_as): Pass down target.
11654 (unpush_and_perror): New remote_target parameter. Pass it down.
11655 (remote_target::readchar, remote_target::remote_serial_write)
11656 (remote_target::getpkt_or_notif_sane_1)
11657 (remote_target::kill_new_fork_children, remote_target::kill): Pass
11658 down target.
11659 (remote_target::mourn_inferior): Pass down target. Use
11660 remote_unpush_target.
11661 (remote_target::core_of_thread)
11662 (remote_target::remote_btrace_maybe_reopen): Pass down target.
11663 (remote_target::pid_to_exec_file)
11664 (remote_target::thread_handle_to_thread_info): Pass down target.
11665 (remote_target::async_wait_fd): New.
11666 * riscv-fbsd-tdep.c: Include "inferior.h".
11667 (riscv_fbsd_get_thread_local_address): Pass down target.
11668 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
11669 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
11670 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
11671 Adjust.
11672 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
11673 * solib-svr4.c (enable_break): Pass down target.
11674 * spu-multiarch.c (parse_spufs_run): Pass down target.
11675 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
11676 * target-delegates.c: Regenerate.
11677 * target.c (g_target_stack): Delete.
11678 (current_top_target): Return the current inferior's top target.
11679 (target_has_execution_1): Refer to the passed-in inferior's top
11680 target.
11681 (target_supports_terminal_ours): Check whether the initial
11682 inferior was already created.
11683 (decref_target): New.
11684 (target_stack::push): Incref/decref the target.
11685 (push_target, push_target, unpush_target): Adjust.
11686 (target_stack::unpush): Defref target.
11687 (target_is_pushed): Return bool. Adjust to refer to the current
11688 inferior's target stack.
11689 (dispose_inferior): Delete, and inline parts ...
11690 (target_preopen): ... here. Only dispose of the current inferior.
11691 (target_detach): Hold strong target reference while detaching.
11692 Pass target down.
11693 (target_thread_name): Add assertion.
11694 (target_resume): Pass down target.
11695 (target_ops::beneath, find_target_at): Adjust to refer to the
11696 current inferior's target stack.
11697 (get_dummy_target): New.
11698 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
11699 has a thread running.
11700 (initialize_targets): Rename to ...
11701 (_initialize_target): ... this.
11702 * target.h: Include "gdbsupport/refcounted-object.h".
11703 (struct target_ops): Inherit refcounted_object.
11704 (target_ops::shortname, target_ops::longname): Make const.
11705 (target_ops::async_wait_fd): New method.
11706 (decref_target): Declare.
11707 (struct target_ops_ref_policy): New.
11708 (target_ops_ref): New typedef.
11709 (get_dummy_target): Declare function.
11710 (target_is_pushed): Return bool.
11711 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
11712 (all_matching_threads_iterator::all_matching_threads_iterator):
11713 Handle filter target.
11714 * thread-iter.h (struct all_matching_threads_iterator, struct
11715 all_matching_threads_range, class all_non_exited_threads_range):
11716 Filter by target too. Remove explicit.
11717 * thread.c (threads_executing): Delete.
11718 (inferior_thread): Pass down current inferior.
11719 (clear_thread_inferior_resources): Pass down thread pointer
11720 instead of ptid_t.
11721 (add_thread_silent, add_thread_with_info, add_thread): Add
11722 process_stratum_target parameter. Use it for thread and inferior
11723 searches.
11724 (is_current_thread): New.
11725 (thread_info::deletable): Use it.
11726 (find_thread_ptid, thread_count, in_thread_list)
11727 (thread_change_ptid, set_resumed, set_running): New
11728 process_stratum_target parameter. Pass it down.
11729 (set_executing): New process_stratum_target parameter. Pass it
11730 down. Adjust reference to 'threads_executing'.
11731 (threads_are_executing): New process_stratum_target parameter.
11732 Adjust reference to 'threads_executing'.
11733 (set_stop_requested, finish_thread_state): New
11734 process_stratum_target parameter. Pass it down.
11735 (switch_to_thread): Also match inferior.
11736 (switch_to_thread): New process_stratum_target parameter. Pass it
11737 down.
11738 (update_threads_executing): Reimplement.
11739 * top.c (quit_force): Pop targets from all inferior.
11740 (gdb_init): Don't call initialize_targets.
11741 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
11742 Declare.
11743 (windows_add_thread, windows_delete_thread): Adjust.
11744 (get_windows_debug_event): Rename to ...
11745 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
11746 * tracefile-tfile.c (tfile_target_open): Pass down target.
11747 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
11748 Forward declare.
11749 (switch_to_thread): Add process_stratum_target parameter.
11750 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
11751 parameter. Use it.
11752 (mi_on_resume): Pass target down.
11753 * nat/fork-inferior.c (startup_inferior): Add
11754 process_stratum_target parameter. Pass it down.
11755 * nat/fork-inferior.h (startup_inferior): Add
11756 process_stratum_target parameter.
11757 * python/py-threadevent.c (py_get_event_thread): Pass target down.
11758
75c6c844
PA
117592020-01-10 Pedro Alves <palves@redhat.com>
11760
11761 * remote.c (remote_target::start_remote): Don't set inferior_ptid
11762 directly. Instead find the first thread in the thread list and
11763 use switch_to_thread.
11764
78f2c40a
PA
117652020-01-10 Pedro Alves <palves@redhat.com>
11766
11767 * remote.c (remote_target::remote_add_inferior): Don't bind a
11768 process to the current inferior if the current inferior is already
11769 bound to a process.
11770
e7af6c70
TBA
117712020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11772 Pedro Alves <palves@redhat.com>
11773
11774 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
11775 If no process is specified, return null_ptid instead of
11776 inferior_ptid.
11777 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
11778 TARGET_WAITKIND_SIGNALLED with no pid.
11779
31ba933e
PA
117802020-01-10 Pedro Alves <palves@redhat.com>
11781
11782 * remote.c (first_remote_resumed_thread): New.
11783 (remote_target::wait_as): Use it as default event_ptid instead of
11784 inferior_ptid.
11785
735fc2ca
PA
117862020-01-10 Pedro Alves <palves@redhat.com>
11787
11788 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
11789
c17e02e1
PA
117902020-01-10 Pedro Alves <palves@redhat.com>
11791
11792 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
11793 not -1.
11794
ab1ddbcf
PA
117952020-01-10 Pedro Alves <palves@redhat.com>
11796
11797 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
11798 ptid to get_last_target_status.
11799 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
11800 ptid to get_last_target_status.
11801 * infcmd.c (continue_command): Don't pass a target_waitstatus to
11802 get_last_target_status.
11803 (info_program_command): Don't pass a target_waitstatus to
11804 get_last_target_status.
11805 * infrun.c (init_wait_for_inferior): Use
11806 nullify_last_target_wait_ptid.
11807 (get_last_target_status): Handle nullptr arguments.
11808 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
11809 (print_stop_event): Don't pass a ptid to get_last_target_status.
11810 (normal_stop): Don't pass a ptid to get_last_target_status.
11811 * infrun.h (get_last_target_status, set_last_target_status): Move
11812 comments here and update.
11813 (nullify_last_target_wait_ptid): Declare.
11814 * linux-fork.c (fork_load_infrun_state): Remove local extern
11815 declaration of nullify_last_target_wait_ptid.
11816 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
11817 to get_last_target_status.
11818
f3f8ece4
PA
118192020-01-10 Pedro Alves <palves@redhat.com>
11820
11821 * gdbthread.h (scoped_restore_current_thread)
11822 <dont_restore, restore, m_dont_restore>: Declare.
11823 * thread.c (thread_alive): Add assertion. Return bool.
11824 (switch_to_thread_if_alive): New.
11825 (prune_threads): Switch inferior/thread.
11826 (print_thread_info_1): Switch thread before calling target methods.
11827 (scoped_restore_current_thread::restore): New, factored out from
11828 ...
11829 (scoped_restore_current_thread::~scoped_restore_current_thread):
11830 ... this.
11831 (scoped_restore_current_thread::scoped_restore_current_thread):
11832 Add assertion.
11833 (thread_apply_all_command, thread_select): Use
11834 switch_to_thread_if_alive.
11835 * infrun.c (proceed, restart_threads, handle_signal_stop)
11836 (switch_back_to_stepped_thread): Switch current thread before
11837 calling target methods.
11838
db2d40f7
PA
118392020-01-10 Pedro Alves <palves@redhat.com>
11840
11841 * inferior.c (switch_to_inferior_no_thread): New function,
11842 factored out from ...
11843 (inferior_command): ... here.
11844 * inferior.h (switch_to_inferior_no_thread): Declare.
11845 * mi/mi-main.c (run_one_inferior): Use
11846 switch_to_inferior_no_thread.
11847
bd420a2d
PA
118482020-01-10 Pedro Alves <palves@redhat.com>
11849
11850 * infcmd.c (kill_command): Remove dead code.
11851
ddf5db90
PA
118522020-01-10 Pedro Alves <palves@redhat.com>
11853
11854 * remote.c (remote_target::mourn_inferior): No longer check
11855 whether the target is running.
11856
5018ce90
PA
118572020-01-10 Pedro Alves <palves@redhat.com>
11858
11859 * corelow.c (core_target::has_execution): Change parameter type to
11860 inferior pointer.
11861 * inferior.c (number_of_live_inferiors): Use
11862 inferior::has_execution instead of target_has_execution_1.
11863 * inferior.h (inferior::has_execution): New.
11864 * linux-thread-db.c (thread_db_target::update_thread_list): Use
11865 inferior::has_execution instead of target_has_execution_1.
11866 * process-stratum-target.c
11867 (process_stratum_target::has_execution): Change parameter type to
11868 inferior pointer. Check the inferior's PID instead of
11869 inferior_ptid.
11870 * process-stratum-target.h
11871 (process_stratum_target::has_execution): Change parameter type to
11872 inferior pointer.
11873 * record-full.c (record_full_core_target::has_execution): Change
11874 parameter type to inferior pointer.
11875 * target.c (target_has_execution_1): Change parameter type to
11876 inferior pointer.
11877 (target_has_execution_current): Adjust.
11878 * target.h (target_ops::has_execution): Change parameter type to
11879 inferior pointer.
11880 (target_has_execution_1): Change parameter type to inferior
11881 pointer. Change return type to bool.
11882 * tracefile.h (tracefile_target::has_execution): Change parameter
11883 type to inferior pointer.
11884
74375d18
PA
118852020-01-10 Pedro Alves <palves@redhat.com>
11886
11887 * exceptions.c (print_flush): Remove current_top_target() check.
11888
acdf84a6
PA
118892020-01-10 Pedro Alves <palves@redhat.com>
11890
11891 * remote.c (show_remote_exec_file): Show the current inferior's
11892 exec-file instead of the command variable's value.
11893
ec506636
PA
118942020-01-10 Pedro Alves <palves@redhat.com>
11895
11896 * record-full.c (record_full_resume_ptid): New global.
11897 (record_full_target::resume): Set it.
11898 (record_full_wait_1): Use record_full_resume_ptid instead of
11899 inferior_ptid.
11900
873657b9
PA
119012020-01-10 Pedro Alves <palves@redhat.com>
11902
11903 * gdbthread.h (scoped_restore_current_thread)
11904 <dont_restore, restore, m_dont_restore>: Declare.
11905 * thread.c (thread_alive): Add assertion. Return bool.
11906 (switch_to_thread_if_alive): New.
11907 (prune_threads): Switch inferior/thread.
11908 (print_thread_info_1): Switch thread before calling target methods.
11909 (scoped_restore_current_thread::restore): New, factored out from
11910 ...
11911 (scoped_restore_current_thread::~scoped_restore_current_thread):
11912 ... this.
11913 (scoped_restore_current_thread::scoped_restore_current_thread):
11914 Add assertion.
11915 (thread_apply_all_command, thread_select): Use
11916 switch_to_thread_if_alive.
11917
7f0ae84c
GB
119182020-01-10 George Barrett <bob@bob131.so>
11919
11920 * stap-probe.c (stap_modify_semaphore): Don't check for null
11921 semaphores.
11922 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
11923 for null semaphores.
11924
f5a7c406
AB
119252020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11926
11927 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
11928 all source windows, and maintain horizontal scroll status while
11929 doing so.
11930
9ae6bf64
TT
119312020-01-09 Tom Tromey <tom@tromey.com>
11932
11933 PR tui/18932:
11934 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
11935 update_source_window, not print_source_lines.
11936
b2efe70c
AB
119372020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11938
11939 * tui/tui.c (tui_enable): Register tui hooks after calling
11940 tui_display_main.
11941
5f23a082
CB
119422020-01-09 Christian Biesinger <cbiesinger@google.com>
11943
11944 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
11945
3061113b
SM
119462020-01-08 Simon Marchi <simon.marchi@efficios.com>
11947
11948 * thread.c (print_thread_info_1): Fix indentation.
11949
57d75002
CB
119502020-01-09 Christian Biesinger <cbiesinger@google.com>
11951
11952 * symtab.c (general_symbol_info::compute_and_set_names): Move the
11953 unique_xmalloc_ptr outside the if to always free the demangled name.
11954
6a053cb1
TT
119552020-01-08 Tom Tromey <tromey@adacore.com>
11956
11957 * xcoffread.c (enter_line_range, read_xcoff_symtab)
11958 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
11959 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
11960 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
11961 Remove.
11962 (section_offsets): New typedef.
11963 * symtab.c (fixup_section, get_msymbol_address): Update.
11964 * symmisc.c (dump_msymbols): Update.
11965 * symfile.h (relative_addr_info_to_section_offsets)
11966 (symfile_map_offsets_to_segments): Update.
11967 * symfile.c (build_section_addr_info_from_objfile)
11968 (init_objfile_sect_indices): Update.
11969 (struct place_section_arg): Change type of "offsets".
11970 (place_section): Update.
11971 (relative_addr_info_to_section_offsets): Change type of
11972 "section_offsets". Remove "num_sections" parameter.
11973 (default_symfile_offsets, syms_from_objfile_1)
11974 (set_objfile_default_section_offset): Update.
11975 (reread_symbols): No need to preserve section offsets by hand.
11976 (symfile_map_offsets_to_segments): Change type of "offsets".
11977 * stap-probe.c (relocate_address): Update.
11978 * stabsread.h (process_one_symbol): Update.
11979 * solib-target.c (struct lm_info_target) <offsets>: Change type.
11980 (solib_target_relocate_section_addresses): Update.
11981 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
11982 Update.
11983 * solib-frv.c (frv_relocate_main_executable): Update.
11984 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
11985 * solib-aix.c (solib_aix_get_section_offsets): Change return
11986 type.
11987 (solib_aix_solib_create_inferior_hook): Update.
11988 * remote.c (remote_target::get_offsets): Update.
11989 * psymtab.c (find_pc_sect_psymtab): Update.
11990 * psympriv.h (struct partial_symbol) <address, text_low,
11991 text_high>: Update.
11992 * objfiles.h (obj_section_offset): Update.
11993 (struct objfile) <section_offsets>: Change type.
11994 <num_sections>: Remove.
11995 (objfile_relocate): Update.
11996 * objfiles.c (entry_point_address_query): Update
11997 (relocate_one_symbol): Change type of "section_offsets".
11998 (objfile_relocate1, objfile_relocate1): Change type of
11999 "new_offsets".
12000 (objfile_rebase1): Update.
12001 * mipsread.c (mipscoff_symfile_read): Update.
12002 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
12003 parameter.
12004 * mdebugread.c (parse_symbol): Change type of "section_offsets".
12005 (parse_external, psymtab_to_symtab_1): Update.
12006 * machoread.c (macho_symfile_offsets): Update.
12007 * ia64-tdep.c (ia64_find_unwind_table): Update.
12008 * hppa-tdep.c (read_unwind_info): Update.
12009 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
12010 * dwarf2read.c (create_addrmap_from_index)
12011 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
12012 (process_psymtab_comp_unit_reader, add_partial_symbol)
12013 (add_partial_subprogram, process_full_comp_unit)
12014 (read_file_scope, read_func_scope, read_lexical_block_scope)
12015 (read_call_site_scope, dwarf2_rnglists_process)
12016 (dwarf2_ranges_process, dwarf2_ranges_read)
12017 (dwarf_decode_lines_1, var_decode_location, new_symbol)
12018 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
12019 Update.
12020 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
12021 Update.
12022 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
12023 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
12024 (process_one_symbol): Change type of "section_offsets".
12025 * ctfread.c (get_objfile_text_range): Update.
12026 * coffread.c (coff_symtab_read, enter_linenos)
12027 (process_coff_symbol): Update.
12028 * coff-pe-read.c (add_pe_forwarded_sym): Update.
12029 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
12030
456e800a
TT
120312020-01-08 Tom Tromey <tromey@adacore.com>
12032
12033 * dwarf2read.c (parse_macro_definition): Use std::string.
12034 (parse_macro_definition): Likewise.
12035
6dfa2fc2
TT
120362020-01-08 Tom Tromey <tromey@adacore.com>
12037
12038 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
12039 (ATTR_ALLOC_CHUNK): Remove.
12040
421d1616
TT
120412020-01-08 Tom Tromey <tromey@adacore.com>
12042
12043 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
12044
43816ebc
TT
120452020-01-08 Tom Tromey <tromey@adacore.com>
12046
12047 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
12048 (dwarf2_compute_name, open_dwo_file): Likewise.
12049 (process_enumeration_scope): Use std::vector.
12050 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
12051 (partial_die_info::fixup, dwarf2_start_subfile)
12052 (guess_full_die_structure_name, dwarf2_name): Likewise.
12053 (determine_prefix): Update.
12054 (guess_full_die_structure_name): Make return type const.
12055 (partial_die_full_name): Return unique_xmalloc_ptr.
12056 (DW_FIELD_ALLOC_CHUNK): Remove.
12057
4212d509
TT
120582020-01-07 Tom Tromey <tromey@adacore.com>
12059
12060 PR build/24937:
12061 * stap-probe.c (class stap_static_probe_ops): Add constructor.
12062
06a6207a
JT
120632020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12064
12065 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
12066
153d79c4
AB
120672020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
12068
12069 * stack.c (print_frame_info): Move disassemble_next_line code
12070 inside source_print block.
12071
66182876
EZ
120722020-01-06 Eli Zaretskii <eliz@gnu.org>
12073
12074 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
12075 gdb/signals.h, as we are now using native signal symbols.
12076
cbfa8581
SV
120772020-01-06 Shahab Vahedi <shahab@synopsys.com>
12078
12079 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
12080 overflow by an early check of content vs threshold.
aac66a4c 12081 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
12082 Likewise.
12083
3f602821
EZ
120842020-01-06 Eli Zaretskii <eliz@gnu.org>
12085
12086 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
12087
a08c904d
JT
120882020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12089
12090 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
12091 export table if no section contains it's RVA.
12092
89a65580
EZ
120932020-01-06 Eli Zaretskii <eliz@gnu.org>
12094
12095 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
12096
8b7fcda2
HD
120972020-01-06 Hannes Domani <ssbssa@yahoo.de>
12098
12099 * source.c (print_source_lines_base): Set last_line_listed.
12100
a61b4f69
SV
121012020-01-06 Shahab Vahedi <shahab@synopsys.com>
12102
12103 * tui/tui-disasm.c: Remove trailing spaces.
12104
559e7e50
EZ
121052020-01-06 Eli Zaretskii <eliz@gnu.org>
12106 Pedro Alves <palves@redhat.com>
12107
12108 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
12109 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
12110 (windows_gdb_signal_to_target): New function, uses the above
12111 enumeration to convert GDB internal signal codes to equivalent
12112 Windows codes.
12113 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
12114 * windows-nat.c: Include "gdb_wait.h".
12115 (get_windows_debug_event): Extract the fatal exception from the
12116 exit status and convert to the equivalent Posix signal number.
12117 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
12118 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
12119 * gdbsupport/gdb_wait.c: New file, implements
12120 windows_status_to_termsig.
12121 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
12122 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
12123
f2302a34
AB
121242020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
12125
12126 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
12127 show_layout.
12128
6a5206eb
LM
121292020-01-05 Luis Machado <luis.machado@linaro.org>
12130
12131 * aarch64-linux-nat.c
12132 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
12133 and bfd_mach_aarch64.
12134
6ec1d75e
PW
121352020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12136
12137 * ui-file.c (stdio_file::can_emit_style_escape)
12138 (tee_file::can_emit_style_escape): Ensure style is used also on
12139 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
12140 to gdb_stdout.
12141 * main.c (set_gdb_data_directory): Use file style to output the
12142 warning that the given pathname is not a directory.
12143 * top.c (show_history_filename, gdb_safe_append_history)
12144 (show_gdb_datadir): Use file style.
12145
44f81a76
HD
121462020-01-03 Hannes Domani <ssbssa@yahoo.de>
12147
12148 * solib-target.c (struct lm_info_target):
12149 Change offsets to be a unique_xmalloc_ptr.
12150 (solib_target_relocate_section_addresses): Update.
12151
25057eb0
HD
121522020-01-03 Hannes Domani <ssbssa@yahoo.de>
12153
12154 * windows-nat.c (windows_clear_solib): Free so_list linked list.
12155
6e2118f5
BE
121562020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
12157
12158 * MAINTAINERS (Write After Approval): Add myself.
12159
8133c7dc
LM
121602020-01-02 Luis Machado <luis.machado@linaro.org>
12161
12162 * proc-service.c (get_ps_regcache): Remove reference to obsolete
12163 Cell BE architecture.
12164 * target.h (struct target_ops) <thread_architecture>: Likewise.
12165
48189bec
HD
121662020-01-01 Hannes Domani <ssbssa@yahoo.de>
12167
12168 * Makefile.in: Use INSTALL_PROGRAM_ENV.
12169
ead1063b
HD
121702020-01-01 Hannes Domani <ssbssa@yahoo.de>
12171
12172 * MAINTAINERS (Write After Approval): Add myself.
12173
e5d78223
JB
121742020-01-01 Joel Brobecker <brobecker@adacore.com>
12175
12176 * gdbarch.sh: Update copyright year range of generated files.
12177
b811d2c2
JB
121782020-01-01 Joel Brobecker <brobecker@adacore.com>
12179
12180 Update copyright year range in all GDB files.
12181
5f4def5c
JB
121822020-01-01 Joel Brobecker <brobecker@adacore.com>
12183
12184 * copyright.py: Convert to Python 3.
12185
51fd4002
JB
121862020-01-01 Joel Brobecker <brobecker@adacore.com>
12187
12188 * copyright.py: Adapt after move of gnulib directory from gdb
12189 directory to toplevel directory.
12190
5fb651f2
JB
121912020-01-01 Joel Brobecker <brobecker@adacore.com>
12192
12193 * copyright.py (main): Exit if run from the wrong directory.
12194
5dd8bf88
JB
121952020-01-01 Joel Brobecker <brobecker@adacore.com>
12196
12197 * top.c (print_gdb_version): Change copyright year to 2020.
12198
9f71dacb 121992020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 12200
9f71dacb 12201 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 12202
9f71dacb 12203For older changes see ChangeLog-2019.
c906108c
SS
12204\f
12205Local Variables:
12206mode: change-log
12207left-margin: 8
12208fill-column: 74
12209version-control: never
57da7796 12210coding: utf-8
c906108c 12211End: